61 lines
2.4 KiB
C++
61 lines
2.4 KiB
C++
/*
|
|
* 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/imm/model/LiveTranscodingRequest.h>
|
|
|
|
using AlibabaCloud::Imm::Model::LiveTranscodingRequest;
|
|
|
|
LiveTranscodingRequest::LiveTranscodingRequest()
|
|
: RpcServiceRequest("imm", "2020-09-30", "LiveTranscoding") {
|
|
setMethod(HttpRequest::Method::Post);
|
|
}
|
|
|
|
LiveTranscodingRequest::~LiveTranscodingRequest() {}
|
|
|
|
std::string LiveTranscodingRequest::getProjectName() const {
|
|
return projectName_;
|
|
}
|
|
|
|
void LiveTranscodingRequest::setProjectName(const std::string &projectName) {
|
|
projectName_ = projectName;
|
|
setParameter(std::string("ProjectName"), projectName);
|
|
}
|
|
|
|
LiveTranscodingRequest::CredentialConfig LiveTranscodingRequest::getCredentialConfig() const {
|
|
return credentialConfig_;
|
|
}
|
|
|
|
void LiveTranscodingRequest::setCredentialConfig(const LiveTranscodingRequest::CredentialConfig &credentialConfig) {
|
|
credentialConfig_ = credentialConfig;
|
|
for(int dep1 = 0; dep1 != credentialConfig.chain.size(); dep1++) {
|
|
setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".Role", credentialConfig.chain[dep1].role);
|
|
setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".RoleType", credentialConfig.chain[dep1].roleType);
|
|
setParameter(std::string("CredentialConfig") + ".Chain." + std::to_string(dep1 + 1) + ".AssumeRoleFor", credentialConfig.chain[dep1].assumeRoleFor);
|
|
}
|
|
setParameter(std::string("CredentialConfig") + ".ServiceRole", credentialConfig.serviceRole);
|
|
setParameter(std::string("CredentialConfig") + ".Policy", credentialConfig.policy);
|
|
}
|
|
|
|
std::string LiveTranscodingRequest::getSourceURI() const {
|
|
return sourceURI_;
|
|
}
|
|
|
|
void LiveTranscodingRequest::setSourceURI(const std::string &sourceURI) {
|
|
sourceURI_ = sourceURI;
|
|
setParameter(std::string("SourceURI"), sourceURI);
|
|
}
|
|
|