UpdateCasterSceneConfigRequest.cc 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586
  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/live/model/UpdateCasterSceneConfigRequest.h>
  17. using AlibabaCloud::Live::Model::UpdateCasterSceneConfigRequest;
  18. UpdateCasterSceneConfigRequest::UpdateCasterSceneConfigRequest() :
  19. RpcServiceRequest("live", "2016-11-01", "UpdateCasterSceneConfig")
  20. {
  21. setMethod(HttpRequest::Method::Post);
  22. }
  23. UpdateCasterSceneConfigRequest::~UpdateCasterSceneConfigRequest()
  24. {}
  25. std::string UpdateCasterSceneConfigRequest::getLayoutId()const
  26. {
  27. return layoutId_;
  28. }
  29. void UpdateCasterSceneConfigRequest::setLayoutId(const std::string& layoutId)
  30. {
  31. layoutId_ = layoutId;
  32. setParameter("LayoutId", layoutId);
  33. }
  34. std::vector<std::string> UpdateCasterSceneConfigRequest::getComponentId()const
  35. {
  36. return componentId_;
  37. }
  38. void UpdateCasterSceneConfigRequest::setComponentId(const std::vector<std::string>& componentId)
  39. {
  40. componentId_ = componentId;
  41. for(int dep1 = 0; dep1!= componentId.size(); dep1++) {
  42. setParameter("ComponentId."+ std::to_string(dep1), componentId.at(dep1));
  43. }
  44. }
  45. std::string UpdateCasterSceneConfigRequest::getCasterId()const
  46. {
  47. return casterId_;
  48. }
  49. void UpdateCasterSceneConfigRequest::setCasterId(const std::string& casterId)
  50. {
  51. casterId_ = casterId;
  52. setParameter("CasterId", casterId);
  53. }
  54. long UpdateCasterSceneConfigRequest::getOwnerId()const
  55. {
  56. return ownerId_;
  57. }
  58. void UpdateCasterSceneConfigRequest::setOwnerId(long ownerId)
  59. {
  60. ownerId_ = ownerId;
  61. setParameter("OwnerId", std::to_string(ownerId));
  62. }
  63. std::string UpdateCasterSceneConfigRequest::getSceneId()const
  64. {
  65. return sceneId_;
  66. }
  67. void UpdateCasterSceneConfigRequest::setSceneId(const std::string& sceneId)
  68. {
  69. sceneId_ = sceneId;
  70. setParameter("SceneId", sceneId);
  71. }