CreateUploadAttachedMediaRequest.cc 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214
  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/vod/model/CreateUploadAttachedMediaRequest.h>
  17. using AlibabaCloud::Vod::Model::CreateUploadAttachedMediaRequest;
  18. CreateUploadAttachedMediaRequest::CreateUploadAttachedMediaRequest() :
  19. RpcServiceRequest("vod", "2017-03-21", "CreateUploadAttachedMedia")
  20. {}
  21. CreateUploadAttachedMediaRequest::~CreateUploadAttachedMediaRequest()
  22. {}
  23. long CreateUploadAttachedMediaRequest::getResourceOwnerId()const
  24. {
  25. return resourceOwnerId_;
  26. }
  27. void CreateUploadAttachedMediaRequest::setResourceOwnerId(long resourceOwnerId)
  28. {
  29. resourceOwnerId_ = resourceOwnerId;
  30. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  31. }
  32. std::string CreateUploadAttachedMediaRequest::getIcon()const
  33. {
  34. return icon_;
  35. }
  36. void CreateUploadAttachedMediaRequest::setIcon(const std::string& icon)
  37. {
  38. icon_ = icon;
  39. setCoreParameter("Icon", icon);
  40. }
  41. std::string CreateUploadAttachedMediaRequest::getDescription()const
  42. {
  43. return description_;
  44. }
  45. void CreateUploadAttachedMediaRequest::setDescription(const std::string& description)
  46. {
  47. description_ = description;
  48. setCoreParameter("Description", description);
  49. }
  50. std::string CreateUploadAttachedMediaRequest::getFileSize()const
  51. {
  52. return fileSize_;
  53. }
  54. void CreateUploadAttachedMediaRequest::setFileSize(const std::string& fileSize)
  55. {
  56. fileSize_ = fileSize;
  57. setCoreParameter("FileSize", fileSize);
  58. }
  59. std::string CreateUploadAttachedMediaRequest::getTitle()const
  60. {
  61. return title_;
  62. }
  63. void CreateUploadAttachedMediaRequest::setTitle(const std::string& title)
  64. {
  65. title_ = title;
  66. setCoreParameter("Title", title);
  67. }
  68. std::string CreateUploadAttachedMediaRequest::getAccessKeyId()const
  69. {
  70. return accessKeyId_;
  71. }
  72. void CreateUploadAttachedMediaRequest::setAccessKeyId(const std::string& accessKeyId)
  73. {
  74. accessKeyId_ = accessKeyId;
  75. setCoreParameter("AccessKeyId", accessKeyId);
  76. }
  77. std::string CreateUploadAttachedMediaRequest::getBusinessType()const
  78. {
  79. return businessType_;
  80. }
  81. void CreateUploadAttachedMediaRequest::setBusinessType(const std::string& businessType)
  82. {
  83. businessType_ = businessType;
  84. setCoreParameter("BusinessType", businessType);
  85. }
  86. std::string CreateUploadAttachedMediaRequest::getStorageLocation()const
  87. {
  88. return storageLocation_;
  89. }
  90. void CreateUploadAttachedMediaRequest::setStorageLocation(const std::string& storageLocation)
  91. {
  92. storageLocation_ = storageLocation;
  93. setCoreParameter("StorageLocation", storageLocation);
  94. }
  95. std::string CreateUploadAttachedMediaRequest::getUserData()const
  96. {
  97. return userData_;
  98. }
  99. void CreateUploadAttachedMediaRequest::setUserData(const std::string& userData)
  100. {
  101. userData_ = userData;
  102. setCoreParameter("UserData", userData);
  103. }
  104. long CreateUploadAttachedMediaRequest::getCateId()const
  105. {
  106. return cateId_;
  107. }
  108. void CreateUploadAttachedMediaRequest::setCateId(long cateId)
  109. {
  110. cateId_ = cateId;
  111. setCoreParameter("CateId", std::to_string(cateId));
  112. }
  113. std::string CreateUploadAttachedMediaRequest::getResourceOwnerAccount()const
  114. {
  115. return resourceOwnerAccount_;
  116. }
  117. void CreateUploadAttachedMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  118. {
  119. resourceOwnerAccount_ = resourceOwnerAccount;
  120. setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
  121. }
  122. std::string CreateUploadAttachedMediaRequest::getCateIds()const
  123. {
  124. return cateIds_;
  125. }
  126. void CreateUploadAttachedMediaRequest::setCateIds(const std::string& cateIds)
  127. {
  128. cateIds_ = cateIds;
  129. setCoreParameter("CateIds", cateIds);
  130. }
  131. long CreateUploadAttachedMediaRequest::getOwnerId()const
  132. {
  133. return ownerId_;
  134. }
  135. void CreateUploadAttachedMediaRequest::setOwnerId(long ownerId)
  136. {
  137. ownerId_ = ownerId;
  138. setCoreParameter("OwnerId", std::to_string(ownerId));
  139. }
  140. std::string CreateUploadAttachedMediaRequest::getTags()const
  141. {
  142. return tags_;
  143. }
  144. void CreateUploadAttachedMediaRequest::setTags(const std::string& tags)
  145. {
  146. tags_ = tags;
  147. setCoreParameter("Tags", tags);
  148. }
  149. std::string CreateUploadAttachedMediaRequest::getMediaExt()const
  150. {
  151. return mediaExt_;
  152. }
  153. void CreateUploadAttachedMediaRequest::setMediaExt(const std::string& mediaExt)
  154. {
  155. mediaExt_ = mediaExt;
  156. setCoreParameter("MediaExt", mediaExt);
  157. }
  158. std::string CreateUploadAttachedMediaRequest::getFileName()const
  159. {
  160. return fileName_;
  161. }
  162. void CreateUploadAttachedMediaRequest::setFileName(const std::string& fileName)
  163. {
  164. fileName_ = fileName;
  165. setCoreParameter("FileName", fileName);
  166. }
  167. std::string CreateUploadAttachedMediaRequest::getAppId()const
  168. {
  169. return appId_;
  170. }
  171. void CreateUploadAttachedMediaRequest::setAppId(const std::string& appId)
  172. {
  173. appId_ = appId;
  174. setCoreParameter("AppId", appId);
  175. }