GetLoadBalancerAttributeResult.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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_GWLB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_
  17. #define ALIBABACLOUD_GWLB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/gwlb/GwlbExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Gwlb
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_GWLB_EXPORT GetLoadBalancerAttributeResult : public ServiceResult
  30. {
  31. public:
  32. struct TagModel
  33. {
  34. std::string value;
  35. std::string key;
  36. };
  37. struct ZoneEniModel
  38. {
  39. struct EniModels
  40. {
  41. std::string eniId;
  42. std::string privateIpv4Address;
  43. };
  44. std::string zoneId;
  45. std::string vSwitchId;
  46. std::vector<ZoneEniModel::EniModels> loadBalancerAddresses;
  47. };
  48. GetLoadBalancerAttributeResult();
  49. explicit GetLoadBalancerAttributeResult(const std::string &payload);
  50. ~GetLoadBalancerAttributeResult();
  51. std::string getLoadBalancerName()const;
  52. std::string getAddressIpVersion()const;
  53. std::string getResourceGroupId()const;
  54. std::string getVpcId()const;
  55. std::string getCreateTime()const;
  56. std::string getLoadBalancerId()const;
  57. std::vector<ZoneEniModel> getZoneMappings()const;
  58. std::string getLoadBalancerBusinessStatus()const;
  59. std::string getLoadBalancerStatus()const;
  60. std::vector<TagModel> getTags()const;
  61. bool getCrossZoneEnabled()const;
  62. protected:
  63. void parse(const std::string &payload);
  64. private:
  65. std::string loadBalancerName_;
  66. std::string addressIpVersion_;
  67. std::string resourceGroupId_;
  68. std::string vpcId_;
  69. std::string createTime_;
  70. std::string loadBalancerId_;
  71. std::vector<ZoneEniModel> zoneMappings_;
  72. std::string loadBalancerBusinessStatus_;
  73. std::string loadBalancerStatus_;
  74. std::vector<TagModel> tags_;
  75. bool crossZoneEnabled_;
  76. };
  77. }
  78. }
  79. }
  80. #endif // !ALIBABACLOUD_GWLB_MODEL_GETLOADBALANCERATTRIBUTERESULT_H_