Supported Video Abstract for IMM.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2019-09-18 Version 1.36.137
|
||||
- Supported Video Abstract for IMM.
|
||||
|
||||
2019-09-17 Version 1.36.136
|
||||
- Generated 2018-04-12 for `EHPC`.
|
||||
|
||||
|
||||
@@ -49,6 +49,8 @@ set(imm_public_header_model
|
||||
include/alibabacloud/imm/model/CreateTagJobResult.h
|
||||
include/alibabacloud/imm/model/CreateTagSetRequest.h
|
||||
include/alibabacloud/imm/model/CreateTagSetResult.h
|
||||
include/alibabacloud/imm/model/CreateVideoAbstractTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateVideoAbstractTaskResult.h
|
||||
include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h
|
||||
include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h
|
||||
include/alibabacloud/imm/model/CreateVideoCompressTaskRequest.h
|
||||
@@ -254,6 +256,8 @@ set(imm_src
|
||||
src/model/CreateTagJobResult.cc
|
||||
src/model/CreateTagSetRequest.cc
|
||||
src/model/CreateTagSetResult.cc
|
||||
src/model/CreateVideoAbstractTaskRequest.cc
|
||||
src/model/CreateVideoAbstractTaskResult.cc
|
||||
src/model/CreateVideoAnalyseTaskRequest.cc
|
||||
src/model/CreateVideoAnalyseTaskResult.cc
|
||||
src/model/CreateVideoCompressTaskRequest.cc
|
||||
|
||||
@@ -50,6 +50,8 @@
|
||||
#include "model/CreateTagJobResult.h"
|
||||
#include "model/CreateTagSetRequest.h"
|
||||
#include "model/CreateTagSetResult.h"
|
||||
#include "model/CreateVideoAbstractTaskRequest.h"
|
||||
#include "model/CreateVideoAbstractTaskResult.h"
|
||||
#include "model/CreateVideoAnalyseTaskRequest.h"
|
||||
#include "model/CreateVideoAnalyseTaskResult.h"
|
||||
#include "model/CreateVideoCompressTaskRequest.h"
|
||||
@@ -275,6 +277,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateTagSetResult> CreateTagSetOutcome;
|
||||
typedef std::future<CreateTagSetOutcome> CreateTagSetOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateTagSetRequest&, const CreateTagSetOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateTagSetAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVideoAbstractTaskResult> CreateVideoAbstractTaskOutcome;
|
||||
typedef std::future<CreateVideoAbstractTaskOutcome> CreateVideoAbstractTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateVideoAbstractTaskRequest&, const CreateVideoAbstractTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoAbstractTaskAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateVideoAnalyseTaskResult> CreateVideoAnalyseTaskOutcome;
|
||||
typedef std::future<CreateVideoAnalyseTaskOutcome> CreateVideoAnalyseTaskOutcomeCallable;
|
||||
typedef std::function<void(const ImmClient*, const Model::CreateVideoAnalyseTaskRequest&, const CreateVideoAnalyseTaskOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateVideoAnalyseTaskAsyncHandler;
|
||||
@@ -583,6 +588,9 @@ namespace AlibabaCloud
|
||||
CreateTagSetOutcome createTagSet(const Model::CreateTagSetRequest &request)const;
|
||||
void createTagSetAsync(const Model::CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateTagSetOutcomeCallable createTagSetCallable(const Model::CreateTagSetRequest& request) const;
|
||||
CreateVideoAbstractTaskOutcome createVideoAbstractTask(const Model::CreateVideoAbstractTaskRequest &request)const;
|
||||
void createVideoAbstractTaskAsync(const Model::CreateVideoAbstractTaskRequest& request, const CreateVideoAbstractTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVideoAbstractTaskOutcomeCallable createVideoAbstractTaskCallable(const Model::CreateVideoAbstractTaskRequest& request) const;
|
||||
CreateVideoAnalyseTaskOutcome createVideoAnalyseTask(const Model::CreateVideoAnalyseTaskRequest &request)const;
|
||||
void createVideoAnalyseTaskAsync(const Model::CreateVideoAnalyseTaskRequest& request, const CreateVideoAnalyseTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateVideoAnalyseTaskOutcomeCallable createVideoAnalyseTaskCallable(const Model::CreateVideoAnalyseTaskRequest& request) const;
|
||||
|
||||
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKREQUEST_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateVideoAbstractTaskRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateVideoAbstractTaskRequest();
|
||||
~CreateVideoAbstractTaskRequest();
|
||||
|
||||
std::string getTargetVideoUri()const;
|
||||
void setTargetVideoUri(const std::string& targetVideoUri);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getNotifyEndpoint()const;
|
||||
void setNotifyEndpoint(const std::string& notifyEndpoint);
|
||||
std::string getNotifyTopicName()const;
|
||||
void setNotifyTopicName(const std::string& notifyTopicName);
|
||||
std::string getVideoUri()const;
|
||||
void setVideoUri(const std::string& videoUri);
|
||||
int getAbstractLength()const;
|
||||
void setAbstractLength(int abstractLength);
|
||||
std::string getTargetClipsUri()const;
|
||||
void setTargetClipsUri(const std::string& targetClipsUri);
|
||||
|
||||
private:
|
||||
std::string targetVideoUri_;
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string notifyEndpoint_;
|
||||
std::string notifyTopicName_;
|
||||
std::string videoUri_;
|
||||
int abstractLength_;
|
||||
std::string targetClipsUri_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKREQUEST_H_
|
||||
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKRESULT_H_
|
||||
#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/imm/ImmExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Imm
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_IMM_EXPORT CreateVideoAbstractTaskResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateVideoAbstractTaskResult();
|
||||
explicit CreateVideoAbstractTaskResult(const std::string &payload);
|
||||
~CreateVideoAbstractTaskResult();
|
||||
std::string getTaskId()const;
|
||||
std::string getTaskType()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string taskId_;
|
||||
std::string taskType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOABSTRACTTASKRESULT_H_
|
||||
@@ -35,29 +35,29 @@ namespace AlibabaCloud
|
||||
DecodeBlindWatermarkRequest();
|
||||
~DecodeBlindWatermarkRequest();
|
||||
|
||||
int getImageQuality()const;
|
||||
void setImageQuality(int imageQuality);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getWatermarkType()const;
|
||||
void setWatermarkType(const std::string& watermarkType);
|
||||
std::string getTargetUri()const;
|
||||
void setTargetUri(const std::string& targetUri);
|
||||
std::string getImageUri()const;
|
||||
void setImageUri(const std::string& imageUri);
|
||||
std::string getOriginalImageUri()const;
|
||||
void setOriginalImageUri(const std::string& originalImageUri);
|
||||
int getImageQuality()const;
|
||||
void setImageQuality(int imageQuality);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getWatermarkType()const;
|
||||
void setWatermarkType(const std::string& watermarkType);
|
||||
std::string getTargetUri()const;
|
||||
void setTargetUri(const std::string& targetUri);
|
||||
std::string getImageUri()const;
|
||||
void setImageUri(const std::string& imageUri);
|
||||
std::string getOriginalImageUri()const;
|
||||
void setOriginalImageUri(const std::string& originalImageUri);
|
||||
|
||||
private:
|
||||
int imageQuality_;
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string watermarkType_;
|
||||
std::string targetUri_;
|
||||
std::string imageUri_;
|
||||
std::string originalImageUri_;
|
||||
int imageQuality_;
|
||||
std::string project_;
|
||||
std::string accessKeyId_;
|
||||
std::string watermarkType_;
|
||||
std::string targetUri_;
|
||||
std::string imageUri_;
|
||||
std::string originalImageUri_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -35,35 +35,35 @@ namespace AlibabaCloud
|
||||
EncodeBlindWatermarkRequest();
|
||||
~EncodeBlindWatermarkRequest();
|
||||
|
||||
std::string getImageQuality()const;
|
||||
void setImageQuality(const std::string& imageQuality);
|
||||
std::string getWatermarkUri()const;
|
||||
void setWatermarkUri(const std::string& watermarkUri);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getWatermarkType()const;
|
||||
void setWatermarkType(const std::string& watermarkType);
|
||||
std::string getTargetUri()const;
|
||||
void setTargetUri(const std::string& targetUri);
|
||||
std::string getTargetImageType()const;
|
||||
void setTargetImageType(const std::string& targetImageType);
|
||||
std::string getImageUri()const;
|
||||
void setImageUri(const std::string& imageUri);
|
||||
std::string getImageQuality()const;
|
||||
void setImageQuality(const std::string& imageQuality);
|
||||
std::string getWatermarkUri()const;
|
||||
void setWatermarkUri(const std::string& watermarkUri);
|
||||
std::string getProject()const;
|
||||
void setProject(const std::string& project);
|
||||
std::string getContent()const;
|
||||
void setContent(const std::string& content);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
std::string getWatermarkType()const;
|
||||
void setWatermarkType(const std::string& watermarkType);
|
||||
std::string getTargetUri()const;
|
||||
void setTargetUri(const std::string& targetUri);
|
||||
std::string getTargetImageType()const;
|
||||
void setTargetImageType(const std::string& targetImageType);
|
||||
std::string getImageUri()const;
|
||||
void setImageUri(const std::string& imageUri);
|
||||
|
||||
private:
|
||||
std::string imageQuality_;
|
||||
std::string watermarkUri_;
|
||||
std::string project_;
|
||||
std::string content_;
|
||||
std::string accessKeyId_;
|
||||
std::string watermarkType_;
|
||||
std::string targetUri_;
|
||||
std::string targetImageType_;
|
||||
std::string imageUri_;
|
||||
std::string imageQuality_;
|
||||
std::string watermarkUri_;
|
||||
std::string project_;
|
||||
std::string content_;
|
||||
std::string accessKeyId_;
|
||||
std::string watermarkType_;
|
||||
std::string targetUri_;
|
||||
std::string targetImageType_;
|
||||
std::string imageUri_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -555,6 +555,42 @@ ImmClient::CreateTagSetOutcomeCallable ImmClient::createTagSetCallable(const Cre
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateVideoAbstractTaskOutcome ImmClient::createVideoAbstractTask(const CreateVideoAbstractTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateVideoAbstractTaskOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateVideoAbstractTaskOutcome(CreateVideoAbstractTaskResult(outcome.result()));
|
||||
else
|
||||
return CreateVideoAbstractTaskOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ImmClient::createVideoAbstractTaskAsync(const CreateVideoAbstractTaskRequest& request, const CreateVideoAbstractTaskAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createVideoAbstractTask(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ImmClient::CreateVideoAbstractTaskOutcomeCallable ImmClient::createVideoAbstractTaskCallable(const CreateVideoAbstractTaskRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateVideoAbstractTaskOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createVideoAbstractTask(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ImmClient::CreateVideoAnalyseTaskOutcome ImmClient::createVideoAnalyseTask(const CreateVideoAnalyseTaskRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
115
imm/src/model/CreateVideoAbstractTaskRequest.cc
Normal file
115
imm/src/model/CreateVideoAbstractTaskRequest.cc
Normal file
@@ -0,0 +1,115 @@
|
||||
/*
|
||||
* 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/CreateVideoAbstractTaskRequest.h>
|
||||
|
||||
using AlibabaCloud::Imm::Model::CreateVideoAbstractTaskRequest;
|
||||
|
||||
CreateVideoAbstractTaskRequest::CreateVideoAbstractTaskRequest() :
|
||||
RpcServiceRequest("imm", "2017-09-06", "CreateVideoAbstractTask")
|
||||
{}
|
||||
|
||||
CreateVideoAbstractTaskRequest::~CreateVideoAbstractTaskRequest()
|
||||
{}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getTargetVideoUri()const
|
||||
{
|
||||
return targetVideoUri_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setTargetVideoUri(const std::string& targetVideoUri)
|
||||
{
|
||||
targetVideoUri_ = targetVideoUri;
|
||||
setCoreParameter("TargetVideoUri", targetVideoUri);
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getNotifyEndpoint()const
|
||||
{
|
||||
return notifyEndpoint_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
|
||||
{
|
||||
notifyEndpoint_ = notifyEndpoint;
|
||||
setCoreParameter("NotifyEndpoint", notifyEndpoint);
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getNotifyTopicName()const
|
||||
{
|
||||
return notifyTopicName_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setNotifyTopicName(const std::string& notifyTopicName)
|
||||
{
|
||||
notifyTopicName_ = notifyTopicName;
|
||||
setCoreParameter("NotifyTopicName", notifyTopicName);
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getVideoUri()const
|
||||
{
|
||||
return videoUri_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setVideoUri(const std::string& videoUri)
|
||||
{
|
||||
videoUri_ = videoUri;
|
||||
setCoreParameter("VideoUri", videoUri);
|
||||
}
|
||||
|
||||
int CreateVideoAbstractTaskRequest::getAbstractLength()const
|
||||
{
|
||||
return abstractLength_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setAbstractLength(int abstractLength)
|
||||
{
|
||||
abstractLength_ = abstractLength;
|
||||
setCoreParameter("AbstractLength", std::to_string(abstractLength));
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskRequest::getTargetClipsUri()const
|
||||
{
|
||||
return targetClipsUri_;
|
||||
}
|
||||
|
||||
void CreateVideoAbstractTaskRequest::setTargetClipsUri(const std::string& targetClipsUri)
|
||||
{
|
||||
targetClipsUri_ = targetClipsUri;
|
||||
setCoreParameter("TargetClipsUri", targetClipsUri);
|
||||
}
|
||||
|
||||
58
imm/src/model/CreateVideoAbstractTaskResult.cc
Normal file
58
imm/src/model/CreateVideoAbstractTaskResult.cc
Normal file
@@ -0,0 +1,58 @@
|
||||
/*
|
||||
* 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/CreateVideoAbstractTaskResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Imm;
|
||||
using namespace AlibabaCloud::Imm::Model;
|
||||
|
||||
CreateVideoAbstractTaskResult::CreateVideoAbstractTaskResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateVideoAbstractTaskResult::CreateVideoAbstractTaskResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateVideoAbstractTaskResult::~CreateVideoAbstractTaskResult()
|
||||
{}
|
||||
|
||||
void CreateVideoAbstractTaskResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TaskId"].isNull())
|
||||
taskId_ = value["TaskId"].asString();
|
||||
if(!value["TaskType"].isNull())
|
||||
taskType_ = value["TaskType"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskResult::getTaskId()const
|
||||
{
|
||||
return taskId_;
|
||||
}
|
||||
|
||||
std::string CreateVideoAbstractTaskResult::getTaskType()const
|
||||
{
|
||||
return taskType_;
|
||||
}
|
||||
|
||||
@@ -25,80 +25,80 @@ DecodeBlindWatermarkRequest::DecodeBlindWatermarkRequest() :
|
||||
DecodeBlindWatermarkRequest::~DecodeBlindWatermarkRequest()
|
||||
{}
|
||||
|
||||
int DecodeBlindWatermarkRequest::getImageQuality()const
|
||||
{
|
||||
return imageQuality_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setImageQuality(int imageQuality)
|
||||
{
|
||||
imageQuality_ = imageQuality;
|
||||
setCoreParameter("ImageQuality", std::to_string(imageQuality));
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getWatermarkType()const
|
||||
{
|
||||
return watermarkType_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setWatermarkType(const std::string& watermarkType)
|
||||
{
|
||||
watermarkType_ = watermarkType;
|
||||
setCoreParameter("WatermarkType", watermarkType);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getTargetUri()const
|
||||
{
|
||||
return targetUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setTargetUri(const std::string& targetUri)
|
||||
{
|
||||
targetUri_ = targetUri;
|
||||
setCoreParameter("TargetUri", targetUri);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getImageUri()const
|
||||
{
|
||||
return imageUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setImageUri(const std::string& imageUri)
|
||||
{
|
||||
imageUri_ = imageUri;
|
||||
setCoreParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getOriginalImageUri()const
|
||||
{
|
||||
return originalImageUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setOriginalImageUri(const std::string& originalImageUri)
|
||||
{
|
||||
originalImageUri_ = originalImageUri;
|
||||
setCoreParameter("OriginalImageUri", originalImageUri);
|
||||
}
|
||||
|
||||
int DecodeBlindWatermarkRequest::getImageQuality()const
|
||||
{
|
||||
return imageQuality_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setImageQuality(int imageQuality)
|
||||
{
|
||||
imageQuality_ = imageQuality;
|
||||
setCoreParameter("ImageQuality", std::to_string(imageQuality));
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getWatermarkType()const
|
||||
{
|
||||
return watermarkType_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setWatermarkType(const std::string& watermarkType)
|
||||
{
|
||||
watermarkType_ = watermarkType;
|
||||
setCoreParameter("WatermarkType", watermarkType);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getTargetUri()const
|
||||
{
|
||||
return targetUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setTargetUri(const std::string& targetUri)
|
||||
{
|
||||
targetUri_ = targetUri;
|
||||
setCoreParameter("TargetUri", targetUri);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getImageUri()const
|
||||
{
|
||||
return imageUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setImageUri(const std::string& imageUri)
|
||||
{
|
||||
imageUri_ = imageUri;
|
||||
setCoreParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
std::string DecodeBlindWatermarkRequest::getOriginalImageUri()const
|
||||
{
|
||||
return originalImageUri_;
|
||||
}
|
||||
|
||||
void DecodeBlindWatermarkRequest::setOriginalImageUri(const std::string& originalImageUri)
|
||||
{
|
||||
originalImageUri_ = originalImageUri;
|
||||
setCoreParameter("OriginalImageUri", originalImageUri);
|
||||
}
|
||||
|
||||
|
||||
@@ -25,102 +25,102 @@ EncodeBlindWatermarkRequest::EncodeBlindWatermarkRequest() :
|
||||
EncodeBlindWatermarkRequest::~EncodeBlindWatermarkRequest()
|
||||
{}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getImageQuality()const
|
||||
{
|
||||
return imageQuality_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setImageQuality(const std::string& imageQuality)
|
||||
{
|
||||
imageQuality_ = imageQuality;
|
||||
setCoreParameter("ImageQuality", imageQuality);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getWatermarkUri()const
|
||||
{
|
||||
return watermarkUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setWatermarkUri(const std::string& watermarkUri)
|
||||
{
|
||||
watermarkUri_ = watermarkUri;
|
||||
setCoreParameter("WatermarkUri", watermarkUri);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getWatermarkType()const
|
||||
{
|
||||
return watermarkType_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setWatermarkType(const std::string& watermarkType)
|
||||
{
|
||||
watermarkType_ = watermarkType;
|
||||
setCoreParameter("WatermarkType", watermarkType);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getTargetUri()const
|
||||
{
|
||||
return targetUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setTargetUri(const std::string& targetUri)
|
||||
{
|
||||
targetUri_ = targetUri;
|
||||
setCoreParameter("TargetUri", targetUri);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getTargetImageType()const
|
||||
{
|
||||
return targetImageType_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setTargetImageType(const std::string& targetImageType)
|
||||
{
|
||||
targetImageType_ = targetImageType;
|
||||
setCoreParameter("TargetImageType", targetImageType);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getImageUri()const
|
||||
{
|
||||
return imageUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setImageUri(const std::string& imageUri)
|
||||
{
|
||||
imageUri_ = imageUri;
|
||||
setCoreParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getImageQuality()const
|
||||
{
|
||||
return imageQuality_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setImageQuality(const std::string& imageQuality)
|
||||
{
|
||||
imageQuality_ = imageQuality;
|
||||
setCoreParameter("ImageQuality", imageQuality);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getWatermarkUri()const
|
||||
{
|
||||
return watermarkUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setWatermarkUri(const std::string& watermarkUri)
|
||||
{
|
||||
watermarkUri_ = watermarkUri;
|
||||
setCoreParameter("WatermarkUri", watermarkUri);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setProject(const std::string& project)
|
||||
{
|
||||
project_ = project;
|
||||
setCoreParameter("Project", project);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setContent(const std::string& content)
|
||||
{
|
||||
content_ = content;
|
||||
setCoreParameter("Content", content);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getWatermarkType()const
|
||||
{
|
||||
return watermarkType_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setWatermarkType(const std::string& watermarkType)
|
||||
{
|
||||
watermarkType_ = watermarkType;
|
||||
setCoreParameter("WatermarkType", watermarkType);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getTargetUri()const
|
||||
{
|
||||
return targetUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setTargetUri(const std::string& targetUri)
|
||||
{
|
||||
targetUri_ = targetUri;
|
||||
setCoreParameter("TargetUri", targetUri);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getTargetImageType()const
|
||||
{
|
||||
return targetImageType_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setTargetImageType(const std::string& targetImageType)
|
||||
{
|
||||
targetImageType_ = targetImageType;
|
||||
setCoreParameter("TargetImageType", targetImageType);
|
||||
}
|
||||
|
||||
std::string EncodeBlindWatermarkRequest::getImageUri()const
|
||||
{
|
||||
return imageUri_;
|
||||
}
|
||||
|
||||
void EncodeBlindWatermarkRequest::setImageUri(const std::string& imageUri)
|
||||
{
|
||||
imageUri_ = imageUri;
|
||||
setCoreParameter("ImageUri", imageUri);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user