GetLoadBalancerAttributeResult.h 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #ifndef ALIBABACLOUD_ALB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_
  17. #define ALIBABACLOUD_ALB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/alb/AlbExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Alb
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_ALB_EXPORT GetLoadBalancerAttributeResult : public ServiceResult
  30. {
  31. public:
  32. struct AccessLogConfig
  33. {
  34. std::string logStore;
  35. std::string logProject;
  36. };
  37. struct DeletionProtectionConfig
  38. {
  39. bool enabled;
  40. std::string enabledTime;
  41. };
  42. struct LoadBalancerBillingConfig
  43. {
  44. int internetBandwidth;
  45. std::string payType;
  46. std::string internetChargeType;
  47. };
  48. struct ModificationProtectionConfig
  49. {
  50. std::string status;
  51. std::string reason;
  52. };
  53. struct LoadBalancerOperationLock
  54. {
  55. std::string lockReason;
  56. std::string lockType;
  57. };
  58. struct Tag
  59. {
  60. std::string value;
  61. std::string key;
  62. };
  63. struct ZoneMapping
  64. {
  65. struct LoadBalancerAddress
  66. {
  67. std::string intranetAddress;
  68. std::string intranetAddressHcStatus;
  69. std::string address;
  70. std::string allocationId;
  71. std::string ipv6AddressHcStatus;
  72. std::string eipType;
  73. std::string ipv6Address;
  74. };
  75. std::string status;
  76. std::string zoneId;
  77. std::string vSwitchId;
  78. std::string allocationId;
  79. std::string eipType;
  80. std::vector<ZoneMapping::LoadBalancerAddress> loadBalancerAddresses;
  81. };
  82. GetLoadBalancerAttributeResult();
  83. explicit GetLoadBalancerAttributeResult(const std::string &payload);
  84. ~GetLoadBalancerAttributeResult();
  85. bool getServiceManagedEnabled()const;
  86. std::string getAddressIpVersion()const;
  87. std::string getLoadBalancerVersion()const;
  88. std::string getResourceGroupId()const;
  89. std::vector<std::string> getFeatureLabels()const;
  90. std::string getLoadBalancerId()const;
  91. std::vector<ZoneMapping> getZoneMappings()const;
  92. std::string getDNSName()const;
  93. std::string getIpv6AddressType()const;
  94. int getBandwidthCapacity()const;
  95. DeletionProtectionConfig getDeletionProtectionConfig()const;
  96. std::string getServiceManagedMode()const;
  97. std::string getSysSecurityGroupId()const;
  98. std::string getBandwidthPackageId()const;
  99. std::vector<Tag> getTags()const;
  100. bool getBackToOriginRouteEnabled()const;
  101. std::string getLoadBalancerEdition()const;
  102. LoadBalancerBillingConfig getLoadBalancerBillingConfig()const;
  103. std::string getCreateTime()const;
  104. ModificationProtectionConfig getModificationProtectionConfig()const;
  105. std::vector<std::string> getSecurityGroupIds()const;
  106. std::string getLoadBalancerName()const;
  107. AccessLogConfig getAccessLogConfig()const;
  108. bool getConfigManagedEnabled()const;
  109. std::string getLoadBalancerBussinessStatus()const;
  110. std::string getVpcId()const;
  111. std::string getRegionId()const;
  112. std::string getAddressAllocatedMode()const;
  113. std::string getAddressType()const;
  114. std::string getLoadBalancerStatus()const;
  115. std::vector<LoadBalancerOperationLock> getLoadBalancerOperationLocks()const;
  116. protected:
  117. void parse(const std::string &payload);
  118. private:
  119. bool serviceManagedEnabled_;
  120. std::string addressIpVersion_;
  121. std::string loadBalancerVersion_;
  122. std::string resourceGroupId_;
  123. std::vector<std::string> featureLabels_;
  124. std::string loadBalancerId_;
  125. std::vector<ZoneMapping> zoneMappings_;
  126. std::string dNSName_;
  127. std::string ipv6AddressType_;
  128. int bandwidthCapacity_;
  129. DeletionProtectionConfig deletionProtectionConfig_;
  130. std::string serviceManagedMode_;
  131. std::string sysSecurityGroupId_;
  132. std::string bandwidthPackageId_;
  133. std::vector<Tag> tags_;
  134. bool backToOriginRouteEnabled_;
  135. std::string loadBalancerEdition_;
  136. LoadBalancerBillingConfig loadBalancerBillingConfig_;
  137. std::string createTime_;
  138. ModificationProtectionConfig modificationProtectionConfig_;
  139. std::vector<std::string> securityGroupIds_;
  140. std::string loadBalancerName_;
  141. AccessLogConfig accessLogConfig_;
  142. bool configManagedEnabled_;
  143. std::string loadBalancerBussinessStatus_;
  144. std::string vpcId_;
  145. std::string regionId_;
  146. std::string addressAllocatedMode_;
  147. std::string addressType_;
  148. std::string loadBalancerStatus_;
  149. std::vector<LoadBalancerOperationLock> loadBalancerOperationLocks_;
  150. };
  151. }
  152. }
  153. }
  154. #endif // !ALIBABACLOUD_ALB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_