DeleteAppRequest.cc 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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/cloudapi/model/DeleteAppRequest.h>
  17. using AlibabaCloud::CloudAPI::Model::DeleteAppRequest;
  18. DeleteAppRequest::DeleteAppRequest() :
  19. RpcServiceRequest("cloudapi", "2016-07-14", "DeleteApp")
  20. {}
  21. DeleteAppRequest::~DeleteAppRequest()
  22. {}
  23. std::string DeleteAppRequest::getAccessKeyId()const
  24. {
  25. return accessKeyId_;
  26. }
  27. void DeleteAppRequest::setAccessKeyId(const std::string& accessKeyId)
  28. {
  29. accessKeyId_ = accessKeyId;
  30. setCoreParameter("AccessKeyId", accessKeyId);
  31. }
  32. std::string DeleteAppRequest::getSecurityToken()const
  33. {
  34. return securityToken_;
  35. }
  36. void DeleteAppRequest::setSecurityToken(const std::string& securityToken)
  37. {
  38. securityToken_ = securityToken;
  39. setCoreParameter("SecurityToken", securityToken);
  40. }
  41. long DeleteAppRequest::getAppId()const
  42. {
  43. return appId_;
  44. }
  45. void DeleteAppRequest::setAppId(long appId)
  46. {
  47. appId_ = appId;
  48. setCoreParameter("AppId", std::to_string(appId));
  49. }
  50. std::vector<DeleteAppRequest::Tag> DeleteAppRequest::getTag()const
  51. {
  52. return tag_;
  53. }
  54. void DeleteAppRequest::setTag(const std::vector<Tag>& tag)
  55. {
  56. tag_ = tag;
  57. int i = 0;
  58. for(int i = 0; i!= tag.size(); i++) {
  59. auto obj = tag.at(i);
  60. std::string str ="Tag."+ std::to_string(i);
  61. setCoreParameter(str + ".Value", obj.value);
  62. setCoreParameter(str + ".Key", obj.key);
  63. }
  64. }