| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171 |
- /*
- * Copyright 2009-2017 Alibaba Cloud All rights reserved.
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- #include <alibabacloud/rtc/model/StartMPUTaskRequest.h>
- using AlibabaCloud::Rtc::Model::StartMPUTaskRequest;
- StartMPUTaskRequest::StartMPUTaskRequest() :
- RpcServiceRequest("rtc", "2018-01-11", "StartMPUTask")
- {
- setMethod(HttpRequest::Method::Post);
- }
- StartMPUTaskRequest::~StartMPUTaskRequest()
- {}
- std::vector<StartMPUTaskRequest::UserPanes> StartMPUTaskRequest::getUserPanes()const
- {
- return userPanes_;
- }
- void StartMPUTaskRequest::setUserPanes(const std::vector<UserPanes>& userPanes)
- {
- userPanes_ = userPanes;
- for(int dep1 = 0; dep1!= userPanes.size(); dep1++) {
- auto userPanesObj = userPanes.at(dep1);
- std::string userPanesObjStr = "UserPanes." + std::to_string(dep1 + 1);
- setParameter(userPanesObjStr + ".PaneId", std::to_string(userPanesObj.paneId));
- setParameter(userPanesObjStr + ".UserId", userPanesObj.userId);
- setParameter(userPanesObjStr + ".SourceType", userPanesObj.sourceType);
- }
- }
- int StartMPUTaskRequest::getBackgroundColor()const
- {
- return backgroundColor_;
- }
- void StartMPUTaskRequest::setBackgroundColor(int backgroundColor)
- {
- backgroundColor_ = backgroundColor;
- setParameter("BackgroundColor", std::to_string(backgroundColor));
- }
- int StartMPUTaskRequest::getCropMode()const
- {
- return cropMode_;
- }
- void StartMPUTaskRequest::setCropMode(int cropMode)
- {
- cropMode_ = cropMode;
- setParameter("CropMode", std::to_string(cropMode));
- }
- std::string StartMPUTaskRequest::getTaskProfile()const
- {
- return taskProfile_;
- }
- void StartMPUTaskRequest::setTaskProfile(const std::string& taskProfile)
- {
- taskProfile_ = taskProfile;
- setParameter("TaskProfile", taskProfile);
- }
- std::vector<long> StartMPUTaskRequest::getLayoutIds()const
- {
- return layoutIds_;
- }
- void StartMPUTaskRequest::setLayoutIds(const std::vector<long>& layoutIds)
- {
- layoutIds_ = layoutIds;
- for(int dep1 = 0; dep1!= layoutIds.size(); dep1++) {
- setParameter("LayoutIds."+ std::to_string(dep1), std::to_string(layoutIds.at(dep1)));
- }
- }
- std::string StartMPUTaskRequest::getTaskId()const
- {
- return taskId_;
- }
- void StartMPUTaskRequest::setTaskId(const std::string& taskId)
- {
- taskId_ = taskId;
- setParameter("TaskId", taskId);
- }
- std::string StartMPUTaskRequest::getStreamURL()const
- {
- return streamURL_;
- }
- void StartMPUTaskRequest::setStreamURL(const std::string& streamURL)
- {
- streamURL_ = streamURL;
- setParameter("StreamURL", streamURL);
- }
- long StartMPUTaskRequest::getOwnerId()const
- {
- return ownerId_;
- }
- void StartMPUTaskRequest::setOwnerId(long ownerId)
- {
- ownerId_ = ownerId;
- setParameter("OwnerId", std::to_string(ownerId));
- }
- std::vector<std::string> StartMPUTaskRequest::getSubSpecUsers()const
- {
- return subSpecUsers_;
- }
- void StartMPUTaskRequest::setSubSpecUsers(const std::vector<std::string>& subSpecUsers)
- {
- subSpecUsers_ = subSpecUsers;
- for(int dep1 = 0; dep1!= subSpecUsers.size(); dep1++) {
- setParameter("SubSpecUsers."+ std::to_string(dep1), subSpecUsers.at(dep1));
- }
- }
- std::string StartMPUTaskRequest::getAppId()const
- {
- return appId_;
- }
- void StartMPUTaskRequest::setAppId(const std::string& appId)
- {
- appId_ = appId;
- setParameter("AppId", appId);
- }
- int StartMPUTaskRequest::getMediaEncode()const
- {
- return mediaEncode_;
- }
- void StartMPUTaskRequest::setMediaEncode(int mediaEncode)
- {
- mediaEncode_ = mediaEncode;
- setParameter("MediaEncode", std::to_string(mediaEncode));
- }
- std::string StartMPUTaskRequest::getChannelId()const
- {
- return channelId_;
- }
- void StartMPUTaskRequest::setChannelId(const std::string& channelId)
- {
- channelId_ = channelId;
- setParameter("ChannelId", channelId);
- }
|