GetElasticNetworkInterfaceResult.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_EFLO_MODEL_GETELASTICNETWORKINTERFACERESULT_H_
  17. #define ALIBABACLOUD_EFLO_MODEL_GETELASTICNETWORKINTERFACERESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/eflo/EfloExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Eflo
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_EFLO_EXPORT GetElasticNetworkInterfaceResult : public ServiceResult
  30. {
  31. public:
  32. struct Content
  33. {
  34. struct PrivateIpAddress
  35. {
  36. std::string status;
  37. std::string elasticNetworkInterfaceId;
  38. std::string gmtCreate;
  39. std::string ipName;
  40. std::string privateIpAddress;
  41. std::string description;
  42. std::string message;
  43. std::string gmtModified;
  44. std::string regionId;
  45. };
  46. struct Ipv6Addresse
  47. {
  48. std::string status;
  49. std::string elasticNetworkInterfaceId;
  50. std::string ipName;
  51. std::string gmtCreate;
  52. std::string description;
  53. std::string message;
  54. std::string gmtModified;
  55. std::string regionId;
  56. std::string ipv6Address;
  57. };
  58. std::string status;
  59. std::string description;
  60. std::vector<PrivateIpAddress> privateIpAddresses;
  61. std::string zoneId;
  62. std::string message;
  63. std::string ip;
  64. std::string vSwitchId;
  65. std::string createTime;
  66. std::string securityGroupId;
  67. std::string mask;
  68. std::string gmtModified;
  69. std::vector<Ipv6Addresse> ipv6Addresses;
  70. std::string mac;
  71. std::string elasticNetworkInterfaceId;
  72. std::string type;
  73. std::string vpcId;
  74. bool enableJumboFrame;
  75. std::string gateway;
  76. std::string nodeId;
  77. std::string regionId;
  78. };
  79. GetElasticNetworkInterfaceResult();
  80. explicit GetElasticNetworkInterfaceResult(const std::string &payload);
  81. ~GetElasticNetworkInterfaceResult();
  82. std::string getMessage()const;
  83. Content getContent()const;
  84. int getCode()const;
  85. protected:
  86. void parse(const std::string &payload);
  87. private:
  88. std::string message_;
  89. Content content_;
  90. int code_;
  91. };
  92. }
  93. }
  94. }
  95. #endif // !ALIBABACLOUD_EFLO_MODEL_GETELASTICNETWORKINTERFACERESULT_H_