ImportImageRequest.h 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  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_IMPORTIMAGEREQUEST_H_
  17. #define ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_
  18. #include <string>
  19. #include <vector>
  20. #include <alibabacloud/core/RpcServiceRequest.h>
  21. #include <alibabacloud/ecs/EcsExport.h>
  22. namespace AlibabaCloud
  23. {
  24. namespace Ecs
  25. {
  26. namespace Model
  27. {
  28. class ALIBABACLOUD_ECS_EXPORT ImportImageRequest : public RpcServiceRequest
  29. {
  30. public:
  31. struct DiskDeviceMapping
  32. {
  33. std::string oSSBucket;
  34. int diskImSize;
  35. std::string format;
  36. std::string device;
  37. std::string oSSObject;
  38. int diskImageSize;
  39. };
  40. struct Tag
  41. {
  42. std::string value;
  43. std::string key;
  44. };
  45. public:
  46. ImportImageRequest();
  47. ~ImportImageRequest();
  48. std::vector<DiskDeviceMapping> getDiskDeviceMapping()const;
  49. void setDiskDeviceMapping(const std::vector<DiskDeviceMapping>& diskDeviceMapping);
  50. long getResourceOwnerId()const;
  51. void setResourceOwnerId(long resourceOwnerId);
  52. std::string getDescription()const;
  53. void setDescription(const std::string& description);
  54. std::string getPlatform()const;
  55. void setPlatform(const std::string& platform);
  56. std::string getResourceGroupId()const;
  57. void setResourceGroupId(const std::string& resourceGroupId);
  58. std::string getBootMode()const;
  59. void setBootMode(const std::string& bootMode);
  60. std::string getRegionId()const;
  61. void setRegionId(const std::string& regionId);
  62. std::string getImageName()const;
  63. void setImageName(const std::string& imageName);
  64. std::vector<Tag> getTag()const;
  65. void setTag(const std::vector<Tag>& tag);
  66. std::string getArchitecture()const;
  67. void setArchitecture(const std::string& architecture);
  68. std::string getLicenseType()const;
  69. void setLicenseType(const std::string& licenseType);
  70. std::string getResourceOwnerAccount()const;
  71. void setResourceOwnerAccount(const std::string& resourceOwnerAccount);
  72. std::string getRoleName()const;
  73. void setRoleName(const std::string& roleName);
  74. std::string getOSType()const;
  75. void setOSType(const std::string& oSType);
  76. long getOwnerId()const;
  77. void setOwnerId(long ownerId);
  78. private:
  79. std::vector<DiskDeviceMapping> diskDeviceMapping_;
  80. long resourceOwnerId_;
  81. std::string description_;
  82. std::string platform_;
  83. std::string resourceGroupId_;
  84. std::string bootMode_;
  85. std::string regionId_;
  86. std::string imageName_;
  87. std::vector<Tag> tag_;
  88. std::string architecture_;
  89. std::string licenseType_;
  90. std::string resourceOwnerAccount_;
  91. std::string roleName_;
  92. std::string oSType_;
  93. long ownerId_;
  94. };
  95. }
  96. }
  97. }
  98. #endif // !ALIBABACLOUD_ECS_MODEL_IMPORTIMAGEREQUEST_H_