CreateBackupPlanRequest.cc 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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/CreateBackupPlanRequest.h>
  17. using AlibabaCloud::Emr::Model::CreateBackupPlanRequest;
  18. CreateBackupPlanRequest::CreateBackupPlanRequest() :
  19. RpcServiceRequest("emr", "2016-04-08", "CreateBackupPlan")
  20. {}
  21. CreateBackupPlanRequest::~CreateBackupPlanRequest()
  22. {}
  23. std::string CreateBackupPlanRequest::getApp_ip()const
  24. {
  25. return app_ip_;
  26. }
  27. void CreateBackupPlanRequest::setApp_ip(const std::string& app_ip)
  28. {
  29. app_ip_ = app_ip;
  30. setCoreParameter("App_ip", app_ip);
  31. }
  32. long CreateBackupPlanRequest::getResourceOwnerId()const
  33. {
  34. return resourceOwnerId_;
  35. }
  36. void CreateBackupPlanRequest::setResourceOwnerId(long resourceOwnerId)
  37. {
  38. resourceOwnerId_ = resourceOwnerId;
  39. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  40. }
  41. long CreateBackupPlanRequest::getCallerParentId()const
  42. {
  43. return callerParentId_;
  44. }
  45. void CreateBackupPlanRequest::setCallerParentId(long callerParentId)
  46. {
  47. callerParentId_ = callerParentId;
  48. setCoreParameter("CallerParentId", std::to_string(callerParentId));
  49. }
  50. bool CreateBackupPlanRequest::getProxy_original_security_transport()const
  51. {
  52. return proxy_original_security_transport_;
  53. }
  54. void CreateBackupPlanRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
  55. {
  56. proxy_original_security_transport_ = proxy_original_security_transport;
  57. setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
  58. }
  59. std::string CreateBackupPlanRequest::getDescription()const
  60. {
  61. return description_;
  62. }
  63. void CreateBackupPlanRequest::setDescription(const std::string& description)
  64. {
  65. description_ = description;
  66. setCoreParameter("Description", description);
  67. }
  68. std::string CreateBackupPlanRequest::getCallerBid()const
  69. {
  70. return callerBid_;
  71. }
  72. void CreateBackupPlanRequest::setCallerBid(const std::string& callerBid)
  73. {
  74. callerBid_ = callerBid;
  75. setCoreParameter("CallerBid", callerBid);
  76. }
  77. std::string CreateBackupPlanRequest::getClusterId()const
  78. {
  79. return clusterId_;
  80. }
  81. void CreateBackupPlanRequest::setClusterId(const std::string& clusterId)
  82. {
  83. clusterId_ = clusterId;
  84. setCoreParameter("ClusterId", clusterId);
  85. }
  86. std::string CreateBackupPlanRequest::getProxy_original_source_ip()const
  87. {
  88. return proxy_original_source_ip_;
  89. }
  90. void CreateBackupPlanRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
  91. {
  92. proxy_original_source_ip_ = proxy_original_source_ip;
  93. setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
  94. }
  95. bool CreateBackupPlanRequest::getAk_mfa_present()const
  96. {
  97. return ak_mfa_present_;
  98. }
  99. void CreateBackupPlanRequest::setAk_mfa_present(bool ak_mfa_present)
  100. {
  101. ak_mfa_present_ = ak_mfa_present;
  102. setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
  103. }
  104. bool CreateBackupPlanRequest::getProxy_trust_transport_info()const
  105. {
  106. return proxy_trust_transport_info_;
  107. }
  108. void CreateBackupPlanRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
  109. {
  110. proxy_trust_transport_info_ = proxy_trust_transport_info;
  111. setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
  112. }
  113. std::string CreateBackupPlanRequest::getCallerType()const
  114. {
  115. return callerType_;
  116. }
  117. void CreateBackupPlanRequest::setCallerType(const std::string& callerType)
  118. {
  119. callerType_ = callerType;
  120. setCoreParameter("CallerType", callerType);
  121. }
  122. std::string CreateBackupPlanRequest::getAccessKeyId()const
  123. {
  124. return accessKeyId_;
  125. }
  126. void CreateBackupPlanRequest::setAccessKeyId(const std::string& accessKeyId)
  127. {
  128. accessKeyId_ = accessKeyId;
  129. setCoreParameter("AccessKeyId", accessKeyId);
  130. }
  131. bool CreateBackupPlanRequest::getSecurity_transport()const
  132. {
  133. return security_transport_;
  134. }
  135. void CreateBackupPlanRequest::setSecurity_transport(bool security_transport)
  136. {
  137. security_transport_ = security_transport;
  138. setCoreParameter("Security_transport", security_transport ? "true" : "false");
  139. }
  140. std::string CreateBackupPlanRequest::getSecurityToken()const
  141. {
  142. return securityToken_;
  143. }
  144. void CreateBackupPlanRequest::setSecurityToken(const std::string& securityToken)
  145. {
  146. securityToken_ = securityToken;
  147. setCoreParameter("SecurityToken", securityToken);
  148. }
  149. std::string CreateBackupPlanRequest::getRegionId()const
  150. {
  151. return regionId_;
  152. }
  153. void CreateBackupPlanRequest::setRegionId(const std::string& regionId)
  154. {
  155. regionId_ = regionId;
  156. setCoreParameter("RegionId", regionId);
  157. }
  158. std::string CreateBackupPlanRequest::getRequestId()const
  159. {
  160. return requestId_;
  161. }
  162. void CreateBackupPlanRequest::setRequestId(const std::string& requestId)
  163. {
  164. requestId_ = requestId;
  165. setCoreParameter("RequestId", requestId);
  166. }
  167. std::string CreateBackupPlanRequest::getName()const
  168. {
  169. return name_;
  170. }
  171. void CreateBackupPlanRequest::setName(const std::string& name)
  172. {
  173. name_ = name;
  174. setCoreParameter("Name", name);
  175. }
  176. std::string CreateBackupPlanRequest::getRootPath()const
  177. {
  178. return rootPath_;
  179. }
  180. void CreateBackupPlanRequest::setRootPath(const std::string& rootPath)
  181. {
  182. rootPath_ = rootPath;
  183. setCoreParameter("RootPath", rootPath);
  184. }
  185. long CreateBackupPlanRequest::getCallerUid()const
  186. {
  187. return callerUid_;
  188. }
  189. void CreateBackupPlanRequest::setCallerUid(long callerUid)
  190. {
  191. callerUid_ = callerUid;
  192. setCoreParameter("CallerUid", std::to_string(callerUid));
  193. }