From 051077c8054e887142ac03c9fd663538d7d481cb Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 30 May 2024 12:41:59 +0000 Subject: [PATCH] Generated 2014-05-15 for Slb. --- VERSION | 2 +- slb/CMakeLists.txt | 320 +- slb/include/alibabacloud/slb/SlbClient.h | 632 +++- .../model/AddAccessControlListEntryRequest.h | 69 + .../model/AddAccessControlListEntryResult.h | 49 + .../slb/model/AddBackendServersRequest.h | 6 +- .../slb/model/AddBackendServersResult.h | 4 + .../model/AddListenerWhiteListItemRequest.h | 72 + .../model/AddListenerWhiteListItemResult.h | 49 + ...stenerStatusRequest.h => AddTagsRequest.h} | 45 +- .../alibabacloud/slb/model/AddTagsResult.h | 49 + .../AddVServerGroupBackendServersRequest.h | 66 + .../AddVServerGroupBackendServersResult.h | 65 + .../model/CreateAccessControlListRequest.h | 79 + .../slb/model/CreateAccessControlListResult.h | 51 + .../slb/model/CreateDomainExtensionRequest.h | 83 + .../slb/model/CreateDomainExtensionResult.h | 53 + .../CreateLoadBalancerHTTPListenerRequest.h | 151 +- .../CreateLoadBalancerHTTPSListenerRequest.h | 225 ++ .../CreateLoadBalancerHTTPSListenerResult.h | 49 + .../slb/model/CreateLoadBalancerRequest.h | 109 +- .../slb/model/CreateLoadBalancerResult.h | 12 + .../CreateLoadBalancerTCPListenerRequest.h | 155 +- .../CreateLoadBalancerUDPListenerRequest.h | 185 ++ ... => CreateLoadBalancerUDPListenerResult.h} | 14 +- .../CreateMasterSlaveServerGroupRequest.h | 76 + .../CreateMasterSlaveServerGroupResult.h | 64 + .../slb/model/CreateRulesRequest.h | 72 + .../slb/model/CreateRulesResult.h | 56 + .../slb/model/CreateTLSCipherPolicyRequest.h | 69 + ...Result.h => CreateTLSCipherPolicyResult.h} | 28 +- .../slb/model/CreateVServerGroupRequest.h | 76 + .../slb/model/CreateVServerGroupResult.h | 65 + .../model/DeleteAccessControlListRequest.h | 66 + .../slb/model/DeleteAccessControlListResult.h | 49 + ...DeleteAccessLogsDownloadAttributeRequest.h | 66 + .../DeleteAccessLogsDownloadAttributeResult.h | 49 + .../slb/model/DeleteCACertificateRequest.h | 60 + .../slb/model/DeleteCACertificateResult.h | 49 + .../slb/model/DeleteDomainExtensionRequest.h | 63 + .../slb/model/DeleteDomainExtensionResult.h | 49 + .../model/DeleteLoadBalancerListenerRequest.h | 9 +- .../slb/model/DeleteLoadBalancerRequest.h | 9 +- .../DeleteMasterSlaveServerGroupRequest.h | 63 + .../DeleteMasterSlaveServerGroupResult.h | 49 + .../slb/model/DeleteRulesRequest.h | 63 + .../slb/model/DeleteRulesResult.h | 49 + .../model/DeleteServerCertificateRequest.h | 63 + .../slb/model/DeleteServerCertificateResult.h | 49 + .../slb/model/DeleteTLSCipherPolicyRequest.h | 63 + .../slb/model/DeleteTLSCipherPolicyResult.h | 49 + .../slb/model/DeleteVServerGroupRequest.h | 63 + .../slb/model/DeleteVServerGroupResult.h | 49 + ...escribeAccessControlListAttributeRequest.h | 75 + ...DescribeAccessControlListAttributeResult.h | 86 + .../model/DescribeAccessControlListsRequest.h | 85 + .../model/DescribeAccessControlListsResult.h | 74 + ...scribeAccessLogsDownloadAttributeRequest.h | 72 + ...escribeAccessLogsDownloadAttributeResult.h | 68 + .../model/DescribeAvailableResourceRequest.h | 63 + .../model/DescribeAvailableResourceResult.h | 62 + .../slb/model/DescribeCACertificatesRequest.h | 70 + .../slb/model/DescribeCACertificatesResult.h | 73 + .../DescribeDomainExtensionAttributeRequest.h | 63 + .../DescribeDomainExtensionAttributeResult.h | 75 + .../model/DescribeDomainExtensionsRequest.h | 69 + .../model/DescribeDomainExtensionsResult.h | 71 + .../slb/model/DescribeHealthStatusRequest.h | 69 + .../slb/model/DescribeHealthStatusResult.h | 62 + .../DescribeHighDefinationMonitorRequest.h | 60 + .../DescribeHighDefinationMonitorResult.h | 55 + ...ibeListenerAccessControlAttributeRequest.h | 69 + ...ribeListenerAccessControlAttributeResult.h | 53 + .../DescribeLoadBalancerAttributeRequest.h | 9 +- .../DescribeLoadBalancerAttributeResult.h | 114 +- ...LoadBalancerHTTPListenerAttributeRequest.h | 6 +- ...eLoadBalancerHTTPListenerAttributeResult.h | 65 +- ...adBalancerHTTPSListenerAttributeRequest.h} | 15 +- ...LoadBalancerHTTPSListenerAttributeResult.h | 205 ++ .../DescribeLoadBalancerListenersRequest.h | 79 + .../DescribeLoadBalancerListenersResult.h | 260 ++ ...eLoadBalancerTCPListenerAttributeRequest.h | 6 +- ...beLoadBalancerTCPListenerAttributeResult.h | 82 +- ...eLoadBalancerUDPListenerAttributeRequest.h | 66 + ...beLoadBalancerUDPListenerAttributeResult.h | 147 + .../slb/model/DescribeLoadBalancersRequest.h | 79 +- .../slb/model/DescribeLoadBalancersResult.h | 28 +- ...beMasterSlaveServerGroupAttributeRequest.h | 63 + ...ibeMasterSlaveServerGroupAttributeResult.h | 79 + .../DescribeMasterSlaveServerGroupsRequest.h | 76 + .../DescribeMasterSlaveServerGroupsResult.h | 74 + .../slb/model/DescribeRegionsRequest.h | 9 +- .../slb/model/DescribeRegionsResult.h | 1 + .../slb/model/DescribeRuleAttributeRequest.h | 63 + .../slb/model/DescribeRuleAttributeResult.h | 95 + .../slb/model/DescribeRulesRequest.h | 69 + .../slb/model/DescribeRulesResult.h | 75 + .../model/DescribeServerCertificatesRequest.h | 73 + .../model/DescribeServerCertificatesResult.h | 78 + .../slb/model/DescribeTagsRequest.h | 72 + .../slb/model/DescribeTagsResult.h | 63 + .../DescribeVServerGroupAttributeRequest.h | 63 + .../DescribeVServerGroupAttributeResult.h | 81 + .../slb/model/DescribeVServerGroupsRequest.h | 79 + .../slb/model/DescribeVServerGroupsResult.h | 83 + .../slb/model/DescribeZonesRequest.h | 60 + .../slb/model/DescribeZonesResult.h | 62 + .../EnableHighDefinationMonitorRequest.h | 66 + .../model/EnableHighDefinationMonitorResult.h | 51 + .../slb/model/ListTLSCipherPoliciesRequest.h | 75 + .../slb/model/ListTLSCipherPoliciesResult.h | 74 + .../slb/model/ListTagResourcesRequest.h | 73 + .../slb/model/ListTagResourcesResult.h | 60 + .../ModifyHighDefinationMonitorRequest.h | 60 + .../model/ModifyHighDefinationMonitorResult.h | 51 + ...ifyLoadBalancerInstanceChargeTypeRequest.h | 69 + ...difyLoadBalancerInstanceChargeTypeResult.h | 49 + .../ModifyLoadBalancerInstanceSpecRequest.h | 69 + .../ModifyLoadBalancerInstanceSpecResult.h | 51 + .../ModifyLoadBalancerInternetSpecRequest.h | 75 + .../ModifyLoadBalancerInternetSpecResult.h | 51 + .../model/ModifyLoadBalancerPayTypeRequest.h | 75 + .../model/ModifyLoadBalancerPayTypeResult.h | 51 + .../ModifyVServerGroupBackendServersRequest.h | 69 + .../ModifyVServerGroupBackendServersResult.h | 65 + .../slb/model/MoveResourceGroupRequest.h | 75 + .../slb/model/MoveResourceGroupResult.h | 49 + .../RemoveAccessControlListEntryRequest.h | 69 + .../RemoveAccessControlListEntryResult.h | 49 + .../slb/model/RemoveBackendServersRequest.h | 6 +- .../slb/model/RemoveBackendServersResult.h | 4 + .../RemoveListenerWhiteListItemRequest.h | 72 + .../model/RemoveListenerWhiteListItemResult.h | 49 + .../slb/model/RemoveTagsRequest.h | 63 + .../alibabacloud/slb/model/RemoveTagsResult.h | 49 + .../RemoveVServerGroupBackendServersRequest.h | 66 + .../RemoveVServerGroupBackendServersResult.h | 65 + .../SetAccessControlListAttributeRequest.h | 69 + .../SetAccessControlListAttributeResult.h | 51 + .../SetAccessLogsDownloadAttributeRequest.h | 66 + .../SetAccessLogsDownloadAttributeResult.h | 49 + .../slb/model/SetBackendServersRequest.h | 66 + .../slb/model/SetBackendServersResult.h | 62 + .../slb/model/SetCACertificateNameRequest.h | 63 + .../slb/model/SetCACertificateNameResult.h | 49 + .../SetDomainExtensionAttributeRequest.h | 77 + .../model/SetDomainExtensionAttributeResult.h | 49 + .../SetListenerAccessControlStatusRequest.h | 72 + .../SetListenerAccessControlStatusResult.h | 49 + .../SetLoadBalancerDeleteProtectionRequest.h | 66 + .../SetLoadBalancerDeleteProtectionResult.h | 49 + ...LoadBalancerHTTPListenerAttributeRequest.h | 129 +- ...oadBalancerHTTPSListenerAttributeRequest.h | 215 ++ ...LoadBalancerHTTPSListenerAttributeResult.h | 49 + ...oadBalancerModificationProtectionRequest.h | 63 + ...LoadBalancerModificationProtectionResult.h | 49 + .../slb/model/SetLoadBalancerNameRequest.h | 6 +- .../slb/model/SetLoadBalancerStatusRequest.h | 6 +- ...tLoadBalancerTCPListenerAttributeRequest.h | 157 +- ...tLoadBalancerUDPListenerAttributeRequest.h | 184 ++ ...etLoadBalancerUDPListenerAttributeResult.h | 49 + .../alibabacloud/slb/model/SetRuleRequest.h | 114 + .../alibabacloud/slb/model/SetRuleResult.h | 49 + .../model/SetServerCertificateNameRequest.h | 66 + .../model/SetServerCertificateNameResult.h | 49 + .../SetTLSCipherPolicyAttributeRequest.h | 72 + .../model/SetTLSCipherPolicyAttributeResult.h | 51 + .../model/SetVServerGroupAttributeRequest.h | 69 + .../model/SetVServerGroupAttributeResult.h | 67 + .../model/StartLoadBalancerListenerRequest.h | 69 + .../model/StartLoadBalancerListenerResult.h | 49 + .../model/StopLoadBalancerListenerRequest.h | 69 + .../model/StopLoadBalancerListenerResult.h | 49 + .../slb/model/TagResourcesRequest.h | 70 + .../slb/model/TagResourcesResult.h | 49 + .../slb/model/UntagResourcesRequest.h | 69 + .../slb/model/UntagResourcesResult.h | 49 + .../slb/model/UploadCACertificateRequest.h | 76 + .../slb/model/UploadCACertificateResult.h | 67 + .../model/UploadServerCertificateRequest.h | 91 + .../slb/model/UploadServerCertificateResult.h | 79 + slb/src/SlbClient.cc | 2736 ++++++++++++++++- .../model/AddAccessControlListEntryRequest.cc | 117 + .../model/AddAccessControlListEntryResult.cc | 44 + slb/src/model/AddBackendServersRequest.cc | 12 +- slb/src/model/AddBackendServersResult.cc | 8 + .../model/AddListenerWhiteListItemRequest.cc | 126 + .../model/AddListenerWhiteListItemResult.cc | 44 + slb/src/model/AddTagsRequest.cc | 99 + slb/src/model/AddTagsResult.cc | 44 + .../AddVServerGroupBackendServersRequest.cc | 108 + .../AddVServerGroupBackendServersResult.cc | 80 + .../model/CreateAccessControlListRequest.cc | 140 + .../model/CreateAccessControlListResult.cc | 51 + slb/src/model/CreateDomainExtensionRequest.cc | 149 + slb/src/model/CreateDomainExtensionResult.cc | 58 + .../CreateLoadBalancerHTTPListenerRequest.cc | 376 ++- .../CreateLoadBalancerHTTPSListenerRequest.cc | 569 ++++ .../CreateLoadBalancerHTTPSListenerResult.cc | 44 + slb/src/model/CreateLoadBalancerRequest.cc | 282 +- slb/src/model/CreateLoadBalancerResult.cc | 46 +- .../CreateLoadBalancerTCPListenerRequest.cc | 381 ++- .../CreateLoadBalancerUDPListenerRequest.cc | 451 +++ ...=> CreateLoadBalancerUDPListenerResult.cc} | 10 +- .../CreateMasterSlaveServerGroupRequest.cc | 131 + .../CreateMasterSlaveServerGroupResult.cc | 78 + slb/src/model/CreateRulesRequest.cc | 126 + slb/src/model/CreateRulesResult.cc | 59 + slb/src/model/CreateTLSCipherPolicyRequest.cc | 115 + slb/src/model/CreateTLSCipherPolicyResult.cc | 51 + slb/src/model/CreateVServerGroupRequest.cc | 131 + slb/src/model/CreateVServerGroupResult.cc | 80 + .../model/DeleteAccessControlListRequest.cc | 108 + .../model/DeleteAccessControlListResult.cc | 44 + ...eleteAccessLogsDownloadAttributeRequest.cc | 108 + ...DeleteAccessLogsDownloadAttributeResult.cc | 44 + slb/src/model/DeleteCACertificateRequest.cc | 90 + slb/src/model/DeleteCACertificateResult.cc | 44 + slb/src/model/DeleteDomainExtensionRequest.cc | 99 + slb/src/model/DeleteDomainExtensionResult.cc | 44 + .../DeleteLoadBalancerListenerRequest.cc | 21 +- slb/src/model/DeleteLoadBalancerRequest.cc | 21 +- .../DeleteMasterSlaveServerGroupRequest.cc | 99 + .../DeleteMasterSlaveServerGroupResult.cc | 44 + slb/src/model/DeleteRulesRequest.cc | 99 + slb/src/model/DeleteRulesResult.cc | 44 + .../model/DeleteServerCertificateRequest.cc | 99 + .../model/DeleteServerCertificateResult.cc | 44 + slb/src/model/DeleteTLSCipherPolicyRequest.cc | 99 + slb/src/model/DeleteTLSCipherPolicyResult.cc | 44 + slb/src/model/DeleteVServerGroupRequest.cc | 99 + slb/src/model/DeleteVServerGroupResult.cc | 44 + ...scribeAccessControlListAttributeRequest.cc | 135 + ...escribeAccessControlListAttributeResult.cc | 142 + .../DescribeAccessControlListsRequest.cc | 158 + .../model/DescribeAccessControlListsResult.cc | 105 + ...cribeAccessLogsDownloadAttributeRequest.cc | 126 + ...scribeAccessLogsDownloadAttributeResult.cc | 95 + .../model/DescribeAvailableResourceRequest.cc | 99 + .../model/DescribeAvailableResourceResult.cc | 69 + .../model/DescribeBackendServersRequest.cc | 117 - slb/src/model/DescribeBackendServersResult.cc | 67 - .../model/DescribeCACertificatesRequest.cc | 113 + slb/src/model/DescribeCACertificatesResult.cc | 91 + ...DescribeDomainExtensionAttributeRequest.cc | 99 + .../DescribeDomainExtensionAttributeResult.cc | 113 + .../model/DescribeDomainExtensionsRequest.cc | 117 + .../model/DescribeDomainExtensionsResult.cc | 85 + slb/src/model/DescribeHealthStatusRequest.cc | 117 + slb/src/model/DescribeHealthStatusResult.cc | 71 + .../DescribeHighDefinationMonitorRequest.cc | 90 + .../DescribeHighDefinationMonitorResult.cc | 65 + ...beListenerAccessControlAttributeRequest.cc | 117 + ...ibeListenerAccessControlAttributeResult.cc | 58 + .../DescribeLoadBalancerAttributeRequest.cc | 21 +- .../DescribeLoadBalancerAttributeResult.cc | 326 +- ...oadBalancerHTTPListenerAttributeRequest.cc | 12 +- ...LoadBalancerHTTPListenerAttributeResult.cc | 197 +- ...adBalancerHTTPSListenerAttributeRequest.cc | 108 + ...oadBalancerHTTPSListenerAttributeResult.cc | 519 ++++ .../DescribeLoadBalancerListenersRequest.cc | 139 + .../DescribeLoadBalancerListenersResult.cc | 434 +++ ...LoadBalancerTCPListenerAttributeRequest.cc | 12 +- ...eLoadBalancerTCPListenerAttributeResult.cc | 277 +- ...LoadBalancerUDPListenerAttributeRequest.cc | 108 + ...eLoadBalancerUDPListenerAttributeResult.cc | 369 +++ slb/src/model/DescribeLoadBalancersRequest.cc | 224 +- slb/src/model/DescribeLoadBalancersResult.cc | 67 +- ...eMasterSlaveServerGroupAttributeRequest.cc | 99 + ...beMasterSlaveServerGroupAttributeResult.cc | 121 + .../DescribeMasterSlaveServerGroupsRequest.cc | 131 + .../DescribeMasterSlaveServerGroupsResult.cc | 84 + slb/src/model/DescribeRegionsRequest.cc | 29 +- slb/src/model/DescribeRegionsResult.cc | 2 + slb/src/model/DescribeRuleAttributeRequest.cc | 99 + slb/src/model/DescribeRuleAttributeResult.cc | 205 ++ slb/src/model/DescribeRulesRequest.cc | 117 + slb/src/model/DescribeRulesResult.cc | 97 + .../DescribeServerCertificatesRequest.cc | 122 + .../model/DescribeServerCertificatesResult.cc | 102 + slb/src/model/DescribeTagsRequest.cc | 126 + slb/src/model/DescribeTagsResult.cc | 82 + .../DescribeVServerGroupAttributeRequest.cc | 99 + .../DescribeVServerGroupAttributeResult.cc | 125 + slb/src/model/DescribeVServerGroupsRequest.cc | 140 + slb/src/model/DescribeVServerGroupsResult.cc | 100 + slb/src/model/DescribeZonesRequest.cc | 90 + slb/src/model/DescribeZonesResult.cc | 69 + .../EnableHighDefinationMonitorRequest.cc | 108 + .../EnableHighDefinationMonitorResult.cc | 51 + slb/src/model/ListTLSCipherPoliciesRequest.cc | 135 + slb/src/model/ListTLSCipherPoliciesResult.cc | 104 + slb/src/model/ListTagResourcesRequest.cc | 121 + slb/src/model/ListTagResourcesResult.cc | 70 + .../ModifyHighDefinationMonitorRequest.cc | 90 + .../ModifyHighDefinationMonitorResult.cc | 51 + ...fyLoadBalancerInstanceChargeTypeRequest.cc | 117 + ...ifyLoadBalancerInstanceChargeTypeResult.cc | 44 + .../ModifyLoadBalancerInstanceSpecRequest.cc | 117 + .../ModifyLoadBalancerInstanceSpecResult.cc | 51 + .../ModifyLoadBalancerInternetSpecRequest.cc | 135 + .../ModifyLoadBalancerInternetSpecResult.cc | 51 + .../model/ModifyLoadBalancerPayTypeRequest.cc | 135 + .../model/ModifyLoadBalancerPayTypeResult.cc | 51 + ...ModifyVServerGroupBackendServersRequest.cc | 117 + .../ModifyVServerGroupBackendServersResult.cc | 80 + slb/src/model/MoveResourceGroupRequest.cc | 135 + slb/src/model/MoveResourceGroupResult.cc | 44 + .../RemoveAccessControlListEntryRequest.cc | 117 + .../RemoveAccessControlListEntryResult.cc | 44 + slb/src/model/RemoveBackendServersRequest.cc | 12 +- slb/src/model/RemoveBackendServersResult.cc | 8 + .../RemoveListenerWhiteListItemRequest.cc | 126 + .../RemoveListenerWhiteListItemResult.cc | 44 + slb/src/model/RemoveTagsRequest.cc | 99 + slb/src/model/RemoveTagsResult.cc | 44 + ...RemoveVServerGroupBackendServersRequest.cc | 108 + .../RemoveVServerGroupBackendServersResult.cc | 80 + .../SetAccessControlListAttributeRequest.cc | 117 + .../SetAccessControlListAttributeResult.cc | 51 + .../SetAccessLogsDownloadAttributeRequest.cc | 108 + .../SetAccessLogsDownloadAttributeResult.cc | 44 + slb/src/model/SetBackendServersRequest.cc | 108 + slb/src/model/SetBackendServersResult.cc | 74 + slb/src/model/SetCACertificateNameRequest.cc | 99 + slb/src/model/SetCACertificateNameResult.cc | 44 + .../SetDomainExtensionAttributeRequest.cc | 131 + .../SetDomainExtensionAttributeResult.cc | 44 + .../SetListenerAccessControlStatusRequest.cc | 126 + .../SetListenerAccessControlStatusResult.cc | 44 + .../SetLoadBalancerDeleteProtectionRequest.cc | 108 + .../SetLoadBalancerDeleteProtectionResult.cc | 44 + ...oadBalancerHTTPListenerAttributeRequest.cc | 325 +- ...adBalancerHTTPSListenerAttributeRequest.cc | 546 ++++ ...oadBalancerHTTPSListenerAttributeResult.cc | 44 + .../SetLoadBalancerListenerStatusRequest.cc | 90 - ...adBalancerModificationProtectionRequest.cc | 99 + ...oadBalancerModificationProtectionResult.cc | 44 + slb/src/model/SetLoadBalancerNameRequest.cc | 20 +- slb/src/model/SetLoadBalancerStatusRequest.cc | 12 +- ...LoadBalancerTCPListenerAttributeRequest.cc | 402 ++- ...LoadBalancerUDPListenerAttributeRequest.cc | 455 +++ ...tLoadBalancerUDPListenerAttributeResult.cc | 44 + slb/src/model/SetRuleRequest.cc | 252 ++ slb/src/model/SetRuleResult.cc | 44 + .../model/SetServerCertificateNameRequest.cc | 108 + .../model/SetServerCertificateNameResult.cc | 44 + .../SetTLSCipherPolicyAttributeRequest.cc | 124 + .../SetTLSCipherPolicyAttributeResult.cc | 51 + .../model/SetVServerGroupAttributeRequest.cc | 117 + .../model/SetVServerGroupAttributeResult.cc | 87 + .../model/StartLoadBalancerListenerRequest.cc | 117 + .../model/StartLoadBalancerListenerResult.cc | 44 + .../model/StopLoadBalancerListenerRequest.cc | 117 + .../model/StopLoadBalancerListenerResult.cc | 44 + slb/src/model/TagResourcesRequest.cc | 112 + slb/src/model/TagResourcesResult.cc | 44 + slb/src/model/UntagResourcesRequest.cc | 115 + slb/src/model/UntagResourcesResult.cc | 44 + slb/src/model/UploadCACertificateRequest.cc | 131 + slb/src/model/UploadCACertificateResult.cc | 107 + .../model/UploadServerCertificateRequest.cc | 176 ++ .../model/UploadServerCertificateResult.cc | 150 + 363 files changed, 34489 insertions(+), 1235 deletions(-) create mode 100644 slb/include/alibabacloud/slb/model/AddAccessControlListEntryRequest.h create mode 100644 slb/include/alibabacloud/slb/model/AddAccessControlListEntryResult.h create mode 100644 slb/include/alibabacloud/slb/model/AddListenerWhiteListItemRequest.h create mode 100644 slb/include/alibabacloud/slb/model/AddListenerWhiteListItemResult.h rename slb/include/alibabacloud/slb/model/{SetLoadBalancerListenerStatusRequest.h => AddTagsRequest.h} (54%) create mode 100644 slb/include/alibabacloud/slb/model/AddTagsResult.h create mode 100644 slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersRequest.h create mode 100644 slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h create mode 100644 slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h create mode 100644 slb/include/alibabacloud/slb/model/CreateAccessControlListResult.h create mode 100644 slb/include/alibabacloud/slb/model/CreateDomainExtensionRequest.h create mode 100644 slb/include/alibabacloud/slb/model/CreateDomainExtensionResult.h create mode 100644 slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h create mode 100644 slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerResult.h create mode 100644 slb/include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerRequest.h rename slb/include/alibabacloud/slb/model/{SetLoadBalancerListenerStatusResult.h => CreateLoadBalancerUDPListenerResult.h} (71%) create mode 100644 slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupRequest.h create mode 100644 slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h create mode 100644 slb/include/alibabacloud/slb/model/CreateRulesRequest.h create mode 100644 slb/include/alibabacloud/slb/model/CreateRulesResult.h create mode 100644 slb/include/alibabacloud/slb/model/CreateTLSCipherPolicyRequest.h rename slb/include/alibabacloud/slb/model/{DescribeBackendServersResult.h => CreateTLSCipherPolicyResult.h} (58%) create mode 100644 slb/include/alibabacloud/slb/model/CreateVServerGroupRequest.h create mode 100644 slb/include/alibabacloud/slb/model/CreateVServerGroupResult.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteAccessControlListRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteAccessControlListResult.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteAccessLogsDownloadAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteAccessLogsDownloadAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteCACertificateRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteCACertificateResult.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteDomainExtensionRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteDomainExtensionResult.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteMasterSlaveServerGroupRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteMasterSlaveServerGroupResult.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteRulesRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteRulesResult.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteServerCertificateRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteServerCertificateResult.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteTLSCipherPolicyRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteTLSCipherPolicyResult.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteVServerGroupRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DeleteVServerGroupResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAccessLogsDownloadAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAccessLogsDownloadAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAvailableResourceRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeAvailableResourceResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeCACertificatesRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeDomainExtensionAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeDomainExtensionAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeDomainExtensionsRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeDomainExtensionsResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeHealthStatusRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeHighDefinationMonitorRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeHighDefinationMonitorResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeResult.h rename slb/include/alibabacloud/slb/model/{DescribeBackendServersRequest.h => DescribeLoadBalancerHTTPSListenerAttributeRequest.h} (78%) create mode 100644 slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeLoadBalancerListenersRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeLoadBalancerListenersResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeRuleAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeRulesRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeRulesResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeServerCertificatesRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeTagsRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeTagsResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeVServerGroupsRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeVServerGroupsResult.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeZonesRequest.h create mode 100644 slb/include/alibabacloud/slb/model/DescribeZonesResult.h create mode 100644 slb/include/alibabacloud/slb/model/EnableHighDefinationMonitorRequest.h create mode 100644 slb/include/alibabacloud/slb/model/EnableHighDefinationMonitorResult.h create mode 100644 slb/include/alibabacloud/slb/model/ListTLSCipherPoliciesRequest.h create mode 100644 slb/include/alibabacloud/slb/model/ListTLSCipherPoliciesResult.h create mode 100644 slb/include/alibabacloud/slb/model/ListTagResourcesRequest.h create mode 100644 slb/include/alibabacloud/slb/model/ListTagResourcesResult.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyHighDefinationMonitorRequest.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyHighDefinationMonitorResult.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceChargeTypeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceChargeTypeResult.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecRequest.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecResult.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecRequest.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecResult.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeResult.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersRequest.h create mode 100644 slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h create mode 100644 slb/include/alibabacloud/slb/model/MoveResourceGroupRequest.h create mode 100644 slb/include/alibabacloud/slb/model/MoveResourceGroupResult.h create mode 100644 slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryRequest.h create mode 100644 slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryResult.h create mode 100644 slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemRequest.h create mode 100644 slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemResult.h create mode 100644 slb/include/alibabacloud/slb/model/RemoveTagsRequest.h create mode 100644 slb/include/alibabacloud/slb/model/RemoveTagsResult.h create mode 100644 slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersRequest.h create mode 100644 slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetAccessControlListAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetAccessControlListAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetAccessLogsDownloadAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetAccessLogsDownloadAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetBackendServersRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetBackendServersResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetCACertificateNameRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetCACertificateNameResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetLoadBalancerModificationProtectionRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetLoadBalancerModificationProtectionResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetRuleRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetRuleResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetServerCertificateNameRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetServerCertificateNameResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetTLSCipherPolicyAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetTLSCipherPolicyAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/SetVServerGroupAttributeRequest.h create mode 100644 slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h create mode 100644 slb/include/alibabacloud/slb/model/StartLoadBalancerListenerRequest.h create mode 100644 slb/include/alibabacloud/slb/model/StartLoadBalancerListenerResult.h create mode 100644 slb/include/alibabacloud/slb/model/StopLoadBalancerListenerRequest.h create mode 100644 slb/include/alibabacloud/slb/model/StopLoadBalancerListenerResult.h create mode 100644 slb/include/alibabacloud/slb/model/TagResourcesRequest.h create mode 100644 slb/include/alibabacloud/slb/model/TagResourcesResult.h create mode 100644 slb/include/alibabacloud/slb/model/UntagResourcesRequest.h create mode 100644 slb/include/alibabacloud/slb/model/UntagResourcesResult.h create mode 100644 slb/include/alibabacloud/slb/model/UploadCACertificateRequest.h create mode 100644 slb/include/alibabacloud/slb/model/UploadCACertificateResult.h create mode 100644 slb/include/alibabacloud/slb/model/UploadServerCertificateRequest.h create mode 100644 slb/include/alibabacloud/slb/model/UploadServerCertificateResult.h create mode 100644 slb/src/model/AddAccessControlListEntryRequest.cc create mode 100644 slb/src/model/AddAccessControlListEntryResult.cc create mode 100644 slb/src/model/AddListenerWhiteListItemRequest.cc create mode 100644 slb/src/model/AddListenerWhiteListItemResult.cc create mode 100644 slb/src/model/AddTagsRequest.cc create mode 100644 slb/src/model/AddTagsResult.cc create mode 100644 slb/src/model/AddVServerGroupBackendServersRequest.cc create mode 100644 slb/src/model/AddVServerGroupBackendServersResult.cc create mode 100644 slb/src/model/CreateAccessControlListRequest.cc create mode 100644 slb/src/model/CreateAccessControlListResult.cc create mode 100644 slb/src/model/CreateDomainExtensionRequest.cc create mode 100644 slb/src/model/CreateDomainExtensionResult.cc create mode 100644 slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc create mode 100644 slb/src/model/CreateLoadBalancerHTTPSListenerResult.cc create mode 100644 slb/src/model/CreateLoadBalancerUDPListenerRequest.cc rename slb/src/model/{SetLoadBalancerListenerStatusResult.cc => CreateLoadBalancerUDPListenerResult.cc} (70%) create mode 100644 slb/src/model/CreateMasterSlaveServerGroupRequest.cc create mode 100644 slb/src/model/CreateMasterSlaveServerGroupResult.cc create mode 100644 slb/src/model/CreateRulesRequest.cc create mode 100644 slb/src/model/CreateRulesResult.cc create mode 100644 slb/src/model/CreateTLSCipherPolicyRequest.cc create mode 100644 slb/src/model/CreateTLSCipherPolicyResult.cc create mode 100644 slb/src/model/CreateVServerGroupRequest.cc create mode 100644 slb/src/model/CreateVServerGroupResult.cc create mode 100644 slb/src/model/DeleteAccessControlListRequest.cc create mode 100644 slb/src/model/DeleteAccessControlListResult.cc create mode 100644 slb/src/model/DeleteAccessLogsDownloadAttributeRequest.cc create mode 100644 slb/src/model/DeleteAccessLogsDownloadAttributeResult.cc create mode 100644 slb/src/model/DeleteCACertificateRequest.cc create mode 100644 slb/src/model/DeleteCACertificateResult.cc create mode 100644 slb/src/model/DeleteDomainExtensionRequest.cc create mode 100644 slb/src/model/DeleteDomainExtensionResult.cc create mode 100644 slb/src/model/DeleteMasterSlaveServerGroupRequest.cc create mode 100644 slb/src/model/DeleteMasterSlaveServerGroupResult.cc create mode 100644 slb/src/model/DeleteRulesRequest.cc create mode 100644 slb/src/model/DeleteRulesResult.cc create mode 100644 slb/src/model/DeleteServerCertificateRequest.cc create mode 100644 slb/src/model/DeleteServerCertificateResult.cc create mode 100644 slb/src/model/DeleteTLSCipherPolicyRequest.cc create mode 100644 slb/src/model/DeleteTLSCipherPolicyResult.cc create mode 100644 slb/src/model/DeleteVServerGroupRequest.cc create mode 100644 slb/src/model/DeleteVServerGroupResult.cc create mode 100644 slb/src/model/DescribeAccessControlListAttributeRequest.cc create mode 100644 slb/src/model/DescribeAccessControlListAttributeResult.cc create mode 100644 slb/src/model/DescribeAccessControlListsRequest.cc create mode 100644 slb/src/model/DescribeAccessControlListsResult.cc create mode 100644 slb/src/model/DescribeAccessLogsDownloadAttributeRequest.cc create mode 100644 slb/src/model/DescribeAccessLogsDownloadAttributeResult.cc create mode 100644 slb/src/model/DescribeAvailableResourceRequest.cc create mode 100644 slb/src/model/DescribeAvailableResourceResult.cc delete mode 100644 slb/src/model/DescribeBackendServersRequest.cc delete mode 100644 slb/src/model/DescribeBackendServersResult.cc create mode 100644 slb/src/model/DescribeCACertificatesRequest.cc create mode 100644 slb/src/model/DescribeCACertificatesResult.cc create mode 100644 slb/src/model/DescribeDomainExtensionAttributeRequest.cc create mode 100644 slb/src/model/DescribeDomainExtensionAttributeResult.cc create mode 100644 slb/src/model/DescribeDomainExtensionsRequest.cc create mode 100644 slb/src/model/DescribeDomainExtensionsResult.cc create mode 100644 slb/src/model/DescribeHealthStatusRequest.cc create mode 100644 slb/src/model/DescribeHealthStatusResult.cc create mode 100644 slb/src/model/DescribeHighDefinationMonitorRequest.cc create mode 100644 slb/src/model/DescribeHighDefinationMonitorResult.cc create mode 100644 slb/src/model/DescribeListenerAccessControlAttributeRequest.cc create mode 100644 slb/src/model/DescribeListenerAccessControlAttributeResult.cc create mode 100644 slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc create mode 100644 slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc create mode 100644 slb/src/model/DescribeLoadBalancerListenersRequest.cc create mode 100644 slb/src/model/DescribeLoadBalancerListenersResult.cc create mode 100644 slb/src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc create mode 100644 slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc create mode 100644 slb/src/model/DescribeMasterSlaveServerGroupAttributeRequest.cc create mode 100644 slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc create mode 100644 slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc create mode 100644 slb/src/model/DescribeMasterSlaveServerGroupsResult.cc create mode 100644 slb/src/model/DescribeRuleAttributeRequest.cc create mode 100644 slb/src/model/DescribeRuleAttributeResult.cc create mode 100644 slb/src/model/DescribeRulesRequest.cc create mode 100644 slb/src/model/DescribeRulesResult.cc create mode 100644 slb/src/model/DescribeServerCertificatesRequest.cc create mode 100644 slb/src/model/DescribeServerCertificatesResult.cc create mode 100644 slb/src/model/DescribeTagsRequest.cc create mode 100644 slb/src/model/DescribeTagsResult.cc create mode 100644 slb/src/model/DescribeVServerGroupAttributeRequest.cc create mode 100644 slb/src/model/DescribeVServerGroupAttributeResult.cc create mode 100644 slb/src/model/DescribeVServerGroupsRequest.cc create mode 100644 slb/src/model/DescribeVServerGroupsResult.cc create mode 100644 slb/src/model/DescribeZonesRequest.cc create mode 100644 slb/src/model/DescribeZonesResult.cc create mode 100644 slb/src/model/EnableHighDefinationMonitorRequest.cc create mode 100644 slb/src/model/EnableHighDefinationMonitorResult.cc create mode 100644 slb/src/model/ListTLSCipherPoliciesRequest.cc create mode 100644 slb/src/model/ListTLSCipherPoliciesResult.cc create mode 100644 slb/src/model/ListTagResourcesRequest.cc create mode 100644 slb/src/model/ListTagResourcesResult.cc create mode 100644 slb/src/model/ModifyHighDefinationMonitorRequest.cc create mode 100644 slb/src/model/ModifyHighDefinationMonitorResult.cc create mode 100644 slb/src/model/ModifyLoadBalancerInstanceChargeTypeRequest.cc create mode 100644 slb/src/model/ModifyLoadBalancerInstanceChargeTypeResult.cc create mode 100644 slb/src/model/ModifyLoadBalancerInstanceSpecRequest.cc create mode 100644 slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc create mode 100644 slb/src/model/ModifyLoadBalancerInternetSpecRequest.cc create mode 100644 slb/src/model/ModifyLoadBalancerInternetSpecResult.cc create mode 100644 slb/src/model/ModifyLoadBalancerPayTypeRequest.cc create mode 100644 slb/src/model/ModifyLoadBalancerPayTypeResult.cc create mode 100644 slb/src/model/ModifyVServerGroupBackendServersRequest.cc create mode 100644 slb/src/model/ModifyVServerGroupBackendServersResult.cc create mode 100644 slb/src/model/MoveResourceGroupRequest.cc create mode 100644 slb/src/model/MoveResourceGroupResult.cc create mode 100644 slb/src/model/RemoveAccessControlListEntryRequest.cc create mode 100644 slb/src/model/RemoveAccessControlListEntryResult.cc create mode 100644 slb/src/model/RemoveListenerWhiteListItemRequest.cc create mode 100644 slb/src/model/RemoveListenerWhiteListItemResult.cc create mode 100644 slb/src/model/RemoveTagsRequest.cc create mode 100644 slb/src/model/RemoveTagsResult.cc create mode 100644 slb/src/model/RemoveVServerGroupBackendServersRequest.cc create mode 100644 slb/src/model/RemoveVServerGroupBackendServersResult.cc create mode 100644 slb/src/model/SetAccessControlListAttributeRequest.cc create mode 100644 slb/src/model/SetAccessControlListAttributeResult.cc create mode 100644 slb/src/model/SetAccessLogsDownloadAttributeRequest.cc create mode 100644 slb/src/model/SetAccessLogsDownloadAttributeResult.cc create mode 100644 slb/src/model/SetBackendServersRequest.cc create mode 100644 slb/src/model/SetBackendServersResult.cc create mode 100644 slb/src/model/SetCACertificateNameRequest.cc create mode 100644 slb/src/model/SetCACertificateNameResult.cc create mode 100644 slb/src/model/SetDomainExtensionAttributeRequest.cc create mode 100644 slb/src/model/SetDomainExtensionAttributeResult.cc create mode 100644 slb/src/model/SetListenerAccessControlStatusRequest.cc create mode 100644 slb/src/model/SetListenerAccessControlStatusResult.cc create mode 100644 slb/src/model/SetLoadBalancerDeleteProtectionRequest.cc create mode 100644 slb/src/model/SetLoadBalancerDeleteProtectionResult.cc create mode 100644 slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc create mode 100644 slb/src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc delete mode 100644 slb/src/model/SetLoadBalancerListenerStatusRequest.cc create mode 100644 slb/src/model/SetLoadBalancerModificationProtectionRequest.cc create mode 100644 slb/src/model/SetLoadBalancerModificationProtectionResult.cc create mode 100644 slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc create mode 100644 slb/src/model/SetLoadBalancerUDPListenerAttributeResult.cc create mode 100644 slb/src/model/SetRuleRequest.cc create mode 100644 slb/src/model/SetRuleResult.cc create mode 100644 slb/src/model/SetServerCertificateNameRequest.cc create mode 100644 slb/src/model/SetServerCertificateNameResult.cc create mode 100644 slb/src/model/SetTLSCipherPolicyAttributeRequest.cc create mode 100644 slb/src/model/SetTLSCipherPolicyAttributeResult.cc create mode 100644 slb/src/model/SetVServerGroupAttributeRequest.cc create mode 100644 slb/src/model/SetVServerGroupAttributeResult.cc create mode 100644 slb/src/model/StartLoadBalancerListenerRequest.cc create mode 100644 slb/src/model/StartLoadBalancerListenerResult.cc create mode 100644 slb/src/model/StopLoadBalancerListenerRequest.cc create mode 100644 slb/src/model/StopLoadBalancerListenerResult.cc create mode 100644 slb/src/model/TagResourcesRequest.cc create mode 100644 slb/src/model/TagResourcesResult.cc create mode 100644 slb/src/model/UntagResourcesRequest.cc create mode 100644 slb/src/model/UntagResourcesResult.cc create mode 100644 slb/src/model/UploadCACertificateRequest.cc create mode 100644 slb/src/model/UploadCACertificateResult.cc create mode 100644 slb/src/model/UploadServerCertificateRequest.cc create mode 100644 slb/src/model/UploadServerCertificateResult.cc diff --git a/VERSION b/VERSION index c2b4c0678..9c7c319df 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1920 \ No newline at end of file +1.36.1921 \ No newline at end of file diff --git a/slb/CMakeLists.txt b/slb/CMakeLists.txt index ebcf96b18..adee78aba 100644 --- a/slb/CMakeLists.txt +++ b/slb/CMakeLists.txt @@ -21,81 +21,381 @@ set(slb_public_header include/alibabacloud/slb/SlbExport.h ) set(slb_public_header_model + include/alibabacloud/slb/model/AddAccessControlListEntryRequest.h + include/alibabacloud/slb/model/AddAccessControlListEntryResult.h include/alibabacloud/slb/model/AddBackendServersRequest.h include/alibabacloud/slb/model/AddBackendServersResult.h + include/alibabacloud/slb/model/AddListenerWhiteListItemRequest.h + include/alibabacloud/slb/model/AddListenerWhiteListItemResult.h + include/alibabacloud/slb/model/AddTagsRequest.h + include/alibabacloud/slb/model/AddTagsResult.h + include/alibabacloud/slb/model/AddVServerGroupBackendServersRequest.h + include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h + include/alibabacloud/slb/model/CreateAccessControlListRequest.h + include/alibabacloud/slb/model/CreateAccessControlListResult.h + include/alibabacloud/slb/model/CreateDomainExtensionRequest.h + include/alibabacloud/slb/model/CreateDomainExtensionResult.h include/alibabacloud/slb/model/CreateLoadBalancerRequest.h include/alibabacloud/slb/model/CreateLoadBalancerResult.h include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerResult.h + include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h + include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerResult.h include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerResult.h + include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerRequest.h + include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerResult.h + include/alibabacloud/slb/model/CreateMasterSlaveServerGroupRequest.h + include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h + include/alibabacloud/slb/model/CreateRulesRequest.h + include/alibabacloud/slb/model/CreateRulesResult.h + include/alibabacloud/slb/model/CreateTLSCipherPolicyRequest.h + include/alibabacloud/slb/model/CreateTLSCipherPolicyResult.h + include/alibabacloud/slb/model/CreateVServerGroupRequest.h + include/alibabacloud/slb/model/CreateVServerGroupResult.h + include/alibabacloud/slb/model/DeleteAccessControlListRequest.h + include/alibabacloud/slb/model/DeleteAccessControlListResult.h + include/alibabacloud/slb/model/DeleteAccessLogsDownloadAttributeRequest.h + include/alibabacloud/slb/model/DeleteAccessLogsDownloadAttributeResult.h + include/alibabacloud/slb/model/DeleteCACertificateRequest.h + include/alibabacloud/slb/model/DeleteCACertificateResult.h + include/alibabacloud/slb/model/DeleteDomainExtensionRequest.h + include/alibabacloud/slb/model/DeleteDomainExtensionResult.h include/alibabacloud/slb/model/DeleteLoadBalancerRequest.h include/alibabacloud/slb/model/DeleteLoadBalancerResult.h include/alibabacloud/slb/model/DeleteLoadBalancerListenerRequest.h include/alibabacloud/slb/model/DeleteLoadBalancerListenerResult.h - include/alibabacloud/slb/model/DescribeBackendServersRequest.h - include/alibabacloud/slb/model/DescribeBackendServersResult.h + include/alibabacloud/slb/model/DeleteMasterSlaveServerGroupRequest.h + include/alibabacloud/slb/model/DeleteMasterSlaveServerGroupResult.h + include/alibabacloud/slb/model/DeleteRulesRequest.h + include/alibabacloud/slb/model/DeleteRulesResult.h + include/alibabacloud/slb/model/DeleteServerCertificateRequest.h + include/alibabacloud/slb/model/DeleteServerCertificateResult.h + include/alibabacloud/slb/model/DeleteTLSCipherPolicyRequest.h + include/alibabacloud/slb/model/DeleteTLSCipherPolicyResult.h + include/alibabacloud/slb/model/DeleteVServerGroupRequest.h + include/alibabacloud/slb/model/DeleteVServerGroupResult.h + include/alibabacloud/slb/model/DescribeAccessControlListAttributeRequest.h + include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h + include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h + include/alibabacloud/slb/model/DescribeAccessControlListsResult.h + include/alibabacloud/slb/model/DescribeAccessLogsDownloadAttributeRequest.h + include/alibabacloud/slb/model/DescribeAccessLogsDownloadAttributeResult.h + include/alibabacloud/slb/model/DescribeAvailableResourceRequest.h + include/alibabacloud/slb/model/DescribeAvailableResourceResult.h + include/alibabacloud/slb/model/DescribeCACertificatesRequest.h + include/alibabacloud/slb/model/DescribeCACertificatesResult.h + include/alibabacloud/slb/model/DescribeDomainExtensionAttributeRequest.h + include/alibabacloud/slb/model/DescribeDomainExtensionAttributeResult.h + include/alibabacloud/slb/model/DescribeDomainExtensionsRequest.h + include/alibabacloud/slb/model/DescribeDomainExtensionsResult.h + include/alibabacloud/slb/model/DescribeHealthStatusRequest.h + include/alibabacloud/slb/model/DescribeHealthStatusResult.h + include/alibabacloud/slb/model/DescribeHighDefinationMonitorRequest.h + include/alibabacloud/slb/model/DescribeHighDefinationMonitorResult.h + include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeRequest.h + include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeResult.h include/alibabacloud/slb/model/DescribeLoadBalancerAttributeRequest.h include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeRequest.h include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h + include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h + include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h + include/alibabacloud/slb/model/DescribeLoadBalancerListenersRequest.h + include/alibabacloud/slb/model/DescribeLoadBalancerListenersResult.h include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeRequest.h include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h + include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeRequest.h + include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h include/alibabacloud/slb/model/DescribeLoadBalancersResult.h + include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeRequest.h + include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h + include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsRequest.h + include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsResult.h include/alibabacloud/slb/model/DescribeRegionsRequest.h include/alibabacloud/slb/model/DescribeRegionsResult.h + include/alibabacloud/slb/model/DescribeRuleAttributeRequest.h + include/alibabacloud/slb/model/DescribeRuleAttributeResult.h + include/alibabacloud/slb/model/DescribeRulesRequest.h + include/alibabacloud/slb/model/DescribeRulesResult.h + include/alibabacloud/slb/model/DescribeServerCertificatesRequest.h + include/alibabacloud/slb/model/DescribeServerCertificatesResult.h + include/alibabacloud/slb/model/DescribeTagsRequest.h + include/alibabacloud/slb/model/DescribeTagsResult.h + include/alibabacloud/slb/model/DescribeVServerGroupAttributeRequest.h + include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h + include/alibabacloud/slb/model/DescribeVServerGroupsRequest.h + include/alibabacloud/slb/model/DescribeVServerGroupsResult.h + include/alibabacloud/slb/model/DescribeZonesRequest.h + include/alibabacloud/slb/model/DescribeZonesResult.h + include/alibabacloud/slb/model/EnableHighDefinationMonitorRequest.h + include/alibabacloud/slb/model/EnableHighDefinationMonitorResult.h + include/alibabacloud/slb/model/ListTLSCipherPoliciesRequest.h + include/alibabacloud/slb/model/ListTLSCipherPoliciesResult.h + include/alibabacloud/slb/model/ListTagResourcesRequest.h + include/alibabacloud/slb/model/ListTagResourcesResult.h + include/alibabacloud/slb/model/ModifyHighDefinationMonitorRequest.h + include/alibabacloud/slb/model/ModifyHighDefinationMonitorResult.h + include/alibabacloud/slb/model/ModifyLoadBalancerInstanceChargeTypeRequest.h + include/alibabacloud/slb/model/ModifyLoadBalancerInstanceChargeTypeResult.h + include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecRequest.h + include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecResult.h + include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecRequest.h + include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecResult.h + include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeRequest.h + include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeResult.h + include/alibabacloud/slb/model/ModifyVServerGroupBackendServersRequest.h + include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h + include/alibabacloud/slb/model/MoveResourceGroupRequest.h + include/alibabacloud/slb/model/MoveResourceGroupResult.h + include/alibabacloud/slb/model/RemoveAccessControlListEntryRequest.h + include/alibabacloud/slb/model/RemoveAccessControlListEntryResult.h include/alibabacloud/slb/model/RemoveBackendServersRequest.h include/alibabacloud/slb/model/RemoveBackendServersResult.h + include/alibabacloud/slb/model/RemoveListenerWhiteListItemRequest.h + include/alibabacloud/slb/model/RemoveListenerWhiteListItemResult.h + include/alibabacloud/slb/model/RemoveTagsRequest.h + include/alibabacloud/slb/model/RemoveTagsResult.h + include/alibabacloud/slb/model/RemoveVServerGroupBackendServersRequest.h + include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h + include/alibabacloud/slb/model/SetAccessControlListAttributeRequest.h + include/alibabacloud/slb/model/SetAccessControlListAttributeResult.h + include/alibabacloud/slb/model/SetAccessLogsDownloadAttributeRequest.h + include/alibabacloud/slb/model/SetAccessLogsDownloadAttributeResult.h + include/alibabacloud/slb/model/SetBackendServersRequest.h + include/alibabacloud/slb/model/SetBackendServersResult.h + include/alibabacloud/slb/model/SetCACertificateNameRequest.h + include/alibabacloud/slb/model/SetCACertificateNameResult.h + include/alibabacloud/slb/model/SetDomainExtensionAttributeRequest.h + include/alibabacloud/slb/model/SetDomainExtensionAttributeResult.h + include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h + include/alibabacloud/slb/model/SetListenerAccessControlStatusResult.h + include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionRequest.h + include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionResult.h include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeResult.h - include/alibabacloud/slb/model/SetLoadBalancerListenerStatusRequest.h - include/alibabacloud/slb/model/SetLoadBalancerListenerStatusResult.h + include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h + include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeResult.h + include/alibabacloud/slb/model/SetLoadBalancerModificationProtectionRequest.h + include/alibabacloud/slb/model/SetLoadBalancerModificationProtectionResult.h include/alibabacloud/slb/model/SetLoadBalancerNameRequest.h include/alibabacloud/slb/model/SetLoadBalancerNameResult.h include/alibabacloud/slb/model/SetLoadBalancerStatusRequest.h include/alibabacloud/slb/model/SetLoadBalancerStatusResult.h include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h - include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeResult.h ) + include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeResult.h + include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeRequest.h + include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeResult.h + include/alibabacloud/slb/model/SetRuleRequest.h + include/alibabacloud/slb/model/SetRuleResult.h + include/alibabacloud/slb/model/SetServerCertificateNameRequest.h + include/alibabacloud/slb/model/SetServerCertificateNameResult.h + include/alibabacloud/slb/model/SetTLSCipherPolicyAttributeRequest.h + include/alibabacloud/slb/model/SetTLSCipherPolicyAttributeResult.h + include/alibabacloud/slb/model/SetVServerGroupAttributeRequest.h + include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h + include/alibabacloud/slb/model/StartLoadBalancerListenerRequest.h + include/alibabacloud/slb/model/StartLoadBalancerListenerResult.h + include/alibabacloud/slb/model/StopLoadBalancerListenerRequest.h + include/alibabacloud/slb/model/StopLoadBalancerListenerResult.h + include/alibabacloud/slb/model/TagResourcesRequest.h + include/alibabacloud/slb/model/TagResourcesResult.h + include/alibabacloud/slb/model/UntagResourcesRequest.h + include/alibabacloud/slb/model/UntagResourcesResult.h + include/alibabacloud/slb/model/UploadCACertificateRequest.h + include/alibabacloud/slb/model/UploadCACertificateResult.h + include/alibabacloud/slb/model/UploadServerCertificateRequest.h + include/alibabacloud/slb/model/UploadServerCertificateResult.h ) set(slb_src src/SlbClient.cc + src/model/AddAccessControlListEntryRequest.cc + src/model/AddAccessControlListEntryResult.cc src/model/AddBackendServersRequest.cc src/model/AddBackendServersResult.cc + src/model/AddListenerWhiteListItemRequest.cc + src/model/AddListenerWhiteListItemResult.cc + src/model/AddTagsRequest.cc + src/model/AddTagsResult.cc + src/model/AddVServerGroupBackendServersRequest.cc + src/model/AddVServerGroupBackendServersResult.cc + src/model/CreateAccessControlListRequest.cc + src/model/CreateAccessControlListResult.cc + src/model/CreateDomainExtensionRequest.cc + src/model/CreateDomainExtensionResult.cc src/model/CreateLoadBalancerRequest.cc src/model/CreateLoadBalancerResult.cc src/model/CreateLoadBalancerHTTPListenerRequest.cc src/model/CreateLoadBalancerHTTPListenerResult.cc + src/model/CreateLoadBalancerHTTPSListenerRequest.cc + src/model/CreateLoadBalancerHTTPSListenerResult.cc src/model/CreateLoadBalancerTCPListenerRequest.cc src/model/CreateLoadBalancerTCPListenerResult.cc + src/model/CreateLoadBalancerUDPListenerRequest.cc + src/model/CreateLoadBalancerUDPListenerResult.cc + src/model/CreateMasterSlaveServerGroupRequest.cc + src/model/CreateMasterSlaveServerGroupResult.cc + src/model/CreateRulesRequest.cc + src/model/CreateRulesResult.cc + src/model/CreateTLSCipherPolicyRequest.cc + src/model/CreateTLSCipherPolicyResult.cc + src/model/CreateVServerGroupRequest.cc + src/model/CreateVServerGroupResult.cc + src/model/DeleteAccessControlListRequest.cc + src/model/DeleteAccessControlListResult.cc + src/model/DeleteAccessLogsDownloadAttributeRequest.cc + src/model/DeleteAccessLogsDownloadAttributeResult.cc + src/model/DeleteCACertificateRequest.cc + src/model/DeleteCACertificateResult.cc + src/model/DeleteDomainExtensionRequest.cc + src/model/DeleteDomainExtensionResult.cc src/model/DeleteLoadBalancerRequest.cc src/model/DeleteLoadBalancerResult.cc src/model/DeleteLoadBalancerListenerRequest.cc src/model/DeleteLoadBalancerListenerResult.cc - src/model/DescribeBackendServersRequest.cc - src/model/DescribeBackendServersResult.cc + src/model/DeleteMasterSlaveServerGroupRequest.cc + src/model/DeleteMasterSlaveServerGroupResult.cc + src/model/DeleteRulesRequest.cc + src/model/DeleteRulesResult.cc + src/model/DeleteServerCertificateRequest.cc + src/model/DeleteServerCertificateResult.cc + src/model/DeleteTLSCipherPolicyRequest.cc + src/model/DeleteTLSCipherPolicyResult.cc + src/model/DeleteVServerGroupRequest.cc + src/model/DeleteVServerGroupResult.cc + src/model/DescribeAccessControlListAttributeRequest.cc + src/model/DescribeAccessControlListAttributeResult.cc + src/model/DescribeAccessControlListsRequest.cc + src/model/DescribeAccessControlListsResult.cc + src/model/DescribeAccessLogsDownloadAttributeRequest.cc + src/model/DescribeAccessLogsDownloadAttributeResult.cc + src/model/DescribeAvailableResourceRequest.cc + src/model/DescribeAvailableResourceResult.cc + src/model/DescribeCACertificatesRequest.cc + src/model/DescribeCACertificatesResult.cc + src/model/DescribeDomainExtensionAttributeRequest.cc + src/model/DescribeDomainExtensionAttributeResult.cc + src/model/DescribeDomainExtensionsRequest.cc + src/model/DescribeDomainExtensionsResult.cc + src/model/DescribeHealthStatusRequest.cc + src/model/DescribeHealthStatusResult.cc + src/model/DescribeHighDefinationMonitorRequest.cc + src/model/DescribeHighDefinationMonitorResult.cc + src/model/DescribeListenerAccessControlAttributeRequest.cc + src/model/DescribeListenerAccessControlAttributeResult.cc src/model/DescribeLoadBalancerAttributeRequest.cc src/model/DescribeLoadBalancerAttributeResult.cc src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc + src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc + src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc + src/model/DescribeLoadBalancerListenersRequest.cc + src/model/DescribeLoadBalancerListenersResult.cc src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc + src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc + src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc src/model/DescribeLoadBalancersRequest.cc src/model/DescribeLoadBalancersResult.cc + src/model/DescribeMasterSlaveServerGroupAttributeRequest.cc + src/model/DescribeMasterSlaveServerGroupAttributeResult.cc + src/model/DescribeMasterSlaveServerGroupsRequest.cc + src/model/DescribeMasterSlaveServerGroupsResult.cc src/model/DescribeRegionsRequest.cc src/model/DescribeRegionsResult.cc + src/model/DescribeRuleAttributeRequest.cc + src/model/DescribeRuleAttributeResult.cc + src/model/DescribeRulesRequest.cc + src/model/DescribeRulesResult.cc + src/model/DescribeServerCertificatesRequest.cc + src/model/DescribeServerCertificatesResult.cc + src/model/DescribeTagsRequest.cc + src/model/DescribeTagsResult.cc + src/model/DescribeVServerGroupAttributeRequest.cc + src/model/DescribeVServerGroupAttributeResult.cc + src/model/DescribeVServerGroupsRequest.cc + src/model/DescribeVServerGroupsResult.cc + src/model/DescribeZonesRequest.cc + src/model/DescribeZonesResult.cc + src/model/EnableHighDefinationMonitorRequest.cc + src/model/EnableHighDefinationMonitorResult.cc + src/model/ListTLSCipherPoliciesRequest.cc + src/model/ListTLSCipherPoliciesResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc + src/model/ModifyHighDefinationMonitorRequest.cc + src/model/ModifyHighDefinationMonitorResult.cc + src/model/ModifyLoadBalancerInstanceChargeTypeRequest.cc + src/model/ModifyLoadBalancerInstanceChargeTypeResult.cc + src/model/ModifyLoadBalancerInstanceSpecRequest.cc + src/model/ModifyLoadBalancerInstanceSpecResult.cc + src/model/ModifyLoadBalancerInternetSpecRequest.cc + src/model/ModifyLoadBalancerInternetSpecResult.cc + src/model/ModifyLoadBalancerPayTypeRequest.cc + src/model/ModifyLoadBalancerPayTypeResult.cc + src/model/ModifyVServerGroupBackendServersRequest.cc + src/model/ModifyVServerGroupBackendServersResult.cc + src/model/MoveResourceGroupRequest.cc + src/model/MoveResourceGroupResult.cc + src/model/RemoveAccessControlListEntryRequest.cc + src/model/RemoveAccessControlListEntryResult.cc src/model/RemoveBackendServersRequest.cc src/model/RemoveBackendServersResult.cc + src/model/RemoveListenerWhiteListItemRequest.cc + src/model/RemoveListenerWhiteListItemResult.cc + src/model/RemoveTagsRequest.cc + src/model/RemoveTagsResult.cc + src/model/RemoveVServerGroupBackendServersRequest.cc + src/model/RemoveVServerGroupBackendServersResult.cc + src/model/SetAccessControlListAttributeRequest.cc + src/model/SetAccessControlListAttributeResult.cc + src/model/SetAccessLogsDownloadAttributeRequest.cc + src/model/SetAccessLogsDownloadAttributeResult.cc + src/model/SetBackendServersRequest.cc + src/model/SetBackendServersResult.cc + src/model/SetCACertificateNameRequest.cc + src/model/SetCACertificateNameResult.cc + src/model/SetDomainExtensionAttributeRequest.cc + src/model/SetDomainExtensionAttributeResult.cc + src/model/SetListenerAccessControlStatusRequest.cc + src/model/SetListenerAccessControlStatusResult.cc + src/model/SetLoadBalancerDeleteProtectionRequest.cc + src/model/SetLoadBalancerDeleteProtectionResult.cc src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc src/model/SetLoadBalancerHTTPListenerAttributeResult.cc - src/model/SetLoadBalancerListenerStatusRequest.cc - src/model/SetLoadBalancerListenerStatusResult.cc + src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc + src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc + src/model/SetLoadBalancerModificationProtectionRequest.cc + src/model/SetLoadBalancerModificationProtectionResult.cc src/model/SetLoadBalancerNameRequest.cc src/model/SetLoadBalancerNameResult.cc src/model/SetLoadBalancerStatusRequest.cc src/model/SetLoadBalancerStatusResult.cc src/model/SetLoadBalancerTCPListenerAttributeRequest.cc - src/model/SetLoadBalancerTCPListenerAttributeResult.cc ) + src/model/SetLoadBalancerTCPListenerAttributeResult.cc + src/model/SetLoadBalancerUDPListenerAttributeRequest.cc + src/model/SetLoadBalancerUDPListenerAttributeResult.cc + src/model/SetRuleRequest.cc + src/model/SetRuleResult.cc + src/model/SetServerCertificateNameRequest.cc + src/model/SetServerCertificateNameResult.cc + src/model/SetTLSCipherPolicyAttributeRequest.cc + src/model/SetTLSCipherPolicyAttributeResult.cc + src/model/SetVServerGroupAttributeRequest.cc + src/model/SetVServerGroupAttributeResult.cc + src/model/StartLoadBalancerListenerRequest.cc + src/model/StartLoadBalancerListenerResult.cc + src/model/StopLoadBalancerListenerRequest.cc + src/model/StopLoadBalancerListenerResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc + src/model/UploadCACertificateRequest.cc + src/model/UploadCACertificateResult.cc + src/model/UploadServerCertificateRequest.cc + src/model/UploadServerCertificateResult.cc ) add_library(slb ${LIB_TYPE} ${slb_public_header} diff --git a/slb/include/alibabacloud/slb/SlbClient.h b/slb/include/alibabacloud/slb/SlbClient.h index a20edeb56..5c5a5cdc4 100644 --- a/slb/include/alibabacloud/slb/SlbClient.h +++ b/slb/include/alibabacloud/slb/SlbClient.h @@ -22,42 +22,192 @@ #include #include #include "SlbExport.h" +#include "model/AddAccessControlListEntryRequest.h" +#include "model/AddAccessControlListEntryResult.h" #include "model/AddBackendServersRequest.h" #include "model/AddBackendServersResult.h" +#include "model/AddListenerWhiteListItemRequest.h" +#include "model/AddListenerWhiteListItemResult.h" +#include "model/AddTagsRequest.h" +#include "model/AddTagsResult.h" +#include "model/AddVServerGroupBackendServersRequest.h" +#include "model/AddVServerGroupBackendServersResult.h" +#include "model/CreateAccessControlListRequest.h" +#include "model/CreateAccessControlListResult.h" +#include "model/CreateDomainExtensionRequest.h" +#include "model/CreateDomainExtensionResult.h" #include "model/CreateLoadBalancerRequest.h" #include "model/CreateLoadBalancerResult.h" #include "model/CreateLoadBalancerHTTPListenerRequest.h" #include "model/CreateLoadBalancerHTTPListenerResult.h" +#include "model/CreateLoadBalancerHTTPSListenerRequest.h" +#include "model/CreateLoadBalancerHTTPSListenerResult.h" #include "model/CreateLoadBalancerTCPListenerRequest.h" #include "model/CreateLoadBalancerTCPListenerResult.h" +#include "model/CreateLoadBalancerUDPListenerRequest.h" +#include "model/CreateLoadBalancerUDPListenerResult.h" +#include "model/CreateMasterSlaveServerGroupRequest.h" +#include "model/CreateMasterSlaveServerGroupResult.h" +#include "model/CreateRulesRequest.h" +#include "model/CreateRulesResult.h" +#include "model/CreateTLSCipherPolicyRequest.h" +#include "model/CreateTLSCipherPolicyResult.h" +#include "model/CreateVServerGroupRequest.h" +#include "model/CreateVServerGroupResult.h" +#include "model/DeleteAccessControlListRequest.h" +#include "model/DeleteAccessControlListResult.h" +#include "model/DeleteAccessLogsDownloadAttributeRequest.h" +#include "model/DeleteAccessLogsDownloadAttributeResult.h" +#include "model/DeleteCACertificateRequest.h" +#include "model/DeleteCACertificateResult.h" +#include "model/DeleteDomainExtensionRequest.h" +#include "model/DeleteDomainExtensionResult.h" #include "model/DeleteLoadBalancerRequest.h" #include "model/DeleteLoadBalancerResult.h" #include "model/DeleteLoadBalancerListenerRequest.h" #include "model/DeleteLoadBalancerListenerResult.h" -#include "model/DescribeBackendServersRequest.h" -#include "model/DescribeBackendServersResult.h" +#include "model/DeleteMasterSlaveServerGroupRequest.h" +#include "model/DeleteMasterSlaveServerGroupResult.h" +#include "model/DeleteRulesRequest.h" +#include "model/DeleteRulesResult.h" +#include "model/DeleteServerCertificateRequest.h" +#include "model/DeleteServerCertificateResult.h" +#include "model/DeleteTLSCipherPolicyRequest.h" +#include "model/DeleteTLSCipherPolicyResult.h" +#include "model/DeleteVServerGroupRequest.h" +#include "model/DeleteVServerGroupResult.h" +#include "model/DescribeAccessControlListAttributeRequest.h" +#include "model/DescribeAccessControlListAttributeResult.h" +#include "model/DescribeAccessControlListsRequest.h" +#include "model/DescribeAccessControlListsResult.h" +#include "model/DescribeAccessLogsDownloadAttributeRequest.h" +#include "model/DescribeAccessLogsDownloadAttributeResult.h" +#include "model/DescribeAvailableResourceRequest.h" +#include "model/DescribeAvailableResourceResult.h" +#include "model/DescribeCACertificatesRequest.h" +#include "model/DescribeCACertificatesResult.h" +#include "model/DescribeDomainExtensionAttributeRequest.h" +#include "model/DescribeDomainExtensionAttributeResult.h" +#include "model/DescribeDomainExtensionsRequest.h" +#include "model/DescribeDomainExtensionsResult.h" +#include "model/DescribeHealthStatusRequest.h" +#include "model/DescribeHealthStatusResult.h" +#include "model/DescribeHighDefinationMonitorRequest.h" +#include "model/DescribeHighDefinationMonitorResult.h" +#include "model/DescribeListenerAccessControlAttributeRequest.h" +#include "model/DescribeListenerAccessControlAttributeResult.h" #include "model/DescribeLoadBalancerAttributeRequest.h" #include "model/DescribeLoadBalancerAttributeResult.h" #include "model/DescribeLoadBalancerHTTPListenerAttributeRequest.h" #include "model/DescribeLoadBalancerHTTPListenerAttributeResult.h" +#include "model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h" +#include "model/DescribeLoadBalancerHTTPSListenerAttributeResult.h" +#include "model/DescribeLoadBalancerListenersRequest.h" +#include "model/DescribeLoadBalancerListenersResult.h" #include "model/DescribeLoadBalancerTCPListenerAttributeRequest.h" #include "model/DescribeLoadBalancerTCPListenerAttributeResult.h" +#include "model/DescribeLoadBalancerUDPListenerAttributeRequest.h" +#include "model/DescribeLoadBalancerUDPListenerAttributeResult.h" #include "model/DescribeLoadBalancersRequest.h" #include "model/DescribeLoadBalancersResult.h" +#include "model/DescribeMasterSlaveServerGroupAttributeRequest.h" +#include "model/DescribeMasterSlaveServerGroupAttributeResult.h" +#include "model/DescribeMasterSlaveServerGroupsRequest.h" +#include "model/DescribeMasterSlaveServerGroupsResult.h" #include "model/DescribeRegionsRequest.h" #include "model/DescribeRegionsResult.h" +#include "model/DescribeRuleAttributeRequest.h" +#include "model/DescribeRuleAttributeResult.h" +#include "model/DescribeRulesRequest.h" +#include "model/DescribeRulesResult.h" +#include "model/DescribeServerCertificatesRequest.h" +#include "model/DescribeServerCertificatesResult.h" +#include "model/DescribeTagsRequest.h" +#include "model/DescribeTagsResult.h" +#include "model/DescribeVServerGroupAttributeRequest.h" +#include "model/DescribeVServerGroupAttributeResult.h" +#include "model/DescribeVServerGroupsRequest.h" +#include "model/DescribeVServerGroupsResult.h" +#include "model/DescribeZonesRequest.h" +#include "model/DescribeZonesResult.h" +#include "model/EnableHighDefinationMonitorRequest.h" +#include "model/EnableHighDefinationMonitorResult.h" +#include "model/ListTLSCipherPoliciesRequest.h" +#include "model/ListTLSCipherPoliciesResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" +#include "model/ModifyHighDefinationMonitorRequest.h" +#include "model/ModifyHighDefinationMonitorResult.h" +#include "model/ModifyLoadBalancerInstanceChargeTypeRequest.h" +#include "model/ModifyLoadBalancerInstanceChargeTypeResult.h" +#include "model/ModifyLoadBalancerInstanceSpecRequest.h" +#include "model/ModifyLoadBalancerInstanceSpecResult.h" +#include "model/ModifyLoadBalancerInternetSpecRequest.h" +#include "model/ModifyLoadBalancerInternetSpecResult.h" +#include "model/ModifyLoadBalancerPayTypeRequest.h" +#include "model/ModifyLoadBalancerPayTypeResult.h" +#include "model/ModifyVServerGroupBackendServersRequest.h" +#include "model/ModifyVServerGroupBackendServersResult.h" +#include "model/MoveResourceGroupRequest.h" +#include "model/MoveResourceGroupResult.h" +#include "model/RemoveAccessControlListEntryRequest.h" +#include "model/RemoveAccessControlListEntryResult.h" #include "model/RemoveBackendServersRequest.h" #include "model/RemoveBackendServersResult.h" +#include "model/RemoveListenerWhiteListItemRequest.h" +#include "model/RemoveListenerWhiteListItemResult.h" +#include "model/RemoveTagsRequest.h" +#include "model/RemoveTagsResult.h" +#include "model/RemoveVServerGroupBackendServersRequest.h" +#include "model/RemoveVServerGroupBackendServersResult.h" +#include "model/SetAccessControlListAttributeRequest.h" +#include "model/SetAccessControlListAttributeResult.h" +#include "model/SetAccessLogsDownloadAttributeRequest.h" +#include "model/SetAccessLogsDownloadAttributeResult.h" +#include "model/SetBackendServersRequest.h" +#include "model/SetBackendServersResult.h" +#include "model/SetCACertificateNameRequest.h" +#include "model/SetCACertificateNameResult.h" +#include "model/SetDomainExtensionAttributeRequest.h" +#include "model/SetDomainExtensionAttributeResult.h" +#include "model/SetListenerAccessControlStatusRequest.h" +#include "model/SetListenerAccessControlStatusResult.h" +#include "model/SetLoadBalancerDeleteProtectionRequest.h" +#include "model/SetLoadBalancerDeleteProtectionResult.h" #include "model/SetLoadBalancerHTTPListenerAttributeRequest.h" #include "model/SetLoadBalancerHTTPListenerAttributeResult.h" -#include "model/SetLoadBalancerListenerStatusRequest.h" -#include "model/SetLoadBalancerListenerStatusResult.h" +#include "model/SetLoadBalancerHTTPSListenerAttributeRequest.h" +#include "model/SetLoadBalancerHTTPSListenerAttributeResult.h" +#include "model/SetLoadBalancerModificationProtectionRequest.h" +#include "model/SetLoadBalancerModificationProtectionResult.h" #include "model/SetLoadBalancerNameRequest.h" #include "model/SetLoadBalancerNameResult.h" #include "model/SetLoadBalancerStatusRequest.h" #include "model/SetLoadBalancerStatusResult.h" #include "model/SetLoadBalancerTCPListenerAttributeRequest.h" #include "model/SetLoadBalancerTCPListenerAttributeResult.h" +#include "model/SetLoadBalancerUDPListenerAttributeRequest.h" +#include "model/SetLoadBalancerUDPListenerAttributeResult.h" +#include "model/SetRuleRequest.h" +#include "model/SetRuleResult.h" +#include "model/SetServerCertificateNameRequest.h" +#include "model/SetServerCertificateNameResult.h" +#include "model/SetTLSCipherPolicyAttributeRequest.h" +#include "model/SetTLSCipherPolicyAttributeResult.h" +#include "model/SetVServerGroupAttributeRequest.h" +#include "model/SetVServerGroupAttributeResult.h" +#include "model/StartLoadBalancerListenerRequest.h" +#include "model/StartLoadBalancerListenerResult.h" +#include "model/StopLoadBalancerListenerRequest.h" +#include "model/StopLoadBalancerListenerResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" +#include "model/UploadCACertificateRequest.h" +#include "model/UploadCACertificateResult.h" +#include "model/UploadServerCertificateRequest.h" +#include "model/UploadServerCertificateResult.h" namespace AlibabaCloud @@ -67,51 +217,243 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT SlbClient : public RpcServiceClient { public: + typedef Outcome AddAccessControlListEntryOutcome; + typedef std::future AddAccessControlListEntryOutcomeCallable; + typedef std::function&)> AddAccessControlListEntryAsyncHandler; typedef Outcome AddBackendServersOutcome; typedef std::future AddBackendServersOutcomeCallable; typedef std::function&)> AddBackendServersAsyncHandler; + typedef Outcome AddListenerWhiteListItemOutcome; + typedef std::future AddListenerWhiteListItemOutcomeCallable; + typedef std::function&)> AddListenerWhiteListItemAsyncHandler; + typedef Outcome AddTagsOutcome; + typedef std::future AddTagsOutcomeCallable; + typedef std::function&)> AddTagsAsyncHandler; + typedef Outcome AddVServerGroupBackendServersOutcome; + typedef std::future AddVServerGroupBackendServersOutcomeCallable; + typedef std::function&)> AddVServerGroupBackendServersAsyncHandler; + typedef Outcome CreateAccessControlListOutcome; + typedef std::future CreateAccessControlListOutcomeCallable; + typedef std::function&)> CreateAccessControlListAsyncHandler; + typedef Outcome CreateDomainExtensionOutcome; + typedef std::future CreateDomainExtensionOutcomeCallable; + typedef std::function&)> CreateDomainExtensionAsyncHandler; typedef Outcome CreateLoadBalancerOutcome; typedef std::future CreateLoadBalancerOutcomeCallable; typedef std::function&)> CreateLoadBalancerAsyncHandler; typedef Outcome CreateLoadBalancerHTTPListenerOutcome; typedef std::future CreateLoadBalancerHTTPListenerOutcomeCallable; typedef std::function&)> CreateLoadBalancerHTTPListenerAsyncHandler; + typedef Outcome CreateLoadBalancerHTTPSListenerOutcome; + typedef std::future CreateLoadBalancerHTTPSListenerOutcomeCallable; + typedef std::function&)> CreateLoadBalancerHTTPSListenerAsyncHandler; typedef Outcome CreateLoadBalancerTCPListenerOutcome; typedef std::future CreateLoadBalancerTCPListenerOutcomeCallable; typedef std::function&)> CreateLoadBalancerTCPListenerAsyncHandler; + typedef Outcome CreateLoadBalancerUDPListenerOutcome; + typedef std::future CreateLoadBalancerUDPListenerOutcomeCallable; + typedef std::function&)> CreateLoadBalancerUDPListenerAsyncHandler; + typedef Outcome CreateMasterSlaveServerGroupOutcome; + typedef std::future CreateMasterSlaveServerGroupOutcomeCallable; + typedef std::function&)> CreateMasterSlaveServerGroupAsyncHandler; + typedef Outcome CreateRulesOutcome; + typedef std::future CreateRulesOutcomeCallable; + typedef std::function&)> CreateRulesAsyncHandler; + typedef Outcome CreateTLSCipherPolicyOutcome; + typedef std::future CreateTLSCipherPolicyOutcomeCallable; + typedef std::function&)> CreateTLSCipherPolicyAsyncHandler; + typedef Outcome CreateVServerGroupOutcome; + typedef std::future CreateVServerGroupOutcomeCallable; + typedef std::function&)> CreateVServerGroupAsyncHandler; + typedef Outcome DeleteAccessControlListOutcome; + typedef std::future DeleteAccessControlListOutcomeCallable; + typedef std::function&)> DeleteAccessControlListAsyncHandler; + typedef Outcome DeleteAccessLogsDownloadAttributeOutcome; + typedef std::future DeleteAccessLogsDownloadAttributeOutcomeCallable; + typedef std::function&)> DeleteAccessLogsDownloadAttributeAsyncHandler; + typedef Outcome DeleteCACertificateOutcome; + typedef std::future DeleteCACertificateOutcomeCallable; + typedef std::function&)> DeleteCACertificateAsyncHandler; + typedef Outcome DeleteDomainExtensionOutcome; + typedef std::future DeleteDomainExtensionOutcomeCallable; + typedef std::function&)> DeleteDomainExtensionAsyncHandler; typedef Outcome DeleteLoadBalancerOutcome; typedef std::future DeleteLoadBalancerOutcomeCallable; typedef std::function&)> DeleteLoadBalancerAsyncHandler; typedef Outcome DeleteLoadBalancerListenerOutcome; typedef std::future DeleteLoadBalancerListenerOutcomeCallable; typedef std::function&)> DeleteLoadBalancerListenerAsyncHandler; - typedef Outcome DescribeBackendServersOutcome; - typedef std::future DescribeBackendServersOutcomeCallable; - typedef std::function&)> DescribeBackendServersAsyncHandler; + typedef Outcome DeleteMasterSlaveServerGroupOutcome; + typedef std::future DeleteMasterSlaveServerGroupOutcomeCallable; + typedef std::function&)> DeleteMasterSlaveServerGroupAsyncHandler; + typedef Outcome DeleteRulesOutcome; + typedef std::future DeleteRulesOutcomeCallable; + typedef std::function&)> DeleteRulesAsyncHandler; + typedef Outcome DeleteServerCertificateOutcome; + typedef std::future DeleteServerCertificateOutcomeCallable; + typedef std::function&)> DeleteServerCertificateAsyncHandler; + typedef Outcome DeleteTLSCipherPolicyOutcome; + typedef std::future DeleteTLSCipherPolicyOutcomeCallable; + typedef std::function&)> DeleteTLSCipherPolicyAsyncHandler; + typedef Outcome DeleteVServerGroupOutcome; + typedef std::future DeleteVServerGroupOutcomeCallable; + typedef std::function&)> DeleteVServerGroupAsyncHandler; + typedef Outcome DescribeAccessControlListAttributeOutcome; + typedef std::future DescribeAccessControlListAttributeOutcomeCallable; + typedef std::function&)> DescribeAccessControlListAttributeAsyncHandler; + typedef Outcome DescribeAccessControlListsOutcome; + typedef std::future DescribeAccessControlListsOutcomeCallable; + typedef std::function&)> DescribeAccessControlListsAsyncHandler; + typedef Outcome DescribeAccessLogsDownloadAttributeOutcome; + typedef std::future DescribeAccessLogsDownloadAttributeOutcomeCallable; + typedef std::function&)> DescribeAccessLogsDownloadAttributeAsyncHandler; + typedef Outcome DescribeAvailableResourceOutcome; + typedef std::future DescribeAvailableResourceOutcomeCallable; + typedef std::function&)> DescribeAvailableResourceAsyncHandler; + typedef Outcome DescribeCACertificatesOutcome; + typedef std::future DescribeCACertificatesOutcomeCallable; + typedef std::function&)> DescribeCACertificatesAsyncHandler; + typedef Outcome DescribeDomainExtensionAttributeOutcome; + typedef std::future DescribeDomainExtensionAttributeOutcomeCallable; + typedef std::function&)> DescribeDomainExtensionAttributeAsyncHandler; + typedef Outcome DescribeDomainExtensionsOutcome; + typedef std::future DescribeDomainExtensionsOutcomeCallable; + typedef std::function&)> DescribeDomainExtensionsAsyncHandler; + typedef Outcome DescribeHealthStatusOutcome; + typedef std::future DescribeHealthStatusOutcomeCallable; + typedef std::function&)> DescribeHealthStatusAsyncHandler; + typedef Outcome DescribeHighDefinationMonitorOutcome; + typedef std::future DescribeHighDefinationMonitorOutcomeCallable; + typedef std::function&)> DescribeHighDefinationMonitorAsyncHandler; + typedef Outcome DescribeListenerAccessControlAttributeOutcome; + typedef std::future DescribeListenerAccessControlAttributeOutcomeCallable; + typedef std::function&)> DescribeListenerAccessControlAttributeAsyncHandler; typedef Outcome DescribeLoadBalancerAttributeOutcome; typedef std::future DescribeLoadBalancerAttributeOutcomeCallable; typedef std::function&)> DescribeLoadBalancerAttributeAsyncHandler; typedef Outcome DescribeLoadBalancerHTTPListenerAttributeOutcome; typedef std::future DescribeLoadBalancerHTTPListenerAttributeOutcomeCallable; typedef std::function&)> DescribeLoadBalancerHTTPListenerAttributeAsyncHandler; + typedef Outcome DescribeLoadBalancerHTTPSListenerAttributeOutcome; + typedef std::future DescribeLoadBalancerHTTPSListenerAttributeOutcomeCallable; + typedef std::function&)> DescribeLoadBalancerHTTPSListenerAttributeAsyncHandler; + typedef Outcome DescribeLoadBalancerListenersOutcome; + typedef std::future DescribeLoadBalancerListenersOutcomeCallable; + typedef std::function&)> DescribeLoadBalancerListenersAsyncHandler; typedef Outcome DescribeLoadBalancerTCPListenerAttributeOutcome; typedef std::future DescribeLoadBalancerTCPListenerAttributeOutcomeCallable; typedef std::function&)> DescribeLoadBalancerTCPListenerAttributeAsyncHandler; + typedef Outcome DescribeLoadBalancerUDPListenerAttributeOutcome; + typedef std::future DescribeLoadBalancerUDPListenerAttributeOutcomeCallable; + typedef std::function&)> DescribeLoadBalancerUDPListenerAttributeAsyncHandler; typedef Outcome DescribeLoadBalancersOutcome; typedef std::future DescribeLoadBalancersOutcomeCallable; typedef std::function&)> DescribeLoadBalancersAsyncHandler; + typedef Outcome DescribeMasterSlaveServerGroupAttributeOutcome; + typedef std::future DescribeMasterSlaveServerGroupAttributeOutcomeCallable; + typedef std::function&)> DescribeMasterSlaveServerGroupAttributeAsyncHandler; + typedef Outcome DescribeMasterSlaveServerGroupsOutcome; + typedef std::future DescribeMasterSlaveServerGroupsOutcomeCallable; + typedef std::function&)> DescribeMasterSlaveServerGroupsAsyncHandler; typedef Outcome DescribeRegionsOutcome; typedef std::future DescribeRegionsOutcomeCallable; typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DescribeRuleAttributeOutcome; + typedef std::future DescribeRuleAttributeOutcomeCallable; + typedef std::function&)> DescribeRuleAttributeAsyncHandler; + typedef Outcome DescribeRulesOutcome; + typedef std::future DescribeRulesOutcomeCallable; + typedef std::function&)> DescribeRulesAsyncHandler; + typedef Outcome DescribeServerCertificatesOutcome; + typedef std::future DescribeServerCertificatesOutcomeCallable; + typedef std::function&)> DescribeServerCertificatesAsyncHandler; + typedef Outcome DescribeTagsOutcome; + typedef std::future DescribeTagsOutcomeCallable; + typedef std::function&)> DescribeTagsAsyncHandler; + typedef Outcome DescribeVServerGroupAttributeOutcome; + typedef std::future DescribeVServerGroupAttributeOutcomeCallable; + typedef std::function&)> DescribeVServerGroupAttributeAsyncHandler; + typedef Outcome DescribeVServerGroupsOutcome; + typedef std::future DescribeVServerGroupsOutcomeCallable; + typedef std::function&)> DescribeVServerGroupsAsyncHandler; + typedef Outcome DescribeZonesOutcome; + typedef std::future DescribeZonesOutcomeCallable; + typedef std::function&)> DescribeZonesAsyncHandler; + typedef Outcome EnableHighDefinationMonitorOutcome; + typedef std::future EnableHighDefinationMonitorOutcomeCallable; + typedef std::function&)> EnableHighDefinationMonitorAsyncHandler; + typedef Outcome ListTLSCipherPoliciesOutcome; + typedef std::future ListTLSCipherPoliciesOutcomeCallable; + typedef std::function&)> ListTLSCipherPoliciesAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; + typedef Outcome ModifyHighDefinationMonitorOutcome; + typedef std::future ModifyHighDefinationMonitorOutcomeCallable; + typedef std::function&)> ModifyHighDefinationMonitorAsyncHandler; + typedef Outcome ModifyLoadBalancerInstanceChargeTypeOutcome; + typedef std::future ModifyLoadBalancerInstanceChargeTypeOutcomeCallable; + typedef std::function&)> ModifyLoadBalancerInstanceChargeTypeAsyncHandler; + typedef Outcome ModifyLoadBalancerInstanceSpecOutcome; + typedef std::future ModifyLoadBalancerInstanceSpecOutcomeCallable; + typedef std::function&)> ModifyLoadBalancerInstanceSpecAsyncHandler; + typedef Outcome ModifyLoadBalancerInternetSpecOutcome; + typedef std::future ModifyLoadBalancerInternetSpecOutcomeCallable; + typedef std::function&)> ModifyLoadBalancerInternetSpecAsyncHandler; + typedef Outcome ModifyLoadBalancerPayTypeOutcome; + typedef std::future ModifyLoadBalancerPayTypeOutcomeCallable; + typedef std::function&)> ModifyLoadBalancerPayTypeAsyncHandler; + typedef Outcome ModifyVServerGroupBackendServersOutcome; + typedef std::future ModifyVServerGroupBackendServersOutcomeCallable; + typedef std::function&)> ModifyVServerGroupBackendServersAsyncHandler; + typedef Outcome MoveResourceGroupOutcome; + typedef std::future MoveResourceGroupOutcomeCallable; + typedef std::function&)> MoveResourceGroupAsyncHandler; + typedef Outcome RemoveAccessControlListEntryOutcome; + typedef std::future RemoveAccessControlListEntryOutcomeCallable; + typedef std::function&)> RemoveAccessControlListEntryAsyncHandler; typedef Outcome RemoveBackendServersOutcome; typedef std::future RemoveBackendServersOutcomeCallable; typedef std::function&)> RemoveBackendServersAsyncHandler; + typedef Outcome RemoveListenerWhiteListItemOutcome; + typedef std::future RemoveListenerWhiteListItemOutcomeCallable; + typedef std::function&)> RemoveListenerWhiteListItemAsyncHandler; + typedef Outcome RemoveTagsOutcome; + typedef std::future RemoveTagsOutcomeCallable; + typedef std::function&)> RemoveTagsAsyncHandler; + typedef Outcome RemoveVServerGroupBackendServersOutcome; + typedef std::future RemoveVServerGroupBackendServersOutcomeCallable; + typedef std::function&)> RemoveVServerGroupBackendServersAsyncHandler; + typedef Outcome SetAccessControlListAttributeOutcome; + typedef std::future SetAccessControlListAttributeOutcomeCallable; + typedef std::function&)> SetAccessControlListAttributeAsyncHandler; + typedef Outcome SetAccessLogsDownloadAttributeOutcome; + typedef std::future SetAccessLogsDownloadAttributeOutcomeCallable; + typedef std::function&)> SetAccessLogsDownloadAttributeAsyncHandler; + typedef Outcome SetBackendServersOutcome; + typedef std::future SetBackendServersOutcomeCallable; + typedef std::function&)> SetBackendServersAsyncHandler; + typedef Outcome SetCACertificateNameOutcome; + typedef std::future SetCACertificateNameOutcomeCallable; + typedef std::function&)> SetCACertificateNameAsyncHandler; + typedef Outcome SetDomainExtensionAttributeOutcome; + typedef std::future SetDomainExtensionAttributeOutcomeCallable; + typedef std::function&)> SetDomainExtensionAttributeAsyncHandler; + typedef Outcome SetListenerAccessControlStatusOutcome; + typedef std::future SetListenerAccessControlStatusOutcomeCallable; + typedef std::function&)> SetListenerAccessControlStatusAsyncHandler; + typedef Outcome SetLoadBalancerDeleteProtectionOutcome; + typedef std::future SetLoadBalancerDeleteProtectionOutcomeCallable; + typedef std::function&)> SetLoadBalancerDeleteProtectionAsyncHandler; typedef Outcome SetLoadBalancerHTTPListenerAttributeOutcome; typedef std::future SetLoadBalancerHTTPListenerAttributeOutcomeCallable; typedef std::function&)> SetLoadBalancerHTTPListenerAttributeAsyncHandler; - typedef Outcome SetLoadBalancerListenerStatusOutcome; - typedef std::future SetLoadBalancerListenerStatusOutcomeCallable; - typedef std::function&)> SetLoadBalancerListenerStatusAsyncHandler; + typedef Outcome SetLoadBalancerHTTPSListenerAttributeOutcome; + typedef std::future SetLoadBalancerHTTPSListenerAttributeOutcomeCallable; + typedef std::function&)> SetLoadBalancerHTTPSListenerAttributeAsyncHandler; + typedef Outcome SetLoadBalancerModificationProtectionOutcome; + typedef std::future SetLoadBalancerModificationProtectionOutcomeCallable; + typedef std::function&)> SetLoadBalancerModificationProtectionAsyncHandler; typedef Outcome SetLoadBalancerNameOutcome; typedef std::future SetLoadBalancerNameOutcomeCallable; typedef std::function&)> SetLoadBalancerNameAsyncHandler; @@ -121,56 +463,281 @@ namespace AlibabaCloud typedef Outcome SetLoadBalancerTCPListenerAttributeOutcome; typedef std::future SetLoadBalancerTCPListenerAttributeOutcomeCallable; typedef std::function&)> SetLoadBalancerTCPListenerAttributeAsyncHandler; + typedef Outcome SetLoadBalancerUDPListenerAttributeOutcome; + typedef std::future SetLoadBalancerUDPListenerAttributeOutcomeCallable; + typedef std::function&)> SetLoadBalancerUDPListenerAttributeAsyncHandler; + typedef Outcome SetRuleOutcome; + typedef std::future SetRuleOutcomeCallable; + typedef std::function&)> SetRuleAsyncHandler; + typedef Outcome SetServerCertificateNameOutcome; + typedef std::future SetServerCertificateNameOutcomeCallable; + typedef std::function&)> SetServerCertificateNameAsyncHandler; + typedef Outcome SetTLSCipherPolicyAttributeOutcome; + typedef std::future SetTLSCipherPolicyAttributeOutcomeCallable; + typedef std::function&)> SetTLSCipherPolicyAttributeAsyncHandler; + typedef Outcome SetVServerGroupAttributeOutcome; + typedef std::future SetVServerGroupAttributeOutcomeCallable; + typedef std::function&)> SetVServerGroupAttributeAsyncHandler; + typedef Outcome StartLoadBalancerListenerOutcome; + typedef std::future StartLoadBalancerListenerOutcomeCallable; + typedef std::function&)> StartLoadBalancerListenerAsyncHandler; + typedef Outcome StopLoadBalancerListenerOutcome; + typedef std::future StopLoadBalancerListenerOutcomeCallable; + typedef std::function&)> StopLoadBalancerListenerAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; + typedef Outcome UploadCACertificateOutcome; + typedef std::future UploadCACertificateOutcomeCallable; + typedef std::function&)> UploadCACertificateAsyncHandler; + typedef Outcome UploadServerCertificateOutcome; + typedef std::future UploadServerCertificateOutcomeCallable; + typedef std::function&)> UploadServerCertificateAsyncHandler; SlbClient(const Credentials &credentials, const ClientConfiguration &configuration); SlbClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); SlbClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~SlbClient(); + AddAccessControlListEntryOutcome addAccessControlListEntry(const Model::AddAccessControlListEntryRequest &request)const; + void addAccessControlListEntryAsync(const Model::AddAccessControlListEntryRequest& request, const AddAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddAccessControlListEntryOutcomeCallable addAccessControlListEntryCallable(const Model::AddAccessControlListEntryRequest& request) const; AddBackendServersOutcome addBackendServers(const Model::AddBackendServersRequest &request)const; void addBackendServersAsync(const Model::AddBackendServersRequest& request, const AddBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddBackendServersOutcomeCallable addBackendServersCallable(const Model::AddBackendServersRequest& request) const; + AddListenerWhiteListItemOutcome addListenerWhiteListItem(const Model::AddListenerWhiteListItemRequest &request)const; + void addListenerWhiteListItemAsync(const Model::AddListenerWhiteListItemRequest& request, const AddListenerWhiteListItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddListenerWhiteListItemOutcomeCallable addListenerWhiteListItemCallable(const Model::AddListenerWhiteListItemRequest& request) const; + AddTagsOutcome addTags(const Model::AddTagsRequest &request)const; + void addTagsAsync(const Model::AddTagsRequest& request, const AddTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddTagsOutcomeCallable addTagsCallable(const Model::AddTagsRequest& request) const; + AddVServerGroupBackendServersOutcome addVServerGroupBackendServers(const Model::AddVServerGroupBackendServersRequest &request)const; + void addVServerGroupBackendServersAsync(const Model::AddVServerGroupBackendServersRequest& request, const AddVServerGroupBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddVServerGroupBackendServersOutcomeCallable addVServerGroupBackendServersCallable(const Model::AddVServerGroupBackendServersRequest& request) const; + CreateAccessControlListOutcome createAccessControlList(const Model::CreateAccessControlListRequest &request)const; + void createAccessControlListAsync(const Model::CreateAccessControlListRequest& request, const CreateAccessControlListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateAccessControlListOutcomeCallable createAccessControlListCallable(const Model::CreateAccessControlListRequest& request) const; + CreateDomainExtensionOutcome createDomainExtension(const Model::CreateDomainExtensionRequest &request)const; + void createDomainExtensionAsync(const Model::CreateDomainExtensionRequest& request, const CreateDomainExtensionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDomainExtensionOutcomeCallable createDomainExtensionCallable(const Model::CreateDomainExtensionRequest& request) const; CreateLoadBalancerOutcome createLoadBalancer(const Model::CreateLoadBalancerRequest &request)const; void createLoadBalancerAsync(const Model::CreateLoadBalancerRequest& request, const CreateLoadBalancerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLoadBalancerOutcomeCallable createLoadBalancerCallable(const Model::CreateLoadBalancerRequest& request) const; CreateLoadBalancerHTTPListenerOutcome createLoadBalancerHTTPListener(const Model::CreateLoadBalancerHTTPListenerRequest &request)const; void createLoadBalancerHTTPListenerAsync(const Model::CreateLoadBalancerHTTPListenerRequest& request, const CreateLoadBalancerHTTPListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLoadBalancerHTTPListenerOutcomeCallable createLoadBalancerHTTPListenerCallable(const Model::CreateLoadBalancerHTTPListenerRequest& request) const; + CreateLoadBalancerHTTPSListenerOutcome createLoadBalancerHTTPSListener(const Model::CreateLoadBalancerHTTPSListenerRequest &request)const; + void createLoadBalancerHTTPSListenerAsync(const Model::CreateLoadBalancerHTTPSListenerRequest& request, const CreateLoadBalancerHTTPSListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLoadBalancerHTTPSListenerOutcomeCallable createLoadBalancerHTTPSListenerCallable(const Model::CreateLoadBalancerHTTPSListenerRequest& request) const; CreateLoadBalancerTCPListenerOutcome createLoadBalancerTCPListener(const Model::CreateLoadBalancerTCPListenerRequest &request)const; void createLoadBalancerTCPListenerAsync(const Model::CreateLoadBalancerTCPListenerRequest& request, const CreateLoadBalancerTCPListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateLoadBalancerTCPListenerOutcomeCallable createLoadBalancerTCPListenerCallable(const Model::CreateLoadBalancerTCPListenerRequest& request) const; + CreateLoadBalancerUDPListenerOutcome createLoadBalancerUDPListener(const Model::CreateLoadBalancerUDPListenerRequest &request)const; + void createLoadBalancerUDPListenerAsync(const Model::CreateLoadBalancerUDPListenerRequest& request, const CreateLoadBalancerUDPListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateLoadBalancerUDPListenerOutcomeCallable createLoadBalancerUDPListenerCallable(const Model::CreateLoadBalancerUDPListenerRequest& request) const; + CreateMasterSlaveServerGroupOutcome createMasterSlaveServerGroup(const Model::CreateMasterSlaveServerGroupRequest &request)const; + void createMasterSlaveServerGroupAsync(const Model::CreateMasterSlaveServerGroupRequest& request, const CreateMasterSlaveServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMasterSlaveServerGroupOutcomeCallable createMasterSlaveServerGroupCallable(const Model::CreateMasterSlaveServerGroupRequest& request) const; + CreateRulesOutcome createRules(const Model::CreateRulesRequest &request)const; + void createRulesAsync(const Model::CreateRulesRequest& request, const CreateRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateRulesOutcomeCallable createRulesCallable(const Model::CreateRulesRequest& request) const; + CreateTLSCipherPolicyOutcome createTLSCipherPolicy(const Model::CreateTLSCipherPolicyRequest &request)const; + void createTLSCipherPolicyAsync(const Model::CreateTLSCipherPolicyRequest& request, const CreateTLSCipherPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTLSCipherPolicyOutcomeCallable createTLSCipherPolicyCallable(const Model::CreateTLSCipherPolicyRequest& request) const; + CreateVServerGroupOutcome createVServerGroup(const Model::CreateVServerGroupRequest &request)const; + void createVServerGroupAsync(const Model::CreateVServerGroupRequest& request, const CreateVServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVServerGroupOutcomeCallable createVServerGroupCallable(const Model::CreateVServerGroupRequest& request) const; + DeleteAccessControlListOutcome deleteAccessControlList(const Model::DeleteAccessControlListRequest &request)const; + void deleteAccessControlListAsync(const Model::DeleteAccessControlListRequest& request, const DeleteAccessControlListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccessControlListOutcomeCallable deleteAccessControlListCallable(const Model::DeleteAccessControlListRequest& request) const; + DeleteAccessLogsDownloadAttributeOutcome deleteAccessLogsDownloadAttribute(const Model::DeleteAccessLogsDownloadAttributeRequest &request)const; + void deleteAccessLogsDownloadAttributeAsync(const Model::DeleteAccessLogsDownloadAttributeRequest& request, const DeleteAccessLogsDownloadAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteAccessLogsDownloadAttributeOutcomeCallable deleteAccessLogsDownloadAttributeCallable(const Model::DeleteAccessLogsDownloadAttributeRequest& request) const; + DeleteCACertificateOutcome deleteCACertificate(const Model::DeleteCACertificateRequest &request)const; + void deleteCACertificateAsync(const Model::DeleteCACertificateRequest& request, const DeleteCACertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteCACertificateOutcomeCallable deleteCACertificateCallable(const Model::DeleteCACertificateRequest& request) const; + DeleteDomainExtensionOutcome deleteDomainExtension(const Model::DeleteDomainExtensionRequest &request)const; + void deleteDomainExtensionAsync(const Model::DeleteDomainExtensionRequest& request, const DeleteDomainExtensionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDomainExtensionOutcomeCallable deleteDomainExtensionCallable(const Model::DeleteDomainExtensionRequest& 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; DeleteLoadBalancerListenerOutcome deleteLoadBalancerListener(const Model::DeleteLoadBalancerListenerRequest &request)const; void deleteLoadBalancerListenerAsync(const Model::DeleteLoadBalancerListenerRequest& request, const DeleteLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteLoadBalancerListenerOutcomeCallable deleteLoadBalancerListenerCallable(const Model::DeleteLoadBalancerListenerRequest& request) const; - DescribeBackendServersOutcome describeBackendServers(const Model::DescribeBackendServersRequest &request)const; - void describeBackendServersAsync(const Model::DescribeBackendServersRequest& request, const DescribeBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeBackendServersOutcomeCallable describeBackendServersCallable(const Model::DescribeBackendServersRequest& request) const; + DeleteMasterSlaveServerGroupOutcome deleteMasterSlaveServerGroup(const Model::DeleteMasterSlaveServerGroupRequest &request)const; + void deleteMasterSlaveServerGroupAsync(const Model::DeleteMasterSlaveServerGroupRequest& request, const DeleteMasterSlaveServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMasterSlaveServerGroupOutcomeCallable deleteMasterSlaveServerGroupCallable(const Model::DeleteMasterSlaveServerGroupRequest& request) const; + DeleteRulesOutcome deleteRules(const Model::DeleteRulesRequest &request)const; + void deleteRulesAsync(const Model::DeleteRulesRequest& request, const DeleteRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteRulesOutcomeCallable deleteRulesCallable(const Model::DeleteRulesRequest& request) const; + DeleteServerCertificateOutcome deleteServerCertificate(const Model::DeleteServerCertificateRequest &request)const; + void deleteServerCertificateAsync(const Model::DeleteServerCertificateRequest& request, const DeleteServerCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteServerCertificateOutcomeCallable deleteServerCertificateCallable(const Model::DeleteServerCertificateRequest& request) const; + DeleteTLSCipherPolicyOutcome deleteTLSCipherPolicy(const Model::DeleteTLSCipherPolicyRequest &request)const; + void deleteTLSCipherPolicyAsync(const Model::DeleteTLSCipherPolicyRequest& request, const DeleteTLSCipherPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTLSCipherPolicyOutcomeCallable deleteTLSCipherPolicyCallable(const Model::DeleteTLSCipherPolicyRequest& request) const; + DeleteVServerGroupOutcome deleteVServerGroup(const Model::DeleteVServerGroupRequest &request)const; + void deleteVServerGroupAsync(const Model::DeleteVServerGroupRequest& request, const DeleteVServerGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVServerGroupOutcomeCallable deleteVServerGroupCallable(const Model::DeleteVServerGroupRequest& request) const; + DescribeAccessControlListAttributeOutcome describeAccessControlListAttribute(const Model::DescribeAccessControlListAttributeRequest &request)const; + void describeAccessControlListAttributeAsync(const Model::DescribeAccessControlListAttributeRequest& request, const DescribeAccessControlListAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessControlListAttributeOutcomeCallable describeAccessControlListAttributeCallable(const Model::DescribeAccessControlListAttributeRequest& request) const; + DescribeAccessControlListsOutcome describeAccessControlLists(const Model::DescribeAccessControlListsRequest &request)const; + void describeAccessControlListsAsync(const Model::DescribeAccessControlListsRequest& request, const DescribeAccessControlListsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessControlListsOutcomeCallable describeAccessControlListsCallable(const Model::DescribeAccessControlListsRequest& request) const; + DescribeAccessLogsDownloadAttributeOutcome describeAccessLogsDownloadAttribute(const Model::DescribeAccessLogsDownloadAttributeRequest &request)const; + void describeAccessLogsDownloadAttributeAsync(const Model::DescribeAccessLogsDownloadAttributeRequest& request, const DescribeAccessLogsDownloadAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAccessLogsDownloadAttributeOutcomeCallable describeAccessLogsDownloadAttributeCallable(const Model::DescribeAccessLogsDownloadAttributeRequest& request) const; + DescribeAvailableResourceOutcome describeAvailableResource(const Model::DescribeAvailableResourceRequest &request)const; + void describeAvailableResourceAsync(const Model::DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeAvailableResourceOutcomeCallable describeAvailableResourceCallable(const Model::DescribeAvailableResourceRequest& request) const; + DescribeCACertificatesOutcome describeCACertificates(const Model::DescribeCACertificatesRequest &request)const; + void describeCACertificatesAsync(const Model::DescribeCACertificatesRequest& request, const DescribeCACertificatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCACertificatesOutcomeCallable describeCACertificatesCallable(const Model::DescribeCACertificatesRequest& request) const; + DescribeDomainExtensionAttributeOutcome describeDomainExtensionAttribute(const Model::DescribeDomainExtensionAttributeRequest &request)const; + void describeDomainExtensionAttributeAsync(const Model::DescribeDomainExtensionAttributeRequest& request, const DescribeDomainExtensionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDomainExtensionAttributeOutcomeCallable describeDomainExtensionAttributeCallable(const Model::DescribeDomainExtensionAttributeRequest& request) const; + DescribeDomainExtensionsOutcome describeDomainExtensions(const Model::DescribeDomainExtensionsRequest &request)const; + void describeDomainExtensionsAsync(const Model::DescribeDomainExtensionsRequest& request, const DescribeDomainExtensionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDomainExtensionsOutcomeCallable describeDomainExtensionsCallable(const Model::DescribeDomainExtensionsRequest& request) const; + DescribeHealthStatusOutcome describeHealthStatus(const Model::DescribeHealthStatusRequest &request)const; + void describeHealthStatusAsync(const Model::DescribeHealthStatusRequest& request, const DescribeHealthStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHealthStatusOutcomeCallable describeHealthStatusCallable(const Model::DescribeHealthStatusRequest& request) const; + DescribeHighDefinationMonitorOutcome describeHighDefinationMonitor(const Model::DescribeHighDefinationMonitorRequest &request)const; + void describeHighDefinationMonitorAsync(const Model::DescribeHighDefinationMonitorRequest& request, const DescribeHighDefinationMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeHighDefinationMonitorOutcomeCallable describeHighDefinationMonitorCallable(const Model::DescribeHighDefinationMonitorRequest& request) const; + DescribeListenerAccessControlAttributeOutcome describeListenerAccessControlAttribute(const Model::DescribeListenerAccessControlAttributeRequest &request)const; + void describeListenerAccessControlAttributeAsync(const Model::DescribeListenerAccessControlAttributeRequest& request, const DescribeListenerAccessControlAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeListenerAccessControlAttributeOutcomeCallable describeListenerAccessControlAttributeCallable(const Model::DescribeListenerAccessControlAttributeRequest& request) const; DescribeLoadBalancerAttributeOutcome describeLoadBalancerAttribute(const Model::DescribeLoadBalancerAttributeRequest &request)const; void describeLoadBalancerAttributeAsync(const Model::DescribeLoadBalancerAttributeRequest& request, const DescribeLoadBalancerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLoadBalancerAttributeOutcomeCallable describeLoadBalancerAttributeCallable(const Model::DescribeLoadBalancerAttributeRequest& request) const; DescribeLoadBalancerHTTPListenerAttributeOutcome describeLoadBalancerHTTPListenerAttribute(const Model::DescribeLoadBalancerHTTPListenerAttributeRequest &request)const; void describeLoadBalancerHTTPListenerAttributeAsync(const Model::DescribeLoadBalancerHTTPListenerAttributeRequest& request, const DescribeLoadBalancerHTTPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLoadBalancerHTTPListenerAttributeOutcomeCallable describeLoadBalancerHTTPListenerAttributeCallable(const Model::DescribeLoadBalancerHTTPListenerAttributeRequest& request) const; + DescribeLoadBalancerHTTPSListenerAttributeOutcome describeLoadBalancerHTTPSListenerAttribute(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest &request)const; + void describeLoadBalancerHTTPSListenerAttributeAsync(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest& request, const DescribeLoadBalancerHTTPSListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoadBalancerHTTPSListenerAttributeOutcomeCallable describeLoadBalancerHTTPSListenerAttributeCallable(const Model::DescribeLoadBalancerHTTPSListenerAttributeRequest& request) const; + DescribeLoadBalancerListenersOutcome describeLoadBalancerListeners(const Model::DescribeLoadBalancerListenersRequest &request)const; + void describeLoadBalancerListenersAsync(const Model::DescribeLoadBalancerListenersRequest& request, const DescribeLoadBalancerListenersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoadBalancerListenersOutcomeCallable describeLoadBalancerListenersCallable(const Model::DescribeLoadBalancerListenersRequest& request) const; DescribeLoadBalancerTCPListenerAttributeOutcome describeLoadBalancerTCPListenerAttribute(const Model::DescribeLoadBalancerTCPListenerAttributeRequest &request)const; void describeLoadBalancerTCPListenerAttributeAsync(const Model::DescribeLoadBalancerTCPListenerAttributeRequest& request, const DescribeLoadBalancerTCPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLoadBalancerTCPListenerAttributeOutcomeCallable describeLoadBalancerTCPListenerAttributeCallable(const Model::DescribeLoadBalancerTCPListenerAttributeRequest& request) const; + DescribeLoadBalancerUDPListenerAttributeOutcome describeLoadBalancerUDPListenerAttribute(const Model::DescribeLoadBalancerUDPListenerAttributeRequest &request)const; + void describeLoadBalancerUDPListenerAttributeAsync(const Model::DescribeLoadBalancerUDPListenerAttributeRequest& request, const DescribeLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeLoadBalancerUDPListenerAttributeOutcomeCallable describeLoadBalancerUDPListenerAttributeCallable(const Model::DescribeLoadBalancerUDPListenerAttributeRequest& request) const; DescribeLoadBalancersOutcome describeLoadBalancers(const Model::DescribeLoadBalancersRequest &request)const; void describeLoadBalancersAsync(const Model::DescribeLoadBalancersRequest& request, const DescribeLoadBalancersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeLoadBalancersOutcomeCallable describeLoadBalancersCallable(const Model::DescribeLoadBalancersRequest& request) const; + DescribeMasterSlaveServerGroupAttributeOutcome describeMasterSlaveServerGroupAttribute(const Model::DescribeMasterSlaveServerGroupAttributeRequest &request)const; + void describeMasterSlaveServerGroupAttributeAsync(const Model::DescribeMasterSlaveServerGroupAttributeRequest& request, const DescribeMasterSlaveServerGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMasterSlaveServerGroupAttributeOutcomeCallable describeMasterSlaveServerGroupAttributeCallable(const Model::DescribeMasterSlaveServerGroupAttributeRequest& request) const; + DescribeMasterSlaveServerGroupsOutcome describeMasterSlaveServerGroups(const Model::DescribeMasterSlaveServerGroupsRequest &request)const; + void describeMasterSlaveServerGroupsAsync(const Model::DescribeMasterSlaveServerGroupsRequest& request, const DescribeMasterSlaveServerGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMasterSlaveServerGroupsOutcomeCallable describeMasterSlaveServerGroupsCallable(const Model::DescribeMasterSlaveServerGroupsRequest& 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; + DescribeRuleAttributeOutcome describeRuleAttribute(const Model::DescribeRuleAttributeRequest &request)const; + void describeRuleAttributeAsync(const Model::DescribeRuleAttributeRequest& request, const DescribeRuleAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRuleAttributeOutcomeCallable describeRuleAttributeCallable(const Model::DescribeRuleAttributeRequest& request) const; + DescribeRulesOutcome describeRules(const Model::DescribeRulesRequest &request)const; + void describeRulesAsync(const Model::DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRulesOutcomeCallable describeRulesCallable(const Model::DescribeRulesRequest& request) const; + DescribeServerCertificatesOutcome describeServerCertificates(const Model::DescribeServerCertificatesRequest &request)const; + void describeServerCertificatesAsync(const Model::DescribeServerCertificatesRequest& request, const DescribeServerCertificatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeServerCertificatesOutcomeCallable describeServerCertificatesCallable(const Model::DescribeServerCertificatesRequest& request) const; + DescribeTagsOutcome describeTags(const Model::DescribeTagsRequest &request)const; + void describeTagsAsync(const Model::DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagsOutcomeCallable describeTagsCallable(const Model::DescribeTagsRequest& request) const; + DescribeVServerGroupAttributeOutcome describeVServerGroupAttribute(const Model::DescribeVServerGroupAttributeRequest &request)const; + void describeVServerGroupAttributeAsync(const Model::DescribeVServerGroupAttributeRequest& request, const DescribeVServerGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVServerGroupAttributeOutcomeCallable describeVServerGroupAttributeCallable(const Model::DescribeVServerGroupAttributeRequest& request) const; + DescribeVServerGroupsOutcome describeVServerGroups(const Model::DescribeVServerGroupsRequest &request)const; + void describeVServerGroupsAsync(const Model::DescribeVServerGroupsRequest& request, const DescribeVServerGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeVServerGroupsOutcomeCallable describeVServerGroupsCallable(const Model::DescribeVServerGroupsRequest& 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; + EnableHighDefinationMonitorOutcome enableHighDefinationMonitor(const Model::EnableHighDefinationMonitorRequest &request)const; + void enableHighDefinationMonitorAsync(const Model::EnableHighDefinationMonitorRequest& request, const EnableHighDefinationMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableHighDefinationMonitorOutcomeCallable enableHighDefinationMonitorCallable(const Model::EnableHighDefinationMonitorRequest& request) const; + ListTLSCipherPoliciesOutcome listTLSCipherPolicies(const Model::ListTLSCipherPoliciesRequest &request)const; + void listTLSCipherPoliciesAsync(const Model::ListTLSCipherPoliciesRequest& request, const ListTLSCipherPoliciesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTLSCipherPoliciesOutcomeCallable listTLSCipherPoliciesCallable(const Model::ListTLSCipherPoliciesRequest& 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; + ModifyHighDefinationMonitorOutcome modifyHighDefinationMonitor(const Model::ModifyHighDefinationMonitorRequest &request)const; + void modifyHighDefinationMonitorAsync(const Model::ModifyHighDefinationMonitorRequest& request, const ModifyHighDefinationMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyHighDefinationMonitorOutcomeCallable modifyHighDefinationMonitorCallable(const Model::ModifyHighDefinationMonitorRequest& request) const; + ModifyLoadBalancerInstanceChargeTypeOutcome modifyLoadBalancerInstanceChargeType(const Model::ModifyLoadBalancerInstanceChargeTypeRequest &request)const; + void modifyLoadBalancerInstanceChargeTypeAsync(const Model::ModifyLoadBalancerInstanceChargeTypeRequest& request, const ModifyLoadBalancerInstanceChargeTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLoadBalancerInstanceChargeTypeOutcomeCallable modifyLoadBalancerInstanceChargeTypeCallable(const Model::ModifyLoadBalancerInstanceChargeTypeRequest& request) const; + ModifyLoadBalancerInstanceSpecOutcome modifyLoadBalancerInstanceSpec(const Model::ModifyLoadBalancerInstanceSpecRequest &request)const; + void modifyLoadBalancerInstanceSpecAsync(const Model::ModifyLoadBalancerInstanceSpecRequest& request, const ModifyLoadBalancerInstanceSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLoadBalancerInstanceSpecOutcomeCallable modifyLoadBalancerInstanceSpecCallable(const Model::ModifyLoadBalancerInstanceSpecRequest& request) const; + ModifyLoadBalancerInternetSpecOutcome modifyLoadBalancerInternetSpec(const Model::ModifyLoadBalancerInternetSpecRequest &request)const; + void modifyLoadBalancerInternetSpecAsync(const Model::ModifyLoadBalancerInternetSpecRequest& request, const ModifyLoadBalancerInternetSpecAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLoadBalancerInternetSpecOutcomeCallable modifyLoadBalancerInternetSpecCallable(const Model::ModifyLoadBalancerInternetSpecRequest& request) const; + ModifyLoadBalancerPayTypeOutcome modifyLoadBalancerPayType(const Model::ModifyLoadBalancerPayTypeRequest &request)const; + void modifyLoadBalancerPayTypeAsync(const Model::ModifyLoadBalancerPayTypeRequest& request, const ModifyLoadBalancerPayTypeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyLoadBalancerPayTypeOutcomeCallable modifyLoadBalancerPayTypeCallable(const Model::ModifyLoadBalancerPayTypeRequest& request) const; + ModifyVServerGroupBackendServersOutcome modifyVServerGroupBackendServers(const Model::ModifyVServerGroupBackendServersRequest &request)const; + void modifyVServerGroupBackendServersAsync(const Model::ModifyVServerGroupBackendServersRequest& request, const ModifyVServerGroupBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyVServerGroupBackendServersOutcomeCallable modifyVServerGroupBackendServersCallable(const Model::ModifyVServerGroupBackendServersRequest& 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; + RemoveAccessControlListEntryOutcome removeAccessControlListEntry(const Model::RemoveAccessControlListEntryRequest &request)const; + void removeAccessControlListEntryAsync(const Model::RemoveAccessControlListEntryRequest& request, const RemoveAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveAccessControlListEntryOutcomeCallable removeAccessControlListEntryCallable(const Model::RemoveAccessControlListEntryRequest& request) const; RemoveBackendServersOutcome removeBackendServers(const Model::RemoveBackendServersRequest &request)const; void removeBackendServersAsync(const Model::RemoveBackendServersRequest& request, const RemoveBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RemoveBackendServersOutcomeCallable removeBackendServersCallable(const Model::RemoveBackendServersRequest& request) const; + RemoveListenerWhiteListItemOutcome removeListenerWhiteListItem(const Model::RemoveListenerWhiteListItemRequest &request)const; + void removeListenerWhiteListItemAsync(const Model::RemoveListenerWhiteListItemRequest& request, const RemoveListenerWhiteListItemAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveListenerWhiteListItemOutcomeCallable removeListenerWhiteListItemCallable(const Model::RemoveListenerWhiteListItemRequest& request) const; + RemoveTagsOutcome removeTags(const Model::RemoveTagsRequest &request)const; + void removeTagsAsync(const Model::RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveTagsOutcomeCallable removeTagsCallable(const Model::RemoveTagsRequest& request) const; + RemoveVServerGroupBackendServersOutcome removeVServerGroupBackendServers(const Model::RemoveVServerGroupBackendServersRequest &request)const; + void removeVServerGroupBackendServersAsync(const Model::RemoveVServerGroupBackendServersRequest& request, const RemoveVServerGroupBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveVServerGroupBackendServersOutcomeCallable removeVServerGroupBackendServersCallable(const Model::RemoveVServerGroupBackendServersRequest& request) const; + SetAccessControlListAttributeOutcome setAccessControlListAttribute(const Model::SetAccessControlListAttributeRequest &request)const; + void setAccessControlListAttributeAsync(const Model::SetAccessControlListAttributeRequest& request, const SetAccessControlListAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetAccessControlListAttributeOutcomeCallable setAccessControlListAttributeCallable(const Model::SetAccessControlListAttributeRequest& request) const; + SetAccessLogsDownloadAttributeOutcome setAccessLogsDownloadAttribute(const Model::SetAccessLogsDownloadAttributeRequest &request)const; + void setAccessLogsDownloadAttributeAsync(const Model::SetAccessLogsDownloadAttributeRequest& request, const SetAccessLogsDownloadAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetAccessLogsDownloadAttributeOutcomeCallable setAccessLogsDownloadAttributeCallable(const Model::SetAccessLogsDownloadAttributeRequest& request) const; + SetBackendServersOutcome setBackendServers(const Model::SetBackendServersRequest &request)const; + void setBackendServersAsync(const Model::SetBackendServersRequest& request, const SetBackendServersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetBackendServersOutcomeCallable setBackendServersCallable(const Model::SetBackendServersRequest& request) const; + SetCACertificateNameOutcome setCACertificateName(const Model::SetCACertificateNameRequest &request)const; + void setCACertificateNameAsync(const Model::SetCACertificateNameRequest& request, const SetCACertificateNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetCACertificateNameOutcomeCallable setCACertificateNameCallable(const Model::SetCACertificateNameRequest& request) const; + SetDomainExtensionAttributeOutcome setDomainExtensionAttribute(const Model::SetDomainExtensionAttributeRequest &request)const; + void setDomainExtensionAttributeAsync(const Model::SetDomainExtensionAttributeRequest& request, const SetDomainExtensionAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetDomainExtensionAttributeOutcomeCallable setDomainExtensionAttributeCallable(const Model::SetDomainExtensionAttributeRequest& request) const; + SetListenerAccessControlStatusOutcome setListenerAccessControlStatus(const Model::SetListenerAccessControlStatusRequest &request)const; + void setListenerAccessControlStatusAsync(const Model::SetListenerAccessControlStatusRequest& request, const SetListenerAccessControlStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetListenerAccessControlStatusOutcomeCallable setListenerAccessControlStatusCallable(const Model::SetListenerAccessControlStatusRequest& request) const; + SetLoadBalancerDeleteProtectionOutcome setLoadBalancerDeleteProtection(const Model::SetLoadBalancerDeleteProtectionRequest &request)const; + void setLoadBalancerDeleteProtectionAsync(const Model::SetLoadBalancerDeleteProtectionRequest& request, const SetLoadBalancerDeleteProtectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetLoadBalancerDeleteProtectionOutcomeCallable setLoadBalancerDeleteProtectionCallable(const Model::SetLoadBalancerDeleteProtectionRequest& request) const; SetLoadBalancerHTTPListenerAttributeOutcome setLoadBalancerHTTPListenerAttribute(const Model::SetLoadBalancerHTTPListenerAttributeRequest &request)const; void setLoadBalancerHTTPListenerAttributeAsync(const Model::SetLoadBalancerHTTPListenerAttributeRequest& request, const SetLoadBalancerHTTPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLoadBalancerHTTPListenerAttributeOutcomeCallable setLoadBalancerHTTPListenerAttributeCallable(const Model::SetLoadBalancerHTTPListenerAttributeRequest& request) const; - SetLoadBalancerListenerStatusOutcome setLoadBalancerListenerStatus(const Model::SetLoadBalancerListenerStatusRequest &request)const; - void setLoadBalancerListenerStatusAsync(const Model::SetLoadBalancerListenerStatusRequest& request, const SetLoadBalancerListenerStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - SetLoadBalancerListenerStatusOutcomeCallable setLoadBalancerListenerStatusCallable(const Model::SetLoadBalancerListenerStatusRequest& request) const; + SetLoadBalancerHTTPSListenerAttributeOutcome setLoadBalancerHTTPSListenerAttribute(const Model::SetLoadBalancerHTTPSListenerAttributeRequest &request)const; + void setLoadBalancerHTTPSListenerAttributeAsync(const Model::SetLoadBalancerHTTPSListenerAttributeRequest& request, const SetLoadBalancerHTTPSListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetLoadBalancerHTTPSListenerAttributeOutcomeCallable setLoadBalancerHTTPSListenerAttributeCallable(const Model::SetLoadBalancerHTTPSListenerAttributeRequest& request) const; + SetLoadBalancerModificationProtectionOutcome setLoadBalancerModificationProtection(const Model::SetLoadBalancerModificationProtectionRequest &request)const; + void setLoadBalancerModificationProtectionAsync(const Model::SetLoadBalancerModificationProtectionRequest& request, const SetLoadBalancerModificationProtectionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetLoadBalancerModificationProtectionOutcomeCallable setLoadBalancerModificationProtectionCallable(const Model::SetLoadBalancerModificationProtectionRequest& request) const; SetLoadBalancerNameOutcome setLoadBalancerName(const Model::SetLoadBalancerNameRequest &request)const; void setLoadBalancerNameAsync(const Model::SetLoadBalancerNameRequest& request, const SetLoadBalancerNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLoadBalancerNameOutcomeCallable setLoadBalancerNameCallable(const Model::SetLoadBalancerNameRequest& request) const; @@ -180,6 +747,39 @@ namespace AlibabaCloud SetLoadBalancerTCPListenerAttributeOutcome setLoadBalancerTCPListenerAttribute(const Model::SetLoadBalancerTCPListenerAttributeRequest &request)const; void setLoadBalancerTCPListenerAttributeAsync(const Model::SetLoadBalancerTCPListenerAttributeRequest& request, const SetLoadBalancerTCPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetLoadBalancerTCPListenerAttributeOutcomeCallable setLoadBalancerTCPListenerAttributeCallable(const Model::SetLoadBalancerTCPListenerAttributeRequest& request) const; + SetLoadBalancerUDPListenerAttributeOutcome setLoadBalancerUDPListenerAttribute(const Model::SetLoadBalancerUDPListenerAttributeRequest &request)const; + void setLoadBalancerUDPListenerAttributeAsync(const Model::SetLoadBalancerUDPListenerAttributeRequest& request, const SetLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetLoadBalancerUDPListenerAttributeOutcomeCallable setLoadBalancerUDPListenerAttributeCallable(const Model::SetLoadBalancerUDPListenerAttributeRequest& request) const; + SetRuleOutcome setRule(const Model::SetRuleRequest &request)const; + void setRuleAsync(const Model::SetRuleRequest& request, const SetRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetRuleOutcomeCallable setRuleCallable(const Model::SetRuleRequest& request) const; + SetServerCertificateNameOutcome setServerCertificateName(const Model::SetServerCertificateNameRequest &request)const; + void setServerCertificateNameAsync(const Model::SetServerCertificateNameRequest& request, const SetServerCertificateNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetServerCertificateNameOutcomeCallable setServerCertificateNameCallable(const Model::SetServerCertificateNameRequest& request) const; + SetTLSCipherPolicyAttributeOutcome setTLSCipherPolicyAttribute(const Model::SetTLSCipherPolicyAttributeRequest &request)const; + void setTLSCipherPolicyAttributeAsync(const Model::SetTLSCipherPolicyAttributeRequest& request, const SetTLSCipherPolicyAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetTLSCipherPolicyAttributeOutcomeCallable setTLSCipherPolicyAttributeCallable(const Model::SetTLSCipherPolicyAttributeRequest& request) const; + SetVServerGroupAttributeOutcome setVServerGroupAttribute(const Model::SetVServerGroupAttributeRequest &request)const; + void setVServerGroupAttributeAsync(const Model::SetVServerGroupAttributeRequest& request, const SetVServerGroupAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SetVServerGroupAttributeOutcomeCallable setVServerGroupAttributeCallable(const Model::SetVServerGroupAttributeRequest& request) const; + StartLoadBalancerListenerOutcome startLoadBalancerListener(const Model::StartLoadBalancerListenerRequest &request)const; + void startLoadBalancerListenerAsync(const Model::StartLoadBalancerListenerRequest& request, const StartLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StartLoadBalancerListenerOutcomeCallable startLoadBalancerListenerCallable(const Model::StartLoadBalancerListenerRequest& request) const; + StopLoadBalancerListenerOutcome stopLoadBalancerListener(const Model::StopLoadBalancerListenerRequest &request)const; + void stopLoadBalancerListenerAsync(const Model::StopLoadBalancerListenerRequest& request, const StopLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopLoadBalancerListenerOutcomeCallable stopLoadBalancerListenerCallable(const Model::StopLoadBalancerListenerRequest& request) const; + 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; + UploadCACertificateOutcome uploadCACertificate(const Model::UploadCACertificateRequest &request)const; + void uploadCACertificateAsync(const Model::UploadCACertificateRequest& request, const UploadCACertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UploadCACertificateOutcomeCallable uploadCACertificateCallable(const Model::UploadCACertificateRequest& request) const; + UploadServerCertificateOutcome uploadServerCertificate(const Model::UploadServerCertificateRequest &request)const; + void uploadServerCertificateAsync(const Model::UploadServerCertificateRequest& request, const UploadServerCertificateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UploadServerCertificateOutcomeCallable uploadServerCertificateCallable(const Model::UploadServerCertificateRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/slb/include/alibabacloud/slb/model/AddAccessControlListEntryRequest.h b/slb/include/alibabacloud/slb/model/AddAccessControlListEntryRequest.h new file mode 100644 index 000000000..27708a36f --- /dev/null +++ b/slb/include/alibabacloud/slb/model/AddAccessControlListEntryRequest.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_SLB_MODEL_ADDACCESSCONTROLLISTENTRYREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_ADDACCESSCONTROLLISTENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT AddAccessControlListEntryRequest : public RpcServiceRequest { +public: + AddAccessControlListEntryRequest(); + ~AddAccessControlListEntryRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclEntrys() const; + void setAclEntrys(const std::string &aclEntrys); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string aclEntrys_; + std::string accessKeyId_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_ADDACCESSCONTROLLISTENTRYREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/AddAccessControlListEntryResult.h b/slb/include/alibabacloud/slb/model/AddAccessControlListEntryResult.h new file mode 100644 index 000000000..16f09f755 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/AddAccessControlListEntryResult.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_SLB_MODEL_ADDACCESSCONTROLLISTENTRYRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_ADDACCESSCONTROLLISTENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT AddAccessControlListEntryResult : public ServiceResult + { + public: + + + AddAccessControlListEntryResult(); + explicit AddAccessControlListEntryResult(const std::string &payload); + ~AddAccessControlListEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_ADDACCESSCONTROLLISTENTRYRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/AddBackendServersRequest.h b/slb/include/alibabacloud/slb/model/AddBackendServersRequest.h index 8f922d47d..9e2f3ff1a 100644 --- a/slb/include/alibabacloud/slb/model/AddBackendServersRequest.h +++ b/slb/include/alibabacloud/slb/model/AddBackendServersRequest.h @@ -36,8 +36,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getBackendServers() const; void setBackendServers(const std::string &backendServers); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -53,7 +53,7 @@ private: std::string access_key_id_; long resourceOwnerId_; std::string backendServers_; - std::string accessKeyId_; + std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/slb/include/alibabacloud/slb/model/AddBackendServersResult.h b/slb/include/alibabacloud/slb/model/AddBackendServersResult.h index 392ad95a0..47759dd3a 100644 --- a/slb/include/alibabacloud/slb/model/AddBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/AddBackendServersResult.h @@ -34,7 +34,11 @@ namespace AlibabaCloud public: struct BackendServer { + std::string type; + std::string description; std::string serverId; + std::string vpcId; + std::string serverIp; std::string weight; }; diff --git a/slb/include/alibabacloud/slb/model/AddListenerWhiteListItemRequest.h b/slb/include/alibabacloud/slb/model/AddListenerWhiteListItemRequest.h new file mode 100644 index 000000000..3275b8c92 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/AddListenerWhiteListItemRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_ADDLISTENERWHITELISTITEMREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_ADDLISTENERWHITELISTITEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT AddListenerWhiteListItemRequest : public RpcServiceRequest { +public: + AddListenerWhiteListItemRequest(); + ~AddListenerWhiteListItemRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceItems() const; + void setSourceItems(const std::string &sourceItems); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string sourceItems_; + std::string regionId_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string listenerProtocol_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_ADDLISTENERWHITELISTITEMREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/AddListenerWhiteListItemResult.h b/slb/include/alibabacloud/slb/model/AddListenerWhiteListItemResult.h new file mode 100644 index 000000000..9056acc8b --- /dev/null +++ b/slb/include/alibabacloud/slb/model/AddListenerWhiteListItemResult.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_SLB_MODEL_ADDLISTENERWHITELISTITEMRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_ADDLISTENERWHITELISTITEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT AddListenerWhiteListItemResult : public ServiceResult + { + public: + + + AddListenerWhiteListItemResult(); + explicit AddListenerWhiteListItemResult(const std::string &payload); + ~AddListenerWhiteListItemResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_ADDLISTENERWHITELISTITEMRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerListenerStatusRequest.h b/slb/include/alibabacloud/slb/model/AddTagsRequest.h similarity index 54% rename from slb/include/alibabacloud/slb/model/SetLoadBalancerListenerStatusRequest.h rename to slb/include/alibabacloud/slb/model/AddTagsRequest.h index 2485417bf..984e7326d 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerListenerStatusRequest.h +++ b/slb/include/alibabacloud/slb/model/AddTagsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERLISTENERSTATUSREQUEST_H_ -#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERLISTENERSTATUSREQUEST_H_ +#ifndef ALIBABACLOUD_SLB_MODEL_ADDTAGSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_ADDTAGSREQUEST_H_ #include #include @@ -26,35 +26,38 @@ namespace AlibabaCloud { namespace Slb { namespace Model { -class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerListenerStatusRequest : public RpcServiceRequest { +class ALIBABACLOUD_SLB_EXPORT AddTagsRequest : public RpcServiceRequest { public: - SetLoadBalancerListenerStatusRequest(); - ~SetLoadBalancerListenerStatusRequest(); - int getListenerPort() const; - void setListenerPort(int listenerPort); + AddTagsRequest(); + ~AddTagsRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); - std::string getHostId() const; - void setHostId(const std::string &hostId); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getListenerStatus() const; - void setListenerStatus(const std::string &listenerStatus); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); std::string getLoadBalancerId() const; void setLoadBalancerId(const std::string &loadBalancerId); private: - int listenerPort_; + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; std::string ownerAccount_; - std::string hostId_; - std::string ownerId_; - std::string listenerStatus_; - std::string accessKeyId_; + long ownerId_; + std::string tags_; std::string loadBalancerId_; }; } // namespace Model } // namespace Slb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERLISTENERSTATUSREQUEST_H_ +#endif // !ALIBABACLOUD_SLB_MODEL_ADDTAGSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/AddTagsResult.h b/slb/include/alibabacloud/slb/model/AddTagsResult.h new file mode 100644 index 000000000..bb122558d --- /dev/null +++ b/slb/include/alibabacloud/slb/model/AddTagsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_ADDTAGSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_ADDTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT AddTagsResult : public ServiceResult + { + public: + + + AddTagsResult(); + explicit AddTagsResult(const std::string &payload); + ~AddTagsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_ADDTAGSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersRequest.h b/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersRequest.h new file mode 100644 index 000000000..8b9dba699 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersRequest.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_SLB_MODEL_ADDVSERVERGROUPBACKENDSERVERSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_ADDVSERVERGROUPBACKENDSERVERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT AddVServerGroupBackendServersRequest : public RpcServiceRequest { +public: + AddVServerGroupBackendServersRequest(); + ~AddVServerGroupBackendServersRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBackendServers() const; + void setBackendServers(const std::string &backendServers); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string backendServers_; + std::string regionId_; + std::string vServerGroupId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_ADDVSERVERGROUPBACKENDSERVERSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h b/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.h new file mode 100644 index 000000000..987a025ae --- /dev/null +++ b/slb/include/alibabacloud/slb/model/AddVServerGroupBackendServersResult.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_SLB_MODEL_ADDVSERVERGROUPBACKENDSERVERSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_ADDVSERVERGROUPBACKENDSERVERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT AddVServerGroupBackendServersResult : public ServiceResult + { + public: + struct BackendServer + { + std::string type; + std::string description; + std::string serverId; + std::string vpcId; + std::string serverRegionId; + std::string serverIp; + int port; + std::string vbrId; + int weight; + }; + + + AddVServerGroupBackendServersResult(); + explicit AddVServerGroupBackendServersResult(const std::string &payload); + ~AddVServerGroupBackendServersResult(); + std::string getVServerGroupId()const; + std::vector getBackendServers()const; + + protected: + void parse(const std::string &payload); + private: + std::string vServerGroupId_; + std::vector backendServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_ADDVSERVERGROUPBACKENDSERVERSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h b/slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h new file mode 100644 index 000000000..c5edd91b4 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateAccessControlListRequest.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATEACCESSCONTROLLISTREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEACCESSCONTROLLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT CreateAccessControlListRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + CreateAccessControlListRequest(); + ~CreateAccessControlListRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclName() const; + void setAclName(const std::string &aclName); + std::string getAddressIPVersion() const; + void setAddressIPVersion(const std::string &addressIPVersion); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string aclName_; + std::string addressIPVersion_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEACCESSCONTROLLISTREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/CreateAccessControlListResult.h b/slb/include/alibabacloud/slb/model/CreateAccessControlListResult.h new file mode 100644 index 000000000..6662ddc12 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateAccessControlListResult.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_SLB_MODEL_CREATEACCESSCONTROLLISTRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEACCESSCONTROLLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT CreateAccessControlListResult : public ServiceResult + { + public: + + + CreateAccessControlListResult(); + explicit CreateAccessControlListResult(const std::string &payload); + ~CreateAccessControlListResult(); + std::string getAclId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEACCESSCONTROLLISTRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateDomainExtensionRequest.h b/slb/include/alibabacloud/slb/model/CreateDomainExtensionRequest.h new file mode 100644 index 000000000..77ecc93dc --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateDomainExtensionRequest.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATEDOMAINEXTENSIONREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEDOMAINEXTENSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT CreateDomainExtensionRequest : public RpcServiceRequest { +public: + struct ServerCertificate { + std::string bindingType; + std::string certificateId; + std::string standardType; + }; + CreateDomainExtensionRequest(); + ~CreateDomainExtensionRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getServerCertificate() const; + void setServerCertificate(const std::vector &serverCertificate); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getCertificateId() const; + void setCertificateId(const std::vector &certificateId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getServerCertificateId() const; + void setServerCertificateId(const std::string &serverCertificateId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getDomain() const; + void setDomain(const std::string &domain); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::vector serverCertificate_; + std::string regionId_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector certificateId_; + long ownerId_; + std::string serverCertificateId_; + std::string tags_; + std::string loadBalancerId_; + std::string domain_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEDOMAINEXTENSIONREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/CreateDomainExtensionResult.h b/slb/include/alibabacloud/slb/model/CreateDomainExtensionResult.h new file mode 100644 index 000000000..b84f80250 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateDomainExtensionResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATEDOMAINEXTENSIONRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEDOMAINEXTENSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT CreateDomainExtensionResult : public ServiceResult + { + public: + + + CreateDomainExtensionResult(); + explicit CreateDomainExtensionResult(const std::string &payload); + ~CreateDomainExtensionResult(); + int getListenerPort()const; + std::string getDomainExtensionId()const; + + protected: + void parse(const std::string &payload); + private: + int listenerPort_; + std::string domainExtensionId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEDOMAINEXTENSIONRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h index f137c064b..a1154ad88 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPListenerRequest.h @@ -28,79 +28,158 @@ namespace Slb { namespace Model { class ALIBABACLOUD_SLB_EXPORT CreateLoadBalancerHTTPListenerRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; CreateLoadBalancerHTTPListenerRequest(); ~CreateLoadBalancerHTTPListenerRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); int getHealthCheckTimeout() const; void setHealthCheckTimeout(int healthCheckTimeout); + std::string getListenerForward() const; + void setListenerForward(const std::string &listenerForward); std::string getXForwardedFor() const; void setXForwardedFor(const std::string &xForwardedFor); - std::string getHostId() const; - void setHostId(const std::string &hostId); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getXForwardedFor_SLBPORT() const; + void setXForwardedFor_SLBPORT(const std::string &xForwardedFor_SLBPORT); + std::string getAclStatus() const; + void setAclStatus(const std::string &aclStatus); + std::string getAclType() const; + void setAclType(const std::string &aclType); + std::string getHealthCheck() const; + void setHealthCheck(const std::string &healthCheck); + std::string getVpcIds() const; + void setVpcIds(const std::string &vpcIds); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + int getForwardCode() const; + void setForwardCode(int forwardCode); + std::string getCookie() const; + void setCookie(const std::string &cookie); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + int getRequestTimeout() const; + void setRequestTimeout(int requestTimeout); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getXForwardedFor_SLBIP() const; + void setXForwardedFor_SLBIP(const std::string &xForwardedFor_SLBIP); + int getBackendServerPort() const; + void setBackendServerPort(int backendServerPort); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getXForwardedFor_SLBID() const; + void setXForwardedFor_SLBID(const std::string &xForwardedFor_SLBID); + std::string getHealthCheckHttpVersion() const; + void setHealthCheckHttpVersion(const std::string &healthCheckHttpVersion); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + std::string getXForwardedFor_ClientSrcPort() const; + void setXForwardedFor_ClientSrcPort(const std::string &xForwardedFor_ClientSrcPort); + std::string getDescription() const; + void setDescription(const std::string &description); int getUnhealthyThreshold() const; void setUnhealthyThreshold(int unhealthyThreshold); int getHealthyThreshold() const; void setHealthyThreshold(int healthyThreshold); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getScheduler() const; void setScheduler(const std::string &scheduler); - std::string getHealthCheck() const; - void setHealthCheck(const std::string &healthCheck); + int getForwardPort() const; + void setForwardPort(int forwardPort); + int getMaxConnection() const; + void setMaxConnection(int maxConnection); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); int getCookieTimeout() const; void setCookieTimeout(int cookieTimeout); std::string getStickySessionType() const; void setStickySessionType(const std::string &stickySessionType); int getListenerPort() const; void setListenerPort(int listenerPort); - std::string getCookie() const; - void setCookie(const std::string &cookie); - std::string getStickySession() const; - void setStickySession(const std::string &stickySession); + std::string getHealthCheckType() const; + void setHealthCheckType(const std::string &healthCheckType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); int getBandwidth() const; void setBandwidth(int bandwidth); + std::string getStickySession() const; + void setStickySession(const std::string &stickySession); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getURI() const; - void setURI(const std::string &uRI); - std::string getListenerStatus() const; - void setListenerStatus(const std::string &listenerStatus); - std::string getLoadBalancerId() const; - void setLoadBalancerId(const std::string &loadBalancerId); - int getBackendServerPort() const; - void setBackendServerPort(int backendServerPort); - std::string getDomain() const; - void setDomain(const std::string &domain); - int getInterval() const; - void setInterval(int interval); + std::string getGzip() const; + void setGzip(const std::string &gzip); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + std::string getXForwardedFor_proto() const; + void setXForwardedFor_proto(const std::string &xForwardedFor_proto); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); private: long resourceOwnerId_; int healthCheckTimeout_; + std::string listenerForward_; std::string xForwardedFor_; - std::string hostId_; + std::string healthCheckURI_; + std::string xForwardedFor_SLBPORT_; + std::string aclStatus_; + std::string aclType_; + std::string healthCheck_; + std::string vpcIds_; + std::vector tag_; + std::string vServerGroupId_; + std::string aclId_; + int forwardCode_; + std::string cookie_; + std::string healthCheckMethod_; + std::string healthCheckDomain_; + int requestTimeout_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; + std::string xForwardedFor_SLBIP_; + int backendServerPort_; + int healthCheckInterval_; + std::string xForwardedFor_SLBID_; + std::string healthCheckHttpVersion_; + std::string access_key_id_; + std::string xForwardedFor_ClientSrcPort_; + std::string description_; int unhealthyThreshold_; int healthyThreshold_; - std::string accessKeyId_; std::string scheduler_; - std::string healthCheck_; + int forwardPort_; + int maxConnection_; + std::string regionId_; int cookieTimeout_; std::string stickySessionType_; int listenerPort_; - std::string cookie_; - std::string stickySession_; + std::string healthCheckType_; + std::string resourceOwnerAccount_; int bandwidth_; + std::string stickySession_; std::string ownerAccount_; - std::string ownerId_; - std::string uRI_; - std::string listenerStatus_; - std::string loadBalancerId_; - int backendServerPort_; - std::string domain_; - int interval_; + std::string gzip_; + int idleTimeout_; + std::string xForwardedFor_proto_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; }; } // namespace Model } // namespace Slb diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h new file mode 100644 index 000000000..337b09d70 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerRequest.h @@ -0,0 +1,225 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERHTTPSLISTENERREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERHTTPSLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT CreateLoadBalancerHTTPSListenerRequest : public RpcServiceRequest { +public: + struct ServerCertificate { + std::string bindingType; + std::string certificateId; + std::string standardType; + }; + struct Tag { + std::string value; + std::string key; + }; + CreateLoadBalancerHTTPSListenerRequest(); + ~CreateLoadBalancerHTTPSListenerRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getServerCertificate() const; + void setServerCertificate(const std::vector &serverCertificate); + int getHealthCheckTimeout() const; + void setHealthCheckTimeout(int healthCheckTimeout); + std::string getXForwardedFor() const; + void setXForwardedFor(const std::string &xForwardedFor); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getXForwardedFor_SLBPORT() const; + void setXForwardedFor_SLBPORT(const std::string &xForwardedFor_SLBPORT); + std::string getAclStatus() const; + void setAclStatus(const std::string &aclStatus); + std::string getAclType() const; + void setAclType(const std::string &aclType); + std::string getHealthCheck() const; + void setHealthCheck(const std::string &healthCheck); + std::string getVpcIds() const; + void setVpcIds(const std::string &vpcIds); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getXForwardedFor_ClientCertClientVerify() const; + void setXForwardedFor_ClientCertClientVerify(const std::string &xForwardedFor_ClientCertClientVerify); + std::string getCookie() const; + void setCookie(const std::string &cookie); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + int getRequestTimeout() const; + void setRequestTimeout(int requestTimeout); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCACertificateId() const; + void setCACertificateId(const std::string &cACertificateId); + std::string getBackendProtocol() const; + void setBackendProtocol(const std::string &backendProtocol); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getXForwardedFor_ClientCertFingerprintAlias() const; + void setXForwardedFor_ClientCertFingerprintAlias(const std::string &xForwardedFor_ClientCertFingerprintAlias); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getXForwardedFor_SLBIP() const; + void setXForwardedFor_SLBIP(const std::string &xForwardedFor_SLBIP); + int getBackendServerPort() const; + void setBackendServerPort(int backendServerPort); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getXForwardedFor_ClientCertClientVerifyAlias() const; + void setXForwardedFor_ClientCertClientVerifyAlias(const std::string &xForwardedFor_ClientCertClientVerifyAlias); + std::string getXForwardedFor_SLBID() const; + void setXForwardedFor_SLBID(const std::string &xForwardedFor_SLBID); + std::string getXForwardedFor_ClientCertFingerprint() const; + void setXForwardedFor_ClientCertFingerprint(const std::string &xForwardedFor_ClientCertFingerprint); + std::string getHealthCheckHttpVersion() const; + void setHealthCheckHttpVersion(const std::string &healthCheckHttpVersion); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + std::string getXForwardedFor_ClientSrcPort() const; + void setXForwardedFor_ClientSrcPort(const std::string &xForwardedFor_ClientSrcPort); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + std::string getXForwardedFor_ClientCertIssuerDNAlias() const; + void setXForwardedFor_ClientCertIssuerDNAlias(const std::string &xForwardedFor_ClientCertIssuerDNAlias); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + int getMaxConnection() const; + void setMaxConnection(int maxConnection); + std::string getEnableHttp2() const; + void setEnableHttp2(const std::string &enableHttp2); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getXForwardedFor_ClientCertSubjectDN() const; + void setXForwardedFor_ClientCertSubjectDN(const std::string &xForwardedFor_ClientCertSubjectDN); + int getCookieTimeout() const; + void setCookieTimeout(int cookieTimeout); + std::string getStickySessionType() const; + void setStickySessionType(const std::string &stickySessionType); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getHealthCheckType() const; + void setHealthCheckType(const std::string &healthCheckType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getStickySession() const; + void setStickySession(const std::string &stickySession); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getGzip() const; + void setGzip(const std::string &gzip); + std::string getTLSCipherPolicy() const; + void setTLSCipherPolicy(const std::string &tLSCipherPolicy); + std::string getServerCertificateId() const; + void setServerCertificateId(const std::string &serverCertificateId); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + std::string getXForwardedFor_proto() const; + void setXForwardedFor_proto(const std::string &xForwardedFor_proto); + std::string getXForwardedFor_ClientCertSubjectDNAlias() const; + void setXForwardedFor_ClientCertSubjectDNAlias(const std::string &xForwardedFor_ClientCertSubjectDNAlias); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + std::string getXForwardedFor_ClientCertIssuerDN() const; + void setXForwardedFor_ClientCertIssuerDN(const std::string &xForwardedFor_ClientCertIssuerDN); + +private: + long resourceOwnerId_; + std::vector serverCertificate_; + int healthCheckTimeout_; + std::string xForwardedFor_; + std::string healthCheckURI_; + std::string xForwardedFor_SLBPORT_; + std::string aclStatus_; + std::string aclType_; + std::string healthCheck_; + std::string vpcIds_; + std::vector tag_; + std::string vServerGroupId_; + std::string aclId_; + std::string xForwardedFor_ClientCertClientVerify_; + std::string cookie_; + std::string healthCheckMethod_; + std::string healthCheckDomain_; + int requestTimeout_; + long ownerId_; + std::string cACertificateId_; + std::string backendProtocol_; + std::string tags_; + std::string xForwardedFor_ClientCertFingerprintAlias_; + std::string loadBalancerId_; + std::string xForwardedFor_SLBIP_; + int backendServerPort_; + int healthCheckInterval_; + std::string xForwardedFor_ClientCertClientVerifyAlias_; + std::string xForwardedFor_SLBID_; + std::string xForwardedFor_ClientCertFingerprint_; + std::string healthCheckHttpVersion_; + std::string access_key_id_; + std::string xForwardedFor_ClientSrcPort_; + std::string description_; + int unhealthyThreshold_; + std::string xForwardedFor_ClientCertIssuerDNAlias_; + int healthyThreshold_; + std::string scheduler_; + int maxConnection_; + std::string enableHttp2_; + std::string regionId_; + std::string xForwardedFor_ClientCertSubjectDN_; + int cookieTimeout_; + std::string stickySessionType_; + int listenerPort_; + std::string healthCheckType_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string stickySession_; + std::string ownerAccount_; + std::string gzip_; + std::string tLSCipherPolicy_; + std::string serverCertificateId_; + int idleTimeout_; + std::string xForwardedFor_proto_; + std::string xForwardedFor_ClientCertSubjectDNAlias_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; + std::string xForwardedFor_ClientCertIssuerDN_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERHTTPSLISTENERREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerResult.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerResult.h new file mode 100644 index 000000000..cd11deed0 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerHTTPSListenerResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERHTTPSLISTENERRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERHTTPSLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT CreateLoadBalancerHTTPSListenerResult : public ServiceResult + { + public: + + + CreateLoadBalancerHTTPSListenerResult(); + explicit CreateLoadBalancerHTTPSListenerResult(const std::string &payload); + ~CreateLoadBalancerHTTPSListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERHTTPSLISTENERRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h index f06ba433c..c41676f9b 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerRequest.h @@ -28,43 +28,122 @@ namespace Slb { namespace Model { class ALIBABACLOUD_SLB_EXPORT CreateLoadBalancerRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; CreateLoadBalancerRequest(); ~CreateLoadBalancerRequest(); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getClientToken() const; - void setClientToken(const std::string &clientToken); - std::string getLoadBalancerMode() const; - void setLoadBalancerMode(const std::string &loadBalancerMode); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + std::string getAddressIPVersion() const; + void setAddressIPVersion(const std::string &addressIPVersion); + std::string getMasterZoneId() const; + void setMasterZoneId(const std::string &masterZoneId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); std::string getLoadBalancerName() const; void setLoadBalancerName(const std::string &loadBalancerName); + std::string getSlaveZoneId() const; + void setSlaveZoneId(const std::string &slaveZoneId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getLoadBalancerSpec() const; + void setLoadBalancerSpec(const std::string &loadBalancerSpec); + int getAutoRenewPeriod() const; + void setAutoRenewPeriod(int autoRenewPeriod); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getVSwitchId() const; + void setVSwitchId(const std::string &vSwitchId); + std::string getEnableVpcVipFlow() const; + void setEnableVpcVipFlow(const std::string &enableVpcVipFlow); + bool getAutoRenew() const; + void setAutoRenew(bool autoRenew); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + std::string getModificationProtectionReason() const; + void setModificationProtectionReason(const std::string &modificationProtectionReason); + bool getSupportPrivateLink() const; + void setSupportPrivateLink(bool supportPrivateLink); + std::string getClientToken() const; + void setClientToken(const std::string &clientToken); + std::string getCloudType() const; + void setCloudType(const std::string &cloudType); + int getDuration() const; + void setDuration(int duration); std::string getRegionId() const; void setRegionId(const std::string ®ionId); + std::string getAddressType() const; + void setAddressType(const std::string &addressType); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getDeleteProtection() const; + void setDeleteProtection(const std::string &deleteProtection); + bool getAutoPay() const; + void setAutoPay(bool autoPay); std::string getAddress() const; void setAddress(const std::string &address); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); - std::string getIsPublicAddress() const; - void setIsPublicAddress(const std::string &isPublicAddress); - long getOwnerId() const; - void setOwnerId(long ownerId); + std::string getModificationProtectionStatus() const; + void setModificationProtectionStatus(const std::string &modificationProtectionStatus); + std::string getInstanceListenerType() const; + void setInstanceListenerType(const std::string &instanceListenerType); + std::string getVpcId() const; + void setVpcId(const std::string &vpcId); + std::string getPayType() const; + void setPayType(const std::string &payType); + int getRatio() const; + void setRatio(int ratio); private: long resourceOwnerId_; - std::string clientToken_; - std::string loadBalancerMode_; - std::string accessKeyId_; + std::string addressIPVersion_; + std::string masterZoneId_; + std::string resourceGroupId_; std::string loadBalancerName_; + std::string slaveZoneId_; + std::vector tag_; + std::string loadBalancerSpec_; + int autoRenewPeriod_; + long ownerId_; + std::string tags_; + std::string vSwitchId_; + std::string enableVpcVipFlow_; + bool autoRenew_; + std::string internetChargeType_; + std::string pricingCycle_; + std::string access_key_id_; + std::string modificationProtectionReason_; + bool supportPrivateLink_; + std::string clientToken_; + std::string cloudType_; + int duration_; std::string regionId_; + std::string addressType_; + std::string instanceChargeType_; + std::string deleteProtection_; + bool autoPay_; std::string address_; std::string resourceOwnerAccount_; + int bandwidth_; std::string ownerAccount_; - std::string isPublicAddress_; - long ownerId_; + std::string modificationProtectionStatus_; + std::string instanceListenerType_; + std::string vpcId_; + std::string payType_; + int ratio_; }; } // namespace Model } // namespace Slb diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerResult.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerResult.h index 9bcb8ef2b..ed0fc5503 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerResult.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerResult.h @@ -38,15 +38,27 @@ namespace AlibabaCloud explicit CreateLoadBalancerResult(const std::string &payload); ~CreateLoadBalancerResult(); std::string getLoadBalancerName()const; + std::string getVpcId()const; + std::string getResourceGroupId()const; std::string getAddress()const; + std::string getNetworkType()const; + std::string getAddressIPVersion()const; + std::string getVSwitchId()const; std::string getLoadBalancerId()const; + long getOrderId()const; protected: void parse(const std::string &payload); private: std::string loadBalancerName_; + std::string vpcId_; + std::string resourceGroupId_; std::string address_; + std::string networkType_; + std::string addressIPVersion_; + std::string vSwitchId_; std::string loadBalancerId_; + long orderId_; }; } diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h index f21aa82a2..a5a95ceb8 100644 --- a/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerTCPListenerRequest.h @@ -28,52 +28,52 @@ namespace Slb { namespace Model { class ALIBABACLOUD_SLB_EXPORT CreateLoadBalancerTCPListenerRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; + struct PortRange { + int startPort; + int endPort; + }; CreateLoadBalancerTCPListenerRequest(); ~CreateLoadBalancerTCPListenerRequest(); - std::string getAccess_key_id() const; - void setAccess_key_id(const std::string &access_key_id); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); std::string getHealthCheckURI() const; void setHealthCheckURI(const std::string &healthCheckURI); - int getUnhealthyThreshold() const; - void setUnhealthyThreshold(int unhealthyThreshold); - int getHealthyThreshold() const; - void setHealthyThreshold(int healthyThreshold); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); - std::string getScheduler() const; - void setScheduler(const std::string &scheduler); - std::string getHealthCheck() const; - void setHealthCheck(const std::string &healthCheck); + std::string getAclStatus() const; + void setAclStatus(const std::string &aclStatus); + bool getFullNatEnabled() const; + void setFullNatEnabled(bool fullNatEnabled); + bool getHealthCheckTcpFastCloseEnabled() const; + void setHealthCheckTcpFastCloseEnabled(bool healthCheckTcpFastCloseEnabled); + std::string getAclType() const; + void setAclType(const std::string &aclType); int getEstablishedTimeout() const; void setEstablishedTimeout(int establishedTimeout); - int getMaxConnection() const; - void setMaxConnection(int maxConnection); + std::string getFailoverStrategy() const; + void setFailoverStrategy(const std::string &failoverStrategy); int getPersistenceTimeout() const; void setPersistenceTimeout(int persistenceTimeout); + std::string getVpcIds() const; + void setVpcIds(const std::string &vpcIds); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getMasterSlaveModeEnabled() const; + void setMasterSlaveModeEnabled(bool masterSlaveModeEnabled); std::string getVServerGroupId() const; void setVServerGroupId(const std::string &vServerGroupId); - int getConnectTimeout() const; - void setConnectTimeout(int connectTimeout); - int getListenerPort() const; - void setListenerPort(int listenerPort); - std::string getHealthCheckType() const; - void setHealthCheckType(const std::string &healthCheckType); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); - int getBandwidth() const; - void setBandwidth(int bandwidth); - int getConnectPort() const; - void setConnectPort(int connectPort); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::vector getPortRange() const; + void setPortRange(const std::vector &portRange); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); std::string getHealthCheckDomain() const; void setHealthCheckDomain(const std::string &healthCheckDomain); - std::string getOwnerAccount() const; - void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getListenerStatus() const; - void setListenerStatus(const std::string &listenerStatus); std::string getTags() const; void setTags(const std::string &tags); std::string getLoadBalancerId() const; @@ -82,39 +82,98 @@ public: void setMasterSlaveServerGroupId(const std::string &masterSlaveServerGroupId); int getBackendServerPort() const; void setBackendServerPort(int backendServerPort); - int getInterval() const; - void setInterval(int interval); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + int getFailoverThreshold() const; + void setFailoverThreshold(int failoverThreshold); + bool getProxyProtocolV2Enabled() const; + void setProxyProtocolV2Enabled(bool proxyProtocolV2Enabled); + std::string getConnectionDrain() const; + void setConnectionDrain(const std::string &connectionDrain); + std::string getHealthCheckSwitch() const; + void setHealthCheckSwitch(const std::string &healthCheckSwitch); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + int getHealthCheckConnectTimeout() const; + void setHealthCheckConnectTimeout(int healthCheckConnectTimeout); + std::string getSlaveServerGroupId() const; + void setSlaveServerGroupId(const std::string &slaveServerGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + int getMaxConnection() const; + void setMaxConnection(int maxConnection); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getMasterServerGroupId() const; + void setMasterServerGroupId(const std::string &masterServerGroupId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getHealthCheckType() const; + void setHealthCheckType(const std::string &healthCheckType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getConnectionDrainTimeout() const; + void setConnectionDrainTimeout(int connectionDrainTimeout); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); std::string getHealthCheckHttpCode() const; void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); private: - std::string access_key_id_; long resourceOwnerId_; std::string healthCheckURI_; - int unhealthyThreshold_; - int healthyThreshold_; - std::string accessKeyId_; - std::string scheduler_; - std::string healthCheck_; + std::string aclStatus_; + bool fullNatEnabled_; + bool healthCheckTcpFastCloseEnabled_; + std::string aclType_; int establishedTimeout_; - int maxConnection_; + std::string failoverStrategy_; int persistenceTimeout_; + std::string vpcIds_; + std::vector tag_; + bool masterSlaveModeEnabled_; std::string vServerGroupId_; - int connectTimeout_; - int listenerPort_; - std::string healthCheckType_; - std::string resourceOwnerAccount_; - int bandwidth_; - int connectPort_; + std::string aclId_; + std::vector portRange_; + std::string healthCheckMethod_; std::string healthCheckDomain_; - std::string ownerAccount_; long ownerId_; - std::string listenerStatus_; std::string tags_; std::string loadBalancerId_; std::string masterSlaveServerGroupId_; int backendServerPort_; - int interval_; + int healthCheckInterval_; + int failoverThreshold_; + bool proxyProtocolV2Enabled_; + std::string connectionDrain_; + std::string healthCheckSwitch_; + std::string access_key_id_; + int healthCheckConnectTimeout_; + std::string slaveServerGroupId_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + int maxConnection_; + std::string regionId_; + std::string masterServerGroupId_; + int listenerPort_; + std::string healthCheckType_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + int connectionDrainTimeout_; + int healthCheckConnectPort_; std::string healthCheckHttpCode_; }; } // namespace Model diff --git a/slb/include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerRequest.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerRequest.h new file mode 100644 index 000000000..261a15bfa --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerRequest.h @@ -0,0 +1,185 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERUDPLISTENERREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERUDPLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT CreateLoadBalancerUDPListenerRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + struct PortRange { + int startPort; + int endPort; + }; + CreateLoadBalancerUDPListenerRequest(); + ~CreateLoadBalancerUDPListenerRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getAclStatus() const; + void setAclStatus(const std::string &aclStatus); + bool getFullNatEnabled() const; + void setFullNatEnabled(bool fullNatEnabled); + std::string getAclType() const; + void setAclType(const std::string &aclType); + std::string getFailoverStrategy() const; + void setFailoverStrategy(const std::string &failoverStrategy); + int getPersistenceTimeout() const; + void setPersistenceTimeout(int persistenceTimeout); + std::string getVpcIds() const; + void setVpcIds(const std::string &vpcIds); + std::vector getTag() const; + void setTag(const std::vector &tag); + bool getMasterSlaveModeEnabled() const; + void setMasterSlaveModeEnabled(bool masterSlaveModeEnabled); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::vector getPortRange() const; + void setPortRange(const std::vector &portRange); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getMasterSlaveServerGroupId() const; + void setMasterSlaveServerGroupId(const std::string &masterSlaveServerGroupId); + std::string getHealthCheckReq() const; + void setHealthCheckReq(const std::string &healthCheckReq); + int getBackendServerPort() const; + void setBackendServerPort(int backendServerPort); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getHealthCheckExp() const; + void setHealthCheckExp(const std::string &healthCheckExp); + int getFailoverThreshold() const; + void setFailoverThreshold(int failoverThreshold); + bool getProxyProtocolV2Enabled() const; + void setProxyProtocolV2Enabled(bool proxyProtocolV2Enabled); + std::string getConnectionDrain() const; + void setConnectionDrain(const std::string &connectionDrain); + std::string getHealthCheckSwitch() const; + void setHealthCheckSwitch(const std::string &healthCheckSwitch); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + int getHealthCheckConnectTimeout() const; + void setHealthCheckConnectTimeout(int healthCheckConnectTimeout); + std::string getSlaveServerGroupId() const; + void setSlaveServerGroupId(const std::string &slaveServerGroupId); + std::string getQuicVersion() const; + void setQuicVersion(const std::string &quicVersion); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + int getMaxConnection() const; + void setMaxConnection(int maxConnection); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getMasterServerGroupId() const; + void setMasterServerGroupId(const std::string &masterServerGroupId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getHealthCheckType() const; + void setHealthCheckType(const std::string &healthCheckType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getConnectionDrainTimeout() const; + void setConnectionDrainTimeout(int connectionDrainTimeout); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + +private: + long resourceOwnerId_; + std::string healthCheckURI_; + std::string aclStatus_; + bool fullNatEnabled_; + std::string aclType_; + std::string failoverStrategy_; + int persistenceTimeout_; + std::string vpcIds_; + std::vector tag_; + bool masterSlaveModeEnabled_; + std::string vServerGroupId_; + std::string aclId_; + std::vector portRange_; + std::string healthCheckMethod_; + std::string healthCheckDomain_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; + std::string masterSlaveServerGroupId_; + std::string healthCheckReq_; + int backendServerPort_; + int healthCheckInterval_; + std::string healthCheckExp_; + int failoverThreshold_; + bool proxyProtocolV2Enabled_; + std::string connectionDrain_; + std::string healthCheckSwitch_; + std::string access_key_id_; + int healthCheckConnectTimeout_; + std::string slaveServerGroupId_; + std::string quicVersion_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + int maxConnection_; + std::string regionId_; + std::string masterServerGroupId_; + int listenerPort_; + std::string healthCheckType_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + int connectionDrainTimeout_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERUDPLISTENERREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerListenerStatusResult.h b/slb/include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerResult.h similarity index 71% rename from slb/include/alibabacloud/slb/model/SetLoadBalancerListenerStatusResult.h rename to slb/include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerResult.h index b1c58d1b7..f539b0ffa 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerListenerStatusResult.h +++ b/slb/include/alibabacloud/slb/model/CreateLoadBalancerUDPListenerResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERLISTENERSTATUSRESULT_H_ -#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERLISTENERSTATUSRESULT_H_ +#ifndef ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERUDPLISTENERRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERUDPLISTENERRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerListenerStatusResult : public ServiceResult + class ALIBABACLOUD_SLB_EXPORT CreateLoadBalancerUDPListenerResult : public ServiceResult { public: - SetLoadBalancerListenerStatusResult(); - explicit SetLoadBalancerListenerStatusResult(const std::string &payload); - ~SetLoadBalancerListenerStatusResult(); + CreateLoadBalancerUDPListenerResult(); + explicit CreateLoadBalancerUDPListenerResult(const std::string &payload); + ~CreateLoadBalancerUDPListenerResult(); protected: void parse(const std::string &payload); @@ -46,4 +46,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERLISTENERSTATUSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SLB_MODEL_CREATELOADBALANCERUDPLISTENERRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupRequest.h b/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupRequest.h new file mode 100644 index 000000000..31a71eed8 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupRequest.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATEMASTERSLAVESERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEMASTERSLAVESERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT CreateMasterSlaveServerGroupRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + CreateMasterSlaveServerGroupRequest(); + ~CreateMasterSlaveServerGroupRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getMasterSlaveBackendServers() const; + void setMasterSlaveBackendServers(const std::string &masterSlaveBackendServers); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getMasterSlaveServerGroupName() const; + void setMasterSlaveServerGroupName(const std::string &masterSlaveServerGroupName); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string masterSlaveBackendServers_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string masterSlaveServerGroupName_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEMASTERSLAVESERVERGROUPREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h b/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.h new file mode 100644 index 000000000..d868592f0 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateMasterSlaveServerGroupResult.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_SLB_MODEL_CREATEMASTERSLAVESERVERGROUPRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEMASTERSLAVESERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT CreateMasterSlaveServerGroupResult : public ServiceResult + { + public: + struct MasterSlaveBackendServer + { + std::string serverType; + std::string type; + std::string description; + std::string serverId; + std::string vpcId; + std::string serverIp; + int port; + int weight; + }; + + + CreateMasterSlaveServerGroupResult(); + explicit CreateMasterSlaveServerGroupResult(const std::string &payload); + ~CreateMasterSlaveServerGroupResult(); + std::string getMasterSlaveServerGroupId()const; + std::vector getMasterSlaveBackendServers()const; + + protected: + void parse(const std::string &payload); + private: + std::string masterSlaveServerGroupId_; + std::vector masterSlaveBackendServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEMASTERSLAVESERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateRulesRequest.h b/slb/include/alibabacloud/slb/model/CreateRulesRequest.h new file mode 100644 index 000000000..ce4c0e530 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateRulesRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATERULESREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATERULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT CreateRulesRequest : public RpcServiceRequest { +public: + CreateRulesRequest(); + ~CreateRulesRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getRuleList() const; + void setRuleList(const std::string &ruleList); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string ruleList_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string listenerProtocol_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_CREATERULESREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/CreateRulesResult.h b/slb/include/alibabacloud/slb/model/CreateRulesResult.h new file mode 100644 index 000000000..460701096 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateRulesResult.h @@ -0,0 +1,56 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATERULESRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATERULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT CreateRulesResult : public ServiceResult + { + public: + struct Rule + { + std::string ruleId; + std::string ruleName; + }; + + + CreateRulesResult(); + explicit CreateRulesResult(const std::string &payload); + ~CreateRulesResult(); + std::vector getRules()const; + + protected: + void parse(const std::string &payload); + private: + std::vector rules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_CREATERULESRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateTLSCipherPolicyRequest.h b/slb/include/alibabacloud/slb/model/CreateTLSCipherPolicyRequest.h new file mode 100644 index 000000000..58e191d3d --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateTLSCipherPolicyRequest.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_SLB_MODEL_CREATETLSCIPHERPOLICYREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATETLSCIPHERPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT CreateTLSCipherPolicyRequest : public RpcServiceRequest { +public: + CreateTLSCipherPolicyRequest(); + ~CreateTLSCipherPolicyRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + 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 getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::vector ciphers_; + std::vector tLSVersions_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_CREATETLSCIPHERPOLICYREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeBackendServersResult.h b/slb/include/alibabacloud/slb/model/CreateTLSCipherPolicyResult.h similarity index 58% rename from slb/include/alibabacloud/slb/model/DescribeBackendServersResult.h rename to slb/include/alibabacloud/slb/model/CreateTLSCipherPolicyResult.h index 5a4068ba8..06db63fef 100644 --- a/slb/include/alibabacloud/slb/model/DescribeBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/CreateTLSCipherPolicyResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEBACKENDSERVERSRESULT_H_ -#define ALIBABACLOUD_SLB_MODEL_DESCRIBEBACKENDSERVERSRESULT_H_ +#ifndef ALIBABACLOUD_SLB_MODEL_CREATETLSCIPHERPOLICYRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATETLSCIPHERPOLICYRESULT_H_ #include #include @@ -29,33 +29,23 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_SLB_EXPORT DescribeBackendServersResult : public ServiceResult + class ALIBABACLOUD_SLB_EXPORT CreateTLSCipherPolicyResult : public ServiceResult { public: - struct Listener - { - struct BackendServer - { - std::string serverId; - std::string serverHealthStatus; - }; - int listenerPort; - std::vector backendServers; - }; - DescribeBackendServersResult(); - explicit DescribeBackendServersResult(const std::string &payload); - ~DescribeBackendServersResult(); - std::vector getListeners()const; + CreateTLSCipherPolicyResult(); + explicit CreateTLSCipherPolicyResult(const std::string &payload); + ~CreateTLSCipherPolicyResult(); + std::string getTLSCipherPolicyId()const; protected: void parse(const std::string &payload); private: - std::vector listeners_; + std::string tLSCipherPolicyId_; }; } } } -#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEBACKENDSERVERSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_SLB_MODEL_CREATETLSCIPHERPOLICYRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/CreateVServerGroupRequest.h b/slb/include/alibabacloud/slb/model/CreateVServerGroupRequest.h new file mode 100644 index 000000000..bd21544cf --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateVServerGroupRequest.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_CREATEVSERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEVSERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT CreateVServerGroupRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + CreateVServerGroupRequest(); + ~CreateVServerGroupRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBackendServers() const; + void setBackendServers(const std::string &backendServers); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getVServerGroupName() const; + void setVServerGroupName(const std::string &vServerGroupName); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string backendServers_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string vServerGroupName_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEVSERVERGROUPREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/CreateVServerGroupResult.h b/slb/include/alibabacloud/slb/model/CreateVServerGroupResult.h new file mode 100644 index 000000000..8303f1fde --- /dev/null +++ b/slb/include/alibabacloud/slb/model/CreateVServerGroupResult.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_SLB_MODEL_CREATEVSERVERGROUPRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_CREATEVSERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT CreateVServerGroupResult : public ServiceResult + { + public: + struct BackendServer + { + std::string type; + std::string description; + std::string serverId; + std::string vpcId; + std::string serverRegionId; + std::string serverIp; + int port; + std::string vbrId; + int weight; + }; + + + CreateVServerGroupResult(); + explicit CreateVServerGroupResult(const std::string &payload); + ~CreateVServerGroupResult(); + std::string getVServerGroupId()const; + std::vector getBackendServers()const; + + protected: + void parse(const std::string &payload); + private: + std::string vServerGroupId_; + std::vector backendServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_CREATEVSERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteAccessControlListRequest.h b/slb/include/alibabacloud/slb/model/DeleteAccessControlListRequest.h new file mode 100644 index 000000000..b559123b0 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteAccessControlListRequest.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_SLB_MODEL_DELETEACCESSCONTROLLISTREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEACCESSCONTROLLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DeleteAccessControlListRequest : public RpcServiceRequest { +public: + DeleteAccessControlListRequest(); + ~DeleteAccessControlListRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEACCESSCONTROLLISTREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DeleteAccessControlListResult.h b/slb/include/alibabacloud/slb/model/DeleteAccessControlListResult.h new file mode 100644 index 000000000..0ad254091 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteAccessControlListResult.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_SLB_MODEL_DELETEACCESSCONTROLLISTRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEACCESSCONTROLLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteAccessControlListResult : public ServiceResult + { + public: + + + DeleteAccessControlListResult(); + explicit DeleteAccessControlListResult(const std::string &payload); + ~DeleteAccessControlListResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEACCESSCONTROLLISTRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteAccessLogsDownloadAttributeRequest.h b/slb/include/alibabacloud/slb/model/DeleteAccessLogsDownloadAttributeRequest.h new file mode 100644 index 000000000..d0bd09a0c --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteAccessLogsDownloadAttributeRequest.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_SLB_MODEL_DELETEACCESSLOGSDOWNLOADATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEACCESSLOGSDOWNLOADATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DeleteAccessLogsDownloadAttributeRequest : public RpcServiceRequest { +public: + DeleteAccessLogsDownloadAttributeRequest(); + ~DeleteAccessLogsDownloadAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLogsDownloadAttributes() const; + void setLogsDownloadAttributes(const std::string &logsDownloadAttributes); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string logsDownloadAttributes_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEACCESSLOGSDOWNLOADATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DeleteAccessLogsDownloadAttributeResult.h b/slb/include/alibabacloud/slb/model/DeleteAccessLogsDownloadAttributeResult.h new file mode 100644 index 000000000..b9abb74c7 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteAccessLogsDownloadAttributeResult.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_SLB_MODEL_DELETEACCESSLOGSDOWNLOADATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEACCESSLOGSDOWNLOADATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteAccessLogsDownloadAttributeResult : public ServiceResult + { + public: + + + DeleteAccessLogsDownloadAttributeResult(); + explicit DeleteAccessLogsDownloadAttributeResult(const std::string &payload); + ~DeleteAccessLogsDownloadAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEACCESSLOGSDOWNLOADATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteCACertificateRequest.h b/slb/include/alibabacloud/slb/model/DeleteCACertificateRequest.h new file mode 100644 index 000000000..d01fa2b8f --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteCACertificateRequest.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_SLB_MODEL_DELETECACERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETECACERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DeleteCACertificateRequest : public RpcServiceRequest { +public: + DeleteCACertificateRequest(); + ~DeleteCACertificateRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCACertificateId() const; + void setCACertificateId(const std::string &cACertificateId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string cACertificateId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DELETECACERTIFICATEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DeleteCACertificateResult.h b/slb/include/alibabacloud/slb/model/DeleteCACertificateResult.h new file mode 100644 index 000000000..ca976a58e --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteCACertificateResult.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_SLB_MODEL_DELETECACERTIFICATERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETECACERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteCACertificateResult : public ServiceResult + { + public: + + + DeleteCACertificateResult(); + explicit DeleteCACertificateResult(const std::string &payload); + ~DeleteCACertificateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETECACERTIFICATERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteDomainExtensionRequest.h b/slb/include/alibabacloud/slb/model/DeleteDomainExtensionRequest.h new file mode 100644 index 000000000..fa2a92af7 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteDomainExtensionRequest.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_SLB_MODEL_DELETEDOMAINEXTENSIONREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEDOMAINEXTENSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DeleteDomainExtensionRequest : public RpcServiceRequest { +public: + DeleteDomainExtensionRequest(); + ~DeleteDomainExtensionRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDomainExtensionId() const; + void setDomainExtensionId(const std::string &domainExtensionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string domainExtensionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEDOMAINEXTENSIONREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DeleteDomainExtensionResult.h b/slb/include/alibabacloud/slb/model/DeleteDomainExtensionResult.h new file mode 100644 index 000000000..d09fb2da8 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteDomainExtensionResult.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_SLB_MODEL_DELETEDOMAINEXTENSIONRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEDOMAINEXTENSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteDomainExtensionResult : public ServiceResult + { + public: + + + DeleteDomainExtensionResult(); + explicit DeleteDomainExtensionResult(const std::string &payload); + ~DeleteDomainExtensionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEDOMAINEXTENSIONRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteLoadBalancerListenerRequest.h b/slb/include/alibabacloud/slb/model/DeleteLoadBalancerListenerRequest.h index 5e30de91e..8f3532231 100644 --- a/slb/include/alibabacloud/slb/model/DeleteLoadBalancerListenerRequest.h +++ b/slb/include/alibabacloud/slb/model/DeleteLoadBalancerListenerRequest.h @@ -34,8 +34,8 @@ public: void setAccess_key_id(const std::string &access_key_id); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); int getListenerPort() const; void setListenerPort(int listenerPort); std::string getResourceOwnerAccount() const; @@ -44,6 +44,8 @@ public: void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); std::string getTags() const; void setTags(const std::string &tags); std::string getLoadBalancerId() const; @@ -52,11 +54,12 @@ public: private: std::string access_key_id_; long resourceOwnerId_; - std::string accessKeyId_; + std::string regionId_; int listenerPort_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; + std::string listenerProtocol_; std::string tags_; std::string loadBalancerId_; }; diff --git a/slb/include/alibabacloud/slb/model/DeleteLoadBalancerRequest.h b/slb/include/alibabacloud/slb/model/DeleteLoadBalancerRequest.h index 8975d3b77..ec256afc8 100644 --- a/slb/include/alibabacloud/slb/model/DeleteLoadBalancerRequest.h +++ b/slb/include/alibabacloud/slb/model/DeleteLoadBalancerRequest.h @@ -34,8 +34,10 @@ public: void setAccess_key_id(const std::string &access_key_id); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getEnableEipReserve() const; + void setEnableEipReserve(const std::string &enableEipReserve); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -50,7 +52,8 @@ public: private: std::string access_key_id_; long resourceOwnerId_; - std::string accessKeyId_; + std::string regionId_; + std::string enableEipReserve_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/slb/include/alibabacloud/slb/model/DeleteMasterSlaveServerGroupRequest.h b/slb/include/alibabacloud/slb/model/DeleteMasterSlaveServerGroupRequest.h new file mode 100644 index 000000000..93efc685a --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteMasterSlaveServerGroupRequest.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_SLB_MODEL_DELETEMASTERSLAVESERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEMASTERSLAVESERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DeleteMasterSlaveServerGroupRequest : public RpcServiceRequest { +public: + DeleteMasterSlaveServerGroupRequest(); + ~DeleteMasterSlaveServerGroupRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getMasterSlaveServerGroupId() const; + void setMasterSlaveServerGroupId(const std::string &masterSlaveServerGroupId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string masterSlaveServerGroupId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEMASTERSLAVESERVERGROUPREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DeleteMasterSlaveServerGroupResult.h b/slb/include/alibabacloud/slb/model/DeleteMasterSlaveServerGroupResult.h new file mode 100644 index 000000000..20b324fa7 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteMasterSlaveServerGroupResult.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_SLB_MODEL_DELETEMASTERSLAVESERVERGROUPRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEMASTERSLAVESERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteMasterSlaveServerGroupResult : public ServiceResult + { + public: + + + DeleteMasterSlaveServerGroupResult(); + explicit DeleteMasterSlaveServerGroupResult(const std::string &payload); + ~DeleteMasterSlaveServerGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEMASTERSLAVESERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteRulesRequest.h b/slb/include/alibabacloud/slb/model/DeleteRulesRequest.h new file mode 100644 index 000000000..826fa0b45 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteRulesRequest.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_SLB_MODEL_DELETERULESREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETERULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DeleteRulesRequest : public RpcServiceRequest { +public: + DeleteRulesRequest(); + ~DeleteRulesRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getRuleIds() const; + void setRuleIds(const std::string &ruleIds); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string ruleIds_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DELETERULESREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DeleteRulesResult.h b/slb/include/alibabacloud/slb/model/DeleteRulesResult.h new file mode 100644 index 000000000..e73f875a3 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteRulesResult.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_SLB_MODEL_DELETERULESRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETERULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteRulesResult : public ServiceResult + { + public: + + + DeleteRulesResult(); + explicit DeleteRulesResult(const std::string &payload); + ~DeleteRulesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETERULESRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteServerCertificateRequest.h b/slb/include/alibabacloud/slb/model/DeleteServerCertificateRequest.h new file mode 100644 index 000000000..d1bccbc3e --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteServerCertificateRequest.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_SLB_MODEL_DELETESERVERCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETESERVERCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DeleteServerCertificateRequest : public RpcServiceRequest { +public: + DeleteServerCertificateRequest(); + ~DeleteServerCertificateRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getServerCertificateId() const; + void setServerCertificateId(const std::string &serverCertificateId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string serverCertificateId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DELETESERVERCERTIFICATEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DeleteServerCertificateResult.h b/slb/include/alibabacloud/slb/model/DeleteServerCertificateResult.h new file mode 100644 index 000000000..f4b425f0b --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteServerCertificateResult.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_SLB_MODEL_DELETESERVERCERTIFICATERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETESERVERCERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteServerCertificateResult : public ServiceResult + { + public: + + + DeleteServerCertificateResult(); + explicit DeleteServerCertificateResult(const std::string &payload); + ~DeleteServerCertificateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETESERVERCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteTLSCipherPolicyRequest.h b/slb/include/alibabacloud/slb/model/DeleteTLSCipherPolicyRequest.h new file mode 100644 index 000000000..d0e281742 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteTLSCipherPolicyRequest.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_SLB_MODEL_DELETETLSCIPHERPOLICYREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETETLSCIPHERPOLICYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DeleteTLSCipherPolicyRequest : public RpcServiceRequest { +public: + DeleteTLSCipherPolicyRequest(); + ~DeleteTLSCipherPolicyRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTLSCipherPolicyId() const; + void setTLSCipherPolicyId(const std::string &tLSCipherPolicyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string tLSCipherPolicyId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DELETETLSCIPHERPOLICYREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DeleteTLSCipherPolicyResult.h b/slb/include/alibabacloud/slb/model/DeleteTLSCipherPolicyResult.h new file mode 100644 index 000000000..c778dda79 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteTLSCipherPolicyResult.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_SLB_MODEL_DELETETLSCIPHERPOLICYRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETETLSCIPHERPOLICYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteTLSCipherPolicyResult : public ServiceResult + { + public: + + + DeleteTLSCipherPolicyResult(); + explicit DeleteTLSCipherPolicyResult(const std::string &payload); + ~DeleteTLSCipherPolicyResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETETLSCIPHERPOLICYRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DeleteVServerGroupRequest.h b/slb/include/alibabacloud/slb/model/DeleteVServerGroupRequest.h new file mode 100644 index 000000000..a9e7f2036 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteVServerGroupRequest.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_SLB_MODEL_DELETEVSERVERGROUPREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEVSERVERGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DeleteVServerGroupRequest : public RpcServiceRequest { +public: + DeleteVServerGroupRequest(); + ~DeleteVServerGroupRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string vServerGroupId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEVSERVERGROUPREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DeleteVServerGroupResult.h b/slb/include/alibabacloud/slb/model/DeleteVServerGroupResult.h new file mode 100644 index 000000000..3766a1610 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DeleteVServerGroupResult.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_SLB_MODEL_DELETEVSERVERGROUPRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DELETEVSERVERGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DeleteVServerGroupResult : public ServiceResult + { + public: + + + DeleteVServerGroupResult(); + explicit DeleteVServerGroupResult(const std::string &payload); + ~DeleteVServerGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DELETEVSERVERGROUPRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeRequest.h new file mode 100644 index 000000000..86e0dcb79 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeAccessControlListAttributeRequest : public RpcServiceRequest { +public: + DescribeAccessControlListAttributeRequest(); + ~DescribeAccessControlListAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getAclEntryComment() const; + void setAclEntryComment(const std::string &aclEntryComment); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + int getPage() const; + void setPage(int page); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string regionId_; + int pageSize_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string aclEntryComment_; + long ownerId_; + std::string tags_; + int page_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h new file mode 100644 index 000000000..80d2aad41 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAccessControlListAttributeResult.h @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeAccessControlListAttributeResult : public ServiceResult + { + public: + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + struct AclEntry + { + std::string aclEntryComment; + std::string aclEntryIP; + }; + struct RelatedListener + { + int listenerPort; + std::string aclType; + std::string loadBalancerId; + std::string protocol; + }; + + + DescribeAccessControlListAttributeResult(); + explicit DescribeAccessControlListAttributeResult(const std::string &payload); + ~DescribeAccessControlListAttributeResult(); + std::vector getAclEntrys()const; + std::string getResourceGroupId()const; + int getTotalAclEntry()const; + std::string getServiceManagedMode()const; + std::string getAclId()const; + std::string getAddressIPVersion()const; + std::string getCreateTime()const; + std::vector getRelatedListeners()const; + std::vector getTags()const; + std::string getAclName()const; + + protected: + void parse(const std::string &payload); + private: + std::vector aclEntrys_; + std::string resourceGroupId_; + int totalAclEntry_; + std::string serviceManagedMode_; + std::string aclId_; + std::string addressIPVersion_; + std::string createTime_; + std::vector relatedListeners_; + std::vector tags_; + std::string aclName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h new file mode 100644 index 000000000..ad2d32052 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsRequest.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeAccessControlListsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeAccessControlListsRequest(); + ~DescribeAccessControlListsRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclName() const; + void setAclName(const std::string &aclName); + std::string getAddressIPVersion() const; + void setAddressIPVersion(const std::string &addressIPVersion); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string aclName_; + std::string addressIPVersion_; + int pageNumber_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + int pageSize_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h new file mode 100644 index 000000000..2853e2a12 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAccessControlListsResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeAccessControlListsResult : public ServiceResult + { + public: + struct Acl + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string resourceGroupId; + std::string serviceManagedMode; + std::string aclId; + std::string addressIPVersion; + std::string createTime; + std::vector tags; + std::string aclName; + }; + + + DescribeAccessControlListsResult(); + explicit DescribeAccessControlListsResult(const std::string &payload); + ~DescribeAccessControlListsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getAcls()const; + int getCount()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector acls_; + int count_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSCONTROLLISTSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessLogsDownloadAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeAccessLogsDownloadAttributeRequest.h new file mode 100644 index 000000000..7a4f4efb2 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAccessLogsDownloadAttributeRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSLOGSDOWNLOADATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSLOGSDOWNLOADATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeAccessLogsDownloadAttributeRequest : public RpcServiceRequest { +public: + DescribeAccessLogsDownloadAttributeRequest(); + ~DescribeAccessLogsDownloadAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getLogType() const; + void setLogType(const std::string &logType); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + int pageNumber_; + std::string logType_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSLOGSDOWNLOADATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeAccessLogsDownloadAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeAccessLogsDownloadAttributeResult.h new file mode 100644 index 000000000..98656af08 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAccessLogsDownloadAttributeResult.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_SLB_MODEL_DESCRIBEACCESSLOGSDOWNLOADATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSLOGSDOWNLOADATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeAccessLogsDownloadAttributeResult : public ServiceResult + { + public: + struct LogsDownloadAttribute + { + std::string logStore; + std::string logType; + std::string region; + std::string loadBalancerId; + std::string logProject; + std::string roleArn; + }; + + + DescribeAccessLogsDownloadAttributeResult(); + explicit DescribeAccessLogsDownloadAttributeResult(const std::string &payload); + ~DescribeAccessLogsDownloadAttributeResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + int getCount()const; + std::vector getLogsDownloadAttributes()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + int count_; + std::vector logsDownloadAttributes_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEACCESSLOGSDOWNLOADATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeAvailableResourceRequest.h b/slb/include/alibabacloud/slb/model/DescribeAvailableResourceRequest.h new file mode 100644 index 000000000..59935d297 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAvailableResourceRequest.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_SLB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeAvailableResourceRequest : public RpcServiceRequest { +public: + DescribeAvailableResourceRequest(); + ~DescribeAvailableResourceRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAddressIPVersion() const; + void setAddressIPVersion(const std::string &addressIPVersion); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAddressType() const; + void setAddressType(const std::string &addressType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string addressIPVersion_; + std::string regionId_; + std::string addressType_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEAVAILABLERESOURCEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeAvailableResourceResult.h b/slb/include/alibabacloud/slb/model/DescribeAvailableResourceResult.h new file mode 100644 index 000000000..be3e0fa40 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeAvailableResourceResult.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_SLB_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeAvailableResourceResult : public ServiceResult + { + public: + struct AvailableResource + { + struct SupportResource + { + std::string addressIPVersion; + std::string addressType; + }; + std::vector supportResources; + std::string slaveZoneId; + std::string masterZoneId; + }; + + + DescribeAvailableResourceResult(); + explicit DescribeAvailableResourceResult(const std::string &payload); + ~DescribeAvailableResourceResult(); + std::vector getAvailableResources()const; + + protected: + void parse(const std::string &payload); + private: + std::vector availableResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEAVAILABLERESOURCERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeCACertificatesRequest.h b/slb/include/alibabacloud/slb/model/DescribeCACertificatesRequest.h new file mode 100644 index 000000000..83d894feb --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeCACertificatesRequest.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_SLB_MODEL_DESCRIBECACERTIFICATESREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBECACERTIFICATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeCACertificatesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeCACertificatesRequest(); + ~DescribeCACertificatesRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCACertificateId() const; + void setCACertificateId(const std::string &cACertificateId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string cACertificateId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBECACERTIFICATESREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h b/slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h new file mode 100644 index 000000000..3a61acd35 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeCACertificatesResult.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBECACERTIFICATESRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBECACERTIFICATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeCACertificatesResult : public ServiceResult + { + public: + struct CACertificate + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string fingerprint; + long expireTimeStamp; + std::string resourceGroupId; + std::string cACertificateId; + std::string createTime; + std::string standardType; + int encryptionKeyLength; + std::string cACertificateName; + std::string encryptionAlgorithm; + std::string regionId; + std::string expireTime; + std::vector tags; + long createTimeStamp; + std::string commonName; + }; + + + DescribeCACertificatesResult(); + explicit DescribeCACertificatesResult(const std::string &payload); + ~DescribeCACertificatesResult(); + std::vector getCACertificates()const; + + protected: + void parse(const std::string &payload); + private: + std::vector cACertificates_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBECACERTIFICATESRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeDomainExtensionAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionAttributeRequest.h new file mode 100644 index 000000000..33794a29a --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionAttributeRequest.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_SLB_MODEL_DESCRIBEDOMAINEXTENSIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeDomainExtensionAttributeRequest : public RpcServiceRequest { +public: + DescribeDomainExtensionAttributeRequest(); + ~DescribeDomainExtensionAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDomainExtensionId() const; + void setDomainExtensionId(const std::string &domainExtensionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string domainExtensionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeDomainExtensionAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionAttributeResult.h new file mode 100644 index 000000000..f9a0adfad --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionAttributeResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeDomainExtensionAttributeResult : public ServiceResult + { + public: + struct Certificate + { + std::string certificateId; + std::string encryptionAlgorithm; + }; + struct ServerCertificate + { + std::string bindingType; + std::string certificateId; + std::string encryptionAlgorithm; + std::string standardType; + }; + + + DescribeDomainExtensionAttributeResult(); + explicit DescribeDomainExtensionAttributeResult(const std::string &payload); + ~DescribeDomainExtensionAttributeResult(); + int getListenerPort()const; + std::string getDomainExtensionId()const; + std::vector getCertificates()const; + std::vector getServerCertificates()const; + std::string getServerCertificateId()const; + std::string getLoadBalancerId()const; + std::string getDomain()const; + + protected: + void parse(const std::string &payload); + private: + int listenerPort_; + std::string domainExtensionId_; + std::vector certificates_; + std::vector serverCertificates_; + std::string serverCertificateId_; + std::string loadBalancerId_; + std::string domain_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsRequest.h b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsRequest.h new file mode 100644 index 000000000..56e423f27 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsRequest.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_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeDomainExtensionsRequest : public RpcServiceRequest { +public: + DescribeDomainExtensionsRequest(); + ~DescribeDomainExtensionsRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDomainExtensionId() const; + void setDomainExtensionId(const std::string &domainExtensionId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string domainExtensionId_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsResult.h b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsResult.h new file mode 100644 index 000000000..dcb64b964 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeDomainExtensionsResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeDomainExtensionsResult : public ServiceResult + { + public: + struct DomainExtension + { + struct Certificate + { + std::string certificateId; + std::string encryptionAlgorithm; + }; + struct ServerCertificate + { + std::string certificateId; + std::string bindingType; + std::string encryptionAlgorithm; + std::string standardType; + }; + std::string domainExtensionId; + std::vector certificates; + std::vector serverCertificates; + std::string serverCertificateId; + std::string domain; + }; + + + DescribeDomainExtensionsResult(); + explicit DescribeDomainExtensionsResult(const std::string &payload); + ~DescribeDomainExtensionsResult(); + std::vector getDomainExtensions()const; + + protected: + void parse(const std::string &payload); + private: + std::vector domainExtensions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEDOMAINEXTENSIONSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeHealthStatusRequest.h b/slb/include/alibabacloud/slb/model/DescribeHealthStatusRequest.h new file mode 100644 index 000000000..08c73d030 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeHealthStatusRequest.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_SLB_MODEL_DESCRIBEHEALTHSTATUSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEHEALTHSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeHealthStatusRequest : public RpcServiceRequest { +public: + DescribeHealthStatusRequest(); + ~DescribeHealthStatusRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string listenerProtocol_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEHEALTHSTATUSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.h b/slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.h new file mode 100644 index 000000000..8ca4b4471 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeHealthStatusResult.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_SLB_MODEL_DESCRIBEHEALTHSTATUSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEHEALTHSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeHealthStatusResult : public ServiceResult + { + public: + struct BackendServer + { + int listenerPort; + std::string type; + std::string serverId; + std::string eniHost; + std::string serverIp; + int port; + std::string serverHealthStatus; + std::string protocol; + }; + + + DescribeHealthStatusResult(); + explicit DescribeHealthStatusResult(const std::string &payload); + ~DescribeHealthStatusResult(); + std::vector getBackendServers()const; + + protected: + void parse(const std::string &payload); + private: + std::vector backendServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEHEALTHSTATUSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeHighDefinationMonitorRequest.h b/slb/include/alibabacloud/slb/model/DescribeHighDefinationMonitorRequest.h new file mode 100644 index 000000000..a4fe81017 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeHighDefinationMonitorRequest.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_SLB_MODEL_DESCRIBEHIGHDEFINATIONMONITORREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEHIGHDEFINATIONMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeHighDefinationMonitorRequest : public RpcServiceRequest { +public: + DescribeHighDefinationMonitorRequest(); + ~DescribeHighDefinationMonitorRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEHIGHDEFINATIONMONITORREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeHighDefinationMonitorResult.h b/slb/include/alibabacloud/slb/model/DescribeHighDefinationMonitorResult.h new file mode 100644 index 000000000..6cc5eb294 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeHighDefinationMonitorResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEHIGHDEFINATIONMONITORRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEHIGHDEFINATIONMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeHighDefinationMonitorResult : public ServiceResult + { + public: + + + DescribeHighDefinationMonitorResult(); + explicit DescribeHighDefinationMonitorResult(const std::string &payload); + ~DescribeHighDefinationMonitorResult(); + std::string getLogStore()const; + std::string getLogProject()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string logStore_; + std::string logProject_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEHIGHDEFINATIONMONITORRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeRequest.h new file mode 100644 index 000000000..9ad6ce396 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeRequest.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_SLB_MODEL_DESCRIBELISTENERACCESSCONTROLATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBELISTENERACCESSCONTROLATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeListenerAccessControlAttributeRequest : public RpcServiceRequest { +public: + DescribeListenerAccessControlAttributeRequest(); + ~DescribeListenerAccessControlAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string listenerProtocol_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBELISTENERACCESSCONTROLATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeResult.h new file mode 100644 index 000000000..3eef3bf8c --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeListenerAccessControlAttributeResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBELISTENERACCESSCONTROLATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBELISTENERACCESSCONTROLATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeListenerAccessControlAttributeResult : public ServiceResult + { + public: + + + DescribeListenerAccessControlAttributeResult(); + explicit DescribeListenerAccessControlAttributeResult(const std::string &payload); + ~DescribeListenerAccessControlAttributeResult(); + std::string getAccessControlStatus()const; + std::string getSourceItems()const; + + protected: + void parse(const std::string &payload); + private: + std::string accessControlStatus_; + std::string sourceItems_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBELISTENERACCESSCONTROLATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeRequest.h index 03a31731d..a79de5e89 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeRequest.h @@ -34,8 +34,10 @@ public: void setAccess_key_id(const std::string &access_key_id); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + bool getIncludeReservedData() const; + void setIncludeReservedData(bool includeReservedData); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -50,7 +52,8 @@ public: private: std::string access_key_id_; long resourceOwnerId_; - std::string accessKeyId_; + bool includeReservedData_; + std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h index 2ed3de0b4..2149f6f6f 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerAttributeResult.h @@ -32,6 +32,11 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerAttributeResult : public ServiceResult { public: + struct Tag + { + std::string tagKey; + std::string tagValue; + }; struct ListenerPortAndProtocal { int listenerPort; @@ -39,12 +44,19 @@ namespace AlibabaCloud }; struct ListenerPortAndProtocol { + std::string listenerForward; int listenerPort; + std::string description; + int forwardPort; std::string listenerProtocol; }; struct BackendServer { + std::string type; + std::string description; std::string serverId; + std::string vpcId; + std::string serverIp; int weight; }; @@ -53,61 +65,115 @@ namespace AlibabaCloud explicit DescribeLoadBalancerAttributeResult(const std::string &payload); ~DescribeLoadBalancerAttributeResult(); std::vector getListenerPortsAndProtocal()const; - std::string getEndTime()const; std::string getAddress()const; + std::string getResourceGroupId()const; + std::string getSpecType()const; + std::string getInstanceChargeType()const; + std::vector getBackendServers()const; + std::string getHasReservedInfo()const; + std::string getBusinessStatus()const; + std::string getLoadBalancerSpec()const; + std::string getServiceManagedMode()const; + std::string getModificationProtectionReason()const; + std::string getAssociatedCenId()const; + std::vector getTags()const; + std::vector getListenerPorts()const; + std::string getCloudInstanceType()const; + std::string getVSwitchId()const; + std::string getRenewalStatus()const; + std::vector getLabels()const; + std::string getPayType()const; + std::string getInternetChargeType()const; + std::string getReservedInfoInternetChargeType()const; + std::string getVpcId()const; + std::string getDeleteProtection()const; + long getEndTimeStamp()const; + std::string getLoadBalancerStatus()const; + long getAutoReleaseTime()const; + int getRenewalDuration()const; + std::string getAssociatedCenStatus()const; + std::string getEndTime()const; + bool getSupportPrivateLink()const; + std::string getAddressIPVersion()const; std::vector getListenerPortsAndProtocol()const; std::string getLoadBalancerId()const; - std::vector getBackendServers()const; - std::string getLoadBalancerSpec()const; + std::string getReservedInfoBandwidth()const; + std::string getModificationProtectionStatus()const; std::string getNetworkType()const; int getBandwidth()const; - std::vector getListenerPorts()const; + bool getSpecBpsFlag()const; std::string getMasterZoneId()const; + std::string getTunnelType()const; + std::string getCloudType()const; std::string getCreateTime()const; - std::string getVSwitchId()const; - std::string getPayType()const; + long getCloudInstanceUid()const; + std::string getRenewalCycUnit()const; + std::string getReservedInfoActiveTime()const; + std::string getCloudInstanceId()const; std::string getSlaveZoneId()const; - std::string getInternetChargeType()const; std::string getRegionIdAlias()const; std::string getLoadBalancerName()const; - std::string getIsPublicAddress()const; - std::string getVpcId()const; - long getEndTimeStamp()const; + std::string getReservedInfoOrderType()const; std::string getRegionId()const; std::string getAddressType()const; - std::string getLoadBalancerStatus()const; long getCreateTimeStamp()const; - long getAutoReleaseTime()const; protected: void parse(const std::string &payload); private: std::vector listenerPortsAndProtocal_; - std::string endTime_; std::string address_; + std::string resourceGroupId_; + std::string specType_; + std::string instanceChargeType_; + std::vector backendServers_; + std::string hasReservedInfo_; + std::string businessStatus_; + std::string loadBalancerSpec_; + std::string serviceManagedMode_; + std::string modificationProtectionReason_; + std::string associatedCenId_; + std::vector tags_; + std::vector listenerPorts_; + std::string cloudInstanceType_; + std::string vSwitchId_; + std::string renewalStatus_; + std::vector labels_; + std::string payType_; + std::string internetChargeType_; + std::string reservedInfoInternetChargeType_; + std::string vpcId_; + std::string deleteProtection_; + long endTimeStamp_; + std::string loadBalancerStatus_; + long autoReleaseTime_; + int renewalDuration_; + std::string associatedCenStatus_; + std::string endTime_; + bool supportPrivateLink_; + std::string addressIPVersion_; std::vector listenerPortsAndProtocol_; std::string loadBalancerId_; - std::vector backendServers_; - std::string loadBalancerSpec_; + std::string reservedInfoBandwidth_; + std::string modificationProtectionStatus_; std::string networkType_; int bandwidth_; - std::vector listenerPorts_; + bool specBpsFlag_; std::string masterZoneId_; + std::string tunnelType_; + std::string cloudType_; std::string createTime_; - std::string vSwitchId_; - std::string payType_; + long cloudInstanceUid_; + std::string renewalCycUnit_; + std::string reservedInfoActiveTime_; + std::string cloudInstanceId_; std::string slaveZoneId_; - std::string internetChargeType_; std::string regionIdAlias_; std::string loadBalancerName_; - std::string isPublicAddress_; - std::string vpcId_; - long endTimeStamp_; + std::string reservedInfoOrderType_; std::string regionId_; std::string addressType_; - std::string loadBalancerStatus_; long createTimeStamp_; - long autoReleaseTime_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeRequest.h index 5423b3bce..c45f0f743 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeRequest.h @@ -34,8 +34,8 @@ public: void setAccess_key_id(const std::string &access_key_id); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); int getListenerPort() const; void setListenerPort(int listenerPort); std::string getResourceOwnerAccount() const; @@ -52,7 +52,7 @@ public: private: std::string access_key_id_; long resourceOwnerId_; - std::string accessKeyId_; + std::string regionId_; int listenerPort_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h index c331da2d6..6f2589e68 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPListenerAttributeResult.h @@ -32,6 +32,19 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerHTTPListenerAttributeResult : public ServiceResult { public: + struct Rule + { + std::string vServerGroupId; + std::string ruleId; + std::string domain; + std::string url; + std::string ruleName; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; DescribeLoadBalancerHTTPListenerAttributeResult(); @@ -40,29 +53,49 @@ namespace AlibabaCloud int getCookieTimeout()const; int getMaxConnection()const; std::string getVServerGroupId()const; + std::string getDescription()const; int getUnhealthyThreshold()const; + std::string getHealthCheckURI()const; std::string getScheduler()const; std::string getHealthCheck()const; + int getIdleTimeout()const; + std::string getLoadBalancerId()const; int getBackendServerPort()const; - std::string getURI()const; std::string getXForwardedFor_SLBID()const; int getHealthCheckConnectPort()const; + std::string getXForwardedFor_SLBPORT()const; + std::string getHealthCheckMethod()const; + std::string getServiceManagedMode()const; int getBandwidth()const; std::string getSecurityStatus()const; std::string getGzip()const; std::string getStickySessionType()const; std::string getXForwardedFor_SLBIP()const; std::string getHealthCheckHttpCode()const; + std::vector getTags()const; + int getForwardCode()const; std::string getStatus()const; std::string getCookie()const; + int getRequestTimeout()const; int getListenerPort()const; + int getHealthCheckInterval()const; + std::string getAclId()const; + std::string getHealthCheckHttpVersion()const; int getHealthCheckTimeout()const; + std::vector getRules()const; + std::string getListenerForward()const; std::string getStickySession()const; + std::string getAclStatus()const; + int getForwardPort()const; + std::string getVpcIds()const; int getHealthyThreshold()const; + std::string getXForwardedFor_ClientSrcPort()const; std::string getXForwardedFor()const; + std::string getHealthCheckDomain()const; + std::string getAclType()const; std::string getXForwardedFor_proto()const; - std::string getDomain()const; - int getInterval()const; + std::vector getAclIds()const; + std::string getHealthCheckType()const; protected: void parse(const std::string &payload); @@ -70,29 +103,49 @@ namespace AlibabaCloud int cookieTimeout_; int maxConnection_; std::string vServerGroupId_; + std::string description_; int unhealthyThreshold_; + std::string healthCheckURI_; std::string scheduler_; std::string healthCheck_; + int idleTimeout_; + std::string loadBalancerId_; int backendServerPort_; - std::string uRI_; std::string xForwardedFor_SLBID_; int healthCheckConnectPort_; + std::string xForwardedFor_SLBPORT_; + std::string healthCheckMethod_; + std::string serviceManagedMode_; int bandwidth_; std::string securityStatus_; std::string gzip_; std::string stickySessionType_; std::string xForwardedFor_SLBIP_; std::string healthCheckHttpCode_; + std::vector tags_; + int forwardCode_; std::string status_; std::string cookie_; + int requestTimeout_; int listenerPort_; + int healthCheckInterval_; + std::string aclId_; + std::string healthCheckHttpVersion_; int healthCheckTimeout_; + std::vector rules_; + std::string listenerForward_; std::string stickySession_; + std::string aclStatus_; + int forwardPort_; + std::string vpcIds_; int healthyThreshold_; + std::string xForwardedFor_ClientSrcPort_; std::string xForwardedFor_; + std::string healthCheckDomain_; + std::string aclType_; std::string xForwardedFor_proto_; - std::string domain_; - int interval_; + std::vector aclIds_; + std::string healthCheckType_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeBackendServersRequest.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h similarity index 78% rename from slb/include/alibabacloud/slb/model/DescribeBackendServersRequest.h rename to slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h index e90e64c08..389963e7b 100644 --- a/slb/include/alibabacloud/slb/model/DescribeBackendServersRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEBACKENDSERVERSREQUEST_H_ -#define ALIBABACLOUD_SLB_MODEL_DESCRIBEBACKENDSERVERSREQUEST_H_ +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ #include #include @@ -26,16 +26,14 @@ namespace AlibabaCloud { namespace Slb { namespace Model { -class ALIBABACLOUD_SLB_EXPORT DescribeBackendServersRequest : public RpcServiceRequest { +class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerHTTPSListenerAttributeRequest : public RpcServiceRequest { public: - DescribeBackendServersRequest(); - ~DescribeBackendServersRequest(); + DescribeLoadBalancerHTTPSListenerAttributeRequest(); + ~DescribeLoadBalancerHTTPSListenerAttributeRequest(); std::string getAccess_key_id() const; void setAccess_key_id(const std::string &access_key_id); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getRegionId() const; void setRegionId(const std::string ®ionId); int getListenerPort() const; @@ -54,7 +52,6 @@ public: private: std::string access_key_id_; long resourceOwnerId_; - std::string accessKeyId_; std::string regionId_; int listenerPort_; std::string resourceOwnerAccount_; @@ -66,4 +63,4 @@ private: } // namespace Model } // namespace Slb } // namespace AlibabaCloud -#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEBACKENDSERVERSREQUEST_H_ +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h new file mode 100644 index 000000000..50d4dde6b --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerHTTPSListenerAttributeResult.h @@ -0,0 +1,205 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerHTTPSListenerAttributeResult : public ServiceResult + { + public: + struct Rule + { + std::string vServerGroupId; + std::string ruleId; + std::string domain; + std::string url; + std::string ruleName; + }; + struct DomainExtension + { + struct Certificate + { + std::string certificateId; + std::string encryptionAlgorithm; + }; + struct ServerCertificate + { + std::string bindingType; + std::string certificateId; + std::string encryptionAlgorithm; + std::string standardType; + }; + std::string domainExtensionId; + std::vector serverCertificates1; + std::vector certificates; + std::string serverCertificateId; + std::string domain; + }; + struct ServerCertificate2 + { + std::string bindingType; + std::string certificateId; + std::string encryptionAlgorithm; + std::string standardType; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + + + DescribeLoadBalancerHTTPSListenerAttributeResult(); + explicit DescribeLoadBalancerHTTPSListenerAttributeResult(const std::string &payload); + ~DescribeLoadBalancerHTTPSListenerAttributeResult(); + int getUnhealthyThreshold()const; + std::string getHealthCheckURI()const; + std::vector getDomainExtensions()const; + std::string getHealthCheck()const; + int getBackendServerPort()const; + std::string getXForwardedFor_SLBPORT()const; + std::string getServiceManagedMode()const; + std::string getStickySessionType()const; + std::vector getTags()const; + std::string getXForwardedFor_ClientCertSubjectDNAlias()const; + std::string getStatus()const; + std::string getCookie()const; + std::string getXForwardedFor_ClientCertClientVerifyAlias()const; + int getRequestTimeout()const; + std::string getTLSCipherPolicy()const; + int getHealthCheckInterval()const; + std::string getCACertificateId()const; + std::vector getServerCertificates()const; + std::string getXForwardedFor_ClientCertFingerprintAlias()const; + int getHealthCheckTimeout()const; + std::string getAclStatus()const; + std::string getVpcIds()const; + int getHealthyThreshold()const; + std::string getHealthCheckDomain()const; + std::string getAclType()const; + std::string getXForwardedFor_proto()const; + std::string getEnableHttp2()const; + std::string getHealthCheckType()const; + int getCookieTimeout()const; + int getMaxConnection()const; + std::string getVServerGroupId()const; + std::string getBackendProtocol()const; + std::string getDescription()const; + std::string getScheduler()const; + int getIdleTimeout()const; + std::string getLoadBalancerId()const; + std::string getXForwardedFor_SLBID()const; + int getHealthCheckConnectPort()const; + std::string getHealthCheckMethod()const; + int getBandwidth()const; + std::string getSecurityStatus()const; + std::string getGzip()const; + std::string getServerCertificateId()const; + std::string getXForwardedFor_SLBIP()const; + std::string getHealthCheckHttpCode()const; + int getListenerPort()const; + std::string getXForwardedFor_ClientCertSubjectDN()const; + std::string getAclId()const; + std::string getXForwardedFor_ClientCertIssuerDNAlias()const; + std::string getHealthCheckHttpVersion()const; + std::vector getRules()const; + std::string getXForwardedFor_ClientCertIssuerDN()const; + std::string getStickySession()const; + std::string getXForwardedFor()const; + std::string getXForwardedFor_ClientSrcPort()const; + std::string getXForwardedFor_ClientCertClientVerify()const; + std::string getXForwardedFor_ClientCertFingerprint()const; + std::vector getAclIds()const; + + protected: + void parse(const std::string &payload); + private: + int unhealthyThreshold_; + std::string healthCheckURI_; + std::vector domainExtensions_; + std::string healthCheck_; + int backendServerPort_; + std::string xForwardedFor_SLBPORT_; + std::string serviceManagedMode_; + std::string stickySessionType_; + std::vector tags_; + std::string xForwardedFor_ClientCertSubjectDNAlias_; + std::string status_; + std::string cookie_; + std::string xForwardedFor_ClientCertClientVerifyAlias_; + int requestTimeout_; + std::string tLSCipherPolicy_; + int healthCheckInterval_; + std::string cACertificateId_; + std::vector serverCertificates_; + std::string xForwardedFor_ClientCertFingerprintAlias_; + int healthCheckTimeout_; + std::string aclStatus_; + std::string vpcIds_; + int healthyThreshold_; + std::string healthCheckDomain_; + std::string aclType_; + std::string xForwardedFor_proto_; + std::string enableHttp2_; + std::string healthCheckType_; + int cookieTimeout_; + int maxConnection_; + std::string vServerGroupId_; + std::string backendProtocol_; + std::string description_; + std::string scheduler_; + int idleTimeout_; + std::string loadBalancerId_; + std::string xForwardedFor_SLBID_; + int healthCheckConnectPort_; + std::string healthCheckMethod_; + int bandwidth_; + std::string securityStatus_; + std::string gzip_; + std::string serverCertificateId_; + std::string xForwardedFor_SLBIP_; + std::string healthCheckHttpCode_; + int listenerPort_; + std::string xForwardedFor_ClientCertSubjectDN_; + std::string aclId_; + std::string xForwardedFor_ClientCertIssuerDNAlias_; + std::string healthCheckHttpVersion_; + std::vector rules_; + std::string xForwardedFor_ClientCertIssuerDN_; + std::string stickySession_; + std::string xForwardedFor_; + std::string xForwardedFor_ClientSrcPort_; + std::string xForwardedFor_ClientCertClientVerify_; + std::string xForwardedFor_ClientCertFingerprint_; + std::vector aclIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerListenersRequest.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerListenersRequest.h new file mode 100644 index 000000000..6d0590e39 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerListenersRequest.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerListenersRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeLoadBalancerListenersRequest(); + ~DescribeLoadBalancerListenersRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::vector getLoadBalancerId() const; + void setLoadBalancerId(const std::vector &loadBalancerId); + int getMaxResults() const; + void setMaxResults(int maxResults); + +private: + long resourceOwnerId_; + std::string description_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string listenerProtocol_; + std::vector loadBalancerId_; + int maxResults_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerListenersResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerListenersResult.h new file mode 100644 index 000000000..d3584fd54 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerListenersResult.h @@ -0,0 +1,260 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerListenersResult : public ServiceResult + { + public: + struct Listener + { + struct HTTPListenerConfig + { + int cookieTimeout; + int maxConnection; + int unhealthyThreshold; + std::string healthCheckURI; + std::string healthCheck; + int idleTimeout; + std::string xForwardedFor_SLBID; + int healthCheckConnectPort; + std::string xForwardedFor_SLBPORT; + std::string healthCheckMethod; + std::string gzip; + std::string stickySessionType; + std::string xForwardedFor_SLBIP; + std::string healthCheckHttpCode; + int forwardCode; + std::string cookie; + int requestTimeout; + int healthCheckInterval; + std::string healthCheckHttpVersion; + int healthCheckTimeout; + std::string listenerForward; + std::string stickySession; + int forwardPort; + int healthyThreshold; + std::string xForwardedFor_ClientSrcPort; + std::string xForwardedFor; + std::string healthCheckDomain; + std::string xForwardedFor_proto; + std::string healthCheckType; + }; + struct HTTPSListenerConfig + { + struct ServerCertificate + { + std::string bindingType; + std::string certificateId; + std::string encryptionAlgorithm; + std::string standardType; + }; + int cookieTimeout; + int maxConnection; + int unhealthyThreshold; + std::string healthCheckURI; + std::string healthCheck; + int idleTimeout; + std::string xForwardedFor_SLBID; + int healthCheckConnectPort; + std::string xForwardedFor_SLBPORT; + std::string healthCheckMethod; + std::string gzip; + std::string serverCertificateId; + std::string stickySessionType; + std::string xForwardedFor_SLBIP; + std::string healthCheckHttpCode; + std::string xForwardedFor_ClientCertSubjectDNAlias; + std::string cookie; + std::string xForwardedFor_ClientCertClientVerifyAlias; + int requestTimeout; + int healthCheckInterval; + std::string tLSCipherPolicy; + std::string cACertificateId; + std::string xForwardedFor_ClientCertSubjectDN; + std::vector serverCertificates; + std::string healthCheckHttpVersion; + std::string xForwardedFor_ClientCertFingerprintAlias; + std::string xForwardedFor_ClientCertIssuerDNAlias; + int healthCheckTimeout; + std::string xForwardedFor_ClientCertIssuerDN; + std::string stickySession; + int healthyThreshold; + std::string xForwardedFor_ClientSrcPort; + std::string xForwardedFor; + std::string healthCheckDomain; + std::string xForwardedFor_proto; + std::string enableHttp2; + std::string xForwardedFor_ClientCertClientVerify; + std::string xForwardedFor_ClientCertFingerprint; + std::string healthCheckType; + }; + struct TCPListenerConfig + { + struct PortRange + { + int startPort; + int endPort; + }; + int maxConnection; + int unhealthyThreshold; + std::string proxyProtocolV2Enabled; + int failoverThreshold; + std::string healthCheckURI; + std::string healthCheck; + bool masterSlaveModeEnabled; + bool healthCheckTcpFastCloseEnabled; + int connectionDrainTimeout; + int persistenceTimeout; + int healthCheckConnectPort; + std::string masterServerGroupId; + std::string healthCheckMethod; + std::string healthCheckHttpCode; + std::string slaveServerGroupId; + int establishedTimeout; + int healthCheckInterval; + std::vector portRanges; + int healthCheckConnectTimeout; + std::string connectionDrain; + std::string healthCheckSwitch; + int healthyThreshold; + std::string failoverStrategy; + std::string masterSlaveServerGroupId; + std::string healthCheckDomain; + std::string fullNatEnabled; + std::string healthCheckType; + }; + struct TCPSListenerConfig + { + std::string cookie; + int cookieTimeout; + int healthCheckInterval; + std::string tLSCipherPolicy; + std::string cACertificateId; + int unhealthyThreshold; + std::string healthCheckURI; + std::string healthCheck; + int idleTimeout; + int healthCheckTimeout; + std::string stickySession; + int healthCheckConnectPort; + std::string healthCheckMethod; + int healthyThreshold; + std::string serverCertificateId; + std::string healthCheckDomain; + std::string stickySessionType; + std::string healthCheckHttpCode; + std::string healthCheckType; + }; + struct UDPListenerConfig + { + struct PortRange2 + { + int startPort; + int endPort; + }; + int maxConnection; + int unhealthyThreshold; + std::string proxyProtocolV2Enabled; + int failoverThreshold; + std::string healthCheckURI; + std::string healthCheck; + bool masterSlaveModeEnabled; + int connectionDrainTimeout; + int persistenceTimeout; + int healthCheckConnectPort; + std::string masterServerGroupId; + std::string healthCheckMethod; + std::string quicVersion; + std::string healthCheckHttpCode; + std::string slaveServerGroupId; + int healthCheckInterval; + int healthCheckConnectTimeout; + std::string connectionDrain; + std::vector portRanges1; + std::string healthCheckSwitch; + std::string healthCheckReq; + std::string healthCheckExp; + int healthyThreshold; + std::string failoverStrategy; + std::string masterSlaveServerGroupId; + std::string healthCheckDomain; + std::string fullNatEnabled; + std::string healthCheckType; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string status; + std::string vServerGroupId; + int listenerPort; + std::string description; + std::string backendProtocol; + HTTPSListenerConfig hTTPSListenerConfig; + std::string scheduler; + HTTPListenerConfig hTTPListenerConfig; + std::string aclId; + UDPListenerConfig uDPListenerConfig; + std::string loadBalancerId; + std::string listenerProtocol; + int backendServerPort; + std::string aclStatus; + TCPListenerConfig tCPListenerConfig; + std::string serviceManagedMode; + int bandwidth; + TCPSListenerConfig tCPSListenerConfig; + std::string aclType; + std::vector tags; + std::vector aclIds; + }; + + + DescribeLoadBalancerListenersResult(); + explicit DescribeLoadBalancerListenersResult(const std::string &payload); + ~DescribeLoadBalancerListenersResult(); + std::vector getListeners()const; + int getTotalCount()const; + std::string getNextToken()const; + int getMaxResults()const; + + protected: + void parse(const std::string &payload); + private: + std::vector listeners_; + int totalCount_; + std::string nextToken_; + int maxResults_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERLISTENERSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeRequest.h index 9b93325cf..49a1994e7 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeRequest.h @@ -34,8 +34,8 @@ public: void setAccess_key_id(const std::string &access_key_id); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); int getListenerPort() const; void setListenerPort(int listenerPort); std::string getResourceOwnerAccount() const; @@ -52,7 +52,7 @@ public: private: std::string access_key_id_; long resourceOwnerId_; - std::string accessKeyId_; + std::string regionId_; int listenerPort_; std::string resourceOwnerAccount_; std::string ownerAccount_; diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h index d810dbd41..d44682196 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerTCPListenerAttributeResult.h @@ -32,57 +32,111 @@ namespace AlibabaCloud class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerTCPListenerAttributeResult : public ServiceResult { public: + struct PortRange + { + int startPort; + int endPort; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; DescribeLoadBalancerTCPListenerAttributeResult(); explicit DescribeLoadBalancerTCPListenerAttributeResult(const std::string &payload); ~DescribeLoadBalancerTCPListenerAttributeResult(); - std::string getStatus()const; int getMaxConnection()const; std::string getVServerGroupId()const; - int getListenerPort()const; - int getConnectTimeout()const; - int getConnectPort()const; + std::string getDescription()const; std::string getSynProxy()const; int getUnhealthyThreshold()const; + bool getProxyProtocolV2Enabled()const; + int getFailoverThreshold()const; std::string getHealthCheckURI()const; std::string getScheduler()const; std::string getHealthCheck()const; + std::string getLoadBalancerId()const; + std::string getWorkingServerGroupId()const; int getBackendServerPort()const; + bool getMasterSlaveModeEnabled()const; + bool getHealthCheckTcpFastCloseEnabled()const; + int getConnectionDrainTimeout()const; int getPersistenceTimeout()const; + int getHealthCheckConnectPort()const; + std::string getMasterServerGroupId()const; + std::string getHealthCheckMethod()const; + std::string getServiceManagedMode()const; int getBandwidth()const; + std::string getHealthCheckHttpCode()const; + std::string getSlaveServerGroupId()const; + std::vector getTags()const; + int getEstablishedTimeout()const; + std::string getStatus()const; + int getListenerPort()const; + int getHealthCheckInterval()const; + std::vector getPortRanges()const; + std::string getAclId()const; + int getHealthCheckConnectTimeout()const; + std::string getConnectionDrain()const; + std::string getAclStatus()const; + std::string getVpcIds()const; + std::string getFailoverStrategy()const; int getHealthyThreshold()const; std::string getMasterSlaveServerGroupId()const; std::string getHealthCheckDomain()const; - std::string getHealthCheckHttpCode()const; + std::string getAclType()const; + bool getFullNatEnabled()const; + std::vector getAclIds()const; std::string getHealthCheckType()const; - int getInterval()const; - int getEstablishedTimeout()const; protected: void parse(const std::string &payload); private: - std::string status_; int maxConnection_; std::string vServerGroupId_; - int listenerPort_; - int connectTimeout_; - int connectPort_; + std::string description_; std::string synProxy_; int unhealthyThreshold_; + bool proxyProtocolV2Enabled_; + int failoverThreshold_; std::string healthCheckURI_; std::string scheduler_; std::string healthCheck_; + std::string loadBalancerId_; + std::string workingServerGroupId_; int backendServerPort_; + bool masterSlaveModeEnabled_; + bool healthCheckTcpFastCloseEnabled_; + int connectionDrainTimeout_; int persistenceTimeout_; + int healthCheckConnectPort_; + std::string masterServerGroupId_; + std::string healthCheckMethod_; + std::string serviceManagedMode_; int bandwidth_; + std::string healthCheckHttpCode_; + std::string slaveServerGroupId_; + std::vector tags_; + int establishedTimeout_; + std::string status_; + int listenerPort_; + int healthCheckInterval_; + std::vector portRanges_; + std::string aclId_; + int healthCheckConnectTimeout_; + std::string connectionDrain_; + std::string aclStatus_; + std::string vpcIds_; + std::string failoverStrategy_; int healthyThreshold_; std::string masterSlaveServerGroupId_; std::string healthCheckDomain_; - std::string healthCheckHttpCode_; + std::string aclType_; + bool fullNatEnabled_; + std::vector aclIds_; std::string healthCheckType_; - int interval_; - int establishedTimeout_; }; } diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeRequest.h new file mode 100644 index 000000000..801be3e41 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeRequest.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_SLB_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerUDPListenerAttributeRequest : public RpcServiceRequest { +public: + DescribeLoadBalancerUDPListenerAttributeRequest(); + ~DescribeLoadBalancerUDPListenerAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h new file mode 100644 index 000000000..f756e8f72 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancerUDPListenerAttributeResult.h @@ -0,0 +1,147 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancerUDPListenerAttributeResult : public ServiceResult + { + public: + struct PortRange + { + int startPort; + int endPort; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + + + DescribeLoadBalancerUDPListenerAttributeResult(); + explicit DescribeLoadBalancerUDPListenerAttributeResult(const std::string &payload); + ~DescribeLoadBalancerUDPListenerAttributeResult(); + int getMaxConnection()const; + std::string getVServerGroupId()const; + std::string getDescription()const; + int getUnhealthyThreshold()const; + bool getProxyProtocolV2Enabled()const; + int getFailoverThreshold()const; + std::string getHealthCheckURI()const; + std::string getScheduler()const; + std::string getHealthCheck()const; + std::string getLoadBalancerId()const; + std::string getWorkingServerGroupId()const; + int getBackendServerPort()const; + bool getMasterSlaveModeEnabled()const; + int getConnectionDrainTimeout()const; + int getPersistenceTimeout()const; + int getHealthCheckConnectPort()const; + std::string getMasterServerGroupId()const; + std::string getHealthCheckMethod()const; + std::string getServiceManagedMode()const; + int getBandwidth()const; + std::string getQuicVersion()const; + std::string getHealthCheckHttpCode()const; + std::string getSlaveServerGroupId()const; + std::vector getTags()const; + std::string getStatus()const; + int getListenerPort()const; + int getHealthCheckInterval()const; + std::vector getPortRanges()const; + std::string getAclId()const; + int getHealthCheckConnectTimeout()const; + std::string getConnectionDrain()const; + std::string getHealthCheckSwitch()const; + std::string getAclStatus()const; + std::string getHealthCheckReq()const; + std::string getVpcIds()const; + std::string getFailoverStrategy()const; + std::string getHealthCheckExp()const; + int getHealthyThreshold()const; + std::string getMasterSlaveServerGroupId()const; + std::string getHealthCheckDomain()const; + std::string getAclType()const; + bool getFullNatEnabled()const; + std::vector getAclIds()const; + std::string getHealthCheckType()const; + + protected: + void parse(const std::string &payload); + private: + int maxConnection_; + std::string vServerGroupId_; + std::string description_; + int unhealthyThreshold_; + bool proxyProtocolV2Enabled_; + int failoverThreshold_; + std::string healthCheckURI_; + std::string scheduler_; + std::string healthCheck_; + std::string loadBalancerId_; + std::string workingServerGroupId_; + int backendServerPort_; + bool masterSlaveModeEnabled_; + int connectionDrainTimeout_; + int persistenceTimeout_; + int healthCheckConnectPort_; + std::string masterServerGroupId_; + std::string healthCheckMethod_; + std::string serviceManagedMode_; + int bandwidth_; + std::string quicVersion_; + std::string healthCheckHttpCode_; + std::string slaveServerGroupId_; + std::vector tags_; + std::string status_; + int listenerPort_; + int healthCheckInterval_; + std::vector portRanges_; + std::string aclId_; + int healthCheckConnectTimeout_; + std::string connectionDrain_; + std::string healthCheckSwitch_; + std::string aclStatus_; + std::string healthCheckReq_; + std::string vpcIds_; + std::string failoverStrategy_; + std::string healthCheckExp_; + int healthyThreshold_; + std::string masterSlaveServerGroupId_; + std::string healthCheckDomain_; + std::string aclType_; + bool fullNatEnabled_; + std::vector aclIds_; + std::string healthCheckType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBELOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h index bcb0454c1..c3cd077c0 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersRequest.h @@ -28,38 +28,28 @@ namespace Slb { namespace Model { class ALIBABACLOUD_SLB_EXPORT DescribeLoadBalancersRequest : public RpcServiceRequest { public: + struct Tag { + std::string value; + std::string key; + }; DescribeLoadBalancersRequest(); ~DescribeLoadBalancersRequest(); - std::string getAccess_key_id() const; - void setAccess_key_id(const std::string &access_key_id); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); std::string getNetworkType() const; void setNetworkType(const std::string &networkType); + std::string getAddressIPVersion() const; + void setAddressIPVersion(const std::string &addressIPVersion); std::string getMasterZoneId() const; void setMasterZoneId(const std::string &masterZoneId); - int getPageNumber() const; - void setPageNumber(int pageNumber); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getResourceGroupId() const; void setResourceGroupId(const std::string &resourceGroupId); std::string getLoadBalancerName() const; void setLoadBalancerName(const std::string &loadBalancerName); - std::string getRegionId() const; - void setRegionId(const std::string ®ionId); - int getPageSize() const; - void setPageSize(int pageSize); - std::string getAddressType() const; - void setAddressType(const std::string &addressType); std::string getSlaveZoneId() const; void setSlaveZoneId(const std::string &slaveZoneId); - std::string getAddress() const; - void setAddress(const std::string &address); - std::string getResourceOwnerAccount() const; - void setResourceOwnerAccount(const std::string &resourceOwnerAccount); - std::string getOwnerAccount() const; - void setOwnerAccount(const std::string &ownerAccount); + std::vector getTag() const; + void setTag(const std::vector &tag); long getOwnerId() const; void setOwnerId(long ownerId); std::string getServerId() const; @@ -74,27 +64,48 @@ public: void setLoadBalancerId(const std::string &loadBalancerId); std::string getInternetChargeType() const; void setInternetChargeType(const std::string &internetChargeType); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + bool getSupportPrivateLink() const; + void setSupportPrivateLink(bool supportPrivateLink); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getAddressType() const; + void setAddressType(const std::string &addressType); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getFuzzy() const; + void setFuzzy(const std::string &fuzzy); + std::string getBusinessStatus() const; + void setBusinessStatus(const std::string &businessStatus); + std::string getAddress() const; + void setAddress(const std::string &address); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + bool getFilterByTagOrName() const; + void setFilterByTagOrName(bool filterByTagOrName); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getLoadBalancerStatus() const; + void setLoadBalancerStatus(const std::string &loadBalancerStatus); std::string getVpcId() const; void setVpcId(const std::string &vpcId); std::string getPayType() const; void setPayType(const std::string &payType); private: - std::string access_key_id_; long resourceOwnerId_; std::string networkType_; + std::string addressIPVersion_; std::string masterZoneId_; - int pageNumber_; - std::string accessKeyId_; std::string resourceGroupId_; std::string loadBalancerName_; - std::string regionId_; - int pageSize_; - std::string addressType_; std::string slaveZoneId_; - std::string address_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; + std::vector tag_; long ownerId_; std::string serverId_; std::string tags_; @@ -102,6 +113,20 @@ private: std::string vSwitchId_; std::string loadBalancerId_; std::string internetChargeType_; + std::string access_key_id_; + bool supportPrivateLink_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string addressType_; + std::string instanceChargeType_; + std::string fuzzy_; + std::string businessStatus_; + std::string address_; + std::string resourceOwnerAccount_; + bool filterByTagOrName_; + std::string ownerAccount_; + std::string loadBalancerStatus_; std::string vpcId_; std::string payType_; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h index d12e680ae..05cb9a687 100644 --- a/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeLoadBalancersResult.h @@ -34,23 +34,43 @@ namespace AlibabaCloud public: struct LoadBalancer { - std::string resourceGroupId; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string serviceManagedReason; std::string address; + std::string resourceGroupId; + std::string specType; + std::string instanceChargeType; + std::string addressIPVersion; + std::string loadBalancerId; + std::string businessStatus; + std::string modificationProtectionStatus; + std::string loadBalancerSpec; + std::string networkType; + std::string serviceManagedMode; + int bandwidth; + std::string modificationProtectionReason; + bool specBpsFlag; + std::vector tags; + std::string masterZoneId; std::string createTime; std::string vSwitchId; - std::string loadBalancerId; std::string payType; std::string slaveZoneId; + std::vector ineffectiveOrderList; std::string internetChargeType; + std::string internetChargeTypeAlias; std::string regionIdAlias; std::string loadBalancerName; std::string vpcId; - std::string networkType; + std::string deleteProtection; std::string regionId; std::string addressType; std::string loadBalancerStatus; long createTimeStamp; - std::string masterZoneId; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeRequest.h new file mode 100644 index 000000000..c38f49ab4 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeRequest.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_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeMasterSlaveServerGroupAttributeRequest : public RpcServiceRequest { +public: + DescribeMasterSlaveServerGroupAttributeRequest(); + ~DescribeMasterSlaveServerGroupAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getMasterSlaveServerGroupId() const; + void setMasterSlaveServerGroupId(const std::string &masterSlaveServerGroupId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string masterSlaveServerGroupId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h new file mode 100644 index 000000000..7dccfcce6 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupAttributeResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeMasterSlaveServerGroupAttributeResult : public ServiceResult + { + public: + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + struct MasterSlaveBackendServer + { + std::string serverType; + std::string type; + std::string description; + std::string serverId; + std::string vpcId; + std::string serverIp; + int port; + int weight; + }; + + + DescribeMasterSlaveServerGroupAttributeResult(); + explicit DescribeMasterSlaveServerGroupAttributeResult(const std::string &payload); + ~DescribeMasterSlaveServerGroupAttributeResult(); + std::string getServiceManagedMode()const; + std::string getCreateTime()const; + std::string getMasterSlaveServerGroupId()const; + std::string getLoadBalancerId()const; + std::string getMasterSlaveServerGroupName()const; + std::vector getMasterSlaveBackendServers()const; + std::vector getTags()const; + + protected: + void parse(const std::string &payload); + private: + std::string serviceManagedMode_; + std::string createTime_; + std::string masterSlaveServerGroupId_; + std::string loadBalancerId_; + std::string masterSlaveServerGroupName_; + std::vector masterSlaveBackendServers_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsRequest.h b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsRequest.h new file mode 100644 index 000000000..efd196c9e --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsRequest.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeMasterSlaveServerGroupsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeMasterSlaveServerGroupsRequest(); + ~DescribeMasterSlaveServerGroupsRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getIncludeListener() const; + void setIncludeListener(bool includeListener); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + bool includeListener_; + std::string description_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsResult.h b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsResult.h new file mode 100644 index 000000000..65d598149 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeMasterSlaveServerGroupsResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeMasterSlaveServerGroupsResult : public ServiceResult + { + public: + struct MasterSlaveServerGroup + { + struct AssociatedObjects + { + struct Listener + { + int port; + std::string protocol; + }; + std::vector listeners; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + AssociatedObjects associatedObjects; + std::string serviceManagedMode; + std::string createTime; + std::string masterSlaveServerGroupId; + std::string masterSlaveServerGroupName; + std::vector tags; + }; + + + DescribeMasterSlaveServerGroupsResult(); + explicit DescribeMasterSlaveServerGroupsResult(const std::string &payload); + ~DescribeMasterSlaveServerGroupsResult(); + std::vector getMasterSlaveServerGroups()const; + + protected: + void parse(const std::string &payload); + private: + std::vector masterSlaveServerGroups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEMASTERSLAVESERVERGROUPSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeRegionsRequest.h b/slb/include/alibabacloud/slb/model/DescribeRegionsRequest.h index 7022fb146..b9cfb9211 100644 --- a/slb/include/alibabacloud/slb/model/DescribeRegionsRequest.h +++ b/slb/include/alibabacloud/slb/model/DescribeRegionsRequest.h @@ -34,25 +34,28 @@ public: void setAccess_key_id(const std::string &access_key_id); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); long getOwnerId() const; void setOwnerId(long ownerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getTags() const; void setTags(const std::string &tags); + std::string getAcceptLanguage() const; + void setAcceptLanguage(const std::string &acceptLanguage); private: std::string access_key_id_; long resourceOwnerId_; + std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; - std::string accessKeyId_; std::string tags_; + std::string acceptLanguage_; }; } // namespace Model } // namespace Slb diff --git a/slb/include/alibabacloud/slb/model/DescribeRegionsResult.h b/slb/include/alibabacloud/slb/model/DescribeRegionsResult.h index 72a829885..9138a3bae 100644 --- a/slb/include/alibabacloud/slb/model/DescribeRegionsResult.h +++ b/slb/include/alibabacloud/slb/model/DescribeRegionsResult.h @@ -35,6 +35,7 @@ namespace AlibabaCloud struct Region { std::string regionId; + std::string regionEndpoint; std::string localName; }; diff --git a/slb/include/alibabacloud/slb/model/DescribeRuleAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeRuleAttributeRequest.h new file mode 100644 index 000000000..eb27ab086 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeRuleAttributeRequest.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_SLB_MODEL_DESCRIBERULEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBERULEATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeRuleAttributeRequest : public RpcServiceRequest { +public: + DescribeRuleAttributeRequest(); + ~DescribeRuleAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string ruleId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBERULEATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h new file mode 100644 index 000000000..9f8531626 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeRuleAttributeResult.h @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBERULEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBERULEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeRuleAttributeResult : public ServiceResult + { + public: + + + DescribeRuleAttributeResult(); + explicit DescribeRuleAttributeResult(const std::string &payload); + ~DescribeRuleAttributeResult(); + std::string getCookie()const; + int getCookieTimeout()const; + std::string getVServerGroupId()const; + std::string getListenerPort()const; + int getHealthCheckInterval()const; + int getUnhealthyThreshold()const; + std::string getHealthCheckURI()const; + std::string getScheduler()const; + std::string getRuleId()const; + std::string getHealthCheck()const; + std::string getLoadBalancerId()const; + int getHealthCheckTimeout()const; + std::string getUrl()const; + std::string getStickySession()const; + int getHealthCheckConnectPort()const; + std::string getServiceManagedMode()const; + int getHealthyThreshold()const; + std::string getHealthCheckDomain()const; + std::string getListenerSync()const; + std::string getStickySessionType()const; + std::string getDomain()const; + std::string getHealthCheckHttpCode()const; + std::string getRuleName()const; + + protected: + void parse(const std::string &payload); + private: + std::string cookie_; + int cookieTimeout_; + std::string vServerGroupId_; + std::string listenerPort_; + int healthCheckInterval_; + int unhealthyThreshold_; + std::string healthCheckURI_; + std::string scheduler_; + std::string ruleId_; + std::string healthCheck_; + std::string loadBalancerId_; + int healthCheckTimeout_; + std::string url_; + std::string stickySession_; + int healthCheckConnectPort_; + std::string serviceManagedMode_; + int healthyThreshold_; + std::string healthCheckDomain_; + std::string listenerSync_; + std::string stickySessionType_; + std::string domain_; + std::string healthCheckHttpCode_; + std::string ruleName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBERULEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeRulesRequest.h b/slb/include/alibabacloud/slb/model/DescribeRulesRequest.h new file mode 100644 index 000000000..223b43d26 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeRulesRequest.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_SLB_MODEL_DESCRIBERULESREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBERULESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeRulesRequest : public RpcServiceRequest { +public: + DescribeRulesRequest(); + ~DescribeRulesRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string listenerProtocol_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBERULESREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeRulesResult.h b/slb/include/alibabacloud/slb/model/DescribeRulesResult.h new file mode 100644 index 000000000..c8188edc9 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeRulesResult.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBERULESRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBERULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeRulesResult : public ServiceResult + { + public: + struct Rule + { + std::string cookie; + int cookieTimeout; + std::string vServerGroupId; + int healthCheckInterval; + int unhealthyThreshold; + std::string healthCheckURI; + std::string scheduler; + std::string ruleId; + std::string healthCheck; + int healthCheckTimeout; + std::string url; + std::string stickySession; + int healthCheckConnectPort; + std::string serviceManagedMode; + int healthyThreshold; + std::string listenerSync; + std::string healthCheckDomain; + std::string stickySessionType; + std::string domain; + std::string healthCheckHttpCode; + std::string ruleName; + }; + + + DescribeRulesResult(); + explicit DescribeRulesResult(const std::string &payload); + ~DescribeRulesResult(); + std::vector getRules()const; + + protected: + void parse(const std::string &payload); + private: + std::vector rules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBERULESRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeServerCertificatesRequest.h b/slb/include/alibabacloud/slb/model/DescribeServerCertificatesRequest.h new file mode 100644 index 000000000..b7fb769be --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeServerCertificatesRequest.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBESERVERCERTIFICATESREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBESERVERCERTIFICATESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeServerCertificatesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeServerCertificatesRequest(); + ~DescribeServerCertificatesRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getServerCertificateId() const; + void setServerCertificateId(const std::string &serverCertificateId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string serverCertificateId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBESERVERCERTIFICATESREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.h b/slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.h new file mode 100644 index 000000000..efb52986f --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeServerCertificatesResult.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_SLB_MODEL_DESCRIBESERVERCERTIFICATESRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBESERVERCERTIFICATESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeServerCertificatesResult : public ServiceResult + { + public: + struct ServerCertificate + { + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string fingerprint; + long expireTimeStamp; + std::string resourceGroupId; + std::string createTime; + std::vector subjectAlternativeNames; + std::string standardType; + std::string aliCloudCertificateId; + std::string regionIdAlias; + std::string aliCloudCertificateName; + int isAliCloudCertificate; + int encryptionKeyLength; + std::string serverCertificateId; + std::string encryptionAlgorithm; + std::string serverCertificateName; + std::string regionId; + std::string expireTime; + std::vector tags; + long createTimeStamp; + std::string commonName; + }; + + + DescribeServerCertificatesResult(); + explicit DescribeServerCertificatesResult(const std::string &payload); + ~DescribeServerCertificatesResult(); + std::vector getServerCertificates()const; + + protected: + void parse(const std::string &payload); + private: + std::vector serverCertificates_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBESERVERCERTIFICATESRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeTagsRequest.h b/slb/include/alibabacloud/slb/model/DescribeTagsRequest.h new file mode 100644 index 000000000..944d88743 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeTagsRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBETAGSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBETAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeTagsRequest : public RpcServiceRequest { +public: + DescribeTagsRequest(); + ~DescribeTagsRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + bool getDistinctKey() const; + void setDistinctKey(bool distinctKey); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + int pageNumber_; + std::string regionId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + bool distinctKey_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBETAGSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeTagsResult.h b/slb/include/alibabacloud/slb/model/DescribeTagsResult.h new file mode 100644 index 000000000..811d66c61 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeTagsResult.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_SLB_MODEL_DESCRIBETAGSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeTagsResult : public ServiceResult + { + public: + struct TagSet + { + int instanceCount; + std::string tagKey; + std::string tagValue; + }; + + + DescribeTagsResult(); + explicit DescribeTagsResult(const std::string &payload); + ~DescribeTagsResult(); + int getTotalCount()const; + int getPageSize()const; + int getPageNumber()const; + std::vector getTagSets()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + int pageSize_; + int pageNumber_; + std::vector tagSets_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBETAGSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeRequest.h b/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeRequest.h new file mode 100644 index 000000000..39c4011b7 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeRequest.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_SLB_MODEL_DESCRIBEVSERVERGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEVSERVERGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeVServerGroupAttributeRequest : public RpcServiceRequest { +public: + DescribeVServerGroupAttributeRequest(); + ~DescribeVServerGroupAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string vServerGroupId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEVSERVERGROUPATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h b/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.h new file mode 100644 index 000000000..af0d3939d --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeVServerGroupAttributeResult.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_SLB_MODEL_DESCRIBEVSERVERGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEVSERVERGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeVServerGroupAttributeResult : public ServiceResult + { + public: + struct BackendServer + { + std::string type; + std::string description; + std::string serverId; + std::string vpcId; + bool proxyProtocolV2Enabled; + std::string serverRegionId; + std::string serverIp; + int port; + std::string vbrId; + int weight; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + + + DescribeVServerGroupAttributeResult(); + explicit DescribeVServerGroupAttributeResult(const std::string &payload); + ~DescribeVServerGroupAttributeResult(); + std::string getVServerGroupId()const; + std::string getServiceManagedMode()const; + std::string getCreateTime()const; + std::string getVServerGroupName()const; + std::string getLoadBalancerId()const; + std::vector getBackendServers()const; + std::vector getTags()const; + + protected: + void parse(const std::string &payload); + private: + std::string vServerGroupId_; + std::string serviceManagedMode_; + std::string createTime_; + std::string vServerGroupName_; + std::string loadBalancerId_; + std::vector backendServers_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEVSERVERGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeVServerGroupsRequest.h b/slb/include/alibabacloud/slb/model/DescribeVServerGroupsRequest.h new file mode 100644 index 000000000..1988067d2 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeVServerGroupsRequest.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEVSERVERGROUPSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEVSERVERGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeVServerGroupsRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + DescribeVServerGroupsRequest(); + ~DescribeVServerGroupsRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getIncludeListener() const; + void setIncludeListener(bool includeListener); + std::string getDescription() const; + void setDescription(const std::string &description); + bool getIncludeRule() const; + void setIncludeRule(bool includeRule); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + bool includeListener_; + std::string description_; + bool includeRule_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEVSERVERGROUPSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeVServerGroupsResult.h b/slb/include/alibabacloud/slb/model/DescribeVServerGroupsResult.h new file mode 100644 index 000000000..ee31b911e --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeVServerGroupsResult.h @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_DESCRIBEVSERVERGROUPSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEVSERVERGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeVServerGroupsResult : public ServiceResult + { + public: + struct VServerGroup + { + struct AssociatedObjects + { + struct Listener + { + int port; + std::string protocol; + }; + struct Rule + { + std::string ruleId; + std::string domain; + std::string url; + std::string ruleName; + }; + std::vector listeners; + std::vector rules; + }; + struct Tag + { + std::string tagKey; + std::string tagValue; + }; + std::string vServerGroupId; + AssociatedObjects associatedObjects; + std::string serviceManagedMode; + std::string createTime; + std::string vServerGroupName; + long serverCount; + std::vector tags; + }; + + + DescribeVServerGroupsResult(); + explicit DescribeVServerGroupsResult(const std::string &payload); + ~DescribeVServerGroupsResult(); + std::vector getVServerGroups()const; + + protected: + void parse(const std::string &payload); + private: + std::vector vServerGroups_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEVSERVERGROUPSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/DescribeZonesRequest.h b/slb/include/alibabacloud/slb/model/DescribeZonesRequest.h new file mode 100644 index 000000000..725057e20 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeZonesRequest.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_SLB_MODEL_DESCRIBEZONESREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEZONESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT DescribeZonesRequest : public RpcServiceRequest { +public: + DescribeZonesRequest(); + ~DescribeZonesRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEZONESREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/DescribeZonesResult.h b/slb/include/alibabacloud/slb/model/DescribeZonesResult.h new file mode 100644 index 000000000..c63acc082 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/DescribeZonesResult.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_SLB_MODEL_DESCRIBEZONESRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_DESCRIBEZONESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT DescribeZonesResult : public ServiceResult + { + public: + struct Zone + { + struct SlaveZone + { + std::string zoneId; + std::string localName; + }; + std::vector slaveZones; + std::string zoneId; + std::string localName; + }; + + + DescribeZonesResult(); + explicit DescribeZonesResult(const std::string &payload); + ~DescribeZonesResult(); + std::vector getZones()const; + + protected: + void parse(const std::string &payload); + private: + std::vector zones_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_DESCRIBEZONESRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/EnableHighDefinationMonitorRequest.h b/slb/include/alibabacloud/slb/model/EnableHighDefinationMonitorRequest.h new file mode 100644 index 000000000..650239fdc --- /dev/null +++ b/slb/include/alibabacloud/slb/model/EnableHighDefinationMonitorRequest.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_SLB_MODEL_ENABLEHIGHDEFINATIONMONITORREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_ENABLEHIGHDEFINATIONMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT EnableHighDefinationMonitorRequest : public RpcServiceRequest { +public: + EnableHighDefinationMonitorRequest(); + ~EnableHighDefinationMonitorRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getLogProject() const; + void setLogProject(const std::string &logProject); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLogStore() const; + void setLogStore(const std::string &logStore); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string logProject_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string logStore_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_ENABLEHIGHDEFINATIONMONITORREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/EnableHighDefinationMonitorResult.h b/slb/include/alibabacloud/slb/model/EnableHighDefinationMonitorResult.h new file mode 100644 index 000000000..afde02f95 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/EnableHighDefinationMonitorResult.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_SLB_MODEL_ENABLEHIGHDEFINATIONMONITORRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_ENABLEHIGHDEFINATIONMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT EnableHighDefinationMonitorResult : public ServiceResult + { + public: + + + EnableHighDefinationMonitorResult(); + explicit EnableHighDefinationMonitorResult(const std::string &payload); + ~EnableHighDefinationMonitorResult(); + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_ENABLEHIGHDEFINATIONMONITORRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/ListTLSCipherPoliciesRequest.h b/slb/include/alibabacloud/slb/model/ListTLSCipherPoliciesRequest.h new file mode 100644 index 000000000..e65057ab3 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ListTLSCipherPoliciesRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_LISTTLSCIPHERPOLICIESREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_LISTTLSCIPHERPOLICIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT ListTLSCipherPoliciesRequest : public RpcServiceRequest { +public: + ListTLSCipherPoliciesRequest(); + ~ListTLSCipherPoliciesRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getIncludeListener() const; + void setIncludeListener(bool includeListener); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTLSCipherPolicyId() const; + void setTLSCipherPolicyId(const std::string &tLSCipherPolicyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + int getMaxItems() const; + void setMaxItems(int maxItems); + +private: + std::string access_key_id_; + long resourceOwnerId_; + bool includeListener_; + std::string accessKeyId_; + std::string tLSCipherPolicyId_; + std::string regionId_; + std::string nextToken_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + int maxItems_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_LISTTLSCIPHERPOLICIESREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/ListTLSCipherPoliciesResult.h b/slb/include/alibabacloud/slb/model/ListTLSCipherPoliciesResult.h new file mode 100644 index 000000000..2c2b184a2 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ListTLSCipherPoliciesResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_LISTTLSCIPHERPOLICIESRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_LISTTLSCIPHERPOLICIESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT ListTLSCipherPoliciesResult : public ServiceResult + { + public: + struct TLSCipherPolicy + { + struct RelateListener + { + int port; + std::string loadBalancerId; + std::string protocol; + }; + std::string status; + std::vector relateListeners; + std::vector ciphers; + std::string instanceId; + std::string serviceManagedMode; + long createTime; + std::vector tLSVersions; + std::string name; + }; + + + ListTLSCipherPoliciesResult(); + explicit ListTLSCipherPoliciesResult(const std::string &payload); + ~ListTLSCipherPoliciesResult(); + int getTotalCount()const; + std::string getNextToken()const; + std::vector getTLSCipherPolicies()const; + bool getIsTruncated()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string nextToken_; + std::vector tLSCipherPolicies_; + bool isTruncated_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_LISTTLSCIPHERPOLICIESRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/ListTagResourcesRequest.h b/slb/include/alibabacloud/slb/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..d1ad43318 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ListTagResourcesRequest.h @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT ListTagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getNextToken() const; + void setNextToken(const std::string &nextToken); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/ListTagResourcesResult.h b/slb/include/alibabacloud/slb/model/ListTagResourcesResult.h new file mode 100644 index 000000000..d10f83667 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ListTagResourcesResult.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_SLB_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getNextToken()const; + std::vector getTagResources()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextToken_; + std::vector tagResources_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/ModifyHighDefinationMonitorRequest.h b/slb/include/alibabacloud/slb/model/ModifyHighDefinationMonitorRequest.h new file mode 100644 index 000000000..182f6d2f5 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyHighDefinationMonitorRequest.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_SLB_MODEL_MODIFYHIGHDEFINATIONMONITORREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYHIGHDEFINATIONMONITORREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT ModifyHighDefinationMonitorRequest : public RpcServiceRequest { +public: + ModifyHighDefinationMonitorRequest(); + ~ModifyHighDefinationMonitorRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getLogProject() const; + void setLogProject(const std::string &logProject); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getLogStore() const; + void setLogStore(const std::string &logStore); + +private: + long resourceOwnerId_; + std::string logProject_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string logStore_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYHIGHDEFINATIONMONITORREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/ModifyHighDefinationMonitorResult.h b/slb/include/alibabacloud/slb/model/ModifyHighDefinationMonitorResult.h new file mode 100644 index 000000000..140ef3d18 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyHighDefinationMonitorResult.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_SLB_MODEL_MODIFYHIGHDEFINATIONMONITORRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYHIGHDEFINATIONMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT ModifyHighDefinationMonitorResult : public ServiceResult + { + public: + + + ModifyHighDefinationMonitorResult(); + explicit ModifyHighDefinationMonitorResult(const std::string &payload); + ~ModifyHighDefinationMonitorResult(); + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYHIGHDEFINATIONMONITORRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceChargeTypeRequest.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceChargeTypeRequest.h new file mode 100644 index 000000000..c9c26f59f --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceChargeTypeRequest.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_SLB_MODEL_MODIFYLOADBALANCERINSTANCECHARGETYPEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINSTANCECHARGETYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT ModifyLoadBalancerInstanceChargeTypeRequest : public RpcServiceRequest { +public: + ModifyLoadBalancerInstanceChargeTypeRequest(); + ~ModifyLoadBalancerInstanceChargeTypeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getInstanceChargeType() const; + void setInstanceChargeType(const std::string &instanceChargeType); + std::string getLoadBalancerSpec() const; + void setLoadBalancerSpec(const std::string &loadBalancerSpec); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + +private: + long resourceOwnerId_; + std::string regionId_; + std::string instanceChargeType_; + std::string loadBalancerSpec_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string loadBalancerId_; + std::string internetChargeType_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINSTANCECHARGETYPEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceChargeTypeResult.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceChargeTypeResult.h new file mode 100644 index 000000000..a4f4c2389 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceChargeTypeResult.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_SLB_MODEL_MODIFYLOADBALANCERINSTANCECHARGETYPERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINSTANCECHARGETYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT ModifyLoadBalancerInstanceChargeTypeResult : public ServiceResult + { + public: + + + ModifyLoadBalancerInstanceChargeTypeResult(); + explicit ModifyLoadBalancerInstanceChargeTypeResult(const std::string &payload); + ~ModifyLoadBalancerInstanceChargeTypeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINSTANCECHARGETYPERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecRequest.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecRequest.h new file mode 100644 index 000000000..cba352ab2 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecRequest.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_SLB_MODEL_MODIFYLOADBALANCERINSTANCESPECREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINSTANCESPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT ModifyLoadBalancerInstanceSpecRequest : public RpcServiceRequest { +public: + ModifyLoadBalancerInstanceSpecRequest(); + ~ModifyLoadBalancerInstanceSpecRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLoadBalancerSpec() const; + void setLoadBalancerSpec(const std::string &loadBalancerSpec); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string loadBalancerSpec_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINSTANCESPECREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecResult.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecResult.h new file mode 100644 index 000000000..e0f0aafc0 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInstanceSpecResult.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_SLB_MODEL_MODIFYLOADBALANCERINSTANCESPECRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINSTANCESPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT ModifyLoadBalancerInstanceSpecResult : public ServiceResult + { + public: + + + ModifyLoadBalancerInstanceSpecResult(); + explicit ModifyLoadBalancerInstanceSpecResult(const std::string &payload); + ~ModifyLoadBalancerInstanceSpecResult(); + long getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + long orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINSTANCESPECRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecRequest.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecRequest.h new file mode 100644 index 000000000..e67c4f67f --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINTERNETSPECREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINTERNETSPECREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT ModifyLoadBalancerInternetSpecRequest : public RpcServiceRequest { +public: + ModifyLoadBalancerInternetSpecRequest(); + ~ModifyLoadBalancerInternetSpecRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getInternetChargeType() const; + void setInternetChargeType(const std::string &internetChargeType); + int getRatio() const; + void setRatio(int ratio); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + bool autoPay_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; + std::string internetChargeType_; + int ratio_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINTERNETSPECREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecResult.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecResult.h new file mode 100644 index 000000000..cd5354917 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerInternetSpecResult.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_SLB_MODEL_MODIFYLOADBALANCERINTERNETSPECRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINTERNETSPECRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT ModifyLoadBalancerInternetSpecResult : public ServiceResult + { + public: + + + ModifyLoadBalancerInternetSpecResult(); + explicit ModifyLoadBalancerInternetSpecResult(const std::string &payload); + ~ModifyLoadBalancerInternetSpecResult(); + long getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + long orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERINTERNETSPECRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeRequest.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeRequest.h new file mode 100644 index 000000000..a9af7378c --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERPAYTYPEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERPAYTYPEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT ModifyLoadBalancerPayTypeRequest : public RpcServiceRequest { +public: + ModifyLoadBalancerPayTypeRequest(); + ~ModifyLoadBalancerPayTypeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getDuration() const; + void setDuration(int duration); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + bool getAutoPay() const; + void setAutoPay(bool autoPay); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getPayType() const; + void setPayType(const std::string &payType); + std::string getPricingCycle() const; + void setPricingCycle(const std::string &pricingCycle); + +private: + std::string access_key_id_; + long resourceOwnerId_; + int duration_; + std::string regionId_; + bool autoPay_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; + std::string payType_; + std::string pricingCycle_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERPAYTYPEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeResult.h b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeResult.h new file mode 100644 index 000000000..4520007cb --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyLoadBalancerPayTypeResult.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_SLB_MODEL_MODIFYLOADBALANCERPAYTYPERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERPAYTYPERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT ModifyLoadBalancerPayTypeResult : public ServiceResult + { + public: + + + ModifyLoadBalancerPayTypeResult(); + explicit ModifyLoadBalancerPayTypeResult(const std::string &payload); + ~ModifyLoadBalancerPayTypeResult(); + long getOrderId()const; + + protected: + void parse(const std::string &payload); + private: + long orderId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYLOADBALANCERPAYTYPERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersRequest.h b/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersRequest.h new file mode 100644 index 000000000..846d2ed6b --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersRequest.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_SLB_MODEL_MODIFYVSERVERGROUPBACKENDSERVERSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYVSERVERGROUPBACKENDSERVERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT ModifyVServerGroupBackendServersRequest : public RpcServiceRequest { +public: + ModifyVServerGroupBackendServersRequest(); + ~ModifyVServerGroupBackendServersRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getNewBackendServers() const; + void setNewBackendServers(const std::string &newBackendServers); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getOldBackendServers() const; + void setOldBackendServers(const std::string &oldBackendServers); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string vServerGroupId_; + std::string resourceOwnerAccount_; + std::string newBackendServers_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string oldBackendServers_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYVSERVERGROUPBACKENDSERVERSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h b/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.h new file mode 100644 index 000000000..f639ba2d9 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/ModifyVServerGroupBackendServersResult.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_SLB_MODEL_MODIFYVSERVERGROUPBACKENDSERVERSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_MODIFYVSERVERGROUPBACKENDSERVERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT ModifyVServerGroupBackendServersResult : public ServiceResult + { + public: + struct BackendServer + { + std::string type; + std::string description; + std::string serverId; + std::string vpcId; + std::string serverRegionId; + std::string serverIp; + int port; + std::string vbrId; + int weight; + }; + + + ModifyVServerGroupBackendServersResult(); + explicit ModifyVServerGroupBackendServersResult(const std::string &payload); + ~ModifyVServerGroupBackendServersResult(); + std::string getVServerGroupId()const; + std::vector getBackendServers()const; + + protected: + void parse(const std::string &payload); + private: + std::string vServerGroupId_; + std::vector backendServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_MODIFYVSERVERGROUPBACKENDSERVERSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/MoveResourceGroupRequest.h b/slb/include/alibabacloud/slb/model/MoveResourceGroupRequest.h new file mode 100644 index 000000000..afc64f0a2 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/MoveResourceGroupRequest.h @@ -0,0 +1,75 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_MOVERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_MOVERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT MoveResourceGroupRequest : public RpcServiceRequest { +public: + MoveResourceGroupRequest(); + ~MoveResourceGroupRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceId() const; + void setResourceId(const std::string &resourceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getNewResourceGroupId() const; + void setNewResourceGroupId(const std::string &newResourceGroupId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceGroupId_; + std::string regionId_; + std::string resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::string tags_; + std::string newResourceGroupId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_MOVERESOURCEGROUPREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/MoveResourceGroupResult.h b/slb/include/alibabacloud/slb/model/MoveResourceGroupResult.h new file mode 100644 index 000000000..5fbd8e002 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/MoveResourceGroupResult.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_SLB_MODEL_MOVERESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_MOVERESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT MoveResourceGroupResult : public ServiceResult + { + public: + + + MoveResourceGroupResult(); + explicit MoveResourceGroupResult(const std::string &payload); + ~MoveResourceGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_MOVERESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryRequest.h b/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryRequest.h new file mode 100644 index 000000000..a48bdf89e --- /dev/null +++ b/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryRequest.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_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT RemoveAccessControlListEntryRequest : public RpcServiceRequest { +public: + RemoveAccessControlListEntryRequest(); + ~RemoveAccessControlListEntryRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclEntrys() const; + void setAclEntrys(const std::string &aclEntrys); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string aclEntrys_; + std::string accessKeyId_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryResult.h b/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryResult.h new file mode 100644 index 000000000..bb7f56a37 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/RemoveAccessControlListEntryResult.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_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT RemoveAccessControlListEntryResult : public ServiceResult + { + public: + + + RemoveAccessControlListEntryResult(); + explicit RemoveAccessControlListEntryResult(const std::string &payload); + ~RemoveAccessControlListEntryResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_REMOVEACCESSCONTROLLISTENTRYRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/RemoveBackendServersRequest.h b/slb/include/alibabacloud/slb/model/RemoveBackendServersRequest.h index bf7dd50d0..09d5bfc15 100644 --- a/slb/include/alibabacloud/slb/model/RemoveBackendServersRequest.h +++ b/slb/include/alibabacloud/slb/model/RemoveBackendServersRequest.h @@ -36,8 +36,8 @@ public: void setResourceOwnerId(long resourceOwnerId); std::string getBackendServers() const; void setBackendServers(const std::string &backendServers); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -53,7 +53,7 @@ private: std::string access_key_id_; long resourceOwnerId_; std::string backendServers_; - std::string accessKeyId_; + std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h b/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h index 68a3dfe1d..8c2146e27 100644 --- a/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h +++ b/slb/include/alibabacloud/slb/model/RemoveBackendServersResult.h @@ -34,7 +34,11 @@ namespace AlibabaCloud public: struct BackendServer { + std::string type; + std::string description; std::string serverId; + std::string vpcId; + std::string serverIp; int weight; }; diff --git a/slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemRequest.h b/slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemRequest.h new file mode 100644 index 000000000..2fb5267ef --- /dev/null +++ b/slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_REMOVELISTENERWHITELISTITEMREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_REMOVELISTENERWHITELISTITEMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT RemoveListenerWhiteListItemRequest : public RpcServiceRequest { +public: + RemoveListenerWhiteListItemRequest(); + ~RemoveListenerWhiteListItemRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSourceItems() const; + void setSourceItems(const std::string &sourceItems); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string sourceItems_; + std::string regionId_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string listenerProtocol_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_REMOVELISTENERWHITELISTITEMREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemResult.h b/slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemResult.h new file mode 100644 index 000000000..93f3f56ed --- /dev/null +++ b/slb/include/alibabacloud/slb/model/RemoveListenerWhiteListItemResult.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_SLB_MODEL_REMOVELISTENERWHITELISTITEMRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_REMOVELISTENERWHITELISTITEMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT RemoveListenerWhiteListItemResult : public ServiceResult + { + public: + + + RemoveListenerWhiteListItemResult(); + explicit RemoveListenerWhiteListItemResult(const std::string &payload); + ~RemoveListenerWhiteListItemResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_REMOVELISTENERWHITELISTITEMRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/RemoveTagsRequest.h b/slb/include/alibabacloud/slb/model/RemoveTagsRequest.h new file mode 100644 index 000000000..22293f125 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/RemoveTagsRequest.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_SLB_MODEL_REMOVETAGSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_REMOVETAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT RemoveTagsRequest : public RpcServiceRequest { +public: + RemoveTagsRequest(); + ~RemoveTagsRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_REMOVETAGSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/RemoveTagsResult.h b/slb/include/alibabacloud/slb/model/RemoveTagsResult.h new file mode 100644 index 000000000..ce402fc3f --- /dev/null +++ b/slb/include/alibabacloud/slb/model/RemoveTagsResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_REMOVETAGSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_REMOVETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT RemoveTagsResult : public ServiceResult + { + public: + + + RemoveTagsResult(); + explicit RemoveTagsResult(const std::string &payload); + ~RemoveTagsResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_REMOVETAGSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersRequest.h b/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersRequest.h new file mode 100644 index 000000000..a61e3a898 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersRequest.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_SLB_MODEL_REMOVEVSERVERGROUPBACKENDSERVERSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_REMOVEVSERVERGROUPBACKENDSERVERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT RemoveVServerGroupBackendServersRequest : public RpcServiceRequest { +public: + RemoveVServerGroupBackendServersRequest(); + ~RemoveVServerGroupBackendServersRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBackendServers() const; + void setBackendServers(const std::string &backendServers); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string backendServers_; + std::string regionId_; + std::string vServerGroupId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_REMOVEVSERVERGROUPBACKENDSERVERSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h b/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.h new file mode 100644 index 000000000..15ac948a4 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/RemoveVServerGroupBackendServersResult.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_SLB_MODEL_REMOVEVSERVERGROUPBACKENDSERVERSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_REMOVEVSERVERGROUPBACKENDSERVERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT RemoveVServerGroupBackendServersResult : public ServiceResult + { + public: + struct BackendServer + { + std::string type; + std::string description; + std::string serverId; + std::string vpcId; + std::string serverRegionId; + std::string serverIp; + int port; + std::string vbrId; + int weight; + }; + + + RemoveVServerGroupBackendServersResult(); + explicit RemoveVServerGroupBackendServersResult(const std::string &payload); + ~RemoveVServerGroupBackendServersResult(); + std::string getVServerGroupId()const; + std::vector getBackendServers()const; + + protected: + void parse(const std::string &payload); + private: + std::string vServerGroupId_; + std::vector backendServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_REMOVEVSERVERGROUPBACKENDSERVERSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeRequest.h new file mode 100644 index 000000000..7c7a764f4 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeRequest.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_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetAccessControlListAttributeRequest : public RpcServiceRequest { +public: + SetAccessControlListAttributeRequest(); + ~SetAccessControlListAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAclName() const; + void setAclName(const std::string &aclName); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string aclName_; + std::string accessKeyId_; + std::string regionId_; + std::string aclId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeResult.h b/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeResult.h new file mode 100644 index 000000000..cdde6d6a0 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetAccessControlListAttributeResult.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_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetAccessControlListAttributeResult : public ServiceResult + { + public: + + + SetAccessControlListAttributeResult(); + explicit SetAccessControlListAttributeResult(const std::string &payload); + ~SetAccessControlListAttributeResult(); + std::string getAclId()const; + + protected: + void parse(const std::string &payload); + private: + std::string aclId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETACCESSCONTROLLISTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetAccessLogsDownloadAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetAccessLogsDownloadAttributeRequest.h new file mode 100644 index 000000000..847f15576 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetAccessLogsDownloadAttributeRequest.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_SLB_MODEL_SETACCESSLOGSDOWNLOADATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETACCESSLOGSDOWNLOADATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetAccessLogsDownloadAttributeRequest : public RpcServiceRequest { +public: + SetAccessLogsDownloadAttributeRequest(); + ~SetAccessLogsDownloadAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getLogsDownloadAttributes() const; + void setLogsDownloadAttributes(const std::string &logsDownloadAttributes); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string logsDownloadAttributes_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETACCESSLOGSDOWNLOADATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetAccessLogsDownloadAttributeResult.h b/slb/include/alibabacloud/slb/model/SetAccessLogsDownloadAttributeResult.h new file mode 100644 index 000000000..ab1286081 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetAccessLogsDownloadAttributeResult.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_SLB_MODEL_SETACCESSLOGSDOWNLOADATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETACCESSLOGSDOWNLOADATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetAccessLogsDownloadAttributeResult : public ServiceResult + { + public: + + + SetAccessLogsDownloadAttributeResult(); + explicit SetAccessLogsDownloadAttributeResult(const std::string &payload); + ~SetAccessLogsDownloadAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETACCESSLOGSDOWNLOADATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetBackendServersRequest.h b/slb/include/alibabacloud/slb/model/SetBackendServersRequest.h new file mode 100644 index 000000000..3bf002b10 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetBackendServersRequest.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_SLB_MODEL_SETBACKENDSERVERSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETBACKENDSERVERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetBackendServersRequest : public RpcServiceRequest { +public: + SetBackendServersRequest(); + ~SetBackendServersRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBackendServers() const; + void setBackendServers(const std::string &backendServers); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string backendServers_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETBACKENDSERVERSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetBackendServersResult.h b/slb/include/alibabacloud/slb/model/SetBackendServersResult.h new file mode 100644 index 000000000..b69e88a4c --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetBackendServersResult.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_SLB_MODEL_SETBACKENDSERVERSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETBACKENDSERVERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetBackendServersResult : public ServiceResult + { + public: + struct BackendServer + { + std::string type; + std::string description; + std::string serverId; + std::string vpcId; + std::string serverIp; + std::string weight; + }; + + + SetBackendServersResult(); + explicit SetBackendServersResult(const std::string &payload); + ~SetBackendServersResult(); + std::string getLoadBalancerId()const; + std::vector getBackendServers()const; + + protected: + void parse(const std::string &payload); + private: + std::string loadBalancerId_; + std::vector backendServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETBACKENDSERVERSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetCACertificateNameRequest.h b/slb/include/alibabacloud/slb/model/SetCACertificateNameRequest.h new file mode 100644 index 000000000..f6ede03bf --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetCACertificateNameRequest.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_SLB_MODEL_SETCACERTIFICATENAMEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETCACERTIFICATENAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetCACertificateNameRequest : public RpcServiceRequest { +public: + SetCACertificateNameRequest(); + ~SetCACertificateNameRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCACertificateName() const; + void setCACertificateName(const std::string &cACertificateName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCACertificateId() const; + void setCACertificateId(const std::string &cACertificateId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string cACertificateName_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string cACertificateId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETCACERTIFICATENAMEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetCACertificateNameResult.h b/slb/include/alibabacloud/slb/model/SetCACertificateNameResult.h new file mode 100644 index 000000000..e42354d17 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetCACertificateNameResult.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_SLB_MODEL_SETCACERTIFICATENAMERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETCACERTIFICATENAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetCACertificateNameResult : public ServiceResult + { + public: + + + SetCACertificateNameResult(); + explicit SetCACertificateNameResult(const std::string &payload); + ~SetCACertificateNameResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETCACERTIFICATENAMERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeRequest.h new file mode 100644 index 000000000..e2481543b --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeRequest.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetDomainExtensionAttributeRequest : public RpcServiceRequest { +public: + struct ServerCertificate { + std::string bindingType; + std::string certificateId; + std::string standardType; + }; + SetDomainExtensionAttributeRequest(); + ~SetDomainExtensionAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getServerCertificate() const; + void setServerCertificate(const std::vector &serverCertificate); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDomainExtensionId() const; + void setDomainExtensionId(const std::string &domainExtensionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::vector getCertificateId() const; + void setCertificateId(const std::vector &certificateId); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getServerCertificateId() const; + void setServerCertificateId(const std::string &serverCertificateId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::vector serverCertificate_; + std::string regionId_; + std::string domainExtensionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::vector certificateId_; + long ownerId_; + std::string serverCertificateId_; + std::string tags_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeResult.h b/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeResult.h new file mode 100644 index 000000000..426dd6aa9 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetDomainExtensionAttributeResult.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_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetDomainExtensionAttributeResult : public ServiceResult + { + public: + + + SetDomainExtensionAttributeResult(); + explicit SetDomainExtensionAttributeResult(const std::string &payload); + ~SetDomainExtensionAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETDOMAINEXTENSIONATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h b/slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h new file mode 100644 index 000000000..44a2e9969 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_SETLISTENERACCESSCONTROLSTATUSREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLISTENERACCESSCONTROLSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetListenerAccessControlStatusRequest : public RpcServiceRequest { +public: + SetListenerAccessControlStatusRequest(); + ~SetListenerAccessControlStatusRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getAccessControlStatus() const; + void setAccessControlStatus(const std::string &accessControlStatus); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string accessControlStatus_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string listenerProtocol_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETLISTENERACCESSCONTROLSTATUSREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusResult.h b/slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusResult.h new file mode 100644 index 000000000..81c27c6cd --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetListenerAccessControlStatusResult.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_SLB_MODEL_SETLISTENERACCESSCONTROLSTATUSRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLISTENERACCESSCONTROLSTATUSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetListenerAccessControlStatusResult : public ServiceResult + { + public: + + + SetListenerAccessControlStatusResult(); + explicit SetListenerAccessControlStatusResult(const std::string &payload); + ~SetListenerAccessControlStatusResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETLISTENERACCESSCONTROLSTATUSRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionRequest.h new file mode 100644 index 000000000..085921aaf --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionRequest.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_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerDeleteProtectionRequest : public RpcServiceRequest { +public: + SetLoadBalancerDeleteProtectionRequest(); + ~SetLoadBalancerDeleteProtectionRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getDeleteProtection() const; + void setDeleteProtection(const std::string &deleteProtection); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string deleteProtection_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionResult.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionResult.h new file mode 100644 index 000000000..9d477cdd4 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerDeleteProtectionResult.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_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerDeleteProtectionResult : public ServiceResult + { + public: + + + SetLoadBalancerDeleteProtectionResult(); + explicit SetLoadBalancerDeleteProtectionResult(const std::string &payload); + ~SetLoadBalancerDeleteProtectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERDELETEPROTECTIONRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h index 63a8accd5..0c598dffe 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPListenerAttributeRequest.h @@ -30,65 +30,140 @@ class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerHTTPListenerAttributeRequest : publ public: SetLoadBalancerHTTPListenerAttributeRequest(); ~SetLoadBalancerHTTPListenerAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); int getHealthCheckTimeout() const; void setHealthCheckTimeout(int healthCheckTimeout); std::string getXForwardedFor() const; void setXForwardedFor(const std::string &xForwardedFor); - std::string getHostId() const; - void setHostId(const std::string &hostId); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getXForwardedFor_SLBPORT() const; + void setXForwardedFor_SLBPORT(const std::string &xForwardedFor_SLBPORT); + std::string getAclStatus() const; + void setAclStatus(const std::string &aclStatus); + std::string getAclType() const; + void setAclType(const std::string &aclType); + std::string getHealthCheck() const; + void setHealthCheck(const std::string &healthCheck); + std::string getVpcIds() const; + void setVpcIds(const std::string &vpcIds); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + int getForwardCode() const; + void setForwardCode(int forwardCode); + std::string getCookie() const; + void setCookie(const std::string &cookie); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + int getRequestTimeout() const; + void setRequestTimeout(int requestTimeout); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getXForwardedFor_SLBIP() const; + void setXForwardedFor_SLBIP(const std::string &xForwardedFor_SLBIP); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getXForwardedFor_SLBID() const; + void setXForwardedFor_SLBID(const std::string &xForwardedFor_SLBID); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + std::string getXForwardedFor_ClientSrcPort() const; + void setXForwardedFor_ClientSrcPort(const std::string &xForwardedFor_ClientSrcPort); + std::string getDescription() const; + void setDescription(const std::string &description); int getUnhealthyThreshold() const; void setUnhealthyThreshold(int unhealthyThreshold); int getHealthyThreshold() const; void setHealthyThreshold(int healthyThreshold); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getScheduler() const; void setScheduler(const std::string &scheduler); - std::string getHealthCheck() const; - void setHealthCheck(const std::string &healthCheck); + int getMaxConnection() const; + void setMaxConnection(int maxConnection); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); int getCookieTimeout() const; void setCookieTimeout(int cookieTimeout); std::string getStickySessionType() const; void setStickySessionType(const std::string &stickySessionType); int getListenerPort() const; void setListenerPort(int listenerPort); - std::string getCookie() const; - void setCookie(const std::string &cookie); + std::string getHealthCheckType() const; + void setHealthCheckType(const std::string &healthCheckType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); std::string getStickySession() const; void setStickySession(const std::string &stickySession); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getURI() const; - void setURI(const std::string &uRI); - std::string getLoadBalancerId() const; - void setLoadBalancerId(const std::string &loadBalancerId); - std::string getDomain() const; - void setDomain(const std::string &domain); - int getInterval() const; - void setInterval(int interval); + std::string getGzip() const; + void setGzip(const std::string &gzip); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + std::string getXForwardedFor_proto() const; + void setXForwardedFor_proto(const std::string &xForwardedFor_proto); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + std::string getVServerGroup() const; + void setVServerGroup(const std::string &vServerGroup); private: + long resourceOwnerId_; int healthCheckTimeout_; std::string xForwardedFor_; - std::string hostId_; + std::string healthCheckURI_; + std::string xForwardedFor_SLBPORT_; + std::string aclStatus_; + std::string aclType_; + std::string healthCheck_; + std::string vpcIds_; + std::string vServerGroupId_; + std::string aclId_; + int forwardCode_; + std::string cookie_; + std::string healthCheckMethod_; + std::string healthCheckDomain_; + int requestTimeout_; + long ownerId_; + std::string tags_; + std::string loadBalancerId_; + std::string xForwardedFor_SLBIP_; + int healthCheckInterval_; + std::string xForwardedFor_SLBID_; + std::string access_key_id_; + std::string xForwardedFor_ClientSrcPort_; + std::string description_; int unhealthyThreshold_; int healthyThreshold_; - std::string accessKeyId_; std::string scheduler_; - std::string healthCheck_; + int maxConnection_; + std::string regionId_; int cookieTimeout_; std::string stickySessionType_; int listenerPort_; - std::string cookie_; + std::string healthCheckType_; + std::string resourceOwnerAccount_; + int bandwidth_; std::string stickySession_; std::string ownerAccount_; - std::string ownerId_; - std::string uRI_; - std::string loadBalancerId_; - std::string domain_; - int interval_; + std::string gzip_; + int idleTimeout_; + std::string xForwardedFor_proto_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; + std::string vServerGroup_; }; } // namespace Model } // namespace Slb diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h new file mode 100644 index 000000000..b80fb6c8e --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerHTTPSListenerAttributeRequest : public RpcServiceRequest { +public: + struct ServerCertificate { + std::string bindingType; + std::string certificateId; + std::string standardType; + }; + SetLoadBalancerHTTPSListenerAttributeRequest(); + ~SetLoadBalancerHTTPSListenerAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::vector getServerCertificate() const; + void setServerCertificate(const std::vector &serverCertificate); + int getHealthCheckTimeout() const; + void setHealthCheckTimeout(int healthCheckTimeout); + std::string getXForwardedFor() const; + void setXForwardedFor(const std::string &xForwardedFor); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getXForwardedFor_SLBPORT() const; + void setXForwardedFor_SLBPORT(const std::string &xForwardedFor_SLBPORT); + std::string getAclStatus() const; + void setAclStatus(const std::string &aclStatus); + std::string getAclType() const; + void setAclType(const std::string &aclType); + std::string getHealthCheck() const; + void setHealthCheck(const std::string &healthCheck); + std::string getVpcIds() const; + void setVpcIds(const std::string &vpcIds); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::string getXForwardedFor_ClientCertClientVerify() const; + void setXForwardedFor_ClientCertClientVerify(const std::string &xForwardedFor_ClientCertClientVerify); + std::string getCookie() const; + void setCookie(const std::string &cookie); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + int getRequestTimeout() const; + void setRequestTimeout(int requestTimeout); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCACertificateId() const; + void setCACertificateId(const std::string &cACertificateId); + std::string getBackendProtocol() const; + void setBackendProtocol(const std::string &backendProtocol); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getXForwardedFor_ClientCertFingerprintAlias() const; + void setXForwardedFor_ClientCertFingerprintAlias(const std::string &xForwardedFor_ClientCertFingerprintAlias); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getXForwardedFor_SLBIP() const; + void setXForwardedFor_SLBIP(const std::string &xForwardedFor_SLBIP); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getXForwardedFor_ClientCertClientVerifyAlias() const; + void setXForwardedFor_ClientCertClientVerifyAlias(const std::string &xForwardedFor_ClientCertClientVerifyAlias); + std::string getXForwardedFor_SLBID() const; + void setXForwardedFor_SLBID(const std::string &xForwardedFor_SLBID); + std::string getXForwardedFor_ClientCertFingerprint() const; + void setXForwardedFor_ClientCertFingerprint(const std::string &xForwardedFor_ClientCertFingerprint); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + std::string getXForwardedFor_ClientSrcPort() const; + void setXForwardedFor_ClientSrcPort(const std::string &xForwardedFor_ClientSrcPort); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + std::string getXForwardedFor_ClientCertIssuerDNAlias() const; + void setXForwardedFor_ClientCertIssuerDNAlias(const std::string &xForwardedFor_ClientCertIssuerDNAlias); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + int getMaxConnection() const; + void setMaxConnection(int maxConnection); + std::string getEnableHttp2() const; + void setEnableHttp2(const std::string &enableHttp2); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getXForwardedFor_ClientCertSubjectDN() const; + void setXForwardedFor_ClientCertSubjectDN(const std::string &xForwardedFor_ClientCertSubjectDN); + int getCookieTimeout() const; + void setCookieTimeout(int cookieTimeout); + std::string getStickySessionType() const; + void setStickySessionType(const std::string &stickySessionType); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getHealthCheckType() const; + void setHealthCheckType(const std::string &healthCheckType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getStickySession() const; + void setStickySession(const std::string &stickySession); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getGzip() const; + void setGzip(const std::string &gzip); + std::string getTLSCipherPolicy() const; + void setTLSCipherPolicy(const std::string &tLSCipherPolicy); + std::string getServerCertificateId() const; + void setServerCertificateId(const std::string &serverCertificateId); + int getIdleTimeout() const; + void setIdleTimeout(int idleTimeout); + std::string getXForwardedFor_proto() const; + void setXForwardedFor_proto(const std::string &xForwardedFor_proto); + std::string getXForwardedFor_ClientCertSubjectDNAlias() const; + void setXForwardedFor_ClientCertSubjectDNAlias(const std::string &xForwardedFor_ClientCertSubjectDNAlias); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + std::string getVServerGroup() const; + void setVServerGroup(const std::string &vServerGroup); + std::string getXForwardedFor_ClientCertIssuerDN() const; + void setXForwardedFor_ClientCertIssuerDN(const std::string &xForwardedFor_ClientCertIssuerDN); + +private: + long resourceOwnerId_; + std::vector serverCertificate_; + int healthCheckTimeout_; + std::string xForwardedFor_; + std::string healthCheckURI_; + std::string xForwardedFor_SLBPORT_; + std::string aclStatus_; + std::string aclType_; + std::string healthCheck_; + std::string vpcIds_; + std::string vServerGroupId_; + std::string aclId_; + std::string xForwardedFor_ClientCertClientVerify_; + std::string cookie_; + std::string healthCheckMethod_; + std::string healthCheckDomain_; + int requestTimeout_; + long ownerId_; + std::string cACertificateId_; + std::string backendProtocol_; + std::string tags_; + std::string xForwardedFor_ClientCertFingerprintAlias_; + std::string loadBalancerId_; + std::string xForwardedFor_SLBIP_; + int healthCheckInterval_; + std::string xForwardedFor_ClientCertClientVerifyAlias_; + std::string xForwardedFor_SLBID_; + std::string xForwardedFor_ClientCertFingerprint_; + std::string access_key_id_; + std::string xForwardedFor_ClientSrcPort_; + std::string description_; + int unhealthyThreshold_; + std::string xForwardedFor_ClientCertIssuerDNAlias_; + int healthyThreshold_; + std::string scheduler_; + int maxConnection_; + std::string enableHttp2_; + std::string regionId_; + std::string xForwardedFor_ClientCertSubjectDN_; + int cookieTimeout_; + std::string stickySessionType_; + int listenerPort_; + std::string healthCheckType_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string stickySession_; + std::string ownerAccount_; + std::string gzip_; + std::string tLSCipherPolicy_; + std::string serverCertificateId_; + int idleTimeout_; + std::string xForwardedFor_proto_; + std::string xForwardedFor_ClientCertSubjectDNAlias_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; + std::string vServerGroup_; + std::string xForwardedFor_ClientCertIssuerDN_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeResult.h new file mode 100644 index 000000000..4befd18b1 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerHTTPSListenerAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerHTTPSListenerAttributeResult : public ServiceResult + { + public: + + + SetLoadBalancerHTTPSListenerAttributeResult(); + explicit SetLoadBalancerHTTPSListenerAttributeResult(const std::string &payload); + ~SetLoadBalancerHTTPSListenerAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERHTTPSLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerModificationProtectionRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerModificationProtectionRequest.h new file mode 100644 index 000000000..b89fca529 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerModificationProtectionRequest.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_SLB_MODEL_SETLOADBALANCERMODIFICATIONPROTECTIONREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERMODIFICATIONPROTECTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerModificationProtectionRequest : public RpcServiceRequest { +public: + SetLoadBalancerModificationProtectionRequest(); + ~SetLoadBalancerModificationProtectionRequest(); + std::string getModificationProtectionReason() const; + void setModificationProtectionReason(const std::string &modificationProtectionReason); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getModificationProtectionStatus() const; + void setModificationProtectionStatus(const std::string &modificationProtectionStatus); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string modificationProtectionReason_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string modificationProtectionStatus_; + std::string ownerAccount_; + long ownerId_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERMODIFICATIONPROTECTIONREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerModificationProtectionResult.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerModificationProtectionResult.h new file mode 100644 index 000000000..3d52a0f91 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerModificationProtectionResult.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_SLB_MODEL_SETLOADBALANCERMODIFICATIONPROTECTIONRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERMODIFICATIONPROTECTIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerModificationProtectionResult : public ServiceResult + { + public: + + + SetLoadBalancerModificationProtectionResult(); + explicit SetLoadBalancerModificationProtectionResult(const std::string &payload); + ~SetLoadBalancerModificationProtectionResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERMODIFICATIONPROTECTIONRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerNameRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerNameRequest.h index 57b3b8a7b..2927153e5 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerNameRequest.h +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerNameRequest.h @@ -34,10 +34,10 @@ public: void setAccess_key_id(const std::string &access_key_id); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getLoadBalancerName() const; void setLoadBalancerName(const std::string &loadBalancerName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -52,8 +52,8 @@ public: private: std::string access_key_id_; long resourceOwnerId_; - std::string accessKeyId_; std::string loadBalancerName_; + std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerStatusRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerStatusRequest.h index 6de4019a6..e09f6a5f9 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerStatusRequest.h +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerStatusRequest.h @@ -34,8 +34,8 @@ public: void setAccess_key_id(const std::string &access_key_id); long getResourceOwnerId() const; void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); std::string getResourceOwnerAccount() const; void setResourceOwnerAccount(const std::string &resourceOwnerAccount); std::string getOwnerAccount() const; @@ -52,7 +52,7 @@ public: private: std::string access_key_id_; long resourceOwnerId_; - std::string accessKeyId_; + std::string regionId_; std::string resourceOwnerAccount_; std::string ownerAccount_; long ownerId_; diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h index f0183e1aa..32cdab7bb 100644 --- a/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerTCPListenerAttributeRequest.h @@ -28,52 +28,155 @@ namespace Slb { namespace Model { class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerTCPListenerAttributeRequest : public RpcServiceRequest { public: + struct PortRange { + int startPort; + int endPort; + }; SetLoadBalancerTCPListenerAttributeRequest(); ~SetLoadBalancerTCPListenerAttributeRequest(); - std::string getHostId() const; - void setHostId(const std::string &hostId); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getAclStatus() const; + void setAclStatus(const std::string &aclStatus); + bool getFullNatEnabled() const; + void setFullNatEnabled(bool fullNatEnabled); + bool getHealthCheckTcpFastCloseEnabled() const; + void setHealthCheckTcpFastCloseEnabled(bool healthCheckTcpFastCloseEnabled); + std::string getAclType() const; + void setAclType(const std::string &aclType); + std::string getMasterSlaveServerGroup() const; + void setMasterSlaveServerGroup(const std::string &masterSlaveServerGroup); + int getEstablishedTimeout() const; + void setEstablishedTimeout(int establishedTimeout); + std::string getFailoverStrategy() const; + void setFailoverStrategy(const std::string &failoverStrategy); + int getPersistenceTimeout() const; + void setPersistenceTimeout(int persistenceTimeout); + std::string getVpcIds() const; + void setVpcIds(const std::string &vpcIds); + bool getMasterSlaveModeEnabled() const; + void setMasterSlaveModeEnabled(bool masterSlaveModeEnabled); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::vector getPortRange() const; + void setPortRange(const std::vector &portRange); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + std::string getSynProxy() const; + void setSynProxy(const std::string &synProxy); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getProxyProtocolVpcIdEnabled() const; + void setProxyProtocolVpcIdEnabled(bool proxyProtocolVpcIdEnabled); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getMasterSlaveServerGroupId() const; + void setMasterSlaveServerGroupId(const std::string &masterSlaveServerGroupId); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + int getFailoverThreshold() const; + void setFailoverThreshold(int failoverThreshold); + bool getProxyProtocolV2Enabled() const; + void setProxyProtocolV2Enabled(bool proxyProtocolV2Enabled); + std::string getConnectionDrain() const; + void setConnectionDrain(const std::string &connectionDrain); + std::string getHealthCheckSwitch() const; + void setHealthCheckSwitch(const std::string &healthCheckSwitch); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + int getHealthCheckConnectTimeout() const; + void setHealthCheckConnectTimeout(int healthCheckConnectTimeout); + std::string getSlaveServerGroupId() const; + void setSlaveServerGroupId(const std::string &slaveServerGroupId); + std::string getDescription() const; + void setDescription(const std::string &description); int getUnhealthyThreshold() const; void setUnhealthyThreshold(int unhealthyThreshold); int getHealthyThreshold() const; void setHealthyThreshold(int healthyThreshold); - std::string getAccessKeyId() const; - void setAccessKeyId(const std::string &accessKeyId); std::string getScheduler() const; void setScheduler(const std::string &scheduler); - std::string getHealthCheck() const; - void setHealthCheck(const std::string &healthCheck); - int getPersistenceTimeout() const; - void setPersistenceTimeout(int persistenceTimeout); - int getConnectTimeout() const; - void setConnectTimeout(int connectTimeout); + int getMaxConnection() const; + void setMaxConnection(int maxConnection); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getMasterServerGroupId() const; + void setMasterServerGroupId(const std::string &masterServerGroupId); int getListenerPort() const; void setListenerPort(int listenerPort); - int getConnectPort() const; - void setConnectPort(int connectPort); + std::string getHealthCheckType() const; + void setHealthCheckType(const std::string &healthCheckType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); std::string getOwnerAccount() const; void setOwnerAccount(const std::string &ownerAccount); - std::string getOwnerId() const; - void setOwnerId(const std::string &ownerId); - std::string getLoadBalancerId() const; - void setLoadBalancerId(const std::string &loadBalancerId); - int getInterval() const; - void setInterval(int interval); + int getConnectionDrainTimeout() const; + void setConnectionDrainTimeout(int connectionDrainTimeout); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + std::string getVServerGroup() const; + void setVServerGroup(const std::string &vServerGroup); private: - std::string hostId_; + long resourceOwnerId_; + std::string healthCheckURI_; + std::string aclStatus_; + bool fullNatEnabled_; + bool healthCheckTcpFastCloseEnabled_; + std::string aclType_; + std::string masterSlaveServerGroup_; + int establishedTimeout_; + std::string failoverStrategy_; + int persistenceTimeout_; + std::string vpcIds_; + bool masterSlaveModeEnabled_; + std::string vServerGroupId_; + std::string aclId_; + std::vector portRange_; + std::string healthCheckMethod_; + std::string healthCheckDomain_; + std::string synProxy_; + long ownerId_; + bool proxyProtocolVpcIdEnabled_; + std::string tags_; + std::string loadBalancerId_; + std::string masterSlaveServerGroupId_; + int healthCheckInterval_; + int failoverThreshold_; + bool proxyProtocolV2Enabled_; + std::string connectionDrain_; + std::string healthCheckSwitch_; + std::string access_key_id_; + int healthCheckConnectTimeout_; + std::string slaveServerGroupId_; + std::string description_; int unhealthyThreshold_; int healthyThreshold_; - std::string accessKeyId_; std::string scheduler_; - std::string healthCheck_; - int persistenceTimeout_; - int connectTimeout_; + int maxConnection_; + std::string regionId_; + std::string masterServerGroupId_; int listenerPort_; - int connectPort_; + std::string healthCheckType_; + std::string resourceOwnerAccount_; + int bandwidth_; std::string ownerAccount_; - std::string ownerId_; - std::string loadBalancerId_; - int interval_; + int connectionDrainTimeout_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; + std::string vServerGroup_; }; } // namespace Model } // namespace Slb diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeRequest.h new file mode 100644 index 000000000..2001ac1c9 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeRequest.h @@ -0,0 +1,184 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerUDPListenerAttributeRequest : public RpcServiceRequest { +public: + struct PortRange { + int startPort; + int endPort; + }; + SetLoadBalancerUDPListenerAttributeRequest(); + ~SetLoadBalancerUDPListenerAttributeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getAclStatus() const; + void setAclStatus(const std::string &aclStatus); + bool getFullNatEnabled() const; + void setFullNatEnabled(bool fullNatEnabled); + std::string getAclType() const; + void setAclType(const std::string &aclType); + std::string getMasterSlaveServerGroup() const; + void setMasterSlaveServerGroup(const std::string &masterSlaveServerGroup); + std::string getFailoverStrategy() const; + void setFailoverStrategy(const std::string &failoverStrategy); + int getPersistenceTimeout() const; + void setPersistenceTimeout(int persistenceTimeout); + std::string getVpcIds() const; + void setVpcIds(const std::string &vpcIds); + bool getMasterSlaveModeEnabled() const; + void setMasterSlaveModeEnabled(bool masterSlaveModeEnabled); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getAclId() const; + void setAclId(const std::string &aclId); + std::vector getPortRange() const; + void setPortRange(const std::vector &portRange); + std::string getHealthCheckMethod() const; + void setHealthCheckMethod(const std::string &healthCheckMethod); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getProxyProtocolVpcIdEnabled() const; + void setProxyProtocolVpcIdEnabled(bool proxyProtocolVpcIdEnabled); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + std::string getMasterSlaveServerGroupId() const; + void setMasterSlaveServerGroupId(const std::string &masterSlaveServerGroupId); + std::string getHealthCheckReq() const; + void setHealthCheckReq(const std::string &healthCheckReq); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getHealthCheckExp() const; + void setHealthCheckExp(const std::string &healthCheckExp); + int getFailoverThreshold() const; + void setFailoverThreshold(int failoverThreshold); + bool getProxyProtocolV2Enabled() const; + void setProxyProtocolV2Enabled(bool proxyProtocolV2Enabled); + std::string getConnectionDrain() const; + void setConnectionDrain(const std::string &connectionDrain); + std::string getHealthCheckSwitch() const; + void setHealthCheckSwitch(const std::string &healthCheckSwitch); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + int getHealthCheckConnectTimeout() const; + void setHealthCheckConnectTimeout(int healthCheckConnectTimeout); + std::string getSlaveServerGroupId() const; + void setSlaveServerGroupId(const std::string &slaveServerGroupId); + std::string getQuicVersion() const; + void setQuicVersion(const std::string &quicVersion); + std::string getDescription() const; + void setDescription(const std::string &description); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + int getMaxConnection() const; + void setMaxConnection(int maxConnection); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getMasterServerGroupId() const; + void setMasterServerGroupId(const std::string &masterServerGroupId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getHealthCheckType() const; + void setHealthCheckType(const std::string &healthCheckType); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getBandwidth() const; + void setBandwidth(int bandwidth); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getConnectionDrainTimeout() const; + void setConnectionDrainTimeout(int connectionDrainTimeout); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + std::string getVServerGroup() const; + void setVServerGroup(const std::string &vServerGroup); + +private: + long resourceOwnerId_; + std::string healthCheckURI_; + std::string aclStatus_; + bool fullNatEnabled_; + std::string aclType_; + std::string masterSlaveServerGroup_; + std::string failoverStrategy_; + int persistenceTimeout_; + std::string vpcIds_; + bool masterSlaveModeEnabled_; + std::string vServerGroupId_; + std::string aclId_; + std::vector portRange_; + std::string healthCheckMethod_; + std::string healthCheckDomain_; + long ownerId_; + bool proxyProtocolVpcIdEnabled_; + std::string tags_; + std::string loadBalancerId_; + std::string masterSlaveServerGroupId_; + std::string healthCheckReq_; + int healthCheckInterval_; + std::string healthCheckExp_; + int failoverThreshold_; + bool proxyProtocolV2Enabled_; + std::string connectionDrain_; + std::string healthCheckSwitch_; + std::string access_key_id_; + int healthCheckConnectTimeout_; + std::string slaveServerGroupId_; + std::string quicVersion_; + std::string description_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + int maxConnection_; + std::string regionId_; + std::string masterServerGroupId_; + int listenerPort_; + std::string healthCheckType_; + std::string resourceOwnerAccount_; + int bandwidth_; + std::string ownerAccount_; + int connectionDrainTimeout_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; + std::string vServerGroup_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeResult.h b/slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeResult.h new file mode 100644 index 000000000..9d94eb604 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetLoadBalancerUDPListenerAttributeResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetLoadBalancerUDPListenerAttributeResult : public ServiceResult + { + public: + + + SetLoadBalancerUDPListenerAttributeResult(); + explicit SetLoadBalancerUDPListenerAttributeResult(const std::string &payload); + ~SetLoadBalancerUDPListenerAttributeResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETLOADBALANCERUDPLISTENERATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetRuleRequest.h b/slb/include/alibabacloud/slb/model/SetRuleRequest.h new file mode 100644 index 000000000..077032631 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetRuleRequest.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_SLB_MODEL_SETRULEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETRULEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetRuleRequest : public RpcServiceRequest { +public: + SetRuleRequest(); + ~SetRuleRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + int getHealthCheckTimeout() const; + void setHealthCheckTimeout(int healthCheckTimeout); + std::string getHealthCheckURI() const; + void setHealthCheckURI(const std::string &healthCheckURI); + std::string getRuleName() const; + void setRuleName(const std::string &ruleName); + int getUnhealthyThreshold() const; + void setUnhealthyThreshold(int unhealthyThreshold); + int getHealthyThreshold() const; + void setHealthyThreshold(int healthyThreshold); + std::string getScheduler() const; + void setScheduler(const std::string &scheduler); + std::string getHealthCheck() const; + void setHealthCheck(const std::string &healthCheck); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getListenerSync() const; + void setListenerSync(const std::string &listenerSync); + int getCookieTimeout() const; + void setCookieTimeout(int cookieTimeout); + std::string getStickySessionType() const; + void setStickySessionType(const std::string &stickySessionType); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getCookie() const; + void setCookie(const std::string &cookie); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getStickySession() const; + void setStickySession(const std::string &stickySession); + std::string getHealthCheckDomain() const; + void setHealthCheckDomain(const std::string &healthCheckDomain); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + int getHealthCheckInterval() const; + void setHealthCheckInterval(int healthCheckInterval); + std::string getRuleId() const; + void setRuleId(const std::string &ruleId); + int getHealthCheckConnectPort() const; + void setHealthCheckConnectPort(int healthCheckConnectPort); + std::string getHealthCheckHttpCode() const; + void setHealthCheckHttpCode(const std::string &healthCheckHttpCode); + +private: + std::string access_key_id_; + long resourceOwnerId_; + int healthCheckTimeout_; + std::string healthCheckURI_; + std::string ruleName_; + int unhealthyThreshold_; + int healthyThreshold_; + std::string scheduler_; + std::string healthCheck_; + std::string regionId_; + std::string listenerSync_; + int cookieTimeout_; + std::string stickySessionType_; + std::string vServerGroupId_; + std::string cookie_; + std::string resourceOwnerAccount_; + std::string stickySession_; + std::string healthCheckDomain_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + int healthCheckInterval_; + std::string ruleId_; + int healthCheckConnectPort_; + std::string healthCheckHttpCode_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETRULEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetRuleResult.h b/slb/include/alibabacloud/slb/model/SetRuleResult.h new file mode 100644 index 000000000..4097b6742 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetRuleResult.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_SLB_MODEL_SETRULERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetRuleResult : public ServiceResult + { + public: + + + SetRuleResult(); + explicit SetRuleResult(const std::string &payload); + ~SetRuleResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETRULERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetServerCertificateNameRequest.h b/slb/include/alibabacloud/slb/model/SetServerCertificateNameRequest.h new file mode 100644 index 000000000..9b95eb0db --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetServerCertificateNameRequest.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_SLB_MODEL_SETSERVERCERTIFICATENAMEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETSERVERCERTIFICATENAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetServerCertificateNameRequest : public RpcServiceRequest { +public: + SetServerCertificateNameRequest(); + ~SetServerCertificateNameRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getServerCertificateId() const; + void setServerCertificateId(const std::string &serverCertificateId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getServerCertificateName() const; + void setServerCertificateName(const std::string &serverCertificateName); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string serverCertificateId_; + std::string tags_; + std::string serverCertificateName_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETSERVERCERTIFICATENAMEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetServerCertificateNameResult.h b/slb/include/alibabacloud/slb/model/SetServerCertificateNameResult.h new file mode 100644 index 000000000..96c46bc1a --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetServerCertificateNameResult.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_SLB_MODEL_SETSERVERCERTIFICATENAMERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETSERVERCERTIFICATENAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetServerCertificateNameResult : public ServiceResult + { + public: + + + SetServerCertificateNameResult(); + explicit SetServerCertificateNameResult(const std::string &payload); + ~SetServerCertificateNameResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETSERVERCERTIFICATENAMERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetTLSCipherPolicyAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetTLSCipherPolicyAttributeRequest.h new file mode 100644 index 000000000..419d1e457 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetTLSCipherPolicyAttributeRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_SETTLSCIPHERPOLICYATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETTLSCIPHERPOLICYATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetTLSCipherPolicyAttributeRequest : public RpcServiceRequest { +public: + SetTLSCipherPolicyAttributeRequest(); + ~SetTLSCipherPolicyAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTLSCipherPolicyId() const; + void setTLSCipherPolicyId(const std::string &tLSCipherPolicyId); + 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 getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string tLSCipherPolicyId_; + std::string regionId_; + std::vector ciphers_; + std::vector tLSVersions_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETTLSCIPHERPOLICYATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetTLSCipherPolicyAttributeResult.h b/slb/include/alibabacloud/slb/model/SetTLSCipherPolicyAttributeResult.h new file mode 100644 index 000000000..f8a2a53de --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetTLSCipherPolicyAttributeResult.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_SLB_MODEL_SETTLSCIPHERPOLICYATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETTLSCIPHERPOLICYATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetTLSCipherPolicyAttributeResult : public ServiceResult + { + public: + + + SetTLSCipherPolicyAttributeResult(); + explicit SetTLSCipherPolicyAttributeResult(const std::string &payload); + ~SetTLSCipherPolicyAttributeResult(); + std::string getTaskId()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETTLSCIPHERPOLICYATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeRequest.h b/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeRequest.h new file mode 100644 index 000000000..d4df59b88 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeRequest.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_SLB_MODEL_SETVSERVERGROUPATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_SETVSERVERGROUPATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT SetVServerGroupAttributeRequest : public RpcServiceRequest { +public: + SetVServerGroupAttributeRequest(); + ~SetVServerGroupAttributeRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getBackendServers() const; + void setBackendServers(const std::string &backendServers); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::string getVServerGroupId() const; + void setVServerGroupId(const std::string &vServerGroupId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getVServerGroupName() const; + void setVServerGroupName(const std::string &vServerGroupName); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string backendServers_; + std::string regionId_; + std::string vServerGroupId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string tags_; + std::string vServerGroupName_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_SETVSERVERGROUPATTRIBUTEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h b/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.h new file mode 100644 index 000000000..570fe16a6 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/SetVServerGroupAttributeResult.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_SLB_MODEL_SETVSERVERGROUPATTRIBUTERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_SETVSERVERGROUPATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT SetVServerGroupAttributeResult : public ServiceResult + { + public: + struct BackendServer + { + std::string type; + std::string description; + std::string serverId; + std::string vpcId; + std::string serverRegionId; + std::string serverIp; + int port; + std::string vbrId; + int weight; + }; + + + SetVServerGroupAttributeResult(); + explicit SetVServerGroupAttributeResult(const std::string &payload); + ~SetVServerGroupAttributeResult(); + std::string getVServerGroupId()const; + std::string getVServerGroupName()const; + std::vector getBackendServers()const; + + protected: + void parse(const std::string &payload); + private: + std::string vServerGroupId_; + std::string vServerGroupName_; + std::vector backendServers_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_SETVSERVERGROUPATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/StartLoadBalancerListenerRequest.h b/slb/include/alibabacloud/slb/model/StartLoadBalancerListenerRequest.h new file mode 100644 index 000000000..47dc40f50 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/StartLoadBalancerListenerRequest.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_SLB_MODEL_STARTLOADBALANCERLISTENERREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_STARTLOADBALANCERLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT StartLoadBalancerListenerRequest : public RpcServiceRequest { +public: + StartLoadBalancerListenerRequest(); + ~StartLoadBalancerListenerRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string listenerProtocol_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_STARTLOADBALANCERLISTENERREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/StartLoadBalancerListenerResult.h b/slb/include/alibabacloud/slb/model/StartLoadBalancerListenerResult.h new file mode 100644 index 000000000..393a6378a --- /dev/null +++ b/slb/include/alibabacloud/slb/model/StartLoadBalancerListenerResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_STARTLOADBALANCERLISTENERRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_STARTLOADBALANCERLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT StartLoadBalancerListenerResult : public ServiceResult + { + public: + + + StartLoadBalancerListenerResult(); + explicit StartLoadBalancerListenerResult(const std::string &payload); + ~StartLoadBalancerListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_STARTLOADBALANCERLISTENERRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/StopLoadBalancerListenerRequest.h b/slb/include/alibabacloud/slb/model/StopLoadBalancerListenerRequest.h new file mode 100644 index 000000000..98ddee77a --- /dev/null +++ b/slb/include/alibabacloud/slb/model/StopLoadBalancerListenerRequest.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_SLB_MODEL_STOPLOADBALANCERLISTENERREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_STOPLOADBALANCERLISTENERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT StopLoadBalancerListenerRequest : public RpcServiceRequest { +public: + StopLoadBalancerListenerRequest(); + ~StopLoadBalancerListenerRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + int getListenerPort() const; + void setListenerPort(int listenerPort); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getListenerProtocol() const; + void setListenerProtocol(const std::string &listenerProtocol); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getLoadBalancerId() const; + void setLoadBalancerId(const std::string &loadBalancerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + int listenerPort_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string listenerProtocol_; + std::string tags_; + std::string loadBalancerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_STOPLOADBALANCERLISTENERREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/StopLoadBalancerListenerResult.h b/slb/include/alibabacloud/slb/model/StopLoadBalancerListenerResult.h new file mode 100644 index 000000000..8f3246856 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/StopLoadBalancerListenerResult.h @@ -0,0 +1,49 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_STOPLOADBALANCERLISTENERRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_STOPLOADBALANCERLISTENERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT StopLoadBalancerListenerResult : public ServiceResult + { + public: + + + StopLoadBalancerListenerResult(); + explicit StopLoadBalancerListenerResult(const std::string &payload); + ~StopLoadBalancerListenerResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_STOPLOADBALANCERLISTENERRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/TagResourcesRequest.h b/slb/include/alibabacloud/slb/model/TagResourcesRequest.h new file mode 100644 index 000000000..36a0363be --- /dev/null +++ b/slb/include/alibabacloud/slb/model/TagResourcesRequest.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_SLB_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT TagResourcesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + TagResourcesRequest(); + ~TagResourcesRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::vector getResourceId() const; + void setResourceId(const std::vector &resourceId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + std::vector tag_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/TagResourcesResult.h b/slb/include/alibabacloud/slb/model/TagResourcesResult.h new file mode 100644 index 000000000..574a22842 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/TagResourcesResult.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_SLB_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/UntagResourcesRequest.h b/slb/include/alibabacloud/slb/model/UntagResourcesRequest.h new file mode 100644 index 000000000..8167188c8 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/UntagResourcesRequest.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_SLB_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT UntagResourcesRequest : public RpcServiceRequest { +public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + 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); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getResourceType() const; + void setResourceType(const std::string &resourceType); + std::vector getTagKey() const; + void setTagKey(const std::vector &tagKey); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string regionId_; + bool all_; + std::vector resourceId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string resourceType_; + std::vector tagKey_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/UntagResourcesResult.h b/slb/include/alibabacloud/slb/model/UntagResourcesResult.h new file mode 100644 index 000000000..b05fd1e88 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/UntagResourcesResult.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_SLB_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/UploadCACertificateRequest.h b/slb/include/alibabacloud/slb/model/UploadCACertificateRequest.h new file mode 100644 index 000000000..e8adbefab --- /dev/null +++ b/slb/include/alibabacloud/slb/model/UploadCACertificateRequest.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_UPLOADCACERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_UPLOADCACERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT UploadCACertificateRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + UploadCACertificateRequest(); + ~UploadCACertificateRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getCACertificateName() const; + void setCACertificateName(const std::string &cACertificateName); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getCACertificate() const; + void setCACertificate(const std::string &cACertificate); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getStandardType() const; + void setStandardType(const std::string &standardType); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string resourceGroupId_; + std::string cACertificateName_; + std::string regionId_; + std::vector tag_; + std::string cACertificate_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string standardType_; + long ownerId_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_UPLOADCACERTIFICATEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/UploadCACertificateResult.h b/slb/include/alibabacloud/slb/model/UploadCACertificateResult.h new file mode 100644 index 000000000..5e8bec109 --- /dev/null +++ b/slb/include/alibabacloud/slb/model/UploadCACertificateResult.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_SLB_MODEL_UPLOADCACERTIFICATERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_UPLOADCACERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT UploadCACertificateResult : public ServiceResult + { + public: + + + UploadCACertificateResult(); + explicit UploadCACertificateResult(const std::string &payload); + ~UploadCACertificateResult(); + std::string getFingerprint()const; + std::string getResourceGroupId()const; + long getExpireTimeStamp()const; + std::string getCACertificateId()const; + std::string getCreateTime()const; + std::string getCACertificateName()const; + std::string getExpireTime()const; + long getCreateTimeStamp()const; + std::string getCommonName()const; + + protected: + void parse(const std::string &payload); + private: + std::string fingerprint_; + std::string resourceGroupId_; + long expireTimeStamp_; + std::string cACertificateId_; + std::string createTime_; + std::string cACertificateName_; + std::string expireTime_; + long createTimeStamp_; + std::string commonName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_UPLOADCACERTIFICATERESULT_H_ \ No newline at end of file diff --git a/slb/include/alibabacloud/slb/model/UploadServerCertificateRequest.h b/slb/include/alibabacloud/slb/model/UploadServerCertificateRequest.h new file mode 100644 index 000000000..1b16a319a --- /dev/null +++ b/slb/include/alibabacloud/slb/model/UploadServerCertificateRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_UPLOADSERVERCERTIFICATEREQUEST_H_ +#define ALIBABACLOUD_SLB_MODEL_UPLOADSERVERCERTIFICATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Slb { +namespace Model { +class ALIBABACLOUD_SLB_EXPORT UploadServerCertificateRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + UploadServerCertificateRequest(); + ~UploadServerCertificateRequest(); + std::string getAccess_key_id() const; + void setAccess_key_id(const std::string &access_key_id); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getServerCertificate() const; + void setServerCertificate(const std::string &serverCertificate); + std::string getAliCloudCertificateName() const; + void setAliCloudCertificateName(const std::string &aliCloudCertificateName); + std::string getAliCloudCertificateId() const; + void setAliCloudCertificateId(const std::string &aliCloudCertificateId); + std::string getPrivateKey() const; + void setPrivateKey(const std::string &privateKey); + std::string getResourceGroupId() const; + void setResourceGroupId(const std::string &resourceGroupId); + std::string getRegionId() const; + void setRegionId(const std::string ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getStandardType() const; + void setStandardType(const std::string &standardType); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getAliCloudCertificateRegionId() const; + void setAliCloudCertificateRegionId(const std::string &aliCloudCertificateRegionId); + std::string getServerCertificateName() const; + void setServerCertificateName(const std::string &serverCertificateName); + +private: + std::string access_key_id_; + long resourceOwnerId_; + std::string serverCertificate_; + std::string aliCloudCertificateName_; + std::string aliCloudCertificateId_; + std::string privateKey_; + std::string resourceGroupId_; + std::string regionId_; + std::vector tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string standardType_; + long ownerId_; + std::string tags_; + std::string aliCloudCertificateRegionId_; + std::string serverCertificateName_; +}; +} // namespace Model +} // namespace Slb +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_SLB_MODEL_UPLOADSERVERCERTIFICATEREQUEST_H_ diff --git a/slb/include/alibabacloud/slb/model/UploadServerCertificateResult.h b/slb/include/alibabacloud/slb/model/UploadServerCertificateResult.h new file mode 100644 index 000000000..63188115f --- /dev/null +++ b/slb/include/alibabacloud/slb/model/UploadServerCertificateResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_SLB_MODEL_UPLOADSERVERCERTIFICATERESULT_H_ +#define ALIBABACLOUD_SLB_MODEL_UPLOADSERVERCERTIFICATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Slb + { + namespace Model + { + class ALIBABACLOUD_SLB_EXPORT UploadServerCertificateResult : public ServiceResult + { + public: + + + UploadServerCertificateResult(); + explicit UploadServerCertificateResult(const std::string &payload); + ~UploadServerCertificateResult(); + std::string getFingerprint()const; + long getExpireTimeStamp()const; + std::string getResourceGroupId()const; + std::string getCreateTime()const; + std::vector getSubjectAlternativeNames()const; + std::string getAliCloudCertificateId()const; + std::string getRegionIdAlias()const; + std::string getAliCloudCertificateName()const; + int getIsAliCloudCertificate()const; + std::string getServerCertificateId()const; + std::string getServerCertificateName()const; + std::string getRegionId()const; + std::string getExpireTime()const; + long getCreateTimeStamp()const; + std::string getCommonName()const; + + protected: + void parse(const std::string &payload); + private: + std::string fingerprint_; + long expireTimeStamp_; + std::string resourceGroupId_; + std::string createTime_; + std::vector subjectAlternativeNames_; + std::string aliCloudCertificateId_; + std::string regionIdAlias_; + std::string aliCloudCertificateName_; + int isAliCloudCertificate_; + std::string serverCertificateId_; + std::string serverCertificateName_; + std::string regionId_; + std::string expireTime_; + long createTimeStamp_; + std::string commonName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_SLB_MODEL_UPLOADSERVERCERTIFICATERESULT_H_ \ No newline at end of file diff --git a/slb/src/SlbClient.cc b/slb/src/SlbClient.cc index 2c704bfa0..fbf81fa77 100644 --- a/slb/src/SlbClient.cc +++ b/slb/src/SlbClient.cc @@ -51,6 +51,42 @@ SlbClient::SlbClient(const std::string & accessKeyId, const std::string & access SlbClient::~SlbClient() {} +SlbClient::AddAccessControlListEntryOutcome SlbClient::addAccessControlListEntry(const AddAccessControlListEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddAccessControlListEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddAccessControlListEntryOutcome(AddAccessControlListEntryResult(outcome.result())); + else + return AddAccessControlListEntryOutcome(outcome.error()); +} + +void SlbClient::addAccessControlListEntryAsync(const AddAccessControlListEntryRequest& request, const AddAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addAccessControlListEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::AddAccessControlListEntryOutcomeCallable SlbClient::addAccessControlListEntryCallable(const AddAccessControlListEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addAccessControlListEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::AddBackendServersOutcome SlbClient::addBackendServers(const AddBackendServersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -87,6 +123,186 @@ SlbClient::AddBackendServersOutcomeCallable SlbClient::addBackendServersCallable return task->get_future(); } +SlbClient::AddListenerWhiteListItemOutcome SlbClient::addListenerWhiteListItem(const AddListenerWhiteListItemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddListenerWhiteListItemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddListenerWhiteListItemOutcome(AddListenerWhiteListItemResult(outcome.result())); + else + return AddListenerWhiteListItemOutcome(outcome.error()); +} + +void SlbClient::addListenerWhiteListItemAsync(const AddListenerWhiteListItemRequest& request, const AddListenerWhiteListItemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addListenerWhiteListItem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::AddListenerWhiteListItemOutcomeCallable SlbClient::addListenerWhiteListItemCallable(const AddListenerWhiteListItemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addListenerWhiteListItem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::AddTagsOutcome SlbClient::addTags(const AddTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddTagsOutcome(AddTagsResult(outcome.result())); + else + return AddTagsOutcome(outcome.error()); +} + +void SlbClient::addTagsAsync(const AddTagsRequest& request, const AddTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::AddTagsOutcomeCallable SlbClient::addTagsCallable(const AddTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::AddVServerGroupBackendServersOutcome SlbClient::addVServerGroupBackendServers(const AddVServerGroupBackendServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddVServerGroupBackendServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddVServerGroupBackendServersOutcome(AddVServerGroupBackendServersResult(outcome.result())); + else + return AddVServerGroupBackendServersOutcome(outcome.error()); +} + +void SlbClient::addVServerGroupBackendServersAsync(const AddVServerGroupBackendServersRequest& request, const AddVServerGroupBackendServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addVServerGroupBackendServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::AddVServerGroupBackendServersOutcomeCallable SlbClient::addVServerGroupBackendServersCallable(const AddVServerGroupBackendServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addVServerGroupBackendServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::CreateAccessControlListOutcome SlbClient::createAccessControlList(const CreateAccessControlListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateAccessControlListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateAccessControlListOutcome(CreateAccessControlListResult(outcome.result())); + else + return CreateAccessControlListOutcome(outcome.error()); +} + +void SlbClient::createAccessControlListAsync(const CreateAccessControlListRequest& request, const CreateAccessControlListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createAccessControlList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::CreateAccessControlListOutcomeCallable SlbClient::createAccessControlListCallable(const CreateAccessControlListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createAccessControlList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::CreateDomainExtensionOutcome SlbClient::createDomainExtension(const CreateDomainExtensionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDomainExtensionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDomainExtensionOutcome(CreateDomainExtensionResult(outcome.result())); + else + return CreateDomainExtensionOutcome(outcome.error()); +} + +void SlbClient::createDomainExtensionAsync(const CreateDomainExtensionRequest& request, const CreateDomainExtensionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDomainExtension(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::CreateDomainExtensionOutcomeCallable SlbClient::createDomainExtensionCallable(const CreateDomainExtensionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDomainExtension(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::CreateLoadBalancerOutcome SlbClient::createLoadBalancer(const CreateLoadBalancerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +375,42 @@ SlbClient::CreateLoadBalancerHTTPListenerOutcomeCallable SlbClient::createLoadBa return task->get_future(); } +SlbClient::CreateLoadBalancerHTTPSListenerOutcome SlbClient::createLoadBalancerHTTPSListener(const CreateLoadBalancerHTTPSListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLoadBalancerHTTPSListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLoadBalancerHTTPSListenerOutcome(CreateLoadBalancerHTTPSListenerResult(outcome.result())); + else + return CreateLoadBalancerHTTPSListenerOutcome(outcome.error()); +} + +void SlbClient::createLoadBalancerHTTPSListenerAsync(const CreateLoadBalancerHTTPSListenerRequest& request, const CreateLoadBalancerHTTPSListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLoadBalancerHTTPSListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::CreateLoadBalancerHTTPSListenerOutcomeCallable SlbClient::createLoadBalancerHTTPSListenerCallable(const CreateLoadBalancerHTTPSListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLoadBalancerHTTPSListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::CreateLoadBalancerTCPListenerOutcome SlbClient::createLoadBalancerTCPListener(const CreateLoadBalancerTCPListenerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -195,6 +447,330 @@ SlbClient::CreateLoadBalancerTCPListenerOutcomeCallable SlbClient::createLoadBal return task->get_future(); } +SlbClient::CreateLoadBalancerUDPListenerOutcome SlbClient::createLoadBalancerUDPListener(const CreateLoadBalancerUDPListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateLoadBalancerUDPListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateLoadBalancerUDPListenerOutcome(CreateLoadBalancerUDPListenerResult(outcome.result())); + else + return CreateLoadBalancerUDPListenerOutcome(outcome.error()); +} + +void SlbClient::createLoadBalancerUDPListenerAsync(const CreateLoadBalancerUDPListenerRequest& request, const CreateLoadBalancerUDPListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createLoadBalancerUDPListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::CreateLoadBalancerUDPListenerOutcomeCallable SlbClient::createLoadBalancerUDPListenerCallable(const CreateLoadBalancerUDPListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createLoadBalancerUDPListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::CreateMasterSlaveServerGroupOutcome SlbClient::createMasterSlaveServerGroup(const CreateMasterSlaveServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMasterSlaveServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMasterSlaveServerGroupOutcome(CreateMasterSlaveServerGroupResult(outcome.result())); + else + return CreateMasterSlaveServerGroupOutcome(outcome.error()); +} + +void SlbClient::createMasterSlaveServerGroupAsync(const CreateMasterSlaveServerGroupRequest& request, const CreateMasterSlaveServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMasterSlaveServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::CreateMasterSlaveServerGroupOutcomeCallable SlbClient::createMasterSlaveServerGroupCallable(const CreateMasterSlaveServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMasterSlaveServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::CreateRulesOutcome SlbClient::createRules(const CreateRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateRulesOutcome(CreateRulesResult(outcome.result())); + else + return CreateRulesOutcome(outcome.error()); +} + +void SlbClient::createRulesAsync(const CreateRulesRequest& request, const CreateRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::CreateRulesOutcomeCallable SlbClient::createRulesCallable(const CreateRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::CreateTLSCipherPolicyOutcome SlbClient::createTLSCipherPolicy(const CreateTLSCipherPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTLSCipherPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTLSCipherPolicyOutcome(CreateTLSCipherPolicyResult(outcome.result())); + else + return CreateTLSCipherPolicyOutcome(outcome.error()); +} + +void SlbClient::createTLSCipherPolicyAsync(const CreateTLSCipherPolicyRequest& request, const CreateTLSCipherPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTLSCipherPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::CreateTLSCipherPolicyOutcomeCallable SlbClient::createTLSCipherPolicyCallable(const CreateTLSCipherPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTLSCipherPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::CreateVServerGroupOutcome SlbClient::createVServerGroup(const CreateVServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVServerGroupOutcome(CreateVServerGroupResult(outcome.result())); + else + return CreateVServerGroupOutcome(outcome.error()); +} + +void SlbClient::createVServerGroupAsync(const CreateVServerGroupRequest& request, const CreateVServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::CreateVServerGroupOutcomeCallable SlbClient::createVServerGroupCallable(const CreateVServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DeleteAccessControlListOutcome SlbClient::deleteAccessControlList(const DeleteAccessControlListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccessControlListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccessControlListOutcome(DeleteAccessControlListResult(outcome.result())); + else + return DeleteAccessControlListOutcome(outcome.error()); +} + +void SlbClient::deleteAccessControlListAsync(const DeleteAccessControlListRequest& request, const DeleteAccessControlListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccessControlList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DeleteAccessControlListOutcomeCallable SlbClient::deleteAccessControlListCallable(const DeleteAccessControlListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccessControlList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DeleteAccessLogsDownloadAttributeOutcome SlbClient::deleteAccessLogsDownloadAttribute(const DeleteAccessLogsDownloadAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteAccessLogsDownloadAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteAccessLogsDownloadAttributeOutcome(DeleteAccessLogsDownloadAttributeResult(outcome.result())); + else + return DeleteAccessLogsDownloadAttributeOutcome(outcome.error()); +} + +void SlbClient::deleteAccessLogsDownloadAttributeAsync(const DeleteAccessLogsDownloadAttributeRequest& request, const DeleteAccessLogsDownloadAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteAccessLogsDownloadAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DeleteAccessLogsDownloadAttributeOutcomeCallable SlbClient::deleteAccessLogsDownloadAttributeCallable(const DeleteAccessLogsDownloadAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteAccessLogsDownloadAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DeleteCACertificateOutcome SlbClient::deleteCACertificate(const DeleteCACertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteCACertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteCACertificateOutcome(DeleteCACertificateResult(outcome.result())); + else + return DeleteCACertificateOutcome(outcome.error()); +} + +void SlbClient::deleteCACertificateAsync(const DeleteCACertificateRequest& request, const DeleteCACertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteCACertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DeleteCACertificateOutcomeCallable SlbClient::deleteCACertificateCallable(const DeleteCACertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteCACertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DeleteDomainExtensionOutcome SlbClient::deleteDomainExtension(const DeleteDomainExtensionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDomainExtensionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDomainExtensionOutcome(DeleteDomainExtensionResult(outcome.result())); + else + return DeleteDomainExtensionOutcome(outcome.error()); +} + +void SlbClient::deleteDomainExtensionAsync(const DeleteDomainExtensionRequest& request, const DeleteDomainExtensionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDomainExtension(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DeleteDomainExtensionOutcomeCallable SlbClient::deleteDomainExtensionCallable(const DeleteDomainExtensionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDomainExtension(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DeleteLoadBalancerOutcome SlbClient::deleteLoadBalancer(const DeleteLoadBalancerRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -267,36 +843,540 @@ SlbClient::DeleteLoadBalancerListenerOutcomeCallable SlbClient::deleteLoadBalanc return task->get_future(); } -SlbClient::DescribeBackendServersOutcome SlbClient::describeBackendServers(const DescribeBackendServersRequest &request) const +SlbClient::DeleteMasterSlaveServerGroupOutcome SlbClient::deleteMasterSlaveServerGroup(const DeleteMasterSlaveServerGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeBackendServersOutcome(endpointOutcome.error()); + return DeleteMasterSlaveServerGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeBackendServersOutcome(DescribeBackendServersResult(outcome.result())); + return DeleteMasterSlaveServerGroupOutcome(DeleteMasterSlaveServerGroupResult(outcome.result())); else - return DescribeBackendServersOutcome(outcome.error()); + return DeleteMasterSlaveServerGroupOutcome(outcome.error()); } -void SlbClient::describeBackendServersAsync(const DescribeBackendServersRequest& request, const DescribeBackendServersAsyncHandler& handler, const std::shared_ptr& context) const +void SlbClient::deleteMasterSlaveServerGroupAsync(const DeleteMasterSlaveServerGroupRequest& request, const DeleteMasterSlaveServerGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeBackendServers(request), context); + handler(this, request, deleteMasterSlaveServerGroup(request), context); }; asyncExecute(new Runnable(fn)); } -SlbClient::DescribeBackendServersOutcomeCallable SlbClient::describeBackendServersCallable(const DescribeBackendServersRequest &request) const +SlbClient::DeleteMasterSlaveServerGroupOutcomeCallable SlbClient::deleteMasterSlaveServerGroupCallable(const DeleteMasterSlaveServerGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeBackendServers(request); + return this->deleteMasterSlaveServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DeleteRulesOutcome SlbClient::deleteRules(const DeleteRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteRulesOutcome(DeleteRulesResult(outcome.result())); + else + return DeleteRulesOutcome(outcome.error()); +} + +void SlbClient::deleteRulesAsync(const DeleteRulesRequest& request, const DeleteRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DeleteRulesOutcomeCallable SlbClient::deleteRulesCallable(const DeleteRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DeleteServerCertificateOutcome SlbClient::deleteServerCertificate(const DeleteServerCertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteServerCertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteServerCertificateOutcome(DeleteServerCertificateResult(outcome.result())); + else + return DeleteServerCertificateOutcome(outcome.error()); +} + +void SlbClient::deleteServerCertificateAsync(const DeleteServerCertificateRequest& request, const DeleteServerCertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteServerCertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DeleteServerCertificateOutcomeCallable SlbClient::deleteServerCertificateCallable(const DeleteServerCertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteServerCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DeleteTLSCipherPolicyOutcome SlbClient::deleteTLSCipherPolicy(const DeleteTLSCipherPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTLSCipherPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTLSCipherPolicyOutcome(DeleteTLSCipherPolicyResult(outcome.result())); + else + return DeleteTLSCipherPolicyOutcome(outcome.error()); +} + +void SlbClient::deleteTLSCipherPolicyAsync(const DeleteTLSCipherPolicyRequest& request, const DeleteTLSCipherPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTLSCipherPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DeleteTLSCipherPolicyOutcomeCallable SlbClient::deleteTLSCipherPolicyCallable(const DeleteTLSCipherPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTLSCipherPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DeleteVServerGroupOutcome SlbClient::deleteVServerGroup(const DeleteVServerGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVServerGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVServerGroupOutcome(DeleteVServerGroupResult(outcome.result())); + else + return DeleteVServerGroupOutcome(outcome.error()); +} + +void SlbClient::deleteVServerGroupAsync(const DeleteVServerGroupRequest& request, const DeleteVServerGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVServerGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DeleteVServerGroupOutcomeCallable SlbClient::deleteVServerGroupCallable(const DeleteVServerGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVServerGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeAccessControlListAttributeOutcome SlbClient::describeAccessControlListAttribute(const DescribeAccessControlListAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessControlListAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessControlListAttributeOutcome(DescribeAccessControlListAttributeResult(outcome.result())); + else + return DescribeAccessControlListAttributeOutcome(outcome.error()); +} + +void SlbClient::describeAccessControlListAttributeAsync(const DescribeAccessControlListAttributeRequest& request, const DescribeAccessControlListAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessControlListAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeAccessControlListAttributeOutcomeCallable SlbClient::describeAccessControlListAttributeCallable(const DescribeAccessControlListAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessControlListAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeAccessControlListsOutcome SlbClient::describeAccessControlLists(const DescribeAccessControlListsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessControlListsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessControlListsOutcome(DescribeAccessControlListsResult(outcome.result())); + else + return DescribeAccessControlListsOutcome(outcome.error()); +} + +void SlbClient::describeAccessControlListsAsync(const DescribeAccessControlListsRequest& request, const DescribeAccessControlListsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessControlLists(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeAccessControlListsOutcomeCallable SlbClient::describeAccessControlListsCallable(const DescribeAccessControlListsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessControlLists(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeAccessLogsDownloadAttributeOutcome SlbClient::describeAccessLogsDownloadAttribute(const DescribeAccessLogsDownloadAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAccessLogsDownloadAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAccessLogsDownloadAttributeOutcome(DescribeAccessLogsDownloadAttributeResult(outcome.result())); + else + return DescribeAccessLogsDownloadAttributeOutcome(outcome.error()); +} + +void SlbClient::describeAccessLogsDownloadAttributeAsync(const DescribeAccessLogsDownloadAttributeRequest& request, const DescribeAccessLogsDownloadAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAccessLogsDownloadAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeAccessLogsDownloadAttributeOutcomeCallable SlbClient::describeAccessLogsDownloadAttributeCallable(const DescribeAccessLogsDownloadAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAccessLogsDownloadAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeAvailableResourceOutcome SlbClient::describeAvailableResource(const DescribeAvailableResourceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeAvailableResourceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeAvailableResourceOutcome(DescribeAvailableResourceResult(outcome.result())); + else + return DescribeAvailableResourceOutcome(outcome.error()); +} + +void SlbClient::describeAvailableResourceAsync(const DescribeAvailableResourceRequest& request, const DescribeAvailableResourceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeAvailableResource(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeAvailableResourceOutcomeCallable SlbClient::describeAvailableResourceCallable(const DescribeAvailableResourceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeAvailableResource(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeCACertificatesOutcome SlbClient::describeCACertificates(const DescribeCACertificatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCACertificatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCACertificatesOutcome(DescribeCACertificatesResult(outcome.result())); + else + return DescribeCACertificatesOutcome(outcome.error()); +} + +void SlbClient::describeCACertificatesAsync(const DescribeCACertificatesRequest& request, const DescribeCACertificatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCACertificates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeCACertificatesOutcomeCallable SlbClient::describeCACertificatesCallable(const DescribeCACertificatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCACertificates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeDomainExtensionAttributeOutcome SlbClient::describeDomainExtensionAttribute(const DescribeDomainExtensionAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDomainExtensionAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDomainExtensionAttributeOutcome(DescribeDomainExtensionAttributeResult(outcome.result())); + else + return DescribeDomainExtensionAttributeOutcome(outcome.error()); +} + +void SlbClient::describeDomainExtensionAttributeAsync(const DescribeDomainExtensionAttributeRequest& request, const DescribeDomainExtensionAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDomainExtensionAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeDomainExtensionAttributeOutcomeCallable SlbClient::describeDomainExtensionAttributeCallable(const DescribeDomainExtensionAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDomainExtensionAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeDomainExtensionsOutcome SlbClient::describeDomainExtensions(const DescribeDomainExtensionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDomainExtensionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDomainExtensionsOutcome(DescribeDomainExtensionsResult(outcome.result())); + else + return DescribeDomainExtensionsOutcome(outcome.error()); +} + +void SlbClient::describeDomainExtensionsAsync(const DescribeDomainExtensionsRequest& request, const DescribeDomainExtensionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDomainExtensions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeDomainExtensionsOutcomeCallable SlbClient::describeDomainExtensionsCallable(const DescribeDomainExtensionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDomainExtensions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeHealthStatusOutcome SlbClient::describeHealthStatus(const DescribeHealthStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHealthStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHealthStatusOutcome(DescribeHealthStatusResult(outcome.result())); + else + return DescribeHealthStatusOutcome(outcome.error()); +} + +void SlbClient::describeHealthStatusAsync(const DescribeHealthStatusRequest& request, const DescribeHealthStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHealthStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeHealthStatusOutcomeCallable SlbClient::describeHealthStatusCallable(const DescribeHealthStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHealthStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeHighDefinationMonitorOutcome SlbClient::describeHighDefinationMonitor(const DescribeHighDefinationMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHighDefinationMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHighDefinationMonitorOutcome(DescribeHighDefinationMonitorResult(outcome.result())); + else + return DescribeHighDefinationMonitorOutcome(outcome.error()); +} + +void SlbClient::describeHighDefinationMonitorAsync(const DescribeHighDefinationMonitorRequest& request, const DescribeHighDefinationMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHighDefinationMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeHighDefinationMonitorOutcomeCallable SlbClient::describeHighDefinationMonitorCallable(const DescribeHighDefinationMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHighDefinationMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeListenerAccessControlAttributeOutcome SlbClient::describeListenerAccessControlAttribute(const DescribeListenerAccessControlAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeListenerAccessControlAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeListenerAccessControlAttributeOutcome(DescribeListenerAccessControlAttributeResult(outcome.result())); + else + return DescribeListenerAccessControlAttributeOutcome(outcome.error()); +} + +void SlbClient::describeListenerAccessControlAttributeAsync(const DescribeListenerAccessControlAttributeRequest& request, const DescribeListenerAccessControlAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeListenerAccessControlAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeListenerAccessControlAttributeOutcomeCallable SlbClient::describeListenerAccessControlAttributeCallable(const DescribeListenerAccessControlAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeListenerAccessControlAttribute(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -375,6 +1455,78 @@ SlbClient::DescribeLoadBalancerHTTPListenerAttributeOutcomeCallable SlbClient::d return task->get_future(); } +SlbClient::DescribeLoadBalancerHTTPSListenerAttributeOutcome SlbClient::describeLoadBalancerHTTPSListenerAttribute(const DescribeLoadBalancerHTTPSListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoadBalancerHTTPSListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoadBalancerHTTPSListenerAttributeOutcome(DescribeLoadBalancerHTTPSListenerAttributeResult(outcome.result())); + else + return DescribeLoadBalancerHTTPSListenerAttributeOutcome(outcome.error()); +} + +void SlbClient::describeLoadBalancerHTTPSListenerAttributeAsync(const DescribeLoadBalancerHTTPSListenerAttributeRequest& request, const DescribeLoadBalancerHTTPSListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoadBalancerHTTPSListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeLoadBalancerHTTPSListenerAttributeOutcomeCallable SlbClient::describeLoadBalancerHTTPSListenerAttributeCallable(const DescribeLoadBalancerHTTPSListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoadBalancerHTTPSListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeLoadBalancerListenersOutcome SlbClient::describeLoadBalancerListeners(const DescribeLoadBalancerListenersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoadBalancerListenersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoadBalancerListenersOutcome(DescribeLoadBalancerListenersResult(outcome.result())); + else + return DescribeLoadBalancerListenersOutcome(outcome.error()); +} + +void SlbClient::describeLoadBalancerListenersAsync(const DescribeLoadBalancerListenersRequest& request, const DescribeLoadBalancerListenersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoadBalancerListeners(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeLoadBalancerListenersOutcomeCallable SlbClient::describeLoadBalancerListenersCallable(const DescribeLoadBalancerListenersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoadBalancerListeners(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DescribeLoadBalancerTCPListenerAttributeOutcome SlbClient::describeLoadBalancerTCPListenerAttribute(const DescribeLoadBalancerTCPListenerAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -411,6 +1563,42 @@ SlbClient::DescribeLoadBalancerTCPListenerAttributeOutcomeCallable SlbClient::de return task->get_future(); } +SlbClient::DescribeLoadBalancerUDPListenerAttributeOutcome SlbClient::describeLoadBalancerUDPListenerAttribute(const DescribeLoadBalancerUDPListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeLoadBalancerUDPListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeLoadBalancerUDPListenerAttributeOutcome(DescribeLoadBalancerUDPListenerAttributeResult(outcome.result())); + else + return DescribeLoadBalancerUDPListenerAttributeOutcome(outcome.error()); +} + +void SlbClient::describeLoadBalancerUDPListenerAttributeAsync(const DescribeLoadBalancerUDPListenerAttributeRequest& request, const DescribeLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeLoadBalancerUDPListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeLoadBalancerUDPListenerAttributeOutcomeCallable SlbClient::describeLoadBalancerUDPListenerAttributeCallable(const DescribeLoadBalancerUDPListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeLoadBalancerUDPListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DescribeLoadBalancersOutcome SlbClient::describeLoadBalancers(const DescribeLoadBalancersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,6 +1635,78 @@ SlbClient::DescribeLoadBalancersOutcomeCallable SlbClient::describeLoadBalancers return task->get_future(); } +SlbClient::DescribeMasterSlaveServerGroupAttributeOutcome SlbClient::describeMasterSlaveServerGroupAttribute(const DescribeMasterSlaveServerGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMasterSlaveServerGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMasterSlaveServerGroupAttributeOutcome(DescribeMasterSlaveServerGroupAttributeResult(outcome.result())); + else + return DescribeMasterSlaveServerGroupAttributeOutcome(outcome.error()); +} + +void SlbClient::describeMasterSlaveServerGroupAttributeAsync(const DescribeMasterSlaveServerGroupAttributeRequest& request, const DescribeMasterSlaveServerGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMasterSlaveServerGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeMasterSlaveServerGroupAttributeOutcomeCallable SlbClient::describeMasterSlaveServerGroupAttributeCallable(const DescribeMasterSlaveServerGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMasterSlaveServerGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeMasterSlaveServerGroupsOutcome SlbClient::describeMasterSlaveServerGroups(const DescribeMasterSlaveServerGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMasterSlaveServerGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMasterSlaveServerGroupsOutcome(DescribeMasterSlaveServerGroupsResult(outcome.result())); + else + return DescribeMasterSlaveServerGroupsOutcome(outcome.error()); +} + +void SlbClient::describeMasterSlaveServerGroupsAsync(const DescribeMasterSlaveServerGroupsRequest& request, const DescribeMasterSlaveServerGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMasterSlaveServerGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeMasterSlaveServerGroupsOutcomeCallable SlbClient::describeMasterSlaveServerGroupsCallable(const DescribeMasterSlaveServerGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMasterSlaveServerGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::DescribeRegionsOutcome SlbClient::describeRegions(const DescribeRegionsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +1743,654 @@ SlbClient::DescribeRegionsOutcomeCallable SlbClient::describeRegionsCallable(con return task->get_future(); } +SlbClient::DescribeRuleAttributeOutcome SlbClient::describeRuleAttribute(const DescribeRuleAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRuleAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRuleAttributeOutcome(DescribeRuleAttributeResult(outcome.result())); + else + return DescribeRuleAttributeOutcome(outcome.error()); +} + +void SlbClient::describeRuleAttributeAsync(const DescribeRuleAttributeRequest& request, const DescribeRuleAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRuleAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeRuleAttributeOutcomeCallable SlbClient::describeRuleAttributeCallable(const DescribeRuleAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRuleAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeRulesOutcome SlbClient::describeRules(const DescribeRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRulesOutcome(DescribeRulesResult(outcome.result())); + else + return DescribeRulesOutcome(outcome.error()); +} + +void SlbClient::describeRulesAsync(const DescribeRulesRequest& request, const DescribeRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeRulesOutcomeCallable SlbClient::describeRulesCallable(const DescribeRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeServerCertificatesOutcome SlbClient::describeServerCertificates(const DescribeServerCertificatesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeServerCertificatesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeServerCertificatesOutcome(DescribeServerCertificatesResult(outcome.result())); + else + return DescribeServerCertificatesOutcome(outcome.error()); +} + +void SlbClient::describeServerCertificatesAsync(const DescribeServerCertificatesRequest& request, const DescribeServerCertificatesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeServerCertificates(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeServerCertificatesOutcomeCallable SlbClient::describeServerCertificatesCallable(const DescribeServerCertificatesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeServerCertificates(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeTagsOutcome SlbClient::describeTags(const DescribeTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeTagsOutcome(DescribeTagsResult(outcome.result())); + else + return DescribeTagsOutcome(outcome.error()); +} + +void SlbClient::describeTagsAsync(const DescribeTagsRequest& request, const DescribeTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeTagsOutcomeCallable SlbClient::describeTagsCallable(const DescribeTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeVServerGroupAttributeOutcome SlbClient::describeVServerGroupAttribute(const DescribeVServerGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVServerGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVServerGroupAttributeOutcome(DescribeVServerGroupAttributeResult(outcome.result())); + else + return DescribeVServerGroupAttributeOutcome(outcome.error()); +} + +void SlbClient::describeVServerGroupAttributeAsync(const DescribeVServerGroupAttributeRequest& request, const DescribeVServerGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVServerGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeVServerGroupAttributeOutcomeCallable SlbClient::describeVServerGroupAttributeCallable(const DescribeVServerGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVServerGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeVServerGroupsOutcome SlbClient::describeVServerGroups(const DescribeVServerGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeVServerGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeVServerGroupsOutcome(DescribeVServerGroupsResult(outcome.result())); + else + return DescribeVServerGroupsOutcome(outcome.error()); +} + +void SlbClient::describeVServerGroupsAsync(const DescribeVServerGroupsRequest& request, const DescribeVServerGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeVServerGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::DescribeVServerGroupsOutcomeCallable SlbClient::describeVServerGroupsCallable(const DescribeVServerGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeVServerGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::DescribeZonesOutcome SlbClient::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 SlbClient::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)); +} + +SlbClient::DescribeZonesOutcomeCallable SlbClient::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(); +} + +SlbClient::EnableHighDefinationMonitorOutcome SlbClient::enableHighDefinationMonitor(const EnableHighDefinationMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return EnableHighDefinationMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return EnableHighDefinationMonitorOutcome(EnableHighDefinationMonitorResult(outcome.result())); + else + return EnableHighDefinationMonitorOutcome(outcome.error()); +} + +void SlbClient::enableHighDefinationMonitorAsync(const EnableHighDefinationMonitorRequest& request, const EnableHighDefinationMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, enableHighDefinationMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::EnableHighDefinationMonitorOutcomeCallable SlbClient::enableHighDefinationMonitorCallable(const EnableHighDefinationMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->enableHighDefinationMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::ListTLSCipherPoliciesOutcome SlbClient::listTLSCipherPolicies(const ListTLSCipherPoliciesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTLSCipherPoliciesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTLSCipherPoliciesOutcome(ListTLSCipherPoliciesResult(outcome.result())); + else + return ListTLSCipherPoliciesOutcome(outcome.error()); +} + +void SlbClient::listTLSCipherPoliciesAsync(const ListTLSCipherPoliciesRequest& request, const ListTLSCipherPoliciesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTLSCipherPolicies(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::ListTLSCipherPoliciesOutcomeCallable SlbClient::listTLSCipherPoliciesCallable(const ListTLSCipherPoliciesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTLSCipherPolicies(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::ListTagResourcesOutcome SlbClient::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 SlbClient::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)); +} + +SlbClient::ListTagResourcesOutcomeCallable SlbClient::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(); +} + +SlbClient::ModifyHighDefinationMonitorOutcome SlbClient::modifyHighDefinationMonitor(const ModifyHighDefinationMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyHighDefinationMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyHighDefinationMonitorOutcome(ModifyHighDefinationMonitorResult(outcome.result())); + else + return ModifyHighDefinationMonitorOutcome(outcome.error()); +} + +void SlbClient::modifyHighDefinationMonitorAsync(const ModifyHighDefinationMonitorRequest& request, const ModifyHighDefinationMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyHighDefinationMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::ModifyHighDefinationMonitorOutcomeCallable SlbClient::modifyHighDefinationMonitorCallable(const ModifyHighDefinationMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyHighDefinationMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::ModifyLoadBalancerInstanceChargeTypeOutcome SlbClient::modifyLoadBalancerInstanceChargeType(const ModifyLoadBalancerInstanceChargeTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLoadBalancerInstanceChargeTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLoadBalancerInstanceChargeTypeOutcome(ModifyLoadBalancerInstanceChargeTypeResult(outcome.result())); + else + return ModifyLoadBalancerInstanceChargeTypeOutcome(outcome.error()); +} + +void SlbClient::modifyLoadBalancerInstanceChargeTypeAsync(const ModifyLoadBalancerInstanceChargeTypeRequest& request, const ModifyLoadBalancerInstanceChargeTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLoadBalancerInstanceChargeType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::ModifyLoadBalancerInstanceChargeTypeOutcomeCallable SlbClient::modifyLoadBalancerInstanceChargeTypeCallable(const ModifyLoadBalancerInstanceChargeTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLoadBalancerInstanceChargeType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::ModifyLoadBalancerInstanceSpecOutcome SlbClient::modifyLoadBalancerInstanceSpec(const ModifyLoadBalancerInstanceSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLoadBalancerInstanceSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLoadBalancerInstanceSpecOutcome(ModifyLoadBalancerInstanceSpecResult(outcome.result())); + else + return ModifyLoadBalancerInstanceSpecOutcome(outcome.error()); +} + +void SlbClient::modifyLoadBalancerInstanceSpecAsync(const ModifyLoadBalancerInstanceSpecRequest& request, const ModifyLoadBalancerInstanceSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLoadBalancerInstanceSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::ModifyLoadBalancerInstanceSpecOutcomeCallable SlbClient::modifyLoadBalancerInstanceSpecCallable(const ModifyLoadBalancerInstanceSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLoadBalancerInstanceSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::ModifyLoadBalancerInternetSpecOutcome SlbClient::modifyLoadBalancerInternetSpec(const ModifyLoadBalancerInternetSpecRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLoadBalancerInternetSpecOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLoadBalancerInternetSpecOutcome(ModifyLoadBalancerInternetSpecResult(outcome.result())); + else + return ModifyLoadBalancerInternetSpecOutcome(outcome.error()); +} + +void SlbClient::modifyLoadBalancerInternetSpecAsync(const ModifyLoadBalancerInternetSpecRequest& request, const ModifyLoadBalancerInternetSpecAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLoadBalancerInternetSpec(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::ModifyLoadBalancerInternetSpecOutcomeCallable SlbClient::modifyLoadBalancerInternetSpecCallable(const ModifyLoadBalancerInternetSpecRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLoadBalancerInternetSpec(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::ModifyLoadBalancerPayTypeOutcome SlbClient::modifyLoadBalancerPayType(const ModifyLoadBalancerPayTypeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyLoadBalancerPayTypeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyLoadBalancerPayTypeOutcome(ModifyLoadBalancerPayTypeResult(outcome.result())); + else + return ModifyLoadBalancerPayTypeOutcome(outcome.error()); +} + +void SlbClient::modifyLoadBalancerPayTypeAsync(const ModifyLoadBalancerPayTypeRequest& request, const ModifyLoadBalancerPayTypeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyLoadBalancerPayType(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::ModifyLoadBalancerPayTypeOutcomeCallable SlbClient::modifyLoadBalancerPayTypeCallable(const ModifyLoadBalancerPayTypeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyLoadBalancerPayType(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::ModifyVServerGroupBackendServersOutcome SlbClient::modifyVServerGroupBackendServers(const ModifyVServerGroupBackendServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyVServerGroupBackendServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyVServerGroupBackendServersOutcome(ModifyVServerGroupBackendServersResult(outcome.result())); + else + return ModifyVServerGroupBackendServersOutcome(outcome.error()); +} + +void SlbClient::modifyVServerGroupBackendServersAsync(const ModifyVServerGroupBackendServersRequest& request, const ModifyVServerGroupBackendServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyVServerGroupBackendServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::ModifyVServerGroupBackendServersOutcomeCallable SlbClient::modifyVServerGroupBackendServersCallable(const ModifyVServerGroupBackendServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyVServerGroupBackendServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::MoveResourceGroupOutcome SlbClient::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 SlbClient::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)); +} + +SlbClient::MoveResourceGroupOutcomeCallable SlbClient::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(); +} + +SlbClient::RemoveAccessControlListEntryOutcome SlbClient::removeAccessControlListEntry(const RemoveAccessControlListEntryRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveAccessControlListEntryOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveAccessControlListEntryOutcome(RemoveAccessControlListEntryResult(outcome.result())); + else + return RemoveAccessControlListEntryOutcome(outcome.error()); +} + +void SlbClient::removeAccessControlListEntryAsync(const RemoveAccessControlListEntryRequest& request, const RemoveAccessControlListEntryAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeAccessControlListEntry(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::RemoveAccessControlListEntryOutcomeCallable SlbClient::removeAccessControlListEntryCallable(const RemoveAccessControlListEntryRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeAccessControlListEntry(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::RemoveBackendServersOutcome SlbClient::removeBackendServers(const RemoveBackendServersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -519,6 +2427,366 @@ SlbClient::RemoveBackendServersOutcomeCallable SlbClient::removeBackendServersCa return task->get_future(); } +SlbClient::RemoveListenerWhiteListItemOutcome SlbClient::removeListenerWhiteListItem(const RemoveListenerWhiteListItemRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveListenerWhiteListItemOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveListenerWhiteListItemOutcome(RemoveListenerWhiteListItemResult(outcome.result())); + else + return RemoveListenerWhiteListItemOutcome(outcome.error()); +} + +void SlbClient::removeListenerWhiteListItemAsync(const RemoveListenerWhiteListItemRequest& request, const RemoveListenerWhiteListItemAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeListenerWhiteListItem(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::RemoveListenerWhiteListItemOutcomeCallable SlbClient::removeListenerWhiteListItemCallable(const RemoveListenerWhiteListItemRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeListenerWhiteListItem(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::RemoveTagsOutcome SlbClient::removeTags(const RemoveTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveTagsOutcome(RemoveTagsResult(outcome.result())); + else + return RemoveTagsOutcome(outcome.error()); +} + +void SlbClient::removeTagsAsync(const RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::RemoveTagsOutcomeCallable SlbClient::removeTagsCallable(const RemoveTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::RemoveVServerGroupBackendServersOutcome SlbClient::removeVServerGroupBackendServers(const RemoveVServerGroupBackendServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RemoveVServerGroupBackendServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RemoveVServerGroupBackendServersOutcome(RemoveVServerGroupBackendServersResult(outcome.result())); + else + return RemoveVServerGroupBackendServersOutcome(outcome.error()); +} + +void SlbClient::removeVServerGroupBackendServersAsync(const RemoveVServerGroupBackendServersRequest& request, const RemoveVServerGroupBackendServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, removeVServerGroupBackendServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::RemoveVServerGroupBackendServersOutcomeCallable SlbClient::removeVServerGroupBackendServersCallable(const RemoveVServerGroupBackendServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->removeVServerGroupBackendServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetAccessControlListAttributeOutcome SlbClient::setAccessControlListAttribute(const SetAccessControlListAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetAccessControlListAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetAccessControlListAttributeOutcome(SetAccessControlListAttributeResult(outcome.result())); + else + return SetAccessControlListAttributeOutcome(outcome.error()); +} + +void SlbClient::setAccessControlListAttributeAsync(const SetAccessControlListAttributeRequest& request, const SetAccessControlListAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setAccessControlListAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetAccessControlListAttributeOutcomeCallable SlbClient::setAccessControlListAttributeCallable(const SetAccessControlListAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setAccessControlListAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetAccessLogsDownloadAttributeOutcome SlbClient::setAccessLogsDownloadAttribute(const SetAccessLogsDownloadAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetAccessLogsDownloadAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetAccessLogsDownloadAttributeOutcome(SetAccessLogsDownloadAttributeResult(outcome.result())); + else + return SetAccessLogsDownloadAttributeOutcome(outcome.error()); +} + +void SlbClient::setAccessLogsDownloadAttributeAsync(const SetAccessLogsDownloadAttributeRequest& request, const SetAccessLogsDownloadAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setAccessLogsDownloadAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetAccessLogsDownloadAttributeOutcomeCallable SlbClient::setAccessLogsDownloadAttributeCallable(const SetAccessLogsDownloadAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setAccessLogsDownloadAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetBackendServersOutcome SlbClient::setBackendServers(const SetBackendServersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetBackendServersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetBackendServersOutcome(SetBackendServersResult(outcome.result())); + else + return SetBackendServersOutcome(outcome.error()); +} + +void SlbClient::setBackendServersAsync(const SetBackendServersRequest& request, const SetBackendServersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setBackendServers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetBackendServersOutcomeCallable SlbClient::setBackendServersCallable(const SetBackendServersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setBackendServers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetCACertificateNameOutcome SlbClient::setCACertificateName(const SetCACertificateNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetCACertificateNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetCACertificateNameOutcome(SetCACertificateNameResult(outcome.result())); + else + return SetCACertificateNameOutcome(outcome.error()); +} + +void SlbClient::setCACertificateNameAsync(const SetCACertificateNameRequest& request, const SetCACertificateNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setCACertificateName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetCACertificateNameOutcomeCallable SlbClient::setCACertificateNameCallable(const SetCACertificateNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setCACertificateName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetDomainExtensionAttributeOutcome SlbClient::setDomainExtensionAttribute(const SetDomainExtensionAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetDomainExtensionAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetDomainExtensionAttributeOutcome(SetDomainExtensionAttributeResult(outcome.result())); + else + return SetDomainExtensionAttributeOutcome(outcome.error()); +} + +void SlbClient::setDomainExtensionAttributeAsync(const SetDomainExtensionAttributeRequest& request, const SetDomainExtensionAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setDomainExtensionAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetDomainExtensionAttributeOutcomeCallable SlbClient::setDomainExtensionAttributeCallable(const SetDomainExtensionAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setDomainExtensionAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetListenerAccessControlStatusOutcome SlbClient::setListenerAccessControlStatus(const SetListenerAccessControlStatusRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetListenerAccessControlStatusOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetListenerAccessControlStatusOutcome(SetListenerAccessControlStatusResult(outcome.result())); + else + return SetListenerAccessControlStatusOutcome(outcome.error()); +} + +void SlbClient::setListenerAccessControlStatusAsync(const SetListenerAccessControlStatusRequest& request, const SetListenerAccessControlStatusAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setListenerAccessControlStatus(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetListenerAccessControlStatusOutcomeCallable SlbClient::setListenerAccessControlStatusCallable(const SetListenerAccessControlStatusRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setListenerAccessControlStatus(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetLoadBalancerDeleteProtectionOutcome SlbClient::setLoadBalancerDeleteProtection(const SetLoadBalancerDeleteProtectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetLoadBalancerDeleteProtectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetLoadBalancerDeleteProtectionOutcome(SetLoadBalancerDeleteProtectionResult(outcome.result())); + else + return SetLoadBalancerDeleteProtectionOutcome(outcome.error()); +} + +void SlbClient::setLoadBalancerDeleteProtectionAsync(const SetLoadBalancerDeleteProtectionRequest& request, const SetLoadBalancerDeleteProtectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setLoadBalancerDeleteProtection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetLoadBalancerDeleteProtectionOutcomeCallable SlbClient::setLoadBalancerDeleteProtectionCallable(const SetLoadBalancerDeleteProtectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setLoadBalancerDeleteProtection(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + SlbClient::SetLoadBalancerHTTPListenerAttributeOutcome SlbClient::setLoadBalancerHTTPListenerAttribute(const SetLoadBalancerHTTPListenerAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -555,36 +2823,72 @@ SlbClient::SetLoadBalancerHTTPListenerAttributeOutcomeCallable SlbClient::setLoa return task->get_future(); } -SlbClient::SetLoadBalancerListenerStatusOutcome SlbClient::setLoadBalancerListenerStatus(const SetLoadBalancerListenerStatusRequest &request) const +SlbClient::SetLoadBalancerHTTPSListenerAttributeOutcome SlbClient::setLoadBalancerHTTPSListenerAttribute(const SetLoadBalancerHTTPSListenerAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return SetLoadBalancerListenerStatusOutcome(endpointOutcome.error()); + return SetLoadBalancerHTTPSListenerAttributeOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return SetLoadBalancerListenerStatusOutcome(SetLoadBalancerListenerStatusResult(outcome.result())); + return SetLoadBalancerHTTPSListenerAttributeOutcome(SetLoadBalancerHTTPSListenerAttributeResult(outcome.result())); else - return SetLoadBalancerListenerStatusOutcome(outcome.error()); + return SetLoadBalancerHTTPSListenerAttributeOutcome(outcome.error()); } -void SlbClient::setLoadBalancerListenerStatusAsync(const SetLoadBalancerListenerStatusRequest& request, const SetLoadBalancerListenerStatusAsyncHandler& handler, const std::shared_ptr& context) const +void SlbClient::setLoadBalancerHTTPSListenerAttributeAsync(const SetLoadBalancerHTTPSListenerAttributeRequest& request, const SetLoadBalancerHTTPSListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, setLoadBalancerListenerStatus(request), context); + handler(this, request, setLoadBalancerHTTPSListenerAttribute(request), context); }; asyncExecute(new Runnable(fn)); } -SlbClient::SetLoadBalancerListenerStatusOutcomeCallable SlbClient::setLoadBalancerListenerStatusCallable(const SetLoadBalancerListenerStatusRequest &request) const +SlbClient::SetLoadBalancerHTTPSListenerAttributeOutcomeCallable SlbClient::setLoadBalancerHTTPSListenerAttributeCallable(const SetLoadBalancerHTTPSListenerAttributeRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->setLoadBalancerListenerStatus(request); + return this->setLoadBalancerHTTPSListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetLoadBalancerModificationProtectionOutcome SlbClient::setLoadBalancerModificationProtection(const SetLoadBalancerModificationProtectionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetLoadBalancerModificationProtectionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetLoadBalancerModificationProtectionOutcome(SetLoadBalancerModificationProtectionResult(outcome.result())); + else + return SetLoadBalancerModificationProtectionOutcome(outcome.error()); +} + +void SlbClient::setLoadBalancerModificationProtectionAsync(const SetLoadBalancerModificationProtectionRequest& request, const SetLoadBalancerModificationProtectionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setLoadBalancerModificationProtection(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetLoadBalancerModificationProtectionOutcomeCallable SlbClient::setLoadBalancerModificationProtectionCallable(const SetLoadBalancerModificationProtectionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setLoadBalancerModificationProtection(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -699,3 +3003,399 @@ SlbClient::SetLoadBalancerTCPListenerAttributeOutcomeCallable SlbClient::setLoad return task->get_future(); } +SlbClient::SetLoadBalancerUDPListenerAttributeOutcome SlbClient::setLoadBalancerUDPListenerAttribute(const SetLoadBalancerUDPListenerAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetLoadBalancerUDPListenerAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetLoadBalancerUDPListenerAttributeOutcome(SetLoadBalancerUDPListenerAttributeResult(outcome.result())); + else + return SetLoadBalancerUDPListenerAttributeOutcome(outcome.error()); +} + +void SlbClient::setLoadBalancerUDPListenerAttributeAsync(const SetLoadBalancerUDPListenerAttributeRequest& request, const SetLoadBalancerUDPListenerAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setLoadBalancerUDPListenerAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetLoadBalancerUDPListenerAttributeOutcomeCallable SlbClient::setLoadBalancerUDPListenerAttributeCallable(const SetLoadBalancerUDPListenerAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setLoadBalancerUDPListenerAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetRuleOutcome SlbClient::setRule(const SetRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetRuleOutcome(SetRuleResult(outcome.result())); + else + return SetRuleOutcome(outcome.error()); +} + +void SlbClient::setRuleAsync(const SetRuleRequest& request, const SetRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetRuleOutcomeCallable SlbClient::setRuleCallable(const SetRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetServerCertificateNameOutcome SlbClient::setServerCertificateName(const SetServerCertificateNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetServerCertificateNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetServerCertificateNameOutcome(SetServerCertificateNameResult(outcome.result())); + else + return SetServerCertificateNameOutcome(outcome.error()); +} + +void SlbClient::setServerCertificateNameAsync(const SetServerCertificateNameRequest& request, const SetServerCertificateNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setServerCertificateName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetServerCertificateNameOutcomeCallable SlbClient::setServerCertificateNameCallable(const SetServerCertificateNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setServerCertificateName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetTLSCipherPolicyAttributeOutcome SlbClient::setTLSCipherPolicyAttribute(const SetTLSCipherPolicyAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetTLSCipherPolicyAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetTLSCipherPolicyAttributeOutcome(SetTLSCipherPolicyAttributeResult(outcome.result())); + else + return SetTLSCipherPolicyAttributeOutcome(outcome.error()); +} + +void SlbClient::setTLSCipherPolicyAttributeAsync(const SetTLSCipherPolicyAttributeRequest& request, const SetTLSCipherPolicyAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setTLSCipherPolicyAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetTLSCipherPolicyAttributeOutcomeCallable SlbClient::setTLSCipherPolicyAttributeCallable(const SetTLSCipherPolicyAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setTLSCipherPolicyAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::SetVServerGroupAttributeOutcome SlbClient::setVServerGroupAttribute(const SetVServerGroupAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SetVServerGroupAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SetVServerGroupAttributeOutcome(SetVServerGroupAttributeResult(outcome.result())); + else + return SetVServerGroupAttributeOutcome(outcome.error()); +} + +void SlbClient::setVServerGroupAttributeAsync(const SetVServerGroupAttributeRequest& request, const SetVServerGroupAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, setVServerGroupAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::SetVServerGroupAttributeOutcomeCallable SlbClient::setVServerGroupAttributeCallable(const SetVServerGroupAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->setVServerGroupAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::StartLoadBalancerListenerOutcome SlbClient::startLoadBalancerListener(const StartLoadBalancerListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StartLoadBalancerListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StartLoadBalancerListenerOutcome(StartLoadBalancerListenerResult(outcome.result())); + else + return StartLoadBalancerListenerOutcome(outcome.error()); +} + +void SlbClient::startLoadBalancerListenerAsync(const StartLoadBalancerListenerRequest& request, const StartLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, startLoadBalancerListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::StartLoadBalancerListenerOutcomeCallable SlbClient::startLoadBalancerListenerCallable(const StartLoadBalancerListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->startLoadBalancerListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::StopLoadBalancerListenerOutcome SlbClient::stopLoadBalancerListener(const StopLoadBalancerListenerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopLoadBalancerListenerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopLoadBalancerListenerOutcome(StopLoadBalancerListenerResult(outcome.result())); + else + return StopLoadBalancerListenerOutcome(outcome.error()); +} + +void SlbClient::stopLoadBalancerListenerAsync(const StopLoadBalancerListenerRequest& request, const StopLoadBalancerListenerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopLoadBalancerListener(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::StopLoadBalancerListenerOutcomeCallable SlbClient::stopLoadBalancerListenerCallable(const StopLoadBalancerListenerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopLoadBalancerListener(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::TagResourcesOutcome SlbClient::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 SlbClient::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)); +} + +SlbClient::TagResourcesOutcomeCallable SlbClient::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(); +} + +SlbClient::UntagResourcesOutcome SlbClient::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 SlbClient::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)); +} + +SlbClient::UntagResourcesOutcomeCallable SlbClient::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(); +} + +SlbClient::UploadCACertificateOutcome SlbClient::uploadCACertificate(const UploadCACertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UploadCACertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UploadCACertificateOutcome(UploadCACertificateResult(outcome.result())); + else + return UploadCACertificateOutcome(outcome.error()); +} + +void SlbClient::uploadCACertificateAsync(const UploadCACertificateRequest& request, const UploadCACertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, uploadCACertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::UploadCACertificateOutcomeCallable SlbClient::uploadCACertificateCallable(const UploadCACertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->uploadCACertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +SlbClient::UploadServerCertificateOutcome SlbClient::uploadServerCertificate(const UploadServerCertificateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UploadServerCertificateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UploadServerCertificateOutcome(UploadServerCertificateResult(outcome.result())); + else + return UploadServerCertificateOutcome(outcome.error()); +} + +void SlbClient::uploadServerCertificateAsync(const UploadServerCertificateRequest& request, const UploadServerCertificateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, uploadServerCertificate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +SlbClient::UploadServerCertificateOutcomeCallable SlbClient::uploadServerCertificateCallable(const UploadServerCertificateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->uploadServerCertificate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/slb/src/model/AddAccessControlListEntryRequest.cc b/slb/src/model/AddAccessControlListEntryRequest.cc new file mode 100644 index 000000000..c5ddd728e --- /dev/null +++ b/slb/src/model/AddAccessControlListEntryRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::AddAccessControlListEntryRequest; + +AddAccessControlListEntryRequest::AddAccessControlListEntryRequest() + : RpcServiceRequest("slb", "2014-05-15", "AddAccessControlListEntry") { + setMethod(HttpRequest::Method::Post); +} + +AddAccessControlListEntryRequest::~AddAccessControlListEntryRequest() {} + +std::string AddAccessControlListEntryRequest::getAccess_key_id() const { + return access_key_id_; +} + +void AddAccessControlListEntryRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long AddAccessControlListEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AddAccessControlListEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AddAccessControlListEntryRequest::getAclEntrys() const { + return aclEntrys_; +} + +void AddAccessControlListEntryRequest::setAclEntrys(const std::string &aclEntrys) { + aclEntrys_ = aclEntrys; + setParameter(std::string("AclEntrys"), aclEntrys); +} + +std::string AddAccessControlListEntryRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddAccessControlListEntryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string AddAccessControlListEntryRequest::getRegionId() const { + return regionId_; +} + +void AddAccessControlListEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string AddAccessControlListEntryRequest::getAclId() const { + return aclId_; +} + +void AddAccessControlListEntryRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +std::string AddAccessControlListEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AddAccessControlListEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AddAccessControlListEntryRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AddAccessControlListEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AddAccessControlListEntryRequest::getOwnerId() const { + return ownerId_; +} + +void AddAccessControlListEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AddAccessControlListEntryRequest::getTags() const { + return tags_; +} + +void AddAccessControlListEntryRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/AddAccessControlListEntryResult.cc b/slb/src/model/AddAccessControlListEntryResult.cc new file mode 100644 index 000000000..ef2038c9c --- /dev/null +++ b/slb/src/model/AddAccessControlListEntryResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +AddAccessControlListEntryResult::AddAccessControlListEntryResult() : + ServiceResult() +{} + +AddAccessControlListEntryResult::AddAccessControlListEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddAccessControlListEntryResult::~AddAccessControlListEntryResult() +{} + +void AddAccessControlListEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/AddBackendServersRequest.cc b/slb/src/model/AddBackendServersRequest.cc index 307056e82..71d954125 100644 --- a/slb/src/model/AddBackendServersRequest.cc +++ b/slb/src/model/AddBackendServersRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::AddBackendServersRequest; AddBackendServersRequest::AddBackendServersRequest() - : RpcServiceRequest("slb", "2013-02-21", "AddBackendServers") { + : RpcServiceRequest("slb", "2014-05-15", "AddBackendServers") { setMethod(HttpRequest::Method::Post); } @@ -52,13 +52,13 @@ void AddBackendServersRequest::setBackendServers(const std::string &backendServe setParameter(std::string("BackendServers"), backendServers); } -std::string AddBackendServersRequest::getAccessKeyId() const { - return accessKeyId_; +std::string AddBackendServersRequest::getRegionId() const { + return regionId_; } -void AddBackendServersRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void AddBackendServersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } std::string AddBackendServersRequest::getResourceOwnerAccount() const { diff --git a/slb/src/model/AddBackendServersResult.cc b/slb/src/model/AddBackendServersResult.cc index d06f33a73..4f10323ed 100644 --- a/slb/src/model/AddBackendServersResult.cc +++ b/slb/src/model/AddBackendServersResult.cc @@ -43,8 +43,16 @@ void AddBackendServersResult::parse(const std::string &payload) for (auto valueBackendServersBackendServer : allBackendServersNode) { BackendServer backendServersObject; + if(!valueBackendServersBackendServer["VpcId"].isNull()) + backendServersObject.vpcId = valueBackendServersBackendServer["VpcId"].asString(); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); if(!valueBackendServersBackendServer["Weight"].isNull()) backendServersObject.weight = valueBackendServersBackendServer["Weight"].asString(); + if(!valueBackendServersBackendServer["Description"].isNull()) + backendServersObject.description = valueBackendServersBackendServer["Description"].asString(); + if(!valueBackendServersBackendServer["ServerIp"].isNull()) + backendServersObject.serverIp = valueBackendServersBackendServer["ServerIp"].asString(); if(!valueBackendServersBackendServer["ServerId"].isNull()) backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); backendServers_.push_back(backendServersObject); diff --git a/slb/src/model/AddListenerWhiteListItemRequest.cc b/slb/src/model/AddListenerWhiteListItemRequest.cc new file mode 100644 index 000000000..6a8ebcd45 --- /dev/null +++ b/slb/src/model/AddListenerWhiteListItemRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::AddListenerWhiteListItemRequest; + +AddListenerWhiteListItemRequest::AddListenerWhiteListItemRequest() + : RpcServiceRequest("slb", "2014-05-15", "AddListenerWhiteListItem") { + setMethod(HttpRequest::Method::Post); +} + +AddListenerWhiteListItemRequest::~AddListenerWhiteListItemRequest() {} + +std::string AddListenerWhiteListItemRequest::getAccess_key_id() const { + return access_key_id_; +} + +void AddListenerWhiteListItemRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long AddListenerWhiteListItemRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AddListenerWhiteListItemRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AddListenerWhiteListItemRequest::getSourceItems() const { + return sourceItems_; +} + +void AddListenerWhiteListItemRequest::setSourceItems(const std::string &sourceItems) { + sourceItems_ = sourceItems; + setParameter(std::string("SourceItems"), sourceItems); +} + +std::string AddListenerWhiteListItemRequest::getRegionId() const { + return regionId_; +} + +void AddListenerWhiteListItemRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int AddListenerWhiteListItemRequest::getListenerPort() const { + return listenerPort_; +} + +void AddListenerWhiteListItemRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string AddListenerWhiteListItemRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AddListenerWhiteListItemRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AddListenerWhiteListItemRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AddListenerWhiteListItemRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AddListenerWhiteListItemRequest::getOwnerId() const { + return ownerId_; +} + +void AddListenerWhiteListItemRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AddListenerWhiteListItemRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void AddListenerWhiteListItemRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::string AddListenerWhiteListItemRequest::getTags() const { + return tags_; +} + +void AddListenerWhiteListItemRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string AddListenerWhiteListItemRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void AddListenerWhiteListItemRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/AddListenerWhiteListItemResult.cc b/slb/src/model/AddListenerWhiteListItemResult.cc new file mode 100644 index 000000000..9d3931a9b --- /dev/null +++ b/slb/src/model/AddListenerWhiteListItemResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +AddListenerWhiteListItemResult::AddListenerWhiteListItemResult() : + ServiceResult() +{} + +AddListenerWhiteListItemResult::AddListenerWhiteListItemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddListenerWhiteListItemResult::~AddListenerWhiteListItemResult() +{} + +void AddListenerWhiteListItemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/AddTagsRequest.cc b/slb/src/model/AddTagsRequest.cc new file mode 100644 index 000000000..470f88fc8 --- /dev/null +++ b/slb/src/model/AddTagsRequest.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::Slb::Model::AddTagsRequest; + +AddTagsRequest::AddTagsRequest() + : RpcServiceRequest("slb", "2014-05-15", "AddTags") { + setMethod(HttpRequest::Method::Post); +} + +AddTagsRequest::~AddTagsRequest() {} + +std::string AddTagsRequest::getAccess_key_id() const { + return access_key_id_; +} + +void AddTagsRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long AddTagsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AddTagsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AddTagsRequest::getRegionId() const { + return regionId_; +} + +void AddTagsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string AddTagsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AddTagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AddTagsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AddTagsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AddTagsRequest::getOwnerId() const { + return ownerId_; +} + +void AddTagsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AddTagsRequest::getTags() const { + return tags_; +} + +void AddTagsRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string AddTagsRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void AddTagsRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/AddTagsResult.cc b/slb/src/model/AddTagsResult.cc new file mode 100644 index 000000000..b6b33211b --- /dev/null +++ b/slb/src/model/AddTagsResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +AddTagsResult::AddTagsResult() : + ServiceResult() +{} + +AddTagsResult::AddTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddTagsResult::~AddTagsResult() +{} + +void AddTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/AddVServerGroupBackendServersRequest.cc b/slb/src/model/AddVServerGroupBackendServersRequest.cc new file mode 100644 index 000000000..ef79b69ad --- /dev/null +++ b/slb/src/model/AddVServerGroupBackendServersRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::AddVServerGroupBackendServersRequest; + +AddVServerGroupBackendServersRequest::AddVServerGroupBackendServersRequest() + : RpcServiceRequest("slb", "2014-05-15", "AddVServerGroupBackendServers") { + setMethod(HttpRequest::Method::Post); +} + +AddVServerGroupBackendServersRequest::~AddVServerGroupBackendServersRequest() {} + +std::string AddVServerGroupBackendServersRequest::getAccess_key_id() const { + return access_key_id_; +} + +void AddVServerGroupBackendServersRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long AddVServerGroupBackendServersRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AddVServerGroupBackendServersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AddVServerGroupBackendServersRequest::getBackendServers() const { + return backendServers_; +} + +void AddVServerGroupBackendServersRequest::setBackendServers(const std::string &backendServers) { + backendServers_ = backendServers; + setParameter(std::string("BackendServers"), backendServers); +} + +std::string AddVServerGroupBackendServersRequest::getRegionId() const { + return regionId_; +} + +void AddVServerGroupBackendServersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string AddVServerGroupBackendServersRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void AddVServerGroupBackendServersRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string AddVServerGroupBackendServersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AddVServerGroupBackendServersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AddVServerGroupBackendServersRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AddVServerGroupBackendServersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AddVServerGroupBackendServersRequest::getOwnerId() const { + return ownerId_; +} + +void AddVServerGroupBackendServersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AddVServerGroupBackendServersRequest::getTags() const { + return tags_; +} + +void AddVServerGroupBackendServersRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/AddVServerGroupBackendServersResult.cc b/slb/src/model/AddVServerGroupBackendServersResult.cc new file mode 100644 index 000000000..33cb0dd4c --- /dev/null +++ b/slb/src/model/AddVServerGroupBackendServersResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +AddVServerGroupBackendServersResult::AddVServerGroupBackendServersResult() : + ServiceResult() +{} + +AddVServerGroupBackendServersResult::AddVServerGroupBackendServersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddVServerGroupBackendServersResult::~AddVServerGroupBackendServersResult() +{} + +void AddVServerGroupBackendServersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["BackendServer"]; + for (auto valueBackendServersBackendServer : allBackendServersNode) + { + BackendServer backendServersObject; + if(!valueBackendServersBackendServer["VpcId"].isNull()) + backendServersObject.vpcId = valueBackendServersBackendServer["VpcId"].asString(); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["Weight"].isNull()) + backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString()); + if(!valueBackendServersBackendServer["Description"].isNull()) + backendServersObject.description = valueBackendServersBackendServer["Description"].asString(); + if(!valueBackendServersBackendServer["ServerRegionId"].isNull()) + backendServersObject.serverRegionId = valueBackendServersBackendServer["ServerRegionId"].asString(); + if(!valueBackendServersBackendServer["ServerIp"].isNull()) + backendServersObject.serverIp = valueBackendServersBackendServer["ServerIp"].asString(); + if(!valueBackendServersBackendServer["Port"].isNull()) + backendServersObject.port = std::stoi(valueBackendServersBackendServer["Port"].asString()); + if(!valueBackendServersBackendServer["VbrId"].isNull()) + backendServersObject.vbrId = valueBackendServersBackendServer["VbrId"].asString(); + if(!valueBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + +} + +std::string AddVServerGroupBackendServersResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::vector AddVServerGroupBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/CreateAccessControlListRequest.cc b/slb/src/model/CreateAccessControlListRequest.cc new file mode 100644 index 000000000..bebf43f2c --- /dev/null +++ b/slb/src/model/CreateAccessControlListRequest.cc @@ -0,0 +1,140 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::CreateAccessControlListRequest; + +CreateAccessControlListRequest::CreateAccessControlListRequest() + : RpcServiceRequest("slb", "2014-05-15", "CreateAccessControlList") { + setMethod(HttpRequest::Method::Post); +} + +CreateAccessControlListRequest::~CreateAccessControlListRequest() {} + +std::string CreateAccessControlListRequest::getAccess_key_id() const { + return access_key_id_; +} + +void CreateAccessControlListRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long CreateAccessControlListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateAccessControlListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateAccessControlListRequest::getAclName() const { + return aclName_; +} + +void CreateAccessControlListRequest::setAclName(const std::string &aclName) { + aclName_ = aclName; + setParameter(std::string("AclName"), aclName); +} + +std::string CreateAccessControlListRequest::getAddressIPVersion() const { + return addressIPVersion_; +} + +void CreateAccessControlListRequest::setAddressIPVersion(const std::string &addressIPVersion) { + addressIPVersion_ = addressIPVersion; + setParameter(std::string("AddressIPVersion"), addressIPVersion); +} + +std::string CreateAccessControlListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateAccessControlListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateAccessControlListRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void CreateAccessControlListRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string CreateAccessControlListRequest::getRegionId() const { + return regionId_; +} + +void CreateAccessControlListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector CreateAccessControlListRequest::getTag() const { + return tag_; +} + +void CreateAccessControlListRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string CreateAccessControlListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateAccessControlListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateAccessControlListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateAccessControlListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateAccessControlListRequest::getOwnerId() const { + return ownerId_; +} + +void CreateAccessControlListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateAccessControlListRequest::getTags() const { + return tags_; +} + +void CreateAccessControlListRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/CreateAccessControlListResult.cc b/slb/src/model/CreateAccessControlListResult.cc new file mode 100644 index 000000000..6a6c684ea --- /dev/null +++ b/slb/src/model/CreateAccessControlListResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +CreateAccessControlListResult::CreateAccessControlListResult() : + ServiceResult() +{} + +CreateAccessControlListResult::CreateAccessControlListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateAccessControlListResult::~CreateAccessControlListResult() +{} + +void CreateAccessControlListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + +} + +std::string CreateAccessControlListResult::getAclId()const +{ + return aclId_; +} + diff --git a/slb/src/model/CreateDomainExtensionRequest.cc b/slb/src/model/CreateDomainExtensionRequest.cc new file mode 100644 index 000000000..10d9102ad --- /dev/null +++ b/slb/src/model/CreateDomainExtensionRequest.cc @@ -0,0 +1,149 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::CreateDomainExtensionRequest; + +CreateDomainExtensionRequest::CreateDomainExtensionRequest() + : RpcServiceRequest("slb", "2014-05-15", "CreateDomainExtension") { + setMethod(HttpRequest::Method::Post); +} + +CreateDomainExtensionRequest::~CreateDomainExtensionRequest() {} + +std::string CreateDomainExtensionRequest::getAccess_key_id() const { + return access_key_id_; +} + +void CreateDomainExtensionRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long CreateDomainExtensionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateDomainExtensionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::vector CreateDomainExtensionRequest::getServerCertificate() const { + return serverCertificate_; +} + +void CreateDomainExtensionRequest::setServerCertificate(const std::vector &serverCertificate) { + serverCertificate_ = serverCertificate; + for(int dep1 = 0; dep1 != serverCertificate.size(); dep1++) { + auto serverCertificateObj = serverCertificate.at(dep1); + std::string serverCertificateObjStr = std::string("ServerCertificate") + "." + std::to_string(dep1 + 1); + setParameter(serverCertificateObjStr + ".BindingType", serverCertificateObj.bindingType); + setParameter(serverCertificateObjStr + ".CertificateId", serverCertificateObj.certificateId); + setParameter(serverCertificateObjStr + ".StandardType", serverCertificateObj.standardType); + } +} + +std::string CreateDomainExtensionRequest::getRegionId() const { + return regionId_; +} + +void CreateDomainExtensionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int CreateDomainExtensionRequest::getListenerPort() const { + return listenerPort_; +} + +void CreateDomainExtensionRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string CreateDomainExtensionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateDomainExtensionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateDomainExtensionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateDomainExtensionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::vector CreateDomainExtensionRequest::getCertificateId() const { + return certificateId_; +} + +void CreateDomainExtensionRequest::setCertificateId(const std::vector &certificateId) { + certificateId_ = certificateId; +} + +long CreateDomainExtensionRequest::getOwnerId() const { + return ownerId_; +} + +void CreateDomainExtensionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateDomainExtensionRequest::getServerCertificateId() const { + return serverCertificateId_; +} + +void CreateDomainExtensionRequest::setServerCertificateId(const std::string &serverCertificateId) { + serverCertificateId_ = serverCertificateId; + setParameter(std::string("ServerCertificateId"), serverCertificateId); +} + +std::string CreateDomainExtensionRequest::getTags() const { + return tags_; +} + +void CreateDomainExtensionRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string CreateDomainExtensionRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateDomainExtensionRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string CreateDomainExtensionRequest::getDomain() const { + return domain_; +} + +void CreateDomainExtensionRequest::setDomain(const std::string &domain) { + domain_ = domain; + setParameter(std::string("Domain"), domain); +} + diff --git a/slb/src/model/CreateDomainExtensionResult.cc b/slb/src/model/CreateDomainExtensionResult.cc new file mode 100644 index 000000000..51b388ae2 --- /dev/null +++ b/slb/src/model/CreateDomainExtensionResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +CreateDomainExtensionResult::CreateDomainExtensionResult() : + ServiceResult() +{} + +CreateDomainExtensionResult::CreateDomainExtensionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateDomainExtensionResult::~CreateDomainExtensionResult() +{} + +void CreateDomainExtensionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["DomainExtensionId"].isNull()) + domainExtensionId_ = value["DomainExtensionId"].asString(); + +} + +int CreateDomainExtensionResult::getListenerPort()const +{ + return listenerPort_; +} + +std::string CreateDomainExtensionResult::getDomainExtensionId()const +{ + return domainExtensionId_; +} + diff --git a/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc b/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc index dbaa1d97c..181cab7c6 100644 --- a/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc +++ b/slb/src/model/CreateLoadBalancerHTTPListenerRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::CreateLoadBalancerHTTPListenerRequest; CreateLoadBalancerHTTPListenerRequest::CreateLoadBalancerHTTPListenerRequest() - : RpcServiceRequest("slb", "2013-02-21", "CreateLoadBalancerHTTPListener") { + : RpcServiceRequest("slb", "2014-05-15", "CreateLoadBalancerHTTPListener") { setMethod(HttpRequest::Method::Post); } @@ -43,6 +43,15 @@ void CreateLoadBalancerHTTPListenerRequest::setHealthCheckTimeout(int healthChec setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout)); } +std::string CreateLoadBalancerHTTPListenerRequest::getListenerForward() const { + return listenerForward_; +} + +void CreateLoadBalancerHTTPListenerRequest::setListenerForward(const std::string &listenerForward) { + listenerForward_ = listenerForward; + setParameter(std::string("ListenerForward"), listenerForward); +} + std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor() const { return xForwardedFor_; } @@ -52,13 +61,234 @@ void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor(const std::string & setParameter(std::string("XForwardedFor"), xForwardedFor); } -std::string CreateLoadBalancerHTTPListenerRequest::getHostId() const { - return hostId_; +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckURI() const { + return healthCheckURI_; } -void CreateLoadBalancerHTTPListenerRequest::setHostId(const std::string &hostId) { - hostId_ = hostId; - setParameter(std::string("HostId"), hostId); +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor_SLBPORT() const { + return xForwardedFor_SLBPORT_; +} + +void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor_SLBPORT(const std::string &xForwardedFor_SLBPORT) { + xForwardedFor_SLBPORT_ = xForwardedFor_SLBPORT; + setParameter(std::string("XForwardedFor_SLBPORT"), xForwardedFor_SLBPORT); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getAclStatus() const { + return aclStatus_; +} + +void CreateLoadBalancerHTTPListenerRequest::setAclStatus(const std::string &aclStatus) { + aclStatus_ = aclStatus; + setParameter(std::string("AclStatus"), aclStatus); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getAclType() const { + return aclType_; +} + +void CreateLoadBalancerHTTPListenerRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheck() const { + return healthCheck_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheck(const std::string &healthCheck) { + healthCheck_ = healthCheck; + setParameter(std::string("HealthCheck"), healthCheck); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getVpcIds() const { + return vpcIds_; +} + +void CreateLoadBalancerHTTPListenerRequest::setVpcIds(const std::string &vpcIds) { + vpcIds_ = vpcIds; + setParameter(std::string("VpcIds"), vpcIds); +} + +std::vector CreateLoadBalancerHTTPListenerRequest::getTag() const { + return tag_; +} + +void CreateLoadBalancerHTTPListenerRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string CreateLoadBalancerHTTPListenerRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void CreateLoadBalancerHTTPListenerRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getAclId() const { + return aclId_; +} + +void CreateLoadBalancerHTTPListenerRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +int CreateLoadBalancerHTTPListenerRequest::getForwardCode() const { + return forwardCode_; +} + +void CreateLoadBalancerHTTPListenerRequest::setForwardCode(int forwardCode) { + forwardCode_ = forwardCode; + setParameter(std::string("ForwardCode"), std::to_string(forwardCode)); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getCookie() const { + return cookie_; +} + +void CreateLoadBalancerHTTPListenerRequest::setCookie(const std::string &cookie) { + cookie_ = cookie; + setParameter(std::string("Cookie"), cookie); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +int CreateLoadBalancerHTTPListenerRequest::getRequestTimeout() const { + return requestTimeout_; +} + +void CreateLoadBalancerHTTPListenerRequest::setRequestTimeout(int requestTimeout) { + requestTimeout_ = requestTimeout; + setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout)); +} + +long CreateLoadBalancerHTTPListenerRequest::getOwnerId() const { + return ownerId_; +} + +void CreateLoadBalancerHTTPListenerRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getTags() const { + return tags_; +} + +void CreateLoadBalancerHTTPListenerRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateLoadBalancerHTTPListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor_SLBIP() const { + return xForwardedFor_SLBIP_; +} + +void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor_SLBIP(const std::string &xForwardedFor_SLBIP) { + xForwardedFor_SLBIP_ = xForwardedFor_SLBIP; + setParameter(std::string("XForwardedFor_SLBIP"), xForwardedFor_SLBIP); +} + +int CreateLoadBalancerHTTPListenerRequest::getBackendServerPort() const { + return backendServerPort_; +} + +void CreateLoadBalancerHTTPListenerRequest::setBackendServerPort(int backendServerPort) { + backendServerPort_ = backendServerPort; + setParameter(std::string("BackendServerPort"), std::to_string(backendServerPort)); +} + +int CreateLoadBalancerHTTPListenerRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor_SLBID() const { + return xForwardedFor_SLBID_; +} + +void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor_SLBID(const std::string &xForwardedFor_SLBID) { + xForwardedFor_SLBID_ = xForwardedFor_SLBID; + setParameter(std::string("XForwardedFor_SLBID"), xForwardedFor_SLBID); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckHttpVersion() const { + return healthCheckHttpVersion_; +} + +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckHttpVersion(const std::string &healthCheckHttpVersion) { + healthCheckHttpVersion_ = healthCheckHttpVersion; + setParameter(std::string("HealthCheckHttpVersion"), healthCheckHttpVersion); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getAccess_key_id() const { + return access_key_id_; +} + +void CreateLoadBalancerHTTPListenerRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor_ClientSrcPort() const { + return xForwardedFor_ClientSrcPort_; +} + +void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor_ClientSrcPort(const std::string &xForwardedFor_ClientSrcPort) { + xForwardedFor_ClientSrcPort_ = xForwardedFor_ClientSrcPort; + setParameter(std::string("XForwardedFor_ClientSrcPort"), xForwardedFor_ClientSrcPort); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getDescription() const { + return description_; +} + +void CreateLoadBalancerHTTPListenerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } int CreateLoadBalancerHTTPListenerRequest::getUnhealthyThreshold() const { @@ -79,15 +309,6 @@ void CreateLoadBalancerHTTPListenerRequest::setHealthyThreshold(int healthyThres setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); } -std::string CreateLoadBalancerHTTPListenerRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void CreateLoadBalancerHTTPListenerRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string CreateLoadBalancerHTTPListenerRequest::getScheduler() const { return scheduler_; } @@ -97,13 +318,31 @@ void CreateLoadBalancerHTTPListenerRequest::setScheduler(const std::string &sche setParameter(std::string("Scheduler"), scheduler); } -std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheck() const { - return healthCheck_; +int CreateLoadBalancerHTTPListenerRequest::getForwardPort() const { + return forwardPort_; } -void CreateLoadBalancerHTTPListenerRequest::setHealthCheck(const std::string &healthCheck) { - healthCheck_ = healthCheck; - setParameter(std::string("HealthCheck"), healthCheck); +void CreateLoadBalancerHTTPListenerRequest::setForwardPort(int forwardPort) { + forwardPort_ = forwardPort; + setParameter(std::string("ForwardPort"), std::to_string(forwardPort)); +} + +int CreateLoadBalancerHTTPListenerRequest::getMaxConnection() const { + return maxConnection_; +} + +void CreateLoadBalancerHTTPListenerRequest::setMaxConnection(int maxConnection) { + maxConnection_ = maxConnection; + setParameter(std::string("MaxConnection"), std::to_string(maxConnection)); +} + +std::string CreateLoadBalancerHTTPListenerRequest::getRegionId() const { + return regionId_; +} + +void CreateLoadBalancerHTTPListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } int CreateLoadBalancerHTTPListenerRequest::getCookieTimeout() const { @@ -133,22 +372,22 @@ void CreateLoadBalancerHTTPListenerRequest::setListenerPort(int listenerPort) { setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); } -std::string CreateLoadBalancerHTTPListenerRequest::getCookie() const { - return cookie_; +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckType() const { + return healthCheckType_; } -void CreateLoadBalancerHTTPListenerRequest::setCookie(const std::string &cookie) { - cookie_ = cookie; - setParameter(std::string("Cookie"), cookie); +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckType(const std::string &healthCheckType) { + healthCheckType_ = healthCheckType; + setParameter(std::string("HealthCheckType"), healthCheckType); } -std::string CreateLoadBalancerHTTPListenerRequest::getStickySession() const { - return stickySession_; +std::string CreateLoadBalancerHTTPListenerRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -void CreateLoadBalancerHTTPListenerRequest::setStickySession(const std::string &stickySession) { - stickySession_ = stickySession; - setParameter(std::string("StickySession"), stickySession); +void CreateLoadBalancerHTTPListenerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } int CreateLoadBalancerHTTPListenerRequest::getBandwidth() const { @@ -160,6 +399,15 @@ void CreateLoadBalancerHTTPListenerRequest::setBandwidth(int bandwidth) { setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } +std::string CreateLoadBalancerHTTPListenerRequest::getStickySession() const { + return stickySession_; +} + +void CreateLoadBalancerHTTPListenerRequest::setStickySession(const std::string &stickySession) { + stickySession_ = stickySession; + setParameter(std::string("StickySession"), stickySession); +} + std::string CreateLoadBalancerHTTPListenerRequest::getOwnerAccount() const { return ownerAccount_; } @@ -169,66 +417,48 @@ void CreateLoadBalancerHTTPListenerRequest::setOwnerAccount(const std::string &o setParameter(std::string("OwnerAccount"), ownerAccount); } -std::string CreateLoadBalancerHTTPListenerRequest::getOwnerId() const { - return ownerId_; +std::string CreateLoadBalancerHTTPListenerRequest::getGzip() const { + return gzip_; } -void CreateLoadBalancerHTTPListenerRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); +void CreateLoadBalancerHTTPListenerRequest::setGzip(const std::string &gzip) { + gzip_ = gzip; + setParameter(std::string("Gzip"), gzip); } -std::string CreateLoadBalancerHTTPListenerRequest::getURI() const { - return uRI_; +int CreateLoadBalancerHTTPListenerRequest::getIdleTimeout() const { + return idleTimeout_; } -void CreateLoadBalancerHTTPListenerRequest::setURI(const std::string &uRI) { - uRI_ = uRI; - setParameter(std::string("URI"), uRI); +void CreateLoadBalancerHTTPListenerRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); } -std::string CreateLoadBalancerHTTPListenerRequest::getListenerStatus() const { - return listenerStatus_; +std::string CreateLoadBalancerHTTPListenerRequest::getXForwardedFor_proto() const { + return xForwardedFor_proto_; } -void CreateLoadBalancerHTTPListenerRequest::setListenerStatus(const std::string &listenerStatus) { - listenerStatus_ = listenerStatus; - setParameter(std::string("ListenerStatus"), listenerStatus); +void CreateLoadBalancerHTTPListenerRequest::setXForwardedFor_proto(const std::string &xForwardedFor_proto) { + xForwardedFor_proto_ = xForwardedFor_proto; + setParameter(std::string("XForwardedFor_proto"), xForwardedFor_proto); } -std::string CreateLoadBalancerHTTPListenerRequest::getLoadBalancerId() const { - return loadBalancerId_; +int CreateLoadBalancerHTTPListenerRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; } -void CreateLoadBalancerHTTPListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { - loadBalancerId_ = loadBalancerId; - setParameter(std::string("LoadBalancerId"), loadBalancerId); +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); } -int CreateLoadBalancerHTTPListenerRequest::getBackendServerPort() const { - return backendServerPort_; +std::string CreateLoadBalancerHTTPListenerRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; } -void CreateLoadBalancerHTTPListenerRequest::setBackendServerPort(int backendServerPort) { - backendServerPort_ = backendServerPort; - setParameter(std::string("BackendServerPort"), std::to_string(backendServerPort)); -} - -std::string CreateLoadBalancerHTTPListenerRequest::getDomain() const { - return domain_; -} - -void CreateLoadBalancerHTTPListenerRequest::setDomain(const std::string &domain) { - domain_ = domain; - setParameter(std::string("Domain"), domain); -} - -int CreateLoadBalancerHTTPListenerRequest::getInterval() const { - return interval_; -} - -void CreateLoadBalancerHTTPListenerRequest::setInterval(int interval) { - interval_ = interval; - setParameter(std::string("Interval"), std::to_string(interval)); +void CreateLoadBalancerHTTPListenerRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); } diff --git a/slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc b/slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc new file mode 100644 index 000000000..fc152dfb1 --- /dev/null +++ b/slb/src/model/CreateLoadBalancerHTTPSListenerRequest.cc @@ -0,0 +1,569 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::CreateLoadBalancerHTTPSListenerRequest; + +CreateLoadBalancerHTTPSListenerRequest::CreateLoadBalancerHTTPSListenerRequest() + : RpcServiceRequest("slb", "2014-05-15", "CreateLoadBalancerHTTPSListener") { + setMethod(HttpRequest::Method::Post); +} + +CreateLoadBalancerHTTPSListenerRequest::~CreateLoadBalancerHTTPSListenerRequest() {} + +long CreateLoadBalancerHTTPSListenerRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::vector CreateLoadBalancerHTTPSListenerRequest::getServerCertificate() const { + return serverCertificate_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setServerCertificate(const std::vector &serverCertificate) { + serverCertificate_ = serverCertificate; + for(int dep1 = 0; dep1 != serverCertificate.size(); dep1++) { + auto serverCertificateObj = serverCertificate.at(dep1); + std::string serverCertificateObjStr = std::string("ServerCertificate") + "." + std::to_string(dep1 + 1); + setParameter(serverCertificateObjStr + ".BindingType", serverCertificateObj.bindingType); + setParameter(serverCertificateObjStr + ".CertificateId", serverCertificateObj.certificateId); + setParameter(serverCertificateObjStr + ".StandardType", serverCertificateObj.standardType); + } +} + +int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckTimeout() const { + return healthCheckTimeout_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckTimeout(int healthCheckTimeout) { + healthCheckTimeout_ = healthCheckTimeout; + setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor() const { + return xForwardedFor_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor(const std::string &xForwardedFor) { + xForwardedFor_ = xForwardedFor; + setParameter(std::string("XForwardedFor"), xForwardedFor); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_SLBPORT() const { + return xForwardedFor_SLBPORT_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_SLBPORT(const std::string &xForwardedFor_SLBPORT) { + xForwardedFor_SLBPORT_ = xForwardedFor_SLBPORT; + setParameter(std::string("XForwardedFor_SLBPORT"), xForwardedFor_SLBPORT); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getAclStatus() const { + return aclStatus_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setAclStatus(const std::string &aclStatus) { + aclStatus_ = aclStatus; + setParameter(std::string("AclStatus"), aclStatus); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getAclType() const { + return aclType_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheck() const { + return healthCheck_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheck(const std::string &healthCheck) { + healthCheck_ = healthCheck; + setParameter(std::string("HealthCheck"), healthCheck); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getVpcIds() const { + return vpcIds_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setVpcIds(const std::string &vpcIds) { + vpcIds_ = vpcIds; + setParameter(std::string("VpcIds"), vpcIds); +} + +std::vector CreateLoadBalancerHTTPSListenerRequest::getTag() const { + return tag_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getAclId() const { + return aclId_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_ClientCertClientVerify() const { + return xForwardedFor_ClientCertClientVerify_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_ClientCertClientVerify(const std::string &xForwardedFor_ClientCertClientVerify) { + xForwardedFor_ClientCertClientVerify_ = xForwardedFor_ClientCertClientVerify; + setParameter(std::string("XForwardedFor_ClientCertClientVerify"), xForwardedFor_ClientCertClientVerify); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getCookie() const { + return cookie_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setCookie(const std::string &cookie) { + cookie_ = cookie; + setParameter(std::string("Cookie"), cookie); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +int CreateLoadBalancerHTTPSListenerRequest::getRequestTimeout() const { + return requestTimeout_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setRequestTimeout(int requestTimeout) { + requestTimeout_ = requestTimeout; + setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout)); +} + +long CreateLoadBalancerHTTPSListenerRequest::getOwnerId() const { + return ownerId_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getCACertificateId() const { + return cACertificateId_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setCACertificateId(const std::string &cACertificateId) { + cACertificateId_ = cACertificateId; + setParameter(std::string("CACertificateId"), cACertificateId); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getBackendProtocol() const { + return backendProtocol_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setBackendProtocol(const std::string &backendProtocol) { + backendProtocol_ = backendProtocol; + setParameter(std::string("BackendProtocol"), backendProtocol); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getTags() const { + return tags_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_ClientCertFingerprintAlias() const { + return xForwardedFor_ClientCertFingerprintAlias_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_ClientCertFingerprintAlias(const std::string &xForwardedFor_ClientCertFingerprintAlias) { + xForwardedFor_ClientCertFingerprintAlias_ = xForwardedFor_ClientCertFingerprintAlias; + setParameter(std::string("XForwardedFor_ClientCertFingerprintAlias"), xForwardedFor_ClientCertFingerprintAlias); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_SLBIP() const { + return xForwardedFor_SLBIP_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_SLBIP(const std::string &xForwardedFor_SLBIP) { + xForwardedFor_SLBIP_ = xForwardedFor_SLBIP; + setParameter(std::string("XForwardedFor_SLBIP"), xForwardedFor_SLBIP); +} + +int CreateLoadBalancerHTTPSListenerRequest::getBackendServerPort() const { + return backendServerPort_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setBackendServerPort(int backendServerPort) { + backendServerPort_ = backendServerPort; + setParameter(std::string("BackendServerPort"), std::to_string(backendServerPort)); +} + +int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_ClientCertClientVerifyAlias() const { + return xForwardedFor_ClientCertClientVerifyAlias_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_ClientCertClientVerifyAlias(const std::string &xForwardedFor_ClientCertClientVerifyAlias) { + xForwardedFor_ClientCertClientVerifyAlias_ = xForwardedFor_ClientCertClientVerifyAlias; + setParameter(std::string("XForwardedFor_ClientCertClientVerifyAlias"), xForwardedFor_ClientCertClientVerifyAlias); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_SLBID() const { + return xForwardedFor_SLBID_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_SLBID(const std::string &xForwardedFor_SLBID) { + xForwardedFor_SLBID_ = xForwardedFor_SLBID; + setParameter(std::string("XForwardedFor_SLBID"), xForwardedFor_SLBID); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_ClientCertFingerprint() const { + return xForwardedFor_ClientCertFingerprint_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_ClientCertFingerprint(const std::string &xForwardedFor_ClientCertFingerprint) { + xForwardedFor_ClientCertFingerprint_ = xForwardedFor_ClientCertFingerprint; + setParameter(std::string("XForwardedFor_ClientCertFingerprint"), xForwardedFor_ClientCertFingerprint); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckHttpVersion() const { + return healthCheckHttpVersion_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckHttpVersion(const std::string &healthCheckHttpVersion) { + healthCheckHttpVersion_ = healthCheckHttpVersion; + setParameter(std::string("HealthCheckHttpVersion"), healthCheckHttpVersion); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getAccess_key_id() const { + return access_key_id_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_ClientSrcPort() const { + return xForwardedFor_ClientSrcPort_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_ClientSrcPort(const std::string &xForwardedFor_ClientSrcPort) { + xForwardedFor_ClientSrcPort_ = xForwardedFor_ClientSrcPort; + setParameter(std::string("XForwardedFor_ClientSrcPort"), xForwardedFor_ClientSrcPort); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getDescription() const { + return description_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int CreateLoadBalancerHTTPSListenerRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_ClientCertIssuerDNAlias() const { + return xForwardedFor_ClientCertIssuerDNAlias_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_ClientCertIssuerDNAlias(const std::string &xForwardedFor_ClientCertIssuerDNAlias) { + xForwardedFor_ClientCertIssuerDNAlias_ = xForwardedFor_ClientCertIssuerDNAlias; + setParameter(std::string("XForwardedFor_ClientCertIssuerDNAlias"), xForwardedFor_ClientCertIssuerDNAlias); +} + +int CreateLoadBalancerHTTPSListenerRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getScheduler() const { + return scheduler_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +int CreateLoadBalancerHTTPSListenerRequest::getMaxConnection() const { + return maxConnection_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setMaxConnection(int maxConnection) { + maxConnection_ = maxConnection; + setParameter(std::string("MaxConnection"), std::to_string(maxConnection)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getEnableHttp2() const { + return enableHttp2_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setEnableHttp2(const std::string &enableHttp2) { + enableHttp2_ = enableHttp2; + setParameter(std::string("EnableHttp2"), enableHttp2); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getRegionId() const { + return regionId_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_ClientCertSubjectDN() const { + return xForwardedFor_ClientCertSubjectDN_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_ClientCertSubjectDN(const std::string &xForwardedFor_ClientCertSubjectDN) { + xForwardedFor_ClientCertSubjectDN_ = xForwardedFor_ClientCertSubjectDN; + setParameter(std::string("XForwardedFor_ClientCertSubjectDN"), xForwardedFor_ClientCertSubjectDN); +} + +int CreateLoadBalancerHTTPSListenerRequest::getCookieTimeout() const { + return cookieTimeout_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setCookieTimeout(int cookieTimeout) { + cookieTimeout_ = cookieTimeout; + setParameter(std::string("CookieTimeout"), std::to_string(cookieTimeout)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getStickySessionType() const { + return stickySessionType_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setStickySessionType(const std::string &stickySessionType) { + stickySessionType_ = stickySessionType; + setParameter(std::string("StickySessionType"), stickySessionType); +} + +int CreateLoadBalancerHTTPSListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckType() const { + return healthCheckType_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckType(const std::string &healthCheckType) { + healthCheckType_ = healthCheckType; + setParameter(std::string("HealthCheckType"), healthCheckType); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int CreateLoadBalancerHTTPSListenerRequest::getBandwidth() const { + return bandwidth_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getStickySession() const { + return stickySession_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setStickySession(const std::string &stickySession) { + stickySession_ = stickySession; + setParameter(std::string("StickySession"), stickySession); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getGzip() const { + return gzip_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setGzip(const std::string &gzip) { + gzip_ = gzip; + setParameter(std::string("Gzip"), gzip); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getTLSCipherPolicy() const { + return tLSCipherPolicy_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setTLSCipherPolicy(const std::string &tLSCipherPolicy) { + tLSCipherPolicy_ = tLSCipherPolicy; + setParameter(std::string("TLSCipherPolicy"), tLSCipherPolicy); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getServerCertificateId() const { + return serverCertificateId_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setServerCertificateId(const std::string &serverCertificateId) { + serverCertificateId_ = serverCertificateId; + setParameter(std::string("ServerCertificateId"), serverCertificateId); +} + +int CreateLoadBalancerHTTPSListenerRequest::getIdleTimeout() const { + return idleTimeout_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_proto() const { + return xForwardedFor_proto_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_proto(const std::string &xForwardedFor_proto) { + xForwardedFor_proto_ = xForwardedFor_proto; + setParameter(std::string("XForwardedFor_proto"), xForwardedFor_proto); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_ClientCertSubjectDNAlias() const { + return xForwardedFor_ClientCertSubjectDNAlias_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_ClientCertSubjectDNAlias(const std::string &xForwardedFor_ClientCertSubjectDNAlias) { + xForwardedFor_ClientCertSubjectDNAlias_ = xForwardedFor_ClientCertSubjectDNAlias; + setParameter(std::string("XForwardedFor_ClientCertSubjectDNAlias"), xForwardedFor_ClientCertSubjectDNAlias); +} + +int CreateLoadBalancerHTTPSListenerRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + +std::string CreateLoadBalancerHTTPSListenerRequest::getXForwardedFor_ClientCertIssuerDN() const { + return xForwardedFor_ClientCertIssuerDN_; +} + +void CreateLoadBalancerHTTPSListenerRequest::setXForwardedFor_ClientCertIssuerDN(const std::string &xForwardedFor_ClientCertIssuerDN) { + xForwardedFor_ClientCertIssuerDN_ = xForwardedFor_ClientCertIssuerDN; + setParameter(std::string("XForwardedFor_ClientCertIssuerDN"), xForwardedFor_ClientCertIssuerDN); +} + diff --git a/slb/src/model/CreateLoadBalancerHTTPSListenerResult.cc b/slb/src/model/CreateLoadBalancerHTTPSListenerResult.cc new file mode 100644 index 000000000..f5b261c70 --- /dev/null +++ b/slb/src/model/CreateLoadBalancerHTTPSListenerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +CreateLoadBalancerHTTPSListenerResult::CreateLoadBalancerHTTPSListenerResult() : + ServiceResult() +{} + +CreateLoadBalancerHTTPSListenerResult::CreateLoadBalancerHTTPSListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateLoadBalancerHTTPSListenerResult::~CreateLoadBalancerHTTPSListenerResult() +{} + +void CreateLoadBalancerHTTPSListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/CreateLoadBalancerRequest.cc b/slb/src/model/CreateLoadBalancerRequest.cc index bcaa87ab6..874ee5d6d 100644 --- a/slb/src/model/CreateLoadBalancerRequest.cc +++ b/slb/src/model/CreateLoadBalancerRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::CreateLoadBalancerRequest; CreateLoadBalancerRequest::CreateLoadBalancerRequest() - : RpcServiceRequest("slb", "2013-02-21", "CreateLoadBalancer") { + : RpcServiceRequest("slb", "2014-05-15", "CreateLoadBalancer") { setMethod(HttpRequest::Method::Post); } @@ -34,31 +34,31 @@ void CreateLoadBalancerRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string CreateLoadBalancerRequest::getClientToken() const { - return clientToken_; +std::string CreateLoadBalancerRequest::getAddressIPVersion() const { + return addressIPVersion_; } -void CreateLoadBalancerRequest::setClientToken(const std::string &clientToken) { - clientToken_ = clientToken; - setParameter(std::string("ClientToken"), clientToken); +void CreateLoadBalancerRequest::setAddressIPVersion(const std::string &addressIPVersion) { + addressIPVersion_ = addressIPVersion; + setParameter(std::string("AddressIPVersion"), addressIPVersion); } -std::string CreateLoadBalancerRequest::getLoadBalancerMode() const { - return loadBalancerMode_; +std::string CreateLoadBalancerRequest::getMasterZoneId() const { + return masterZoneId_; } -void CreateLoadBalancerRequest::setLoadBalancerMode(const std::string &loadBalancerMode) { - loadBalancerMode_ = loadBalancerMode; - setParameter(std::string("LoadBalancerMode"), loadBalancerMode); +void CreateLoadBalancerRequest::setMasterZoneId(const std::string &masterZoneId) { + masterZoneId_ = masterZoneId; + setParameter(std::string("MasterZoneId"), masterZoneId); } -std::string CreateLoadBalancerRequest::getAccessKeyId() const { - return accessKeyId_; +std::string CreateLoadBalancerRequest::getResourceGroupId() const { + return resourceGroupId_; } -void CreateLoadBalancerRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void CreateLoadBalancerRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } std::string CreateLoadBalancerRequest::getLoadBalancerName() const { @@ -70,6 +70,164 @@ void CreateLoadBalancerRequest::setLoadBalancerName(const std::string &loadBalan setParameter(std::string("LoadBalancerName"), loadBalancerName); } +std::string CreateLoadBalancerRequest::getSlaveZoneId() const { + return slaveZoneId_; +} + +void CreateLoadBalancerRequest::setSlaveZoneId(const std::string &slaveZoneId) { + slaveZoneId_ = slaveZoneId; + setParameter(std::string("SlaveZoneId"), slaveZoneId); +} + +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); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string CreateLoadBalancerRequest::getLoadBalancerSpec() const { + return loadBalancerSpec_; +} + +void CreateLoadBalancerRequest::setLoadBalancerSpec(const std::string &loadBalancerSpec) { + loadBalancerSpec_ = loadBalancerSpec; + setParameter(std::string("LoadBalancerSpec"), loadBalancerSpec); +} + +int CreateLoadBalancerRequest::getAutoRenewPeriod() const { + return autoRenewPeriod_; +} + +void CreateLoadBalancerRequest::setAutoRenewPeriod(int autoRenewPeriod) { + autoRenewPeriod_ = autoRenewPeriod; + setParameter(std::string("AutoRenewPeriod"), std::to_string(autoRenewPeriod)); +} + +long CreateLoadBalancerRequest::getOwnerId() const { + return ownerId_; +} + +void CreateLoadBalancerRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateLoadBalancerRequest::getTags() const { + return tags_; +} + +void CreateLoadBalancerRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string CreateLoadBalancerRequest::getVSwitchId() const { + return vSwitchId_; +} + +void CreateLoadBalancerRequest::setVSwitchId(const std::string &vSwitchId) { + vSwitchId_ = vSwitchId; + setParameter(std::string("VSwitchId"), vSwitchId); +} + +std::string CreateLoadBalancerRequest::getEnableVpcVipFlow() const { + return enableVpcVipFlow_; +} + +void CreateLoadBalancerRequest::setEnableVpcVipFlow(const std::string &enableVpcVipFlow) { + enableVpcVipFlow_ = enableVpcVipFlow; + setParameter(std::string("EnableVpcVipFlow"), enableVpcVipFlow); +} + +bool CreateLoadBalancerRequest::getAutoRenew() const { + return autoRenew_; +} + +void CreateLoadBalancerRequest::setAutoRenew(bool autoRenew) { + autoRenew_ = autoRenew; + setParameter(std::string("AutoRenew"), autoRenew ? "true" : "false"); +} + +std::string CreateLoadBalancerRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void CreateLoadBalancerRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +std::string CreateLoadBalancerRequest::getPricingCycle() const { + return pricingCycle_; +} + +void CreateLoadBalancerRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); +} + +std::string CreateLoadBalancerRequest::getAccess_key_id() const { + return access_key_id_; +} + +void CreateLoadBalancerRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +std::string CreateLoadBalancerRequest::getModificationProtectionReason() const { + return modificationProtectionReason_; +} + +void CreateLoadBalancerRequest::setModificationProtectionReason(const std::string &modificationProtectionReason) { + modificationProtectionReason_ = modificationProtectionReason; + setParameter(std::string("ModificationProtectionReason"), modificationProtectionReason); +} + +bool CreateLoadBalancerRequest::getSupportPrivateLink() const { + return supportPrivateLink_; +} + +void CreateLoadBalancerRequest::setSupportPrivateLink(bool supportPrivateLink) { + supportPrivateLink_ = supportPrivateLink; + setParameter(std::string("SupportPrivateLink"), supportPrivateLink ? "true" : "false"); +} + +std::string CreateLoadBalancerRequest::getClientToken() const { + return clientToken_; +} + +void CreateLoadBalancerRequest::setClientToken(const std::string &clientToken) { + clientToken_ = clientToken; + setParameter(std::string("ClientToken"), clientToken); +} + +std::string CreateLoadBalancerRequest::getCloudType() const { + return cloudType_; +} + +void CreateLoadBalancerRequest::setCloudType(const std::string &cloudType) { + cloudType_ = cloudType; + setParameter(std::string("CloudType"), cloudType); +} + +int CreateLoadBalancerRequest::getDuration() const { + return duration_; +} + +void CreateLoadBalancerRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); +} + std::string CreateLoadBalancerRequest::getRegionId() const { return regionId_; } @@ -79,6 +237,42 @@ void CreateLoadBalancerRequest::setRegionId(const std::string ®ionId) { setParameter(std::string("RegionId"), regionId); } +std::string CreateLoadBalancerRequest::getAddressType() const { + return addressType_; +} + +void CreateLoadBalancerRequest::setAddressType(const std::string &addressType) { + addressType_ = addressType; + setParameter(std::string("AddressType"), addressType); +} + +std::string CreateLoadBalancerRequest::getInstanceChargeType() const { + return instanceChargeType_; +} + +void CreateLoadBalancerRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); +} + +std::string CreateLoadBalancerRequest::getDeleteProtection() const { + return deleteProtection_; +} + +void CreateLoadBalancerRequest::setDeleteProtection(const std::string &deleteProtection) { + deleteProtection_ = deleteProtection; + setParameter(std::string("DeleteProtection"), deleteProtection); +} + +bool CreateLoadBalancerRequest::getAutoPay() const { + return autoPay_; +} + +void CreateLoadBalancerRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); +} + std::string CreateLoadBalancerRequest::getAddress() const { return address_; } @@ -97,6 +291,15 @@ void CreateLoadBalancerRequest::setResourceOwnerAccount(const std::string &resou setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } +int CreateLoadBalancerRequest::getBandwidth() const { + return bandwidth_; +} + +void CreateLoadBalancerRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + std::string CreateLoadBalancerRequest::getOwnerAccount() const { return ownerAccount_; } @@ -106,21 +309,48 @@ void CreateLoadBalancerRequest::setOwnerAccount(const std::string &ownerAccount) setParameter(std::string("OwnerAccount"), ownerAccount); } -std::string CreateLoadBalancerRequest::getIsPublicAddress() const { - return isPublicAddress_; +std::string CreateLoadBalancerRequest::getModificationProtectionStatus() const { + return modificationProtectionStatus_; } -void CreateLoadBalancerRequest::setIsPublicAddress(const std::string &isPublicAddress) { - isPublicAddress_ = isPublicAddress; - setParameter(std::string("IsPublicAddress"), isPublicAddress); +void CreateLoadBalancerRequest::setModificationProtectionStatus(const std::string &modificationProtectionStatus) { + modificationProtectionStatus_ = modificationProtectionStatus; + setParameter(std::string("ModificationProtectionStatus"), modificationProtectionStatus); } -long CreateLoadBalancerRequest::getOwnerId() const { - return ownerId_; +std::string CreateLoadBalancerRequest::getInstanceListenerType() const { + return instanceListenerType_; } -void CreateLoadBalancerRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); +void CreateLoadBalancerRequest::setInstanceListenerType(const std::string &instanceListenerType) { + instanceListenerType_ = instanceListenerType; + setParameter(std::string("InstanceListenerType"), instanceListenerType); +} + +std::string CreateLoadBalancerRequest::getVpcId() const { + return vpcId_; +} + +void CreateLoadBalancerRequest::setVpcId(const std::string &vpcId) { + vpcId_ = vpcId; + setParameter(std::string("VpcId"), vpcId); +} + +std::string CreateLoadBalancerRequest::getPayType() const { + return payType_; +} + +void CreateLoadBalancerRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); +} + +int CreateLoadBalancerRequest::getRatio() const { + return ratio_; +} + +void CreateLoadBalancerRequest::setRatio(int ratio) { + ratio_ = ratio; + setParameter(std::string("Ratio"), std::to_string(ratio)); } diff --git a/slb/src/model/CreateLoadBalancerResult.cc b/slb/src/model/CreateLoadBalancerResult.cc index f1d26ac61..29954a5bb 100644 --- a/slb/src/model/CreateLoadBalancerResult.cc +++ b/slb/src/model/CreateLoadBalancerResult.cc @@ -39,12 +39,24 @@ void CreateLoadBalancerResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Address"].isNull()) - address_ = value["Address"].asString(); + if(!value["VpcId"].isNull()) + vpcId_ = value["VpcId"].asString(); + if(!value["AddressIPVersion"].isNull()) + addressIPVersion_ = value["AddressIPVersion"].asString(); + if(!value["VSwitchId"].isNull()) + vSwitchId_ = value["VSwitchId"].asString(); if(!value["LoadBalancerName"].isNull()) loadBalancerName_ = value["LoadBalancerName"].asString(); if(!value["LoadBalancerId"].isNull()) loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["Address"].isNull()) + address_ = value["Address"].asString(); + if(!value["NetworkType"].isNull()) + networkType_ = value["NetworkType"].asString(); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); } @@ -53,13 +65,43 @@ std::string CreateLoadBalancerResult::getLoadBalancerName()const return loadBalancerName_; } +std::string CreateLoadBalancerResult::getVpcId()const +{ + return vpcId_; +} + +std::string CreateLoadBalancerResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + std::string CreateLoadBalancerResult::getAddress()const { return address_; } +std::string CreateLoadBalancerResult::getNetworkType()const +{ + return networkType_; +} + +std::string CreateLoadBalancerResult::getAddressIPVersion()const +{ + return addressIPVersion_; +} + +std::string CreateLoadBalancerResult::getVSwitchId()const +{ + return vSwitchId_; +} + std::string CreateLoadBalancerResult::getLoadBalancerId()const { return loadBalancerId_; } +long CreateLoadBalancerResult::getOrderId()const +{ + return orderId_; +} + diff --git a/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc b/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc index 8f6237c2b..cc5703c4a 100644 --- a/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc +++ b/slb/src/model/CreateLoadBalancerTCPListenerRequest.cc @@ -19,21 +19,12 @@ using AlibabaCloud::Slb::Model::CreateLoadBalancerTCPListenerRequest; CreateLoadBalancerTCPListenerRequest::CreateLoadBalancerTCPListenerRequest() - : RpcServiceRequest("slb", "2013-02-21", "CreateLoadBalancerTCPListener") { + : RpcServiceRequest("slb", "2014-05-15", "CreateLoadBalancerTCPListener") { setMethod(HttpRequest::Method::Post); } CreateLoadBalancerTCPListenerRequest::~CreateLoadBalancerTCPListenerRequest() {} -std::string CreateLoadBalancerTCPListenerRequest::getAccess_key_id() const { - return access_key_id_; -} - -void CreateLoadBalancerTCPListenerRequest::setAccess_key_id(const std::string &access_key_id) { - access_key_id_ = access_key_id; - setParameter(std::string("access_key_id"), access_key_id); -} - long CreateLoadBalancerTCPListenerRequest::getResourceOwnerId() const { return resourceOwnerId_; } @@ -52,49 +43,40 @@ void CreateLoadBalancerTCPListenerRequest::setHealthCheckURI(const std::string & setParameter(std::string("HealthCheckURI"), healthCheckURI); } -int CreateLoadBalancerTCPListenerRequest::getUnhealthyThreshold() const { - return unhealthyThreshold_; +std::string CreateLoadBalancerTCPListenerRequest::getAclStatus() const { + return aclStatus_; } -void CreateLoadBalancerTCPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { - unhealthyThreshold_ = unhealthyThreshold; - setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +void CreateLoadBalancerTCPListenerRequest::setAclStatus(const std::string &aclStatus) { + aclStatus_ = aclStatus; + setParameter(std::string("AclStatus"), aclStatus); } -int CreateLoadBalancerTCPListenerRequest::getHealthyThreshold() const { - return healthyThreshold_; +bool CreateLoadBalancerTCPListenerRequest::getFullNatEnabled() const { + return fullNatEnabled_; } -void CreateLoadBalancerTCPListenerRequest::setHealthyThreshold(int healthyThreshold) { - healthyThreshold_ = healthyThreshold; - setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +void CreateLoadBalancerTCPListenerRequest::setFullNatEnabled(bool fullNatEnabled) { + fullNatEnabled_ = fullNatEnabled; + setParameter(std::string("FullNatEnabled"), fullNatEnabled ? "true" : "false"); } -std::string CreateLoadBalancerTCPListenerRequest::getAccessKeyId() const { - return accessKeyId_; +bool CreateLoadBalancerTCPListenerRequest::getHealthCheckTcpFastCloseEnabled() const { + return healthCheckTcpFastCloseEnabled_; } -void CreateLoadBalancerTCPListenerRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void CreateLoadBalancerTCPListenerRequest::setHealthCheckTcpFastCloseEnabled(bool healthCheckTcpFastCloseEnabled) { + healthCheckTcpFastCloseEnabled_ = healthCheckTcpFastCloseEnabled; + setParameter(std::string("HealthCheckTcpFastCloseEnabled"), healthCheckTcpFastCloseEnabled ? "true" : "false"); } -std::string CreateLoadBalancerTCPListenerRequest::getScheduler() const { - return scheduler_; +std::string CreateLoadBalancerTCPListenerRequest::getAclType() const { + return aclType_; } -void CreateLoadBalancerTCPListenerRequest::setScheduler(const std::string &scheduler) { - scheduler_ = scheduler; - setParameter(std::string("Scheduler"), scheduler); -} - -std::string CreateLoadBalancerTCPListenerRequest::getHealthCheck() const { - return healthCheck_; -} - -void CreateLoadBalancerTCPListenerRequest::setHealthCheck(const std::string &healthCheck) { - healthCheck_ = healthCheck; - setParameter(std::string("HealthCheck"), healthCheck); +void CreateLoadBalancerTCPListenerRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); } int CreateLoadBalancerTCPListenerRequest::getEstablishedTimeout() const { @@ -106,13 +88,13 @@ void CreateLoadBalancerTCPListenerRequest::setEstablishedTimeout(int established setParameter(std::string("EstablishedTimeout"), std::to_string(establishedTimeout)); } -int CreateLoadBalancerTCPListenerRequest::getMaxConnection() const { - return maxConnection_; +std::string CreateLoadBalancerTCPListenerRequest::getFailoverStrategy() const { + return failoverStrategy_; } -void CreateLoadBalancerTCPListenerRequest::setMaxConnection(int maxConnection) { - maxConnection_ = maxConnection; - setParameter(std::string("MaxConnection"), std::to_string(maxConnection)); +void CreateLoadBalancerTCPListenerRequest::setFailoverStrategy(const std::string &failoverStrategy) { + failoverStrategy_ = failoverStrategy; + setParameter(std::string("FailoverStrategy"), failoverStrategy); } int CreateLoadBalancerTCPListenerRequest::getPersistenceTimeout() const { @@ -124,6 +106,38 @@ void CreateLoadBalancerTCPListenerRequest::setPersistenceTimeout(int persistence setParameter(std::string("PersistenceTimeout"), std::to_string(persistenceTimeout)); } +std::string CreateLoadBalancerTCPListenerRequest::getVpcIds() const { + return vpcIds_; +} + +void CreateLoadBalancerTCPListenerRequest::setVpcIds(const std::string &vpcIds) { + vpcIds_ = vpcIds; + setParameter(std::string("VpcIds"), vpcIds); +} + +std::vector CreateLoadBalancerTCPListenerRequest::getTag() const { + return tag_; +} + +void CreateLoadBalancerTCPListenerRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +bool CreateLoadBalancerTCPListenerRequest::getMasterSlaveModeEnabled() const { + return masterSlaveModeEnabled_; +} + +void CreateLoadBalancerTCPListenerRequest::setMasterSlaveModeEnabled(bool masterSlaveModeEnabled) { + masterSlaveModeEnabled_ = masterSlaveModeEnabled; + setParameter(std::string("MasterSlaveModeEnabled"), masterSlaveModeEnabled ? "true" : "false"); +} + std::string CreateLoadBalancerTCPListenerRequest::getVServerGroupId() const { return vServerGroupId_; } @@ -133,58 +147,36 @@ void CreateLoadBalancerTCPListenerRequest::setVServerGroupId(const std::string & setParameter(std::string("VServerGroupId"), vServerGroupId); } -int CreateLoadBalancerTCPListenerRequest::getConnectTimeout() const { - return connectTimeout_; +std::string CreateLoadBalancerTCPListenerRequest::getAclId() const { + return aclId_; } -void CreateLoadBalancerTCPListenerRequest::setConnectTimeout(int connectTimeout) { - connectTimeout_ = connectTimeout; - setParameter(std::string("ConnectTimeout"), std::to_string(connectTimeout)); +void CreateLoadBalancerTCPListenerRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); } -int CreateLoadBalancerTCPListenerRequest::getListenerPort() const { - return listenerPort_; +std::vector CreateLoadBalancerTCPListenerRequest::getPortRange() const { + return portRange_; } -void CreateLoadBalancerTCPListenerRequest::setListenerPort(int listenerPort) { - listenerPort_ = listenerPort; - setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +void CreateLoadBalancerTCPListenerRequest::setPortRange(const std::vector &portRange) { + portRange_ = portRange; + for(int dep1 = 0; dep1 != portRange.size(); dep1++) { + auto portRangeObj = portRange.at(dep1); + std::string portRangeObjStr = std::string("PortRange") + "." + std::to_string(dep1 + 1); + setParameter(portRangeObjStr + ".StartPort", std::to_string(portRangeObj.startPort)); + setParameter(portRangeObjStr + ".EndPort", std::to_string(portRangeObj.endPort)); + } } -std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckType() const { - return healthCheckType_; +std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckMethod() const { + return healthCheckMethod_; } -void CreateLoadBalancerTCPListenerRequest::setHealthCheckType(const std::string &healthCheckType) { - healthCheckType_ = healthCheckType; - setParameter(std::string("HealthCheckType"), healthCheckType); -} - -std::string CreateLoadBalancerTCPListenerRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void CreateLoadBalancerTCPListenerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -int CreateLoadBalancerTCPListenerRequest::getBandwidth() const { - return bandwidth_; -} - -void CreateLoadBalancerTCPListenerRequest::setBandwidth(int bandwidth) { - bandwidth_ = bandwidth; - setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); -} - -int CreateLoadBalancerTCPListenerRequest::getConnectPort() const { - return connectPort_; -} - -void CreateLoadBalancerTCPListenerRequest::setConnectPort(int connectPort) { - connectPort_ = connectPort; - setParameter(std::string("ConnectPort"), std::to_string(connectPort)); +void CreateLoadBalancerTCPListenerRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); } std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckDomain() const { @@ -196,15 +188,6 @@ void CreateLoadBalancerTCPListenerRequest::setHealthCheckDomain(const std::strin setParameter(std::string("HealthCheckDomain"), healthCheckDomain); } -std::string CreateLoadBalancerTCPListenerRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void CreateLoadBalancerTCPListenerRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - long CreateLoadBalancerTCPListenerRequest::getOwnerId() const { return ownerId_; } @@ -214,15 +197,6 @@ void CreateLoadBalancerTCPListenerRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string CreateLoadBalancerTCPListenerRequest::getListenerStatus() const { - return listenerStatus_; -} - -void CreateLoadBalancerTCPListenerRequest::setListenerStatus(const std::string &listenerStatus) { - listenerStatus_ = listenerStatus; - setParameter(std::string("ListenerStatus"), listenerStatus); -} - std::string CreateLoadBalancerTCPListenerRequest::getTags() const { return tags_; } @@ -259,13 +233,202 @@ void CreateLoadBalancerTCPListenerRequest::setBackendServerPort(int backendServe setParameter(std::string("BackendServerPort"), std::to_string(backendServerPort)); } -int CreateLoadBalancerTCPListenerRequest::getInterval() const { - return interval_; +int CreateLoadBalancerTCPListenerRequest::getHealthCheckInterval() const { + return healthCheckInterval_; } -void CreateLoadBalancerTCPListenerRequest::setInterval(int interval) { - interval_ = interval; - setParameter(std::string("Interval"), std::to_string(interval)); +void CreateLoadBalancerTCPListenerRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("healthCheckInterval"), std::to_string(healthCheckInterval)); +} + +int CreateLoadBalancerTCPListenerRequest::getFailoverThreshold() const { + return failoverThreshold_; +} + +void CreateLoadBalancerTCPListenerRequest::setFailoverThreshold(int failoverThreshold) { + failoverThreshold_ = failoverThreshold; + setParameter(std::string("FailoverThreshold"), std::to_string(failoverThreshold)); +} + +bool CreateLoadBalancerTCPListenerRequest::getProxyProtocolV2Enabled() const { + return proxyProtocolV2Enabled_; +} + +void CreateLoadBalancerTCPListenerRequest::setProxyProtocolV2Enabled(bool proxyProtocolV2Enabled) { + proxyProtocolV2Enabled_ = proxyProtocolV2Enabled; + setParameter(std::string("ProxyProtocolV2Enabled"), proxyProtocolV2Enabled ? "true" : "false"); +} + +std::string CreateLoadBalancerTCPListenerRequest::getConnectionDrain() const { + return connectionDrain_; +} + +void CreateLoadBalancerTCPListenerRequest::setConnectionDrain(const std::string &connectionDrain) { + connectionDrain_ = connectionDrain; + setParameter(std::string("ConnectionDrain"), connectionDrain); +} + +std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckSwitch() const { + return healthCheckSwitch_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckSwitch(const std::string &healthCheckSwitch) { + healthCheckSwitch_ = healthCheckSwitch; + setParameter(std::string("HealthCheckSwitch"), healthCheckSwitch); +} + +std::string CreateLoadBalancerTCPListenerRequest::getAccess_key_id() const { + return access_key_id_; +} + +void CreateLoadBalancerTCPListenerRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +int CreateLoadBalancerTCPListenerRequest::getHealthCheckConnectTimeout() const { + return healthCheckConnectTimeout_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { + healthCheckConnectTimeout_ = healthCheckConnectTimeout; + setParameter(std::string("HealthCheckConnectTimeout"), std::to_string(healthCheckConnectTimeout)); +} + +std::string CreateLoadBalancerTCPListenerRequest::getSlaveServerGroupId() const { + return slaveServerGroupId_; +} + +void CreateLoadBalancerTCPListenerRequest::setSlaveServerGroupId(const std::string &slaveServerGroupId) { + slaveServerGroupId_ = slaveServerGroupId; + setParameter(std::string("SlaveServerGroupId"), slaveServerGroupId); +} + +std::string CreateLoadBalancerTCPListenerRequest::getDescription() const { + return description_; +} + +void CreateLoadBalancerTCPListenerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int CreateLoadBalancerTCPListenerRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void CreateLoadBalancerTCPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int CreateLoadBalancerTCPListenerRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string CreateLoadBalancerTCPListenerRequest::getScheduler() const { + return scheduler_; +} + +void CreateLoadBalancerTCPListenerRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +int CreateLoadBalancerTCPListenerRequest::getMaxConnection() const { + return maxConnection_; +} + +void CreateLoadBalancerTCPListenerRequest::setMaxConnection(int maxConnection) { + maxConnection_ = maxConnection; + setParameter(std::string("MaxConnection"), std::to_string(maxConnection)); +} + +std::string CreateLoadBalancerTCPListenerRequest::getRegionId() const { + return regionId_; +} + +void CreateLoadBalancerTCPListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateLoadBalancerTCPListenerRequest::getMasterServerGroupId() const { + return masterServerGroupId_; +} + +void CreateLoadBalancerTCPListenerRequest::setMasterServerGroupId(const std::string &masterServerGroupId) { + masterServerGroupId_ = masterServerGroupId; + setParameter(std::string("MasterServerGroupId"), masterServerGroupId); +} + +int CreateLoadBalancerTCPListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void CreateLoadBalancerTCPListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckType() const { + return healthCheckType_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckType(const std::string &healthCheckType) { + healthCheckType_ = healthCheckType; + setParameter(std::string("HealthCheckType"), healthCheckType); +} + +std::string CreateLoadBalancerTCPListenerRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateLoadBalancerTCPListenerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int CreateLoadBalancerTCPListenerRequest::getBandwidth() const { + return bandwidth_; +} + +void CreateLoadBalancerTCPListenerRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string CreateLoadBalancerTCPListenerRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateLoadBalancerTCPListenerRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +int CreateLoadBalancerTCPListenerRequest::getConnectionDrainTimeout() const { + return connectionDrainTimeout_; +} + +void CreateLoadBalancerTCPListenerRequest::setConnectionDrainTimeout(int connectionDrainTimeout) { + connectionDrainTimeout_ = connectionDrainTimeout; + setParameter(std::string("ConnectionDrainTimeout"), std::to_string(connectionDrainTimeout)); +} + +int CreateLoadBalancerTCPListenerRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void CreateLoadBalancerTCPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); } std::string CreateLoadBalancerTCPListenerRequest::getHealthCheckHttpCode() const { diff --git a/slb/src/model/CreateLoadBalancerUDPListenerRequest.cc b/slb/src/model/CreateLoadBalancerUDPListenerRequest.cc new file mode 100644 index 000000000..31c688b5c --- /dev/null +++ b/slb/src/model/CreateLoadBalancerUDPListenerRequest.cc @@ -0,0 +1,451 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::CreateLoadBalancerUDPListenerRequest; + +CreateLoadBalancerUDPListenerRequest::CreateLoadBalancerUDPListenerRequest() + : RpcServiceRequest("slb", "2014-05-15", "CreateLoadBalancerUDPListener") { + setMethod(HttpRequest::Method::Post); +} + +CreateLoadBalancerUDPListenerRequest::~CreateLoadBalancerUDPListenerRequest() {} + +long CreateLoadBalancerUDPListenerRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateLoadBalancerUDPListenerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string CreateLoadBalancerUDPListenerRequest::getAclStatus() const { + return aclStatus_; +} + +void CreateLoadBalancerUDPListenerRequest::setAclStatus(const std::string &aclStatus) { + aclStatus_ = aclStatus; + setParameter(std::string("AclStatus"), aclStatus); +} + +bool CreateLoadBalancerUDPListenerRequest::getFullNatEnabled() const { + return fullNatEnabled_; +} + +void CreateLoadBalancerUDPListenerRequest::setFullNatEnabled(bool fullNatEnabled) { + fullNatEnabled_ = fullNatEnabled; + setParameter(std::string("FullNatEnabled"), fullNatEnabled ? "true" : "false"); +} + +std::string CreateLoadBalancerUDPListenerRequest::getAclType() const { + return aclType_; +} + +void CreateLoadBalancerUDPListenerRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); +} + +std::string CreateLoadBalancerUDPListenerRequest::getFailoverStrategy() const { + return failoverStrategy_; +} + +void CreateLoadBalancerUDPListenerRequest::setFailoverStrategy(const std::string &failoverStrategy) { + failoverStrategy_ = failoverStrategy; + setParameter(std::string("FailoverStrategy"), failoverStrategy); +} + +int CreateLoadBalancerUDPListenerRequest::getPersistenceTimeout() const { + return persistenceTimeout_; +} + +void CreateLoadBalancerUDPListenerRequest::setPersistenceTimeout(int persistenceTimeout) { + persistenceTimeout_ = persistenceTimeout; + setParameter(std::string("PersistenceTimeout"), std::to_string(persistenceTimeout)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getVpcIds() const { + return vpcIds_; +} + +void CreateLoadBalancerUDPListenerRequest::setVpcIds(const std::string &vpcIds) { + vpcIds_ = vpcIds; + setParameter(std::string("VpcIds"), vpcIds); +} + +std::vector CreateLoadBalancerUDPListenerRequest::getTag() const { + return tag_; +} + +void CreateLoadBalancerUDPListenerRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +bool CreateLoadBalancerUDPListenerRequest::getMasterSlaveModeEnabled() const { + return masterSlaveModeEnabled_; +} + +void CreateLoadBalancerUDPListenerRequest::setMasterSlaveModeEnabled(bool masterSlaveModeEnabled) { + masterSlaveModeEnabled_ = masterSlaveModeEnabled; + setParameter(std::string("MasterSlaveModeEnabled"), masterSlaveModeEnabled ? "true" : "false"); +} + +std::string CreateLoadBalancerUDPListenerRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void CreateLoadBalancerUDPListenerRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string CreateLoadBalancerUDPListenerRequest::getAclId() const { + return aclId_; +} + +void CreateLoadBalancerUDPListenerRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +std::vector CreateLoadBalancerUDPListenerRequest::getPortRange() const { + return portRange_; +} + +void CreateLoadBalancerUDPListenerRequest::setPortRange(const std::vector &portRange) { + portRange_ = portRange; + for(int dep1 = 0; dep1 != portRange.size(); dep1++) { + auto portRangeObj = portRange.at(dep1); + std::string portRangeObjStr = std::string("PortRange") + "." + std::to_string(dep1 + 1); + setParameter(portRangeObjStr + ".StartPort", std::to_string(portRangeObj.startPort)); + setParameter(portRangeObjStr + ".EndPort", std::to_string(portRangeObj.endPort)); + } +} + +std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +long CreateLoadBalancerUDPListenerRequest::getOwnerId() const { + return ownerId_; +} + +void CreateLoadBalancerUDPListenerRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getTags() const { + return tags_; +} + +void CreateLoadBalancerUDPListenerRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string CreateLoadBalancerUDPListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateLoadBalancerUDPListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string CreateLoadBalancerUDPListenerRequest::getMasterSlaveServerGroupId() const { + return masterSlaveServerGroupId_; +} + +void CreateLoadBalancerUDPListenerRequest::setMasterSlaveServerGroupId(const std::string &masterSlaveServerGroupId) { + masterSlaveServerGroupId_ = masterSlaveServerGroupId; + setParameter(std::string("MasterSlaveServerGroupId"), masterSlaveServerGroupId); +} + +std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckReq() const { + return healthCheckReq_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckReq(const std::string &healthCheckReq) { + healthCheckReq_ = healthCheckReq; + setParameter(std::string("healthCheckReq"), healthCheckReq); +} + +int CreateLoadBalancerUDPListenerRequest::getBackendServerPort() const { + return backendServerPort_; +} + +void CreateLoadBalancerUDPListenerRequest::setBackendServerPort(int backendServerPort) { + backendServerPort_ = backendServerPort; + setParameter(std::string("BackendServerPort"), std::to_string(backendServerPort)); +} + +int CreateLoadBalancerUDPListenerRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("healthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckExp() const { + return healthCheckExp_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckExp(const std::string &healthCheckExp) { + healthCheckExp_ = healthCheckExp; + setParameter(std::string("healthCheckExp"), healthCheckExp); +} + +int CreateLoadBalancerUDPListenerRequest::getFailoverThreshold() const { + return failoverThreshold_; +} + +void CreateLoadBalancerUDPListenerRequest::setFailoverThreshold(int failoverThreshold) { + failoverThreshold_ = failoverThreshold; + setParameter(std::string("FailoverThreshold"), std::to_string(failoverThreshold)); +} + +bool CreateLoadBalancerUDPListenerRequest::getProxyProtocolV2Enabled() const { + return proxyProtocolV2Enabled_; +} + +void CreateLoadBalancerUDPListenerRequest::setProxyProtocolV2Enabled(bool proxyProtocolV2Enabled) { + proxyProtocolV2Enabled_ = proxyProtocolV2Enabled; + setParameter(std::string("ProxyProtocolV2Enabled"), proxyProtocolV2Enabled ? "true" : "false"); +} + +std::string CreateLoadBalancerUDPListenerRequest::getConnectionDrain() const { + return connectionDrain_; +} + +void CreateLoadBalancerUDPListenerRequest::setConnectionDrain(const std::string &connectionDrain) { + connectionDrain_ = connectionDrain; + setParameter(std::string("ConnectionDrain"), connectionDrain); +} + +std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckSwitch() const { + return healthCheckSwitch_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckSwitch(const std::string &healthCheckSwitch) { + healthCheckSwitch_ = healthCheckSwitch; + setParameter(std::string("HealthCheckSwitch"), healthCheckSwitch); +} + +std::string CreateLoadBalancerUDPListenerRequest::getAccess_key_id() const { + return access_key_id_; +} + +void CreateLoadBalancerUDPListenerRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +int CreateLoadBalancerUDPListenerRequest::getHealthCheckConnectTimeout() const { + return healthCheckConnectTimeout_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { + healthCheckConnectTimeout_ = healthCheckConnectTimeout; + setParameter(std::string("HealthCheckConnectTimeout"), std::to_string(healthCheckConnectTimeout)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getSlaveServerGroupId() const { + return slaveServerGroupId_; +} + +void CreateLoadBalancerUDPListenerRequest::setSlaveServerGroupId(const std::string &slaveServerGroupId) { + slaveServerGroupId_ = slaveServerGroupId; + setParameter(std::string("SlaveServerGroupId"), slaveServerGroupId); +} + +std::string CreateLoadBalancerUDPListenerRequest::getQuicVersion() const { + return quicVersion_; +} + +void CreateLoadBalancerUDPListenerRequest::setQuicVersion(const std::string &quicVersion) { + quicVersion_ = quicVersion; + setParameter(std::string("QuicVersion"), quicVersion); +} + +std::string CreateLoadBalancerUDPListenerRequest::getDescription() const { + return description_; +} + +void CreateLoadBalancerUDPListenerRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int CreateLoadBalancerUDPListenerRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void CreateLoadBalancerUDPListenerRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int CreateLoadBalancerUDPListenerRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getScheduler() const { + return scheduler_; +} + +void CreateLoadBalancerUDPListenerRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +int CreateLoadBalancerUDPListenerRequest::getMaxConnection() const { + return maxConnection_; +} + +void CreateLoadBalancerUDPListenerRequest::setMaxConnection(int maxConnection) { + maxConnection_ = maxConnection; + setParameter(std::string("MaxConnection"), std::to_string(maxConnection)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getRegionId() const { + return regionId_; +} + +void CreateLoadBalancerUDPListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateLoadBalancerUDPListenerRequest::getMasterServerGroupId() const { + return masterServerGroupId_; +} + +void CreateLoadBalancerUDPListenerRequest::setMasterServerGroupId(const std::string &masterServerGroupId) { + masterServerGroupId_ = masterServerGroupId; + setParameter(std::string("MasterServerGroupId"), masterServerGroupId); +} + +int CreateLoadBalancerUDPListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void CreateLoadBalancerUDPListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckType() const { + return healthCheckType_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckType(const std::string &healthCheckType) { + healthCheckType_ = healthCheckType; + setParameter(std::string("HealthCheckType"), healthCheckType); +} + +std::string CreateLoadBalancerUDPListenerRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateLoadBalancerUDPListenerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int CreateLoadBalancerUDPListenerRequest::getBandwidth() const { + return bandwidth_; +} + +void CreateLoadBalancerUDPListenerRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateLoadBalancerUDPListenerRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +int CreateLoadBalancerUDPListenerRequest::getConnectionDrainTimeout() const { + return connectionDrainTimeout_; +} + +void CreateLoadBalancerUDPListenerRequest::setConnectionDrainTimeout(int connectionDrainTimeout) { + connectionDrainTimeout_ = connectionDrainTimeout; + setParameter(std::string("ConnectionDrainTimeout"), std::to_string(connectionDrainTimeout)); +} + +int CreateLoadBalancerUDPListenerRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + +std::string CreateLoadBalancerUDPListenerRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; +} + +void CreateLoadBalancerUDPListenerRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + diff --git a/slb/src/model/SetLoadBalancerListenerStatusResult.cc b/slb/src/model/CreateLoadBalancerUDPListenerResult.cc similarity index 70% rename from slb/src/model/SetLoadBalancerListenerStatusResult.cc rename to slb/src/model/CreateLoadBalancerUDPListenerResult.cc index 8d5c0287e..667fcb622 100644 --- a/slb/src/model/SetLoadBalancerListenerStatusResult.cc +++ b/slb/src/model/CreateLoadBalancerUDPListenerResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Slb; using namespace AlibabaCloud::Slb::Model; -SetLoadBalancerListenerStatusResult::SetLoadBalancerListenerStatusResult() : +CreateLoadBalancerUDPListenerResult::CreateLoadBalancerUDPListenerResult() : ServiceResult() {} -SetLoadBalancerListenerStatusResult::SetLoadBalancerListenerStatusResult(const std::string &payload) : +CreateLoadBalancerUDPListenerResult::CreateLoadBalancerUDPListenerResult(const std::string &payload) : ServiceResult() { parse(payload); } -SetLoadBalancerListenerStatusResult::~SetLoadBalancerListenerStatusResult() +CreateLoadBalancerUDPListenerResult::~CreateLoadBalancerUDPListenerResult() {} -void SetLoadBalancerListenerStatusResult::parse(const std::string &payload) +void CreateLoadBalancerUDPListenerResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; diff --git a/slb/src/model/CreateMasterSlaveServerGroupRequest.cc b/slb/src/model/CreateMasterSlaveServerGroupRequest.cc new file mode 100644 index 000000000..ec7e8fcde --- /dev/null +++ b/slb/src/model/CreateMasterSlaveServerGroupRequest.cc @@ -0,0 +1,131 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::CreateMasterSlaveServerGroupRequest; + +CreateMasterSlaveServerGroupRequest::CreateMasterSlaveServerGroupRequest() + : RpcServiceRequest("slb", "2014-05-15", "CreateMasterSlaveServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateMasterSlaveServerGroupRequest::~CreateMasterSlaveServerGroupRequest() {} + +std::string CreateMasterSlaveServerGroupRequest::getAccess_key_id() const { + return access_key_id_; +} + +void CreateMasterSlaveServerGroupRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long CreateMasterSlaveServerGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateMasterSlaveServerGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateMasterSlaveServerGroupRequest::getMasterSlaveBackendServers() const { + return masterSlaveBackendServers_; +} + +void CreateMasterSlaveServerGroupRequest::setMasterSlaveBackendServers(const std::string &masterSlaveBackendServers) { + masterSlaveBackendServers_ = masterSlaveBackendServers; + setParameter(std::string("MasterSlaveBackendServers"), masterSlaveBackendServers); +} + +std::string CreateMasterSlaveServerGroupRequest::getRegionId() const { + return regionId_; +} + +void CreateMasterSlaveServerGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector CreateMasterSlaveServerGroupRequest::getTag() const { + return tag_; +} + +void CreateMasterSlaveServerGroupRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string CreateMasterSlaveServerGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateMasterSlaveServerGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateMasterSlaveServerGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateMasterSlaveServerGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string CreateMasterSlaveServerGroupRequest::getMasterSlaveServerGroupName() const { + return masterSlaveServerGroupName_; +} + +void CreateMasterSlaveServerGroupRequest::setMasterSlaveServerGroupName(const std::string &masterSlaveServerGroupName) { + masterSlaveServerGroupName_ = masterSlaveServerGroupName; + setParameter(std::string("MasterSlaveServerGroupName"), masterSlaveServerGroupName); +} + +long CreateMasterSlaveServerGroupRequest::getOwnerId() const { + return ownerId_; +} + +void CreateMasterSlaveServerGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateMasterSlaveServerGroupRequest::getTags() const { + return tags_; +} + +void CreateMasterSlaveServerGroupRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string CreateMasterSlaveServerGroupRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateMasterSlaveServerGroupRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/CreateMasterSlaveServerGroupResult.cc b/slb/src/model/CreateMasterSlaveServerGroupResult.cc new file mode 100644 index 000000000..d8df69f7f --- /dev/null +++ b/slb/src/model/CreateMasterSlaveServerGroupResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +CreateMasterSlaveServerGroupResult::CreateMasterSlaveServerGroupResult() : + ServiceResult() +{} + +CreateMasterSlaveServerGroupResult::CreateMasterSlaveServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMasterSlaveServerGroupResult::~CreateMasterSlaveServerGroupResult() +{} + +void CreateMasterSlaveServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMasterSlaveBackendServersNode = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; + for (auto valueMasterSlaveBackendServersMasterSlaveBackendServer : allMasterSlaveBackendServersNode) + { + MasterSlaveBackendServer masterSlaveBackendServersObject; + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["VpcId"].isNull()) + masterSlaveBackendServersObject.vpcId = valueMasterSlaveBackendServersMasterSlaveBackendServer["VpcId"].asString(); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["Type"].isNull()) + masterSlaveBackendServersObject.type = valueMasterSlaveBackendServersMasterSlaveBackendServer["Type"].asString(); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["Weight"].isNull()) + masterSlaveBackendServersObject.weight = std::stoi(valueMasterSlaveBackendServersMasterSlaveBackendServer["Weight"].asString()); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["Description"].isNull()) + masterSlaveBackendServersObject.description = valueMasterSlaveBackendServersMasterSlaveBackendServer["Description"].asString(); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerIp"].isNull()) + masterSlaveBackendServersObject.serverIp = valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerIp"].asString(); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["Port"].isNull()) + masterSlaveBackendServersObject.port = std::stoi(valueMasterSlaveBackendServersMasterSlaveBackendServer["Port"].asString()); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerId"].isNull()) + masterSlaveBackendServersObject.serverId = valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerId"].asString(); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerType"].isNull()) + masterSlaveBackendServersObject.serverType = valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerType"].asString(); + masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); + } + if(!value["MasterSlaveServerGroupId"].isNull()) + masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); + +} + +std::string CreateMasterSlaveServerGroupResult::getMasterSlaveServerGroupId()const +{ + return masterSlaveServerGroupId_; +} + +std::vector CreateMasterSlaveServerGroupResult::getMasterSlaveBackendServers()const +{ + return masterSlaveBackendServers_; +} + diff --git a/slb/src/model/CreateRulesRequest.cc b/slb/src/model/CreateRulesRequest.cc new file mode 100644 index 000000000..467a10fcd --- /dev/null +++ b/slb/src/model/CreateRulesRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::CreateRulesRequest; + +CreateRulesRequest::CreateRulesRequest() + : RpcServiceRequest("slb", "2014-05-15", "CreateRules") { + setMethod(HttpRequest::Method::Post); +} + +CreateRulesRequest::~CreateRulesRequest() {} + +std::string CreateRulesRequest::getAccess_key_id() const { + return access_key_id_; +} + +void CreateRulesRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long CreateRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateRulesRequest::getRegionId() const { + return regionId_; +} + +void CreateRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string CreateRulesRequest::getRuleList() const { + return ruleList_; +} + +void CreateRulesRequest::setRuleList(const std::string &ruleList) { + ruleList_ = ruleList; + setParameter(std::string("RuleList"), ruleList); +} + +int CreateRulesRequest::getListenerPort() const { + return listenerPort_; +} + +void CreateRulesRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string CreateRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateRulesRequest::getOwnerId() const { + return ownerId_; +} + +void CreateRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateRulesRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void CreateRulesRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::string CreateRulesRequest::getTags() const { + return tags_; +} + +void CreateRulesRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string CreateRulesRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateRulesRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/CreateRulesResult.cc b/slb/src/model/CreateRulesResult.cc new file mode 100644 index 000000000..144f13d86 --- /dev/null +++ b/slb/src/model/CreateRulesResult.cc @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +CreateRulesResult::CreateRulesResult() : + ServiceResult() +{} + +CreateRulesResult::CreateRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateRulesResult::~CreateRulesResult() +{} + +void CreateRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRulesNode = value["Rules"]["Rule"]; + for (auto valueRulesRule : allRulesNode) + { + Rule rulesObject; + if(!valueRulesRule["RuleName"].isNull()) + rulesObject.ruleName = valueRulesRule["RuleName"].asString(); + if(!valueRulesRule["RuleId"].isNull()) + rulesObject.ruleId = valueRulesRule["RuleId"].asString(); + rules_.push_back(rulesObject); + } + +} + +std::vector CreateRulesResult::getRules()const +{ + return rules_; +} + diff --git a/slb/src/model/CreateTLSCipherPolicyRequest.cc b/slb/src/model/CreateTLSCipherPolicyRequest.cc new file mode 100644 index 000000000..fc29edffa --- /dev/null +++ b/slb/src/model/CreateTLSCipherPolicyRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::CreateTLSCipherPolicyRequest; + +CreateTLSCipherPolicyRequest::CreateTLSCipherPolicyRequest() + : RpcServiceRequest("slb", "2014-05-15", "CreateTLSCipherPolicy") { + setMethod(HttpRequest::Method::Post); +} + +CreateTLSCipherPolicyRequest::~CreateTLSCipherPolicyRequest() {} + +std::string CreateTLSCipherPolicyRequest::getAccess_key_id() const { + return access_key_id_; +} + +void CreateTLSCipherPolicyRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long CreateTLSCipherPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateTLSCipherPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateTLSCipherPolicyRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateTLSCipherPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string CreateTLSCipherPolicyRequest::getRegionId() const { + return regionId_; +} + +void CreateTLSCipherPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector CreateTLSCipherPolicyRequest::getCiphers() const { + return ciphers_; +} + +void CreateTLSCipherPolicyRequest::setCiphers(const std::vector &ciphers) { + ciphers_ = ciphers; +} + +std::vector CreateTLSCipherPolicyRequest::getTLSVersions() const { + return tLSVersions_; +} + +void CreateTLSCipherPolicyRequest::setTLSVersions(const std::vector &tLSVersions) { + tLSVersions_ = tLSVersions; +} + +std::string CreateTLSCipherPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateTLSCipherPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateTLSCipherPolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateTLSCipherPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateTLSCipherPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void CreateTLSCipherPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateTLSCipherPolicyRequest::getName() const { + return name_; +} + +void CreateTLSCipherPolicyRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/slb/src/model/CreateTLSCipherPolicyResult.cc b/slb/src/model/CreateTLSCipherPolicyResult.cc new file mode 100644 index 000000000..c6b4c67f7 --- /dev/null +++ b/slb/src/model/CreateTLSCipherPolicyResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +CreateTLSCipherPolicyResult::CreateTLSCipherPolicyResult() : + ServiceResult() +{} + +CreateTLSCipherPolicyResult::CreateTLSCipherPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateTLSCipherPolicyResult::~CreateTLSCipherPolicyResult() +{} + +void CreateTLSCipherPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TLSCipherPolicyId"].isNull()) + tLSCipherPolicyId_ = value["TLSCipherPolicyId"].asString(); + +} + +std::string CreateTLSCipherPolicyResult::getTLSCipherPolicyId()const +{ + return tLSCipherPolicyId_; +} + diff --git a/slb/src/model/CreateVServerGroupRequest.cc b/slb/src/model/CreateVServerGroupRequest.cc new file mode 100644 index 000000000..31b1b66fe --- /dev/null +++ b/slb/src/model/CreateVServerGroupRequest.cc @@ -0,0 +1,131 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::CreateVServerGroupRequest; + +CreateVServerGroupRequest::CreateVServerGroupRequest() + : RpcServiceRequest("slb", "2014-05-15", "CreateVServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +CreateVServerGroupRequest::~CreateVServerGroupRequest() {} + +std::string CreateVServerGroupRequest::getAccess_key_id() const { + return access_key_id_; +} + +void CreateVServerGroupRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long CreateVServerGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void CreateVServerGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string CreateVServerGroupRequest::getBackendServers() const { + return backendServers_; +} + +void CreateVServerGroupRequest::setBackendServers(const std::string &backendServers) { + backendServers_ = backendServers; + setParameter(std::string("BackendServers"), backendServers); +} + +std::string CreateVServerGroupRequest::getRegionId() const { + return regionId_; +} + +void CreateVServerGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector CreateVServerGroupRequest::getTag() const { + return tag_; +} + +void CreateVServerGroupRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string CreateVServerGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void CreateVServerGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string CreateVServerGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void CreateVServerGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long CreateVServerGroupRequest::getOwnerId() const { + return ownerId_; +} + +void CreateVServerGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string CreateVServerGroupRequest::getTags() const { + return tags_; +} + +void CreateVServerGroupRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string CreateVServerGroupRequest::getVServerGroupName() const { + return vServerGroupName_; +} + +void CreateVServerGroupRequest::setVServerGroupName(const std::string &vServerGroupName) { + vServerGroupName_ = vServerGroupName; + setParameter(std::string("VServerGroupName"), vServerGroupName); +} + +std::string CreateVServerGroupRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void CreateVServerGroupRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/CreateVServerGroupResult.cc b/slb/src/model/CreateVServerGroupResult.cc new file mode 100644 index 000000000..e46581584 --- /dev/null +++ b/slb/src/model/CreateVServerGroupResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +CreateVServerGroupResult::CreateVServerGroupResult() : + ServiceResult() +{} + +CreateVServerGroupResult::CreateVServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateVServerGroupResult::~CreateVServerGroupResult() +{} + +void CreateVServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["BackendServer"]; + for (auto valueBackendServersBackendServer : allBackendServersNode) + { + BackendServer backendServersObject; + if(!valueBackendServersBackendServer["VpcId"].isNull()) + backendServersObject.vpcId = valueBackendServersBackendServer["VpcId"].asString(); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["Weight"].isNull()) + backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString()); + if(!valueBackendServersBackendServer["Description"].isNull()) + backendServersObject.description = valueBackendServersBackendServer["Description"].asString(); + if(!valueBackendServersBackendServer["ServerRegionId"].isNull()) + backendServersObject.serverRegionId = valueBackendServersBackendServer["ServerRegionId"].asString(); + if(!valueBackendServersBackendServer["ServerIp"].isNull()) + backendServersObject.serverIp = valueBackendServersBackendServer["ServerIp"].asString(); + if(!valueBackendServersBackendServer["Port"].isNull()) + backendServersObject.port = std::stoi(valueBackendServersBackendServer["Port"].asString()); + if(!valueBackendServersBackendServer["VbrId"].isNull()) + backendServersObject.vbrId = valueBackendServersBackendServer["VbrId"].asString(); + if(!valueBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + +} + +std::string CreateVServerGroupResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::vector CreateVServerGroupResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/DeleteAccessControlListRequest.cc b/slb/src/model/DeleteAccessControlListRequest.cc new file mode 100644 index 000000000..f704c9c4e --- /dev/null +++ b/slb/src/model/DeleteAccessControlListRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DeleteAccessControlListRequest; + +DeleteAccessControlListRequest::DeleteAccessControlListRequest() + : RpcServiceRequest("slb", "2014-05-15", "DeleteAccessControlList") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAccessControlListRequest::~DeleteAccessControlListRequest() {} + +std::string DeleteAccessControlListRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DeleteAccessControlListRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DeleteAccessControlListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteAccessControlListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteAccessControlListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteAccessControlListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteAccessControlListRequest::getRegionId() const { + return regionId_; +} + +void DeleteAccessControlListRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteAccessControlListRequest::getAclId() const { + return aclId_; +} + +void DeleteAccessControlListRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +std::string DeleteAccessControlListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteAccessControlListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteAccessControlListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteAccessControlListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteAccessControlListRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteAccessControlListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteAccessControlListRequest::getTags() const { + return tags_; +} + +void DeleteAccessControlListRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/DeleteAccessControlListResult.cc b/slb/src/model/DeleteAccessControlListResult.cc new file mode 100644 index 000000000..38ef49e4d --- /dev/null +++ b/slb/src/model/DeleteAccessControlListResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DeleteAccessControlListResult::DeleteAccessControlListResult() : + ServiceResult() +{} + +DeleteAccessControlListResult::DeleteAccessControlListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccessControlListResult::~DeleteAccessControlListResult() +{} + +void DeleteAccessControlListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/DeleteAccessLogsDownloadAttributeRequest.cc b/slb/src/model/DeleteAccessLogsDownloadAttributeRequest.cc new file mode 100644 index 000000000..ec853bb33 --- /dev/null +++ b/slb/src/model/DeleteAccessLogsDownloadAttributeRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DeleteAccessLogsDownloadAttributeRequest; + +DeleteAccessLogsDownloadAttributeRequest::DeleteAccessLogsDownloadAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "DeleteAccessLogsDownloadAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAccessLogsDownloadAttributeRequest::~DeleteAccessLogsDownloadAttributeRequest() {} + +std::string DeleteAccessLogsDownloadAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DeleteAccessLogsDownloadAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DeleteAccessLogsDownloadAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteAccessLogsDownloadAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteAccessLogsDownloadAttributeRequest::getRegionId() const { + return regionId_; +} + +void DeleteAccessLogsDownloadAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteAccessLogsDownloadAttributeRequest::getLogsDownloadAttributes() const { + return logsDownloadAttributes_; +} + +void DeleteAccessLogsDownloadAttributeRequest::setLogsDownloadAttributes(const std::string &logsDownloadAttributes) { + logsDownloadAttributes_ = logsDownloadAttributes; + setParameter(std::string("LogsDownloadAttributes"), logsDownloadAttributes); +} + +std::string DeleteAccessLogsDownloadAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteAccessLogsDownloadAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteAccessLogsDownloadAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteAccessLogsDownloadAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteAccessLogsDownloadAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteAccessLogsDownloadAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteAccessLogsDownloadAttributeRequest::getTags() const { + return tags_; +} + +void DeleteAccessLogsDownloadAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DeleteAccessLogsDownloadAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DeleteAccessLogsDownloadAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/DeleteAccessLogsDownloadAttributeResult.cc b/slb/src/model/DeleteAccessLogsDownloadAttributeResult.cc new file mode 100644 index 000000000..2f7c50bda --- /dev/null +++ b/slb/src/model/DeleteAccessLogsDownloadAttributeResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DeleteAccessLogsDownloadAttributeResult::DeleteAccessLogsDownloadAttributeResult() : + ServiceResult() +{} + +DeleteAccessLogsDownloadAttributeResult::DeleteAccessLogsDownloadAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteAccessLogsDownloadAttributeResult::~DeleteAccessLogsDownloadAttributeResult() +{} + +void DeleteAccessLogsDownloadAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/DeleteCACertificateRequest.cc b/slb/src/model/DeleteCACertificateRequest.cc new file mode 100644 index 000000000..fa83d01e3 --- /dev/null +++ b/slb/src/model/DeleteCACertificateRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DeleteCACertificateRequest; + +DeleteCACertificateRequest::DeleteCACertificateRequest() + : RpcServiceRequest("slb", "2014-05-15", "DeleteCACertificate") { + setMethod(HttpRequest::Method::Post); +} + +DeleteCACertificateRequest::~DeleteCACertificateRequest() {} + +std::string DeleteCACertificateRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DeleteCACertificateRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DeleteCACertificateRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteCACertificateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteCACertificateRequest::getRegionId() const { + return regionId_; +} + +void DeleteCACertificateRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteCACertificateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteCACertificateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteCACertificateRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteCACertificateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteCACertificateRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteCACertificateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteCACertificateRequest::getCACertificateId() const { + return cACertificateId_; +} + +void DeleteCACertificateRequest::setCACertificateId(const std::string &cACertificateId) { + cACertificateId_ = cACertificateId; + setParameter(std::string("CACertificateId"), cACertificateId); +} + diff --git a/slb/src/model/DeleteCACertificateResult.cc b/slb/src/model/DeleteCACertificateResult.cc new file mode 100644 index 000000000..7665459e1 --- /dev/null +++ b/slb/src/model/DeleteCACertificateResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DeleteCACertificateResult::DeleteCACertificateResult() : + ServiceResult() +{} + +DeleteCACertificateResult::DeleteCACertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteCACertificateResult::~DeleteCACertificateResult() +{} + +void DeleteCACertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/DeleteDomainExtensionRequest.cc b/slb/src/model/DeleteDomainExtensionRequest.cc new file mode 100644 index 000000000..fb7fd4b40 --- /dev/null +++ b/slb/src/model/DeleteDomainExtensionRequest.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::Slb::Model::DeleteDomainExtensionRequest; + +DeleteDomainExtensionRequest::DeleteDomainExtensionRequest() + : RpcServiceRequest("slb", "2014-05-15", "DeleteDomainExtension") { + setMethod(HttpRequest::Method::Post); +} + +DeleteDomainExtensionRequest::~DeleteDomainExtensionRequest() {} + +std::string DeleteDomainExtensionRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DeleteDomainExtensionRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DeleteDomainExtensionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteDomainExtensionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteDomainExtensionRequest::getRegionId() const { + return regionId_; +} + +void DeleteDomainExtensionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteDomainExtensionRequest::getDomainExtensionId() const { + return domainExtensionId_; +} + +void DeleteDomainExtensionRequest::setDomainExtensionId(const std::string &domainExtensionId) { + domainExtensionId_ = domainExtensionId; + setParameter(std::string("DomainExtensionId"), domainExtensionId); +} + +std::string DeleteDomainExtensionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteDomainExtensionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteDomainExtensionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteDomainExtensionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteDomainExtensionRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteDomainExtensionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteDomainExtensionRequest::getTags() const { + return tags_; +} + +void DeleteDomainExtensionRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/DeleteDomainExtensionResult.cc b/slb/src/model/DeleteDomainExtensionResult.cc new file mode 100644 index 000000000..6e864c5e0 --- /dev/null +++ b/slb/src/model/DeleteDomainExtensionResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DeleteDomainExtensionResult::DeleteDomainExtensionResult() : + ServiceResult() +{} + +DeleteDomainExtensionResult::DeleteDomainExtensionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteDomainExtensionResult::~DeleteDomainExtensionResult() +{} + +void DeleteDomainExtensionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/DeleteLoadBalancerListenerRequest.cc b/slb/src/model/DeleteLoadBalancerListenerRequest.cc index 6acec4856..e95bdf1ec 100644 --- a/slb/src/model/DeleteLoadBalancerListenerRequest.cc +++ b/slb/src/model/DeleteLoadBalancerListenerRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::DeleteLoadBalancerListenerRequest; DeleteLoadBalancerListenerRequest::DeleteLoadBalancerListenerRequest() - : RpcServiceRequest("slb", "2013-02-21", "DeleteLoadBalancerListener") { + : RpcServiceRequest("slb", "2014-05-15", "DeleteLoadBalancerListener") { setMethod(HttpRequest::Method::Post); } @@ -43,13 +43,13 @@ void DeleteLoadBalancerListenerRequest::setResourceOwnerId(long resourceOwnerId) setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string DeleteLoadBalancerListenerRequest::getAccessKeyId() const { - return accessKeyId_; +std::string DeleteLoadBalancerListenerRequest::getRegionId() const { + return regionId_; } -void DeleteLoadBalancerListenerRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void DeleteLoadBalancerListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } int DeleteLoadBalancerListenerRequest::getListenerPort() const { @@ -88,6 +88,15 @@ void DeleteLoadBalancerListenerRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } +std::string DeleteLoadBalancerListenerRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void DeleteLoadBalancerListenerRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + std::string DeleteLoadBalancerListenerRequest::getTags() const { return tags_; } diff --git a/slb/src/model/DeleteLoadBalancerRequest.cc b/slb/src/model/DeleteLoadBalancerRequest.cc index d5e7d3e13..78fce6e3c 100644 --- a/slb/src/model/DeleteLoadBalancerRequest.cc +++ b/slb/src/model/DeleteLoadBalancerRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::DeleteLoadBalancerRequest; DeleteLoadBalancerRequest::DeleteLoadBalancerRequest() - : RpcServiceRequest("slb", "2013-02-21", "DeleteLoadBalancer") { + : RpcServiceRequest("slb", "2014-05-15", "DeleteLoadBalancer") { setMethod(HttpRequest::Method::Post); } @@ -43,13 +43,22 @@ void DeleteLoadBalancerRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string DeleteLoadBalancerRequest::getAccessKeyId() const { - return accessKeyId_; +std::string DeleteLoadBalancerRequest::getRegionId() const { + return regionId_; } -void DeleteLoadBalancerRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void DeleteLoadBalancerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteLoadBalancerRequest::getEnableEipReserve() const { + return enableEipReserve_; +} + +void DeleteLoadBalancerRequest::setEnableEipReserve(const std::string &enableEipReserve) { + enableEipReserve_ = enableEipReserve; + setParameter(std::string("EnableEipReserve"), enableEipReserve); } std::string DeleteLoadBalancerRequest::getResourceOwnerAccount() const { diff --git a/slb/src/model/DeleteMasterSlaveServerGroupRequest.cc b/slb/src/model/DeleteMasterSlaveServerGroupRequest.cc new file mode 100644 index 000000000..00a8b924e --- /dev/null +++ b/slb/src/model/DeleteMasterSlaveServerGroupRequest.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::Slb::Model::DeleteMasterSlaveServerGroupRequest; + +DeleteMasterSlaveServerGroupRequest::DeleteMasterSlaveServerGroupRequest() + : RpcServiceRequest("slb", "2014-05-15", "DeleteMasterSlaveServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +DeleteMasterSlaveServerGroupRequest::~DeleteMasterSlaveServerGroupRequest() {} + +std::string DeleteMasterSlaveServerGroupRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DeleteMasterSlaveServerGroupRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DeleteMasterSlaveServerGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteMasterSlaveServerGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteMasterSlaveServerGroupRequest::getRegionId() const { + return regionId_; +} + +void DeleteMasterSlaveServerGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteMasterSlaveServerGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteMasterSlaveServerGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteMasterSlaveServerGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteMasterSlaveServerGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteMasterSlaveServerGroupRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteMasterSlaveServerGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteMasterSlaveServerGroupRequest::getTags() const { + return tags_; +} + +void DeleteMasterSlaveServerGroupRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DeleteMasterSlaveServerGroupRequest::getMasterSlaveServerGroupId() const { + return masterSlaveServerGroupId_; +} + +void DeleteMasterSlaveServerGroupRequest::setMasterSlaveServerGroupId(const std::string &masterSlaveServerGroupId) { + masterSlaveServerGroupId_ = masterSlaveServerGroupId; + setParameter(std::string("MasterSlaveServerGroupId"), masterSlaveServerGroupId); +} + diff --git a/slb/src/model/DeleteMasterSlaveServerGroupResult.cc b/slb/src/model/DeleteMasterSlaveServerGroupResult.cc new file mode 100644 index 000000000..631103034 --- /dev/null +++ b/slb/src/model/DeleteMasterSlaveServerGroupResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DeleteMasterSlaveServerGroupResult::DeleteMasterSlaveServerGroupResult() : + ServiceResult() +{} + +DeleteMasterSlaveServerGroupResult::DeleteMasterSlaveServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMasterSlaveServerGroupResult::~DeleteMasterSlaveServerGroupResult() +{} + +void DeleteMasterSlaveServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/DeleteRulesRequest.cc b/slb/src/model/DeleteRulesRequest.cc new file mode 100644 index 000000000..427290bea --- /dev/null +++ b/slb/src/model/DeleteRulesRequest.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::Slb::Model::DeleteRulesRequest; + +DeleteRulesRequest::DeleteRulesRequest() + : RpcServiceRequest("slb", "2014-05-15", "DeleteRules") { + setMethod(HttpRequest::Method::Post); +} + +DeleteRulesRequest::~DeleteRulesRequest() {} + +std::string DeleteRulesRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DeleteRulesRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DeleteRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteRulesRequest::getRegionId() const { + return regionId_; +} + +void DeleteRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteRulesRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteRulesRequest::getTags() const { + return tags_; +} + +void DeleteRulesRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DeleteRulesRequest::getRuleIds() const { + return ruleIds_; +} + +void DeleteRulesRequest::setRuleIds(const std::string &ruleIds) { + ruleIds_ = ruleIds; + setParameter(std::string("RuleIds"), ruleIds); +} + diff --git a/slb/src/model/DeleteRulesResult.cc b/slb/src/model/DeleteRulesResult.cc new file mode 100644 index 000000000..1acfbf7e1 --- /dev/null +++ b/slb/src/model/DeleteRulesResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DeleteRulesResult::DeleteRulesResult() : + ServiceResult() +{} + +DeleteRulesResult::DeleteRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteRulesResult::~DeleteRulesResult() +{} + +void DeleteRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/DeleteServerCertificateRequest.cc b/slb/src/model/DeleteServerCertificateRequest.cc new file mode 100644 index 000000000..6ae23ac95 --- /dev/null +++ b/slb/src/model/DeleteServerCertificateRequest.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::Slb::Model::DeleteServerCertificateRequest; + +DeleteServerCertificateRequest::DeleteServerCertificateRequest() + : RpcServiceRequest("slb", "2014-05-15", "DeleteServerCertificate") { + setMethod(HttpRequest::Method::Post); +} + +DeleteServerCertificateRequest::~DeleteServerCertificateRequest() {} + +std::string DeleteServerCertificateRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DeleteServerCertificateRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DeleteServerCertificateRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteServerCertificateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteServerCertificateRequest::getRegionId() const { + return regionId_; +} + +void DeleteServerCertificateRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteServerCertificateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteServerCertificateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteServerCertificateRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteServerCertificateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteServerCertificateRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteServerCertificateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteServerCertificateRequest::getServerCertificateId() const { + return serverCertificateId_; +} + +void DeleteServerCertificateRequest::setServerCertificateId(const std::string &serverCertificateId) { + serverCertificateId_ = serverCertificateId; + setParameter(std::string("ServerCertificateId"), serverCertificateId); +} + +std::string DeleteServerCertificateRequest::getTags() const { + return tags_; +} + +void DeleteServerCertificateRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/DeleteServerCertificateResult.cc b/slb/src/model/DeleteServerCertificateResult.cc new file mode 100644 index 000000000..13eb88089 --- /dev/null +++ b/slb/src/model/DeleteServerCertificateResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DeleteServerCertificateResult::DeleteServerCertificateResult() : + ServiceResult() +{} + +DeleteServerCertificateResult::DeleteServerCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteServerCertificateResult::~DeleteServerCertificateResult() +{} + +void DeleteServerCertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/DeleteTLSCipherPolicyRequest.cc b/slb/src/model/DeleteTLSCipherPolicyRequest.cc new file mode 100644 index 000000000..bab5aa24a --- /dev/null +++ b/slb/src/model/DeleteTLSCipherPolicyRequest.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::Slb::Model::DeleteTLSCipherPolicyRequest; + +DeleteTLSCipherPolicyRequest::DeleteTLSCipherPolicyRequest() + : RpcServiceRequest("slb", "2014-05-15", "DeleteTLSCipherPolicy") { + setMethod(HttpRequest::Method::Post); +} + +DeleteTLSCipherPolicyRequest::~DeleteTLSCipherPolicyRequest() {} + +std::string DeleteTLSCipherPolicyRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DeleteTLSCipherPolicyRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DeleteTLSCipherPolicyRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteTLSCipherPolicyRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteTLSCipherPolicyRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteTLSCipherPolicyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DeleteTLSCipherPolicyRequest::getTLSCipherPolicyId() const { + return tLSCipherPolicyId_; +} + +void DeleteTLSCipherPolicyRequest::setTLSCipherPolicyId(const std::string &tLSCipherPolicyId) { + tLSCipherPolicyId_ = tLSCipherPolicyId; + setParameter(std::string("TLSCipherPolicyId"), tLSCipherPolicyId); +} + +std::string DeleteTLSCipherPolicyRequest::getRegionId() const { + return regionId_; +} + +void DeleteTLSCipherPolicyRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteTLSCipherPolicyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteTLSCipherPolicyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteTLSCipherPolicyRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteTLSCipherPolicyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteTLSCipherPolicyRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteTLSCipherPolicyRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/slb/src/model/DeleteTLSCipherPolicyResult.cc b/slb/src/model/DeleteTLSCipherPolicyResult.cc new file mode 100644 index 000000000..2665793d6 --- /dev/null +++ b/slb/src/model/DeleteTLSCipherPolicyResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DeleteTLSCipherPolicyResult::DeleteTLSCipherPolicyResult() : + ServiceResult() +{} + +DeleteTLSCipherPolicyResult::DeleteTLSCipherPolicyResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteTLSCipherPolicyResult::~DeleteTLSCipherPolicyResult() +{} + +void DeleteTLSCipherPolicyResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/DeleteVServerGroupRequest.cc b/slb/src/model/DeleteVServerGroupRequest.cc new file mode 100644 index 000000000..22a9f7ff0 --- /dev/null +++ b/slb/src/model/DeleteVServerGroupRequest.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::Slb::Model::DeleteVServerGroupRequest; + +DeleteVServerGroupRequest::DeleteVServerGroupRequest() + : RpcServiceRequest("slb", "2014-05-15", "DeleteVServerGroup") { + setMethod(HttpRequest::Method::Post); +} + +DeleteVServerGroupRequest::~DeleteVServerGroupRequest() {} + +std::string DeleteVServerGroupRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DeleteVServerGroupRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DeleteVServerGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteVServerGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteVServerGroupRequest::getRegionId() const { + return regionId_; +} + +void DeleteVServerGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DeleteVServerGroupRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void DeleteVServerGroupRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string DeleteVServerGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteVServerGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteVServerGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteVServerGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteVServerGroupRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteVServerGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteVServerGroupRequest::getTags() const { + return tags_; +} + +void DeleteVServerGroupRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/DeleteVServerGroupResult.cc b/slb/src/model/DeleteVServerGroupResult.cc new file mode 100644 index 000000000..5141845f2 --- /dev/null +++ b/slb/src/model/DeleteVServerGroupResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DeleteVServerGroupResult::DeleteVServerGroupResult() : + ServiceResult() +{} + +DeleteVServerGroupResult::DeleteVServerGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteVServerGroupResult::~DeleteVServerGroupResult() +{} + +void DeleteVServerGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/DescribeAccessControlListAttributeRequest.cc b/slb/src/model/DescribeAccessControlListAttributeRequest.cc new file mode 100644 index 000000000..70d6695a2 --- /dev/null +++ b/slb/src/model/DescribeAccessControlListAttributeRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeAccessControlListAttributeRequest; + +DescribeAccessControlListAttributeRequest::DescribeAccessControlListAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeAccessControlListAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAccessControlListAttributeRequest::~DescribeAccessControlListAttributeRequest() {} + +std::string DescribeAccessControlListAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeAccessControlListAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeAccessControlListAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAccessControlListAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAccessControlListAttributeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAccessControlListAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeAccessControlListAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeAccessControlListAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeAccessControlListAttributeRequest::getPageSize() const { + return pageSize_; +} + +void DescribeAccessControlListAttributeRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeAccessControlListAttributeRequest::getAclId() const { + return aclId_; +} + +void DescribeAccessControlListAttributeRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +std::string DescribeAccessControlListAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAccessControlListAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAccessControlListAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAccessControlListAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeAccessControlListAttributeRequest::getAclEntryComment() const { + return aclEntryComment_; +} + +void DescribeAccessControlListAttributeRequest::setAclEntryComment(const std::string &aclEntryComment) { + aclEntryComment_ = aclEntryComment; + setParameter(std::string("AclEntryComment"), aclEntryComment); +} + +long DescribeAccessControlListAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAccessControlListAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeAccessControlListAttributeRequest::getTags() const { + return tags_; +} + +void DescribeAccessControlListAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +int DescribeAccessControlListAttributeRequest::getPage() const { + return page_; +} + +void DescribeAccessControlListAttributeRequest::setPage(int page) { + page_ = page; + setParameter(std::string("Page"), std::to_string(page)); +} + diff --git a/slb/src/model/DescribeAccessControlListAttributeResult.cc b/slb/src/model/DescribeAccessControlListAttributeResult.cc new file mode 100644 index 000000000..c1eb63d73 --- /dev/null +++ b/slb/src/model/DescribeAccessControlListAttributeResult.cc @@ -0,0 +1,142 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeAccessControlListAttributeResult::DescribeAccessControlListAttributeResult() : + ServiceResult() +{} + +DescribeAccessControlListAttributeResult::DescribeAccessControlListAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessControlListAttributeResult::~DescribeAccessControlListAttributeResult() +{} + +void DescribeAccessControlListAttributeResult::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 allAclEntrysNode = value["AclEntrys"]["AclEntry"]; + for (auto valueAclEntrysAclEntry : allAclEntrysNode) + { + AclEntry aclEntrysObject; + if(!valueAclEntrysAclEntry["AclEntryComment"].isNull()) + aclEntrysObject.aclEntryComment = valueAclEntrysAclEntry["AclEntryComment"].asString(); + if(!valueAclEntrysAclEntry["AclEntryIP"].isNull()) + aclEntrysObject.aclEntryIP = valueAclEntrysAclEntry["AclEntryIP"].asString(); + aclEntrys_.push_back(aclEntrysObject); + } + auto allRelatedListenersNode = value["RelatedListeners"]["RelatedListener"]; + for (auto valueRelatedListenersRelatedListener : allRelatedListenersNode) + { + RelatedListener relatedListenersObject; + if(!valueRelatedListenersRelatedListener["ListenerPort"].isNull()) + relatedListenersObject.listenerPort = std::stoi(valueRelatedListenersRelatedListener["ListenerPort"].asString()); + if(!valueRelatedListenersRelatedListener["AclType"].isNull()) + relatedListenersObject.aclType = valueRelatedListenersRelatedListener["AclType"].asString(); + if(!valueRelatedListenersRelatedListener["Protocol"].isNull()) + relatedListenersObject.protocol = valueRelatedListenersRelatedListener["Protocol"].asString(); + if(!valueRelatedListenersRelatedListener["LoadBalancerId"].isNull()) + relatedListenersObject.loadBalancerId = valueRelatedListenersRelatedListener["LoadBalancerId"].asString(); + relatedListeners_.push_back(relatedListenersObject); + } + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["AddressIPVersion"].isNull()) + addressIPVersion_ = value["AddressIPVersion"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["AclName"].isNull()) + aclName_ = value["AclName"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["TotalAclEntry"].isNull()) + totalAclEntry_ = std::stoi(value["TotalAclEntry"].asString()); + +} + +std::vector DescribeAccessControlListAttributeResult::getAclEntrys()const +{ + return aclEntrys_; +} + +std::string DescribeAccessControlListAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +int DescribeAccessControlListAttributeResult::getTotalAclEntry()const +{ + return totalAclEntry_; +} + +std::string DescribeAccessControlListAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + +std::string DescribeAccessControlListAttributeResult::getAclId()const +{ + return aclId_; +} + +std::string DescribeAccessControlListAttributeResult::getAddressIPVersion()const +{ + return addressIPVersion_; +} + +std::string DescribeAccessControlListAttributeResult::getCreateTime()const +{ + return createTime_; +} + +std::vector DescribeAccessControlListAttributeResult::getRelatedListeners()const +{ + return relatedListeners_; +} + +std::vector DescribeAccessControlListAttributeResult::getTags()const +{ + return tags_; +} + +std::string DescribeAccessControlListAttributeResult::getAclName()const +{ + return aclName_; +} + diff --git a/slb/src/model/DescribeAccessControlListsRequest.cc b/slb/src/model/DescribeAccessControlListsRequest.cc new file mode 100644 index 000000000..709ee1dbe --- /dev/null +++ b/slb/src/model/DescribeAccessControlListsRequest.cc @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeAccessControlListsRequest; + +DescribeAccessControlListsRequest::DescribeAccessControlListsRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeAccessControlLists") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAccessControlListsRequest::~DescribeAccessControlListsRequest() {} + +std::string DescribeAccessControlListsRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeAccessControlListsRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeAccessControlListsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAccessControlListsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAccessControlListsRequest::getAclName() const { + return aclName_; +} + +void DescribeAccessControlListsRequest::setAclName(const std::string &aclName) { + aclName_ = aclName; + setParameter(std::string("AclName"), aclName); +} + +std::string DescribeAccessControlListsRequest::getAddressIPVersion() const { + return addressIPVersion_; +} + +void DescribeAccessControlListsRequest::setAddressIPVersion(const std::string &addressIPVersion) { + addressIPVersion_ = addressIPVersion; + setParameter(std::string("AddressIPVersion"), addressIPVersion); +} + +int DescribeAccessControlListsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeAccessControlListsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeAccessControlListsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DescribeAccessControlListsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string DescribeAccessControlListsRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeAccessControlListsRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeAccessControlListsRequest::getRegionId() const { + return regionId_; +} + +void DescribeAccessControlListsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeAccessControlListsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeAccessControlListsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::vector DescribeAccessControlListsRequest::getTag() const { + return tag_; +} + +void DescribeAccessControlListsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string DescribeAccessControlListsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAccessControlListsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAccessControlListsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAccessControlListsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeAccessControlListsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAccessControlListsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeAccessControlListsRequest::getTags() const { + return tags_; +} + +void DescribeAccessControlListsRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/DescribeAccessControlListsResult.cc b/slb/src/model/DescribeAccessControlListsResult.cc new file mode 100644 index 000000000..55a8e338c --- /dev/null +++ b/slb/src/model/DescribeAccessControlListsResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeAccessControlListsResult::DescribeAccessControlListsResult() : + ServiceResult() +{} + +DescribeAccessControlListsResult::DescribeAccessControlListsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessControlListsResult::~DescribeAccessControlListsResult() +{} + +void DescribeAccessControlListsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAclsNode = value["Acls"]["Acl"]; + for (auto valueAclsAcl : allAclsNode) + { + Acl aclsObject; + if(!valueAclsAcl["ServiceManagedMode"].isNull()) + aclsObject.serviceManagedMode = valueAclsAcl["ServiceManagedMode"].asString(); + if(!valueAclsAcl["AclId"].isNull()) + aclsObject.aclId = valueAclsAcl["AclId"].asString(); + if(!valueAclsAcl["AddressIPVersion"].isNull()) + aclsObject.addressIPVersion = valueAclsAcl["AddressIPVersion"].asString(); + if(!valueAclsAcl["AclName"].isNull()) + aclsObject.aclName = valueAclsAcl["AclName"].asString(); + if(!valueAclsAcl["ResourceGroupId"].isNull()) + aclsObject.resourceGroupId = valueAclsAcl["ResourceGroupId"].asString(); + if(!valueAclsAcl["CreateTime"].isNull()) + aclsObject.createTime = valueAclsAcl["CreateTime"].asString(); + auto allTagsNode = valueAclsAcl["Tags"]["Tag"]; + for (auto valueAclsAclTagsTag : allTagsNode) + { + Acl::Tag tagsObject; + if(!valueAclsAclTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueAclsAclTagsTag["TagValue"].asString(); + if(!valueAclsAclTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueAclsAclTagsTag["TagKey"].asString(); + aclsObject.tags.push_back(tagsObject); + } + acls_.push_back(aclsObject); + } + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + +} + +int DescribeAccessControlListsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeAccessControlListsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeAccessControlListsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeAccessControlListsResult::getAcls()const +{ + return acls_; +} + +int DescribeAccessControlListsResult::getCount()const +{ + return count_; +} + diff --git a/slb/src/model/DescribeAccessLogsDownloadAttributeRequest.cc b/slb/src/model/DescribeAccessLogsDownloadAttributeRequest.cc new file mode 100644 index 000000000..4a432aad6 --- /dev/null +++ b/slb/src/model/DescribeAccessLogsDownloadAttributeRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeAccessLogsDownloadAttributeRequest; + +DescribeAccessLogsDownloadAttributeRequest::DescribeAccessLogsDownloadAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeAccessLogsDownloadAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAccessLogsDownloadAttributeRequest::~DescribeAccessLogsDownloadAttributeRequest() {} + +std::string DescribeAccessLogsDownloadAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeAccessLogsDownloadAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeAccessLogsDownloadAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAccessLogsDownloadAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeAccessLogsDownloadAttributeRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeAccessLogsDownloadAttributeRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeAccessLogsDownloadAttributeRequest::getLogType() const { + return logType_; +} + +void DescribeAccessLogsDownloadAttributeRequest::setLogType(const std::string &logType) { + logType_ = logType; + setParameter(std::string("LogType"), logType); +} + +std::string DescribeAccessLogsDownloadAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeAccessLogsDownloadAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeAccessLogsDownloadAttributeRequest::getPageSize() const { + return pageSize_; +} + +void DescribeAccessLogsDownloadAttributeRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeAccessLogsDownloadAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAccessLogsDownloadAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAccessLogsDownloadAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAccessLogsDownloadAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeAccessLogsDownloadAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAccessLogsDownloadAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeAccessLogsDownloadAttributeRequest::getTags() const { + return tags_; +} + +void DescribeAccessLogsDownloadAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeAccessLogsDownloadAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeAccessLogsDownloadAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/DescribeAccessLogsDownloadAttributeResult.cc b/slb/src/model/DescribeAccessLogsDownloadAttributeResult.cc new file mode 100644 index 000000000..28e4344d5 --- /dev/null +++ b/slb/src/model/DescribeAccessLogsDownloadAttributeResult.cc @@ -0,0 +1,95 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeAccessLogsDownloadAttributeResult::DescribeAccessLogsDownloadAttributeResult() : + ServiceResult() +{} + +DescribeAccessLogsDownloadAttributeResult::DescribeAccessLogsDownloadAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAccessLogsDownloadAttributeResult::~DescribeAccessLogsDownloadAttributeResult() +{} + +void DescribeAccessLogsDownloadAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLogsDownloadAttributesNode = value["LogsDownloadAttributes"]["LogsDownloadAttribute"]; + for (auto valueLogsDownloadAttributesLogsDownloadAttribute : allLogsDownloadAttributesNode) + { + LogsDownloadAttribute logsDownloadAttributesObject; + if(!valueLogsDownloadAttributesLogsDownloadAttribute["LogProject"].isNull()) + logsDownloadAttributesObject.logProject = valueLogsDownloadAttributesLogsDownloadAttribute["LogProject"].asString(); + if(!valueLogsDownloadAttributesLogsDownloadAttribute["RoleArn"].isNull()) + logsDownloadAttributesObject.roleArn = valueLogsDownloadAttributesLogsDownloadAttribute["RoleArn"].asString(); + if(!valueLogsDownloadAttributesLogsDownloadAttribute["LogStore"].isNull()) + logsDownloadAttributesObject.logStore = valueLogsDownloadAttributesLogsDownloadAttribute["LogStore"].asString(); + if(!valueLogsDownloadAttributesLogsDownloadAttribute["LoadBalancerId"].isNull()) + logsDownloadAttributesObject.loadBalancerId = valueLogsDownloadAttributesLogsDownloadAttribute["LoadBalancerId"].asString(); + if(!valueLogsDownloadAttributesLogsDownloadAttribute["Region"].isNull()) + logsDownloadAttributesObject.region = valueLogsDownloadAttributesLogsDownloadAttribute["Region"].asString(); + if(!valueLogsDownloadAttributesLogsDownloadAttribute["LogType"].isNull()) + logsDownloadAttributesObject.logType = valueLogsDownloadAttributesLogsDownloadAttribute["LogType"].asString(); + logsDownloadAttributes_.push_back(logsDownloadAttributesObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["Count"].isNull()) + count_ = std::stoi(value["Count"].asString()); + +} + +int DescribeAccessLogsDownloadAttributeResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeAccessLogsDownloadAttributeResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeAccessLogsDownloadAttributeResult::getPageNumber()const +{ + return pageNumber_; +} + +int DescribeAccessLogsDownloadAttributeResult::getCount()const +{ + return count_; +} + +std::vector DescribeAccessLogsDownloadAttributeResult::getLogsDownloadAttributes()const +{ + return logsDownloadAttributes_; +} + diff --git a/slb/src/model/DescribeAvailableResourceRequest.cc b/slb/src/model/DescribeAvailableResourceRequest.cc new file mode 100644 index 000000000..ab0240979 --- /dev/null +++ b/slb/src/model/DescribeAvailableResourceRequest.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::Slb::Model::DescribeAvailableResourceRequest; + +DescribeAvailableResourceRequest::DescribeAvailableResourceRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeAvailableResource") { + setMethod(HttpRequest::Method::Post); +} + +DescribeAvailableResourceRequest::~DescribeAvailableResourceRequest() {} + +std::string DescribeAvailableResourceRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeAvailableResourceRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeAvailableResourceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeAvailableResourceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeAvailableResourceRequest::getAddressIPVersion() const { + return addressIPVersion_; +} + +void DescribeAvailableResourceRequest::setAddressIPVersion(const std::string &addressIPVersion) { + addressIPVersion_ = addressIPVersion; + setParameter(std::string("AddressIPVersion"), addressIPVersion); +} + +std::string DescribeAvailableResourceRequest::getRegionId() const { + return regionId_; +} + +void DescribeAvailableResourceRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeAvailableResourceRequest::getAddressType() const { + return addressType_; +} + +void DescribeAvailableResourceRequest::setAddressType(const std::string &addressType) { + addressType_ = addressType; + setParameter(std::string("AddressType"), addressType); +} + +std::string DescribeAvailableResourceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeAvailableResourceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeAvailableResourceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeAvailableResourceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeAvailableResourceRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeAvailableResourceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/slb/src/model/DescribeAvailableResourceResult.cc b/slb/src/model/DescribeAvailableResourceResult.cc new file mode 100644 index 000000000..898fde0ad --- /dev/null +++ b/slb/src/model/DescribeAvailableResourceResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeAvailableResourceResult::DescribeAvailableResourceResult() : + ServiceResult() +{} + +DescribeAvailableResourceResult::DescribeAvailableResourceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAvailableResourceResult::~DescribeAvailableResourceResult() +{} + +void DescribeAvailableResourceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAvailableResourcesNode = value["AvailableResources"]["AvailableResource"]; + for (auto valueAvailableResourcesAvailableResource : allAvailableResourcesNode) + { + AvailableResource availableResourcesObject; + if(!valueAvailableResourcesAvailableResource["SlaveZoneId"].isNull()) + availableResourcesObject.slaveZoneId = valueAvailableResourcesAvailableResource["SlaveZoneId"].asString(); + if(!valueAvailableResourcesAvailableResource["MasterZoneId"].isNull()) + availableResourcesObject.masterZoneId = valueAvailableResourcesAvailableResource["MasterZoneId"].asString(); + auto allSupportResourcesNode = valueAvailableResourcesAvailableResource["SupportResources"]["SupportResource"]; + for (auto valueAvailableResourcesAvailableResourceSupportResourcesSupportResource : allSupportResourcesNode) + { + AvailableResource::SupportResource supportResourcesObject; + if(!valueAvailableResourcesAvailableResourceSupportResourcesSupportResource["AddressType"].isNull()) + supportResourcesObject.addressType = valueAvailableResourcesAvailableResourceSupportResourcesSupportResource["AddressType"].asString(); + if(!valueAvailableResourcesAvailableResourceSupportResourcesSupportResource["AddressIPVersion"].isNull()) + supportResourcesObject.addressIPVersion = valueAvailableResourcesAvailableResourceSupportResourcesSupportResource["AddressIPVersion"].asString(); + availableResourcesObject.supportResources.push_back(supportResourcesObject); + } + availableResources_.push_back(availableResourcesObject); + } + +} + +std::vector DescribeAvailableResourceResult::getAvailableResources()const +{ + return availableResources_; +} + diff --git a/slb/src/model/DescribeBackendServersRequest.cc b/slb/src/model/DescribeBackendServersRequest.cc deleted file mode 100644 index 3094168eb..000000000 --- a/slb/src/model/DescribeBackendServersRequest.cc +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Slb::Model::DescribeBackendServersRequest; - -DescribeBackendServersRequest::DescribeBackendServersRequest() - : RpcServiceRequest("slb", "2013-02-21", "DescribeBackendServers") { - setMethod(HttpRequest::Method::Post); -} - -DescribeBackendServersRequest::~DescribeBackendServersRequest() {} - -std::string DescribeBackendServersRequest::getAccess_key_id() const { - return access_key_id_; -} - -void DescribeBackendServersRequest::setAccess_key_id(const std::string &access_key_id) { - access_key_id_ = access_key_id; - setParameter(std::string("access_key_id"), access_key_id); -} - -long DescribeBackendServersRequest::getResourceOwnerId() const { - return resourceOwnerId_; -} - -void DescribeBackendServersRequest::setResourceOwnerId(long resourceOwnerId) { - resourceOwnerId_ = resourceOwnerId; - setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); -} - -std::string DescribeBackendServersRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeBackendServersRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string DescribeBackendServersRequest::getRegionId() const { - return regionId_; -} - -void DescribeBackendServersRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeBackendServersRequest::getListenerPort() const { - return listenerPort_; -} - -void DescribeBackendServersRequest::setListenerPort(int listenerPort) { - listenerPort_ = listenerPort; - setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); -} - -std::string DescribeBackendServersRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeBackendServersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeBackendServersRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeBackendServersRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -long DescribeBackendServersRequest::getOwnerId() const { - return ownerId_; -} - -void DescribeBackendServersRequest::setOwnerId(long ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), std::to_string(ownerId)); -} - -std::string DescribeBackendServersRequest::getTags() const { - return tags_; -} - -void DescribeBackendServersRequest::setTags(const std::string &tags) { - tags_ = tags; - setParameter(std::string("Tags"), tags); -} - -std::string DescribeBackendServersRequest::getLoadBalancerId() const { - return loadBalancerId_; -} - -void DescribeBackendServersRequest::setLoadBalancerId(const std::string &loadBalancerId) { - loadBalancerId_ = loadBalancerId; - setParameter(std::string("LoadBalancerId"), loadBalancerId); -} - diff --git a/slb/src/model/DescribeBackendServersResult.cc b/slb/src/model/DescribeBackendServersResult.cc deleted file mode 100644 index 228a368e1..000000000 --- a/slb/src/model/DescribeBackendServersResult.cc +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Slb; -using namespace AlibabaCloud::Slb::Model; - -DescribeBackendServersResult::DescribeBackendServersResult() : - ServiceResult() -{} - -DescribeBackendServersResult::DescribeBackendServersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeBackendServersResult::~DescribeBackendServersResult() -{} - -void DescribeBackendServersResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allListenersNode = value["Listeners"]["Listener"]; - for (auto valueListenersListener : allListenersNode) - { - Listener listenersObject; - if(!valueListenersListener["ListenerPort"].isNull()) - listenersObject.listenerPort = std::stoi(valueListenersListener["ListenerPort"].asString()); - auto allBackendServersNode = valueListenersListener["BackendServers"]["BackendServer"]; - for (auto valueListenersListenerBackendServersBackendServer : allBackendServersNode) - { - Listener::BackendServer backendServersObject; - if(!valueListenersListenerBackendServersBackendServer["ServerHealthStatus"].isNull()) - backendServersObject.serverHealthStatus = valueListenersListenerBackendServersBackendServer["ServerHealthStatus"].asString(); - if(!valueListenersListenerBackendServersBackendServer["ServerId"].isNull()) - backendServersObject.serverId = valueListenersListenerBackendServersBackendServer["ServerId"].asString(); - listenersObject.backendServers.push_back(backendServersObject); - } - listeners_.push_back(listenersObject); - } - -} - -std::vector DescribeBackendServersResult::getListeners()const -{ - return listeners_; -} - diff --git a/slb/src/model/DescribeCACertificatesRequest.cc b/slb/src/model/DescribeCACertificatesRequest.cc new file mode 100644 index 000000000..87cb5dd12 --- /dev/null +++ b/slb/src/model/DescribeCACertificatesRequest.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeCACertificatesRequest; + +DescribeCACertificatesRequest::DescribeCACertificatesRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeCACertificates") { + setMethod(HttpRequest::Method::Post); +} + +DescribeCACertificatesRequest::~DescribeCACertificatesRequest() {} + +std::string DescribeCACertificatesRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeCACertificatesRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeCACertificatesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeCACertificatesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeCACertificatesRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeCACertificatesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeCACertificatesRequest::getRegionId() const { + return regionId_; +} + +void DescribeCACertificatesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector DescribeCACertificatesRequest::getTag() const { + return tag_; +} + +void DescribeCACertificatesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string DescribeCACertificatesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeCACertificatesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeCACertificatesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeCACertificatesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeCACertificatesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeCACertificatesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeCACertificatesRequest::getCACertificateId() const { + return cACertificateId_; +} + +void DescribeCACertificatesRequest::setCACertificateId(const std::string &cACertificateId) { + cACertificateId_ = cACertificateId; + setParameter(std::string("CACertificateId"), cACertificateId); +} + diff --git a/slb/src/model/DescribeCACertificatesResult.cc b/slb/src/model/DescribeCACertificatesResult.cc new file mode 100644 index 000000000..79f5e95bf --- /dev/null +++ b/slb/src/model/DescribeCACertificatesResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeCACertificatesResult::DescribeCACertificatesResult() : + ServiceResult() +{} + +DescribeCACertificatesResult::DescribeCACertificatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCACertificatesResult::~DescribeCACertificatesResult() +{} + +void DescribeCACertificatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCACertificatesNode = value["CACertificates"]["CACertificate"]; + for (auto valueCACertificatesCACertificate : allCACertificatesNode) + { + CACertificate cACertificatesObject; + if(!valueCACertificatesCACertificate["CreateTimeStamp"].isNull()) + cACertificatesObject.createTimeStamp = std::stol(valueCACertificatesCACertificate["CreateTimeStamp"].asString()); + if(!valueCACertificatesCACertificate["StandardType"].isNull()) + cACertificatesObject.standardType = valueCACertificatesCACertificate["StandardType"].asString(); + if(!valueCACertificatesCACertificate["ExpireTime"].isNull()) + cACertificatesObject.expireTime = valueCACertificatesCACertificate["ExpireTime"].asString(); + if(!valueCACertificatesCACertificate["CreateTime"].isNull()) + cACertificatesObject.createTime = valueCACertificatesCACertificate["CreateTime"].asString(); + if(!valueCACertificatesCACertificate["EncryptionKeyLength"].isNull()) + cACertificatesObject.encryptionKeyLength = std::stoi(valueCACertificatesCACertificate["EncryptionKeyLength"].asString()); + if(!valueCACertificatesCACertificate["ExpireTimeStamp"].isNull()) + cACertificatesObject.expireTimeStamp = std::stol(valueCACertificatesCACertificate["ExpireTimeStamp"].asString()); + if(!valueCACertificatesCACertificate["CACertificateId"].isNull()) + cACertificatesObject.cACertificateId = valueCACertificatesCACertificate["CACertificateId"].asString(); + if(!valueCACertificatesCACertificate["RegionId"].isNull()) + cACertificatesObject.regionId = valueCACertificatesCACertificate["RegionId"].asString(); + if(!valueCACertificatesCACertificate["EncryptionAlgorithm"].isNull()) + cACertificatesObject.encryptionAlgorithm = valueCACertificatesCACertificate["EncryptionAlgorithm"].asString(); + if(!valueCACertificatesCACertificate["Fingerprint"].isNull()) + cACertificatesObject.fingerprint = valueCACertificatesCACertificate["Fingerprint"].asString(); + if(!valueCACertificatesCACertificate["ResourceGroupId"].isNull()) + cACertificatesObject.resourceGroupId = valueCACertificatesCACertificate["ResourceGroupId"].asString(); + if(!valueCACertificatesCACertificate["CommonName"].isNull()) + cACertificatesObject.commonName = valueCACertificatesCACertificate["CommonName"].asString(); + if(!valueCACertificatesCACertificate["CACertificateName"].isNull()) + cACertificatesObject.cACertificateName = valueCACertificatesCACertificate["CACertificateName"].asString(); + auto allTagsNode = valueCACertificatesCACertificate["Tags"]["Tag"]; + for (auto valueCACertificatesCACertificateTagsTag : allTagsNode) + { + CACertificate::Tag tagsObject; + if(!valueCACertificatesCACertificateTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueCACertificatesCACertificateTagsTag["TagValue"].asString(); + if(!valueCACertificatesCACertificateTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueCACertificatesCACertificateTagsTag["TagKey"].asString(); + cACertificatesObject.tags.push_back(tagsObject); + } + cACertificates_.push_back(cACertificatesObject); + } + +} + +std::vector DescribeCACertificatesResult::getCACertificates()const +{ + return cACertificates_; +} + diff --git a/slb/src/model/DescribeDomainExtensionAttributeRequest.cc b/slb/src/model/DescribeDomainExtensionAttributeRequest.cc new file mode 100644 index 000000000..831ee78fd --- /dev/null +++ b/slb/src/model/DescribeDomainExtensionAttributeRequest.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::Slb::Model::DescribeDomainExtensionAttributeRequest; + +DescribeDomainExtensionAttributeRequest::DescribeDomainExtensionAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeDomainExtensionAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDomainExtensionAttributeRequest::~DescribeDomainExtensionAttributeRequest() {} + +std::string DescribeDomainExtensionAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeDomainExtensionAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeDomainExtensionAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDomainExtensionAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDomainExtensionAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeDomainExtensionAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDomainExtensionAttributeRequest::getDomainExtensionId() const { + return domainExtensionId_; +} + +void DescribeDomainExtensionAttributeRequest::setDomainExtensionId(const std::string &domainExtensionId) { + domainExtensionId_ = domainExtensionId; + setParameter(std::string("DomainExtensionId"), domainExtensionId); +} + +std::string DescribeDomainExtensionAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDomainExtensionAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDomainExtensionAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDomainExtensionAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDomainExtensionAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDomainExtensionAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeDomainExtensionAttributeRequest::getTags() const { + return tags_; +} + +void DescribeDomainExtensionAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/DescribeDomainExtensionAttributeResult.cc b/slb/src/model/DescribeDomainExtensionAttributeResult.cc new file mode 100644 index 000000000..4b7e04455 --- /dev/null +++ b/slb/src/model/DescribeDomainExtensionAttributeResult.cc @@ -0,0 +1,113 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeDomainExtensionAttributeResult::DescribeDomainExtensionAttributeResult() : + ServiceResult() +{} + +DescribeDomainExtensionAttributeResult::DescribeDomainExtensionAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDomainExtensionAttributeResult::~DescribeDomainExtensionAttributeResult() +{} + +void DescribeDomainExtensionAttributeResult::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["EncryptionAlgorithm"].isNull()) + certificatesObject.encryptionAlgorithm = valueCertificatesCertificate["EncryptionAlgorithm"].asString(); + if(!valueCertificatesCertificate["CertificateId"].isNull()) + certificatesObject.certificateId = valueCertificatesCertificate["CertificateId"].asString(); + certificates_.push_back(certificatesObject); + } + auto allServerCertificatesNode = value["ServerCertificates"]["ServerCertificate"]; + for (auto valueServerCertificatesServerCertificate : allServerCertificatesNode) + { + ServerCertificate serverCertificatesObject; + if(!valueServerCertificatesServerCertificate["EncryptionAlgorithm"].isNull()) + serverCertificatesObject.encryptionAlgorithm = valueServerCertificatesServerCertificate["EncryptionAlgorithm"].asString(); + if(!valueServerCertificatesServerCertificate["StandardType"].isNull()) + serverCertificatesObject.standardType = valueServerCertificatesServerCertificate["StandardType"].asString(); + if(!valueServerCertificatesServerCertificate["BindingType"].isNull()) + serverCertificatesObject.bindingType = valueServerCertificatesServerCertificate["BindingType"].asString(); + if(!valueServerCertificatesServerCertificate["CertificateId"].isNull()) + serverCertificatesObject.certificateId = valueServerCertificatesServerCertificate["CertificateId"].asString(); + serverCertificates_.push_back(serverCertificatesObject); + } + if(!value["Domain"].isNull()) + domain_ = value["Domain"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["ServerCertificateId"].isNull()) + serverCertificateId_ = value["ServerCertificateId"].asString(); + if(!value["DomainExtensionId"].isNull()) + domainExtensionId_ = value["DomainExtensionId"].asString(); + +} + +int DescribeDomainExtensionAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +std::string DescribeDomainExtensionAttributeResult::getDomainExtensionId()const +{ + return domainExtensionId_; +} + +std::vector DescribeDomainExtensionAttributeResult::getCertificates()const +{ + return certificates_; +} + +std::vector DescribeDomainExtensionAttributeResult::getServerCertificates()const +{ + return serverCertificates_; +} + +std::string DescribeDomainExtensionAttributeResult::getServerCertificateId()const +{ + return serverCertificateId_; +} + +std::string DescribeDomainExtensionAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::string DescribeDomainExtensionAttributeResult::getDomain()const +{ + return domain_; +} + diff --git a/slb/src/model/DescribeDomainExtensionsRequest.cc b/slb/src/model/DescribeDomainExtensionsRequest.cc new file mode 100644 index 000000000..ba6fdc4ed --- /dev/null +++ b/slb/src/model/DescribeDomainExtensionsRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeDomainExtensionsRequest; + +DescribeDomainExtensionsRequest::DescribeDomainExtensionsRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeDomainExtensions") { + setMethod(HttpRequest::Method::Post); +} + +DescribeDomainExtensionsRequest::~DescribeDomainExtensionsRequest() {} + +std::string DescribeDomainExtensionsRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeDomainExtensionsRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeDomainExtensionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeDomainExtensionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeDomainExtensionsRequest::getRegionId() const { + return regionId_; +} + +void DescribeDomainExtensionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeDomainExtensionsRequest::getDomainExtensionId() const { + return domainExtensionId_; +} + +void DescribeDomainExtensionsRequest::setDomainExtensionId(const std::string &domainExtensionId) { + domainExtensionId_ = domainExtensionId; + setParameter(std::string("DomainExtensionId"), domainExtensionId); +} + +int DescribeDomainExtensionsRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeDomainExtensionsRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DescribeDomainExtensionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeDomainExtensionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeDomainExtensionsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeDomainExtensionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeDomainExtensionsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeDomainExtensionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeDomainExtensionsRequest::getTags() const { + return tags_; +} + +void DescribeDomainExtensionsRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeDomainExtensionsRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeDomainExtensionsRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/DescribeDomainExtensionsResult.cc b/slb/src/model/DescribeDomainExtensionsResult.cc new file mode 100644 index 000000000..73088fce6 --- /dev/null +++ b/slb/src/model/DescribeDomainExtensionsResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeDomainExtensionsResult::DescribeDomainExtensionsResult() : + ServiceResult() +{} + +DescribeDomainExtensionsResult::DescribeDomainExtensionsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDomainExtensionsResult::~DescribeDomainExtensionsResult() +{} + +void DescribeDomainExtensionsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDomainExtensionsNode = value["DomainExtensions"]["DomainExtension"]; + for (auto valueDomainExtensionsDomainExtension : allDomainExtensionsNode) + { + DomainExtension domainExtensionsObject; + if(!valueDomainExtensionsDomainExtension["ServerCertificateId"].isNull()) + domainExtensionsObject.serverCertificateId = valueDomainExtensionsDomainExtension["ServerCertificateId"].asString(); + if(!valueDomainExtensionsDomainExtension["Domain"].isNull()) + domainExtensionsObject.domain = valueDomainExtensionsDomainExtension["Domain"].asString(); + if(!valueDomainExtensionsDomainExtension["DomainExtensionId"].isNull()) + domainExtensionsObject.domainExtensionId = valueDomainExtensionsDomainExtension["DomainExtensionId"].asString(); + auto allCertificatesNode = valueDomainExtensionsDomainExtension["Certificates"]["Certificate"]; + for (auto valueDomainExtensionsDomainExtensionCertificatesCertificate : allCertificatesNode) + { + DomainExtension::Certificate certificatesObject; + if(!valueDomainExtensionsDomainExtensionCertificatesCertificate["EncryptionAlgorithm"].isNull()) + certificatesObject.encryptionAlgorithm = valueDomainExtensionsDomainExtensionCertificatesCertificate["EncryptionAlgorithm"].asString(); + if(!valueDomainExtensionsDomainExtensionCertificatesCertificate["CertificateId"].isNull()) + certificatesObject.certificateId = valueDomainExtensionsDomainExtensionCertificatesCertificate["CertificateId"].asString(); + domainExtensionsObject.certificates.push_back(certificatesObject); + } + auto allServerCertificatesNode = valueDomainExtensionsDomainExtension["ServerCertificates"]["ServerCertificate"]; + for (auto valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate : allServerCertificatesNode) + { + DomainExtension::ServerCertificate serverCertificatesObject; + if(!valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["EncryptionAlgorithm"].isNull()) + serverCertificatesObject.encryptionAlgorithm = valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["EncryptionAlgorithm"].asString(); + if(!valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["StandardType"].isNull()) + serverCertificatesObject.standardType = valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["StandardType"].asString(); + if(!valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["CertificateId"].isNull()) + serverCertificatesObject.certificateId = valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["CertificateId"].asString(); + if(!valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["BindingType"].isNull()) + serverCertificatesObject.bindingType = valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["BindingType"].asString(); + domainExtensionsObject.serverCertificates.push_back(serverCertificatesObject); + } + domainExtensions_.push_back(domainExtensionsObject); + } + +} + +std::vector DescribeDomainExtensionsResult::getDomainExtensions()const +{ + return domainExtensions_; +} + diff --git a/slb/src/model/DescribeHealthStatusRequest.cc b/slb/src/model/DescribeHealthStatusRequest.cc new file mode 100644 index 000000000..f0134daf0 --- /dev/null +++ b/slb/src/model/DescribeHealthStatusRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeHealthStatusRequest; + +DescribeHealthStatusRequest::DescribeHealthStatusRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeHealthStatus") { + setMethod(HttpRequest::Method::Post); +} + +DescribeHealthStatusRequest::~DescribeHealthStatusRequest() {} + +std::string DescribeHealthStatusRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeHealthStatusRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeHealthStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeHealthStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeHealthStatusRequest::getRegionId() const { + return regionId_; +} + +void DescribeHealthStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeHealthStatusRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeHealthStatusRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DescribeHealthStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeHealthStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeHealthStatusRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeHealthStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeHealthStatusRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeHealthStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeHealthStatusRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void DescribeHealthStatusRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::string DescribeHealthStatusRequest::getTags() const { + return tags_; +} + +void DescribeHealthStatusRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeHealthStatusRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeHealthStatusRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/DescribeHealthStatusResult.cc b/slb/src/model/DescribeHealthStatusResult.cc new file mode 100644 index 000000000..cce9a2586 --- /dev/null +++ b/slb/src/model/DescribeHealthStatusResult.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 +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeHealthStatusResult::DescribeHealthStatusResult() : + ServiceResult() +{} + +DescribeHealthStatusResult::DescribeHealthStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHealthStatusResult::~DescribeHealthStatusResult() +{} + +void DescribeHealthStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["BackendServer"]; + for (auto valueBackendServersBackendServer : allBackendServersNode) + { + BackendServer backendServersObject; + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["EniHost"].isNull()) + backendServersObject.eniHost = valueBackendServersBackendServer["EniHost"].asString(); + if(!valueBackendServersBackendServer["Protocol"].isNull()) + backendServersObject.protocol = valueBackendServersBackendServer["Protocol"].asString(); + if(!valueBackendServersBackendServer["ServerHealthStatus"].isNull()) + backendServersObject.serverHealthStatus = valueBackendServersBackendServer["ServerHealthStatus"].asString(); + if(!valueBackendServersBackendServer["ListenerPort"].isNull()) + backendServersObject.listenerPort = std::stoi(valueBackendServersBackendServer["ListenerPort"].asString()); + if(!valueBackendServersBackendServer["ServerIp"].isNull()) + backendServersObject.serverIp = valueBackendServersBackendServer["ServerIp"].asString(); + if(!valueBackendServersBackendServer["Port"].isNull()) + backendServersObject.port = std::stoi(valueBackendServersBackendServer["Port"].asString()); + if(!valueBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); + backendServers_.push_back(backendServersObject); + } + +} + +std::vector DescribeHealthStatusResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/DescribeHighDefinationMonitorRequest.cc b/slb/src/model/DescribeHighDefinationMonitorRequest.cc new file mode 100644 index 000000000..74db31a76 --- /dev/null +++ b/slb/src/model/DescribeHighDefinationMonitorRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeHighDefinationMonitorRequest; + +DescribeHighDefinationMonitorRequest::DescribeHighDefinationMonitorRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeHighDefinationMonitor") { + setMethod(HttpRequest::Method::Post); +} + +DescribeHighDefinationMonitorRequest::~DescribeHighDefinationMonitorRequest() {} + +std::string DescribeHighDefinationMonitorRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeHighDefinationMonitorRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeHighDefinationMonitorRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeHighDefinationMonitorRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeHighDefinationMonitorRequest::getRegionId() const { + return regionId_; +} + +void DescribeHighDefinationMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeHighDefinationMonitorRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeHighDefinationMonitorRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeHighDefinationMonitorRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeHighDefinationMonitorRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeHighDefinationMonitorRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeHighDefinationMonitorRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeHighDefinationMonitorRequest::getTags() const { + return tags_; +} + +void DescribeHighDefinationMonitorRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/DescribeHighDefinationMonitorResult.cc b/slb/src/model/DescribeHighDefinationMonitorResult.cc new file mode 100644 index 000000000..d2f0ac725 --- /dev/null +++ b/slb/src/model/DescribeHighDefinationMonitorResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeHighDefinationMonitorResult::DescribeHighDefinationMonitorResult() : + ServiceResult() +{} + +DescribeHighDefinationMonitorResult::DescribeHighDefinationMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHighDefinationMonitorResult::~DescribeHighDefinationMonitorResult() +{} + +void DescribeHighDefinationMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["LogProject"].isNull()) + logProject_ = value["LogProject"].asString(); + if(!value["LogStore"].isNull()) + logStore_ = value["LogStore"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string DescribeHighDefinationMonitorResult::getLogStore()const +{ + return logStore_; +} + +std::string DescribeHighDefinationMonitorResult::getLogProject()const +{ + return logProject_; +} + +std::string DescribeHighDefinationMonitorResult::getSuccess()const +{ + return success_; +} + diff --git a/slb/src/model/DescribeListenerAccessControlAttributeRequest.cc b/slb/src/model/DescribeListenerAccessControlAttributeRequest.cc new file mode 100644 index 000000000..4014cad67 --- /dev/null +++ b/slb/src/model/DescribeListenerAccessControlAttributeRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeListenerAccessControlAttributeRequest; + +DescribeListenerAccessControlAttributeRequest::DescribeListenerAccessControlAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeListenerAccessControlAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeListenerAccessControlAttributeRequest::~DescribeListenerAccessControlAttributeRequest() {} + +std::string DescribeListenerAccessControlAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeListenerAccessControlAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeListenerAccessControlAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeListenerAccessControlAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeListenerAccessControlAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeListenerAccessControlAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeListenerAccessControlAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeListenerAccessControlAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DescribeListenerAccessControlAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeListenerAccessControlAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeListenerAccessControlAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeListenerAccessControlAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeListenerAccessControlAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeListenerAccessControlAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeListenerAccessControlAttributeRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void DescribeListenerAccessControlAttributeRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::string DescribeListenerAccessControlAttributeRequest::getTags() const { + return tags_; +} + +void DescribeListenerAccessControlAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeListenerAccessControlAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeListenerAccessControlAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/DescribeListenerAccessControlAttributeResult.cc b/slb/src/model/DescribeListenerAccessControlAttributeResult.cc new file mode 100644 index 000000000..7f993dfe8 --- /dev/null +++ b/slb/src/model/DescribeListenerAccessControlAttributeResult.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeListenerAccessControlAttributeResult::DescribeListenerAccessControlAttributeResult() : + ServiceResult() +{} + +DescribeListenerAccessControlAttributeResult::DescribeListenerAccessControlAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeListenerAccessControlAttributeResult::~DescribeListenerAccessControlAttributeResult() +{} + +void DescribeListenerAccessControlAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["SourceItems"].isNull()) + sourceItems_ = value["SourceItems"].asString(); + if(!value["AccessControlStatus"].isNull()) + accessControlStatus_ = value["AccessControlStatus"].asString(); + +} + +std::string DescribeListenerAccessControlAttributeResult::getAccessControlStatus()const +{ + return accessControlStatus_; +} + +std::string DescribeListenerAccessControlAttributeResult::getSourceItems()const +{ + return sourceItems_; +} + diff --git a/slb/src/model/DescribeLoadBalancerAttributeRequest.cc b/slb/src/model/DescribeLoadBalancerAttributeRequest.cc index 0004fd47e..9b6ffdef7 100644 --- a/slb/src/model/DescribeLoadBalancerAttributeRequest.cc +++ b/slb/src/model/DescribeLoadBalancerAttributeRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::DescribeLoadBalancerAttributeRequest; DescribeLoadBalancerAttributeRequest::DescribeLoadBalancerAttributeRequest() - : RpcServiceRequest("slb", "2013-02-21", "DescribeLoadBalancerAttribute") { + : RpcServiceRequest("slb", "2014-05-15", "DescribeLoadBalancerAttribute") { setMethod(HttpRequest::Method::Post); } @@ -43,13 +43,22 @@ void DescribeLoadBalancerAttributeRequest::setResourceOwnerId(long resourceOwner setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string DescribeLoadBalancerAttributeRequest::getAccessKeyId() const { - return accessKeyId_; +bool DescribeLoadBalancerAttributeRequest::getIncludeReservedData() const { + return includeReservedData_; } -void DescribeLoadBalancerAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void DescribeLoadBalancerAttributeRequest::setIncludeReservedData(bool includeReservedData) { + includeReservedData_ = includeReservedData; + setParameter(std::string("IncludeReservedData"), includeReservedData ? "true" : "false"); +} + +std::string DescribeLoadBalancerAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeLoadBalancerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } std::string DescribeLoadBalancerAttributeRequest::getResourceOwnerAccount() const { diff --git a/slb/src/model/DescribeLoadBalancerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerAttributeResult.cc index b26f74e18..f82fb716d 100644 --- a/slb/src/model/DescribeLoadBalancerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerAttributeResult.cc @@ -39,6 +39,16 @@ void DescribeLoadBalancerAttributeResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allTagsNode = value["Tags"]["Tag"]; + for (auto valueTagsTag : allTagsNode) + { + Tag tagsObject; + if(!valueTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueTagsTag["TagKey"].asString(); + if(!valueTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueTagsTag["TagValue"].asString(); + tags_.push_back(tagsObject); + } auto allListenerPortsAndProtocalNode = value["ListenerPortsAndProtocal"]["ListenerPortAndProtocal"]; for (auto valueListenerPortsAndProtocalListenerPortAndProtocal : allListenerPortsAndProtocalNode) { @@ -57,18 +67,35 @@ void DescribeLoadBalancerAttributeResult::parse(const std::string &payload) listenerPortsAndProtocolObject.listenerPort = std::stoi(valueListenerPortsAndProtocolListenerPortAndProtocol["ListenerPort"].asString()); if(!valueListenerPortsAndProtocolListenerPortAndProtocol["ListenerProtocol"].isNull()) listenerPortsAndProtocolObject.listenerProtocol = valueListenerPortsAndProtocolListenerPortAndProtocol["ListenerProtocol"].asString(); + if(!valueListenerPortsAndProtocolListenerPortAndProtocol["ListenerForward"].isNull()) + listenerPortsAndProtocolObject.listenerForward = valueListenerPortsAndProtocolListenerPortAndProtocol["ListenerForward"].asString(); + if(!valueListenerPortsAndProtocolListenerPortAndProtocol["Description"].isNull()) + listenerPortsAndProtocolObject.description = valueListenerPortsAndProtocolListenerPortAndProtocol["Description"].asString(); + if(!valueListenerPortsAndProtocolListenerPortAndProtocol["ForwardPort"].isNull()) + listenerPortsAndProtocolObject.forwardPort = std::stoi(valueListenerPortsAndProtocolListenerPortAndProtocol["ForwardPort"].asString()); listenerPortsAndProtocol_.push_back(listenerPortsAndProtocolObject); } auto allBackendServersNode = value["BackendServers"]["BackendServer"]; for (auto valueBackendServersBackendServer : allBackendServersNode) { BackendServer backendServersObject; + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["VpcId"].isNull()) + backendServersObject.vpcId = valueBackendServersBackendServer["VpcId"].asString(); if(!valueBackendServersBackendServer["Weight"].isNull()) backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString()); + if(!valueBackendServersBackendServer["Description"].isNull()) + backendServersObject.description = valueBackendServersBackendServer["Description"].asString(); + if(!valueBackendServersBackendServer["ServerIp"].isNull()) + backendServersObject.serverIp = valueBackendServersBackendServer["ServerIp"].asString(); if(!valueBackendServersBackendServer["ServerId"].isNull()) backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); backendServers_.push_back(backendServersObject); } + auto allLabels = value["Labels"]["Label"]; + for (const auto &item : allLabels) + labels_.push_back(item.asString()); auto allListenerPorts = value["ListenerPorts"]["ListenerPort"]; for (const auto &item : allListenerPorts) listenerPorts_.push_back(item.asString()); @@ -76,46 +103,96 @@ void DescribeLoadBalancerAttributeResult::parse(const std::string &payload) vpcId_ = value["VpcId"].asString(); if(!value["CreateTimeStamp"].isNull()) createTimeStamp_ = std::stol(value["CreateTimeStamp"].asString()); - if(!value["LoadBalancerSpec"].isNull()) - loadBalancerSpec_ = value["LoadBalancerSpec"].asString(); - if(!value["AutoReleaseTime"].isNull()) - autoReleaseTime_ = std::stol(value["AutoReleaseTime"].asString()); - if(!value["IsPublicAddress"].isNull()) - isPublicAddress_ = value["IsPublicAddress"].asString(); + if(!value["ReservedInfoBandwidth"].isNull()) + reservedInfoBandwidth_ = value["ReservedInfoBandwidth"].asString(); + if(!value["CloudInstanceId"].isNull()) + cloudInstanceId_ = value["CloudInstanceId"].asString(); + if(!value["HasReservedInfo"].isNull()) + hasReservedInfo_ = value["HasReservedInfo"].asString(); if(!value["CreateTime"].isNull()) createTime_ = value["CreateTime"].asString(); if(!value["LoadBalancerId"].isNull()) loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["TunnelType"].isNull()) + tunnelType_ = value["TunnelType"].asString(); if(!value["PayType"].isNull()) payType_ = value["PayType"].asString(); + if(!value["ReservedInfoOrderType"].isNull()) + reservedInfoOrderType_ = value["ReservedInfoOrderType"].asString(); if(!value["AddressType"].isNull()) addressType_ = value["AddressType"].asString(); + if(!value["SupportPrivateLink"].isNull()) + supportPrivateLink_ = value["SupportPrivateLink"].asString() == "true"; if(!value["NetworkType"].isNull()) networkType_ = value["NetworkType"].asString(); + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); + if(!value["SpecBpsFlag"].isNull()) + specBpsFlag_ = value["SpecBpsFlag"].asString() == "true"; + if(!value["AddressIPVersion"].isNull()) + addressIPVersion_ = value["AddressIPVersion"].asString(); + if(!value["RenewalCycUnit"].isNull()) + renewalCycUnit_ = value["RenewalCycUnit"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["LoadBalancerName"].isNull()) + loadBalancerName_ = value["LoadBalancerName"].asString(); + if(!value["Address"].isNull()) + address_ = value["Address"].asString(); + if(!value["AssociatedCenStatus"].isNull()) + associatedCenStatus_ = value["AssociatedCenStatus"].asString(); + if(!value["SlaveZoneId"].isNull()) + slaveZoneId_ = value["SlaveZoneId"].asString(); + if(!value["CloudInstanceType"].isNull()) + cloudInstanceType_ = value["CloudInstanceType"].asString(); + if(!value["EndTimeStamp"].isNull()) + endTimeStamp_ = std::stol(value["EndTimeStamp"].asString()); + if(!value["ReservedInfoActiveTime"].isNull()) + reservedInfoActiveTime_ = value["ReservedInfoActiveTime"].asString(); + if(!value["MasterZoneId"].isNull()) + masterZoneId_ = value["MasterZoneId"].asString(); + if(!value["ReservedInfoInternetChargeType"].isNull()) + reservedInfoInternetChargeType_ = value["ReservedInfoInternetChargeType"].asString(); + if(!value["LoadBalancerSpec"].isNull()) + loadBalancerSpec_ = value["LoadBalancerSpec"].asString(); + if(!value["SpecType"].isNull()) + specType_ = value["SpecType"].asString(); + if(!value["CloudType"].isNull()) + cloudType_ = value["CloudType"].asString(); + if(!value["AutoReleaseTime"].isNull()) + autoReleaseTime_ = std::stol(value["AutoReleaseTime"].asString()); + if(!value["ModificationProtectionReason"].isNull()) + modificationProtectionReason_ = value["ModificationProtectionReason"].asString(); if(!value["RegionId"].isNull()) regionId_ = value["RegionId"].asString(); + if(!value["ModificationProtectionStatus"].isNull()) + modificationProtectionStatus_ = value["ModificationProtectionStatus"].asString(); if(!value["EndTime"].isNull()) endTime_ = value["EndTime"].asString(); if(!value["VSwitchId"].isNull()) vSwitchId_ = value["VSwitchId"].asString(); - if(!value["Bandwidth"].isNull()) - bandwidth_ = std::stoi(value["Bandwidth"].asString()); if(!value["LoadBalancerStatus"].isNull()) loadBalancerStatus_ = value["LoadBalancerStatus"].asString(); - if(!value["LoadBalancerName"].isNull()) - loadBalancerName_ = value["LoadBalancerName"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); if(!value["InternetChargeType"].isNull()) internetChargeType_ = value["InternetChargeType"].asString(); - if(!value["Address"].isNull()) - address_ = value["Address"].asString(); - if(!value["SlaveZoneId"].isNull()) - slaveZoneId_ = value["SlaveZoneId"].asString(); - if(!value["EndTimeStamp"].isNull()) - endTimeStamp_ = std::stol(value["EndTimeStamp"].asString()); + if(!value["BusinessStatus"].isNull()) + businessStatus_ = value["BusinessStatus"].asString(); + if(!value["AssociatedCenId"].isNull()) + associatedCenId_ = value["AssociatedCenId"].asString(); + if(!value["DeleteProtection"].isNull()) + deleteProtection_ = value["DeleteProtection"].asString(); if(!value["RegionIdAlias"].isNull()) regionIdAlias_ = value["RegionIdAlias"].asString(); - if(!value["MasterZoneId"].isNull()) - masterZoneId_ = value["MasterZoneId"].asString(); + if(!value["RenewalStatus"].isNull()) + renewalStatus_ = value["RenewalStatus"].asString(); + if(!value["RenewalDuration"].isNull()) + renewalDuration_ = std::stoi(value["RenewalDuration"].asString()); + if(!value["CloudInstanceUid"].isNull()) + cloudInstanceUid_ = std::stol(value["CloudInstanceUid"].asString()); + if(!value["InstanceChargeType"].isNull()) + instanceChargeType_ = value["InstanceChargeType"].asString(); } @@ -124,14 +201,154 @@ std::vector Descri return listenerPortsAndProtocal_; } +std::string DescribeLoadBalancerAttributeResult::getAddress()const +{ + return address_; +} + +std::string DescribeLoadBalancerAttributeResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::string DescribeLoadBalancerAttributeResult::getSpecType()const +{ + return specType_; +} + +std::string DescribeLoadBalancerAttributeResult::getInstanceChargeType()const +{ + return instanceChargeType_; +} + +std::vector DescribeLoadBalancerAttributeResult::getBackendServers()const +{ + return backendServers_; +} + +std::string DescribeLoadBalancerAttributeResult::getHasReservedInfo()const +{ + return hasReservedInfo_; +} + +std::string DescribeLoadBalancerAttributeResult::getBusinessStatus()const +{ + return businessStatus_; +} + +std::string DescribeLoadBalancerAttributeResult::getLoadBalancerSpec()const +{ + return loadBalancerSpec_; +} + +std::string DescribeLoadBalancerAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + +std::string DescribeLoadBalancerAttributeResult::getModificationProtectionReason()const +{ + return modificationProtectionReason_; +} + +std::string DescribeLoadBalancerAttributeResult::getAssociatedCenId()const +{ + return associatedCenId_; +} + +std::vector DescribeLoadBalancerAttributeResult::getTags()const +{ + return tags_; +} + +std::vector DescribeLoadBalancerAttributeResult::getListenerPorts()const +{ + return listenerPorts_; +} + +std::string DescribeLoadBalancerAttributeResult::getCloudInstanceType()const +{ + return cloudInstanceType_; +} + +std::string DescribeLoadBalancerAttributeResult::getVSwitchId()const +{ + return vSwitchId_; +} + +std::string DescribeLoadBalancerAttributeResult::getRenewalStatus()const +{ + return renewalStatus_; +} + +std::vector DescribeLoadBalancerAttributeResult::getLabels()const +{ + return labels_; +} + +std::string DescribeLoadBalancerAttributeResult::getPayType()const +{ + return payType_; +} + +std::string DescribeLoadBalancerAttributeResult::getInternetChargeType()const +{ + return internetChargeType_; +} + +std::string DescribeLoadBalancerAttributeResult::getReservedInfoInternetChargeType()const +{ + return reservedInfoInternetChargeType_; +} + +std::string DescribeLoadBalancerAttributeResult::getVpcId()const +{ + return vpcId_; +} + +std::string DescribeLoadBalancerAttributeResult::getDeleteProtection()const +{ + return deleteProtection_; +} + +long DescribeLoadBalancerAttributeResult::getEndTimeStamp()const +{ + return endTimeStamp_; +} + +std::string DescribeLoadBalancerAttributeResult::getLoadBalancerStatus()const +{ + return loadBalancerStatus_; +} + +long DescribeLoadBalancerAttributeResult::getAutoReleaseTime()const +{ + return autoReleaseTime_; +} + +int DescribeLoadBalancerAttributeResult::getRenewalDuration()const +{ + return renewalDuration_; +} + +std::string DescribeLoadBalancerAttributeResult::getAssociatedCenStatus()const +{ + return associatedCenStatus_; +} + std::string DescribeLoadBalancerAttributeResult::getEndTime()const { return endTime_; } -std::string DescribeLoadBalancerAttributeResult::getAddress()const +bool DescribeLoadBalancerAttributeResult::getSupportPrivateLink()const { - return address_; + return supportPrivateLink_; +} + +std::string DescribeLoadBalancerAttributeResult::getAddressIPVersion()const +{ + return addressIPVersion_; } std::vector DescribeLoadBalancerAttributeResult::getListenerPortsAndProtocol()const @@ -144,14 +361,14 @@ std::string DescribeLoadBalancerAttributeResult::getLoadBalancerId()const return loadBalancerId_; } -std::vector DescribeLoadBalancerAttributeResult::getBackendServers()const +std::string DescribeLoadBalancerAttributeResult::getReservedInfoBandwidth()const { - return backendServers_; + return reservedInfoBandwidth_; } -std::string DescribeLoadBalancerAttributeResult::getLoadBalancerSpec()const +std::string DescribeLoadBalancerAttributeResult::getModificationProtectionStatus()const { - return loadBalancerSpec_; + return modificationProtectionStatus_; } std::string DescribeLoadBalancerAttributeResult::getNetworkType()const @@ -164,9 +381,9 @@ int DescribeLoadBalancerAttributeResult::getBandwidth()const return bandwidth_; } -std::vector DescribeLoadBalancerAttributeResult::getListenerPorts()const +bool DescribeLoadBalancerAttributeResult::getSpecBpsFlag()const { - return listenerPorts_; + return specBpsFlag_; } std::string DescribeLoadBalancerAttributeResult::getMasterZoneId()const @@ -174,19 +391,39 @@ std::string DescribeLoadBalancerAttributeResult::getMasterZoneId()const return masterZoneId_; } +std::string DescribeLoadBalancerAttributeResult::getTunnelType()const +{ + return tunnelType_; +} + +std::string DescribeLoadBalancerAttributeResult::getCloudType()const +{ + return cloudType_; +} + std::string DescribeLoadBalancerAttributeResult::getCreateTime()const { return createTime_; } -std::string DescribeLoadBalancerAttributeResult::getVSwitchId()const +long DescribeLoadBalancerAttributeResult::getCloudInstanceUid()const { - return vSwitchId_; + return cloudInstanceUid_; } -std::string DescribeLoadBalancerAttributeResult::getPayType()const +std::string DescribeLoadBalancerAttributeResult::getRenewalCycUnit()const { - return payType_; + return renewalCycUnit_; +} + +std::string DescribeLoadBalancerAttributeResult::getReservedInfoActiveTime()const +{ + return reservedInfoActiveTime_; +} + +std::string DescribeLoadBalancerAttributeResult::getCloudInstanceId()const +{ + return cloudInstanceId_; } std::string DescribeLoadBalancerAttributeResult::getSlaveZoneId()const @@ -194,11 +431,6 @@ std::string DescribeLoadBalancerAttributeResult::getSlaveZoneId()const return slaveZoneId_; } -std::string DescribeLoadBalancerAttributeResult::getInternetChargeType()const -{ - return internetChargeType_; -} - std::string DescribeLoadBalancerAttributeResult::getRegionIdAlias()const { return regionIdAlias_; @@ -209,19 +441,9 @@ std::string DescribeLoadBalancerAttributeResult::getLoadBalancerName()const return loadBalancerName_; } -std::string DescribeLoadBalancerAttributeResult::getIsPublicAddress()const +std::string DescribeLoadBalancerAttributeResult::getReservedInfoOrderType()const { - return isPublicAddress_; -} - -std::string DescribeLoadBalancerAttributeResult::getVpcId()const -{ - return vpcId_; -} - -long DescribeLoadBalancerAttributeResult::getEndTimeStamp()const -{ - return endTimeStamp_; + return reservedInfoOrderType_; } std::string DescribeLoadBalancerAttributeResult::getRegionId()const @@ -234,18 +456,8 @@ std::string DescribeLoadBalancerAttributeResult::getAddressType()const return addressType_; } -std::string DescribeLoadBalancerAttributeResult::getLoadBalancerStatus()const -{ - return loadBalancerStatus_; -} - long DescribeLoadBalancerAttributeResult::getCreateTimeStamp()const { return createTimeStamp_; } -long DescribeLoadBalancerAttributeResult::getAutoReleaseTime()const -{ - return autoReleaseTime_; -} - diff --git a/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc b/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc index 6b9a8392b..44098dc3c 100644 --- a/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc +++ b/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::DescribeLoadBalancerHTTPListenerAttributeRequest; DescribeLoadBalancerHTTPListenerAttributeRequest::DescribeLoadBalancerHTTPListenerAttributeRequest() - : RpcServiceRequest("slb", "2013-02-21", "DescribeLoadBalancerHTTPListenerAttribute") { + : RpcServiceRequest("slb", "2014-05-15", "DescribeLoadBalancerHTTPListenerAttribute") { setMethod(HttpRequest::Method::Post); } @@ -43,13 +43,13 @@ void DescribeLoadBalancerHTTPListenerAttributeRequest::setResourceOwnerId(long r setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getAccessKeyId() const { - return accessKeyId_; +std::string DescribeLoadBalancerHTTPListenerAttributeRequest::getRegionId() const { + return regionId_; } -void DescribeLoadBalancerHTTPListenerAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void DescribeLoadBalancerHTTPListenerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } int DescribeLoadBalancerHTTPListenerAttributeRequest::getListenerPort() const { diff --git a/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc index 13698b235..48c30168c 100644 --- a/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerHTTPListenerAttributeResult.cc @@ -39,48 +39,107 @@ void DescribeLoadBalancerHTTPListenerAttributeResult::parse(const std::string &p Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); + auto allRulesNode = value["Rules"]["Rule"]; + for (auto valueRulesRule : allRulesNode) + { + Rule rulesObject; + if(!valueRulesRule["VServerGroupId"].isNull()) + rulesObject.vServerGroupId = valueRulesRule["VServerGroupId"].asString(); + if(!valueRulesRule["Url"].isNull()) + rulesObject.url = valueRulesRule["Url"].asString(); + if(!valueRulesRule["Domain"].isNull()) + rulesObject.domain = valueRulesRule["Domain"].asString(); + if(!valueRulesRule["RuleName"].isNull()) + rulesObject.ruleName = valueRulesRule["RuleName"].asString(); + if(!valueRulesRule["RuleId"].isNull()) + rulesObject.ruleId = valueRulesRule["RuleId"].asString(); + rules_.push_back(rulesObject); + } + 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 allAclIds = value["AclIds"]["AclId"]; + for (const auto &item : allAclIds) + aclIds_.push_back(item.asString()); + if(!value["AclType"].isNull()) + aclType_ = value["AclType"].asString(); if(!value["VServerGroupId"].isNull()) vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["HealthCheckHttpVersion"].isNull()) + healthCheckHttpVersion_ = value["HealthCheckHttpVersion"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["XForwardedFor_ClientSrcPort"].isNull()) + xForwardedFor_ClientSrcPort_ = value["XForwardedFor_ClientSrcPort"].asString(); if(!value["Cookie"].isNull()) cookie_ = value["Cookie"].asString(); if(!value["Gzip"].isNull()) gzip_ = value["Gzip"].asString(); + if(!value["ForwardCode"].isNull()) + forwardCode_ = std::stoi(value["ForwardCode"].asString()); + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); if(!value["HealthCheckConnectPort"].isNull()) healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); if(!value["Bandwidth"].isNull()) bandwidth_ = std::stoi(value["Bandwidth"].asString()); if(!value["HealthCheckTimeout"].isNull()) healthCheckTimeout_ = std::stoi(value["HealthCheckTimeout"].asString()); + if(!value["HealthCheckType"].isNull()) + healthCheckType_ = value["HealthCheckType"].asString(); + if(!value["AclStatus"].isNull()) + aclStatus_ = value["AclStatus"].asString(); if(!value["BackendServerPort"].isNull()) backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); if(!value["CookieTimeout"].isNull()) cookieTimeout_ = std::stoi(value["CookieTimeout"].asString()); - if(!value["URI"].isNull()) - uRI_ = value["URI"].asString(); + if(!value["HealthCheckDomain"].isNull()) + healthCheckDomain_ = value["HealthCheckDomain"].asString(); if(!value["UnhealthyThreshold"].isNull()) unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["ForwardPort"].isNull()) + forwardPort_ = std::stoi(value["ForwardPort"].asString()); if(!value["XForwardedFor_SLBID"].isNull()) xForwardedFor_SLBID_ = value["XForwardedFor_SLBID"].asString(); if(!value["SecurityStatus"].isNull()) securityStatus_ = value["SecurityStatus"].asString(); if(!value["HealthCheckHttpCode"].isNull()) healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); - if(!value["Domain"].isNull()) - domain_ = value["Domain"].asString(); if(!value["MaxConnection"].isNull()) maxConnection_ = std::stoi(value["MaxConnection"].asString()); + if(!value["ListenerForward"].isNull()) + listenerForward_ = value["ListenerForward"].asString(); if(!value["XForwardedFor"].isNull()) xForwardedFor_ = value["XForwardedFor"].asString(); + if(!value["IdleTimeout"].isNull()) + idleTimeout_ = std::stoi(value["IdleTimeout"].asString()); + if(!value["RequestTimeout"].isNull()) + requestTimeout_ = std::stoi(value["RequestTimeout"].asString()); if(!value["ListenerPort"].isNull()) listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["XForwardedFor_SLBPORT"].isNull()) + xForwardedFor_SLBPORT_ = value["XForwardedFor_SLBPORT"].asString(); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); if(!value["StickySessionType"].isNull()) stickySessionType_ = value["StickySessionType"].asString(); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); if(!value["Scheduler"].isNull()) scheduler_ = value["Scheduler"].asString(); - if(!value["Interval"].isNull()) - interval_ = std::stoi(value["Interval"].asString()); + if(!value["VpcIds"].isNull()) + vpcIds_ = value["VpcIds"].asString(); if(!value["HealthyThreshold"].isNull()) healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); if(!value["XForwardedFor_proto"].isNull()) @@ -89,8 +148,12 @@ void DescribeLoadBalancerHTTPListenerAttributeResult::parse(const std::string &p xForwardedFor_SLBIP_ = value["XForwardedFor_SLBIP"].asString(); if(!value["StickySession"].isNull()) stickySession_ = value["StickySession"].asString(); + if(!value["HealthCheckMethod"].isNull()) + healthCheckMethod_ = value["HealthCheckMethod"].asString(); if(!value["HealthCheck"].isNull()) healthCheck_ = value["HealthCheck"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); } @@ -109,11 +172,21 @@ std::string DescribeLoadBalancerHTTPListenerAttributeResult::getVServerGroupId() return vServerGroupId_; } +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getDescription()const +{ + return description_; +} + int DescribeLoadBalancerHTTPListenerAttributeResult::getUnhealthyThreshold()const { return unhealthyThreshold_; } +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckURI()const +{ + return healthCheckURI_; +} + std::string DescribeLoadBalancerHTTPListenerAttributeResult::getScheduler()const { return scheduler_; @@ -124,16 +197,21 @@ std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheck()con return healthCheck_; } +int DescribeLoadBalancerHTTPListenerAttributeResult::getIdleTimeout()const +{ + return idleTimeout_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + int DescribeLoadBalancerHTTPListenerAttributeResult::getBackendServerPort()const { return backendServerPort_; } -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getURI()const -{ - return uRI_; -} - std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor_SLBID()const { return xForwardedFor_SLBID_; @@ -144,6 +222,21 @@ int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckConnectPort() return healthCheckConnectPort_; } +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor_SLBPORT()const +{ + return xForwardedFor_SLBPORT_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + int DescribeLoadBalancerHTTPListenerAttributeResult::getBandwidth()const { return bandwidth_; @@ -174,6 +267,16 @@ std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckHttpC return healthCheckHttpCode_; } +std::vector DescribeLoadBalancerHTTPListenerAttributeResult::getTags()const +{ + return tags_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getForwardCode()const +{ + return forwardCode_; +} + std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStatus()const { return status_; @@ -184,43 +287,103 @@ std::string DescribeLoadBalancerHTTPListenerAttributeResult::getCookie()const return cookie_; } +int DescribeLoadBalancerHTTPListenerAttributeResult::getRequestTimeout()const +{ + return requestTimeout_; +} + int DescribeLoadBalancerHTTPListenerAttributeResult::getListenerPort()const { return listenerPort_; } +int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getAclId()const +{ + return aclId_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckHttpVersion()const +{ + return healthCheckHttpVersion_; +} + int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckTimeout()const { return healthCheckTimeout_; } +std::vector DescribeLoadBalancerHTTPListenerAttributeResult::getRules()const +{ + return rules_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getListenerForward()const +{ + return listenerForward_; +} + std::string DescribeLoadBalancerHTTPListenerAttributeResult::getStickySession()const { return stickySession_; } +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getAclStatus()const +{ + return aclStatus_; +} + +int DescribeLoadBalancerHTTPListenerAttributeResult::getForwardPort()const +{ + return forwardPort_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getVpcIds()const +{ + return vpcIds_; +} + int DescribeLoadBalancerHTTPListenerAttributeResult::getHealthyThreshold()const { return healthyThreshold_; } +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor_ClientSrcPort()const +{ + return xForwardedFor_ClientSrcPort_; +} + std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor()const { return xForwardedFor_; } +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getAclType()const +{ + return aclType_; +} + std::string DescribeLoadBalancerHTTPListenerAttributeResult::getXForwardedFor_proto()const { return xForwardedFor_proto_; } -std::string DescribeLoadBalancerHTTPListenerAttributeResult::getDomain()const +std::vector DescribeLoadBalancerHTTPListenerAttributeResult::getAclIds()const { - return domain_; + return aclIds_; } -int DescribeLoadBalancerHTTPListenerAttributeResult::getInterval()const +std::string DescribeLoadBalancerHTTPListenerAttributeResult::getHealthCheckType()const { - return interval_; + return healthCheckType_; } diff --git a/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc b/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc new file mode 100644 index 000000000..8f2f03e9c --- /dev/null +++ b/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeLoadBalancerHTTPSListenerAttributeRequest; + +DescribeLoadBalancerHTTPSListenerAttributeRequest::DescribeLoadBalancerHTTPSListenerAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeLoadBalancerHTTPSListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLoadBalancerHTTPSListenerAttributeRequest::~DescribeLoadBalancerHTTPSListenerAttributeRequest() {} + +std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeLoadBalancerHTTPSListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeLoadBalancerHTTPSListenerAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getTags() const { + return tags_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeLoadBalancerHTTPSListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc new file mode 100644 index 000000000..e0a38def3 --- /dev/null +++ b/slb/src/model/DescribeLoadBalancerHTTPSListenerAttributeResult.cc @@ -0,0 +1,519 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeLoadBalancerHTTPSListenerAttributeResult::DescribeLoadBalancerHTTPSListenerAttributeResult() : + ServiceResult() +{} + +DescribeLoadBalancerHTTPSListenerAttributeResult::DescribeLoadBalancerHTTPSListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLoadBalancerHTTPSListenerAttributeResult::~DescribeLoadBalancerHTTPSListenerAttributeResult() +{} + +void DescribeLoadBalancerHTTPSListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRulesNode = value["Rules"]["Rule"]; + for (auto valueRulesRule : allRulesNode) + { + Rule rulesObject; + if(!valueRulesRule["VServerGroupId"].isNull()) + rulesObject.vServerGroupId = valueRulesRule["VServerGroupId"].asString(); + if(!valueRulesRule["Url"].isNull()) + rulesObject.url = valueRulesRule["Url"].asString(); + if(!valueRulesRule["Domain"].isNull()) + rulesObject.domain = valueRulesRule["Domain"].asString(); + if(!valueRulesRule["RuleName"].isNull()) + rulesObject.ruleName = valueRulesRule["RuleName"].asString(); + if(!valueRulesRule["RuleId"].isNull()) + rulesObject.ruleId = valueRulesRule["RuleId"].asString(); + rules_.push_back(rulesObject); + } + auto allDomainExtensionsNode = value["DomainExtensions"]["DomainExtension"]; + for (auto valueDomainExtensionsDomainExtension : allDomainExtensionsNode) + { + DomainExtension domainExtensionsObject; + if(!valueDomainExtensionsDomainExtension["ServerCertificateId"].isNull()) + domainExtensionsObject.serverCertificateId = valueDomainExtensionsDomainExtension["ServerCertificateId"].asString(); + if(!valueDomainExtensionsDomainExtension["Domain"].isNull()) + domainExtensionsObject.domain = valueDomainExtensionsDomainExtension["Domain"].asString(); + if(!valueDomainExtensionsDomainExtension["DomainExtensionId"].isNull()) + domainExtensionsObject.domainExtensionId = valueDomainExtensionsDomainExtension["DomainExtensionId"].asString(); + auto allCertificatesNode = valueDomainExtensionsDomainExtension["Certificates"]["Certificate"]; + for (auto valueDomainExtensionsDomainExtensionCertificatesCertificate : allCertificatesNode) + { + DomainExtension::Certificate certificatesObject; + if(!valueDomainExtensionsDomainExtensionCertificatesCertificate["EncryptionAlgorithm"].isNull()) + certificatesObject.encryptionAlgorithm = valueDomainExtensionsDomainExtensionCertificatesCertificate["EncryptionAlgorithm"].asString(); + if(!valueDomainExtensionsDomainExtensionCertificatesCertificate["CertificateId"].isNull()) + certificatesObject.certificateId = valueDomainExtensionsDomainExtensionCertificatesCertificate["CertificateId"].asString(); + domainExtensionsObject.certificates.push_back(certificatesObject); + } + auto allServerCertificates1Node = valueDomainExtensionsDomainExtension["ServerCertificates"]["ServerCertificate"]; + for (auto valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate : allServerCertificates1Node) + { + DomainExtension::ServerCertificate serverCertificates1Object; + if(!valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["EncryptionAlgorithm"].isNull()) + serverCertificates1Object.encryptionAlgorithm = valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["EncryptionAlgorithm"].asString(); + if(!valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["StandardType"].isNull()) + serverCertificates1Object.standardType = valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["StandardType"].asString(); + if(!valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["BindingType"].isNull()) + serverCertificates1Object.bindingType = valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["BindingType"].asString(); + if(!valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["CertificateId"].isNull()) + serverCertificates1Object.certificateId = valueDomainExtensionsDomainExtensionServerCertificatesServerCertificate["CertificateId"].asString(); + domainExtensionsObject.serverCertificates1.push_back(serverCertificates1Object); + } + domainExtensions_.push_back(domainExtensionsObject); + } + auto allServerCertificatesNode = value["ServerCertificates"]["ServerCertificate"]; + for (auto valueServerCertificatesServerCertificate : allServerCertificatesNode) + { + ServerCertificate2 serverCertificatesObject; + if(!valueServerCertificatesServerCertificate["EncryptionAlgorithm"].isNull()) + serverCertificatesObject.encryptionAlgorithm = valueServerCertificatesServerCertificate["EncryptionAlgorithm"].asString(); + if(!valueServerCertificatesServerCertificate["StandardType"].isNull()) + serverCertificatesObject.standardType = valueServerCertificatesServerCertificate["StandardType"].asString(); + if(!valueServerCertificatesServerCertificate["BindingType"].isNull()) + serverCertificatesObject.bindingType = valueServerCertificatesServerCertificate["BindingType"].asString(); + if(!valueServerCertificatesServerCertificate["CertificateId"].isNull()) + serverCertificatesObject.certificateId = valueServerCertificatesServerCertificate["CertificateId"].asString(); + serverCertificates_.push_back(serverCertificatesObject); + } + 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 allAclIds = value["AclIds"]["AclId"]; + for (const auto &item : allAclIds) + aclIds_.push_back(item.asString()); + if(!value["AclType"].isNull()) + aclType_ = value["AclType"].asString(); + if(!value["XForwardedFor_ClientCertClientVerify"].isNull()) + xForwardedFor_ClientCertClientVerify_ = value["XForwardedFor_ClientCertClientVerify"].asString(); + if(!value["CACertificateId"].isNull()) + cACertificateId_ = value["CACertificateId"].asString(); + if(!value["XForwardedFor_ClientCertClientVerifyAlias"].isNull()) + xForwardedFor_ClientCertClientVerifyAlias_ = value["XForwardedFor_ClientCertClientVerifyAlias"].asString(); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["BackendProtocol"].isNull()) + backendProtocol_ = value["BackendProtocol"].asString(); + if(!value["HealthCheckType"].isNull()) + healthCheckType_ = value["HealthCheckType"].asString(); + if(!value["BackendServerPort"].isNull()) + backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); + if(!value["CookieTimeout"].isNull()) + cookieTimeout_ = std::stoi(value["CookieTimeout"].asString()); + if(!value["HealthCheckDomain"].isNull()) + healthCheckDomain_ = value["HealthCheckDomain"].asString(); + if(!value["XForwardedFor_ClientCertFingerprintAlias"].isNull()) + xForwardedFor_ClientCertFingerprintAlias_ = value["XForwardedFor_ClientCertFingerprintAlias"].asString(); + if(!value["XForwardedFor_ClientCertIssuerDNAlias"].isNull()) + xForwardedFor_ClientCertIssuerDNAlias_ = value["XForwardedFor_ClientCertIssuerDNAlias"].asString(); + if(!value["XForwardedFor"].isNull()) + xForwardedFor_ = value["XForwardedFor"].asString(); + if(!value["XForwardedFor_ClientCertFingerprint"].isNull()) + xForwardedFor_ClientCertFingerprint_ = value["XForwardedFor_ClientCertFingerprint"].asString(); + if(!value["IdleTimeout"].isNull()) + idleTimeout_ = std::stoi(value["IdleTimeout"].asString()); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); + if(!value["XForwardedFor_SLBPORT"].isNull()) + xForwardedFor_SLBPORT_ = value["XForwardedFor_SLBPORT"].asString(); + if(!value["StickySessionType"].isNull()) + stickySessionType_ = value["StickySessionType"].asString(); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["XForwardedFor_proto"].isNull()) + xForwardedFor_proto_ = value["XForwardedFor_proto"].asString(); + if(!value["HealthCheckMethod"].isNull()) + healthCheckMethod_ = value["HealthCheckMethod"].asString(); + if(!value["TLSCipherPolicy"].isNull()) + tLSCipherPolicy_ = value["TLSCipherPolicy"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["HealthCheckHttpVersion"].isNull()) + healthCheckHttpVersion_ = value["HealthCheckHttpVersion"].asString(); + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["XForwardedFor_ClientSrcPort"].isNull()) + xForwardedFor_ClientSrcPort_ = value["XForwardedFor_ClientSrcPort"].asString(); + if(!value["Cookie"].isNull()) + cookie_ = value["Cookie"].asString(); + if(!value["Gzip"].isNull()) + gzip_ = value["Gzip"].asString(); + if(!value["EnableHttp2"].isNull()) + enableHttp2_ = value["EnableHttp2"].asString(); + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["HealthCheckTimeout"].isNull()) + healthCheckTimeout_ = std::stoi(value["HealthCheckTimeout"].asString()); + if(!value["AclStatus"].isNull()) + aclStatus_ = value["AclStatus"].asString(); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["XForwardedFor_SLBID"].isNull()) + xForwardedFor_SLBID_ = value["XForwardedFor_SLBID"].asString(); + if(!value["XForwardedFor_ClientCertSubjectDN"].isNull()) + xForwardedFor_ClientCertSubjectDN_ = value["XForwardedFor_ClientCertSubjectDN"].asString(); + if(!value["SecurityStatus"].isNull()) + securityStatus_ = value["SecurityStatus"].asString(); + if(!value["HealthCheckHttpCode"].isNull()) + healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); + if(!value["XForwardedFor_ClientCertSubjectDNAlias"].isNull()) + xForwardedFor_ClientCertSubjectDNAlias_ = value["XForwardedFor_ClientCertSubjectDNAlias"].asString(); + if(!value["MaxConnection"].isNull()) + maxConnection_ = std::stoi(value["MaxConnection"].asString()); + if(!value["RequestTimeout"].isNull()) + requestTimeout_ = std::stoi(value["RequestTimeout"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["ServerCertificateId"].isNull()) + serverCertificateId_ = value["ServerCertificateId"].asString(); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["XForwardedFor_ClientCertIssuerDN"].isNull()) + xForwardedFor_ClientCertIssuerDN_ = value["XForwardedFor_ClientCertIssuerDN"].asString(); + if(!value["VpcIds"].isNull()) + vpcIds_ = value["VpcIds"].asString(); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["XForwardedFor_SLBIP"].isNull()) + xForwardedFor_SLBIP_ = value["XForwardedFor_SLBIP"].asString(); + if(!value["StickySession"].isNull()) + stickySession_ = value["StickySession"].asString(); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckURI()const +{ + return healthCheckURI_; +} + +std::vector DescribeLoadBalancerHTTPSListenerAttributeResult::getDomainExtensions()const +{ + return domainExtensions_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getBackendServerPort()const +{ + return backendServerPort_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_SLBPORT()const +{ + return xForwardedFor_SLBPORT_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStickySessionType()const +{ + return stickySessionType_; +} + +std::vector DescribeLoadBalancerHTTPSListenerAttributeResult::getTags()const +{ + return tags_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_ClientCertSubjectDNAlias()const +{ + return xForwardedFor_ClientCertSubjectDNAlias_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStatus()const +{ + return status_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getCookie()const +{ + return cookie_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_ClientCertClientVerifyAlias()const +{ + return xForwardedFor_ClientCertClientVerifyAlias_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getRequestTimeout()const +{ + return requestTimeout_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getTLSCipherPolicy()const +{ + return tLSCipherPolicy_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getCACertificateId()const +{ + return cACertificateId_; +} + +std::vector DescribeLoadBalancerHTTPSListenerAttributeResult::getServerCertificates()const +{ + return serverCertificates_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_ClientCertFingerprintAlias()const +{ + return xForwardedFor_ClientCertFingerprintAlias_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckTimeout()const +{ + return healthCheckTimeout_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getAclStatus()const +{ + return aclStatus_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getVpcIds()const +{ + return vpcIds_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getAclType()const +{ + return aclType_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_proto()const +{ + return xForwardedFor_proto_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getEnableHttp2()const +{ + return enableHttp2_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckType()const +{ + return healthCheckType_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getCookieTimeout()const +{ + return cookieTimeout_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getMaxConnection()const +{ + return maxConnection_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getBackendProtocol()const +{ + return backendProtocol_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getDescription()const +{ + return description_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getScheduler()const +{ + return scheduler_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getIdleTimeout()const +{ + return idleTimeout_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_SLBID()const +{ + return xForwardedFor_SLBID_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getSecurityStatus()const +{ + return securityStatus_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getGzip()const +{ + return gzip_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getServerCertificateId()const +{ + return serverCertificateId_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_SLBIP()const +{ + return xForwardedFor_SLBIP_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckHttpCode()const +{ + return healthCheckHttpCode_; +} + +int DescribeLoadBalancerHTTPSListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_ClientCertSubjectDN()const +{ + return xForwardedFor_ClientCertSubjectDN_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getAclId()const +{ + return aclId_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_ClientCertIssuerDNAlias()const +{ + return xForwardedFor_ClientCertIssuerDNAlias_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getHealthCheckHttpVersion()const +{ + return healthCheckHttpVersion_; +} + +std::vector DescribeLoadBalancerHTTPSListenerAttributeResult::getRules()const +{ + return rules_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_ClientCertIssuerDN()const +{ + return xForwardedFor_ClientCertIssuerDN_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getStickySession()const +{ + return stickySession_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor()const +{ + return xForwardedFor_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_ClientSrcPort()const +{ + return xForwardedFor_ClientSrcPort_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_ClientCertClientVerify()const +{ + return xForwardedFor_ClientCertClientVerify_; +} + +std::string DescribeLoadBalancerHTTPSListenerAttributeResult::getXForwardedFor_ClientCertFingerprint()const +{ + return xForwardedFor_ClientCertFingerprint_; +} + +std::vector DescribeLoadBalancerHTTPSListenerAttributeResult::getAclIds()const +{ + return aclIds_; +} + diff --git a/slb/src/model/DescribeLoadBalancerListenersRequest.cc b/slb/src/model/DescribeLoadBalancerListenersRequest.cc new file mode 100644 index 000000000..01502b359 --- /dev/null +++ b/slb/src/model/DescribeLoadBalancerListenersRequest.cc @@ -0,0 +1,139 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeLoadBalancerListenersRequest; + +DescribeLoadBalancerListenersRequest::DescribeLoadBalancerListenersRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeLoadBalancerListeners") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLoadBalancerListenersRequest::~DescribeLoadBalancerListenersRequest() {} + +long DescribeLoadBalancerListenersRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeLoadBalancerListenersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeLoadBalancerListenersRequest::getDescription() const { + return description_; +} + +void DescribeLoadBalancerListenersRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string DescribeLoadBalancerListenersRequest::getRegionId() const { + return regionId_; +} + +void DescribeLoadBalancerListenersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeLoadBalancerListenersRequest::getNextToken() const { + return nextToken_; +} + +void DescribeLoadBalancerListenersRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector DescribeLoadBalancerListenersRequest::getTag() const { + return tag_; +} + +void DescribeLoadBalancerListenersRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +int DescribeLoadBalancerListenersRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeLoadBalancerListenersRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DescribeLoadBalancerListenersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeLoadBalancerListenersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeLoadBalancerListenersRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeLoadBalancerListenersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeLoadBalancerListenersRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeLoadBalancerListenersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeLoadBalancerListenersRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void DescribeLoadBalancerListenersRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::vector DescribeLoadBalancerListenersRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeLoadBalancerListenersRequest::setLoadBalancerId(const std::vector &loadBalancerId) { + loadBalancerId_ = loadBalancerId; +} + +int DescribeLoadBalancerListenersRequest::getMaxResults() const { + return maxResults_; +} + +void DescribeLoadBalancerListenersRequest::setMaxResults(int maxResults) { + maxResults_ = maxResults; + setParameter(std::string("MaxResults"), std::to_string(maxResults)); +} + diff --git a/slb/src/model/DescribeLoadBalancerListenersResult.cc b/slb/src/model/DescribeLoadBalancerListenersResult.cc new file mode 100644 index 000000000..f544490cc --- /dev/null +++ b/slb/src/model/DescribeLoadBalancerListenersResult.cc @@ -0,0 +1,434 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeLoadBalancerListenersResult::DescribeLoadBalancerListenersResult() : + ServiceResult() +{} + +DescribeLoadBalancerListenersResult::DescribeLoadBalancerListenersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLoadBalancerListenersResult::~DescribeLoadBalancerListenersResult() +{} + +void DescribeLoadBalancerListenersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allListenersNode = value["Listeners"]["Listener"]; + for (auto valueListenersListener : allListenersNode) + { + Listener listenersObject; + if(!valueListenersListener["AclType"].isNull()) + listenersObject.aclType = valueListenersListener["AclType"].asString(); + if(!valueListenersListener["Status"].isNull()) + listenersObject.status = valueListenersListener["Status"].asString(); + if(!valueListenersListener["VServerGroupId"].isNull()) + listenersObject.vServerGroupId = valueListenersListener["VServerGroupId"].asString(); + if(!valueListenersListener["ListenerProtocol"].isNull()) + listenersObject.listenerProtocol = valueListenersListener["ListenerProtocol"].asString(); + if(!valueListenersListener["LoadBalancerId"].isNull()) + listenersObject.loadBalancerId = valueListenersListener["LoadBalancerId"].asString(); + if(!valueListenersListener["ListenerPort"].isNull()) + listenersObject.listenerPort = std::stoi(valueListenersListener["ListenerPort"].asString()); + if(!valueListenersListener["ServiceManagedMode"].isNull()) + listenersObject.serviceManagedMode = valueListenersListener["ServiceManagedMode"].asString(); + if(!valueListenersListener["AclId"].isNull()) + listenersObject.aclId = valueListenersListener["AclId"].asString(); + if(!valueListenersListener["Scheduler"].isNull()) + listenersObject.scheduler = valueListenersListener["Scheduler"].asString(); + if(!valueListenersListener["Bandwidth"].isNull()) + listenersObject.bandwidth = std::stoi(valueListenersListener["Bandwidth"].asString()); + if(!valueListenersListener["Description"].isNull()) + listenersObject.description = valueListenersListener["Description"].asString(); + if(!valueListenersListener["AclStatus"].isNull()) + listenersObject.aclStatus = valueListenersListener["AclStatus"].asString(); + if(!valueListenersListener["BackendServerPort"].isNull()) + listenersObject.backendServerPort = std::stoi(valueListenersListener["BackendServerPort"].asString()); + if(!valueListenersListener["BackendProtocol"].isNull()) + listenersObject.backendProtocol = valueListenersListener["BackendProtocol"].asString(); + auto allTagsNode = valueListenersListener["Tags"]["Tag"]; + for (auto valueListenersListenerTagsTag : allTagsNode) + { + Listener::Tag tagsObject; + if(!valueListenersListenerTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueListenersListenerTagsTag["TagValue"].asString(); + if(!valueListenersListenerTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueListenersListenerTagsTag["TagKey"].asString(); + listenersObject.tags.push_back(tagsObject); + } + auto hTTPListenerConfigNode = value["HTTPListenerConfig"]; + if(!hTTPListenerConfigNode["HealthCheckHttpVersion"].isNull()) + listenersObject.hTTPListenerConfig.healthCheckHttpVersion = hTTPListenerConfigNode["HealthCheckHttpVersion"].asString(); + if(!hTTPListenerConfigNode["XForwardedFor_ClientSrcPort"].isNull()) + listenersObject.hTTPListenerConfig.xForwardedFor_ClientSrcPort = hTTPListenerConfigNode["XForwardedFor_ClientSrcPort"].asString(); + if(!hTTPListenerConfigNode["Cookie"].isNull()) + listenersObject.hTTPListenerConfig.cookie = hTTPListenerConfigNode["Cookie"].asString(); + if(!hTTPListenerConfigNode["Gzip"].isNull()) + listenersObject.hTTPListenerConfig.gzip = hTTPListenerConfigNode["Gzip"].asString(); + if(!hTTPListenerConfigNode["ForwardCode"].isNull()) + listenersObject.hTTPListenerConfig.forwardCode = std::stoi(hTTPListenerConfigNode["ForwardCode"].asString()); + if(!hTTPListenerConfigNode["HealthCheckConnectPort"].isNull()) + listenersObject.hTTPListenerConfig.healthCheckConnectPort = std::stoi(hTTPListenerConfigNode["HealthCheckConnectPort"].asString()); + if(!hTTPListenerConfigNode["HealthCheckTimeout"].isNull()) + listenersObject.hTTPListenerConfig.healthCheckTimeout = std::stoi(hTTPListenerConfigNode["HealthCheckTimeout"].asString()); + if(!hTTPListenerConfigNode["HealthCheckType"].isNull()) + listenersObject.hTTPListenerConfig.healthCheckType = hTTPListenerConfigNode["HealthCheckType"].asString(); + if(!hTTPListenerConfigNode["CookieTimeout"].isNull()) + listenersObject.hTTPListenerConfig.cookieTimeout = std::stoi(hTTPListenerConfigNode["CookieTimeout"].asString()); + if(!hTTPListenerConfigNode["HealthCheckDomain"].isNull()) + listenersObject.hTTPListenerConfig.healthCheckDomain = hTTPListenerConfigNode["HealthCheckDomain"].asString(); + if(!hTTPListenerConfigNode["UnhealthyThreshold"].isNull()) + listenersObject.hTTPListenerConfig.unhealthyThreshold = std::stoi(hTTPListenerConfigNode["UnhealthyThreshold"].asString()); + if(!hTTPListenerConfigNode["XForwardedFor_SLBID"].isNull()) + listenersObject.hTTPListenerConfig.xForwardedFor_SLBID = hTTPListenerConfigNode["XForwardedFor_SLBID"].asString(); + if(!hTTPListenerConfigNode["ForwardPort"].isNull()) + listenersObject.hTTPListenerConfig.forwardPort = std::stoi(hTTPListenerConfigNode["ForwardPort"].asString()); + if(!hTTPListenerConfigNode["HealthCheckHttpCode"].isNull()) + listenersObject.hTTPListenerConfig.healthCheckHttpCode = hTTPListenerConfigNode["HealthCheckHttpCode"].asString(); + if(!hTTPListenerConfigNode["ListenerForward"].isNull()) + listenersObject.hTTPListenerConfig.listenerForward = hTTPListenerConfigNode["ListenerForward"].asString(); + if(!hTTPListenerConfigNode["XForwardedFor"].isNull()) + listenersObject.hTTPListenerConfig.xForwardedFor = hTTPListenerConfigNode["XForwardedFor"].asString(); + if(!hTTPListenerConfigNode["IdleTimeout"].isNull()) + listenersObject.hTTPListenerConfig.idleTimeout = std::stoi(hTTPListenerConfigNode["IdleTimeout"].asString()); + if(!hTTPListenerConfigNode["RequestTimeout"].isNull()) + listenersObject.hTTPListenerConfig.requestTimeout = std::stoi(hTTPListenerConfigNode["RequestTimeout"].asString()); + if(!hTTPListenerConfigNode["HealthCheckInterval"].isNull()) + listenersObject.hTTPListenerConfig.healthCheckInterval = std::stoi(hTTPListenerConfigNode["HealthCheckInterval"].asString()); + if(!hTTPListenerConfigNode["XForwardedFor_SLBPORT"].isNull()) + listenersObject.hTTPListenerConfig.xForwardedFor_SLBPORT = hTTPListenerConfigNode["XForwardedFor_SLBPORT"].asString(); + if(!hTTPListenerConfigNode["HealthCheckURI"].isNull()) + listenersObject.hTTPListenerConfig.healthCheckURI = hTTPListenerConfigNode["HealthCheckURI"].asString(); + if(!hTTPListenerConfigNode["StickySessionType"].isNull()) + listenersObject.hTTPListenerConfig.stickySessionType = hTTPListenerConfigNode["StickySessionType"].asString(); + if(!hTTPListenerConfigNode["HealthyThreshold"].isNull()) + listenersObject.hTTPListenerConfig.healthyThreshold = std::stoi(hTTPListenerConfigNode["HealthyThreshold"].asString()); + if(!hTTPListenerConfigNode["XForwardedFor_proto"].isNull()) + listenersObject.hTTPListenerConfig.xForwardedFor_proto = hTTPListenerConfigNode["XForwardedFor_proto"].asString(); + if(!hTTPListenerConfigNode["XForwardedFor_SLBIP"].isNull()) + listenersObject.hTTPListenerConfig.xForwardedFor_SLBIP = hTTPListenerConfigNode["XForwardedFor_SLBIP"].asString(); + if(!hTTPListenerConfigNode["StickySession"].isNull()) + listenersObject.hTTPListenerConfig.stickySession = hTTPListenerConfigNode["StickySession"].asString(); + if(!hTTPListenerConfigNode["HealthCheckMethod"].isNull()) + listenersObject.hTTPListenerConfig.healthCheckMethod = hTTPListenerConfigNode["HealthCheckMethod"].asString(); + if(!hTTPListenerConfigNode["HealthCheck"].isNull()) + listenersObject.hTTPListenerConfig.healthCheck = hTTPListenerConfigNode["HealthCheck"].asString(); + if(!hTTPListenerConfigNode["MaxConnection"].isNull()) + listenersObject.hTTPListenerConfig.maxConnection = std::stoi(hTTPListenerConfigNode["MaxConnection"].asString()); + auto hTTPSListenerConfigNode = value["HTTPSListenerConfig"]; + if(!hTTPSListenerConfigNode["XForwardedFor_ClientCertClientVerify"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_ClientCertClientVerify = hTTPSListenerConfigNode["XForwardedFor_ClientCertClientVerify"].asString(); + if(!hTTPSListenerConfigNode["HealthCheckHttpVersion"].isNull()) + listenersObject.hTTPSListenerConfig.healthCheckHttpVersion = hTTPSListenerConfigNode["HealthCheckHttpVersion"].asString(); + if(!hTTPSListenerConfigNode["XForwardedFor_ClientSrcPort"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_ClientSrcPort = hTTPSListenerConfigNode["XForwardedFor_ClientSrcPort"].asString(); + if(!hTTPSListenerConfigNode["Cookie"].isNull()) + listenersObject.hTTPSListenerConfig.cookie = hTTPSListenerConfigNode["Cookie"].asString(); + if(!hTTPSListenerConfigNode["Gzip"].isNull()) + listenersObject.hTTPSListenerConfig.gzip = hTTPSListenerConfigNode["Gzip"].asString(); + if(!hTTPSListenerConfigNode["EnableHttp2"].isNull()) + listenersObject.hTTPSListenerConfig.enableHttp2 = hTTPSListenerConfigNode["EnableHttp2"].asString(); + if(!hTTPSListenerConfigNode["CACertificateId"].isNull()) + listenersObject.hTTPSListenerConfig.cACertificateId = hTTPSListenerConfigNode["CACertificateId"].asString(); + if(!hTTPSListenerConfigNode["XForwardedFor_ClientCertClientVerifyAlias"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_ClientCertClientVerifyAlias = hTTPSListenerConfigNode["XForwardedFor_ClientCertClientVerifyAlias"].asString(); + if(!hTTPSListenerConfigNode["HealthCheckConnectPort"].isNull()) + listenersObject.hTTPSListenerConfig.healthCheckConnectPort = std::stoi(hTTPSListenerConfigNode["HealthCheckConnectPort"].asString()); + if(!hTTPSListenerConfigNode["HealthCheckTimeout"].isNull()) + listenersObject.hTTPSListenerConfig.healthCheckTimeout = std::stoi(hTTPSListenerConfigNode["HealthCheckTimeout"].asString()); + if(!hTTPSListenerConfigNode["HealthCheckType"].isNull()) + listenersObject.hTTPSListenerConfig.healthCheckType = hTTPSListenerConfigNode["HealthCheckType"].asString(); + if(!hTTPSListenerConfigNode["CookieTimeout"].isNull()) + listenersObject.hTTPSListenerConfig.cookieTimeout = std::stoi(hTTPSListenerConfigNode["CookieTimeout"].asString()); + if(!hTTPSListenerConfigNode["HealthCheckDomain"].isNull()) + listenersObject.hTTPSListenerConfig.healthCheckDomain = hTTPSListenerConfigNode["HealthCheckDomain"].asString(); + if(!hTTPSListenerConfigNode["UnhealthyThreshold"].isNull()) + listenersObject.hTTPSListenerConfig.unhealthyThreshold = std::stoi(hTTPSListenerConfigNode["UnhealthyThreshold"].asString()); + if(!hTTPSListenerConfigNode["XForwardedFor_SLBID"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_SLBID = hTTPSListenerConfigNode["XForwardedFor_SLBID"].asString(); + if(!hTTPSListenerConfigNode["XForwardedFor_ClientCertSubjectDN"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_ClientCertSubjectDN = hTTPSListenerConfigNode["XForwardedFor_ClientCertSubjectDN"].asString(); + if(!hTTPSListenerConfigNode["HealthCheckHttpCode"].isNull()) + listenersObject.hTTPSListenerConfig.healthCheckHttpCode = hTTPSListenerConfigNode["HealthCheckHttpCode"].asString(); + if(!hTTPSListenerConfigNode["XForwardedFor_ClientCertFingerprintAlias"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_ClientCertFingerprintAlias = hTTPSListenerConfigNode["XForwardedFor_ClientCertFingerprintAlias"].asString(); + if(!hTTPSListenerConfigNode["XForwardedFor_ClientCertSubjectDNAlias"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_ClientCertSubjectDNAlias = hTTPSListenerConfigNode["XForwardedFor_ClientCertSubjectDNAlias"].asString(); + if(!hTTPSListenerConfigNode["XForwardedFor_ClientCertIssuerDNAlias"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_ClientCertIssuerDNAlias = hTTPSListenerConfigNode["XForwardedFor_ClientCertIssuerDNAlias"].asString(); + if(!hTTPSListenerConfigNode["XForwardedFor_ClientCertFingerprint"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_ClientCertFingerprint = hTTPSListenerConfigNode["XForwardedFor_ClientCertFingerprint"].asString(); + if(!hTTPSListenerConfigNode["XForwardedFor"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor = hTTPSListenerConfigNode["XForwardedFor"].asString(); + if(!hTTPSListenerConfigNode["RequestTimeout"].isNull()) + listenersObject.hTTPSListenerConfig.requestTimeout = std::stoi(hTTPSListenerConfigNode["RequestTimeout"].asString()); + if(!hTTPSListenerConfigNode["IdleTimeout"].isNull()) + listenersObject.hTTPSListenerConfig.idleTimeout = std::stoi(hTTPSListenerConfigNode["IdleTimeout"].asString()); + if(!hTTPSListenerConfigNode["ServerCertificateId"].isNull()) + listenersObject.hTTPSListenerConfig.serverCertificateId = hTTPSListenerConfigNode["ServerCertificateId"].asString(); + if(!hTTPSListenerConfigNode["HealthCheckInterval"].isNull()) + listenersObject.hTTPSListenerConfig.healthCheckInterval = std::stoi(hTTPSListenerConfigNode["HealthCheckInterval"].asString()); + if(!hTTPSListenerConfigNode["XForwardedFor_SLBPORT"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_SLBPORT = hTTPSListenerConfigNode["XForwardedFor_SLBPORT"].asString(); + if(!hTTPSListenerConfigNode["HealthCheckURI"].isNull()) + listenersObject.hTTPSListenerConfig.healthCheckURI = hTTPSListenerConfigNode["HealthCheckURI"].asString(); + if(!hTTPSListenerConfigNode["StickySessionType"].isNull()) + listenersObject.hTTPSListenerConfig.stickySessionType = hTTPSListenerConfigNode["StickySessionType"].asString(); + if(!hTTPSListenerConfigNode["XForwardedFor_ClientCertIssuerDN"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_ClientCertIssuerDN = hTTPSListenerConfigNode["XForwardedFor_ClientCertIssuerDN"].asString(); + if(!hTTPSListenerConfigNode["HealthyThreshold"].isNull()) + listenersObject.hTTPSListenerConfig.healthyThreshold = std::stoi(hTTPSListenerConfigNode["HealthyThreshold"].asString()); + if(!hTTPSListenerConfigNode["XForwardedFor_proto"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_proto = hTTPSListenerConfigNode["XForwardedFor_proto"].asString(); + if(!hTTPSListenerConfigNode["XForwardedFor_SLBIP"].isNull()) + listenersObject.hTTPSListenerConfig.xForwardedFor_SLBIP = hTTPSListenerConfigNode["XForwardedFor_SLBIP"].asString(); + if(!hTTPSListenerConfigNode["StickySession"].isNull()) + listenersObject.hTTPSListenerConfig.stickySession = hTTPSListenerConfigNode["StickySession"].asString(); + if(!hTTPSListenerConfigNode["HealthCheckMethod"].isNull()) + listenersObject.hTTPSListenerConfig.healthCheckMethod = hTTPSListenerConfigNode["HealthCheckMethod"].asString(); + if(!hTTPSListenerConfigNode["TLSCipherPolicy"].isNull()) + listenersObject.hTTPSListenerConfig.tLSCipherPolicy = hTTPSListenerConfigNode["TLSCipherPolicy"].asString(); + if(!hTTPSListenerConfigNode["HealthCheck"].isNull()) + listenersObject.hTTPSListenerConfig.healthCheck = hTTPSListenerConfigNode["HealthCheck"].asString(); + if(!hTTPSListenerConfigNode["MaxConnection"].isNull()) + listenersObject.hTTPSListenerConfig.maxConnection = std::stoi(hTTPSListenerConfigNode["MaxConnection"].asString()); + auto allServerCertificatesNode = hTTPSListenerConfigNode["ServerCertificates"]["ServerCertificate"]; + for (auto hTTPSListenerConfigNodeServerCertificatesServerCertificate : allServerCertificatesNode) + { + Listener::HTTPSListenerConfig::ServerCertificate serverCertificateObject; + if(!hTTPSListenerConfigNodeServerCertificatesServerCertificate["EncryptionAlgorithm"].isNull()) + serverCertificateObject.encryptionAlgorithm = hTTPSListenerConfigNodeServerCertificatesServerCertificate["EncryptionAlgorithm"].asString(); + if(!hTTPSListenerConfigNodeServerCertificatesServerCertificate["StandardType"].isNull()) + serverCertificateObject.standardType = hTTPSListenerConfigNodeServerCertificatesServerCertificate["StandardType"].asString(); + if(!hTTPSListenerConfigNodeServerCertificatesServerCertificate["BindingType"].isNull()) + serverCertificateObject.bindingType = hTTPSListenerConfigNodeServerCertificatesServerCertificate["BindingType"].asString(); + if(!hTTPSListenerConfigNodeServerCertificatesServerCertificate["CertificateId"].isNull()) + serverCertificateObject.certificateId = hTTPSListenerConfigNodeServerCertificatesServerCertificate["CertificateId"].asString(); + listenersObject.hTTPSListenerConfig.serverCertificates.push_back(serverCertificateObject); + } + auto tCPListenerConfigNode = value["TCPListenerConfig"]; + if(!tCPListenerConfigNode["HealthCheckHttpCode"].isNull()) + listenersObject.tCPListenerConfig.healthCheckHttpCode = tCPListenerConfigNode["HealthCheckHttpCode"].asString(); + if(!tCPListenerConfigNode["ConnectionDrainTimeout"].isNull()) + listenersObject.tCPListenerConfig.connectionDrainTimeout = std::stoi(tCPListenerConfigNode["ConnectionDrainTimeout"].asString()); + if(!tCPListenerConfigNode["PersistenceTimeout"].isNull()) + listenersObject.tCPListenerConfig.persistenceTimeout = std::stoi(tCPListenerConfigNode["PersistenceTimeout"].asString()); + if(!tCPListenerConfigNode["HealthCheckInterval"].isNull()) + listenersObject.tCPListenerConfig.healthCheckInterval = std::stoi(tCPListenerConfigNode["HealthCheckInterval"].asString()); + if(!tCPListenerConfigNode["HealthCheckURI"].isNull()) + listenersObject.tCPListenerConfig.healthCheckURI = tCPListenerConfigNode["HealthCheckURI"].asString(); + if(!tCPListenerConfigNode["HealthCheckSwitch"].isNull()) + listenersObject.tCPListenerConfig.healthCheckSwitch = tCPListenerConfigNode["HealthCheckSwitch"].asString(); + if(!tCPListenerConfigNode["FullNatEnabled"].isNull()) + listenersObject.tCPListenerConfig.fullNatEnabled = tCPListenerConfigNode["FullNatEnabled"].asString(); + if(!tCPListenerConfigNode["HealthCheckConnectPort"].isNull()) + listenersObject.tCPListenerConfig.healthCheckConnectPort = std::stoi(tCPListenerConfigNode["HealthCheckConnectPort"].asString()); + if(!tCPListenerConfigNode["EstablishedTimeout"].isNull()) + listenersObject.tCPListenerConfig.establishedTimeout = std::stoi(tCPListenerConfigNode["EstablishedTimeout"].asString()); + if(!tCPListenerConfigNode["HealthCheckType"].isNull()) + listenersObject.tCPListenerConfig.healthCheckType = tCPListenerConfigNode["HealthCheckType"].asString(); + if(!tCPListenerConfigNode["HealthCheckConnectTimeout"].isNull()) + listenersObject.tCPListenerConfig.healthCheckConnectTimeout = std::stoi(tCPListenerConfigNode["HealthCheckConnectTimeout"].asString()); + if(!tCPListenerConfigNode["MasterSlaveServerGroupId"].isNull()) + listenersObject.tCPListenerConfig.masterSlaveServerGroupId = tCPListenerConfigNode["MasterSlaveServerGroupId"].asString(); + if(!tCPListenerConfigNode["HealthyThreshold"].isNull()) + listenersObject.tCPListenerConfig.healthyThreshold = std::stoi(tCPListenerConfigNode["HealthyThreshold"].asString()); + if(!tCPListenerConfigNode["HealthCheckDomain"].isNull()) + listenersObject.tCPListenerConfig.healthCheckDomain = tCPListenerConfigNode["HealthCheckDomain"].asString(); + if(!tCPListenerConfigNode["UnhealthyThreshold"].isNull()) + listenersObject.tCPListenerConfig.unhealthyThreshold = std::stoi(tCPListenerConfigNode["UnhealthyThreshold"].asString()); + if(!tCPListenerConfigNode["ConnectionDrain"].isNull()) + listenersObject.tCPListenerConfig.connectionDrain = tCPListenerConfigNode["ConnectionDrain"].asString(); + if(!tCPListenerConfigNode["HealthCheckMethod"].isNull()) + listenersObject.tCPListenerConfig.healthCheckMethod = tCPListenerConfigNode["HealthCheckMethod"].asString(); + if(!tCPListenerConfigNode["HealthCheck"].isNull()) + listenersObject.tCPListenerConfig.healthCheck = tCPListenerConfigNode["HealthCheck"].asString(); + if(!tCPListenerConfigNode["ProxyProtocolV2Enabled"].isNull()) + listenersObject.tCPListenerConfig.proxyProtocolV2Enabled = tCPListenerConfigNode["ProxyProtocolV2Enabled"].asString(); + if(!tCPListenerConfigNode["HealthCheckTcpFastCloseEnabled"].isNull()) + listenersObject.tCPListenerConfig.healthCheckTcpFastCloseEnabled = tCPListenerConfigNode["HealthCheckTcpFastCloseEnabled"].asString() == "true"; + if(!tCPListenerConfigNode["MasterSlaveModeEnabled"].isNull()) + listenersObject.tCPListenerConfig.masterSlaveModeEnabled = tCPListenerConfigNode["MasterSlaveModeEnabled"].asString() == "true"; + if(!tCPListenerConfigNode["MasterServerGroupId"].isNull()) + listenersObject.tCPListenerConfig.masterServerGroupId = tCPListenerConfigNode["MasterServerGroupId"].asString(); + if(!tCPListenerConfigNode["SlaveServerGroupId"].isNull()) + listenersObject.tCPListenerConfig.slaveServerGroupId = tCPListenerConfigNode["SlaveServerGroupId"].asString(); + if(!tCPListenerConfigNode["FailoverThreshold"].isNull()) + listenersObject.tCPListenerConfig.failoverThreshold = std::stoi(tCPListenerConfigNode["FailoverThreshold"].asString()); + if(!tCPListenerConfigNode["FailoverStrategy"].isNull()) + listenersObject.tCPListenerConfig.failoverStrategy = tCPListenerConfigNode["FailoverStrategy"].asString(); + if(!tCPListenerConfigNode["MaxConnection"].isNull()) + listenersObject.tCPListenerConfig.maxConnection = std::stoi(tCPListenerConfigNode["MaxConnection"].asString()); + auto allPortRangesNode = tCPListenerConfigNode["PortRanges"]["PortRange"]; + for (auto tCPListenerConfigNodePortRangesPortRange : allPortRangesNode) + { + Listener::TCPListenerConfig::PortRange portRangeObject; + if(!tCPListenerConfigNodePortRangesPortRange["StartPort"].isNull()) + portRangeObject.startPort = std::stoi(tCPListenerConfigNodePortRangesPortRange["StartPort"].asString()); + if(!tCPListenerConfigNodePortRangesPortRange["EndPort"].isNull()) + portRangeObject.endPort = std::stoi(tCPListenerConfigNodePortRangesPortRange["EndPort"].asString()); + listenersObject.tCPListenerConfig.portRanges.push_back(portRangeObject); + } + auto tCPSListenerConfigNode = value["TCPSListenerConfig"]; + if(!tCPSListenerConfigNode["HealthCheckHttpCode"].isNull()) + listenersObject.tCPSListenerConfig.healthCheckHttpCode = tCPSListenerConfigNode["HealthCheckHttpCode"].asString(); + if(!tCPSListenerConfigNode["Cookie"].isNull()) + listenersObject.tCPSListenerConfig.cookie = tCPSListenerConfigNode["Cookie"].asString(); + if(!tCPSListenerConfigNode["IdleTimeout"].isNull()) + listenersObject.tCPSListenerConfig.idleTimeout = std::stoi(tCPSListenerConfigNode["IdleTimeout"].asString()); + if(!tCPSListenerConfigNode["ServerCertificateId"].isNull()) + listenersObject.tCPSListenerConfig.serverCertificateId = tCPSListenerConfigNode["ServerCertificateId"].asString(); + if(!tCPSListenerConfigNode["HealthCheckInterval"].isNull()) + listenersObject.tCPSListenerConfig.healthCheckInterval = std::stoi(tCPSListenerConfigNode["HealthCheckInterval"].asString()); + if(!tCPSListenerConfigNode["HealthCheckURI"].isNull()) + listenersObject.tCPSListenerConfig.healthCheckURI = tCPSListenerConfigNode["HealthCheckURI"].asString(); + if(!tCPSListenerConfigNode["CACertificateId"].isNull()) + listenersObject.tCPSListenerConfig.cACertificateId = tCPSListenerConfigNode["CACertificateId"].asString(); + if(!tCPSListenerConfigNode["StickySessionType"].isNull()) + listenersObject.tCPSListenerConfig.stickySessionType = tCPSListenerConfigNode["StickySessionType"].asString(); + if(!tCPSListenerConfigNode["HealthCheckConnectPort"].isNull()) + listenersObject.tCPSListenerConfig.healthCheckConnectPort = std::stoi(tCPSListenerConfigNode["HealthCheckConnectPort"].asString()); + if(!tCPSListenerConfigNode["HealthCheckTimeout"].isNull()) + listenersObject.tCPSListenerConfig.healthCheckTimeout = std::stoi(tCPSListenerConfigNode["HealthCheckTimeout"].asString()); + if(!tCPSListenerConfigNode["HealthCheckType"].isNull()) + listenersObject.tCPSListenerConfig.healthCheckType = tCPSListenerConfigNode["HealthCheckType"].asString(); + if(!tCPSListenerConfigNode["HealthyThreshold"].isNull()) + listenersObject.tCPSListenerConfig.healthyThreshold = std::stoi(tCPSListenerConfigNode["HealthyThreshold"].asString()); + if(!tCPSListenerConfigNode["CookieTimeout"].isNull()) + listenersObject.tCPSListenerConfig.cookieTimeout = std::stoi(tCPSListenerConfigNode["CookieTimeout"].asString()); + if(!tCPSListenerConfigNode["HealthCheckDomain"].isNull()) + listenersObject.tCPSListenerConfig.healthCheckDomain = tCPSListenerConfigNode["HealthCheckDomain"].asString(); + if(!tCPSListenerConfigNode["UnhealthyThreshold"].isNull()) + listenersObject.tCPSListenerConfig.unhealthyThreshold = std::stoi(tCPSListenerConfigNode["UnhealthyThreshold"].asString()); + if(!tCPSListenerConfigNode["StickySession"].isNull()) + listenersObject.tCPSListenerConfig.stickySession = tCPSListenerConfigNode["StickySession"].asString(); + if(!tCPSListenerConfigNode["HealthCheckMethod"].isNull()) + listenersObject.tCPSListenerConfig.healthCheckMethod = tCPSListenerConfigNode["HealthCheckMethod"].asString(); + if(!tCPSListenerConfigNode["TLSCipherPolicy"].isNull()) + listenersObject.tCPSListenerConfig.tLSCipherPolicy = tCPSListenerConfigNode["TLSCipherPolicy"].asString(); + if(!tCPSListenerConfigNode["HealthCheck"].isNull()) + listenersObject.tCPSListenerConfig.healthCheck = tCPSListenerConfigNode["HealthCheck"].asString(); + auto uDPListenerConfigNode = value["UDPListenerConfig"]; + if(!uDPListenerConfigNode["HealthCheckHttpCode"].isNull()) + listenersObject.uDPListenerConfig.healthCheckHttpCode = uDPListenerConfigNode["HealthCheckHttpCode"].asString(); + if(!uDPListenerConfigNode["ConnectionDrainTimeout"].isNull()) + listenersObject.uDPListenerConfig.connectionDrainTimeout = std::stoi(uDPListenerConfigNode["ConnectionDrainTimeout"].asString()); + if(!uDPListenerConfigNode["HealthCheckInterval"].isNull()) + listenersObject.uDPListenerConfig.healthCheckInterval = std::stoi(uDPListenerConfigNode["HealthCheckInterval"].asString()); + if(!uDPListenerConfigNode["HealthCheckExp"].isNull()) + listenersObject.uDPListenerConfig.healthCheckExp = uDPListenerConfigNode["HealthCheckExp"].asString(); + if(!uDPListenerConfigNode["HealthCheckURI"].isNull()) + listenersObject.uDPListenerConfig.healthCheckURI = uDPListenerConfigNode["HealthCheckURI"].asString(); + if(!uDPListenerConfigNode["HealthCheckSwitch"].isNull()) + listenersObject.uDPListenerConfig.healthCheckSwitch = uDPListenerConfigNode["HealthCheckSwitch"].asString(); + if(!uDPListenerConfigNode["FullNatEnabled"].isNull()) + listenersObject.uDPListenerConfig.fullNatEnabled = uDPListenerConfigNode["FullNatEnabled"].asString(); + if(!uDPListenerConfigNode["HealthCheckConnectPort"].isNull()) + listenersObject.uDPListenerConfig.healthCheckConnectPort = std::stoi(uDPListenerConfigNode["HealthCheckConnectPort"].asString()); + if(!uDPListenerConfigNode["HealthCheckType"].isNull()) + listenersObject.uDPListenerConfig.healthCheckType = uDPListenerConfigNode["HealthCheckType"].asString(); + if(!uDPListenerConfigNode["HealthCheckConnectTimeout"].isNull()) + listenersObject.uDPListenerConfig.healthCheckConnectTimeout = std::stoi(uDPListenerConfigNode["HealthCheckConnectTimeout"].asString()); + if(!uDPListenerConfigNode["MasterSlaveServerGroupId"].isNull()) + listenersObject.uDPListenerConfig.masterSlaveServerGroupId = uDPListenerConfigNode["MasterSlaveServerGroupId"].asString(); + if(!uDPListenerConfigNode["HealthyThreshold"].isNull()) + listenersObject.uDPListenerConfig.healthyThreshold = std::stoi(uDPListenerConfigNode["HealthyThreshold"].asString()); + if(!uDPListenerConfigNode["HealthCheckDomain"].isNull()) + listenersObject.uDPListenerConfig.healthCheckDomain = uDPListenerConfigNode["HealthCheckDomain"].asString(); + if(!uDPListenerConfigNode["UnhealthyThreshold"].isNull()) + listenersObject.uDPListenerConfig.unhealthyThreshold = std::stoi(uDPListenerConfigNode["UnhealthyThreshold"].asString()); + if(!uDPListenerConfigNode["ConnectionDrain"].isNull()) + listenersObject.uDPListenerConfig.connectionDrain = uDPListenerConfigNode["ConnectionDrain"].asString(); + if(!uDPListenerConfigNode["HealthCheckReq"].isNull()) + listenersObject.uDPListenerConfig.healthCheckReq = uDPListenerConfigNode["HealthCheckReq"].asString(); + if(!uDPListenerConfigNode["HealthCheckMethod"].isNull()) + listenersObject.uDPListenerConfig.healthCheckMethod = uDPListenerConfigNode["HealthCheckMethod"].asString(); + if(!uDPListenerConfigNode["HealthCheck"].isNull()) + listenersObject.uDPListenerConfig.healthCheck = uDPListenerConfigNode["HealthCheck"].asString(); + if(!uDPListenerConfigNode["ProxyProtocolV2Enabled"].isNull()) + listenersObject.uDPListenerConfig.proxyProtocolV2Enabled = uDPListenerConfigNode["ProxyProtocolV2Enabled"].asString(); + if(!uDPListenerConfigNode["QuicVersion"].isNull()) + listenersObject.uDPListenerConfig.quicVersion = uDPListenerConfigNode["QuicVersion"].asString(); + if(!uDPListenerConfigNode["PersistenceTimeout"].isNull()) + listenersObject.uDPListenerConfig.persistenceTimeout = std::stoi(uDPListenerConfigNode["PersistenceTimeout"].asString()); + if(!uDPListenerConfigNode["MasterSlaveModeEnabled"].isNull()) + listenersObject.uDPListenerConfig.masterSlaveModeEnabled = uDPListenerConfigNode["MasterSlaveModeEnabled"].asString() == "true"; + if(!uDPListenerConfigNode["MasterServerGroupId"].isNull()) + listenersObject.uDPListenerConfig.masterServerGroupId = uDPListenerConfigNode["MasterServerGroupId"].asString(); + if(!uDPListenerConfigNode["SlaveServerGroupId"].isNull()) + listenersObject.uDPListenerConfig.slaveServerGroupId = uDPListenerConfigNode["SlaveServerGroupId"].asString(); + if(!uDPListenerConfigNode["FailoverThreshold"].isNull()) + listenersObject.uDPListenerConfig.failoverThreshold = std::stoi(uDPListenerConfigNode["FailoverThreshold"].asString()); + if(!uDPListenerConfigNode["FailoverStrategy"].isNull()) + listenersObject.uDPListenerConfig.failoverStrategy = uDPListenerConfigNode["FailoverStrategy"].asString(); + if(!uDPListenerConfigNode["MaxConnection"].isNull()) + listenersObject.uDPListenerConfig.maxConnection = std::stoi(uDPListenerConfigNode["MaxConnection"].asString()); + auto allPortRanges1Node = uDPListenerConfigNode["PortRanges"]["PortRange"]; + for (auto uDPListenerConfigNodePortRangesPortRange : allPortRanges1Node) + { + Listener::UDPListenerConfig::PortRange2 portRange2Object; + if(!uDPListenerConfigNodePortRangesPortRange["StartPort"].isNull()) + portRange2Object.startPort = std::stoi(uDPListenerConfigNodePortRangesPortRange["StartPort"].asString()); + if(!uDPListenerConfigNodePortRangesPortRange["EndPort"].isNull()) + portRange2Object.endPort = std::stoi(uDPListenerConfigNodePortRangesPortRange["EndPort"].asString()); + listenersObject.uDPListenerConfig.portRanges1.push_back(portRange2Object); + } + auto allAclIds = value["AclIds"]["AclId"]; + for (auto value : allAclIds) + listenersObject.aclIds.push_back(value.asString()); + listeners_.push_back(listenersObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["MaxResults"].isNull()) + maxResults_ = std::stoi(value["MaxResults"].asString()); + +} + +std::vector DescribeLoadBalancerListenersResult::getListeners()const +{ + return listeners_; +} + +int DescribeLoadBalancerListenersResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeLoadBalancerListenersResult::getNextToken()const +{ + return nextToken_; +} + +int DescribeLoadBalancerListenersResult::getMaxResults()const +{ + return maxResults_; +} + diff --git a/slb/src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc b/slb/src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc index a6a418362..309ce7943 100644 --- a/slb/src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc +++ b/slb/src/model/DescribeLoadBalancerTCPListenerAttributeRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::DescribeLoadBalancerTCPListenerAttributeRequest; DescribeLoadBalancerTCPListenerAttributeRequest::DescribeLoadBalancerTCPListenerAttributeRequest() - : RpcServiceRequest("slb", "2013-02-21", "DescribeLoadBalancerTCPListenerAttribute") { + : RpcServiceRequest("slb", "2014-05-15", "DescribeLoadBalancerTCPListenerAttribute") { setMethod(HttpRequest::Method::Post); } @@ -43,13 +43,13 @@ void DescribeLoadBalancerTCPListenerAttributeRequest::setResourceOwnerId(long re setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string DescribeLoadBalancerTCPListenerAttributeRequest::getAccessKeyId() const { - return accessKeyId_; +std::string DescribeLoadBalancerTCPListenerAttributeRequest::getRegionId() const { + return regionId_; } -void DescribeLoadBalancerTCPListenerAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void DescribeLoadBalancerTCPListenerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } int DescribeLoadBalancerTCPListenerAttributeRequest::getListenerPort() const { diff --git a/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc index d00d28767..b6d1c10e3 100644 --- a/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc +++ b/slb/src/model/DescribeLoadBalancerTCPListenerAttributeResult.cc @@ -39,56 +39,112 @@ void DescribeLoadBalancerTCPListenerAttributeResult::parse(const std::string &pa Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allPortRangesNode = value["PortRanges"]["PortRange"]; + for (auto valuePortRangesPortRange : allPortRangesNode) + { + PortRange portRangesObject; + if(!valuePortRangesPortRange["StartPort"].isNull()) + portRangesObject.startPort = std::stoi(valuePortRangesPortRange["StartPort"].asString()); + if(!valuePortRangesPortRange["EndPort"].isNull()) + portRangesObject.endPort = std::stoi(valuePortRangesPortRange["EndPort"].asString()); + portRanges_.push_back(portRangesObject); + } + 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 allAclIds = value["AclIds"]["AclId"]; + for (const auto &item : allAclIds) + aclIds_.push_back(item.asString()); if(!value["VServerGroupId"].isNull()) vServerGroupId_ = value["VServerGroupId"].asString(); - if(!value["HealthCheckHttpCode"].isNull()) - healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); - if(!value["ConnectPort"].isNull()) - connectPort_ = std::stoi(value["ConnectPort"].asString()); if(!value["Status"].isNull()) status_ = value["Status"].asString(); - if(!value["MaxConnection"].isNull()) - maxConnection_ = std::stoi(value["MaxConnection"].asString()); - if(!value["PersistenceTimeout"].isNull()) - persistenceTimeout_ = std::stoi(value["PersistenceTimeout"].asString()); - if(!value["ListenerPort"].isNull()) - listenerPort_ = std::stoi(value["ListenerPort"].asString()); - if(!value["HealthCheckURI"].isNull()) - healthCheckURI_ = value["HealthCheckURI"].asString(); - if(!value["SynProxy"].isNull()) - synProxy_ = value["SynProxy"].asString(); - if(!value["Scheduler"].isNull()) - scheduler_ = value["Scheduler"].asString(); - if(!value["Interval"].isNull()) - interval_ = std::stoi(value["Interval"].asString()); + if(!value["AclType"].isNull()) + aclType_ = value["AclType"].asString(); + if(!value["ConnectionDrainTimeout"].isNull()) + connectionDrainTimeout_ = std::stoi(value["ConnectionDrainTimeout"].asString()); + if(!value["FailoverStrategy"].isNull()) + failoverStrategy_ = value["FailoverStrategy"].asString(); + if(!value["WorkingServerGroupId"].isNull()) + workingServerGroupId_ = value["WorkingServerGroupId"].asString(); + if(!value["HealthCheckTcpFastCloseEnabled"].isNull()) + healthCheckTcpFastCloseEnabled_ = value["HealthCheckTcpFastCloseEnabled"].asString() == "true"; + if(!value["FullNatEnabled"].isNull()) + fullNatEnabled_ = value["FullNatEnabled"].asString() == "true"; + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); if(!value["Bandwidth"].isNull()) bandwidth_ = std::stoi(value["Bandwidth"].asString()); - if(!value["EstablishedTimeout"].isNull()) - establishedTimeout_ = std::stoi(value["EstablishedTimeout"].asString()); if(!value["HealthCheckType"].isNull()) healthCheckType_ = value["HealthCheckType"].asString(); if(!value["MasterSlaveServerGroupId"].isNull()) masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); if(!value["BackendServerPort"].isNull()) backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); - if(!value["HealthyThreshold"].isNull()) - healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["AclStatus"].isNull()) + aclStatus_ = value["AclStatus"].asString(); if(!value["HealthCheckDomain"].isNull()) healthCheckDomain_ = value["HealthCheckDomain"].asString(); if(!value["UnhealthyThreshold"].isNull()) unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); - if(!value["ConnectTimeout"].isNull()) - connectTimeout_ = std::stoi(value["ConnectTimeout"].asString()); + if(!value["MasterServerGroupId"].isNull()) + masterServerGroupId_ = value["MasterServerGroupId"].asString(); + if(!value["HealthCheckHttpCode"].isNull()) + healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); + if(!value["MaxConnection"].isNull()) + maxConnection_ = std::stoi(value["MaxConnection"].asString()); + if(!value["ProxyProtocolV2Enabled"].isNull()) + proxyProtocolV2Enabled_ = value["ProxyProtocolV2Enabled"].asString() == "true"; + if(!value["SlaveServerGroupId"].isNull()) + slaveServerGroupId_ = value["SlaveServerGroupId"].asString(); + if(!value["PersistenceTimeout"].isNull()) + persistenceTimeout_ = std::stoi(value["PersistenceTimeout"].asString()); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); + if(!value["FailoverThreshold"].isNull()) + failoverThreshold_ = std::stoi(value["FailoverThreshold"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["SynProxy"].isNull()) + synProxy_ = value["SynProxy"].asString(); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["EstablishedTimeout"].isNull()) + establishedTimeout_ = std::stoi(value["EstablishedTimeout"].asString()); + if(!value["VpcIds"].isNull()) + vpcIds_ = value["VpcIds"].asString(); + if(!value["HealthCheckConnectTimeout"].isNull()) + healthCheckConnectTimeout_ = std::stoi(value["HealthCheckConnectTimeout"].asString()); + if(!value["MasterSlaveModeEnabled"].isNull()) + masterSlaveModeEnabled_ = value["MasterSlaveModeEnabled"].asString() == "true"; + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["ConnectionDrain"].isNull()) + connectionDrain_ = value["ConnectionDrain"].asString(); + if(!value["HealthCheckMethod"].isNull()) + healthCheckMethod_ = value["HealthCheckMethod"].asString(); if(!value["HealthCheck"].isNull()) healthCheck_ = value["HealthCheck"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); } -std::string DescribeLoadBalancerTCPListenerAttributeResult::getStatus()const -{ - return status_; -} - int DescribeLoadBalancerTCPListenerAttributeResult::getMaxConnection()const { return maxConnection_; @@ -99,19 +155,9 @@ std::string DescribeLoadBalancerTCPListenerAttributeResult::getVServerGroupId()c return vServerGroupId_; } -int DescribeLoadBalancerTCPListenerAttributeResult::getListenerPort()const +std::string DescribeLoadBalancerTCPListenerAttributeResult::getDescription()const { - return listenerPort_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getConnectTimeout()const -{ - return connectTimeout_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getConnectPort()const -{ - return connectPort_; + return description_; } std::string DescribeLoadBalancerTCPListenerAttributeResult::getSynProxy()const @@ -124,6 +170,16 @@ int DescribeLoadBalancerTCPListenerAttributeResult::getUnhealthyThreshold()const return unhealthyThreshold_; } +bool DescribeLoadBalancerTCPListenerAttributeResult::getProxyProtocolV2Enabled()const +{ + return proxyProtocolV2Enabled_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getFailoverThreshold()const +{ + return failoverThreshold_; +} + std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckURI()const { return healthCheckURI_; @@ -139,21 +195,136 @@ std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheck()cons return healthCheck_; } +std::string DescribeLoadBalancerTCPListenerAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getWorkingServerGroupId()const +{ + return workingServerGroupId_; +} + int DescribeLoadBalancerTCPListenerAttributeResult::getBackendServerPort()const { return backendServerPort_; } +bool DescribeLoadBalancerTCPListenerAttributeResult::getMasterSlaveModeEnabled()const +{ + return masterSlaveModeEnabled_; +} + +bool DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckTcpFastCloseEnabled()const +{ + return healthCheckTcpFastCloseEnabled_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getConnectionDrainTimeout()const +{ + return connectionDrainTimeout_; +} + int DescribeLoadBalancerTCPListenerAttributeResult::getPersistenceTimeout()const { return persistenceTimeout_; } +int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getMasterServerGroupId()const +{ + return masterServerGroupId_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + int DescribeLoadBalancerTCPListenerAttributeResult::getBandwidth()const { return bandwidth_; } +std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckHttpCode()const +{ + return healthCheckHttpCode_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getSlaveServerGroupId()const +{ + return slaveServerGroupId_; +} + +std::vector DescribeLoadBalancerTCPListenerAttributeResult::getTags()const +{ + return tags_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getEstablishedTimeout()const +{ + return establishedTimeout_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getStatus()const +{ + return status_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +std::vector DescribeLoadBalancerTCPListenerAttributeResult::getPortRanges()const +{ + return portRanges_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getAclId()const +{ + return aclId_; +} + +int DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckConnectTimeout()const +{ + return healthCheckConnectTimeout_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getConnectionDrain()const +{ + return connectionDrain_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getAclStatus()const +{ + return aclStatus_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getVpcIds()const +{ + return vpcIds_; +} + +std::string DescribeLoadBalancerTCPListenerAttributeResult::getFailoverStrategy()const +{ + return failoverStrategy_; +} + int DescribeLoadBalancerTCPListenerAttributeResult::getHealthyThreshold()const { return healthyThreshold_; @@ -169,9 +340,19 @@ std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckDomain return healthCheckDomain_; } -std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckHttpCode()const +std::string DescribeLoadBalancerTCPListenerAttributeResult::getAclType()const { - return healthCheckHttpCode_; + return aclType_; +} + +bool DescribeLoadBalancerTCPListenerAttributeResult::getFullNatEnabled()const +{ + return fullNatEnabled_; +} + +std::vector DescribeLoadBalancerTCPListenerAttributeResult::getAclIds()const +{ + return aclIds_; } std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckType()const @@ -179,13 +360,3 @@ std::string DescribeLoadBalancerTCPListenerAttributeResult::getHealthCheckType() return healthCheckType_; } -int DescribeLoadBalancerTCPListenerAttributeResult::getInterval()const -{ - return interval_; -} - -int DescribeLoadBalancerTCPListenerAttributeResult::getEstablishedTimeout()const -{ - return establishedTimeout_; -} - diff --git a/slb/src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc b/slb/src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc new file mode 100644 index 000000000..588eeb1a3 --- /dev/null +++ b/slb/src/model/DescribeLoadBalancerUDPListenerAttributeRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeLoadBalancerUDPListenerAttributeRequest; + +DescribeLoadBalancerUDPListenerAttributeRequest::DescribeLoadBalancerUDPListenerAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeLoadBalancerUDPListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeLoadBalancerUDPListenerAttributeRequest::~DescribeLoadBalancerUDPListenerAttributeRequest() {} + +std::string DescribeLoadBalancerUDPListenerAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeLoadBalancerUDPListenerAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeLoadBalancerUDPListenerAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeLoadBalancerUDPListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DescribeLoadBalancerUDPListenerAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeLoadBalancerUDPListenerAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeLoadBalancerUDPListenerAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeLoadBalancerUDPListenerAttributeRequest::getTags() const { + return tags_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeLoadBalancerUDPListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeLoadBalancerUDPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc b/slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc new file mode 100644 index 000000000..e72565798 --- /dev/null +++ b/slb/src/model/DescribeLoadBalancerUDPListenerAttributeResult.cc @@ -0,0 +1,369 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeLoadBalancerUDPListenerAttributeResult::DescribeLoadBalancerUDPListenerAttributeResult() : + ServiceResult() +{} + +DescribeLoadBalancerUDPListenerAttributeResult::DescribeLoadBalancerUDPListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLoadBalancerUDPListenerAttributeResult::~DescribeLoadBalancerUDPListenerAttributeResult() +{} + +void DescribeLoadBalancerUDPListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allPortRangesNode = value["PortRanges"]["PortRange"]; + for (auto valuePortRangesPortRange : allPortRangesNode) + { + PortRange portRangesObject; + if(!valuePortRangesPortRange["StartPort"].isNull()) + portRangesObject.startPort = std::stoi(valuePortRangesPortRange["StartPort"].asString()); + if(!valuePortRangesPortRange["EndPort"].isNull()) + portRangesObject.endPort = std::stoi(valuePortRangesPortRange["EndPort"].asString()); + portRanges_.push_back(portRangesObject); + } + 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 allAclIds = value["AclIds"]["AclId"]; + for (const auto &item : allAclIds) + aclIds_.push_back(item.asString()); + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["AclType"].isNull()) + aclType_ = value["AclType"].asString(); + if(!value["ConnectionDrainTimeout"].isNull()) + connectionDrainTimeout_ = std::stoi(value["ConnectionDrainTimeout"].asString()); + if(!value["FailoverStrategy"].isNull()) + failoverStrategy_ = value["FailoverStrategy"].asString(); + if(!value["WorkingServerGroupId"].isNull()) + workingServerGroupId_ = value["WorkingServerGroupId"].asString(); + if(!value["HealthCheckSwitch"].isNull()) + healthCheckSwitch_ = value["HealthCheckSwitch"].asString(); + if(!value["FullNatEnabled"].isNull()) + fullNatEnabled_ = value["FullNatEnabled"].asString() == "true"; + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); + if(!value["QuicVersion"].isNull()) + quicVersion_ = value["QuicVersion"].asString(); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["Bandwidth"].isNull()) + bandwidth_ = std::stoi(value["Bandwidth"].asString()); + if(!value["HealthCheckType"].isNull()) + healthCheckType_ = value["HealthCheckType"].asString(); + if(!value["MasterSlaveServerGroupId"].isNull()) + masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); + if(!value["BackendServerPort"].isNull()) + backendServerPort_ = std::stoi(value["BackendServerPort"].asString()); + if(!value["AclStatus"].isNull()) + aclStatus_ = value["AclStatus"].asString(); + if(!value["HealthCheckDomain"].isNull()) + healthCheckDomain_ = value["HealthCheckDomain"].asString(); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["MasterServerGroupId"].isNull()) + masterServerGroupId_ = value["MasterServerGroupId"].asString(); + if(!value["HealthCheckHttpCode"].isNull()) + healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); + if(!value["MaxConnection"].isNull()) + maxConnection_ = std::stoi(value["MaxConnection"].asString()); + if(!value["ProxyProtocolV2Enabled"].isNull()) + proxyProtocolV2Enabled_ = value["ProxyProtocolV2Enabled"].asString() == "true"; + if(!value["SlaveServerGroupId"].isNull()) + slaveServerGroupId_ = value["SlaveServerGroupId"].asString(); + if(!value["PersistenceTimeout"].isNull()) + persistenceTimeout_ = std::stoi(value["PersistenceTimeout"].asString()); + if(!value["ListenerPort"].isNull()) + listenerPort_ = std::stoi(value["ListenerPort"].asString()); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["HealthCheckExp"].isNull()) + healthCheckExp_ = value["HealthCheckExp"].asString(); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); + if(!value["FailoverThreshold"].isNull()) + failoverThreshold_ = std::stoi(value["FailoverThreshold"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["VpcIds"].isNull()) + vpcIds_ = value["VpcIds"].asString(); + if(!value["HealthCheckConnectTimeout"].isNull()) + healthCheckConnectTimeout_ = std::stoi(value["HealthCheckConnectTimeout"].asString()); + if(!value["MasterSlaveModeEnabled"].isNull()) + masterSlaveModeEnabled_ = value["MasterSlaveModeEnabled"].asString() == "true"; + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["ConnectionDrain"].isNull()) + connectionDrain_ = value["ConnectionDrain"].asString(); + if(!value["HealthCheckReq"].isNull()) + healthCheckReq_ = value["HealthCheckReq"].asString(); + if(!value["HealthCheckMethod"].isNull()) + healthCheckMethod_ = value["HealthCheckMethod"].asString(); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getMaxConnection()const +{ + return maxConnection_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getDescription()const +{ + return description_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +bool DescribeLoadBalancerUDPListenerAttributeResult::getProxyProtocolV2Enabled()const +{ + return proxyProtocolV2Enabled_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getFailoverThreshold()const +{ + return failoverThreshold_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckURI()const +{ + return healthCheckURI_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getScheduler()const +{ + return scheduler_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getWorkingServerGroupId()const +{ + return workingServerGroupId_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getBackendServerPort()const +{ + return backendServerPort_; +} + +bool DescribeLoadBalancerUDPListenerAttributeResult::getMasterSlaveModeEnabled()const +{ + return masterSlaveModeEnabled_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getConnectionDrainTimeout()const +{ + return connectionDrainTimeout_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getPersistenceTimeout()const +{ + return persistenceTimeout_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getMasterServerGroupId()const +{ + return masterServerGroupId_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckMethod()const +{ + return healthCheckMethod_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getBandwidth()const +{ + return bandwidth_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getQuicVersion()const +{ + return quicVersion_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckHttpCode()const +{ + return healthCheckHttpCode_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getSlaveServerGroupId()const +{ + return slaveServerGroupId_; +} + +std::vector DescribeLoadBalancerUDPListenerAttributeResult::getTags()const +{ + return tags_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getStatus()const +{ + return status_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +std::vector DescribeLoadBalancerUDPListenerAttributeResult::getPortRanges()const +{ + return portRanges_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getAclId()const +{ + return aclId_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckConnectTimeout()const +{ + return healthCheckConnectTimeout_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getConnectionDrain()const +{ + return connectionDrain_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckSwitch()const +{ + return healthCheckSwitch_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getAclStatus()const +{ + return aclStatus_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckReq()const +{ + return healthCheckReq_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getVpcIds()const +{ + return vpcIds_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getFailoverStrategy()const +{ + return failoverStrategy_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckExp()const +{ + return healthCheckExp_; +} + +int DescribeLoadBalancerUDPListenerAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getMasterSlaveServerGroupId()const +{ + return masterSlaveServerGroupId_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getAclType()const +{ + return aclType_; +} + +bool DescribeLoadBalancerUDPListenerAttributeResult::getFullNatEnabled()const +{ + return fullNatEnabled_; +} + +std::vector DescribeLoadBalancerUDPListenerAttributeResult::getAclIds()const +{ + return aclIds_; +} + +std::string DescribeLoadBalancerUDPListenerAttributeResult::getHealthCheckType()const +{ + return healthCheckType_; +} + diff --git a/slb/src/model/DescribeLoadBalancersRequest.cc b/slb/src/model/DescribeLoadBalancersRequest.cc index 0ca9a5b3f..f2c36e35d 100644 --- a/slb/src/model/DescribeLoadBalancersRequest.cc +++ b/slb/src/model/DescribeLoadBalancersRequest.cc @@ -19,21 +19,12 @@ using AlibabaCloud::Slb::Model::DescribeLoadBalancersRequest; DescribeLoadBalancersRequest::DescribeLoadBalancersRequest() - : RpcServiceRequest("slb", "2013-02-21", "DescribeLoadBalancers") { + : RpcServiceRequest("slb", "2014-05-15", "DescribeLoadBalancers") { setMethod(HttpRequest::Method::Post); } DescribeLoadBalancersRequest::~DescribeLoadBalancersRequest() {} -std::string DescribeLoadBalancersRequest::getAccess_key_id() const { - return access_key_id_; -} - -void DescribeLoadBalancersRequest::setAccess_key_id(const std::string &access_key_id) { - access_key_id_ = access_key_id; - setParameter(std::string("access_key_id"), access_key_id); -} - long DescribeLoadBalancersRequest::getResourceOwnerId() const { return resourceOwnerId_; } @@ -52,6 +43,15 @@ void DescribeLoadBalancersRequest::setNetworkType(const std::string &networkType setParameter(std::string("NetworkType"), networkType); } +std::string DescribeLoadBalancersRequest::getAddressIPVersion() const { + return addressIPVersion_; +} + +void DescribeLoadBalancersRequest::setAddressIPVersion(const std::string &addressIPVersion) { + addressIPVersion_ = addressIPVersion; + setParameter(std::string("AddressIPVersion"), addressIPVersion); +} + std::string DescribeLoadBalancersRequest::getMasterZoneId() const { return masterZoneId_; } @@ -61,24 +61,6 @@ void DescribeLoadBalancersRequest::setMasterZoneId(const std::string &masterZone setParameter(std::string("MasterZoneId"), masterZoneId); } -int DescribeLoadBalancersRequest::getPageNumber() const { - return pageNumber_; -} - -void DescribeLoadBalancersRequest::setPageNumber(int pageNumber) { - pageNumber_ = pageNumber; - setParameter(std::string("PageNumber"), std::to_string(pageNumber)); -} - -std::string DescribeLoadBalancersRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeLoadBalancersRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string DescribeLoadBalancersRequest::getResourceGroupId() const { return resourceGroupId_; } @@ -97,33 +79,6 @@ void DescribeLoadBalancersRequest::setLoadBalancerName(const std::string &loadBa setParameter(std::string("LoadBalancerName"), loadBalancerName); } -std::string DescribeLoadBalancersRequest::getRegionId() const { - return regionId_; -} - -void DescribeLoadBalancersRequest::setRegionId(const std::string ®ionId) { - regionId_ = regionId; - setParameter(std::string("RegionId"), regionId); -} - -int DescribeLoadBalancersRequest::getPageSize() const { - return pageSize_; -} - -void DescribeLoadBalancersRequest::setPageSize(int pageSize) { - pageSize_ = pageSize; - setParameter(std::string("PageSize"), std::to_string(pageSize)); -} - -std::string DescribeLoadBalancersRequest::getAddressType() const { - return addressType_; -} - -void DescribeLoadBalancersRequest::setAddressType(const std::string &addressType) { - addressType_ = addressType; - setParameter(std::string("AddressType"), addressType); -} - std::string DescribeLoadBalancersRequest::getSlaveZoneId() const { return slaveZoneId_; } @@ -133,31 +88,18 @@ void DescribeLoadBalancersRequest::setSlaveZoneId(const std::string &slaveZoneId setParameter(std::string("SlaveZoneId"), slaveZoneId); } -std::string DescribeLoadBalancersRequest::getAddress() const { - return address_; +std::vector DescribeLoadBalancersRequest::getTag() const { + return tag_; } -void DescribeLoadBalancersRequest::setAddress(const std::string &address) { - address_ = address; - setParameter(std::string("Address"), address); -} - -std::string DescribeLoadBalancersRequest::getResourceOwnerAccount() const { - return resourceOwnerAccount_; -} - -void DescribeLoadBalancersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); -} - -std::string DescribeLoadBalancersRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void DescribeLoadBalancersRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); +void DescribeLoadBalancersRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } } long DescribeLoadBalancersRequest::getOwnerId() const { @@ -223,6 +165,132 @@ void DescribeLoadBalancersRequest::setInternetChargeType(const std::string &inte setParameter(std::string("InternetChargeType"), internetChargeType); } +std::string DescribeLoadBalancersRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeLoadBalancersRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +bool DescribeLoadBalancersRequest::getSupportPrivateLink() const { + return supportPrivateLink_; +} + +void DescribeLoadBalancersRequest::setSupportPrivateLink(bool supportPrivateLink) { + supportPrivateLink_ = supportPrivateLink; + setParameter(std::string("SupportPrivateLink"), supportPrivateLink ? "true" : "false"); +} + +int DescribeLoadBalancersRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeLoadBalancersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeLoadBalancersRequest::getRegionId() const { + return regionId_; +} + +void DescribeLoadBalancersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeLoadBalancersRequest::getPageSize() const { + return pageSize_; +} + +void DescribeLoadBalancersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeLoadBalancersRequest::getAddressType() const { + return addressType_; +} + +void DescribeLoadBalancersRequest::setAddressType(const std::string &addressType) { + addressType_ = addressType; + setParameter(std::string("AddressType"), addressType); +} + +std::string DescribeLoadBalancersRequest::getInstanceChargeType() const { + return instanceChargeType_; +} + +void DescribeLoadBalancersRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); +} + +std::string DescribeLoadBalancersRequest::getFuzzy() const { + return fuzzy_; +} + +void DescribeLoadBalancersRequest::setFuzzy(const std::string &fuzzy) { + fuzzy_ = fuzzy; + setParameter(std::string("Fuzzy"), fuzzy); +} + +std::string DescribeLoadBalancersRequest::getBusinessStatus() const { + return businessStatus_; +} + +void DescribeLoadBalancersRequest::setBusinessStatus(const std::string &businessStatus) { + businessStatus_ = businessStatus; + setParameter(std::string("BusinessStatus"), businessStatus); +} + +std::string DescribeLoadBalancersRequest::getAddress() const { + return address_; +} + +void DescribeLoadBalancersRequest::setAddress(const std::string &address) { + address_ = address; + setParameter(std::string("Address"), address); +} + +std::string DescribeLoadBalancersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeLoadBalancersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +bool DescribeLoadBalancersRequest::getFilterByTagOrName() const { + return filterByTagOrName_; +} + +void DescribeLoadBalancersRequest::setFilterByTagOrName(bool filterByTagOrName) { + filterByTagOrName_ = filterByTagOrName; + setParameter(std::string("FilterByTagOrName"), filterByTagOrName ? "true" : "false"); +} + +std::string DescribeLoadBalancersRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeLoadBalancersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string DescribeLoadBalancersRequest::getLoadBalancerStatus() const { + return loadBalancerStatus_; +} + +void DescribeLoadBalancersRequest::setLoadBalancerStatus(const std::string &loadBalancerStatus) { + loadBalancerStatus_ = loadBalancerStatus; + setParameter(std::string("LoadBalancerStatus"), loadBalancerStatus); +} + std::string DescribeLoadBalancersRequest::getVpcId() const { return vpcId_; } diff --git a/slb/src/model/DescribeLoadBalancersResult.cc b/slb/src/model/DescribeLoadBalancersResult.cc index 394f118a6..4081b62d8 100644 --- a/slb/src/model/DescribeLoadBalancersResult.cc +++ b/slb/src/model/DescribeLoadBalancersResult.cc @@ -47,36 +47,75 @@ void DescribeLoadBalancersResult::parse(const std::string &payload) loadBalancersObject.vpcId = valueLoadBalancersLoadBalancer["VpcId"].asString(); if(!valueLoadBalancersLoadBalancer["CreateTimeStamp"].isNull()) loadBalancersObject.createTimeStamp = std::stol(valueLoadBalancersLoadBalancer["CreateTimeStamp"].asString()); - if(!valueLoadBalancersLoadBalancer["CreateTime"].isNull()) - loadBalancersObject.createTime = valueLoadBalancersLoadBalancer["CreateTime"].asString(); if(!valueLoadBalancersLoadBalancer["LoadBalancerId"].isNull()) loadBalancersObject.loadBalancerId = valueLoadBalancersLoadBalancer["LoadBalancerId"].asString(); + if(!valueLoadBalancersLoadBalancer["CreateTime"].isNull()) + loadBalancersObject.createTime = valueLoadBalancersLoadBalancer["CreateTime"].asString(); if(!valueLoadBalancersLoadBalancer["PayType"].isNull()) loadBalancersObject.payType = valueLoadBalancersLoadBalancer["PayType"].asString(); if(!valueLoadBalancersLoadBalancer["AddressType"].isNull()) loadBalancersObject.addressType = valueLoadBalancersLoadBalancer["AddressType"].asString(); if(!valueLoadBalancersLoadBalancer["NetworkType"].isNull()) loadBalancersObject.networkType = valueLoadBalancersLoadBalancer["NetworkType"].asString(); - if(!valueLoadBalancersLoadBalancer["RegionId"].isNull()) - loadBalancersObject.regionId = valueLoadBalancersLoadBalancer["RegionId"].asString(); - if(!valueLoadBalancersLoadBalancer["VSwitchId"].isNull()) - loadBalancersObject.vSwitchId = valueLoadBalancersLoadBalancer["VSwitchId"].asString(); - if(!valueLoadBalancersLoadBalancer["LoadBalancerStatus"].isNull()) - loadBalancersObject.loadBalancerStatus = valueLoadBalancersLoadBalancer["LoadBalancerStatus"].asString(); + if(!valueLoadBalancersLoadBalancer["ServiceManagedMode"].isNull()) + loadBalancersObject.serviceManagedMode = valueLoadBalancersLoadBalancer["ServiceManagedMode"].asString(); + if(!valueLoadBalancersLoadBalancer["SpecBpsFlag"].isNull()) + loadBalancersObject.specBpsFlag = valueLoadBalancersLoadBalancer["SpecBpsFlag"].asString() == "true"; + if(!valueLoadBalancersLoadBalancer["AddressIPVersion"].isNull()) + loadBalancersObject.addressIPVersion = valueLoadBalancersLoadBalancer["AddressIPVersion"].asString(); if(!valueLoadBalancersLoadBalancer["LoadBalancerName"].isNull()) loadBalancersObject.loadBalancerName = valueLoadBalancersLoadBalancer["LoadBalancerName"].asString(); - if(!valueLoadBalancersLoadBalancer["ResourceGroupId"].isNull()) - loadBalancersObject.resourceGroupId = valueLoadBalancersLoadBalancer["ResourceGroupId"].asString(); - if(!valueLoadBalancersLoadBalancer["InternetChargeType"].isNull()) - loadBalancersObject.internetChargeType = valueLoadBalancersLoadBalancer["InternetChargeType"].asString(); + if(!valueLoadBalancersLoadBalancer["Bandwidth"].isNull()) + loadBalancersObject.bandwidth = std::stoi(valueLoadBalancersLoadBalancer["Bandwidth"].asString()); if(!valueLoadBalancersLoadBalancer["Address"].isNull()) loadBalancersObject.address = valueLoadBalancersLoadBalancer["Address"].asString(); if(!valueLoadBalancersLoadBalancer["SlaveZoneId"].isNull()) loadBalancersObject.slaveZoneId = valueLoadBalancersLoadBalancer["SlaveZoneId"].asString(); - if(!valueLoadBalancersLoadBalancer["RegionIdAlias"].isNull()) - loadBalancersObject.regionIdAlias = valueLoadBalancersLoadBalancer["RegionIdAlias"].asString(); if(!valueLoadBalancersLoadBalancer["MasterZoneId"].isNull()) loadBalancersObject.masterZoneId = valueLoadBalancersLoadBalancer["MasterZoneId"].asString(); + if(!valueLoadBalancersLoadBalancer["InternetChargeTypeAlias"].isNull()) + loadBalancersObject.internetChargeTypeAlias = valueLoadBalancersLoadBalancer["InternetChargeTypeAlias"].asString(); + if(!valueLoadBalancersLoadBalancer["LoadBalancerSpec"].isNull()) + loadBalancersObject.loadBalancerSpec = valueLoadBalancersLoadBalancer["LoadBalancerSpec"].asString(); + if(!valueLoadBalancersLoadBalancer["SpecType"].isNull()) + loadBalancersObject.specType = valueLoadBalancersLoadBalancer["SpecType"].asString(); + if(!valueLoadBalancersLoadBalancer["RegionId"].isNull()) + loadBalancersObject.regionId = valueLoadBalancersLoadBalancer["RegionId"].asString(); + if(!valueLoadBalancersLoadBalancer["ModificationProtectionReason"].isNull()) + loadBalancersObject.modificationProtectionReason = valueLoadBalancersLoadBalancer["ModificationProtectionReason"].asString(); + if(!valueLoadBalancersLoadBalancer["ModificationProtectionStatus"].isNull()) + loadBalancersObject.modificationProtectionStatus = valueLoadBalancersLoadBalancer["ModificationProtectionStatus"].asString(); + if(!valueLoadBalancersLoadBalancer["VSwitchId"].isNull()) + loadBalancersObject.vSwitchId = valueLoadBalancersLoadBalancer["VSwitchId"].asString(); + if(!valueLoadBalancersLoadBalancer["LoadBalancerStatus"].isNull()) + loadBalancersObject.loadBalancerStatus = valueLoadBalancersLoadBalancer["LoadBalancerStatus"].asString(); + if(!valueLoadBalancersLoadBalancer["ResourceGroupId"].isNull()) + loadBalancersObject.resourceGroupId = valueLoadBalancersLoadBalancer["ResourceGroupId"].asString(); + if(!valueLoadBalancersLoadBalancer["InternetChargeType"].isNull()) + loadBalancersObject.internetChargeType = valueLoadBalancersLoadBalancer["InternetChargeType"].asString(); + if(!valueLoadBalancersLoadBalancer["BusinessStatus"].isNull()) + loadBalancersObject.businessStatus = valueLoadBalancersLoadBalancer["BusinessStatus"].asString(); + if(!valueLoadBalancersLoadBalancer["DeleteProtection"].isNull()) + loadBalancersObject.deleteProtection = valueLoadBalancersLoadBalancer["DeleteProtection"].asString(); + if(!valueLoadBalancersLoadBalancer["RegionIdAlias"].isNull()) + loadBalancersObject.regionIdAlias = valueLoadBalancersLoadBalancer["RegionIdAlias"].asString(); + if(!valueLoadBalancersLoadBalancer["InstanceChargeType"].isNull()) + loadBalancersObject.instanceChargeType = valueLoadBalancersLoadBalancer["InstanceChargeType"].asString(); + if(!valueLoadBalancersLoadBalancer["ServiceManagedReason"].isNull()) + loadBalancersObject.serviceManagedReason = valueLoadBalancersLoadBalancer["ServiceManagedReason"].asString(); + auto allTagsNode = valueLoadBalancersLoadBalancer["Tags"]["Tag"]; + for (auto valueLoadBalancersLoadBalancerTagsTag : allTagsNode) + { + LoadBalancer::Tag tagsObject; + if(!valueLoadBalancersLoadBalancerTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueLoadBalancersLoadBalancerTagsTag["TagValue"].asString(); + if(!valueLoadBalancersLoadBalancerTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueLoadBalancersLoadBalancerTagsTag["TagKey"].asString(); + loadBalancersObject.tags.push_back(tagsObject); + } + auto allIneffectiveOrderList = value["IneffectiveOrderList"]["IneffectiveOrder"]; + for (auto value : allIneffectiveOrderList) + loadBalancersObject.ineffectiveOrderList.push_back(value.asString()); loadBalancers_.push_back(loadBalancersObject); } if(!value["PageNumber"].isNull()) diff --git a/slb/src/model/DescribeMasterSlaveServerGroupAttributeRequest.cc b/slb/src/model/DescribeMasterSlaveServerGroupAttributeRequest.cc new file mode 100644 index 000000000..55a64ea6e --- /dev/null +++ b/slb/src/model/DescribeMasterSlaveServerGroupAttributeRequest.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::Slb::Model::DescribeMasterSlaveServerGroupAttributeRequest; + +DescribeMasterSlaveServerGroupAttributeRequest::DescribeMasterSlaveServerGroupAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeMasterSlaveServerGroupAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeMasterSlaveServerGroupAttributeRequest::~DescribeMasterSlaveServerGroupAttributeRequest() {} + +std::string DescribeMasterSlaveServerGroupAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeMasterSlaveServerGroupAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeMasterSlaveServerGroupAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeMasterSlaveServerGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeMasterSlaveServerGroupAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeMasterSlaveServerGroupAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeMasterSlaveServerGroupAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeMasterSlaveServerGroupAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeMasterSlaveServerGroupAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeMasterSlaveServerGroupAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeMasterSlaveServerGroupAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeMasterSlaveServerGroupAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeMasterSlaveServerGroupAttributeRequest::getTags() const { + return tags_; +} + +void DescribeMasterSlaveServerGroupAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeMasterSlaveServerGroupAttributeRequest::getMasterSlaveServerGroupId() const { + return masterSlaveServerGroupId_; +} + +void DescribeMasterSlaveServerGroupAttributeRequest::setMasterSlaveServerGroupId(const std::string &masterSlaveServerGroupId) { + masterSlaveServerGroupId_ = masterSlaveServerGroupId; + setParameter(std::string("MasterSlaveServerGroupId"), masterSlaveServerGroupId); +} + diff --git a/slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc b/slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc new file mode 100644 index 000000000..346a7e991 --- /dev/null +++ b/slb/src/model/DescribeMasterSlaveServerGroupAttributeResult.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeMasterSlaveServerGroupAttributeResult::DescribeMasterSlaveServerGroupAttributeResult() : + ServiceResult() +{} + +DescribeMasterSlaveServerGroupAttributeResult::DescribeMasterSlaveServerGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMasterSlaveServerGroupAttributeResult::~DescribeMasterSlaveServerGroupAttributeResult() +{} + +void DescribeMasterSlaveServerGroupAttributeResult::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 allMasterSlaveBackendServersNode = value["MasterSlaveBackendServers"]["MasterSlaveBackendServer"]; + for (auto valueMasterSlaveBackendServersMasterSlaveBackendServer : allMasterSlaveBackendServersNode) + { + MasterSlaveBackendServer masterSlaveBackendServersObject; + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["VpcId"].isNull()) + masterSlaveBackendServersObject.vpcId = valueMasterSlaveBackendServersMasterSlaveBackendServer["VpcId"].asString(); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["Type"].isNull()) + masterSlaveBackendServersObject.type = valueMasterSlaveBackendServersMasterSlaveBackendServer["Type"].asString(); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["Weight"].isNull()) + masterSlaveBackendServersObject.weight = std::stoi(valueMasterSlaveBackendServersMasterSlaveBackendServer["Weight"].asString()); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["Description"].isNull()) + masterSlaveBackendServersObject.description = valueMasterSlaveBackendServersMasterSlaveBackendServer["Description"].asString(); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerIp"].isNull()) + masterSlaveBackendServersObject.serverIp = valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerIp"].asString(); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["Port"].isNull()) + masterSlaveBackendServersObject.port = std::stoi(valueMasterSlaveBackendServersMasterSlaveBackendServer["Port"].asString()); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerId"].isNull()) + masterSlaveBackendServersObject.serverId = valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerId"].asString(); + if(!valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerType"].isNull()) + masterSlaveBackendServersObject.serverType = valueMasterSlaveBackendServersMasterSlaveBackendServer["ServerType"].asString(); + masterSlaveBackendServers_.push_back(masterSlaveBackendServersObject); + } + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["MasterSlaveServerGroupName"].isNull()) + masterSlaveServerGroupName_ = value["MasterSlaveServerGroupName"].asString(); + if(!value["MasterSlaveServerGroupId"].isNull()) + masterSlaveServerGroupId_ = value["MasterSlaveServerGroupId"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + +} + +std::string DescribeMasterSlaveServerGroupAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + +std::string DescribeMasterSlaveServerGroupAttributeResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeMasterSlaveServerGroupAttributeResult::getMasterSlaveServerGroupId()const +{ + return masterSlaveServerGroupId_; +} + +std::string DescribeMasterSlaveServerGroupAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::string DescribeMasterSlaveServerGroupAttributeResult::getMasterSlaveServerGroupName()const +{ + return masterSlaveServerGroupName_; +} + +std::vector DescribeMasterSlaveServerGroupAttributeResult::getMasterSlaveBackendServers()const +{ + return masterSlaveBackendServers_; +} + +std::vector DescribeMasterSlaveServerGroupAttributeResult::getTags()const +{ + return tags_; +} + diff --git a/slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc b/slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc new file mode 100644 index 000000000..fbe5bbd6c --- /dev/null +++ b/slb/src/model/DescribeMasterSlaveServerGroupsRequest.cc @@ -0,0 +1,131 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeMasterSlaveServerGroupsRequest; + +DescribeMasterSlaveServerGroupsRequest::DescribeMasterSlaveServerGroupsRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeMasterSlaveServerGroups") { + setMethod(HttpRequest::Method::Post); +} + +DescribeMasterSlaveServerGroupsRequest::~DescribeMasterSlaveServerGroupsRequest() {} + +std::string DescribeMasterSlaveServerGroupsRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeMasterSlaveServerGroupsRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeMasterSlaveServerGroupsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeMasterSlaveServerGroupsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +bool DescribeMasterSlaveServerGroupsRequest::getIncludeListener() const { + return includeListener_; +} + +void DescribeMasterSlaveServerGroupsRequest::setIncludeListener(bool includeListener) { + includeListener_ = includeListener; + setParameter(std::string("IncludeListener"), includeListener ? "true" : "false"); +} + +std::string DescribeMasterSlaveServerGroupsRequest::getDescription() const { + return description_; +} + +void DescribeMasterSlaveServerGroupsRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +std::string DescribeMasterSlaveServerGroupsRequest::getRegionId() const { + return regionId_; +} + +void DescribeMasterSlaveServerGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector DescribeMasterSlaveServerGroupsRequest::getTag() const { + return tag_; +} + +void DescribeMasterSlaveServerGroupsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string DescribeMasterSlaveServerGroupsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeMasterSlaveServerGroupsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeMasterSlaveServerGroupsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeMasterSlaveServerGroupsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeMasterSlaveServerGroupsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeMasterSlaveServerGroupsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeMasterSlaveServerGroupsRequest::getTags() const { + return tags_; +} + +void DescribeMasterSlaveServerGroupsRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeMasterSlaveServerGroupsRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeMasterSlaveServerGroupsRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/DescribeMasterSlaveServerGroupsResult.cc b/slb/src/model/DescribeMasterSlaveServerGroupsResult.cc new file mode 100644 index 000000000..dc8c9dcf3 --- /dev/null +++ b/slb/src/model/DescribeMasterSlaveServerGroupsResult.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeMasterSlaveServerGroupsResult::DescribeMasterSlaveServerGroupsResult() : + ServiceResult() +{} + +DescribeMasterSlaveServerGroupsResult::DescribeMasterSlaveServerGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMasterSlaveServerGroupsResult::~DescribeMasterSlaveServerGroupsResult() +{} + +void DescribeMasterSlaveServerGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMasterSlaveServerGroupsNode = value["MasterSlaveServerGroups"]["MasterSlaveServerGroup"]; + for (auto valueMasterSlaveServerGroupsMasterSlaveServerGroup : allMasterSlaveServerGroupsNode) + { + MasterSlaveServerGroup masterSlaveServerGroupsObject; + if(!valueMasterSlaveServerGroupsMasterSlaveServerGroup["ServiceManagedMode"].isNull()) + masterSlaveServerGroupsObject.serviceManagedMode = valueMasterSlaveServerGroupsMasterSlaveServerGroup["ServiceManagedMode"].asString(); + if(!valueMasterSlaveServerGroupsMasterSlaveServerGroup["MasterSlaveServerGroupId"].isNull()) + masterSlaveServerGroupsObject.masterSlaveServerGroupId = valueMasterSlaveServerGroupsMasterSlaveServerGroup["MasterSlaveServerGroupId"].asString(); + if(!valueMasterSlaveServerGroupsMasterSlaveServerGroup["MasterSlaveServerGroupName"].isNull()) + masterSlaveServerGroupsObject.masterSlaveServerGroupName = valueMasterSlaveServerGroupsMasterSlaveServerGroup["MasterSlaveServerGroupName"].asString(); + if(!valueMasterSlaveServerGroupsMasterSlaveServerGroup["CreateTime"].isNull()) + masterSlaveServerGroupsObject.createTime = valueMasterSlaveServerGroupsMasterSlaveServerGroup["CreateTime"].asString(); + auto allTagsNode = valueMasterSlaveServerGroupsMasterSlaveServerGroup["Tags"]["Tag"]; + for (auto valueMasterSlaveServerGroupsMasterSlaveServerGroupTagsTag : allTagsNode) + { + MasterSlaveServerGroup::Tag tagsObject; + if(!valueMasterSlaveServerGroupsMasterSlaveServerGroupTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueMasterSlaveServerGroupsMasterSlaveServerGroupTagsTag["TagKey"].asString(); + if(!valueMasterSlaveServerGroupsMasterSlaveServerGroupTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueMasterSlaveServerGroupsMasterSlaveServerGroupTagsTag["TagValue"].asString(); + masterSlaveServerGroupsObject.tags.push_back(tagsObject); + } + auto associatedObjectsNode = value["AssociatedObjects"]; + auto allListenersNode = associatedObjectsNode["Listeners"]["Listener"]; + for (auto associatedObjectsNodeListenersListener : allListenersNode) + { + MasterSlaveServerGroup::AssociatedObjects::Listener listenerObject; + if(!associatedObjectsNodeListenersListener["Port"].isNull()) + listenerObject.port = std::stoi(associatedObjectsNodeListenersListener["Port"].asString()); + if(!associatedObjectsNodeListenersListener["Protocol"].isNull()) + listenerObject.protocol = associatedObjectsNodeListenersListener["Protocol"].asString(); + masterSlaveServerGroupsObject.associatedObjects.listeners.push_back(listenerObject); + } + masterSlaveServerGroups_.push_back(masterSlaveServerGroupsObject); + } + +} + +std::vector DescribeMasterSlaveServerGroupsResult::getMasterSlaveServerGroups()const +{ + return masterSlaveServerGroups_; +} + diff --git a/slb/src/model/DescribeRegionsRequest.cc b/slb/src/model/DescribeRegionsRequest.cc index a0252a6e4..bcdc527f2 100644 --- a/slb/src/model/DescribeRegionsRequest.cc +++ b/slb/src/model/DescribeRegionsRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::DescribeRegionsRequest; DescribeRegionsRequest::DescribeRegionsRequest() - : RpcServiceRequest("slb", "2013-02-21", "DescribeRegions") { + : RpcServiceRequest("slb", "2014-05-15", "DescribeRegions") { setMethod(HttpRequest::Method::Post); } @@ -43,6 +43,15 @@ void DescribeRegionsRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } +std::string DescribeRegionsRequest::getRegionId() const { + return regionId_; +} + +void DescribeRegionsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + std::string DescribeRegionsRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } @@ -70,15 +79,6 @@ void DescribeRegionsRequest::setOwnerId(long ownerId) { setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -std::string DescribeRegionsRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void DescribeRegionsRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string DescribeRegionsRequest::getTags() const { return tags_; } @@ -88,3 +88,12 @@ void DescribeRegionsRequest::setTags(const std::string &tags) { setParameter(std::string("Tags"), tags); } +std::string DescribeRegionsRequest::getAcceptLanguage() const { + return acceptLanguage_; +} + +void DescribeRegionsRequest::setAcceptLanguage(const std::string &acceptLanguage) { + acceptLanguage_ = acceptLanguage; + setParameter(std::string("AcceptLanguage"), acceptLanguage); +} + diff --git a/slb/src/model/DescribeRegionsResult.cc b/slb/src/model/DescribeRegionsResult.cc index 9aed3ac9d..9c94ac839 100644 --- a/slb/src/model/DescribeRegionsResult.cc +++ b/slb/src/model/DescribeRegionsResult.cc @@ -43,6 +43,8 @@ void DescribeRegionsResult::parse(const std::string &payload) for (auto valueRegionsRegion : allRegionsNode) { Region regionsObject; + if(!valueRegionsRegion["RegionEndpoint"].isNull()) + regionsObject.regionEndpoint = valueRegionsRegion["RegionEndpoint"].asString(); if(!valueRegionsRegion["LocalName"].isNull()) regionsObject.localName = valueRegionsRegion["LocalName"].asString(); if(!valueRegionsRegion["RegionId"].isNull()) diff --git a/slb/src/model/DescribeRuleAttributeRequest.cc b/slb/src/model/DescribeRuleAttributeRequest.cc new file mode 100644 index 000000000..8b31926c8 --- /dev/null +++ b/slb/src/model/DescribeRuleAttributeRequest.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::Slb::Model::DescribeRuleAttributeRequest; + +DescribeRuleAttributeRequest::DescribeRuleAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeRuleAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeRuleAttributeRequest::~DescribeRuleAttributeRequest() {} + +std::string DescribeRuleAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeRuleAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeRuleAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeRuleAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeRuleAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeRuleAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeRuleAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeRuleAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeRuleAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeRuleAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeRuleAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeRuleAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeRuleAttributeRequest::getTags() const { + return tags_; +} + +void DescribeRuleAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeRuleAttributeRequest::getRuleId() const { + return ruleId_; +} + +void DescribeRuleAttributeRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); +} + diff --git a/slb/src/model/DescribeRuleAttributeResult.cc b/slb/src/model/DescribeRuleAttributeResult.cc new file mode 100644 index 000000000..a3376b9ab --- /dev/null +++ b/slb/src/model/DescribeRuleAttributeResult.cc @@ -0,0 +1,205 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeRuleAttributeResult::DescribeRuleAttributeResult() : + ServiceResult() +{} + +DescribeRuleAttributeResult::DescribeRuleAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRuleAttributeResult::~DescribeRuleAttributeResult() +{} + +void DescribeRuleAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["Cookie"].isNull()) + cookie_ = value["Cookie"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["RuleId"].isNull()) + ruleId_ = value["RuleId"].asString(); + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); + if(!value["HealthCheckConnectPort"].isNull()) + healthCheckConnectPort_ = std::stoi(value["HealthCheckConnectPort"].asString()); + if(!value["HealthCheckTimeout"].isNull()) + healthCheckTimeout_ = std::stoi(value["HealthCheckTimeout"].asString()); + if(!value["CookieTimeout"].isNull()) + cookieTimeout_ = std::stoi(value["CookieTimeout"].asString()); + if(!value["HealthCheckDomain"].isNull()) + healthCheckDomain_ = value["HealthCheckDomain"].asString(); + if(!value["UnhealthyThreshold"].isNull()) + unhealthyThreshold_ = std::stoi(value["UnhealthyThreshold"].asString()); + if(!value["HealthCheckHttpCode"].isNull()) + healthCheckHttpCode_ = value["HealthCheckHttpCode"].asString(); + if(!value["Domain"].isNull()) + domain_ = value["Domain"].asString(); + if(!value["ListenerPort"].isNull()) + listenerPort_ = value["ListenerPort"].asString(); + if(!value["Url"].isNull()) + url_ = value["Url"].asString(); + if(!value["HealthCheckInterval"].isNull()) + healthCheckInterval_ = std::stoi(value["HealthCheckInterval"].asString()); + if(!value["HealthCheckURI"].isNull()) + healthCheckURI_ = value["HealthCheckURI"].asString(); + if(!value["RuleName"].isNull()) + ruleName_ = value["RuleName"].asString(); + if(!value["StickySessionType"].isNull()) + stickySessionType_ = value["StickySessionType"].asString(); + if(!value["Scheduler"].isNull()) + scheduler_ = value["Scheduler"].asString(); + if(!value["ListenerSync"].isNull()) + listenerSync_ = value["ListenerSync"].asString(); + if(!value["HealthyThreshold"].isNull()) + healthyThreshold_ = std::stoi(value["HealthyThreshold"].asString()); + if(!value["StickySession"].isNull()) + stickySession_ = value["StickySession"].asString(); + if(!value["HealthCheck"].isNull()) + healthCheck_ = value["HealthCheck"].asString(); + +} + +std::string DescribeRuleAttributeResult::getCookie()const +{ + return cookie_; +} + +int DescribeRuleAttributeResult::getCookieTimeout()const +{ + return cookieTimeout_; +} + +std::string DescribeRuleAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::string DescribeRuleAttributeResult::getListenerPort()const +{ + return listenerPort_; +} + +int DescribeRuleAttributeResult::getHealthCheckInterval()const +{ + return healthCheckInterval_; +} + +int DescribeRuleAttributeResult::getUnhealthyThreshold()const +{ + return unhealthyThreshold_; +} + +std::string DescribeRuleAttributeResult::getHealthCheckURI()const +{ + return healthCheckURI_; +} + +std::string DescribeRuleAttributeResult::getScheduler()const +{ + return scheduler_; +} + +std::string DescribeRuleAttributeResult::getRuleId()const +{ + return ruleId_; +} + +std::string DescribeRuleAttributeResult::getHealthCheck()const +{ + return healthCheck_; +} + +std::string DescribeRuleAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +int DescribeRuleAttributeResult::getHealthCheckTimeout()const +{ + return healthCheckTimeout_; +} + +std::string DescribeRuleAttributeResult::getUrl()const +{ + return url_; +} + +std::string DescribeRuleAttributeResult::getStickySession()const +{ + return stickySession_; +} + +int DescribeRuleAttributeResult::getHealthCheckConnectPort()const +{ + return healthCheckConnectPort_; +} + +std::string DescribeRuleAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + +int DescribeRuleAttributeResult::getHealthyThreshold()const +{ + return healthyThreshold_; +} + +std::string DescribeRuleAttributeResult::getHealthCheckDomain()const +{ + return healthCheckDomain_; +} + +std::string DescribeRuleAttributeResult::getListenerSync()const +{ + return listenerSync_; +} + +std::string DescribeRuleAttributeResult::getStickySessionType()const +{ + return stickySessionType_; +} + +std::string DescribeRuleAttributeResult::getDomain()const +{ + return domain_; +} + +std::string DescribeRuleAttributeResult::getHealthCheckHttpCode()const +{ + return healthCheckHttpCode_; +} + +std::string DescribeRuleAttributeResult::getRuleName()const +{ + return ruleName_; +} + diff --git a/slb/src/model/DescribeRulesRequest.cc b/slb/src/model/DescribeRulesRequest.cc new file mode 100644 index 000000000..c876b885c --- /dev/null +++ b/slb/src/model/DescribeRulesRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeRulesRequest; + +DescribeRulesRequest::DescribeRulesRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeRules") { + setMethod(HttpRequest::Method::Post); +} + +DescribeRulesRequest::~DescribeRulesRequest() {} + +std::string DescribeRulesRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeRulesRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeRulesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeRulesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeRulesRequest::getRegionId() const { + return regionId_; +} + +void DescribeRulesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeRulesRequest::getListenerPort() const { + return listenerPort_; +} + +void DescribeRulesRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string DescribeRulesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeRulesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeRulesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeRulesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeRulesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeRulesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeRulesRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void DescribeRulesRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::string DescribeRulesRequest::getTags() const { + return tags_; +} + +void DescribeRulesRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeRulesRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeRulesRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/DescribeRulesResult.cc b/slb/src/model/DescribeRulesResult.cc new file mode 100644 index 000000000..7dfaa5f03 --- /dev/null +++ b/slb/src/model/DescribeRulesResult.cc @@ -0,0 +1,97 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeRulesResult::DescribeRulesResult() : + ServiceResult() +{} + +DescribeRulesResult::DescribeRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeRulesResult::~DescribeRulesResult() +{} + +void DescribeRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allRulesNode = value["Rules"]["Rule"]; + for (auto valueRulesRule : allRulesNode) + { + Rule rulesObject; + if(!valueRulesRule["HealthCheckHttpCode"].isNull()) + rulesObject.healthCheckHttpCode = valueRulesRule["HealthCheckHttpCode"].asString(); + if(!valueRulesRule["VServerGroupId"].isNull()) + rulesObject.vServerGroupId = valueRulesRule["VServerGroupId"].asString(); + if(!valueRulesRule["Domain"].isNull()) + rulesObject.domain = valueRulesRule["Domain"].asString(); + if(!valueRulesRule["Cookie"].isNull()) + rulesObject.cookie = valueRulesRule["Cookie"].asString(); + if(!valueRulesRule["HealthCheckInterval"].isNull()) + rulesObject.healthCheckInterval = std::stoi(valueRulesRule["HealthCheckInterval"].asString()); + if(!valueRulesRule["Url"].isNull()) + rulesObject.url = valueRulesRule["Url"].asString(); + if(!valueRulesRule["HealthCheckURI"].isNull()) + rulesObject.healthCheckURI = valueRulesRule["HealthCheckURI"].asString(); + if(!valueRulesRule["StickySessionType"].isNull()) + rulesObject.stickySessionType = valueRulesRule["StickySessionType"].asString(); + if(!valueRulesRule["RuleName"].isNull()) + rulesObject.ruleName = valueRulesRule["RuleName"].asString(); + if(!valueRulesRule["RuleId"].isNull()) + rulesObject.ruleId = valueRulesRule["RuleId"].asString(); + if(!valueRulesRule["ServiceManagedMode"].isNull()) + rulesObject.serviceManagedMode = valueRulesRule["ServiceManagedMode"].asString(); + if(!valueRulesRule["HealthCheckConnectPort"].isNull()) + rulesObject.healthCheckConnectPort = std::stoi(valueRulesRule["HealthCheckConnectPort"].asString()); + if(!valueRulesRule["Scheduler"].isNull()) + rulesObject.scheduler = valueRulesRule["Scheduler"].asString(); + if(!valueRulesRule["HealthCheckTimeout"].isNull()) + rulesObject.healthCheckTimeout = std::stoi(valueRulesRule["HealthCheckTimeout"].asString()); + if(!valueRulesRule["ListenerSync"].isNull()) + rulesObject.listenerSync = valueRulesRule["ListenerSync"].asString(); + if(!valueRulesRule["HealthyThreshold"].isNull()) + rulesObject.healthyThreshold = std::stoi(valueRulesRule["HealthyThreshold"].asString()); + if(!valueRulesRule["CookieTimeout"].isNull()) + rulesObject.cookieTimeout = std::stoi(valueRulesRule["CookieTimeout"].asString()); + if(!valueRulesRule["HealthCheckDomain"].isNull()) + rulesObject.healthCheckDomain = valueRulesRule["HealthCheckDomain"].asString(); + if(!valueRulesRule["UnhealthyThreshold"].isNull()) + rulesObject.unhealthyThreshold = std::stoi(valueRulesRule["UnhealthyThreshold"].asString()); + if(!valueRulesRule["StickySession"].isNull()) + rulesObject.stickySession = valueRulesRule["StickySession"].asString(); + if(!valueRulesRule["HealthCheck"].isNull()) + rulesObject.healthCheck = valueRulesRule["HealthCheck"].asString(); + rules_.push_back(rulesObject); + } + +} + +std::vector DescribeRulesResult::getRules()const +{ + return rules_; +} + diff --git a/slb/src/model/DescribeServerCertificatesRequest.cc b/slb/src/model/DescribeServerCertificatesRequest.cc new file mode 100644 index 000000000..88b741f12 --- /dev/null +++ b/slb/src/model/DescribeServerCertificatesRequest.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeServerCertificatesRequest; + +DescribeServerCertificatesRequest::DescribeServerCertificatesRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeServerCertificates") { + setMethod(HttpRequest::Method::Post); +} + +DescribeServerCertificatesRequest::~DescribeServerCertificatesRequest() {} + +std::string DescribeServerCertificatesRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeServerCertificatesRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeServerCertificatesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeServerCertificatesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeServerCertificatesRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void DescribeServerCertificatesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string DescribeServerCertificatesRequest::getRegionId() const { + return regionId_; +} + +void DescribeServerCertificatesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector DescribeServerCertificatesRequest::getTag() const { + return tag_; +} + +void DescribeServerCertificatesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string DescribeServerCertificatesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeServerCertificatesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeServerCertificatesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeServerCertificatesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeServerCertificatesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeServerCertificatesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeServerCertificatesRequest::getServerCertificateId() const { + return serverCertificateId_; +} + +void DescribeServerCertificatesRequest::setServerCertificateId(const std::string &serverCertificateId) { + serverCertificateId_ = serverCertificateId; + setParameter(std::string("ServerCertificateId"), serverCertificateId); +} + +std::string DescribeServerCertificatesRequest::getTags() const { + return tags_; +} + +void DescribeServerCertificatesRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/DescribeServerCertificatesResult.cc b/slb/src/model/DescribeServerCertificatesResult.cc new file mode 100644 index 000000000..3382ce977 --- /dev/null +++ b/slb/src/model/DescribeServerCertificatesResult.cc @@ -0,0 +1,102 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeServerCertificatesResult::DescribeServerCertificatesResult() : + ServiceResult() +{} + +DescribeServerCertificatesResult::DescribeServerCertificatesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeServerCertificatesResult::~DescribeServerCertificatesResult() +{} + +void DescribeServerCertificatesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allServerCertificatesNode = value["ServerCertificates"]["ServerCertificate"]; + for (auto valueServerCertificatesServerCertificate : allServerCertificatesNode) + { + ServerCertificate serverCertificatesObject; + if(!valueServerCertificatesServerCertificate["CreateTimeStamp"].isNull()) + serverCertificatesObject.createTimeStamp = std::stol(valueServerCertificatesServerCertificate["CreateTimeStamp"].asString()); + if(!valueServerCertificatesServerCertificate["AliCloudCertificateName"].isNull()) + serverCertificatesObject.aliCloudCertificateName = valueServerCertificatesServerCertificate["AliCloudCertificateName"].asString(); + if(!valueServerCertificatesServerCertificate["StandardType"].isNull()) + serverCertificatesObject.standardType = valueServerCertificatesServerCertificate["StandardType"].asString(); + if(!valueServerCertificatesServerCertificate["ExpireTime"].isNull()) + serverCertificatesObject.expireTime = valueServerCertificatesServerCertificate["ExpireTime"].asString(); + if(!valueServerCertificatesServerCertificate["EncryptionKeyLength"].isNull()) + serverCertificatesObject.encryptionKeyLength = std::stoi(valueServerCertificatesServerCertificate["EncryptionKeyLength"].asString()); + if(!valueServerCertificatesServerCertificate["CreateTime"].isNull()) + serverCertificatesObject.createTime = valueServerCertificatesServerCertificate["CreateTime"].asString(); + if(!valueServerCertificatesServerCertificate["ServerCertificateId"].isNull()) + serverCertificatesObject.serverCertificateId = valueServerCertificatesServerCertificate["ServerCertificateId"].asString(); + if(!valueServerCertificatesServerCertificate["ExpireTimeStamp"].isNull()) + serverCertificatesObject.expireTimeStamp = std::stol(valueServerCertificatesServerCertificate["ExpireTimeStamp"].asString()); + if(!valueServerCertificatesServerCertificate["RegionId"].isNull()) + serverCertificatesObject.regionId = valueServerCertificatesServerCertificate["RegionId"].asString(); + if(!valueServerCertificatesServerCertificate["EncryptionAlgorithm"].isNull()) + serverCertificatesObject.encryptionAlgorithm = valueServerCertificatesServerCertificate["EncryptionAlgorithm"].asString(); + if(!valueServerCertificatesServerCertificate["ServerCertificateName"].isNull()) + serverCertificatesObject.serverCertificateName = valueServerCertificatesServerCertificate["ServerCertificateName"].asString(); + if(!valueServerCertificatesServerCertificate["Fingerprint"].isNull()) + serverCertificatesObject.fingerprint = valueServerCertificatesServerCertificate["Fingerprint"].asString(); + if(!valueServerCertificatesServerCertificate["CommonName"].isNull()) + serverCertificatesObject.commonName = valueServerCertificatesServerCertificate["CommonName"].asString(); + if(!valueServerCertificatesServerCertificate["ResourceGroupId"].isNull()) + serverCertificatesObject.resourceGroupId = valueServerCertificatesServerCertificate["ResourceGroupId"].asString(); + if(!valueServerCertificatesServerCertificate["RegionIdAlias"].isNull()) + serverCertificatesObject.regionIdAlias = valueServerCertificatesServerCertificate["RegionIdAlias"].asString(); + if(!valueServerCertificatesServerCertificate["IsAliCloudCertificate"].isNull()) + serverCertificatesObject.isAliCloudCertificate = std::stoi(valueServerCertificatesServerCertificate["IsAliCloudCertificate"].asString()); + if(!valueServerCertificatesServerCertificate["AliCloudCertificateId"].isNull()) + serverCertificatesObject.aliCloudCertificateId = valueServerCertificatesServerCertificate["AliCloudCertificateId"].asString(); + auto allTagsNode = valueServerCertificatesServerCertificate["Tags"]["Tag"]; + for (auto valueServerCertificatesServerCertificateTagsTag : allTagsNode) + { + ServerCertificate::Tag tagsObject; + if(!valueServerCertificatesServerCertificateTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueServerCertificatesServerCertificateTagsTag["TagValue"].asString(); + if(!valueServerCertificatesServerCertificateTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueServerCertificatesServerCertificateTagsTag["TagKey"].asString(); + serverCertificatesObject.tags.push_back(tagsObject); + } + auto allSubjectAlternativeNames = value["SubjectAlternativeNames"]["SubjectAlternativeName"]; + for (auto value : allSubjectAlternativeNames) + serverCertificatesObject.subjectAlternativeNames.push_back(value.asString()); + serverCertificates_.push_back(serverCertificatesObject); + } + +} + +std::vector DescribeServerCertificatesResult::getServerCertificates()const +{ + return serverCertificates_; +} + diff --git a/slb/src/model/DescribeTagsRequest.cc b/slb/src/model/DescribeTagsRequest.cc new file mode 100644 index 000000000..fa7779fa6 --- /dev/null +++ b/slb/src/model/DescribeTagsRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeTagsRequest; + +DescribeTagsRequest::DescribeTagsRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeTags") { + setMethod(HttpRequest::Method::Post); +} + +DescribeTagsRequest::~DescribeTagsRequest() {} + +std::string DescribeTagsRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeTagsRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeTagsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeTagsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int DescribeTagsRequest::getPageNumber() const { + return pageNumber_; +} + +void DescribeTagsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string DescribeTagsRequest::getRegionId() const { + return regionId_; +} + +void DescribeTagsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int DescribeTagsRequest::getPageSize() const { + return pageSize_; +} + +void DescribeTagsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string DescribeTagsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeTagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeTagsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeTagsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +bool DescribeTagsRequest::getDistinctKey() const { + return distinctKey_; +} + +void DescribeTagsRequest::setDistinctKey(bool distinctKey) { + distinctKey_ = distinctKey; + setParameter(std::string("DistinctKey"), distinctKey ? "true" : "false"); +} + +long DescribeTagsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeTagsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeTagsRequest::getTags() const { + return tags_; +} + +void DescribeTagsRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeTagsRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeTagsRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/DescribeTagsResult.cc b/slb/src/model/DescribeTagsResult.cc new file mode 100644 index 000000000..5c9235390 --- /dev/null +++ b/slb/src/model/DescribeTagsResult.cc @@ -0,0 +1,82 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeTagsResult::DescribeTagsResult() : + ServiceResult() +{} + +DescribeTagsResult::DescribeTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTagsResult::~DescribeTagsResult() +{} + +void DescribeTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagSetsNode = value["TagSets"]["TagSet"]; + for (auto valueTagSetsTagSet : allTagSetsNode) + { + TagSet tagSetsObject; + if(!valueTagSetsTagSet["TagValue"].isNull()) + tagSetsObject.tagValue = valueTagSetsTagSet["TagValue"].asString(); + if(!valueTagSetsTagSet["InstanceCount"].isNull()) + tagSetsObject.instanceCount = std::stoi(valueTagSetsTagSet["InstanceCount"].asString()); + if(!valueTagSetsTagSet["TagKey"].isNull()) + tagSetsObject.tagKey = valueTagSetsTagSet["TagKey"].asString(); + tagSets_.push_back(tagSetsObject); + } + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeTagsResult::getTotalCount()const +{ + return totalCount_; +} + +int DescribeTagsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeTagsResult::getPageNumber()const +{ + return pageNumber_; +} + +std::vector DescribeTagsResult::getTagSets()const +{ + return tagSets_; +} + diff --git a/slb/src/model/DescribeVServerGroupAttributeRequest.cc b/slb/src/model/DescribeVServerGroupAttributeRequest.cc new file mode 100644 index 000000000..49b806576 --- /dev/null +++ b/slb/src/model/DescribeVServerGroupAttributeRequest.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::Slb::Model::DescribeVServerGroupAttributeRequest; + +DescribeVServerGroupAttributeRequest::DescribeVServerGroupAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeVServerGroupAttribute") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVServerGroupAttributeRequest::~DescribeVServerGroupAttributeRequest() {} + +std::string DescribeVServerGroupAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeVServerGroupAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeVServerGroupAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeVServerGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeVServerGroupAttributeRequest::getRegionId() const { + return regionId_; +} + +void DescribeVServerGroupAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeVServerGroupAttributeRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void DescribeVServerGroupAttributeRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string DescribeVServerGroupAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeVServerGroupAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeVServerGroupAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeVServerGroupAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeVServerGroupAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVServerGroupAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeVServerGroupAttributeRequest::getTags() const { + return tags_; +} + +void DescribeVServerGroupAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/DescribeVServerGroupAttributeResult.cc b/slb/src/model/DescribeVServerGroupAttributeResult.cc new file mode 100644 index 000000000..aa3e8f2c1 --- /dev/null +++ b/slb/src/model/DescribeVServerGroupAttributeResult.cc @@ -0,0 +1,125 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeVServerGroupAttributeResult::DescribeVServerGroupAttributeResult() : + ServiceResult() +{} + +DescribeVServerGroupAttributeResult::DescribeVServerGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVServerGroupAttributeResult::~DescribeVServerGroupAttributeResult() +{} + +void DescribeVServerGroupAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["BackendServer"]; + for (auto valueBackendServersBackendServer : allBackendServersNode) + { + BackendServer backendServersObject; + if(!valueBackendServersBackendServer["VpcId"].isNull()) + backendServersObject.vpcId = valueBackendServersBackendServer["VpcId"].asString(); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["Weight"].isNull()) + backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString()); + if(!valueBackendServersBackendServer["ProxyProtocolV2Enabled"].isNull()) + backendServersObject.proxyProtocolV2Enabled = valueBackendServersBackendServer["ProxyProtocolV2Enabled"].asString() == "true"; + if(!valueBackendServersBackendServer["Description"].isNull()) + backendServersObject.description = valueBackendServersBackendServer["Description"].asString(); + if(!valueBackendServersBackendServer["ServerRegionId"].isNull()) + backendServersObject.serverRegionId = valueBackendServersBackendServer["ServerRegionId"].asString(); + if(!valueBackendServersBackendServer["ServerIp"].isNull()) + backendServersObject.serverIp = valueBackendServersBackendServer["ServerIp"].asString(); + if(!valueBackendServersBackendServer["Port"].isNull()) + backendServersObject.port = std::stoi(valueBackendServersBackendServer["Port"].asString()); + if(!valueBackendServersBackendServer["VbrId"].isNull()) + backendServersObject.vbrId = valueBackendServersBackendServer["VbrId"].asString(); + if(!valueBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); + backendServers_.push_back(backendServersObject); + } + 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); + } + if(!value["ServiceManagedMode"].isNull()) + serviceManagedMode_ = value["ServiceManagedMode"].asString(); + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["VServerGroupName"].isNull()) + vServerGroupName_ = value["VServerGroupName"].asString(); + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + +} + +std::string DescribeVServerGroupAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::string DescribeVServerGroupAttributeResult::getServiceManagedMode()const +{ + return serviceManagedMode_; +} + +std::string DescribeVServerGroupAttributeResult::getCreateTime()const +{ + return createTime_; +} + +std::string DescribeVServerGroupAttributeResult::getVServerGroupName()const +{ + return vServerGroupName_; +} + +std::string DescribeVServerGroupAttributeResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::vector DescribeVServerGroupAttributeResult::getBackendServers()const +{ + return backendServers_; +} + +std::vector DescribeVServerGroupAttributeResult::getTags()const +{ + return tags_; +} + diff --git a/slb/src/model/DescribeVServerGroupsRequest.cc b/slb/src/model/DescribeVServerGroupsRequest.cc new file mode 100644 index 000000000..b74b23988 --- /dev/null +++ b/slb/src/model/DescribeVServerGroupsRequest.cc @@ -0,0 +1,140 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeVServerGroupsRequest; + +DescribeVServerGroupsRequest::DescribeVServerGroupsRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeVServerGroups") { + setMethod(HttpRequest::Method::Post); +} + +DescribeVServerGroupsRequest::~DescribeVServerGroupsRequest() {} + +std::string DescribeVServerGroupsRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeVServerGroupsRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeVServerGroupsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeVServerGroupsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +bool DescribeVServerGroupsRequest::getIncludeListener() const { + return includeListener_; +} + +void DescribeVServerGroupsRequest::setIncludeListener(bool includeListener) { + includeListener_ = includeListener; + setParameter(std::string("IncludeListener"), includeListener ? "true" : "false"); +} + +std::string DescribeVServerGroupsRequest::getDescription() const { + return description_; +} + +void DescribeVServerGroupsRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +bool DescribeVServerGroupsRequest::getIncludeRule() const { + return includeRule_; +} + +void DescribeVServerGroupsRequest::setIncludeRule(bool includeRule) { + includeRule_ = includeRule; + setParameter(std::string("IncludeRule"), includeRule ? "true" : "false"); +} + +std::string DescribeVServerGroupsRequest::getRegionId() const { + return regionId_; +} + +void DescribeVServerGroupsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector DescribeVServerGroupsRequest::getTag() const { + return tag_; +} + +void DescribeVServerGroupsRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string DescribeVServerGroupsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeVServerGroupsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeVServerGroupsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeVServerGroupsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeVServerGroupsRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeVServerGroupsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeVServerGroupsRequest::getTags() const { + return tags_; +} + +void DescribeVServerGroupsRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string DescribeVServerGroupsRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void DescribeVServerGroupsRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/DescribeVServerGroupsResult.cc b/slb/src/model/DescribeVServerGroupsResult.cc new file mode 100644 index 000000000..d3539e18c --- /dev/null +++ b/slb/src/model/DescribeVServerGroupsResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +DescribeVServerGroupsResult::DescribeVServerGroupsResult() : + ServiceResult() +{} + +DescribeVServerGroupsResult::DescribeVServerGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeVServerGroupsResult::~DescribeVServerGroupsResult() +{} + +void DescribeVServerGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allVServerGroupsNode = value["VServerGroups"]["VServerGroup"]; + for (auto valueVServerGroupsVServerGroup : allVServerGroupsNode) + { + VServerGroup vServerGroupsObject; + if(!valueVServerGroupsVServerGroup["VServerGroupId"].isNull()) + vServerGroupsObject.vServerGroupId = valueVServerGroupsVServerGroup["VServerGroupId"].asString(); + if(!valueVServerGroupsVServerGroup["ServiceManagedMode"].isNull()) + vServerGroupsObject.serviceManagedMode = valueVServerGroupsVServerGroup["ServiceManagedMode"].asString(); + if(!valueVServerGroupsVServerGroup["VServerGroupName"].isNull()) + vServerGroupsObject.vServerGroupName = valueVServerGroupsVServerGroup["VServerGroupName"].asString(); + if(!valueVServerGroupsVServerGroup["ServerCount"].isNull()) + vServerGroupsObject.serverCount = std::stol(valueVServerGroupsVServerGroup["ServerCount"].asString()); + if(!valueVServerGroupsVServerGroup["CreateTime"].isNull()) + vServerGroupsObject.createTime = valueVServerGroupsVServerGroup["CreateTime"].asString(); + auto allTagsNode = valueVServerGroupsVServerGroup["Tags"]["Tag"]; + for (auto valueVServerGroupsVServerGroupTagsTag : allTagsNode) + { + VServerGroup::Tag tagsObject; + if(!valueVServerGroupsVServerGroupTagsTag["TagKey"].isNull()) + tagsObject.tagKey = valueVServerGroupsVServerGroupTagsTag["TagKey"].asString(); + if(!valueVServerGroupsVServerGroupTagsTag["TagValue"].isNull()) + tagsObject.tagValue = valueVServerGroupsVServerGroupTagsTag["TagValue"].asString(); + vServerGroupsObject.tags.push_back(tagsObject); + } + auto associatedObjectsNode = value["AssociatedObjects"]; + auto allListenersNode = associatedObjectsNode["Listeners"]["Listener"]; + for (auto associatedObjectsNodeListenersListener : allListenersNode) + { + VServerGroup::AssociatedObjects::Listener listenerObject; + if(!associatedObjectsNodeListenersListener["Port"].isNull()) + listenerObject.port = std::stoi(associatedObjectsNodeListenersListener["Port"].asString()); + if(!associatedObjectsNodeListenersListener["Protocol"].isNull()) + listenerObject.protocol = associatedObjectsNodeListenersListener["Protocol"].asString(); + vServerGroupsObject.associatedObjects.listeners.push_back(listenerObject); + } + auto allRulesNode = associatedObjectsNode["Rules"]["Rule"]; + for (auto associatedObjectsNodeRulesRule : allRulesNode) + { + VServerGroup::AssociatedObjects::Rule ruleObject; + if(!associatedObjectsNodeRulesRule["Url"].isNull()) + ruleObject.url = associatedObjectsNodeRulesRule["Url"].asString(); + if(!associatedObjectsNodeRulesRule["Domain"].isNull()) + ruleObject.domain = associatedObjectsNodeRulesRule["Domain"].asString(); + if(!associatedObjectsNodeRulesRule["RuleName"].isNull()) + ruleObject.ruleName = associatedObjectsNodeRulesRule["RuleName"].asString(); + if(!associatedObjectsNodeRulesRule["RuleId"].isNull()) + ruleObject.ruleId = associatedObjectsNodeRulesRule["RuleId"].asString(); + vServerGroupsObject.associatedObjects.rules.push_back(ruleObject); + } + vServerGroups_.push_back(vServerGroupsObject); + } + +} + +std::vector DescribeVServerGroupsResult::getVServerGroups()const +{ + return vServerGroups_; +} + diff --git a/slb/src/model/DescribeZonesRequest.cc b/slb/src/model/DescribeZonesRequest.cc new file mode 100644 index 000000000..d5082555c --- /dev/null +++ b/slb/src/model/DescribeZonesRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::DescribeZonesRequest; + +DescribeZonesRequest::DescribeZonesRequest() + : RpcServiceRequest("slb", "2014-05-15", "DescribeZones") { + setMethod(HttpRequest::Method::Post); +} + +DescribeZonesRequest::~DescribeZonesRequest() {} + +std::string DescribeZonesRequest::getAccess_key_id() const { + return access_key_id_; +} + +void DescribeZonesRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long DescribeZonesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DescribeZonesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DescribeZonesRequest::getRegionId() const { + return regionId_; +} + +void DescribeZonesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string DescribeZonesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DescribeZonesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DescribeZonesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DescribeZonesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DescribeZonesRequest::getOwnerId() const { + return ownerId_; +} + +void DescribeZonesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DescribeZonesRequest::getTags() const { + return tags_; +} + +void DescribeZonesRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/DescribeZonesResult.cc b/slb/src/model/DescribeZonesResult.cc new file mode 100644 index 000000000..02abf832b --- /dev/null +++ b/slb/src/model/DescribeZonesResult.cc @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::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["ZoneId"].isNull()) + zonesObject.zoneId = valueZonesZone["ZoneId"].asString(); + if(!valueZonesZone["LocalName"].isNull()) + zonesObject.localName = valueZonesZone["LocalName"].asString(); + auto allSlaveZonesNode = valueZonesZone["SlaveZones"]["SlaveZone"]; + for (auto valueZonesZoneSlaveZonesSlaveZone : allSlaveZonesNode) + { + Zone::SlaveZone slaveZonesObject; + if(!valueZonesZoneSlaveZonesSlaveZone["ZoneId"].isNull()) + slaveZonesObject.zoneId = valueZonesZoneSlaveZonesSlaveZone["ZoneId"].asString(); + if(!valueZonesZoneSlaveZonesSlaveZone["LocalName"].isNull()) + slaveZonesObject.localName = valueZonesZoneSlaveZonesSlaveZone["LocalName"].asString(); + zonesObject.slaveZones.push_back(slaveZonesObject); + } + zones_.push_back(zonesObject); + } + +} + +std::vector DescribeZonesResult::getZones()const +{ + return zones_; +} + diff --git a/slb/src/model/EnableHighDefinationMonitorRequest.cc b/slb/src/model/EnableHighDefinationMonitorRequest.cc new file mode 100644 index 000000000..1e776b2c5 --- /dev/null +++ b/slb/src/model/EnableHighDefinationMonitorRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::EnableHighDefinationMonitorRequest; + +EnableHighDefinationMonitorRequest::EnableHighDefinationMonitorRequest() + : RpcServiceRequest("slb", "2014-05-15", "EnableHighDefinationMonitor") { + setMethod(HttpRequest::Method::Post); +} + +EnableHighDefinationMonitorRequest::~EnableHighDefinationMonitorRequest() {} + +std::string EnableHighDefinationMonitorRequest::getAccess_key_id() const { + return access_key_id_; +} + +void EnableHighDefinationMonitorRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long EnableHighDefinationMonitorRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void EnableHighDefinationMonitorRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string EnableHighDefinationMonitorRequest::getLogProject() const { + return logProject_; +} + +void EnableHighDefinationMonitorRequest::setLogProject(const std::string &logProject) { + logProject_ = logProject; + setParameter(std::string("LogProject"), logProject); +} + +std::string EnableHighDefinationMonitorRequest::getRegionId() const { + return regionId_; +} + +void EnableHighDefinationMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string EnableHighDefinationMonitorRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void EnableHighDefinationMonitorRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string EnableHighDefinationMonitorRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void EnableHighDefinationMonitorRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long EnableHighDefinationMonitorRequest::getOwnerId() const { + return ownerId_; +} + +void EnableHighDefinationMonitorRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string EnableHighDefinationMonitorRequest::getTags() const { + return tags_; +} + +void EnableHighDefinationMonitorRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string EnableHighDefinationMonitorRequest::getLogStore() const { + return logStore_; +} + +void EnableHighDefinationMonitorRequest::setLogStore(const std::string &logStore) { + logStore_ = logStore; + setParameter(std::string("LogStore"), logStore); +} + diff --git a/slb/src/model/EnableHighDefinationMonitorResult.cc b/slb/src/model/EnableHighDefinationMonitorResult.cc new file mode 100644 index 000000000..ba201fd93 --- /dev/null +++ b/slb/src/model/EnableHighDefinationMonitorResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +EnableHighDefinationMonitorResult::EnableHighDefinationMonitorResult() : + ServiceResult() +{} + +EnableHighDefinationMonitorResult::EnableHighDefinationMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableHighDefinationMonitorResult::~EnableHighDefinationMonitorResult() +{} + +void EnableHighDefinationMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string EnableHighDefinationMonitorResult::getSuccess()const +{ + return success_; +} + diff --git a/slb/src/model/ListTLSCipherPoliciesRequest.cc b/slb/src/model/ListTLSCipherPoliciesRequest.cc new file mode 100644 index 000000000..8f3979198 --- /dev/null +++ b/slb/src/model/ListTLSCipherPoliciesRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::ListTLSCipherPoliciesRequest; + +ListTLSCipherPoliciesRequest::ListTLSCipherPoliciesRequest() + : RpcServiceRequest("slb", "2014-05-15", "ListTLSCipherPolicies") { + setMethod(HttpRequest::Method::Post); +} + +ListTLSCipherPoliciesRequest::~ListTLSCipherPoliciesRequest() {} + +std::string ListTLSCipherPoliciesRequest::getAccess_key_id() const { + return access_key_id_; +} + +void ListTLSCipherPoliciesRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long ListTLSCipherPoliciesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListTLSCipherPoliciesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +bool ListTLSCipherPoliciesRequest::getIncludeListener() const { + return includeListener_; +} + +void ListTLSCipherPoliciesRequest::setIncludeListener(bool includeListener) { + includeListener_ = includeListener; + setParameter(std::string("IncludeListener"), includeListener ? "true" : "false"); +} + +std::string ListTLSCipherPoliciesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListTLSCipherPoliciesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListTLSCipherPoliciesRequest::getTLSCipherPolicyId() const { + return tLSCipherPolicyId_; +} + +void ListTLSCipherPoliciesRequest::setTLSCipherPolicyId(const std::string &tLSCipherPolicyId) { + tLSCipherPolicyId_ = tLSCipherPolicyId; + setParameter(std::string("TLSCipherPolicyId"), tLSCipherPolicyId); +} + +std::string ListTLSCipherPoliciesRequest::getRegionId() const { + return regionId_; +} + +void ListTLSCipherPoliciesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListTLSCipherPoliciesRequest::getNextToken() const { + return nextToken_; +} + +void ListTLSCipherPoliciesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::string ListTLSCipherPoliciesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListTLSCipherPoliciesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListTLSCipherPoliciesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListTLSCipherPoliciesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListTLSCipherPoliciesRequest::getOwnerId() const { + return ownerId_; +} + +void ListTLSCipherPoliciesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListTLSCipherPoliciesRequest::getName() const { + return name_; +} + +void ListTLSCipherPoliciesRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + +int ListTLSCipherPoliciesRequest::getMaxItems() const { + return maxItems_; +} + +void ListTLSCipherPoliciesRequest::setMaxItems(int maxItems) { + maxItems_ = maxItems; + setParameter(std::string("MaxItems"), std::to_string(maxItems)); +} + diff --git a/slb/src/model/ListTLSCipherPoliciesResult.cc b/slb/src/model/ListTLSCipherPoliciesResult.cc new file mode 100644 index 000000000..4c910faf0 --- /dev/null +++ b/slb/src/model/ListTLSCipherPoliciesResult.cc @@ -0,0 +1,104 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +ListTLSCipherPoliciesResult::ListTLSCipherPoliciesResult() : + ServiceResult() +{} + +ListTLSCipherPoliciesResult::ListTLSCipherPoliciesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTLSCipherPoliciesResult::~ListTLSCipherPoliciesResult() +{} + +void ListTLSCipherPoliciesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTLSCipherPoliciesNode = value["TLSCipherPolicies"]["TLSCipherPolicy"]; + for (auto valueTLSCipherPoliciesTLSCipherPolicy : allTLSCipherPoliciesNode) + { + TLSCipherPolicy tLSCipherPoliciesObject; + if(!valueTLSCipherPoliciesTLSCipherPolicy["ServiceManagedMode"].isNull()) + tLSCipherPoliciesObject.serviceManagedMode = valueTLSCipherPoliciesTLSCipherPolicy["ServiceManagedMode"].asString(); + if(!valueTLSCipherPoliciesTLSCipherPolicy["Status"].isNull()) + tLSCipherPoliciesObject.status = valueTLSCipherPoliciesTLSCipherPolicy["Status"].asString(); + if(!valueTLSCipherPoliciesTLSCipherPolicy["InstanceId"].isNull()) + tLSCipherPoliciesObject.instanceId = valueTLSCipherPoliciesTLSCipherPolicy["InstanceId"].asString(); + if(!valueTLSCipherPoliciesTLSCipherPolicy["Name"].isNull()) + tLSCipherPoliciesObject.name = valueTLSCipherPoliciesTLSCipherPolicy["Name"].asString(); + if(!valueTLSCipherPoliciesTLSCipherPolicy["CreateTime"].isNull()) + tLSCipherPoliciesObject.createTime = std::stol(valueTLSCipherPoliciesTLSCipherPolicy["CreateTime"].asString()); + auto allRelateListenersNode = valueTLSCipherPoliciesTLSCipherPolicy["RelateListeners"]["RelateListener"]; + for (auto valueTLSCipherPoliciesTLSCipherPolicyRelateListenersRelateListener : allRelateListenersNode) + { + TLSCipherPolicy::RelateListener relateListenersObject; + if(!valueTLSCipherPoliciesTLSCipherPolicyRelateListenersRelateListener["Port"].isNull()) + relateListenersObject.port = std::stoi(valueTLSCipherPoliciesTLSCipherPolicyRelateListenersRelateListener["Port"].asString()); + if(!valueTLSCipherPoliciesTLSCipherPolicyRelateListenersRelateListener["Protocol"].isNull()) + relateListenersObject.protocol = valueTLSCipherPoliciesTLSCipherPolicyRelateListenersRelateListener["Protocol"].asString(); + if(!valueTLSCipherPoliciesTLSCipherPolicyRelateListenersRelateListener["LoadBalancerId"].isNull()) + relateListenersObject.loadBalancerId = valueTLSCipherPoliciesTLSCipherPolicyRelateListenersRelateListener["LoadBalancerId"].asString(); + tLSCipherPoliciesObject.relateListeners.push_back(relateListenersObject); + } + auto allTLSVersions = value["TLSVersions"]["TLSVersion"]; + for (auto value : allTLSVersions) + tLSCipherPoliciesObject.tLSVersions.push_back(value.asString()); + auto allCiphers = value["Ciphers"]["Cipher"]; + for (auto value : allCiphers) + tLSCipherPoliciesObject.ciphers.push_back(value.asString()); + tLSCipherPolicies_.push_back(tLSCipherPoliciesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["IsTruncated"].isNull()) + isTruncated_ = value["IsTruncated"].asString() == "true"; + +} + +int ListTLSCipherPoliciesResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListTLSCipherPoliciesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTLSCipherPoliciesResult::getTLSCipherPolicies()const +{ + return tLSCipherPolicies_; +} + +bool ListTLSCipherPoliciesResult::getIsTruncated()const +{ + return isTruncated_; +} + diff --git a/slb/src/model/ListTagResourcesRequest.cc b/slb/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..bd44024e8 --- /dev/null +++ b/slb/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,121 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("slb", "2014-05-15", "ListTagResources") { + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::string ListTagResourcesRequest::getAccess_key_id() const { + return access_key_id_; +} + +void ListTagResourcesRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long ListTagResourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListTagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListTagResourcesRequest::getRegionId() const { + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); +} + +std::vector ListTagResourcesRequest::getTag() const { + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string ListTagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListTagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListTagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListTagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListTagResourcesRequest::getOwnerId() const { + return ownerId_; +} + +void ListTagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/slb/src/model/ListTagResourcesResult.cc b/slb/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..3705e83c7 --- /dev/null +++ b/slb/src/model/ListTagResourcesResult.cc @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::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"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + diff --git a/slb/src/model/ModifyHighDefinationMonitorRequest.cc b/slb/src/model/ModifyHighDefinationMonitorRequest.cc new file mode 100644 index 000000000..0bb7a6d47 --- /dev/null +++ b/slb/src/model/ModifyHighDefinationMonitorRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::ModifyHighDefinationMonitorRequest; + +ModifyHighDefinationMonitorRequest::ModifyHighDefinationMonitorRequest() + : RpcServiceRequest("slb", "2014-05-15", "ModifyHighDefinationMonitor") { + setMethod(HttpRequest::Method::Post); +} + +ModifyHighDefinationMonitorRequest::~ModifyHighDefinationMonitorRequest() {} + +long ModifyHighDefinationMonitorRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyHighDefinationMonitorRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyHighDefinationMonitorRequest::getLogProject() const { + return logProject_; +} + +void ModifyHighDefinationMonitorRequest::setLogProject(const std::string &logProject) { + logProject_ = logProject; + setParameter(std::string("LogProject"), logProject); +} + +std::string ModifyHighDefinationMonitorRequest::getRegionId() const { + return regionId_; +} + +void ModifyHighDefinationMonitorRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyHighDefinationMonitorRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyHighDefinationMonitorRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyHighDefinationMonitorRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyHighDefinationMonitorRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyHighDefinationMonitorRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyHighDefinationMonitorRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyHighDefinationMonitorRequest::getLogStore() const { + return logStore_; +} + +void ModifyHighDefinationMonitorRequest::setLogStore(const std::string &logStore) { + logStore_ = logStore; + setParameter(std::string("LogStore"), logStore); +} + diff --git a/slb/src/model/ModifyHighDefinationMonitorResult.cc b/slb/src/model/ModifyHighDefinationMonitorResult.cc new file mode 100644 index 000000000..1966c466d --- /dev/null +++ b/slb/src/model/ModifyHighDefinationMonitorResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +ModifyHighDefinationMonitorResult::ModifyHighDefinationMonitorResult() : + ServiceResult() +{} + +ModifyHighDefinationMonitorResult::ModifyHighDefinationMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyHighDefinationMonitorResult::~ModifyHighDefinationMonitorResult() +{} + +void ModifyHighDefinationMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string ModifyHighDefinationMonitorResult::getSuccess()const +{ + return success_; +} + diff --git a/slb/src/model/ModifyLoadBalancerInstanceChargeTypeRequest.cc b/slb/src/model/ModifyLoadBalancerInstanceChargeTypeRequest.cc new file mode 100644 index 000000000..48f68b689 --- /dev/null +++ b/slb/src/model/ModifyLoadBalancerInstanceChargeTypeRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::ModifyLoadBalancerInstanceChargeTypeRequest; + +ModifyLoadBalancerInstanceChargeTypeRequest::ModifyLoadBalancerInstanceChargeTypeRequest() + : RpcServiceRequest("slb", "2014-05-15", "ModifyLoadBalancerInstanceChargeType") { + setMethod(HttpRequest::Method::Post); +} + +ModifyLoadBalancerInstanceChargeTypeRequest::~ModifyLoadBalancerInstanceChargeTypeRequest() {} + +long ModifyLoadBalancerInstanceChargeTypeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyLoadBalancerInstanceChargeTypeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyLoadBalancerInstanceChargeTypeRequest::getRegionId() const { + return regionId_; +} + +void ModifyLoadBalancerInstanceChargeTypeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyLoadBalancerInstanceChargeTypeRequest::getInstanceChargeType() const { + return instanceChargeType_; +} + +void ModifyLoadBalancerInstanceChargeTypeRequest::setInstanceChargeType(const std::string &instanceChargeType) { + instanceChargeType_ = instanceChargeType; + setParameter(std::string("InstanceChargeType"), instanceChargeType); +} + +std::string ModifyLoadBalancerInstanceChargeTypeRequest::getLoadBalancerSpec() const { + return loadBalancerSpec_; +} + +void ModifyLoadBalancerInstanceChargeTypeRequest::setLoadBalancerSpec(const std::string &loadBalancerSpec) { + loadBalancerSpec_ = loadBalancerSpec; + setParameter(std::string("LoadBalancerSpec"), loadBalancerSpec); +} + +std::string ModifyLoadBalancerInstanceChargeTypeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyLoadBalancerInstanceChargeTypeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int ModifyLoadBalancerInstanceChargeTypeRequest::getBandwidth() const { + return bandwidth_; +} + +void ModifyLoadBalancerInstanceChargeTypeRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string ModifyLoadBalancerInstanceChargeTypeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyLoadBalancerInstanceChargeTypeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyLoadBalancerInstanceChargeTypeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyLoadBalancerInstanceChargeTypeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyLoadBalancerInstanceChargeTypeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void ModifyLoadBalancerInstanceChargeTypeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string ModifyLoadBalancerInstanceChargeTypeRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void ModifyLoadBalancerInstanceChargeTypeRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + diff --git a/slb/src/model/ModifyLoadBalancerInstanceChargeTypeResult.cc b/slb/src/model/ModifyLoadBalancerInstanceChargeTypeResult.cc new file mode 100644 index 000000000..6b066e547 --- /dev/null +++ b/slb/src/model/ModifyLoadBalancerInstanceChargeTypeResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +ModifyLoadBalancerInstanceChargeTypeResult::ModifyLoadBalancerInstanceChargeTypeResult() : + ServiceResult() +{} + +ModifyLoadBalancerInstanceChargeTypeResult::ModifyLoadBalancerInstanceChargeTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLoadBalancerInstanceChargeTypeResult::~ModifyLoadBalancerInstanceChargeTypeResult() +{} + +void ModifyLoadBalancerInstanceChargeTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/ModifyLoadBalancerInstanceSpecRequest.cc b/slb/src/model/ModifyLoadBalancerInstanceSpecRequest.cc new file mode 100644 index 000000000..ed453f4fb --- /dev/null +++ b/slb/src/model/ModifyLoadBalancerInstanceSpecRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::ModifyLoadBalancerInstanceSpecRequest; + +ModifyLoadBalancerInstanceSpecRequest::ModifyLoadBalancerInstanceSpecRequest() + : RpcServiceRequest("slb", "2014-05-15", "ModifyLoadBalancerInstanceSpec") { + setMethod(HttpRequest::Method::Post); +} + +ModifyLoadBalancerInstanceSpecRequest::~ModifyLoadBalancerInstanceSpecRequest() {} + +std::string ModifyLoadBalancerInstanceSpecRequest::getAccess_key_id() const { + return access_key_id_; +} + +void ModifyLoadBalancerInstanceSpecRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long ModifyLoadBalancerInstanceSpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyLoadBalancerInstanceSpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyLoadBalancerInstanceSpecRequest::getRegionId() const { + return regionId_; +} + +void ModifyLoadBalancerInstanceSpecRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyLoadBalancerInstanceSpecRequest::getLoadBalancerSpec() const { + return loadBalancerSpec_; +} + +void ModifyLoadBalancerInstanceSpecRequest::setLoadBalancerSpec(const std::string &loadBalancerSpec) { + loadBalancerSpec_ = loadBalancerSpec; + setParameter(std::string("LoadBalancerSpec"), loadBalancerSpec); +} + +bool ModifyLoadBalancerInstanceSpecRequest::getAutoPay() const { + return autoPay_; +} + +void ModifyLoadBalancerInstanceSpecRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); +} + +std::string ModifyLoadBalancerInstanceSpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyLoadBalancerInstanceSpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyLoadBalancerInstanceSpecRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyLoadBalancerInstanceSpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyLoadBalancerInstanceSpecRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyLoadBalancerInstanceSpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyLoadBalancerInstanceSpecRequest::getTags() const { + return tags_; +} + +void ModifyLoadBalancerInstanceSpecRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string ModifyLoadBalancerInstanceSpecRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void ModifyLoadBalancerInstanceSpecRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc b/slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc new file mode 100644 index 000000000..03d164734 --- /dev/null +++ b/slb/src/model/ModifyLoadBalancerInstanceSpecResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +ModifyLoadBalancerInstanceSpecResult::ModifyLoadBalancerInstanceSpecResult() : + ServiceResult() +{} + +ModifyLoadBalancerInstanceSpecResult::ModifyLoadBalancerInstanceSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLoadBalancerInstanceSpecResult::~ModifyLoadBalancerInstanceSpecResult() +{} + +void ModifyLoadBalancerInstanceSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + +} + +long ModifyLoadBalancerInstanceSpecResult::getOrderId()const +{ + return orderId_; +} + diff --git a/slb/src/model/ModifyLoadBalancerInternetSpecRequest.cc b/slb/src/model/ModifyLoadBalancerInternetSpecRequest.cc new file mode 100644 index 000000000..9c0088d35 --- /dev/null +++ b/slb/src/model/ModifyLoadBalancerInternetSpecRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::ModifyLoadBalancerInternetSpecRequest; + +ModifyLoadBalancerInternetSpecRequest::ModifyLoadBalancerInternetSpecRequest() + : RpcServiceRequest("slb", "2014-05-15", "ModifyLoadBalancerInternetSpec") { + setMethod(HttpRequest::Method::Post); +} + +ModifyLoadBalancerInternetSpecRequest::~ModifyLoadBalancerInternetSpecRequest() {} + +std::string ModifyLoadBalancerInternetSpecRequest::getAccess_key_id() const { + return access_key_id_; +} + +void ModifyLoadBalancerInternetSpecRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long ModifyLoadBalancerInternetSpecRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyLoadBalancerInternetSpecRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyLoadBalancerInternetSpecRequest::getRegionId() const { + return regionId_; +} + +void ModifyLoadBalancerInternetSpecRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool ModifyLoadBalancerInternetSpecRequest::getAutoPay() const { + return autoPay_; +} + +void ModifyLoadBalancerInternetSpecRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); +} + +std::string ModifyLoadBalancerInternetSpecRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyLoadBalancerInternetSpecRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int ModifyLoadBalancerInternetSpecRequest::getBandwidth() const { + return bandwidth_; +} + +void ModifyLoadBalancerInternetSpecRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string ModifyLoadBalancerInternetSpecRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyLoadBalancerInternetSpecRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyLoadBalancerInternetSpecRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyLoadBalancerInternetSpecRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyLoadBalancerInternetSpecRequest::getTags() const { + return tags_; +} + +void ModifyLoadBalancerInternetSpecRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string ModifyLoadBalancerInternetSpecRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void ModifyLoadBalancerInternetSpecRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string ModifyLoadBalancerInternetSpecRequest::getInternetChargeType() const { + return internetChargeType_; +} + +void ModifyLoadBalancerInternetSpecRequest::setInternetChargeType(const std::string &internetChargeType) { + internetChargeType_ = internetChargeType; + setParameter(std::string("InternetChargeType"), internetChargeType); +} + +int ModifyLoadBalancerInternetSpecRequest::getRatio() const { + return ratio_; +} + +void ModifyLoadBalancerInternetSpecRequest::setRatio(int ratio) { + ratio_ = ratio; + setParameter(std::string("Ratio"), std::to_string(ratio)); +} + diff --git a/slb/src/model/ModifyLoadBalancerInternetSpecResult.cc b/slb/src/model/ModifyLoadBalancerInternetSpecResult.cc new file mode 100644 index 000000000..a22841b0f --- /dev/null +++ b/slb/src/model/ModifyLoadBalancerInternetSpecResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +ModifyLoadBalancerInternetSpecResult::ModifyLoadBalancerInternetSpecResult() : + ServiceResult() +{} + +ModifyLoadBalancerInternetSpecResult::ModifyLoadBalancerInternetSpecResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLoadBalancerInternetSpecResult::~ModifyLoadBalancerInternetSpecResult() +{} + +void ModifyLoadBalancerInternetSpecResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + +} + +long ModifyLoadBalancerInternetSpecResult::getOrderId()const +{ + return orderId_; +} + diff --git a/slb/src/model/ModifyLoadBalancerPayTypeRequest.cc b/slb/src/model/ModifyLoadBalancerPayTypeRequest.cc new file mode 100644 index 000000000..e409eb86a --- /dev/null +++ b/slb/src/model/ModifyLoadBalancerPayTypeRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::ModifyLoadBalancerPayTypeRequest; + +ModifyLoadBalancerPayTypeRequest::ModifyLoadBalancerPayTypeRequest() + : RpcServiceRequest("slb", "2014-05-15", "ModifyLoadBalancerPayType") { + setMethod(HttpRequest::Method::Post); +} + +ModifyLoadBalancerPayTypeRequest::~ModifyLoadBalancerPayTypeRequest() {} + +std::string ModifyLoadBalancerPayTypeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void ModifyLoadBalancerPayTypeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long ModifyLoadBalancerPayTypeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyLoadBalancerPayTypeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int ModifyLoadBalancerPayTypeRequest::getDuration() const { + return duration_; +} + +void ModifyLoadBalancerPayTypeRequest::setDuration(int duration) { + duration_ = duration; + setParameter(std::string("Duration"), std::to_string(duration)); +} + +std::string ModifyLoadBalancerPayTypeRequest::getRegionId() const { + return regionId_; +} + +void ModifyLoadBalancerPayTypeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool ModifyLoadBalancerPayTypeRequest::getAutoPay() const { + return autoPay_; +} + +void ModifyLoadBalancerPayTypeRequest::setAutoPay(bool autoPay) { + autoPay_ = autoPay; + setParameter(std::string("AutoPay"), autoPay ? "true" : "false"); +} + +std::string ModifyLoadBalancerPayTypeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyLoadBalancerPayTypeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyLoadBalancerPayTypeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyLoadBalancerPayTypeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyLoadBalancerPayTypeRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyLoadBalancerPayTypeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyLoadBalancerPayTypeRequest::getTags() const { + return tags_; +} + +void ModifyLoadBalancerPayTypeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string ModifyLoadBalancerPayTypeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void ModifyLoadBalancerPayTypeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string ModifyLoadBalancerPayTypeRequest::getPayType() const { + return payType_; +} + +void ModifyLoadBalancerPayTypeRequest::setPayType(const std::string &payType) { + payType_ = payType; + setParameter(std::string("PayType"), payType); +} + +std::string ModifyLoadBalancerPayTypeRequest::getPricingCycle() const { + return pricingCycle_; +} + +void ModifyLoadBalancerPayTypeRequest::setPricingCycle(const std::string &pricingCycle) { + pricingCycle_ = pricingCycle; + setParameter(std::string("PricingCycle"), pricingCycle); +} + diff --git a/slb/src/model/ModifyLoadBalancerPayTypeResult.cc b/slb/src/model/ModifyLoadBalancerPayTypeResult.cc new file mode 100644 index 000000000..cf3bcbac9 --- /dev/null +++ b/slb/src/model/ModifyLoadBalancerPayTypeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +ModifyLoadBalancerPayTypeResult::ModifyLoadBalancerPayTypeResult() : + ServiceResult() +{} + +ModifyLoadBalancerPayTypeResult::ModifyLoadBalancerPayTypeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyLoadBalancerPayTypeResult::~ModifyLoadBalancerPayTypeResult() +{} + +void ModifyLoadBalancerPayTypeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["OrderId"].isNull()) + orderId_ = std::stol(value["OrderId"].asString()); + +} + +long ModifyLoadBalancerPayTypeResult::getOrderId()const +{ + return orderId_; +} + diff --git a/slb/src/model/ModifyVServerGroupBackendServersRequest.cc b/slb/src/model/ModifyVServerGroupBackendServersRequest.cc new file mode 100644 index 000000000..29a7223fb --- /dev/null +++ b/slb/src/model/ModifyVServerGroupBackendServersRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::ModifyVServerGroupBackendServersRequest; + +ModifyVServerGroupBackendServersRequest::ModifyVServerGroupBackendServersRequest() + : RpcServiceRequest("slb", "2014-05-15", "ModifyVServerGroupBackendServers") { + setMethod(HttpRequest::Method::Post); +} + +ModifyVServerGroupBackendServersRequest::~ModifyVServerGroupBackendServersRequest() {} + +std::string ModifyVServerGroupBackendServersRequest::getAccess_key_id() const { + return access_key_id_; +} + +void ModifyVServerGroupBackendServersRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long ModifyVServerGroupBackendServersRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ModifyVServerGroupBackendServersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ModifyVServerGroupBackendServersRequest::getRegionId() const { + return regionId_; +} + +void ModifyVServerGroupBackendServersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string ModifyVServerGroupBackendServersRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void ModifyVServerGroupBackendServersRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string ModifyVServerGroupBackendServersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ModifyVServerGroupBackendServersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ModifyVServerGroupBackendServersRequest::getNewBackendServers() const { + return newBackendServers_; +} + +void ModifyVServerGroupBackendServersRequest::setNewBackendServers(const std::string &newBackendServers) { + newBackendServers_ = newBackendServers; + setParameter(std::string("NewBackendServers"), newBackendServers); +} + +std::string ModifyVServerGroupBackendServersRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ModifyVServerGroupBackendServersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ModifyVServerGroupBackendServersRequest::getOwnerId() const { + return ownerId_; +} + +void ModifyVServerGroupBackendServersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string ModifyVServerGroupBackendServersRequest::getTags() const { + return tags_; +} + +void ModifyVServerGroupBackendServersRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string ModifyVServerGroupBackendServersRequest::getOldBackendServers() const { + return oldBackendServers_; +} + +void ModifyVServerGroupBackendServersRequest::setOldBackendServers(const std::string &oldBackendServers) { + oldBackendServers_ = oldBackendServers; + setParameter(std::string("OldBackendServers"), oldBackendServers); +} + diff --git a/slb/src/model/ModifyVServerGroupBackendServersResult.cc b/slb/src/model/ModifyVServerGroupBackendServersResult.cc new file mode 100644 index 000000000..0f982475f --- /dev/null +++ b/slb/src/model/ModifyVServerGroupBackendServersResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +ModifyVServerGroupBackendServersResult::ModifyVServerGroupBackendServersResult() : + ServiceResult() +{} + +ModifyVServerGroupBackendServersResult::ModifyVServerGroupBackendServersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyVServerGroupBackendServersResult::~ModifyVServerGroupBackendServersResult() +{} + +void ModifyVServerGroupBackendServersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["BackendServer"]; + for (auto valueBackendServersBackendServer : allBackendServersNode) + { + BackendServer backendServersObject; + if(!valueBackendServersBackendServer["VpcId"].isNull()) + backendServersObject.vpcId = valueBackendServersBackendServer["VpcId"].asString(); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["Weight"].isNull()) + backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString()); + if(!valueBackendServersBackendServer["Description"].isNull()) + backendServersObject.description = valueBackendServersBackendServer["Description"].asString(); + if(!valueBackendServersBackendServer["ServerRegionId"].isNull()) + backendServersObject.serverRegionId = valueBackendServersBackendServer["ServerRegionId"].asString(); + if(!valueBackendServersBackendServer["ServerIp"].isNull()) + backendServersObject.serverIp = valueBackendServersBackendServer["ServerIp"].asString(); + if(!valueBackendServersBackendServer["Port"].isNull()) + backendServersObject.port = std::stoi(valueBackendServersBackendServer["Port"].asString()); + if(!valueBackendServersBackendServer["VbrId"].isNull()) + backendServersObject.vbrId = valueBackendServersBackendServer["VbrId"].asString(); + if(!valueBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + +} + +std::string ModifyVServerGroupBackendServersResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::vector ModifyVServerGroupBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/MoveResourceGroupRequest.cc b/slb/src/model/MoveResourceGroupRequest.cc new file mode 100644 index 000000000..a1688c8f3 --- /dev/null +++ b/slb/src/model/MoveResourceGroupRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::MoveResourceGroupRequest; + +MoveResourceGroupRequest::MoveResourceGroupRequest() + : RpcServiceRequest("slb", "2014-05-15", "MoveResourceGroup") { + setMethod(HttpRequest::Method::Post); +} + +MoveResourceGroupRequest::~MoveResourceGroupRequest() {} + +std::string MoveResourceGroupRequest::getAccess_key_id() const { + return access_key_id_; +} + +void MoveResourceGroupRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long MoveResourceGroupRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void MoveResourceGroupRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string MoveResourceGroupRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void MoveResourceGroupRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string MoveResourceGroupRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void MoveResourceGroupRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string MoveResourceGroupRequest::getRegionId() const { + return regionId_; +} + +void MoveResourceGroupRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string MoveResourceGroupRequest::getResourceId() const { + return resourceId_; +} + +void MoveResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); +} + +std::string MoveResourceGroupRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void MoveResourceGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string MoveResourceGroupRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void MoveResourceGroupRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long MoveResourceGroupRequest::getOwnerId() const { + return ownerId_; +} + +void MoveResourceGroupRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string MoveResourceGroupRequest::getResourceType() const { + return resourceType_; +} + +void MoveResourceGroupRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::string MoveResourceGroupRequest::getTags() const { + return tags_; +} + +void MoveResourceGroupRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string MoveResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void MoveResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); +} + diff --git a/slb/src/model/MoveResourceGroupResult.cc b/slb/src/model/MoveResourceGroupResult.cc new file mode 100644 index 000000000..0b2f9ee4e --- /dev/null +++ b/slb/src/model/MoveResourceGroupResult.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::Slb; +using namespace AlibabaCloud::Slb::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()); + +} + diff --git a/slb/src/model/RemoveAccessControlListEntryRequest.cc b/slb/src/model/RemoveAccessControlListEntryRequest.cc new file mode 100644 index 000000000..2279370a4 --- /dev/null +++ b/slb/src/model/RemoveAccessControlListEntryRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::RemoveAccessControlListEntryRequest; + +RemoveAccessControlListEntryRequest::RemoveAccessControlListEntryRequest() + : RpcServiceRequest("slb", "2014-05-15", "RemoveAccessControlListEntry") { + setMethod(HttpRequest::Method::Post); +} + +RemoveAccessControlListEntryRequest::~RemoveAccessControlListEntryRequest() {} + +std::string RemoveAccessControlListEntryRequest::getAccess_key_id() const { + return access_key_id_; +} + +void RemoveAccessControlListEntryRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long RemoveAccessControlListEntryRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void RemoveAccessControlListEntryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string RemoveAccessControlListEntryRequest::getAclEntrys() const { + return aclEntrys_; +} + +void RemoveAccessControlListEntryRequest::setAclEntrys(const std::string &aclEntrys) { + aclEntrys_ = aclEntrys; + setParameter(std::string("AclEntrys"), aclEntrys); +} + +std::string RemoveAccessControlListEntryRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RemoveAccessControlListEntryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string RemoveAccessControlListEntryRequest::getRegionId() const { + return regionId_; +} + +void RemoveAccessControlListEntryRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string RemoveAccessControlListEntryRequest::getAclId() const { + return aclId_; +} + +void RemoveAccessControlListEntryRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +std::string RemoveAccessControlListEntryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void RemoveAccessControlListEntryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string RemoveAccessControlListEntryRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void RemoveAccessControlListEntryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long RemoveAccessControlListEntryRequest::getOwnerId() const { + return ownerId_; +} + +void RemoveAccessControlListEntryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string RemoveAccessControlListEntryRequest::getTags() const { + return tags_; +} + +void RemoveAccessControlListEntryRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/RemoveAccessControlListEntryResult.cc b/slb/src/model/RemoveAccessControlListEntryResult.cc new file mode 100644 index 000000000..3b64a705f --- /dev/null +++ b/slb/src/model/RemoveAccessControlListEntryResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +RemoveAccessControlListEntryResult::RemoveAccessControlListEntryResult() : + ServiceResult() +{} + +RemoveAccessControlListEntryResult::RemoveAccessControlListEntryResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveAccessControlListEntryResult::~RemoveAccessControlListEntryResult() +{} + +void RemoveAccessControlListEntryResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/RemoveBackendServersRequest.cc b/slb/src/model/RemoveBackendServersRequest.cc index 9199e9b1e..0368db6ab 100644 --- a/slb/src/model/RemoveBackendServersRequest.cc +++ b/slb/src/model/RemoveBackendServersRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::RemoveBackendServersRequest; RemoveBackendServersRequest::RemoveBackendServersRequest() - : RpcServiceRequest("slb", "2013-02-21", "RemoveBackendServers") { + : RpcServiceRequest("slb", "2014-05-15", "RemoveBackendServers") { setMethod(HttpRequest::Method::Post); } @@ -52,13 +52,13 @@ void RemoveBackendServersRequest::setBackendServers(const std::string &backendSe setParameter(std::string("BackendServers"), backendServers); } -std::string RemoveBackendServersRequest::getAccessKeyId() const { - return accessKeyId_; +std::string RemoveBackendServersRequest::getRegionId() const { + return regionId_; } -void RemoveBackendServersRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void RemoveBackendServersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } std::string RemoveBackendServersRequest::getResourceOwnerAccount() const { diff --git a/slb/src/model/RemoveBackendServersResult.cc b/slb/src/model/RemoveBackendServersResult.cc index 8da6a3946..9194d655b 100644 --- a/slb/src/model/RemoveBackendServersResult.cc +++ b/slb/src/model/RemoveBackendServersResult.cc @@ -43,8 +43,16 @@ void RemoveBackendServersResult::parse(const std::string &payload) for (auto valueBackendServersBackendServer : allBackendServersNode) { BackendServer backendServersObject; + if(!valueBackendServersBackendServer["VpcId"].isNull()) + backendServersObject.vpcId = valueBackendServersBackendServer["VpcId"].asString(); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); if(!valueBackendServersBackendServer["Weight"].isNull()) backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString()); + if(!valueBackendServersBackendServer["Description"].isNull()) + backendServersObject.description = valueBackendServersBackendServer["Description"].asString(); + if(!valueBackendServersBackendServer["ServerIp"].isNull()) + backendServersObject.serverIp = valueBackendServersBackendServer["ServerIp"].asString(); if(!valueBackendServersBackendServer["ServerId"].isNull()) backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); backendServers_.push_back(backendServersObject); diff --git a/slb/src/model/RemoveListenerWhiteListItemRequest.cc b/slb/src/model/RemoveListenerWhiteListItemRequest.cc new file mode 100644 index 000000000..6207a5802 --- /dev/null +++ b/slb/src/model/RemoveListenerWhiteListItemRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::RemoveListenerWhiteListItemRequest; + +RemoveListenerWhiteListItemRequest::RemoveListenerWhiteListItemRequest() + : RpcServiceRequest("slb", "2014-05-15", "RemoveListenerWhiteListItem") { + setMethod(HttpRequest::Method::Post); +} + +RemoveListenerWhiteListItemRequest::~RemoveListenerWhiteListItemRequest() {} + +std::string RemoveListenerWhiteListItemRequest::getAccess_key_id() const { + return access_key_id_; +} + +void RemoveListenerWhiteListItemRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long RemoveListenerWhiteListItemRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void RemoveListenerWhiteListItemRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string RemoveListenerWhiteListItemRequest::getSourceItems() const { + return sourceItems_; +} + +void RemoveListenerWhiteListItemRequest::setSourceItems(const std::string &sourceItems) { + sourceItems_ = sourceItems; + setParameter(std::string("SourceItems"), sourceItems); +} + +std::string RemoveListenerWhiteListItemRequest::getRegionId() const { + return regionId_; +} + +void RemoveListenerWhiteListItemRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int RemoveListenerWhiteListItemRequest::getListenerPort() const { + return listenerPort_; +} + +void RemoveListenerWhiteListItemRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string RemoveListenerWhiteListItemRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void RemoveListenerWhiteListItemRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string RemoveListenerWhiteListItemRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void RemoveListenerWhiteListItemRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long RemoveListenerWhiteListItemRequest::getOwnerId() const { + return ownerId_; +} + +void RemoveListenerWhiteListItemRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string RemoveListenerWhiteListItemRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void RemoveListenerWhiteListItemRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::string RemoveListenerWhiteListItemRequest::getTags() const { + return tags_; +} + +void RemoveListenerWhiteListItemRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string RemoveListenerWhiteListItemRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void RemoveListenerWhiteListItemRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/RemoveListenerWhiteListItemResult.cc b/slb/src/model/RemoveListenerWhiteListItemResult.cc new file mode 100644 index 000000000..e8c7d494d --- /dev/null +++ b/slb/src/model/RemoveListenerWhiteListItemResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +RemoveListenerWhiteListItemResult::RemoveListenerWhiteListItemResult() : + ServiceResult() +{} + +RemoveListenerWhiteListItemResult::RemoveListenerWhiteListItemResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveListenerWhiteListItemResult::~RemoveListenerWhiteListItemResult() +{} + +void RemoveListenerWhiteListItemResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/RemoveTagsRequest.cc b/slb/src/model/RemoveTagsRequest.cc new file mode 100644 index 000000000..29ac94fba --- /dev/null +++ b/slb/src/model/RemoveTagsRequest.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::Slb::Model::RemoveTagsRequest; + +RemoveTagsRequest::RemoveTagsRequest() + : RpcServiceRequest("slb", "2014-05-15", "RemoveTags") { + setMethod(HttpRequest::Method::Post); +} + +RemoveTagsRequest::~RemoveTagsRequest() {} + +std::string RemoveTagsRequest::getAccess_key_id() const { + return access_key_id_; +} + +void RemoveTagsRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long RemoveTagsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void RemoveTagsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string RemoveTagsRequest::getRegionId() const { + return regionId_; +} + +void RemoveTagsRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string RemoveTagsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void RemoveTagsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string RemoveTagsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void RemoveTagsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long RemoveTagsRequest::getOwnerId() const { + return ownerId_; +} + +void RemoveTagsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string RemoveTagsRequest::getTags() const { + return tags_; +} + +void RemoveTagsRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string RemoveTagsRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void RemoveTagsRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/RemoveTagsResult.cc b/slb/src/model/RemoveTagsResult.cc new file mode 100644 index 000000000..31e0706b5 --- /dev/null +++ b/slb/src/model/RemoveTagsResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +RemoveTagsResult::RemoveTagsResult() : + ServiceResult() +{} + +RemoveTagsResult::RemoveTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveTagsResult::~RemoveTagsResult() +{} + +void RemoveTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/RemoveVServerGroupBackendServersRequest.cc b/slb/src/model/RemoveVServerGroupBackendServersRequest.cc new file mode 100644 index 000000000..d200baac5 --- /dev/null +++ b/slb/src/model/RemoveVServerGroupBackendServersRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::RemoveVServerGroupBackendServersRequest; + +RemoveVServerGroupBackendServersRequest::RemoveVServerGroupBackendServersRequest() + : RpcServiceRequest("slb", "2014-05-15", "RemoveVServerGroupBackendServers") { + setMethod(HttpRequest::Method::Post); +} + +RemoveVServerGroupBackendServersRequest::~RemoveVServerGroupBackendServersRequest() {} + +std::string RemoveVServerGroupBackendServersRequest::getAccess_key_id() const { + return access_key_id_; +} + +void RemoveVServerGroupBackendServersRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long RemoveVServerGroupBackendServersRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void RemoveVServerGroupBackendServersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string RemoveVServerGroupBackendServersRequest::getBackendServers() const { + return backendServers_; +} + +void RemoveVServerGroupBackendServersRequest::setBackendServers(const std::string &backendServers) { + backendServers_ = backendServers; + setParameter(std::string("BackendServers"), backendServers); +} + +std::string RemoveVServerGroupBackendServersRequest::getRegionId() const { + return regionId_; +} + +void RemoveVServerGroupBackendServersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string RemoveVServerGroupBackendServersRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void RemoveVServerGroupBackendServersRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string RemoveVServerGroupBackendServersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void RemoveVServerGroupBackendServersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string RemoveVServerGroupBackendServersRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void RemoveVServerGroupBackendServersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long RemoveVServerGroupBackendServersRequest::getOwnerId() const { + return ownerId_; +} + +void RemoveVServerGroupBackendServersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string RemoveVServerGroupBackendServersRequest::getTags() const { + return tags_; +} + +void RemoveVServerGroupBackendServersRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/RemoveVServerGroupBackendServersResult.cc b/slb/src/model/RemoveVServerGroupBackendServersResult.cc new file mode 100644 index 000000000..4731a3872 --- /dev/null +++ b/slb/src/model/RemoveVServerGroupBackendServersResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +RemoveVServerGroupBackendServersResult::RemoveVServerGroupBackendServersResult() : + ServiceResult() +{} + +RemoveVServerGroupBackendServersResult::RemoveVServerGroupBackendServersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveVServerGroupBackendServersResult::~RemoveVServerGroupBackendServersResult() +{} + +void RemoveVServerGroupBackendServersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["BackendServer"]; + for (auto valueBackendServersBackendServer : allBackendServersNode) + { + BackendServer backendServersObject; + if(!valueBackendServersBackendServer["VpcId"].isNull()) + backendServersObject.vpcId = valueBackendServersBackendServer["VpcId"].asString(); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["Weight"].isNull()) + backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString()); + if(!valueBackendServersBackendServer["Description"].isNull()) + backendServersObject.description = valueBackendServersBackendServer["Description"].asString(); + if(!valueBackendServersBackendServer["ServerRegionId"].isNull()) + backendServersObject.serverRegionId = valueBackendServersBackendServer["ServerRegionId"].asString(); + if(!valueBackendServersBackendServer["ServerIp"].isNull()) + backendServersObject.serverIp = valueBackendServersBackendServer["ServerIp"].asString(); + if(!valueBackendServersBackendServer["Port"].isNull()) + backendServersObject.port = std::stoi(valueBackendServersBackendServer["Port"].asString()); + if(!valueBackendServersBackendServer["VbrId"].isNull()) + backendServersObject.vbrId = valueBackendServersBackendServer["VbrId"].asString(); + if(!valueBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + +} + +std::string RemoveVServerGroupBackendServersResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::vector RemoveVServerGroupBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/SetAccessControlListAttributeRequest.cc b/slb/src/model/SetAccessControlListAttributeRequest.cc new file mode 100644 index 000000000..868576a23 --- /dev/null +++ b/slb/src/model/SetAccessControlListAttributeRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetAccessControlListAttributeRequest; + +SetAccessControlListAttributeRequest::SetAccessControlListAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetAccessControlListAttribute") { + setMethod(HttpRequest::Method::Post); +} + +SetAccessControlListAttributeRequest::~SetAccessControlListAttributeRequest() {} + +std::string SetAccessControlListAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetAccessControlListAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long SetAccessControlListAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetAccessControlListAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetAccessControlListAttributeRequest::getAclName() const { + return aclName_; +} + +void SetAccessControlListAttributeRequest::setAclName(const std::string &aclName) { + aclName_ = aclName; + setParameter(std::string("AclName"), aclName); +} + +std::string SetAccessControlListAttributeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SetAccessControlListAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string SetAccessControlListAttributeRequest::getRegionId() const { + return regionId_; +} + +void SetAccessControlListAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetAccessControlListAttributeRequest::getAclId() const { + return aclId_; +} + +void SetAccessControlListAttributeRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +std::string SetAccessControlListAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetAccessControlListAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetAccessControlListAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetAccessControlListAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetAccessControlListAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void SetAccessControlListAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetAccessControlListAttributeRequest::getTags() const { + return tags_; +} + +void SetAccessControlListAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/SetAccessControlListAttributeResult.cc b/slb/src/model/SetAccessControlListAttributeResult.cc new file mode 100644 index 000000000..fa6bd101d --- /dev/null +++ b/slb/src/model/SetAccessControlListAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetAccessControlListAttributeResult::SetAccessControlListAttributeResult() : + ServiceResult() +{} + +SetAccessControlListAttributeResult::SetAccessControlListAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetAccessControlListAttributeResult::~SetAccessControlListAttributeResult() +{} + +void SetAccessControlListAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["AclId"].isNull()) + aclId_ = value["AclId"].asString(); + +} + +std::string SetAccessControlListAttributeResult::getAclId()const +{ + return aclId_; +} + diff --git a/slb/src/model/SetAccessLogsDownloadAttributeRequest.cc b/slb/src/model/SetAccessLogsDownloadAttributeRequest.cc new file mode 100644 index 000000000..c4773f950 --- /dev/null +++ b/slb/src/model/SetAccessLogsDownloadAttributeRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetAccessLogsDownloadAttributeRequest; + +SetAccessLogsDownloadAttributeRequest::SetAccessLogsDownloadAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetAccessLogsDownloadAttribute") { + setMethod(HttpRequest::Method::Post); +} + +SetAccessLogsDownloadAttributeRequest::~SetAccessLogsDownloadAttributeRequest() {} + +std::string SetAccessLogsDownloadAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetAccessLogsDownloadAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long SetAccessLogsDownloadAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetAccessLogsDownloadAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetAccessLogsDownloadAttributeRequest::getRegionId() const { + return regionId_; +} + +void SetAccessLogsDownloadAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetAccessLogsDownloadAttributeRequest::getLogsDownloadAttributes() const { + return logsDownloadAttributes_; +} + +void SetAccessLogsDownloadAttributeRequest::setLogsDownloadAttributes(const std::string &logsDownloadAttributes) { + logsDownloadAttributes_ = logsDownloadAttributes; + setParameter(std::string("LogsDownloadAttributes"), logsDownloadAttributes); +} + +std::string SetAccessLogsDownloadAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetAccessLogsDownloadAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetAccessLogsDownloadAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetAccessLogsDownloadAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetAccessLogsDownloadAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void SetAccessLogsDownloadAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetAccessLogsDownloadAttributeRequest::getTags() const { + return tags_; +} + +void SetAccessLogsDownloadAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string SetAccessLogsDownloadAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetAccessLogsDownloadAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/SetAccessLogsDownloadAttributeResult.cc b/slb/src/model/SetAccessLogsDownloadAttributeResult.cc new file mode 100644 index 000000000..39059fd9e --- /dev/null +++ b/slb/src/model/SetAccessLogsDownloadAttributeResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetAccessLogsDownloadAttributeResult::SetAccessLogsDownloadAttributeResult() : + ServiceResult() +{} + +SetAccessLogsDownloadAttributeResult::SetAccessLogsDownloadAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetAccessLogsDownloadAttributeResult::~SetAccessLogsDownloadAttributeResult() +{} + +void SetAccessLogsDownloadAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetBackendServersRequest.cc b/slb/src/model/SetBackendServersRequest.cc new file mode 100644 index 000000000..85584c417 --- /dev/null +++ b/slb/src/model/SetBackendServersRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetBackendServersRequest; + +SetBackendServersRequest::SetBackendServersRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetBackendServers") { + setMethod(HttpRequest::Method::Post); +} + +SetBackendServersRequest::~SetBackendServersRequest() {} + +std::string SetBackendServersRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetBackendServersRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long SetBackendServersRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetBackendServersRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetBackendServersRequest::getBackendServers() const { + return backendServers_; +} + +void SetBackendServersRequest::setBackendServers(const std::string &backendServers) { + backendServers_ = backendServers; + setParameter(std::string("BackendServers"), backendServers); +} + +std::string SetBackendServersRequest::getRegionId() const { + return regionId_; +} + +void SetBackendServersRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetBackendServersRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetBackendServersRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetBackendServersRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetBackendServersRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetBackendServersRequest::getOwnerId() const { + return ownerId_; +} + +void SetBackendServersRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetBackendServersRequest::getTags() const { + return tags_; +} + +void SetBackendServersRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string SetBackendServersRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetBackendServersRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/SetBackendServersResult.cc b/slb/src/model/SetBackendServersResult.cc new file mode 100644 index 000000000..b146b31ce --- /dev/null +++ b/slb/src/model/SetBackendServersResult.cc @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetBackendServersResult::SetBackendServersResult() : + ServiceResult() +{} + +SetBackendServersResult::SetBackendServersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetBackendServersResult::~SetBackendServersResult() +{} + +void SetBackendServersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["BackendServer"]; + for (auto valueBackendServersBackendServer : allBackendServersNode) + { + BackendServer backendServersObject; + if(!valueBackendServersBackendServer["VpcId"].isNull()) + backendServersObject.vpcId = valueBackendServersBackendServer["VpcId"].asString(); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["Weight"].isNull()) + backendServersObject.weight = valueBackendServersBackendServer["Weight"].asString(); + if(!valueBackendServersBackendServer["Description"].isNull()) + backendServersObject.description = valueBackendServersBackendServer["Description"].asString(); + if(!valueBackendServersBackendServer["ServerIp"].isNull()) + backendServersObject.serverIp = valueBackendServersBackendServer["ServerIp"].asString(); + if(!valueBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["LoadBalancerId"].isNull()) + loadBalancerId_ = value["LoadBalancerId"].asString(); + +} + +std::string SetBackendServersResult::getLoadBalancerId()const +{ + return loadBalancerId_; +} + +std::vector SetBackendServersResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/SetCACertificateNameRequest.cc b/slb/src/model/SetCACertificateNameRequest.cc new file mode 100644 index 000000000..033fe7ee0 --- /dev/null +++ b/slb/src/model/SetCACertificateNameRequest.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::Slb::Model::SetCACertificateNameRequest; + +SetCACertificateNameRequest::SetCACertificateNameRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetCACertificateName") { + setMethod(HttpRequest::Method::Post); +} + +SetCACertificateNameRequest::~SetCACertificateNameRequest() {} + +std::string SetCACertificateNameRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetCACertificateNameRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long SetCACertificateNameRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetCACertificateNameRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetCACertificateNameRequest::getCACertificateName() const { + return cACertificateName_; +} + +void SetCACertificateNameRequest::setCACertificateName(const std::string &cACertificateName) { + cACertificateName_ = cACertificateName; + setParameter(std::string("CACertificateName"), cACertificateName); +} + +std::string SetCACertificateNameRequest::getRegionId() const { + return regionId_; +} + +void SetCACertificateNameRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetCACertificateNameRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetCACertificateNameRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetCACertificateNameRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetCACertificateNameRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetCACertificateNameRequest::getOwnerId() const { + return ownerId_; +} + +void SetCACertificateNameRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetCACertificateNameRequest::getCACertificateId() const { + return cACertificateId_; +} + +void SetCACertificateNameRequest::setCACertificateId(const std::string &cACertificateId) { + cACertificateId_ = cACertificateId; + setParameter(std::string("CACertificateId"), cACertificateId); +} + diff --git a/slb/src/model/SetCACertificateNameResult.cc b/slb/src/model/SetCACertificateNameResult.cc new file mode 100644 index 000000000..7d3f1168c --- /dev/null +++ b/slb/src/model/SetCACertificateNameResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetCACertificateNameResult::SetCACertificateNameResult() : + ServiceResult() +{} + +SetCACertificateNameResult::SetCACertificateNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetCACertificateNameResult::~SetCACertificateNameResult() +{} + +void SetCACertificateNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetDomainExtensionAttributeRequest.cc b/slb/src/model/SetDomainExtensionAttributeRequest.cc new file mode 100644 index 000000000..46d8a89a4 --- /dev/null +++ b/slb/src/model/SetDomainExtensionAttributeRequest.cc @@ -0,0 +1,131 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetDomainExtensionAttributeRequest; + +SetDomainExtensionAttributeRequest::SetDomainExtensionAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetDomainExtensionAttribute") { + setMethod(HttpRequest::Method::Post); +} + +SetDomainExtensionAttributeRequest::~SetDomainExtensionAttributeRequest() {} + +std::string SetDomainExtensionAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetDomainExtensionAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long SetDomainExtensionAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetDomainExtensionAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::vector SetDomainExtensionAttributeRequest::getServerCertificate() const { + return serverCertificate_; +} + +void SetDomainExtensionAttributeRequest::setServerCertificate(const std::vector &serverCertificate) { + serverCertificate_ = serverCertificate; + for(int dep1 = 0; dep1 != serverCertificate.size(); dep1++) { + auto serverCertificateObj = serverCertificate.at(dep1); + std::string serverCertificateObjStr = std::string("ServerCertificate") + "." + std::to_string(dep1 + 1); + setParameter(serverCertificateObjStr + ".BindingType", serverCertificateObj.bindingType); + setParameter(serverCertificateObjStr + ".CertificateId", serverCertificateObj.certificateId); + setParameter(serverCertificateObjStr + ".StandardType", serverCertificateObj.standardType); + } +} + +std::string SetDomainExtensionAttributeRequest::getRegionId() const { + return regionId_; +} + +void SetDomainExtensionAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetDomainExtensionAttributeRequest::getDomainExtensionId() const { + return domainExtensionId_; +} + +void SetDomainExtensionAttributeRequest::setDomainExtensionId(const std::string &domainExtensionId) { + domainExtensionId_ = domainExtensionId; + setParameter(std::string("DomainExtensionId"), domainExtensionId); +} + +std::string SetDomainExtensionAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetDomainExtensionAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetDomainExtensionAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetDomainExtensionAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::vector SetDomainExtensionAttributeRequest::getCertificateId() const { + return certificateId_; +} + +void SetDomainExtensionAttributeRequest::setCertificateId(const std::vector &certificateId) { + certificateId_ = certificateId; +} + +long SetDomainExtensionAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void SetDomainExtensionAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetDomainExtensionAttributeRequest::getServerCertificateId() const { + return serverCertificateId_; +} + +void SetDomainExtensionAttributeRequest::setServerCertificateId(const std::string &serverCertificateId) { + serverCertificateId_ = serverCertificateId; + setParameter(std::string("ServerCertificateId"), serverCertificateId); +} + +std::string SetDomainExtensionAttributeRequest::getTags() const { + return tags_; +} + +void SetDomainExtensionAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + diff --git a/slb/src/model/SetDomainExtensionAttributeResult.cc b/slb/src/model/SetDomainExtensionAttributeResult.cc new file mode 100644 index 000000000..e88f3afd8 --- /dev/null +++ b/slb/src/model/SetDomainExtensionAttributeResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetDomainExtensionAttributeResult::SetDomainExtensionAttributeResult() : + ServiceResult() +{} + +SetDomainExtensionAttributeResult::SetDomainExtensionAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetDomainExtensionAttributeResult::~SetDomainExtensionAttributeResult() +{} + +void SetDomainExtensionAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetListenerAccessControlStatusRequest.cc b/slb/src/model/SetListenerAccessControlStatusRequest.cc new file mode 100644 index 000000000..b281f7e88 --- /dev/null +++ b/slb/src/model/SetListenerAccessControlStatusRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetListenerAccessControlStatusRequest; + +SetListenerAccessControlStatusRequest::SetListenerAccessControlStatusRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetListenerAccessControlStatus") { + setMethod(HttpRequest::Method::Post); +} + +SetListenerAccessControlStatusRequest::~SetListenerAccessControlStatusRequest() {} + +std::string SetListenerAccessControlStatusRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetListenerAccessControlStatusRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long SetListenerAccessControlStatusRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetListenerAccessControlStatusRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetListenerAccessControlStatusRequest::getRegionId() const { + return regionId_; +} + +void SetListenerAccessControlStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetListenerAccessControlStatusRequest::getAccessControlStatus() const { + return accessControlStatus_; +} + +void SetListenerAccessControlStatusRequest::setAccessControlStatus(const std::string &accessControlStatus) { + accessControlStatus_ = accessControlStatus; + setParameter(std::string("AccessControlStatus"), accessControlStatus); +} + +int SetListenerAccessControlStatusRequest::getListenerPort() const { + return listenerPort_; +} + +void SetListenerAccessControlStatusRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string SetListenerAccessControlStatusRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetListenerAccessControlStatusRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetListenerAccessControlStatusRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetListenerAccessControlStatusRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetListenerAccessControlStatusRequest::getOwnerId() const { + return ownerId_; +} + +void SetListenerAccessControlStatusRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetListenerAccessControlStatusRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void SetListenerAccessControlStatusRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::string SetListenerAccessControlStatusRequest::getTags() const { + return tags_; +} + +void SetListenerAccessControlStatusRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string SetListenerAccessControlStatusRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetListenerAccessControlStatusRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/SetListenerAccessControlStatusResult.cc b/slb/src/model/SetListenerAccessControlStatusResult.cc new file mode 100644 index 000000000..c26e9812e --- /dev/null +++ b/slb/src/model/SetListenerAccessControlStatusResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetListenerAccessControlStatusResult::SetListenerAccessControlStatusResult() : + ServiceResult() +{} + +SetListenerAccessControlStatusResult::SetListenerAccessControlStatusResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetListenerAccessControlStatusResult::~SetListenerAccessControlStatusResult() +{} + +void SetListenerAccessControlStatusResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetLoadBalancerDeleteProtectionRequest.cc b/slb/src/model/SetLoadBalancerDeleteProtectionRequest.cc new file mode 100644 index 000000000..b0d5eca2c --- /dev/null +++ b/slb/src/model/SetLoadBalancerDeleteProtectionRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetLoadBalancerDeleteProtectionRequest; + +SetLoadBalancerDeleteProtectionRequest::SetLoadBalancerDeleteProtectionRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetLoadBalancerDeleteProtection") { + setMethod(HttpRequest::Method::Post); +} + +SetLoadBalancerDeleteProtectionRequest::~SetLoadBalancerDeleteProtectionRequest() {} + +std::string SetLoadBalancerDeleteProtectionRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetLoadBalancerDeleteProtectionRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long SetLoadBalancerDeleteProtectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetLoadBalancerDeleteProtectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getRegionId() const { + return regionId_; +} + +void SetLoadBalancerDeleteProtectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getDeleteProtection() const { + return deleteProtection_; +} + +void SetLoadBalancerDeleteProtectionRequest::setDeleteProtection(const std::string &deleteProtection) { + deleteProtection_ = deleteProtection; + setParameter(std::string("DeleteProtection"), deleteProtection); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetLoadBalancerDeleteProtectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetLoadBalancerDeleteProtectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetLoadBalancerDeleteProtectionRequest::getOwnerId() const { + return ownerId_; +} + +void SetLoadBalancerDeleteProtectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getTags() const { + return tags_; +} + +void SetLoadBalancerDeleteProtectionRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string SetLoadBalancerDeleteProtectionRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetLoadBalancerDeleteProtectionRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/SetLoadBalancerDeleteProtectionResult.cc b/slb/src/model/SetLoadBalancerDeleteProtectionResult.cc new file mode 100644 index 000000000..886e16651 --- /dev/null +++ b/slb/src/model/SetLoadBalancerDeleteProtectionResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetLoadBalancerDeleteProtectionResult::SetLoadBalancerDeleteProtectionResult() : + ServiceResult() +{} + +SetLoadBalancerDeleteProtectionResult::SetLoadBalancerDeleteProtectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetLoadBalancerDeleteProtectionResult::~SetLoadBalancerDeleteProtectionResult() +{} + +void SetLoadBalancerDeleteProtectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc index 027187d89..b995463fa 100644 --- a/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc +++ b/slb/src/model/SetLoadBalancerHTTPListenerAttributeRequest.cc @@ -19,12 +19,21 @@ using AlibabaCloud::Slb::Model::SetLoadBalancerHTTPListenerAttributeRequest; SetLoadBalancerHTTPListenerAttributeRequest::SetLoadBalancerHTTPListenerAttributeRequest() - : RpcServiceRequest("slb", "2013-02-21", "SetLoadBalancerHTTPListenerAttribute") { + : RpcServiceRequest("slb", "2014-05-15", "SetLoadBalancerHTTPListenerAttribute") { setMethod(HttpRequest::Method::Post); } SetLoadBalancerHTTPListenerAttributeRequest::~SetLoadBalancerHTTPListenerAttributeRequest() {} +long SetLoadBalancerHTTPListenerAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckTimeout() const { return healthCheckTimeout_; } @@ -43,13 +52,202 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setXForwardedFor(const std::st setParameter(std::string("XForwardedFor"), xForwardedFor); } -std::string SetLoadBalancerHTTPListenerAttributeRequest::getHostId() const { - return hostId_; +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckURI() const { + return healthCheckURI_; } -void SetLoadBalancerHTTPListenerAttributeRequest::setHostId(const std::string &hostId) { - hostId_ = hostId; - setParameter(std::string("HostId"), hostId); +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor_SLBPORT() const { + return xForwardedFor_SLBPORT_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setXForwardedFor_SLBPORT(const std::string &xForwardedFor_SLBPORT) { + xForwardedFor_SLBPORT_ = xForwardedFor_SLBPORT; + setParameter(std::string("XForwardedFor_SLBPORT"), xForwardedFor_SLBPORT); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclStatus() const { + return aclStatus_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setAclStatus(const std::string &aclStatus) { + aclStatus_ = aclStatus; + setParameter(std::string("AclStatus"), aclStatus); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclType() const { + return aclType_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheck() const { + return healthCheck_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheck(const std::string &healthCheck) { + healthCheck_ = healthCheck; + setParameter(std::string("HealthCheck"), healthCheck); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getVpcIds() const { + return vpcIds_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setVpcIds(const std::string &vpcIds) { + vpcIds_ = vpcIds; + setParameter(std::string("VpcIds"), vpcIds); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getAclId() const { + return aclId_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getForwardCode() const { + return forwardCode_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setForwardCode(int forwardCode) { + forwardCode_ = forwardCode; + setParameter(std::string("ForwardCode"), std::to_string(forwardCode)); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getCookie() const { + return cookie_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setCookie(const std::string &cookie) { + cookie_ = cookie; + setParameter(std::string("Cookie"), cookie); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getRequestTimeout() const { + return requestTimeout_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setRequestTimeout(int requestTimeout) { + requestTimeout_ = requestTimeout; + setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout)); +} + +long SetLoadBalancerHTTPListenerAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getTags() const { + return tags_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor_SLBIP() const { + return xForwardedFor_SLBIP_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setXForwardedFor_SLBIP(const std::string &xForwardedFor_SLBIP) { + xForwardedFor_SLBIP_ = xForwardedFor_SLBIP; + setParameter(std::string("XForwardedFor_SLBIP"), xForwardedFor_SLBIP); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor_SLBID() const { + return xForwardedFor_SLBID_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setXForwardedFor_SLBID(const std::string &xForwardedFor_SLBID) { + xForwardedFor_SLBID_ = xForwardedFor_SLBID; + setParameter(std::string("XForwardedFor_SLBID"), xForwardedFor_SLBID); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor_ClientSrcPort() const { + return xForwardedFor_ClientSrcPort_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setXForwardedFor_ClientSrcPort(const std::string &xForwardedFor_ClientSrcPort) { + xForwardedFor_ClientSrcPort_ = xForwardedFor_ClientSrcPort; + setParameter(std::string("XForwardedFor_ClientSrcPort"), xForwardedFor_ClientSrcPort); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getDescription() const { + return description_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } int SetLoadBalancerHTTPListenerAttributeRequest::getUnhealthyThreshold() const { @@ -70,15 +268,6 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setHealthyThreshold(int health setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); } -std::string SetLoadBalancerHTTPListenerAttributeRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void SetLoadBalancerHTTPListenerAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string SetLoadBalancerHTTPListenerAttributeRequest::getScheduler() const { return scheduler_; } @@ -88,13 +277,22 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setScheduler(const std::string setParameter(std::string("Scheduler"), scheduler); } -std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheck() const { - return healthCheck_; +int SetLoadBalancerHTTPListenerAttributeRequest::getMaxConnection() const { + return maxConnection_; } -void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheck(const std::string &healthCheck) { - healthCheck_ = healthCheck; - setParameter(std::string("HealthCheck"), healthCheck); +void SetLoadBalancerHTTPListenerAttributeRequest::setMaxConnection(int maxConnection) { + maxConnection_ = maxConnection; + setParameter(std::string("MaxConnection"), std::to_string(maxConnection)); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getRegionId() const { + return regionId_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } int SetLoadBalancerHTTPListenerAttributeRequest::getCookieTimeout() const { @@ -124,13 +322,31 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setListenerPort(int listenerPo setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); } -std::string SetLoadBalancerHTTPListenerAttributeRequest::getCookie() const { - return cookie_; +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckType() const { + return healthCheckType_; } -void SetLoadBalancerHTTPListenerAttributeRequest::setCookie(const std::string &cookie) { - cookie_ = cookie; - setParameter(std::string("Cookie"), cookie); +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckType(const std::string &healthCheckType) { + healthCheckType_ = healthCheckType; + setParameter(std::string("HealthCheckType"), healthCheckType); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int SetLoadBalancerHTTPListenerAttributeRequest::getBandwidth() const { + return bandwidth_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } std::string SetLoadBalancerHTTPListenerAttributeRequest::getStickySession() const { @@ -151,48 +367,57 @@ void SetLoadBalancerHTTPListenerAttributeRequest::setOwnerAccount(const std::str setParameter(std::string("OwnerAccount"), ownerAccount); } -std::string SetLoadBalancerHTTPListenerAttributeRequest::getOwnerId() const { - return ownerId_; +std::string SetLoadBalancerHTTPListenerAttributeRequest::getGzip() const { + return gzip_; } -void SetLoadBalancerHTTPListenerAttributeRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); +void SetLoadBalancerHTTPListenerAttributeRequest::setGzip(const std::string &gzip) { + gzip_ = gzip; + setParameter(std::string("Gzip"), gzip); } -std::string SetLoadBalancerHTTPListenerAttributeRequest::getURI() const { - return uRI_; +int SetLoadBalancerHTTPListenerAttributeRequest::getIdleTimeout() const { + return idleTimeout_; } -void SetLoadBalancerHTTPListenerAttributeRequest::setURI(const std::string &uRI) { - uRI_ = uRI; - setParameter(std::string("URI"), uRI); +void SetLoadBalancerHTTPListenerAttributeRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); } -std::string SetLoadBalancerHTTPListenerAttributeRequest::getLoadBalancerId() const { - return loadBalancerId_; +std::string SetLoadBalancerHTTPListenerAttributeRequest::getXForwardedFor_proto() const { + return xForwardedFor_proto_; } -void SetLoadBalancerHTTPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { - loadBalancerId_ = loadBalancerId; - setParameter(std::string("LoadBalancerId"), loadBalancerId); +void SetLoadBalancerHTTPListenerAttributeRequest::setXForwardedFor_proto(const std::string &xForwardedFor_proto) { + xForwardedFor_proto_ = xForwardedFor_proto; + setParameter(std::string("XForwardedFor_proto"), xForwardedFor_proto); } -std::string SetLoadBalancerHTTPListenerAttributeRequest::getDomain() const { - return domain_; +int SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; } -void SetLoadBalancerHTTPListenerAttributeRequest::setDomain(const std::string &domain) { - domain_ = domain; - setParameter(std::string("Domain"), domain); +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); } -int SetLoadBalancerHTTPListenerAttributeRequest::getInterval() const { - return interval_; +std::string SetLoadBalancerHTTPListenerAttributeRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; } -void SetLoadBalancerHTTPListenerAttributeRequest::setInterval(int interval) { - interval_ = interval; - setParameter(std::string("Interval"), std::to_string(interval)); +void SetLoadBalancerHTTPListenerAttributeRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + +std::string SetLoadBalancerHTTPListenerAttributeRequest::getVServerGroup() const { + return vServerGroup_; +} + +void SetLoadBalancerHTTPListenerAttributeRequest::setVServerGroup(const std::string &vServerGroup) { + vServerGroup_ = vServerGroup; + setParameter(std::string("VServerGroup"), vServerGroup); } diff --git a/slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc new file mode 100644 index 000000000..8761d2fa6 --- /dev/null +++ b/slb/src/model/SetLoadBalancerHTTPSListenerAttributeRequest.cc @@ -0,0 +1,546 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetLoadBalancerHTTPSListenerAttributeRequest; + +SetLoadBalancerHTTPSListenerAttributeRequest::SetLoadBalancerHTTPSListenerAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetLoadBalancerHTTPSListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +SetLoadBalancerHTTPSListenerAttributeRequest::~SetLoadBalancerHTTPSListenerAttributeRequest() {} + +long SetLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::vector SetLoadBalancerHTTPSListenerAttributeRequest::getServerCertificate() const { + return serverCertificate_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setServerCertificate(const std::vector &serverCertificate) { + serverCertificate_ = serverCertificate; + for(int dep1 = 0; dep1 != serverCertificate.size(); dep1++) { + auto serverCertificateObj = serverCertificate.at(dep1); + std::string serverCertificateObjStr = std::string("ServerCertificate") + "." + std::to_string(dep1 + 1); + setParameter(serverCertificateObjStr + ".BindingType", serverCertificateObj.bindingType); + setParameter(serverCertificateObjStr + ".CertificateId", serverCertificateObj.certificateId); + setParameter(serverCertificateObjStr + ".StandardType", serverCertificateObj.standardType); + } +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckTimeout() const { + return healthCheckTimeout_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckTimeout(int healthCheckTimeout) { + healthCheckTimeout_ = healthCheckTimeout; + setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor() const { + return xForwardedFor_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor(const std::string &xForwardedFor) { + xForwardedFor_ = xForwardedFor; + setParameter(std::string("XForwardedFor"), xForwardedFor); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_SLBPORT() const { + return xForwardedFor_SLBPORT_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_SLBPORT(const std::string &xForwardedFor_SLBPORT) { + xForwardedFor_SLBPORT_ = xForwardedFor_SLBPORT; + setParameter(std::string("XForwardedFor_SLBPORT"), xForwardedFor_SLBPORT); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclStatus() const { + return aclStatus_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setAclStatus(const std::string &aclStatus) { + aclStatus_ = aclStatus; + setParameter(std::string("AclStatus"), aclStatus); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclType() const { + return aclType_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheck() const { + return healthCheck_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheck(const std::string &healthCheck) { + healthCheck_ = healthCheck; + setParameter(std::string("HealthCheck"), healthCheck); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getVpcIds() const { + return vpcIds_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setVpcIds(const std::string &vpcIds) { + vpcIds_ = vpcIds; + setParameter(std::string("VpcIds"), vpcIds); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAclId() const { + return aclId_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_ClientCertClientVerify() const { + return xForwardedFor_ClientCertClientVerify_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_ClientCertClientVerify(const std::string &xForwardedFor_ClientCertClientVerify) { + xForwardedFor_ClientCertClientVerify_ = xForwardedFor_ClientCertClientVerify; + setParameter(std::string("XForwardedFor_ClientCertClientVerify"), xForwardedFor_ClientCertClientVerify); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getCookie() const { + return cookie_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setCookie(const std::string &cookie) { + cookie_ = cookie; + setParameter(std::string("Cookie"), cookie); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getRequestTimeout() const { + return requestTimeout_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setRequestTimeout(int requestTimeout) { + requestTimeout_ = requestTimeout; + setParameter(std::string("RequestTimeout"), std::to_string(requestTimeout)); +} + +long SetLoadBalancerHTTPSListenerAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getCACertificateId() const { + return cACertificateId_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setCACertificateId(const std::string &cACertificateId) { + cACertificateId_ = cACertificateId; + setParameter(std::string("CACertificateId"), cACertificateId); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getBackendProtocol() const { + return backendProtocol_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setBackendProtocol(const std::string &backendProtocol) { + backendProtocol_ = backendProtocol; + setParameter(std::string("BackendProtocol"), backendProtocol); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getTags() const { + return tags_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_ClientCertFingerprintAlias() const { + return xForwardedFor_ClientCertFingerprintAlias_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_ClientCertFingerprintAlias(const std::string &xForwardedFor_ClientCertFingerprintAlias) { + xForwardedFor_ClientCertFingerprintAlias_ = xForwardedFor_ClientCertFingerprintAlias; + setParameter(std::string("XForwardedFor_ClientCertFingerprintAlias"), xForwardedFor_ClientCertFingerprintAlias); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_SLBIP() const { + return xForwardedFor_SLBIP_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_SLBIP(const std::string &xForwardedFor_SLBIP) { + xForwardedFor_SLBIP_ = xForwardedFor_SLBIP; + setParameter(std::string("XForwardedFor_SLBIP"), xForwardedFor_SLBIP); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_ClientCertClientVerifyAlias() const { + return xForwardedFor_ClientCertClientVerifyAlias_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_ClientCertClientVerifyAlias(const std::string &xForwardedFor_ClientCertClientVerifyAlias) { + xForwardedFor_ClientCertClientVerifyAlias_ = xForwardedFor_ClientCertClientVerifyAlias; + setParameter(std::string("XForwardedFor_ClientCertClientVerifyAlias"), xForwardedFor_ClientCertClientVerifyAlias); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_SLBID() const { + return xForwardedFor_SLBID_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_SLBID(const std::string &xForwardedFor_SLBID) { + xForwardedFor_SLBID_ = xForwardedFor_SLBID; + setParameter(std::string("XForwardedFor_SLBID"), xForwardedFor_SLBID); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_ClientCertFingerprint() const { + return xForwardedFor_ClientCertFingerprint_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_ClientCertFingerprint(const std::string &xForwardedFor_ClientCertFingerprint) { + xForwardedFor_ClientCertFingerprint_ = xForwardedFor_ClientCertFingerprint; + setParameter(std::string("XForwardedFor_ClientCertFingerprint"), xForwardedFor_ClientCertFingerprint); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_ClientSrcPort() const { + return xForwardedFor_ClientSrcPort_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_ClientSrcPort(const std::string &xForwardedFor_ClientSrcPort) { + xForwardedFor_ClientSrcPort_ = xForwardedFor_ClientSrcPort; + setParameter(std::string("XForwardedFor_ClientSrcPort"), xForwardedFor_ClientSrcPort); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getDescription() const { + return description_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_ClientCertIssuerDNAlias() const { + return xForwardedFor_ClientCertIssuerDNAlias_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_ClientCertIssuerDNAlias(const std::string &xForwardedFor_ClientCertIssuerDNAlias) { + xForwardedFor_ClientCertIssuerDNAlias_ = xForwardedFor_ClientCertIssuerDNAlias; + setParameter(std::string("XForwardedFor_ClientCertIssuerDNAlias"), xForwardedFor_ClientCertIssuerDNAlias); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getScheduler() const { + return scheduler_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getMaxConnection() const { + return maxConnection_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setMaxConnection(int maxConnection) { + maxConnection_ = maxConnection; + setParameter(std::string("MaxConnection"), std::to_string(maxConnection)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getEnableHttp2() const { + return enableHttp2_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setEnableHttp2(const std::string &enableHttp2) { + enableHttp2_ = enableHttp2; + setParameter(std::string("EnableHttp2"), enableHttp2); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getRegionId() const { + return regionId_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_ClientCertSubjectDN() const { + return xForwardedFor_ClientCertSubjectDN_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_ClientCertSubjectDN(const std::string &xForwardedFor_ClientCertSubjectDN) { + xForwardedFor_ClientCertSubjectDN_ = xForwardedFor_ClientCertSubjectDN; + setParameter(std::string("XForwardedFor_ClientCertSubjectDN"), xForwardedFor_ClientCertSubjectDN); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getCookieTimeout() const { + return cookieTimeout_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setCookieTimeout(int cookieTimeout) { + cookieTimeout_ = cookieTimeout; + setParameter(std::string("CookieTimeout"), std::to_string(cookieTimeout)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getStickySessionType() const { + return stickySessionType_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setStickySessionType(const std::string &stickySessionType) { + stickySessionType_ = stickySessionType; + setParameter(std::string("StickySessionType"), stickySessionType); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckType() const { + return healthCheckType_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckType(const std::string &healthCheckType) { + healthCheckType_ = healthCheckType; + setParameter(std::string("HealthCheckType"), healthCheckType); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getBandwidth() const { + return bandwidth_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getStickySession() const { + return stickySession_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setStickySession(const std::string &stickySession) { + stickySession_ = stickySession; + setParameter(std::string("StickySession"), stickySession); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getGzip() const { + return gzip_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setGzip(const std::string &gzip) { + gzip_ = gzip; + setParameter(std::string("Gzip"), gzip); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getTLSCipherPolicy() const { + return tLSCipherPolicy_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setTLSCipherPolicy(const std::string &tLSCipherPolicy) { + tLSCipherPolicy_ = tLSCipherPolicy; + setParameter(std::string("TLSCipherPolicy"), tLSCipherPolicy); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getServerCertificateId() const { + return serverCertificateId_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setServerCertificateId(const std::string &serverCertificateId) { + serverCertificateId_ = serverCertificateId; + setParameter(std::string("ServerCertificateId"), serverCertificateId); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getIdleTimeout() const { + return idleTimeout_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setIdleTimeout(int idleTimeout) { + idleTimeout_ = idleTimeout; + setParameter(std::string("IdleTimeout"), std::to_string(idleTimeout)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_proto() const { + return xForwardedFor_proto_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_proto(const std::string &xForwardedFor_proto) { + xForwardedFor_proto_ = xForwardedFor_proto; + setParameter(std::string("XForwardedFor_proto"), xForwardedFor_proto); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_ClientCertSubjectDNAlias() const { + return xForwardedFor_ClientCertSubjectDNAlias_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_ClientCertSubjectDNAlias(const std::string &xForwardedFor_ClientCertSubjectDNAlias) { + xForwardedFor_ClientCertSubjectDNAlias_ = xForwardedFor_ClientCertSubjectDNAlias; + setParameter(std::string("XForwardedFor_ClientCertSubjectDNAlias"), xForwardedFor_ClientCertSubjectDNAlias); +} + +int SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getVServerGroup() const { + return vServerGroup_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setVServerGroup(const std::string &vServerGroup) { + vServerGroup_ = vServerGroup; + setParameter(std::string("VServerGroup"), vServerGroup); +} + +std::string SetLoadBalancerHTTPSListenerAttributeRequest::getXForwardedFor_ClientCertIssuerDN() const { + return xForwardedFor_ClientCertIssuerDN_; +} + +void SetLoadBalancerHTTPSListenerAttributeRequest::setXForwardedFor_ClientCertIssuerDN(const std::string &xForwardedFor_ClientCertIssuerDN) { + xForwardedFor_ClientCertIssuerDN_ = xForwardedFor_ClientCertIssuerDN; + setParameter(std::string("XForwardedFor_ClientCertIssuerDN"), xForwardedFor_ClientCertIssuerDN); +} + diff --git a/slb/src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc b/slb/src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc new file mode 100644 index 000000000..acf4e4467 --- /dev/null +++ b/slb/src/model/SetLoadBalancerHTTPSListenerAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetLoadBalancerHTTPSListenerAttributeResult::SetLoadBalancerHTTPSListenerAttributeResult() : + ServiceResult() +{} + +SetLoadBalancerHTTPSListenerAttributeResult::SetLoadBalancerHTTPSListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetLoadBalancerHTTPSListenerAttributeResult::~SetLoadBalancerHTTPSListenerAttributeResult() +{} + +void SetLoadBalancerHTTPSListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetLoadBalancerListenerStatusRequest.cc b/slb/src/model/SetLoadBalancerListenerStatusRequest.cc deleted file mode 100644 index 48e833f78..000000000 --- a/slb/src/model/SetLoadBalancerListenerStatusRequest.cc +++ /dev/null @@ -1,90 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::Slb::Model::SetLoadBalancerListenerStatusRequest; - -SetLoadBalancerListenerStatusRequest::SetLoadBalancerListenerStatusRequest() - : RpcServiceRequest("slb", "2013-02-21", "SetLoadBalancerListenerStatus") { - setMethod(HttpRequest::Method::Post); -} - -SetLoadBalancerListenerStatusRequest::~SetLoadBalancerListenerStatusRequest() {} - -int SetLoadBalancerListenerStatusRequest::getListenerPort() const { - return listenerPort_; -} - -void SetLoadBalancerListenerStatusRequest::setListenerPort(int listenerPort) { - listenerPort_ = listenerPort; - setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); -} - -std::string SetLoadBalancerListenerStatusRequest::getOwnerAccount() const { - return ownerAccount_; -} - -void SetLoadBalancerListenerStatusRequest::setOwnerAccount(const std::string &ownerAccount) { - ownerAccount_ = ownerAccount; - setParameter(std::string("OwnerAccount"), ownerAccount); -} - -std::string SetLoadBalancerListenerStatusRequest::getHostId() const { - return hostId_; -} - -void SetLoadBalancerListenerStatusRequest::setHostId(const std::string &hostId) { - hostId_ = hostId; - setParameter(std::string("HostId"), hostId); -} - -std::string SetLoadBalancerListenerStatusRequest::getOwnerId() const { - return ownerId_; -} - -void SetLoadBalancerListenerStatusRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); -} - -std::string SetLoadBalancerListenerStatusRequest::getListenerStatus() const { - return listenerStatus_; -} - -void SetLoadBalancerListenerStatusRequest::setListenerStatus(const std::string &listenerStatus) { - listenerStatus_ = listenerStatus; - setParameter(std::string("ListenerStatus"), listenerStatus); -} - -std::string SetLoadBalancerListenerStatusRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void SetLoadBalancerListenerStatusRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - -std::string SetLoadBalancerListenerStatusRequest::getLoadBalancerId() const { - return loadBalancerId_; -} - -void SetLoadBalancerListenerStatusRequest::setLoadBalancerId(const std::string &loadBalancerId) { - loadBalancerId_ = loadBalancerId; - setParameter(std::string("LoadBalancerId"), loadBalancerId); -} - diff --git a/slb/src/model/SetLoadBalancerModificationProtectionRequest.cc b/slb/src/model/SetLoadBalancerModificationProtectionRequest.cc new file mode 100644 index 000000000..c6c6f058d --- /dev/null +++ b/slb/src/model/SetLoadBalancerModificationProtectionRequest.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::Slb::Model::SetLoadBalancerModificationProtectionRequest; + +SetLoadBalancerModificationProtectionRequest::SetLoadBalancerModificationProtectionRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetLoadBalancerModificationProtection") { + setMethod(HttpRequest::Method::Post); +} + +SetLoadBalancerModificationProtectionRequest::~SetLoadBalancerModificationProtectionRequest() {} + +std::string SetLoadBalancerModificationProtectionRequest::getModificationProtectionReason() const { + return modificationProtectionReason_; +} + +void SetLoadBalancerModificationProtectionRequest::setModificationProtectionReason(const std::string &modificationProtectionReason) { + modificationProtectionReason_ = modificationProtectionReason; + setParameter(std::string("ModificationProtectionReason"), modificationProtectionReason); +} + +long SetLoadBalancerModificationProtectionRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetLoadBalancerModificationProtectionRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetLoadBalancerModificationProtectionRequest::getRegionId() const { + return regionId_; +} + +void SetLoadBalancerModificationProtectionRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetLoadBalancerModificationProtectionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetLoadBalancerModificationProtectionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetLoadBalancerModificationProtectionRequest::getModificationProtectionStatus() const { + return modificationProtectionStatus_; +} + +void SetLoadBalancerModificationProtectionRequest::setModificationProtectionStatus(const std::string &modificationProtectionStatus) { + modificationProtectionStatus_ = modificationProtectionStatus; + setParameter(std::string("ModificationProtectionStatus"), modificationProtectionStatus); +} + +std::string SetLoadBalancerModificationProtectionRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetLoadBalancerModificationProtectionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetLoadBalancerModificationProtectionRequest::getOwnerId() const { + return ownerId_; +} + +void SetLoadBalancerModificationProtectionRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetLoadBalancerModificationProtectionRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetLoadBalancerModificationProtectionRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/SetLoadBalancerModificationProtectionResult.cc b/slb/src/model/SetLoadBalancerModificationProtectionResult.cc new file mode 100644 index 000000000..bb43459ed --- /dev/null +++ b/slb/src/model/SetLoadBalancerModificationProtectionResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetLoadBalancerModificationProtectionResult::SetLoadBalancerModificationProtectionResult() : + ServiceResult() +{} + +SetLoadBalancerModificationProtectionResult::SetLoadBalancerModificationProtectionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetLoadBalancerModificationProtectionResult::~SetLoadBalancerModificationProtectionResult() +{} + +void SetLoadBalancerModificationProtectionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetLoadBalancerNameRequest.cc b/slb/src/model/SetLoadBalancerNameRequest.cc index 95f16787c..8361e9fdc 100644 --- a/slb/src/model/SetLoadBalancerNameRequest.cc +++ b/slb/src/model/SetLoadBalancerNameRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::SetLoadBalancerNameRequest; SetLoadBalancerNameRequest::SetLoadBalancerNameRequest() - : RpcServiceRequest("slb", "2013-02-21", "SetLoadBalancerName") { + : RpcServiceRequest("slb", "2014-05-15", "SetLoadBalancerName") { setMethod(HttpRequest::Method::Post); } @@ -43,15 +43,6 @@ void SetLoadBalancerNameRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string SetLoadBalancerNameRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void SetLoadBalancerNameRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string SetLoadBalancerNameRequest::getLoadBalancerName() const { return loadBalancerName_; } @@ -61,6 +52,15 @@ void SetLoadBalancerNameRequest::setLoadBalancerName(const std::string &loadBala setParameter(std::string("LoadBalancerName"), loadBalancerName); } +std::string SetLoadBalancerNameRequest::getRegionId() const { + return regionId_; +} + +void SetLoadBalancerNameRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + std::string SetLoadBalancerNameRequest::getResourceOwnerAccount() const { return resourceOwnerAccount_; } diff --git a/slb/src/model/SetLoadBalancerStatusRequest.cc b/slb/src/model/SetLoadBalancerStatusRequest.cc index 47f702627..b97a1da4f 100644 --- a/slb/src/model/SetLoadBalancerStatusRequest.cc +++ b/slb/src/model/SetLoadBalancerStatusRequest.cc @@ -19,7 +19,7 @@ using AlibabaCloud::Slb::Model::SetLoadBalancerStatusRequest; SetLoadBalancerStatusRequest::SetLoadBalancerStatusRequest() - : RpcServiceRequest("slb", "2013-02-21", "SetLoadBalancerStatus") { + : RpcServiceRequest("slb", "2014-05-15", "SetLoadBalancerStatus") { setMethod(HttpRequest::Method::Post); } @@ -43,13 +43,13 @@ void SetLoadBalancerStatusRequest::setResourceOwnerId(long resourceOwnerId) { setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -std::string SetLoadBalancerStatusRequest::getAccessKeyId() const { - return accessKeyId_; +std::string SetLoadBalancerStatusRequest::getRegionId() const { + return regionId_; } -void SetLoadBalancerStatusRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); +void SetLoadBalancerStatusRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } std::string SetLoadBalancerStatusRequest::getResourceOwnerAccount() const { diff --git a/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc index 539c004ad..2d5d0cda3 100644 --- a/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc +++ b/slb/src/model/SetLoadBalancerTCPListenerAttributeRequest.cc @@ -19,19 +19,303 @@ using AlibabaCloud::Slb::Model::SetLoadBalancerTCPListenerAttributeRequest; SetLoadBalancerTCPListenerAttributeRequest::SetLoadBalancerTCPListenerAttributeRequest() - : RpcServiceRequest("slb", "2013-02-21", "SetLoadBalancerTCPListenerAttribute") { + : RpcServiceRequest("slb", "2014-05-15", "SetLoadBalancerTCPListenerAttribute") { setMethod(HttpRequest::Method::Post); } SetLoadBalancerTCPListenerAttributeRequest::~SetLoadBalancerTCPListenerAttributeRequest() {} -std::string SetLoadBalancerTCPListenerAttributeRequest::getHostId() const { - return hostId_; +long SetLoadBalancerTCPListenerAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -void SetLoadBalancerTCPListenerAttributeRequest::setHostId(const std::string &hostId) { - hostId_ = hostId; - setParameter(std::string("HostId"), hostId); +void SetLoadBalancerTCPListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getAclStatus() const { + return aclStatus_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setAclStatus(const std::string &aclStatus) { + aclStatus_ = aclStatus; + setParameter(std::string("AclStatus"), aclStatus); +} + +bool SetLoadBalancerTCPListenerAttributeRequest::getFullNatEnabled() const { + return fullNatEnabled_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setFullNatEnabled(bool fullNatEnabled) { + fullNatEnabled_ = fullNatEnabled; + setParameter(std::string("FullNatEnabled"), fullNatEnabled ? "true" : "false"); +} + +bool SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckTcpFastCloseEnabled() const { + return healthCheckTcpFastCloseEnabled_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckTcpFastCloseEnabled(bool healthCheckTcpFastCloseEnabled) { + healthCheckTcpFastCloseEnabled_ = healthCheckTcpFastCloseEnabled; + setParameter(std::string("HealthCheckTcpFastCloseEnabled"), healthCheckTcpFastCloseEnabled ? "true" : "false"); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getAclType() const { + return aclType_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getMasterSlaveServerGroup() const { + return masterSlaveServerGroup_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setMasterSlaveServerGroup(const std::string &masterSlaveServerGroup) { + masterSlaveServerGroup_ = masterSlaveServerGroup; + setParameter(std::string("MasterSlaveServerGroup"), masterSlaveServerGroup); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getEstablishedTimeout() const { + return establishedTimeout_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setEstablishedTimeout(int establishedTimeout) { + establishedTimeout_ = establishedTimeout; + setParameter(std::string("EstablishedTimeout"), std::to_string(establishedTimeout)); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getFailoverStrategy() const { + return failoverStrategy_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setFailoverStrategy(const std::string &failoverStrategy) { + failoverStrategy_ = failoverStrategy; + setParameter(std::string("FailoverStrategy"), failoverStrategy); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getPersistenceTimeout() const { + return persistenceTimeout_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setPersistenceTimeout(int persistenceTimeout) { + persistenceTimeout_ = persistenceTimeout; + setParameter(std::string("PersistenceTimeout"), std::to_string(persistenceTimeout)); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getVpcIds() const { + return vpcIds_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setVpcIds(const std::string &vpcIds) { + vpcIds_ = vpcIds; + setParameter(std::string("VpcIds"), vpcIds); +} + +bool SetLoadBalancerTCPListenerAttributeRequest::getMasterSlaveModeEnabled() const { + return masterSlaveModeEnabled_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setMasterSlaveModeEnabled(bool masterSlaveModeEnabled) { + masterSlaveModeEnabled_ = masterSlaveModeEnabled; + setParameter(std::string("MasterSlaveModeEnabled"), masterSlaveModeEnabled ? "true" : "false"); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getAclId() const { + return aclId_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +std::vector SetLoadBalancerTCPListenerAttributeRequest::getPortRange() const { + return portRange_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setPortRange(const std::vector &portRange) { + portRange_ = portRange; + for(int dep1 = 0; dep1 != portRange.size(); dep1++) { + auto portRangeObj = portRange.at(dep1); + std::string portRangeObjStr = std::string("PortRange") + "." + std::to_string(dep1 + 1); + setParameter(portRangeObjStr + ".StartPort", std::to_string(portRangeObj.startPort)); + setParameter(portRangeObjStr + ".EndPort", std::to_string(portRangeObj.endPort)); + } +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getSynProxy() const { + return synProxy_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setSynProxy(const std::string &synProxy) { + synProxy_ = synProxy; + setParameter(std::string("SynProxy"), synProxy); +} + +long SetLoadBalancerTCPListenerAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +bool SetLoadBalancerTCPListenerAttributeRequest::getProxyProtocolVpcIdEnabled() const { + return proxyProtocolVpcIdEnabled_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setProxyProtocolVpcIdEnabled(bool proxyProtocolVpcIdEnabled) { + proxyProtocolVpcIdEnabled_ = proxyProtocolVpcIdEnabled; + setParameter(std::string("ProxyProtocolVpcIdEnabled"), proxyProtocolVpcIdEnabled ? "true" : "false"); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getTags() const { + return tags_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getMasterSlaveServerGroupId() const { + return masterSlaveServerGroupId_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setMasterSlaveServerGroupId(const std::string &masterSlaveServerGroupId) { + masterSlaveServerGroupId_ = masterSlaveServerGroupId; + setParameter(std::string("MasterSlaveServerGroupId"), masterSlaveServerGroupId); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getFailoverThreshold() const { + return failoverThreshold_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setFailoverThreshold(int failoverThreshold) { + failoverThreshold_ = failoverThreshold; + setParameter(std::string("FailoverThreshold"), std::to_string(failoverThreshold)); +} + +bool SetLoadBalancerTCPListenerAttributeRequest::getProxyProtocolV2Enabled() const { + return proxyProtocolV2Enabled_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setProxyProtocolV2Enabled(bool proxyProtocolV2Enabled) { + proxyProtocolV2Enabled_ = proxyProtocolV2Enabled; + setParameter(std::string("ProxyProtocolV2Enabled"), proxyProtocolV2Enabled ? "true" : "false"); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getConnectionDrain() const { + return connectionDrain_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setConnectionDrain(const std::string &connectionDrain) { + connectionDrain_ = connectionDrain; + setParameter(std::string("ConnectionDrain"), connectionDrain); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckSwitch() const { + return healthCheckSwitch_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckSwitch(const std::string &healthCheckSwitch) { + healthCheckSwitch_ = healthCheckSwitch; + setParameter(std::string("HealthCheckSwitch"), healthCheckSwitch); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckConnectTimeout() const { + return healthCheckConnectTimeout_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { + healthCheckConnectTimeout_ = healthCheckConnectTimeout; + setParameter(std::string("HealthCheckConnectTimeout"), std::to_string(healthCheckConnectTimeout)); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getSlaveServerGroupId() const { + return slaveServerGroupId_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setSlaveServerGroupId(const std::string &slaveServerGroupId) { + slaveServerGroupId_ = slaveServerGroupId; + setParameter(std::string("SlaveServerGroupId"), slaveServerGroupId); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getDescription() const { + return description_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } int SetLoadBalancerTCPListenerAttributeRequest::getUnhealthyThreshold() const { @@ -52,15 +336,6 @@ void SetLoadBalancerTCPListenerAttributeRequest::setHealthyThreshold(int healthy setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); } -std::string SetLoadBalancerTCPListenerAttributeRequest::getAccessKeyId() const { - return accessKeyId_; -} - -void SetLoadBalancerTCPListenerAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { - accessKeyId_ = accessKeyId; - setParameter(std::string("AccessKeyId"), accessKeyId); -} - std::string SetLoadBalancerTCPListenerAttributeRequest::getScheduler() const { return scheduler_; } @@ -70,31 +345,31 @@ void SetLoadBalancerTCPListenerAttributeRequest::setScheduler(const std::string setParameter(std::string("Scheduler"), scheduler); } -std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheck() const { - return healthCheck_; +int SetLoadBalancerTCPListenerAttributeRequest::getMaxConnection() const { + return maxConnection_; } -void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheck(const std::string &healthCheck) { - healthCheck_ = healthCheck; - setParameter(std::string("HealthCheck"), healthCheck); +void SetLoadBalancerTCPListenerAttributeRequest::setMaxConnection(int maxConnection) { + maxConnection_ = maxConnection; + setParameter(std::string("MaxConnection"), std::to_string(maxConnection)); } -int SetLoadBalancerTCPListenerAttributeRequest::getPersistenceTimeout() const { - return persistenceTimeout_; +std::string SetLoadBalancerTCPListenerAttributeRequest::getRegionId() const { + return regionId_; } -void SetLoadBalancerTCPListenerAttributeRequest::setPersistenceTimeout(int persistenceTimeout) { - persistenceTimeout_ = persistenceTimeout; - setParameter(std::string("PersistenceTimeout"), std::to_string(persistenceTimeout)); +void SetLoadBalancerTCPListenerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -int SetLoadBalancerTCPListenerAttributeRequest::getConnectTimeout() const { - return connectTimeout_; +std::string SetLoadBalancerTCPListenerAttributeRequest::getMasterServerGroupId() const { + return masterServerGroupId_; } -void SetLoadBalancerTCPListenerAttributeRequest::setConnectTimeout(int connectTimeout) { - connectTimeout_ = connectTimeout; - setParameter(std::string("ConnectTimeout"), std::to_string(connectTimeout)); +void SetLoadBalancerTCPListenerAttributeRequest::setMasterServerGroupId(const std::string &masterServerGroupId) { + masterServerGroupId_ = masterServerGroupId; + setParameter(std::string("MasterServerGroupId"), masterServerGroupId); } int SetLoadBalancerTCPListenerAttributeRequest::getListenerPort() const { @@ -106,13 +381,31 @@ void SetLoadBalancerTCPListenerAttributeRequest::setListenerPort(int listenerPor setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); } -int SetLoadBalancerTCPListenerAttributeRequest::getConnectPort() const { - return connectPort_; +std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckType() const { + return healthCheckType_; } -void SetLoadBalancerTCPListenerAttributeRequest::setConnectPort(int connectPort) { - connectPort_ = connectPort; - setParameter(std::string("ConnectPort"), std::to_string(connectPort)); +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckType(const std::string &healthCheckType) { + healthCheckType_ = healthCheckType; + setParameter(std::string("HealthCheckType"), healthCheckType); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int SetLoadBalancerTCPListenerAttributeRequest::getBandwidth() const { + return bandwidth_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); } std::string SetLoadBalancerTCPListenerAttributeRequest::getOwnerAccount() const { @@ -124,30 +417,39 @@ void SetLoadBalancerTCPListenerAttributeRequest::setOwnerAccount(const std::stri setParameter(std::string("OwnerAccount"), ownerAccount); } -std::string SetLoadBalancerTCPListenerAttributeRequest::getOwnerId() const { - return ownerId_; +int SetLoadBalancerTCPListenerAttributeRequest::getConnectionDrainTimeout() const { + return connectionDrainTimeout_; } -void SetLoadBalancerTCPListenerAttributeRequest::setOwnerId(const std::string &ownerId) { - ownerId_ = ownerId; - setParameter(std::string("OwnerId"), ownerId); +void SetLoadBalancerTCPListenerAttributeRequest::setConnectionDrainTimeout(int connectionDrainTimeout) { + connectionDrainTimeout_ = connectionDrainTimeout; + setParameter(std::string("ConnectionDrainTimeout"), std::to_string(connectionDrainTimeout)); } -std::string SetLoadBalancerTCPListenerAttributeRequest::getLoadBalancerId() const { - return loadBalancerId_; +int SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; } -void SetLoadBalancerTCPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { - loadBalancerId_ = loadBalancerId; - setParameter(std::string("LoadBalancerId"), loadBalancerId); +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); } -int SetLoadBalancerTCPListenerAttributeRequest::getInterval() const { - return interval_; +std::string SetLoadBalancerTCPListenerAttributeRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; } -void SetLoadBalancerTCPListenerAttributeRequest::setInterval(int interval) { - interval_ = interval; - setParameter(std::string("Interval"), std::to_string(interval)); +void SetLoadBalancerTCPListenerAttributeRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + +std::string SetLoadBalancerTCPListenerAttributeRequest::getVServerGroup() const { + return vServerGroup_; +} + +void SetLoadBalancerTCPListenerAttributeRequest::setVServerGroup(const std::string &vServerGroup) { + vServerGroup_ = vServerGroup; + setParameter(std::string("VServerGroup"), vServerGroup); } diff --git a/slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc b/slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc new file mode 100644 index 000000000..7c7e88790 --- /dev/null +++ b/slb/src/model/SetLoadBalancerUDPListenerAttributeRequest.cc @@ -0,0 +1,455 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetLoadBalancerUDPListenerAttributeRequest; + +SetLoadBalancerUDPListenerAttributeRequest::SetLoadBalancerUDPListenerAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetLoadBalancerUDPListenerAttribute") { + setMethod(HttpRequest::Method::Post); +} + +SetLoadBalancerUDPListenerAttributeRequest::~SetLoadBalancerUDPListenerAttributeRequest() {} + +long SetLoadBalancerUDPListenerAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getAclStatus() const { + return aclStatus_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setAclStatus(const std::string &aclStatus) { + aclStatus_ = aclStatus; + setParameter(std::string("AclStatus"), aclStatus); +} + +bool SetLoadBalancerUDPListenerAttributeRequest::getFullNatEnabled() const { + return fullNatEnabled_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setFullNatEnabled(bool fullNatEnabled) { + fullNatEnabled_ = fullNatEnabled; + setParameter(std::string("FullNatEnabled"), fullNatEnabled ? "true" : "false"); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getAclType() const { + return aclType_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setAclType(const std::string &aclType) { + aclType_ = aclType; + setParameter(std::string("AclType"), aclType); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getMasterSlaveServerGroup() const { + return masterSlaveServerGroup_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setMasterSlaveServerGroup(const std::string &masterSlaveServerGroup) { + masterSlaveServerGroup_ = masterSlaveServerGroup; + setParameter(std::string("MasterSlaveServerGroup"), masterSlaveServerGroup); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getFailoverStrategy() const { + return failoverStrategy_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setFailoverStrategy(const std::string &failoverStrategy) { + failoverStrategy_ = failoverStrategy; + setParameter(std::string("FailoverStrategy"), failoverStrategy); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getPersistenceTimeout() const { + return persistenceTimeout_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setPersistenceTimeout(int persistenceTimeout) { + persistenceTimeout_ = persistenceTimeout; + setParameter(std::string("PersistenceTimeout"), std::to_string(persistenceTimeout)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getVpcIds() const { + return vpcIds_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setVpcIds(const std::string &vpcIds) { + vpcIds_ = vpcIds; + setParameter(std::string("VpcIds"), vpcIds); +} + +bool SetLoadBalancerUDPListenerAttributeRequest::getMasterSlaveModeEnabled() const { + return masterSlaveModeEnabled_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setMasterSlaveModeEnabled(bool masterSlaveModeEnabled) { + masterSlaveModeEnabled_ = masterSlaveModeEnabled; + setParameter(std::string("MasterSlaveModeEnabled"), masterSlaveModeEnabled ? "true" : "false"); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getAclId() const { + return aclId_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setAclId(const std::string &aclId) { + aclId_ = aclId; + setParameter(std::string("AclId"), aclId); +} + +std::vector SetLoadBalancerUDPListenerAttributeRequest::getPortRange() const { + return portRange_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setPortRange(const std::vector &portRange) { + portRange_ = portRange; + for(int dep1 = 0; dep1 != portRange.size(); dep1++) { + auto portRangeObj = portRange.at(dep1); + std::string portRangeObjStr = std::string("PortRange") + "." + std::to_string(dep1 + 1); + setParameter(portRangeObjStr + ".StartPort", std::to_string(portRangeObj.startPort)); + setParameter(portRangeObjStr + ".EndPort", std::to_string(portRangeObj.endPort)); + } +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckMethod() const { + return healthCheckMethod_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckMethod(const std::string &healthCheckMethod) { + healthCheckMethod_ = healthCheckMethod; + setParameter(std::string("HealthCheckMethod"), healthCheckMethod); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +long SetLoadBalancerUDPListenerAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +bool SetLoadBalancerUDPListenerAttributeRequest::getProxyProtocolVpcIdEnabled() const { + return proxyProtocolVpcIdEnabled_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setProxyProtocolVpcIdEnabled(bool proxyProtocolVpcIdEnabled) { + proxyProtocolVpcIdEnabled_ = proxyProtocolVpcIdEnabled; + setParameter(std::string("ProxyProtocolVpcIdEnabled"), proxyProtocolVpcIdEnabled ? "true" : "false"); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getTags() const { + return tags_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getMasterSlaveServerGroupId() const { + return masterSlaveServerGroupId_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setMasterSlaveServerGroupId(const std::string &masterSlaveServerGroupId) { + masterSlaveServerGroupId_ = masterSlaveServerGroupId; + setParameter(std::string("MasterSlaveServerGroupId"), masterSlaveServerGroupId); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckReq() const { + return healthCheckReq_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckReq(const std::string &healthCheckReq) { + healthCheckReq_ = healthCheckReq; + setParameter(std::string("healthCheckReq"), healthCheckReq); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckExp() const { + return healthCheckExp_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckExp(const std::string &healthCheckExp) { + healthCheckExp_ = healthCheckExp; + setParameter(std::string("healthCheckExp"), healthCheckExp); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getFailoverThreshold() const { + return failoverThreshold_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setFailoverThreshold(int failoverThreshold) { + failoverThreshold_ = failoverThreshold; + setParameter(std::string("FailoverThreshold"), std::to_string(failoverThreshold)); +} + +bool SetLoadBalancerUDPListenerAttributeRequest::getProxyProtocolV2Enabled() const { + return proxyProtocolV2Enabled_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setProxyProtocolV2Enabled(bool proxyProtocolV2Enabled) { + proxyProtocolV2Enabled_ = proxyProtocolV2Enabled; + setParameter(std::string("ProxyProtocolV2Enabled"), proxyProtocolV2Enabled ? "true" : "false"); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getConnectionDrain() const { + return connectionDrain_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setConnectionDrain(const std::string &connectionDrain) { + connectionDrain_ = connectionDrain; + setParameter(std::string("ConnectionDrain"), connectionDrain); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckSwitch() const { + return healthCheckSwitch_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckSwitch(const std::string &healthCheckSwitch) { + healthCheckSwitch_ = healthCheckSwitch; + setParameter(std::string("HealthCheckSwitch"), healthCheckSwitch); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckConnectTimeout() const { + return healthCheckConnectTimeout_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckConnectTimeout(int healthCheckConnectTimeout) { + healthCheckConnectTimeout_ = healthCheckConnectTimeout; + setParameter(std::string("HealthCheckConnectTimeout"), std::to_string(healthCheckConnectTimeout)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getSlaveServerGroupId() const { + return slaveServerGroupId_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setSlaveServerGroupId(const std::string &slaveServerGroupId) { + slaveServerGroupId_ = slaveServerGroupId; + setParameter(std::string("SlaveServerGroupId"), slaveServerGroupId); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getQuicVersion() const { + return quicVersion_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setQuicVersion(const std::string &quicVersion) { + quicVersion_ = quicVersion; + setParameter(std::string("QuicVersion"), quicVersion); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getDescription() const { + return description_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getScheduler() const { + return scheduler_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getMaxConnection() const { + return maxConnection_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setMaxConnection(int maxConnection) { + maxConnection_ = maxConnection; + setParameter(std::string("MaxConnection"), std::to_string(maxConnection)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getRegionId() const { + return regionId_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getMasterServerGroupId() const { + return masterServerGroupId_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setMasterServerGroupId(const std::string &masterServerGroupId) { + masterServerGroupId_ = masterServerGroupId; + setParameter(std::string("MasterServerGroupId"), masterServerGroupId); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getListenerPort() const { + return listenerPort_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckType() const { + return healthCheckType_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckType(const std::string &healthCheckType) { + healthCheckType_ = healthCheckType; + setParameter(std::string("HealthCheckType"), healthCheckType); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getBandwidth() const { + return bandwidth_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setBandwidth(int bandwidth) { + bandwidth_ = bandwidth; + setParameter(std::string("Bandwidth"), std::to_string(bandwidth)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getConnectionDrainTimeout() const { + return connectionDrainTimeout_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setConnectionDrainTimeout(int connectionDrainTimeout) { + connectionDrainTimeout_ = connectionDrainTimeout; + setParameter(std::string("ConnectionDrainTimeout"), std::to_string(connectionDrainTimeout)); +} + +int SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + +std::string SetLoadBalancerUDPListenerAttributeRequest::getVServerGroup() const { + return vServerGroup_; +} + +void SetLoadBalancerUDPListenerAttributeRequest::setVServerGroup(const std::string &vServerGroup) { + vServerGroup_ = vServerGroup; + setParameter(std::string("VServerGroup"), vServerGroup); +} + diff --git a/slb/src/model/SetLoadBalancerUDPListenerAttributeResult.cc b/slb/src/model/SetLoadBalancerUDPListenerAttributeResult.cc new file mode 100644 index 000000000..901a70a33 --- /dev/null +++ b/slb/src/model/SetLoadBalancerUDPListenerAttributeResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetLoadBalancerUDPListenerAttributeResult::SetLoadBalancerUDPListenerAttributeResult() : + ServiceResult() +{} + +SetLoadBalancerUDPListenerAttributeResult::SetLoadBalancerUDPListenerAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetLoadBalancerUDPListenerAttributeResult::~SetLoadBalancerUDPListenerAttributeResult() +{} + +void SetLoadBalancerUDPListenerAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetRuleRequest.cc b/slb/src/model/SetRuleRequest.cc new file mode 100644 index 000000000..32dab62e1 --- /dev/null +++ b/slb/src/model/SetRuleRequest.cc @@ -0,0 +1,252 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetRuleRequest; + +SetRuleRequest::SetRuleRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetRule") { + setMethod(HttpRequest::Method::Post); +} + +SetRuleRequest::~SetRuleRequest() {} + +std::string SetRuleRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetRuleRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long SetRuleRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetRuleRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +int SetRuleRequest::getHealthCheckTimeout() const { + return healthCheckTimeout_; +} + +void SetRuleRequest::setHealthCheckTimeout(int healthCheckTimeout) { + healthCheckTimeout_ = healthCheckTimeout; + setParameter(std::string("HealthCheckTimeout"), std::to_string(healthCheckTimeout)); +} + +std::string SetRuleRequest::getHealthCheckURI() const { + return healthCheckURI_; +} + +void SetRuleRequest::setHealthCheckURI(const std::string &healthCheckURI) { + healthCheckURI_ = healthCheckURI; + setParameter(std::string("HealthCheckURI"), healthCheckURI); +} + +std::string SetRuleRequest::getRuleName() const { + return ruleName_; +} + +void SetRuleRequest::setRuleName(const std::string &ruleName) { + ruleName_ = ruleName; + setParameter(std::string("RuleName"), ruleName); +} + +int SetRuleRequest::getUnhealthyThreshold() const { + return unhealthyThreshold_; +} + +void SetRuleRequest::setUnhealthyThreshold(int unhealthyThreshold) { + unhealthyThreshold_ = unhealthyThreshold; + setParameter(std::string("UnhealthyThreshold"), std::to_string(unhealthyThreshold)); +} + +int SetRuleRequest::getHealthyThreshold() const { + return healthyThreshold_; +} + +void SetRuleRequest::setHealthyThreshold(int healthyThreshold) { + healthyThreshold_ = healthyThreshold; + setParameter(std::string("HealthyThreshold"), std::to_string(healthyThreshold)); +} + +std::string SetRuleRequest::getScheduler() const { + return scheduler_; +} + +void SetRuleRequest::setScheduler(const std::string &scheduler) { + scheduler_ = scheduler; + setParameter(std::string("Scheduler"), scheduler); +} + +std::string SetRuleRequest::getHealthCheck() const { + return healthCheck_; +} + +void SetRuleRequest::setHealthCheck(const std::string &healthCheck) { + healthCheck_ = healthCheck; + setParameter(std::string("HealthCheck"), healthCheck); +} + +std::string SetRuleRequest::getRegionId() const { + return regionId_; +} + +void SetRuleRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetRuleRequest::getListenerSync() const { + return listenerSync_; +} + +void SetRuleRequest::setListenerSync(const std::string &listenerSync) { + listenerSync_ = listenerSync; + setParameter(std::string("ListenerSync"), listenerSync); +} + +int SetRuleRequest::getCookieTimeout() const { + return cookieTimeout_; +} + +void SetRuleRequest::setCookieTimeout(int cookieTimeout) { + cookieTimeout_ = cookieTimeout; + setParameter(std::string("CookieTimeout"), std::to_string(cookieTimeout)); +} + +std::string SetRuleRequest::getStickySessionType() const { + return stickySessionType_; +} + +void SetRuleRequest::setStickySessionType(const std::string &stickySessionType) { + stickySessionType_ = stickySessionType; + setParameter(std::string("StickySessionType"), stickySessionType); +} + +std::string SetRuleRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void SetRuleRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string SetRuleRequest::getCookie() const { + return cookie_; +} + +void SetRuleRequest::setCookie(const std::string &cookie) { + cookie_ = cookie; + setParameter(std::string("Cookie"), cookie); +} + +std::string SetRuleRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetRuleRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetRuleRequest::getStickySession() const { + return stickySession_; +} + +void SetRuleRequest::setStickySession(const std::string &stickySession) { + stickySession_ = stickySession; + setParameter(std::string("StickySession"), stickySession); +} + +std::string SetRuleRequest::getHealthCheckDomain() const { + return healthCheckDomain_; +} + +void SetRuleRequest::setHealthCheckDomain(const std::string &healthCheckDomain) { + healthCheckDomain_ = healthCheckDomain; + setParameter(std::string("HealthCheckDomain"), healthCheckDomain); +} + +std::string SetRuleRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetRuleRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetRuleRequest::getOwnerId() const { + return ownerId_; +} + +void SetRuleRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetRuleRequest::getTags() const { + return tags_; +} + +void SetRuleRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +int SetRuleRequest::getHealthCheckInterval() const { + return healthCheckInterval_; +} + +void SetRuleRequest::setHealthCheckInterval(int healthCheckInterval) { + healthCheckInterval_ = healthCheckInterval; + setParameter(std::string("HealthCheckInterval"), std::to_string(healthCheckInterval)); +} + +std::string SetRuleRequest::getRuleId() const { + return ruleId_; +} + +void SetRuleRequest::setRuleId(const std::string &ruleId) { + ruleId_ = ruleId; + setParameter(std::string("RuleId"), ruleId); +} + +int SetRuleRequest::getHealthCheckConnectPort() const { + return healthCheckConnectPort_; +} + +void SetRuleRequest::setHealthCheckConnectPort(int healthCheckConnectPort) { + healthCheckConnectPort_ = healthCheckConnectPort; + setParameter(std::string("HealthCheckConnectPort"), std::to_string(healthCheckConnectPort)); +} + +std::string SetRuleRequest::getHealthCheckHttpCode() const { + return healthCheckHttpCode_; +} + +void SetRuleRequest::setHealthCheckHttpCode(const std::string &healthCheckHttpCode) { + healthCheckHttpCode_ = healthCheckHttpCode; + setParameter(std::string("HealthCheckHttpCode"), healthCheckHttpCode); +} + diff --git a/slb/src/model/SetRuleResult.cc b/slb/src/model/SetRuleResult.cc new file mode 100644 index 000000000..790cf1d6e --- /dev/null +++ b/slb/src/model/SetRuleResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetRuleResult::SetRuleResult() : + ServiceResult() +{} + +SetRuleResult::SetRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetRuleResult::~SetRuleResult() +{} + +void SetRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetServerCertificateNameRequest.cc b/slb/src/model/SetServerCertificateNameRequest.cc new file mode 100644 index 000000000..597079af8 --- /dev/null +++ b/slb/src/model/SetServerCertificateNameRequest.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetServerCertificateNameRequest; + +SetServerCertificateNameRequest::SetServerCertificateNameRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetServerCertificateName") { + setMethod(HttpRequest::Method::Post); +} + +SetServerCertificateNameRequest::~SetServerCertificateNameRequest() {} + +std::string SetServerCertificateNameRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetServerCertificateNameRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long SetServerCertificateNameRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetServerCertificateNameRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetServerCertificateNameRequest::getRegionId() const { + return regionId_; +} + +void SetServerCertificateNameRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetServerCertificateNameRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetServerCertificateNameRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetServerCertificateNameRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetServerCertificateNameRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetServerCertificateNameRequest::getOwnerId() const { + return ownerId_; +} + +void SetServerCertificateNameRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetServerCertificateNameRequest::getServerCertificateId() const { + return serverCertificateId_; +} + +void SetServerCertificateNameRequest::setServerCertificateId(const std::string &serverCertificateId) { + serverCertificateId_ = serverCertificateId; + setParameter(std::string("ServerCertificateId"), serverCertificateId); +} + +std::string SetServerCertificateNameRequest::getTags() const { + return tags_; +} + +void SetServerCertificateNameRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string SetServerCertificateNameRequest::getServerCertificateName() const { + return serverCertificateName_; +} + +void SetServerCertificateNameRequest::setServerCertificateName(const std::string &serverCertificateName) { + serverCertificateName_ = serverCertificateName; + setParameter(std::string("ServerCertificateName"), serverCertificateName); +} + diff --git a/slb/src/model/SetServerCertificateNameResult.cc b/slb/src/model/SetServerCertificateNameResult.cc new file mode 100644 index 000000000..0cfea797d --- /dev/null +++ b/slb/src/model/SetServerCertificateNameResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetServerCertificateNameResult::SetServerCertificateNameResult() : + ServiceResult() +{} + +SetServerCertificateNameResult::SetServerCertificateNameResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetServerCertificateNameResult::~SetServerCertificateNameResult() +{} + +void SetServerCertificateNameResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/SetTLSCipherPolicyAttributeRequest.cc b/slb/src/model/SetTLSCipherPolicyAttributeRequest.cc new file mode 100644 index 000000000..3d3c18b20 --- /dev/null +++ b/slb/src/model/SetTLSCipherPolicyAttributeRequest.cc @@ -0,0 +1,124 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetTLSCipherPolicyAttributeRequest; + +SetTLSCipherPolicyAttributeRequest::SetTLSCipherPolicyAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetTLSCipherPolicyAttribute") { + setMethod(HttpRequest::Method::Post); +} + +SetTLSCipherPolicyAttributeRequest::~SetTLSCipherPolicyAttributeRequest() {} + +std::string SetTLSCipherPolicyAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetTLSCipherPolicyAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long SetTLSCipherPolicyAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetTLSCipherPolicyAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetTLSCipherPolicyAttributeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SetTLSCipherPolicyAttributeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string SetTLSCipherPolicyAttributeRequest::getTLSCipherPolicyId() const { + return tLSCipherPolicyId_; +} + +void SetTLSCipherPolicyAttributeRequest::setTLSCipherPolicyId(const std::string &tLSCipherPolicyId) { + tLSCipherPolicyId_ = tLSCipherPolicyId; + setParameter(std::string("TLSCipherPolicyId"), tLSCipherPolicyId); +} + +std::string SetTLSCipherPolicyAttributeRequest::getRegionId() const { + return regionId_; +} + +void SetTLSCipherPolicyAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector SetTLSCipherPolicyAttributeRequest::getCiphers() const { + return ciphers_; +} + +void SetTLSCipherPolicyAttributeRequest::setCiphers(const std::vector &ciphers) { + ciphers_ = ciphers; +} + +std::vector SetTLSCipherPolicyAttributeRequest::getTLSVersions() const { + return tLSVersions_; +} + +void SetTLSCipherPolicyAttributeRequest::setTLSVersions(const std::vector &tLSVersions) { + tLSVersions_ = tLSVersions; +} + +std::string SetTLSCipherPolicyAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetTLSCipherPolicyAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetTLSCipherPolicyAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetTLSCipherPolicyAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetTLSCipherPolicyAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void SetTLSCipherPolicyAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetTLSCipherPolicyAttributeRequest::getName() const { + return name_; +} + +void SetTLSCipherPolicyAttributeRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); +} + diff --git a/slb/src/model/SetTLSCipherPolicyAttributeResult.cc b/slb/src/model/SetTLSCipherPolicyAttributeResult.cc new file mode 100644 index 000000000..de7b9e8fd --- /dev/null +++ b/slb/src/model/SetTLSCipherPolicyAttributeResult.cc @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetTLSCipherPolicyAttributeResult::SetTLSCipherPolicyAttributeResult() : + ServiceResult() +{} + +SetTLSCipherPolicyAttributeResult::SetTLSCipherPolicyAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetTLSCipherPolicyAttributeResult::~SetTLSCipherPolicyAttributeResult() +{} + +void SetTLSCipherPolicyAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string SetTLSCipherPolicyAttributeResult::getTaskId()const +{ + return taskId_; +} + diff --git a/slb/src/model/SetVServerGroupAttributeRequest.cc b/slb/src/model/SetVServerGroupAttributeRequest.cc new file mode 100644 index 000000000..aca99d411 --- /dev/null +++ b/slb/src/model/SetVServerGroupAttributeRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::SetVServerGroupAttributeRequest; + +SetVServerGroupAttributeRequest::SetVServerGroupAttributeRequest() + : RpcServiceRequest("slb", "2014-05-15", "SetVServerGroupAttribute") { + setMethod(HttpRequest::Method::Post); +} + +SetVServerGroupAttributeRequest::~SetVServerGroupAttributeRequest() {} + +std::string SetVServerGroupAttributeRequest::getAccess_key_id() const { + return access_key_id_; +} + +void SetVServerGroupAttributeRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long SetVServerGroupAttributeRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SetVServerGroupAttributeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SetVServerGroupAttributeRequest::getBackendServers() const { + return backendServers_; +} + +void SetVServerGroupAttributeRequest::setBackendServers(const std::string &backendServers) { + backendServers_ = backendServers; + setParameter(std::string("BackendServers"), backendServers); +} + +std::string SetVServerGroupAttributeRequest::getRegionId() const { + return regionId_; +} + +void SetVServerGroupAttributeRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::string SetVServerGroupAttributeRequest::getVServerGroupId() const { + return vServerGroupId_; +} + +void SetVServerGroupAttributeRequest::setVServerGroupId(const std::string &vServerGroupId) { + vServerGroupId_ = vServerGroupId; + setParameter(std::string("VServerGroupId"), vServerGroupId); +} + +std::string SetVServerGroupAttributeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SetVServerGroupAttributeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SetVServerGroupAttributeRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SetVServerGroupAttributeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SetVServerGroupAttributeRequest::getOwnerId() const { + return ownerId_; +} + +void SetVServerGroupAttributeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SetVServerGroupAttributeRequest::getTags() const { + return tags_; +} + +void SetVServerGroupAttributeRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string SetVServerGroupAttributeRequest::getVServerGroupName() const { + return vServerGroupName_; +} + +void SetVServerGroupAttributeRequest::setVServerGroupName(const std::string &vServerGroupName) { + vServerGroupName_ = vServerGroupName; + setParameter(std::string("VServerGroupName"), vServerGroupName); +} + diff --git a/slb/src/model/SetVServerGroupAttributeResult.cc b/slb/src/model/SetVServerGroupAttributeResult.cc new file mode 100644 index 000000000..15d60d941 --- /dev/null +++ b/slb/src/model/SetVServerGroupAttributeResult.cc @@ -0,0 +1,87 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +SetVServerGroupAttributeResult::SetVServerGroupAttributeResult() : + ServiceResult() +{} + +SetVServerGroupAttributeResult::SetVServerGroupAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SetVServerGroupAttributeResult::~SetVServerGroupAttributeResult() +{} + +void SetVServerGroupAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allBackendServersNode = value["BackendServers"]["BackendServer"]; + for (auto valueBackendServersBackendServer : allBackendServersNode) + { + BackendServer backendServersObject; + if(!valueBackendServersBackendServer["VpcId"].isNull()) + backendServersObject.vpcId = valueBackendServersBackendServer["VpcId"].asString(); + if(!valueBackendServersBackendServer["Type"].isNull()) + backendServersObject.type = valueBackendServersBackendServer["Type"].asString(); + if(!valueBackendServersBackendServer["Weight"].isNull()) + backendServersObject.weight = std::stoi(valueBackendServersBackendServer["Weight"].asString()); + if(!valueBackendServersBackendServer["Description"].isNull()) + backendServersObject.description = valueBackendServersBackendServer["Description"].asString(); + if(!valueBackendServersBackendServer["ServerRegionId"].isNull()) + backendServersObject.serverRegionId = valueBackendServersBackendServer["ServerRegionId"].asString(); + if(!valueBackendServersBackendServer["ServerIp"].isNull()) + backendServersObject.serverIp = valueBackendServersBackendServer["ServerIp"].asString(); + if(!valueBackendServersBackendServer["Port"].isNull()) + backendServersObject.port = std::stoi(valueBackendServersBackendServer["Port"].asString()); + if(!valueBackendServersBackendServer["VbrId"].isNull()) + backendServersObject.vbrId = valueBackendServersBackendServer["VbrId"].asString(); + if(!valueBackendServersBackendServer["ServerId"].isNull()) + backendServersObject.serverId = valueBackendServersBackendServer["ServerId"].asString(); + backendServers_.push_back(backendServersObject); + } + if(!value["VServerGroupId"].isNull()) + vServerGroupId_ = value["VServerGroupId"].asString(); + if(!value["VServerGroupName"].isNull()) + vServerGroupName_ = value["VServerGroupName"].asString(); + +} + +std::string SetVServerGroupAttributeResult::getVServerGroupId()const +{ + return vServerGroupId_; +} + +std::string SetVServerGroupAttributeResult::getVServerGroupName()const +{ + return vServerGroupName_; +} + +std::vector SetVServerGroupAttributeResult::getBackendServers()const +{ + return backendServers_; +} + diff --git a/slb/src/model/StartLoadBalancerListenerRequest.cc b/slb/src/model/StartLoadBalancerListenerRequest.cc new file mode 100644 index 000000000..20e895616 --- /dev/null +++ b/slb/src/model/StartLoadBalancerListenerRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::StartLoadBalancerListenerRequest; + +StartLoadBalancerListenerRequest::StartLoadBalancerListenerRequest() + : RpcServiceRequest("slb", "2014-05-15", "StartLoadBalancerListener") { + setMethod(HttpRequest::Method::Post); +} + +StartLoadBalancerListenerRequest::~StartLoadBalancerListenerRequest() {} + +std::string StartLoadBalancerListenerRequest::getAccess_key_id() const { + return access_key_id_; +} + +void StartLoadBalancerListenerRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long StartLoadBalancerListenerRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void StartLoadBalancerListenerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string StartLoadBalancerListenerRequest::getRegionId() const { + return regionId_; +} + +void StartLoadBalancerListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int StartLoadBalancerListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void StartLoadBalancerListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string StartLoadBalancerListenerRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void StartLoadBalancerListenerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string StartLoadBalancerListenerRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void StartLoadBalancerListenerRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long StartLoadBalancerListenerRequest::getOwnerId() const { + return ownerId_; +} + +void StartLoadBalancerListenerRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string StartLoadBalancerListenerRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void StartLoadBalancerListenerRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::string StartLoadBalancerListenerRequest::getTags() const { + return tags_; +} + +void StartLoadBalancerListenerRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string StartLoadBalancerListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void StartLoadBalancerListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/StartLoadBalancerListenerResult.cc b/slb/src/model/StartLoadBalancerListenerResult.cc new file mode 100644 index 000000000..571496ba5 --- /dev/null +++ b/slb/src/model/StartLoadBalancerListenerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +StartLoadBalancerListenerResult::StartLoadBalancerListenerResult() : + ServiceResult() +{} + +StartLoadBalancerListenerResult::StartLoadBalancerListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StartLoadBalancerListenerResult::~StartLoadBalancerListenerResult() +{} + +void StartLoadBalancerListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/StopLoadBalancerListenerRequest.cc b/slb/src/model/StopLoadBalancerListenerRequest.cc new file mode 100644 index 000000000..a9e8a57b4 --- /dev/null +++ b/slb/src/model/StopLoadBalancerListenerRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::StopLoadBalancerListenerRequest; + +StopLoadBalancerListenerRequest::StopLoadBalancerListenerRequest() + : RpcServiceRequest("slb", "2014-05-15", "StopLoadBalancerListener") { + setMethod(HttpRequest::Method::Post); +} + +StopLoadBalancerListenerRequest::~StopLoadBalancerListenerRequest() {} + +std::string StopLoadBalancerListenerRequest::getAccess_key_id() const { + return access_key_id_; +} + +void StopLoadBalancerListenerRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long StopLoadBalancerListenerRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void StopLoadBalancerListenerRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string StopLoadBalancerListenerRequest::getRegionId() const { + return regionId_; +} + +void StopLoadBalancerListenerRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +int StopLoadBalancerListenerRequest::getListenerPort() const { + return listenerPort_; +} + +void StopLoadBalancerListenerRequest::setListenerPort(int listenerPort) { + listenerPort_ = listenerPort; + setParameter(std::string("ListenerPort"), std::to_string(listenerPort)); +} + +std::string StopLoadBalancerListenerRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void StopLoadBalancerListenerRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string StopLoadBalancerListenerRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void StopLoadBalancerListenerRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long StopLoadBalancerListenerRequest::getOwnerId() const { + return ownerId_; +} + +void StopLoadBalancerListenerRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string StopLoadBalancerListenerRequest::getListenerProtocol() const { + return listenerProtocol_; +} + +void StopLoadBalancerListenerRequest::setListenerProtocol(const std::string &listenerProtocol) { + listenerProtocol_ = listenerProtocol; + setParameter(std::string("ListenerProtocol"), listenerProtocol); +} + +std::string StopLoadBalancerListenerRequest::getTags() const { + return tags_; +} + +void StopLoadBalancerListenerRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string StopLoadBalancerListenerRequest::getLoadBalancerId() const { + return loadBalancerId_; +} + +void StopLoadBalancerListenerRequest::setLoadBalancerId(const std::string &loadBalancerId) { + loadBalancerId_ = loadBalancerId; + setParameter(std::string("LoadBalancerId"), loadBalancerId); +} + diff --git a/slb/src/model/StopLoadBalancerListenerResult.cc b/slb/src/model/StopLoadBalancerListenerResult.cc new file mode 100644 index 000000000..2966e334d --- /dev/null +++ b/slb/src/model/StopLoadBalancerListenerResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +StopLoadBalancerListenerResult::StopLoadBalancerListenerResult() : + ServiceResult() +{} + +StopLoadBalancerListenerResult::StopLoadBalancerListenerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopLoadBalancerListenerResult::~StopLoadBalancerListenerResult() +{} + +void StopLoadBalancerListenerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/slb/src/model/TagResourcesRequest.cc b/slb/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..6d86239f1 --- /dev/null +++ b/slb/src/model/TagResourcesRequest.cc @@ -0,0 +1,112 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("slb", "2014-05-15", "TagResources") { + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() {} + +std::string TagResourcesRequest::getAccess_key_id() const { + return access_key_id_; +} + +void TagResourcesRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long TagResourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void TagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string TagResourcesRequest::getRegionId() const { + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(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++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string TagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void TagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string TagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void TagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long TagResourcesRequest::getOwnerId() const { + return ownerId_; +} + +void TagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + diff --git a/slb/src/model/TagResourcesResult.cc b/slb/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..467ddb633 --- /dev/null +++ b/slb/src/model/TagResourcesResult.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::Slb; +using namespace AlibabaCloud::Slb::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()); + +} + diff --git a/slb/src/model/UntagResourcesRequest.cc b/slb/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..6bc89a038 --- /dev/null +++ b/slb/src/model/UntagResourcesRequest.cc @@ -0,0 +1,115 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("slb", "2014-05-15", "UntagResources") { + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() {} + +std::string UntagResourcesRequest::getAccess_key_id() const { + return access_key_id_; +} + +void UntagResourcesRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long UntagResourcesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UntagResourcesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UntagResourcesRequest::getRegionId() const { + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +bool UntagResourcesRequest::getAll() const { + return all_; +} + +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; +} + +std::string UntagResourcesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UntagResourcesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UntagResourcesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UntagResourcesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long UntagResourcesRequest::getOwnerId() const { + return ownerId_; +} + +void UntagResourcesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); +} + +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; +} + diff --git a/slb/src/model/UntagResourcesResult.cc b/slb/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..c5268451c --- /dev/null +++ b/slb/src/model/UntagResourcesResult.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::Slb; +using namespace AlibabaCloud::Slb::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()); + +} + diff --git a/slb/src/model/UploadCACertificateRequest.cc b/slb/src/model/UploadCACertificateRequest.cc new file mode 100644 index 000000000..fd448e8e2 --- /dev/null +++ b/slb/src/model/UploadCACertificateRequest.cc @@ -0,0 +1,131 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::UploadCACertificateRequest; + +UploadCACertificateRequest::UploadCACertificateRequest() + : RpcServiceRequest("slb", "2014-05-15", "UploadCACertificate") { + setMethod(HttpRequest::Method::Post); +} + +UploadCACertificateRequest::~UploadCACertificateRequest() {} + +std::string UploadCACertificateRequest::getAccess_key_id() const { + return access_key_id_; +} + +void UploadCACertificateRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long UploadCACertificateRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UploadCACertificateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UploadCACertificateRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void UploadCACertificateRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string UploadCACertificateRequest::getCACertificateName() const { + return cACertificateName_; +} + +void UploadCACertificateRequest::setCACertificateName(const std::string &cACertificateName) { + cACertificateName_ = cACertificateName; + setParameter(std::string("CACertificateName"), cACertificateName); +} + +std::string UploadCACertificateRequest::getRegionId() const { + return regionId_; +} + +void UploadCACertificateRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector UploadCACertificateRequest::getTag() const { + return tag_; +} + +void UploadCACertificateRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string UploadCACertificateRequest::getCACertificate() const { + return cACertificate_; +} + +void UploadCACertificateRequest::setCACertificate(const std::string &cACertificate) { + cACertificate_ = cACertificate; + setParameter(std::string("CACertificate"), cACertificate); +} + +std::string UploadCACertificateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UploadCACertificateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UploadCACertificateRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UploadCACertificateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string UploadCACertificateRequest::getStandardType() const { + return standardType_; +} + +void UploadCACertificateRequest::setStandardType(const std::string &standardType) { + standardType_ = standardType; + setParameter(std::string("StandardType"), standardType); +} + +long UploadCACertificateRequest::getOwnerId() const { + return ownerId_; +} + +void UploadCACertificateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/slb/src/model/UploadCACertificateResult.cc b/slb/src/model/UploadCACertificateResult.cc new file mode 100644 index 000000000..9e94cd04a --- /dev/null +++ b/slb/src/model/UploadCACertificateResult.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::Slb; +using namespace AlibabaCloud::Slb::Model; + +UploadCACertificateResult::UploadCACertificateResult() : + ServiceResult() +{} + +UploadCACertificateResult::UploadCACertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UploadCACertificateResult::~UploadCACertificateResult() +{} + +void UploadCACertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["CreateTimeStamp"].isNull()) + createTimeStamp_ = std::stol(value["CreateTimeStamp"].asString()); + if(!value["ExpireTime"].isNull()) + expireTime_ = value["ExpireTime"].asString(); + if(!value["Fingerprint"].isNull()) + fingerprint_ = value["Fingerprint"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["CommonName"].isNull()) + commonName_ = value["CommonName"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["CACertificateName"].isNull()) + cACertificateName_ = value["CACertificateName"].asString(); + if(!value["ExpireTimeStamp"].isNull()) + expireTimeStamp_ = std::stol(value["ExpireTimeStamp"].asString()); + if(!value["CACertificateId"].isNull()) + cACertificateId_ = value["CACertificateId"].asString(); + +} + +std::string UploadCACertificateResult::getFingerprint()const +{ + return fingerprint_; +} + +std::string UploadCACertificateResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +long UploadCACertificateResult::getExpireTimeStamp()const +{ + return expireTimeStamp_; +} + +std::string UploadCACertificateResult::getCACertificateId()const +{ + return cACertificateId_; +} + +std::string UploadCACertificateResult::getCreateTime()const +{ + return createTime_; +} + +std::string UploadCACertificateResult::getCACertificateName()const +{ + return cACertificateName_; +} + +std::string UploadCACertificateResult::getExpireTime()const +{ + return expireTime_; +} + +long UploadCACertificateResult::getCreateTimeStamp()const +{ + return createTimeStamp_; +} + +std::string UploadCACertificateResult::getCommonName()const +{ + return commonName_; +} + diff --git a/slb/src/model/UploadServerCertificateRequest.cc b/slb/src/model/UploadServerCertificateRequest.cc new file mode 100644 index 000000000..2d197b90c --- /dev/null +++ b/slb/src/model/UploadServerCertificateRequest.cc @@ -0,0 +1,176 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Slb::Model::UploadServerCertificateRequest; + +UploadServerCertificateRequest::UploadServerCertificateRequest() + : RpcServiceRequest("slb", "2014-05-15", "UploadServerCertificate") { + setMethod(HttpRequest::Method::Post); +} + +UploadServerCertificateRequest::~UploadServerCertificateRequest() {} + +std::string UploadServerCertificateRequest::getAccess_key_id() const { + return access_key_id_; +} + +void UploadServerCertificateRequest::setAccess_key_id(const std::string &access_key_id) { + access_key_id_ = access_key_id; + setParameter(std::string("access_key_id"), access_key_id); +} + +long UploadServerCertificateRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UploadServerCertificateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UploadServerCertificateRequest::getServerCertificate() const { + return serverCertificate_; +} + +void UploadServerCertificateRequest::setServerCertificate(const std::string &serverCertificate) { + serverCertificate_ = serverCertificate; + setParameter(std::string("ServerCertificate"), serverCertificate); +} + +std::string UploadServerCertificateRequest::getAliCloudCertificateName() const { + return aliCloudCertificateName_; +} + +void UploadServerCertificateRequest::setAliCloudCertificateName(const std::string &aliCloudCertificateName) { + aliCloudCertificateName_ = aliCloudCertificateName; + setParameter(std::string("AliCloudCertificateName"), aliCloudCertificateName); +} + +std::string UploadServerCertificateRequest::getAliCloudCertificateId() const { + return aliCloudCertificateId_; +} + +void UploadServerCertificateRequest::setAliCloudCertificateId(const std::string &aliCloudCertificateId) { + aliCloudCertificateId_ = aliCloudCertificateId; + setParameter(std::string("AliCloudCertificateId"), aliCloudCertificateId); +} + +std::string UploadServerCertificateRequest::getPrivateKey() const { + return privateKey_; +} + +void UploadServerCertificateRequest::setPrivateKey(const std::string &privateKey) { + privateKey_ = privateKey; + setParameter(std::string("PrivateKey"), privateKey); +} + +std::string UploadServerCertificateRequest::getResourceGroupId() const { + return resourceGroupId_; +} + +void UploadServerCertificateRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); +} + +std::string UploadServerCertificateRequest::getRegionId() const { + return regionId_; +} + +void UploadServerCertificateRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); +} + +std::vector UploadServerCertificateRequest::getTag() const { + return tag_; +} + +void UploadServerCertificateRequest::setTag(const std::vector &tag) { + tag_ = tag; + for(int dep1 = 0; dep1 != tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = std::string("Tag") + "." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string UploadServerCertificateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UploadServerCertificateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UploadServerCertificateRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UploadServerCertificateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string UploadServerCertificateRequest::getStandardType() const { + return standardType_; +} + +void UploadServerCertificateRequest::setStandardType(const std::string &standardType) { + standardType_ = standardType; + setParameter(std::string("StandardType"), standardType); +} + +long UploadServerCertificateRequest::getOwnerId() const { + return ownerId_; +} + +void UploadServerCertificateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UploadServerCertificateRequest::getTags() const { + return tags_; +} + +void UploadServerCertificateRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); +} + +std::string UploadServerCertificateRequest::getAliCloudCertificateRegionId() const { + return aliCloudCertificateRegionId_; +} + +void UploadServerCertificateRequest::setAliCloudCertificateRegionId(const std::string &aliCloudCertificateRegionId) { + aliCloudCertificateRegionId_ = aliCloudCertificateRegionId; + setParameter(std::string("AliCloudCertificateRegionId"), aliCloudCertificateRegionId); +} + +std::string UploadServerCertificateRequest::getServerCertificateName() const { + return serverCertificateName_; +} + +void UploadServerCertificateRequest::setServerCertificateName(const std::string &serverCertificateName) { + serverCertificateName_ = serverCertificateName; + setParameter(std::string("ServerCertificateName"), serverCertificateName); +} + diff --git a/slb/src/model/UploadServerCertificateResult.cc b/slb/src/model/UploadServerCertificateResult.cc new file mode 100644 index 000000000..0a3cb298e --- /dev/null +++ b/slb/src/model/UploadServerCertificateResult.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Slb; +using namespace AlibabaCloud::Slb::Model; + +UploadServerCertificateResult::UploadServerCertificateResult() : + ServiceResult() +{} + +UploadServerCertificateResult::UploadServerCertificateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UploadServerCertificateResult::~UploadServerCertificateResult() +{} + +void UploadServerCertificateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSubjectAlternativeNames = value["SubjectAlternativeNames"]["SubjectAlternativeName"]; + for (const auto &item : allSubjectAlternativeNames) + subjectAlternativeNames_.push_back(item.asString()); + if(!value["AliCloudCertificateName"].isNull()) + aliCloudCertificateName_ = value["AliCloudCertificateName"].asString(); + if(!value["CreateTimeStamp"].isNull()) + createTimeStamp_ = std::stol(value["CreateTimeStamp"].asString()); + if(!value["ExpireTime"].isNull()) + expireTime_ = value["ExpireTime"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ServerCertificateId"].isNull()) + serverCertificateId_ = value["ServerCertificateId"].asString(); + if(!value["ExpireTimeStamp"].isNull()) + expireTimeStamp_ = std::stol(value["ExpireTimeStamp"].asString()); + if(!value["RegionId"].isNull()) + regionId_ = value["RegionId"].asString(); + if(!value["Fingerprint"].isNull()) + fingerprint_ = value["Fingerprint"].asString(); + if(!value["ServerCertificateName"].isNull()) + serverCertificateName_ = value["ServerCertificateName"].asString(); + if(!value["CommonName"].isNull()) + commonName_ = value["CommonName"].asString(); + if(!value["ResourceGroupId"].isNull()) + resourceGroupId_ = value["ResourceGroupId"].asString(); + if(!value["RegionIdAlias"].isNull()) + regionIdAlias_ = value["RegionIdAlias"].asString(); + if(!value["AliCloudCertificateId"].isNull()) + aliCloudCertificateId_ = value["AliCloudCertificateId"].asString(); + if(!value["IsAliCloudCertificate"].isNull()) + isAliCloudCertificate_ = std::stoi(value["IsAliCloudCertificate"].asString()); + +} + +std::string UploadServerCertificateResult::getFingerprint()const +{ + return fingerprint_; +} + +long UploadServerCertificateResult::getExpireTimeStamp()const +{ + return expireTimeStamp_; +} + +std::string UploadServerCertificateResult::getResourceGroupId()const +{ + return resourceGroupId_; +} + +std::string UploadServerCertificateResult::getCreateTime()const +{ + return createTime_; +} + +std::vector UploadServerCertificateResult::getSubjectAlternativeNames()const +{ + return subjectAlternativeNames_; +} + +std::string UploadServerCertificateResult::getAliCloudCertificateId()const +{ + return aliCloudCertificateId_; +} + +std::string UploadServerCertificateResult::getRegionIdAlias()const +{ + return regionIdAlias_; +} + +std::string UploadServerCertificateResult::getAliCloudCertificateName()const +{ + return aliCloudCertificateName_; +} + +int UploadServerCertificateResult::getIsAliCloudCertificate()const +{ + return isAliCloudCertificate_; +} + +std::string UploadServerCertificateResult::getServerCertificateId()const +{ + return serverCertificateId_; +} + +std::string UploadServerCertificateResult::getServerCertificateName()const +{ + return serverCertificateName_; +} + +std::string UploadServerCertificateResult::getRegionId()const +{ + return regionId_; +} + +std::string UploadServerCertificateResult::getExpireTime()const +{ + return expireTime_; +} + +long UploadServerCertificateResult::getCreateTimeStamp()const +{ + return createTimeStamp_; +} + +std::string UploadServerCertificateResult::getCommonName()const +{ + return commonName_; +} +