SubmitSnapshotJobRequest.cc 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181
  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/SubmitSnapshotJobRequest.h>
  17. using AlibabaCloud::Vod::Model::SubmitSnapshotJobRequest;
  18. SubmitSnapshotJobRequest::SubmitSnapshotJobRequest() :
  19. RpcServiceRequest("vod", "2017-03-21", "SubmitSnapshotJob")
  20. {}
  21. SubmitSnapshotJobRequest::~SubmitSnapshotJobRequest()
  22. {}
  23. long SubmitSnapshotJobRequest::getResourceOwnerId()const
  24. {
  25. return resourceOwnerId_;
  26. }
  27. void SubmitSnapshotJobRequest::setResourceOwnerId(long resourceOwnerId)
  28. {
  29. resourceOwnerId_ = resourceOwnerId;
  30. setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
  31. }
  32. std::string SubmitSnapshotJobRequest::getAccessKeyId()const
  33. {
  34. return accessKeyId_;
  35. }
  36. void SubmitSnapshotJobRequest::setAccessKeyId(const std::string& accessKeyId)
  37. {
  38. accessKeyId_ = accessKeyId;
  39. setCoreParameter("AccessKeyId", accessKeyId);
  40. }
  41. std::string SubmitSnapshotJobRequest::getUserData()const
  42. {
  43. return userData_;
  44. }
  45. void SubmitSnapshotJobRequest::setUserData(const std::string& userData)
  46. {
  47. userData_ = userData;
  48. setCoreParameter("UserData", userData);
  49. }
  50. long SubmitSnapshotJobRequest::getSpecifiedOffsetTime()const
  51. {
  52. return specifiedOffsetTime_;
  53. }
  54. void SubmitSnapshotJobRequest::setSpecifiedOffsetTime(long specifiedOffsetTime)
  55. {
  56. specifiedOffsetTime_ = specifiedOffsetTime;
  57. setCoreParameter("SpecifiedOffsetTime", std::to_string(specifiedOffsetTime));
  58. }
  59. std::string SubmitSnapshotJobRequest::getSpriteSnapshotConfig()const
  60. {
  61. return spriteSnapshotConfig_;
  62. }
  63. void SubmitSnapshotJobRequest::setSpriteSnapshotConfig(const std::string& spriteSnapshotConfig)
  64. {
  65. spriteSnapshotConfig_ = spriteSnapshotConfig;
  66. setCoreParameter("SpriteSnapshotConfig", spriteSnapshotConfig);
  67. }
  68. std::string SubmitSnapshotJobRequest::getSnapshotTemplateId()const
  69. {
  70. return snapshotTemplateId_;
  71. }
  72. void SubmitSnapshotJobRequest::setSnapshotTemplateId(const std::string& snapshotTemplateId)
  73. {
  74. snapshotTemplateId_ = snapshotTemplateId;
  75. setCoreParameter("SnapshotTemplateId", snapshotTemplateId);
  76. }
  77. std::string SubmitSnapshotJobRequest::getHeight()const
  78. {
  79. return height_;
  80. }
  81. void SubmitSnapshotJobRequest::setHeight(const std::string& height)
  82. {
  83. height_ = height;
  84. setCoreParameter("Height", height);
  85. }
  86. std::string SubmitSnapshotJobRequest::getResourceOwnerAccount()const
  87. {
  88. return resourceOwnerAccount_;
  89. }
  90. void SubmitSnapshotJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
  91. {
  92. resourceOwnerAccount_ = resourceOwnerAccount;
  93. setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
  94. }
  95. long SubmitSnapshotJobRequest::getCount()const
  96. {
  97. return count_;
  98. }
  99. void SubmitSnapshotJobRequest::setCount(long count)
  100. {
  101. count_ = count;
  102. setCoreParameter("Count", std::to_string(count));
  103. }
  104. std::string SubmitSnapshotJobRequest::getVideoId()const
  105. {
  106. return videoId_;
  107. }
  108. void SubmitSnapshotJobRequest::setVideoId(const std::string& videoId)
  109. {
  110. videoId_ = videoId;
  111. setCoreParameter("VideoId", videoId);
  112. }
  113. long SubmitSnapshotJobRequest::getOwnerId()const
  114. {
  115. return ownerId_;
  116. }
  117. void SubmitSnapshotJobRequest::setOwnerId(long ownerId)
  118. {
  119. ownerId_ = ownerId;
  120. setCoreParameter("OwnerId", std::to_string(ownerId));
  121. }
  122. std::string SubmitSnapshotJobRequest::getWidth()const
  123. {
  124. return width_;
  125. }
  126. void SubmitSnapshotJobRequest::setWidth(const std::string& width)
  127. {
  128. width_ = width;
  129. setCoreParameter("Width", width);
  130. }
  131. std::string SubmitSnapshotJobRequest::getFileUrl()const
  132. {
  133. return fileUrl_;
  134. }
  135. void SubmitSnapshotJobRequest::setFileUrl(const std::string& fileUrl)
  136. {
  137. fileUrl_ = fileUrl;
  138. setCoreParameter("FileUrl", fileUrl);
  139. }
  140. long SubmitSnapshotJobRequest::getInterval()const
  141. {
  142. return interval_;
  143. }
  144. void SubmitSnapshotJobRequest::setInterval(long interval)
  145. {
  146. interval_ = interval;
  147. setCoreParameter("Interval", std::to_string(interval));
  148. }