UpdateCasterSceneConfigRequest.cc 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. UpdateCasterSceneConfigRequest::~UpdateCasterSceneConfigRequest()
  22. {}
  23. std::string UpdateCasterSceneConfigRequest::getLayoutId()const
  24. {
  25. return layoutId_;
  26. }
  27. void UpdateCasterSceneConfigRequest::setLayoutId(const std::string& layoutId)
  28. {
  29. layoutId_ = layoutId;
  30. setCoreParameter("LayoutId", layoutId);
  31. }
  32. std::vector<std::string> UpdateCasterSceneConfigRequest::getComponentId()const
  33. {
  34. return componentId_;
  35. }
  36. void UpdateCasterSceneConfigRequest::setComponentId(const std::vector<std::string>& componentId)
  37. {
  38. componentId_ = componentId;
  39. for(int i = 0; i!= componentId.size(); i++)
  40. setCoreParameter("ComponentId."+ std::to_string(i), componentId.at(i));
  41. }
  42. std::string UpdateCasterSceneConfigRequest::getCasterId()const
  43. {
  44. return casterId_;
  45. }
  46. void UpdateCasterSceneConfigRequest::setCasterId(const std::string& casterId)
  47. {
  48. casterId_ = casterId;
  49. setCoreParameter("CasterId", casterId);
  50. }
  51. long UpdateCasterSceneConfigRequest::getOwnerId()const
  52. {
  53. return ownerId_;
  54. }
  55. void UpdateCasterSceneConfigRequest::setOwnerId(long ownerId)
  56. {
  57. ownerId_ = ownerId;
  58. setCoreParameter("OwnerId", std::to_string(ownerId));
  59. }
  60. std::string UpdateCasterSceneConfigRequest::getSceneId()const
  61. {
  62. return sceneId_;
  63. }
  64. void UpdateCasterSceneConfigRequest::setSceneId(const std::string& sceneId)
  65. {
  66. sceneId_ = sceneId;
  67. setCoreParameter("SceneId", sceneId);
  68. }