RemoveBackupRequest.cc 5.3 KB

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