CreatePhotoRequest.cc 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  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/CreatePhotoRequest.h>
  17. using AlibabaCloud::CloudPhoto::Model::CreatePhotoRequest;
  18. CreatePhotoRequest::CreatePhotoRequest() :
  19. RpcServiceRequest("cloudphoto", "2017-07-11", "CreatePhoto")
  20. {}
  21. CreatePhotoRequest::~CreatePhotoRequest()
  22. {}
  23. long CreatePhotoRequest::getTakenAt()const
  24. {
  25. return takenAt_;
  26. }
  27. void CreatePhotoRequest::setTakenAt(long takenAt)
  28. {
  29. takenAt_ = takenAt;
  30. setParameter("TakenAt", std::to_string(takenAt));
  31. }
  32. std::string CreatePhotoRequest::getPhotoTitle()const
  33. {
  34. return photoTitle_;
  35. }
  36. void CreatePhotoRequest::setPhotoTitle(const std::string& photoTitle)
  37. {
  38. photoTitle_ = photoTitle;
  39. setParameter("PhotoTitle", photoTitle);
  40. }
  41. std::string CreatePhotoRequest::getLibraryId()const
  42. {
  43. return libraryId_;
  44. }
  45. void CreatePhotoRequest::setLibraryId(const std::string& libraryId)
  46. {
  47. libraryId_ = libraryId;
  48. setParameter("LibraryId", libraryId);
  49. }
  50. long CreatePhotoRequest::getShareExpireTime()const
  51. {
  52. return shareExpireTime_;
  53. }
  54. void CreatePhotoRequest::setShareExpireTime(long shareExpireTime)
  55. {
  56. shareExpireTime_ = shareExpireTime;
  57. setParameter("ShareExpireTime", std::to_string(shareExpireTime));
  58. }
  59. std::string CreatePhotoRequest::getStoreName()const
  60. {
  61. return storeName_;
  62. }
  63. void CreatePhotoRequest::setStoreName(const std::string& storeName)
  64. {
  65. storeName_ = storeName;
  66. setParameter("StoreName", storeName);
  67. }
  68. std::string CreatePhotoRequest::getUploadType()const
  69. {
  70. return uploadType_;
  71. }
  72. void CreatePhotoRequest::setUploadType(const std::string& uploadType)
  73. {
  74. uploadType_ = uploadType;
  75. setParameter("UploadType", uploadType);
  76. }
  77. std::string CreatePhotoRequest::getRemark()const
  78. {
  79. return remark_;
  80. }
  81. void CreatePhotoRequest::setRemark(const std::string& remark)
  82. {
  83. remark_ = remark;
  84. setParameter("Remark", remark);
  85. }
  86. std::string CreatePhotoRequest::getSessionId()const
  87. {
  88. return sessionId_;
  89. }
  90. void CreatePhotoRequest::setSessionId(const std::string& sessionId)
  91. {
  92. sessionId_ = sessionId;
  93. setParameter("SessionId", sessionId);
  94. }
  95. std::string CreatePhotoRequest::getStaging()const
  96. {
  97. return staging_;
  98. }
  99. void CreatePhotoRequest::setStaging(const std::string& staging)
  100. {
  101. staging_ = staging;
  102. setParameter("Staging", staging);
  103. }
  104. std::string CreatePhotoRequest::getFileId()const
  105. {
  106. return fileId_;
  107. }
  108. void CreatePhotoRequest::setFileId(const std::string& fileId)
  109. {
  110. fileId_ = fileId;
  111. setParameter("FileId", fileId);
  112. }