SaveBatchUserAccountInfoRequest.cc 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270
  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/emr/model/SaveBatchUserAccountInfoRequest.h>
  17. using AlibabaCloud::Emr::Model::SaveBatchUserAccountInfoRequest;
  18. SaveBatchUserAccountInfoRequest::SaveBatchUserAccountInfoRequest() :
  19. RpcServiceRequest("emr", "2016-04-08", "SaveBatchUserAccountInfo")
  20. {}
  21. SaveBatchUserAccountInfoRequest::~SaveBatchUserAccountInfoRequest()
  22. {}
  23. std::string SaveBatchUserAccountInfoRequest::getApp_ip()const
  24. {
  25. return app_ip_;
  26. }
  27. void SaveBatchUserAccountInfoRequest::setApp_ip(const std::string& app_ip)
  28. {
  29. app_ip_ = app_ip;
  30. setCoreParameter("App_ip", app_ip);
  31. }
  32. long SaveBatchUserAccountInfoRequest::getResourceOwnerId()const
  33. {
  34. return resourceOwnerId_;
  35. }
  36. void SaveBatchUserAccountInfoRequest::setResourceOwnerId(long resourceOwnerId)
  37. {
  38. resourceOwnerId_ = resourceOwnerId;
  39. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  40. }
  41. std::string SaveBatchUserAccountInfoRequest::getResourceId()const
  42. {
  43. return resourceId_;
  44. }
  45. void SaveBatchUserAccountInfoRequest::setResourceId(const std::string& resourceId)
  46. {
  47. resourceId_ = resourceId;
  48. setCoreParameter("ResourceId", resourceId);
  49. }
  50. std::vector<std::string> SaveBatchUserAccountInfoRequest::getAliyunUserIdList()const
  51. {
  52. return aliyunUserIdList_;
  53. }
  54. void SaveBatchUserAccountInfoRequest::setAliyunUserIdList(const std::vector<std::string>& aliyunUserIdList)
  55. {
  56. aliyunUserIdList_ = aliyunUserIdList;
  57. for(int i = 0; i!= aliyunUserIdList.size(); i++)
  58. setCoreParameter("AliyunUserIdList."+ std::to_string(i), aliyunUserIdList.at(i));
  59. }
  60. long SaveBatchUserAccountInfoRequest::getCallerParentId()const
  61. {
  62. return callerParentId_;
  63. }
  64. void SaveBatchUserAccountInfoRequest::setCallerParentId(long callerParentId)
  65. {
  66. callerParentId_ = callerParentId;
  67. setCoreParameter("CallerParentId", std::to_string(callerParentId));
  68. }
  69. std::string SaveBatchUserAccountInfoRequest::getAccountType()const
  70. {
  71. return accountType_;
  72. }
  73. void SaveBatchUserAccountInfoRequest::setAccountType(const std::string& accountType)
  74. {
  75. accountType_ = accountType;
  76. setCoreParameter("AccountType", accountType);
  77. }
  78. bool SaveBatchUserAccountInfoRequest::getProxy_original_security_transport()const
  79. {
  80. return proxy_original_security_transport_;
  81. }
  82. void SaveBatchUserAccountInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
  83. {
  84. proxy_original_security_transport_ = proxy_original_security_transport;
  85. setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
  86. }
  87. std::string SaveBatchUserAccountInfoRequest::getCallerBid()const
  88. {
  89. return callerBid_;
  90. }
  91. void SaveBatchUserAccountInfoRequest::setCallerBid(const std::string& callerBid)
  92. {
  93. callerBid_ = callerBid;
  94. setCoreParameter("CallerBid", callerBid);
  95. }
  96. std::string SaveBatchUserAccountInfoRequest::getProxy_original_source_ip()const
  97. {
  98. return proxy_original_source_ip_;
  99. }
  100. void SaveBatchUserAccountInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
  101. {
  102. proxy_original_source_ip_ = proxy_original_source_ip;
  103. setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
  104. }
  105. std::string SaveBatchUserAccountInfoRequest::getGroupName()const
  106. {
  107. return groupName_;
  108. }
  109. void SaveBatchUserAccountInfoRequest::setGroupName(const std::string& groupName)
  110. {
  111. groupName_ = groupName;
  112. setCoreParameter("GroupName", groupName);
  113. }
  114. std::string SaveBatchUserAccountInfoRequest::getResourceType()const
  115. {
  116. return resourceType_;
  117. }
  118. void SaveBatchUserAccountInfoRequest::setResourceType(const std::string& resourceType)
  119. {
  120. resourceType_ = resourceType;
  121. setCoreParameter("ResourceType", resourceType);
  122. }
  123. bool SaveBatchUserAccountInfoRequest::getAk_mfa_present()const
  124. {
  125. return ak_mfa_present_;
  126. }
  127. void SaveBatchUserAccountInfoRequest::setAk_mfa_present(bool ak_mfa_present)
  128. {
  129. ak_mfa_present_ = ak_mfa_present;
  130. setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
  131. }
  132. bool SaveBatchUserAccountInfoRequest::getProxy_trust_transport_info()const
  133. {
  134. return proxy_trust_transport_info_;
  135. }
  136. void SaveBatchUserAccountInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
  137. {
  138. proxy_trust_transport_info_ = proxy_trust_transport_info;
  139. setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
  140. }
  141. std::string SaveBatchUserAccountInfoRequest::getCallerType()const
  142. {
  143. return callerType_;
  144. }
  145. void SaveBatchUserAccountInfoRequest::setCallerType(const std::string& callerType)
  146. {
  147. callerType_ = callerType;
  148. setCoreParameter("CallerType", callerType);
  149. }
  150. std::string SaveBatchUserAccountInfoRequest::getAccessKeyId()const
  151. {
  152. return accessKeyId_;
  153. }
  154. void SaveBatchUserAccountInfoRequest::setAccessKeyId(const std::string& accessKeyId)
  155. {
  156. accessKeyId_ = accessKeyId;
  157. setCoreParameter("AccessKeyId", accessKeyId);
  158. }
  159. std::string SaveBatchUserAccountInfoRequest::getAuthType()const
  160. {
  161. return authType_;
  162. }
  163. void SaveBatchUserAccountInfoRequest::setAuthType(const std::string& authType)
  164. {
  165. authType_ = authType;
  166. setCoreParameter("AuthType", authType);
  167. }
  168. bool SaveBatchUserAccountInfoRequest::getSecurity_transport()const
  169. {
  170. return security_transport_;
  171. }
  172. void SaveBatchUserAccountInfoRequest::setSecurity_transport(bool security_transport)
  173. {
  174. security_transport_ = security_transport;
  175. setCoreParameter("Security_transport", security_transport ? "true" : "false");
  176. }
  177. std::string SaveBatchUserAccountInfoRequest::getAccountPassword()const
  178. {
  179. return accountPassword_;
  180. }
  181. void SaveBatchUserAccountInfoRequest::setAccountPassword(const std::string& accountPassword)
  182. {
  183. accountPassword_ = accountPassword;
  184. setCoreParameter("AccountPassword", accountPassword);
  185. }
  186. std::string SaveBatchUserAccountInfoRequest::getSecurityToken()const
  187. {
  188. return securityToken_;
  189. }
  190. void SaveBatchUserAccountInfoRequest::setSecurityToken(const std::string& securityToken)
  191. {
  192. securityToken_ = securityToken;
  193. setCoreParameter("SecurityToken", securityToken);
  194. }
  195. std::string SaveBatchUserAccountInfoRequest::getRegionId()const
  196. {
  197. return regionId_;
  198. }
  199. void SaveBatchUserAccountInfoRequest::setRegionId(const std::string& regionId)
  200. {
  201. regionId_ = regionId;
  202. setCoreParameter("RegionId", regionId);
  203. }
  204. std::string SaveBatchUserAccountInfoRequest::getRequestId()const
  205. {
  206. return requestId_;
  207. }
  208. void SaveBatchUserAccountInfoRequest::setRequestId(const std::string& requestId)
  209. {
  210. requestId_ = requestId;
  211. setCoreParameter("RequestId", requestId);
  212. }
  213. long SaveBatchUserAccountInfoRequest::getCallerUid()const
  214. {
  215. return callerUid_;
  216. }
  217. void SaveBatchUserAccountInfoRequest::setCallerUid(long callerUid)
  218. {
  219. callerUid_ = callerUid;
  220. setCoreParameter("CallerUid", std::to_string(callerUid));
  221. }