CreateKeyPairRequest.cc 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  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. #include <alibabacloud/ecs/model/CreateKeyPairRequest.h>
  17. using AlibabaCloud::Ecs::Model::CreateKeyPairRequest;
  18. CreateKeyPairRequest::CreateKeyPairRequest() :
  19. RpcServiceRequest("ecs", "2014-05-26", "CreateKeyPair")
  20. {}
  21. CreateKeyPairRequest::~CreateKeyPairRequest()
  22. {}
  23. std::string CreateKeyPairRequest::getTag4Value()const
  24. {
  25. return tag4Value_;
  26. }
  27. void CreateKeyPairRequest::setTag4Value(const std::string& tag4Value)
  28. {
  29. tag4Value_ = tag4Value;
  30. setParameter("Tag4Value", tag4Value);
  31. }
  32. long CreateKeyPairRequest::getResourceOwnerId()const
  33. {
  34. return resourceOwnerId_;
  35. }
  36. void CreateKeyPairRequest::setResourceOwnerId(long resourceOwnerId)
  37. {
  38. resourceOwnerId_ = resourceOwnerId;
  39. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  40. }
  41. std::string CreateKeyPairRequest::getTag2Key()const
  42. {
  43. return tag2Key_;
  44. }
  45. void CreateKeyPairRequest::setTag2Key(const std::string& tag2Key)
  46. {
  47. tag2Key_ = tag2Key;
  48. setParameter("Tag2Key", tag2Key);
  49. }
  50. std::string CreateKeyPairRequest::getTag5Key()const
  51. {
  52. return tag5Key_;
  53. }
  54. void CreateKeyPairRequest::setTag5Key(const std::string& tag5Key)
  55. {
  56. tag5Key_ = tag5Key;
  57. setParameter("Tag5Key", tag5Key);
  58. }
  59. std::string CreateKeyPairRequest::getResourceOwnerAccount()const
  60. {
  61. return resourceOwnerAccount_;
  62. }
  63. void CreateKeyPairRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  64. {
  65. resourceOwnerAccount_ = resourceOwnerAccount;
  66. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  67. }
  68. std::string CreateKeyPairRequest::getTag3Key()const
  69. {
  70. return tag3Key_;
  71. }
  72. void CreateKeyPairRequest::setTag3Key(const std::string& tag3Key)
  73. {
  74. tag3Key_ = tag3Key;
  75. setParameter("Tag3Key", tag3Key);
  76. }
  77. std::string CreateKeyPairRequest::getKeyPairName()const
  78. {
  79. return keyPairName_;
  80. }
  81. void CreateKeyPairRequest::setKeyPairName(const std::string& keyPairName)
  82. {
  83. keyPairName_ = keyPairName;
  84. setParameter("KeyPairName", keyPairName);
  85. }
  86. long CreateKeyPairRequest::getOwnerId()const
  87. {
  88. return ownerId_;
  89. }
  90. void CreateKeyPairRequest::setOwnerId(long ownerId)
  91. {
  92. ownerId_ = ownerId;
  93. setParameter("OwnerId", std::to_string(ownerId));
  94. }
  95. std::string CreateKeyPairRequest::getTag5Value()const
  96. {
  97. return tag5Value_;
  98. }
  99. void CreateKeyPairRequest::setTag5Value(const std::string& tag5Value)
  100. {
  101. tag5Value_ = tag5Value;
  102. setParameter("Tag5Value", tag5Value);
  103. }
  104. std::string CreateKeyPairRequest::getTag1Key()const
  105. {
  106. return tag1Key_;
  107. }
  108. void CreateKeyPairRequest::setTag1Key(const std::string& tag1Key)
  109. {
  110. tag1Key_ = tag1Key;
  111. setParameter("Tag1Key", tag1Key);
  112. }
  113. std::string CreateKeyPairRequest::getTag1Value()const
  114. {
  115. return tag1Value_;
  116. }
  117. void CreateKeyPairRequest::setTag1Value(const std::string& tag1Value)
  118. {
  119. tag1Value_ = tag1Value;
  120. setParameter("Tag1Value", tag1Value);
  121. }
  122. std::string CreateKeyPairRequest::getResourceGroupId()const
  123. {
  124. return resourceGroupId_;
  125. }
  126. void CreateKeyPairRequest::setResourceGroupId(const std::string& resourceGroupId)
  127. {
  128. resourceGroupId_ = resourceGroupId;
  129. setParameter("ResourceGroupId", resourceGroupId);
  130. }
  131. std::string CreateKeyPairRequest::getRegionId()const
  132. {
  133. return regionId_;
  134. }
  135. void CreateKeyPairRequest::setRegionId(const std::string& regionId)
  136. {
  137. regionId_ = regionId;
  138. setParameter("RegionId", regionId);
  139. }
  140. std::string CreateKeyPairRequest::getTag2Value()const
  141. {
  142. return tag2Value_;
  143. }
  144. void CreateKeyPairRequest::setTag2Value(const std::string& tag2Value)
  145. {
  146. tag2Value_ = tag2Value;
  147. setParameter("Tag2Value", tag2Value);
  148. }
  149. std::string CreateKeyPairRequest::getTag4Key()const
  150. {
  151. return tag4Key_;
  152. }
  153. void CreateKeyPairRequest::setTag4Key(const std::string& tag4Key)
  154. {
  155. tag4Key_ = tag4Key;
  156. setParameter("Tag4Key", tag4Key);
  157. }
  158. std::string CreateKeyPairRequest::getTag3Value()const
  159. {
  160. return tag3Value_;
  161. }
  162. void CreateKeyPairRequest::setTag3Value(const std::string& tag3Value)
  163. {
  164. tag3Value_ = tag3Value;
  165. setParameter("Tag3Value", tag3Value);
  166. }