DescribeNetworkInterfacesResult.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  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_ECS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_
  17. #define ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/ecs/EcsExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Ecs
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_ECS_EXPORT DescribeNetworkInterfacesResult : public ServiceResult
  30. {
  31. public:
  32. struct NetworkInterfaceSet
  33. {
  34. struct AssociatedPublicIp
  35. {
  36. std::string publicIpAddress;
  37. std::string allocationId;
  38. };
  39. struct Attachment
  40. {
  41. std::string instanceId;
  42. int deviceIndex;
  43. std::string trunkNetworkInterfaceId;
  44. };
  45. struct PrivateIpSet
  46. {
  47. struct AssociatedPublicIp1
  48. {
  49. std::string publicIpAddress;
  50. std::string allocationId;
  51. };
  52. AssociatedPublicIp1 associatedPublicIp1;
  53. std::string privateIpAddress;
  54. bool primary;
  55. };
  56. struct Ipv6Set
  57. {
  58. std::string ipv6Address;
  59. };
  60. struct Tag
  61. {
  62. std::string tagKey;
  63. std::string tagValue;
  64. };
  65. std::string description;
  66. std::string privateIpAddress;
  67. bool serviceManaged;
  68. std::string resourceGroupId;
  69. Attachment attachment;
  70. std::string networkInterfaceId;
  71. std::vector<NetworkInterfaceSet::Ipv6Set> ipv6Sets;
  72. std::string ownerId;
  73. AssociatedPublicIp associatedPublicIp;
  74. std::vector<NetworkInterfaceSet::Tag> tags;
  75. std::string status;
  76. std::string networkInterfaceTrafficMode;
  77. std::string zoneId;
  78. std::string instanceId;
  79. std::string vSwitchId;
  80. std::string networkInterfaceName;
  81. std::string macAddress;
  82. std::vector<std::string> securityGroupIds;
  83. long serviceID;
  84. std::string type;
  85. int queuePairNumber;
  86. int queueNumber;
  87. std::string vpcId;
  88. std::string creationTime;
  89. std::vector<NetworkInterfaceSet::PrivateIpSet> privateIpSets;
  90. };
  91. DescribeNetworkInterfacesResult();
  92. explicit DescribeNetworkInterfacesResult(const std::string &payload);
  93. ~DescribeNetworkInterfacesResult();
  94. int getTotalCount()const;
  95. std::string getNextToken()const;
  96. int getPageSize()const;
  97. int getPageNumber()const;
  98. std::vector<NetworkInterfaceSet> getNetworkInterfaceSets()const;
  99. protected:
  100. void parse(const std::string &payload);
  101. private:
  102. int totalCount_;
  103. std::string nextToken_;
  104. int pageSize_;
  105. int pageNumber_;
  106. std::vector<NetworkInterfaceSet> networkInterfaceSets_;
  107. };
  108. }
  109. }
  110. }
  111. #endif // !ALIBABACLOUD_ECS_MODEL_DESCRIBENETWORKINTERFACESRESULT_H_