|
|
@@ -1,167 +1,141 @@
|
|
|
/*
|
|
|
* 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/videoenhan/model/GenerateVideoRequest.h>
|
|
|
-
|
|
|
-using AlibabaCloud::Videoenhan::Model::GenerateVideoRequest;
|
|
|
-
|
|
|
-GenerateVideoRequest::GenerateVideoRequest() :
|
|
|
- RpcServiceRequest("videoenhan", "2020-03-20", "GenerateVideo")
|
|
|
-{
|
|
|
- setMethod(HttpRequest::Method::Post);
|
|
|
-}
|
|
|
-
|
|
|
-GenerateVideoRequest::~GenerateVideoRequest()
|
|
|
-{}
|
|
|
-
|
|
|
-std::string GenerateVideoRequest::getTransitionStyle()const
|
|
|
-{
|
|
|
- return transitionStyle_;
|
|
|
+ */
|
|
|
+
|
|
|
+#include <alibabacloud/videoenhan/model/GenerateVideoRequest.h>
|
|
|
+
|
|
|
+using AlibabaCloud::Videoenhan::Model::GenerateVideoRequest;
|
|
|
+
|
|
|
+GenerateVideoRequest::GenerateVideoRequest()
|
|
|
+ : RpcServiceRequest("videoenhan", "2020-03-20", "GenerateVideo") {
|
|
|
+ setMethod(HttpRequest::Method::Post);
|
|
|
+}
|
|
|
+
|
|
|
+GenerateVideoRequest::~GenerateVideoRequest() {}
|
|
|
+
|
|
|
+std::string GenerateVideoRequest::getTransitionStyle() const {
|
|
|
+ return transitionStyle_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setTransitionStyle(const std::string& transitionStyle)
|
|
|
-{
|
|
|
- transitionStyle_ = transitionStyle;
|
|
|
- setBodyParameter("TransitionStyle", transitionStyle);
|
|
|
+void GenerateVideoRequest::setTransitionStyle(const std::string &transitionStyle) {
|
|
|
+ transitionStyle_ = transitionStyle;
|
|
|
+ setBodyParameter(std::string("TransitionStyle"), transitionStyle);
|
|
|
}
|
|
|
|
|
|
-std::string GenerateVideoRequest::getScene()const
|
|
|
-{
|
|
|
- return scene_;
|
|
|
+std::string GenerateVideoRequest::getScene() const {
|
|
|
+ return scene_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setScene(const std::string& scene)
|
|
|
-{
|
|
|
- scene_ = scene;
|
|
|
- setBodyParameter("Scene", scene);
|
|
|
+void GenerateVideoRequest::setScene(const std::string &scene) {
|
|
|
+ scene_ = scene;
|
|
|
+ setBodyParameter(std::string("Scene"), scene);
|
|
|
}
|
|
|
|
|
|
-float GenerateVideoRequest::getDuration()const
|
|
|
-{
|
|
|
- return duration_;
|
|
|
+float GenerateVideoRequest::getDuration() const {
|
|
|
+ return duration_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setDuration(float duration)
|
|
|
-{
|
|
|
- duration_ = duration;
|
|
|
- setBodyParameter("Duration", std::to_string(duration));
|
|
|
+void GenerateVideoRequest::setDuration(float duration) {
|
|
|
+ duration_ = duration;
|
|
|
+ setBodyParameter(std::string("Duration"), std::to_string(duration));
|
|
|
}
|
|
|
|
|
|
-bool GenerateVideoRequest::getPuzzleEffect()const
|
|
|
-{
|
|
|
- return puzzleEffect_;
|
|
|
+bool GenerateVideoRequest::getPuzzleEffect() const {
|
|
|
+ return puzzleEffect_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setPuzzleEffect(bool puzzleEffect)
|
|
|
-{
|
|
|
- puzzleEffect_ = puzzleEffect;
|
|
|
- setBodyParameter("PuzzleEffect", puzzleEffect ? "true" : "false");
|
|
|
+void GenerateVideoRequest::setPuzzleEffect(bool puzzleEffect) {
|
|
|
+ puzzleEffect_ = puzzleEffect;
|
|
|
+ setBodyParameter(std::string("PuzzleEffect"), puzzleEffect ? "true" : "false");
|
|
|
}
|
|
|
|
|
|
-int GenerateVideoRequest::getHeight()const
|
|
|
-{
|
|
|
- return height_;
|
|
|
+int GenerateVideoRequest::getHeight() const {
|
|
|
+ return height_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setHeight(int height)
|
|
|
-{
|
|
|
- height_ = height;
|
|
|
- setBodyParameter("Height", std::to_string(height));
|
|
|
+void GenerateVideoRequest::setHeight(int height) {
|
|
|
+ height_ = height;
|
|
|
+ setBodyParameter(std::string("Height"), std::to_string(height));
|
|
|
}
|
|
|
|
|
|
-bool GenerateVideoRequest::getDurationAdaption()const
|
|
|
-{
|
|
|
- return durationAdaption_;
|
|
|
+bool GenerateVideoRequest::getDurationAdaption() const {
|
|
|
+ return durationAdaption_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setDurationAdaption(bool durationAdaption)
|
|
|
-{
|
|
|
- durationAdaption_ = durationAdaption;
|
|
|
- setBodyParameter("DurationAdaption", durationAdaption ? "true" : "false");
|
|
|
+void GenerateVideoRequest::setDurationAdaption(bool durationAdaption) {
|
|
|
+ durationAdaption_ = durationAdaption;
|
|
|
+ setBodyParameter(std::string("DurationAdaption"), durationAdaption ? "true" : "false");
|
|
|
}
|
|
|
|
|
|
-std::vector<GenerateVideoRequest::FileList> GenerateVideoRequest::getFileList()const
|
|
|
-{
|
|
|
- return fileList_;
|
|
|
+std::vector<GenerateVideoRequest::FileList> GenerateVideoRequest::getFileList() const {
|
|
|
+ return fileList_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setFileList(const std::vector<FileList>& fileList)
|
|
|
-{
|
|
|
- fileList_ = fileList;
|
|
|
- for(int dep1 = 0; dep1!= fileList.size(); dep1++) {
|
|
|
- auto fileListObj = fileList.at(dep1);
|
|
|
- std::string fileListObjStr = "FileList." + std::to_string(dep1 + 1);
|
|
|
- setParameter(fileListObjStr + ".FileName", fileListObj.fileName);
|
|
|
- setParameter(fileListObjStr + ".FileUrl", fileListObj.fileUrl);
|
|
|
- setParameter(fileListObjStr + ".Type", fileListObj.type);
|
|
|
- }
|
|
|
+void GenerateVideoRequest::setFileList(const std::vector<GenerateVideoRequest::FileList> &fileList) {
|
|
|
+ fileList_ = fileList;
|
|
|
+ for(int dep1 = 0; dep1 != fileList.size(); dep1++) {
|
|
|
+ auto fileListObj = fileList.at(dep1);
|
|
|
+ std::string fileListObjStr = std::string("FileList") + "." + std::to_string(dep1 + 1);
|
|
|
+ setBodyParameter(fileListObjStr + ".FileName", fileListObj.fileName);
|
|
|
+ setBodyParameter(fileListObjStr + ".FileUrl", fileListObj.fileUrl);
|
|
|
+ setBodyParameter(fileListObjStr + ".Type", fileListObj.type);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
-bool GenerateVideoRequest::getMute()const
|
|
|
-{
|
|
|
- return mute_;
|
|
|
+bool GenerateVideoRequest::getMute() const {
|
|
|
+ return mute_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setMute(bool mute)
|
|
|
-{
|
|
|
- mute_ = mute;
|
|
|
- setBodyParameter("Mute", mute ? "true" : "false");
|
|
|
+void GenerateVideoRequest::setMute(bool mute) {
|
|
|
+ mute_ = mute;
|
|
|
+ setBodyParameter(std::string("Mute"), mute ? "true" : "false");
|
|
|
}
|
|
|
|
|
|
-bool GenerateVideoRequest::getAsync()const
|
|
|
-{
|
|
|
- return async_;
|
|
|
+bool GenerateVideoRequest::getAsync() const {
|
|
|
+ return async_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setAsync(bool async)
|
|
|
-{
|
|
|
- async_ = async;
|
|
|
- setBodyParameter("Async", async ? "true" : "false");
|
|
|
+void GenerateVideoRequest::setAsync(bool async) {
|
|
|
+ async_ = async;
|
|
|
+ setBodyParameter(std::string("Async"), async ? "true" : "false");
|
|
|
}
|
|
|
|
|
|
-bool GenerateVideoRequest::getSmartEffect()const
|
|
|
-{
|
|
|
- return smartEffect_;
|
|
|
+bool GenerateVideoRequest::getSmartEffect() const {
|
|
|
+ return smartEffect_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setSmartEffect(bool smartEffect)
|
|
|
-{
|
|
|
- smartEffect_ = smartEffect;
|
|
|
- setBodyParameter("SmartEffect", smartEffect ? "true" : "false");
|
|
|
+void GenerateVideoRequest::setSmartEffect(bool smartEffect) {
|
|
|
+ smartEffect_ = smartEffect;
|
|
|
+ setBodyParameter(std::string("SmartEffect"), smartEffect ? "true" : "false");
|
|
|
}
|
|
|
|
|
|
-int GenerateVideoRequest::getWidth()const
|
|
|
-{
|
|
|
- return width_;
|
|
|
+int GenerateVideoRequest::getWidth() const {
|
|
|
+ return width_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setWidth(int width)
|
|
|
-{
|
|
|
- width_ = width;
|
|
|
- setBodyParameter("Width", std::to_string(width));
|
|
|
+void GenerateVideoRequest::setWidth(int width) {
|
|
|
+ width_ = width;
|
|
|
+ setBodyParameter(std::string("Width"), std::to_string(width));
|
|
|
}
|
|
|
|
|
|
-std::string GenerateVideoRequest::getStyle()const
|
|
|
-{
|
|
|
- return style_;
|
|
|
+std::string GenerateVideoRequest::getStyle() const {
|
|
|
+ return style_;
|
|
|
}
|
|
|
|
|
|
-void GenerateVideoRequest::setStyle(const std::string& style)
|
|
|
-{
|
|
|
- style_ = style;
|
|
|
- setBodyParameter("Style", style);
|
|
|
+void GenerateVideoRequest::setStyle(const std::string &style) {
|
|
|
+ style_ = style;
|
|
|
+ setBodyParameter(std::string("Style"), style);
|
|
|
}
|
|
|
|