SubmitTextToSignVideoTaskRequest.cc 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  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/avatar/model/SubmitTextToSignVideoTaskRequest.h>
  17. using AlibabaCloud::Avatar::Model::SubmitTextToSignVideoTaskRequest;
  18. SubmitTextToSignVideoTaskRequest::SubmitTextToSignVideoTaskRequest()
  19. : RpcServiceRequest("avatar", "2022-01-30", "SubmitTextToSignVideoTask") {
  20. setMethod(HttpRequest::Method::Post);
  21. }
  22. SubmitTextToSignVideoTaskRequest::~SubmitTextToSignVideoTaskRequest() {}
  23. SubmitTextToSignVideoTaskRequest::App SubmitTextToSignVideoTaskRequest::getApp() const {
  24. return app_;
  25. }
  26. void SubmitTextToSignVideoTaskRequest::setApp(const SubmitTextToSignVideoTaskRequest::App &app) {
  27. app_ = app;
  28. setParameter(std::string("App") + ".AppId", app.appId);
  29. }
  30. SubmitTextToSignVideoTaskRequest::VideoInfo SubmitTextToSignVideoTaskRequest::getVideoInfo() const {
  31. return videoInfo_;
  32. }
  33. void SubmitTextToSignVideoTaskRequest::setVideoInfo(const SubmitTextToSignVideoTaskRequest::VideoInfo &videoInfo) {
  34. videoInfo_ = videoInfo;
  35. setParameter(std::string("VideoInfo") + ".IsAlpha", videoInfo.isAlpha ? "true" : "false");
  36. setParameter(std::string("VideoInfo") + ".IsSubtitles", videoInfo.isSubtitles ? "true" : "false");
  37. setParameter(std::string("VideoInfo") + ".Resolution", std::to_string(videoInfo.resolution));
  38. }
  39. long SubmitTextToSignVideoTaskRequest::getTenantId() const {
  40. return tenantId_;
  41. }
  42. void SubmitTextToSignVideoTaskRequest::setTenantId(long tenantId) {
  43. tenantId_ = tenantId;
  44. setParameter(std::string("TenantId"), std::to_string(tenantId));
  45. }
  46. std::string SubmitTextToSignVideoTaskRequest::getText() const {
  47. return text_;
  48. }
  49. void SubmitTextToSignVideoTaskRequest::setText(const std::string &text) {
  50. text_ = text;
  51. setParameter(std::string("Text"), text);
  52. }
  53. std::string SubmitTextToSignVideoTaskRequest::getTitle() const {
  54. return title_;
  55. }
  56. void SubmitTextToSignVideoTaskRequest::setTitle(const std::string &title) {
  57. title_ = title;
  58. setParameter(std::string("Title"), title);
  59. }