InvokeCommandRequest.cc 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325
  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/InvokeCommandRequest.h>
  17. using AlibabaCloud::Ecs::Model::InvokeCommandRequest;
  18. InvokeCommandRequest::InvokeCommandRequest() :
  19. RpcServiceRequest("ecs", "2014-05-26", "InvokeCommand")
  20. {}
  21. InvokeCommandRequest::~InvokeCommandRequest()
  22. {}
  23. long InvokeCommandRequest::getResourceOwnerId()const
  24. {
  25. return resourceOwnerId_;
  26. }
  27. void InvokeCommandRequest::setResourceOwnerId(long resourceOwnerId)
  28. {
  29. resourceOwnerId_ = resourceOwnerId;
  30. setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  31. }
  32. long InvokeCommandRequest::getCallerParentId()const
  33. {
  34. return callerParentId_;
  35. }
  36. void InvokeCommandRequest::setCallerParentId(long callerParentId)
  37. {
  38. callerParentId_ = callerParentId;
  39. setParameter("CallerParentId", std::to_string(callerParentId));
  40. }
  41. bool InvokeCommandRequest::getProxy_original_security_transport()const
  42. {
  43. return proxy_original_security_transport_;
  44. }
  45. void InvokeCommandRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
  46. {
  47. proxy_original_security_transport_ = proxy_original_security_transport;
  48. setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
  49. }
  50. std::string InvokeCommandRequest::getProxy_original_source_ip()const
  51. {
  52. return proxy_original_source_ip_;
  53. }
  54. void InvokeCommandRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
  55. {
  56. proxy_original_source_ip_ = proxy_original_source_ip;
  57. setParameter("Proxy_original_source_ip", proxy_original_source_ip);
  58. }
  59. std::string InvokeCommandRequest::getCommandId()const
  60. {
  61. return commandId_;
  62. }
  63. void InvokeCommandRequest::setCommandId(const std::string& commandId)
  64. {
  65. commandId_ = commandId;
  66. setParameter("CommandId", commandId);
  67. }
  68. std::string InvokeCommandRequest::getOwnerIdLoginEmail()const
  69. {
  70. return ownerIdLoginEmail_;
  71. }
  72. void InvokeCommandRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
  73. {
  74. ownerIdLoginEmail_ = ownerIdLoginEmail;
  75. setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
  76. }
  77. std::string InvokeCommandRequest::getCallerType()const
  78. {
  79. return callerType_;
  80. }
  81. void InvokeCommandRequest::setCallerType(const std::string& callerType)
  82. {
  83. callerType_ = callerType;
  84. setParameter("CallerType", callerType);
  85. }
  86. std::string InvokeCommandRequest::getAccessKeyId()const
  87. {
  88. return accessKeyId_;
  89. }
  90. void InvokeCommandRequest::setAccessKeyId(const std::string& accessKeyId)
  91. {
  92. accessKeyId_ = accessKeyId;
  93. setParameter("AccessKeyId", accessKeyId);
  94. }
  95. std::string InvokeCommandRequest::getFrequency()const
  96. {
  97. return frequency_;
  98. }
  99. void InvokeCommandRequest::setFrequency(const std::string& frequency)
  100. {
  101. frequency_ = frequency;
  102. setParameter("Frequency", frequency);
  103. }
  104. std::string InvokeCommandRequest::getSecurityToken()const
  105. {
  106. return securityToken_;
  107. }
  108. void InvokeCommandRequest::setSecurityToken(const std::string& securityToken)
  109. {
  110. securityToken_ = securityToken;
  111. setParameter("SecurityToken", securityToken);
  112. }
  113. std::string InvokeCommandRequest::getRegionId()const
  114. {
  115. return regionId_;
  116. }
  117. void InvokeCommandRequest::setRegionId(const std::string& regionId)
  118. {
  119. regionId_ = regionId;
  120. setParameter("RegionId", regionId);
  121. }
  122. bool InvokeCommandRequest::getEnable()const
  123. {
  124. return enable_;
  125. }
  126. void InvokeCommandRequest::setEnable(bool enable)
  127. {
  128. enable_ = enable;
  129. setParameter("Enable", enable ? "true" : "false");
  130. }
  131. std::string InvokeCommandRequest::getRequestContent()const
  132. {
  133. return requestContent_;
  134. }
  135. void InvokeCommandRequest::setRequestContent(const std::string& requestContent)
  136. {
  137. requestContent_ = requestContent;
  138. setParameter("RequestContent", requestContent);
  139. }
  140. std::string InvokeCommandRequest::getCallerBidEmail()const
  141. {
  142. return callerBidEmail_;
  143. }
  144. void InvokeCommandRequest::setCallerBidEmail(const std::string& callerBidEmail)
  145. {
  146. callerBidEmail_ = callerBidEmail;
  147. setParameter("CallerBidEmail", callerBidEmail);
  148. }
  149. std::string InvokeCommandRequest::getCallerUidEmail()const
  150. {
  151. return callerUidEmail_;
  152. }
  153. void InvokeCommandRequest::setCallerUidEmail(const std::string& callerUidEmail)
  154. {
  155. callerUidEmail_ = callerUidEmail;
  156. setParameter("CallerUidEmail", callerUidEmail);
  157. }
  158. long InvokeCommandRequest::getCallerUid()const
  159. {
  160. return callerUid_;
  161. }
  162. void InvokeCommandRequest::setCallerUid(long callerUid)
  163. {
  164. callerUid_ = callerUid;
  165. setParameter("CallerUid", std::to_string(callerUid));
  166. }
  167. std::string InvokeCommandRequest::getApp_ip()const
  168. {
  169. return app_ip_;
  170. }
  171. void InvokeCommandRequest::setApp_ip(const std::string& app_ip)
  172. {
  173. app_ip_ = app_ip;
  174. setParameter("App_ip", app_ip);
  175. }
  176. bool InvokeCommandRequest::getTimed()const
  177. {
  178. return timed_;
  179. }
  180. void InvokeCommandRequest::setTimed(bool timed)
  181. {
  182. timed_ = timed;
  183. setParameter("Timed", timed ? "true" : "false");
  184. }
  185. std::string InvokeCommandRequest::getResourceOwnerAccount()const
  186. {
  187. return resourceOwnerAccount_;
  188. }
  189. void InvokeCommandRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  190. {
  191. resourceOwnerAccount_ = resourceOwnerAccount;
  192. setParameter("ResourceOwnerAccount", resourceOwnerAccount);
  193. }
  194. std::string InvokeCommandRequest::getOwnerAccount()const
  195. {
  196. return ownerAccount_;
  197. }
  198. void InvokeCommandRequest::setOwnerAccount(const std::string& ownerAccount)
  199. {
  200. ownerAccount_ = ownerAccount;
  201. setParameter("OwnerAccount", ownerAccount);
  202. }
  203. std::string InvokeCommandRequest::getCallerBid()const
  204. {
  205. return callerBid_;
  206. }
  207. void InvokeCommandRequest::setCallerBid(const std::string& callerBid)
  208. {
  209. callerBid_ = callerBid;
  210. setParameter("CallerBid", callerBid);
  211. }
  212. long InvokeCommandRequest::getOwnerId()const
  213. {
  214. return ownerId_;
  215. }
  216. void InvokeCommandRequest::setOwnerId(long ownerId)
  217. {
  218. ownerId_ = ownerId;
  219. setParameter("OwnerId", std::to_string(ownerId));
  220. }
  221. bool InvokeCommandRequest::getProxy_trust_transport_info()const
  222. {
  223. return proxy_trust_transport_info_;
  224. }
  225. void InvokeCommandRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
  226. {
  227. proxy_trust_transport_info_ = proxy_trust_transport_info;
  228. setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
  229. }
  230. bool InvokeCommandRequest::getAk_mfa_present()const
  231. {
  232. return ak_mfa_present_;
  233. }
  234. void InvokeCommandRequest::setAk_mfa_present(bool ak_mfa_present)
  235. {
  236. ak_mfa_present_ = ak_mfa_present;
  237. setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
  238. }
  239. bool InvokeCommandRequest::getSecurity_transport()const
  240. {
  241. return security_transport_;
  242. }
  243. void InvokeCommandRequest::setSecurity_transport(bool security_transport)
  244. {
  245. security_transport_ = security_transport;
  246. setParameter("Security_transport", security_transport ? "true" : "false");
  247. }
  248. std::vector<std::string> InvokeCommandRequest::getInstanceId()const
  249. {
  250. return instanceId_;
  251. }
  252. void InvokeCommandRequest::setInstanceId(const std::vector<std::string>& instanceId)
  253. {
  254. instanceId_ = instanceId;
  255. for(int i = 0; i!= instanceId.size(); i++)
  256. setParameter("InstanceId."+ std::to_string(i), instanceId.at(i));
  257. }
  258. std::string InvokeCommandRequest::getRequestId()const
  259. {
  260. return requestId_;
  261. }
  262. void InvokeCommandRequest::setRequestId(const std::string& requestId)
  263. {
  264. requestId_ = requestId;
  265. setParameter("RequestId", requestId);
  266. }