CreateTransactionRequest.cc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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/cloudphoto/model/CreateTransactionRequest.h>
  17. using AlibabaCloud::CloudPhoto::Model::CreateTransactionRequest;
  18. CreateTransactionRequest::CreateTransactionRequest() :
  19. RpcServiceRequest("cloudphoto", "2017-07-11", "CreateTransaction")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. CreateTransactionRequest::~CreateTransactionRequest()
  24. {}
  25. std::string CreateTransactionRequest::getExt()const
  26. {
  27. return ext_;
  28. }
  29. void CreateTransactionRequest::setExt(const std::string& ext)
  30. {
  31. ext_ = ext;
  32. setParameter("Ext", ext);
  33. }
  34. std::string CreateTransactionRequest::getLibraryId()const
  35. {
  36. return libraryId_;
  37. }
  38. void CreateTransactionRequest::setLibraryId(const std::string& libraryId)
  39. {
  40. libraryId_ = libraryId;
  41. setParameter("LibraryId", libraryId);
  42. }
  43. std::string CreateTransactionRequest::getStoreName()const
  44. {
  45. return storeName_;
  46. }
  47. void CreateTransactionRequest::setStoreName(const std::string& storeName)
  48. {
  49. storeName_ = storeName;
  50. setParameter("StoreName", storeName);
  51. }
  52. long CreateTransactionRequest::getSize()const
  53. {
  54. return size_;
  55. }
  56. void CreateTransactionRequest::setSize(long size)
  57. {
  58. size_ = size;
  59. setParameter("Size", std::to_string(size));
  60. }
  61. std::string CreateTransactionRequest::getForce()const
  62. {
  63. return force_;
  64. }
  65. void CreateTransactionRequest::setForce(const std::string& force)
  66. {
  67. force_ = force;
  68. setParameter("Force", force);
  69. }
  70. std::string CreateTransactionRequest::getMd5()const
  71. {
  72. return md5_;
  73. }
  74. void CreateTransactionRequest::setMd5(const std::string& md5)
  75. {
  76. md5_ = md5;
  77. setParameter("Md5", md5);
  78. }