MTS SDK Auto Released By shenshi,Version:1.34.25

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-15 09:57:48 +08:00
parent 1da6c4aa18
commit 67a361ad2d
120 changed files with 10858 additions and 960 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,203 @@
/*
* 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/mts/model/AddMCTemplateRequest.h>
using AlibabaCloud::Mts::Model::AddMCTemplateRequest;
AddMCTemplateRequest::AddMCTemplateRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddMCTemplate")
{}
AddMCTemplateRequest::~AddMCTemplateRequest()
{}
std::string AddMCTemplateRequest::getPolitics()const
{
return politics_;
}
void AddMCTemplateRequest::setPolitics(const std::string& politics)
{
politics_ = politics;
setParameter("Politics", politics);
}
long AddMCTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddMCTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddMCTemplateRequest::getContraband()const
{
return contraband_;
}
void AddMCTemplateRequest::setContraband(const std::string& contraband)
{
contraband_ = contraband;
setParameter("Contraband", contraband);
}
std::string AddMCTemplateRequest::getAd()const
{
return ad_;
}
void AddMCTemplateRequest::setAd(const std::string& ad)
{
ad_ = ad;
setParameter("Ad", ad);
}
std::string AddMCTemplateRequest::getAbuse()const
{
return abuse_;
}
void AddMCTemplateRequest::setAbuse(const std::string& abuse)
{
abuse_ = abuse;
setParameter("Abuse", abuse);
}
std::string AddMCTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddMCTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddMCTemplateRequest::getQrcode()const
{
return qrcode_;
}
void AddMCTemplateRequest::setQrcode(const std::string& qrcode)
{
qrcode_ = qrcode;
setParameter("Qrcode", qrcode);
}
std::string AddMCTemplateRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddMCTemplateRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddMCTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void AddMCTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddMCTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddMCTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddMCTemplateRequest::getPorn()const
{
return porn_;
}
void AddMCTemplateRequest::setPorn(const std::string& porn)
{
porn_ = porn;
setParameter("Porn", porn);
}
std::string AddMCTemplateRequest::getTerrorism()const
{
return terrorism_;
}
void AddMCTemplateRequest::setTerrorism(const std::string& terrorism)
{
terrorism_ = terrorism;
setParameter("Terrorism", terrorism);
}
std::string AddMCTemplateRequest::getName()const
{
return name_;
}
void AddMCTemplateRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddMCTemplateRequest::getLogo()const
{
return logo_;
}
void AddMCTemplateRequest::setLogo(const std::string& logo)
{
logo_ = logo;
setParameter("Logo", logo);
}
std::string AddMCTemplateRequest::getSpam()const
{
return spam_;
}
void AddMCTemplateRequest::setSpam(const std::string& spam)
{
spam_ = spam;
setParameter("Spam", spam);
}
std::string AddMCTemplateRequest::getLive()const
{
return live_;
}
void AddMCTemplateRequest::setLive(const std::string& live)
{
live_ = live;
setParameter("Live", live);
}

View File

@@ -0,0 +1,75 @@
/*
* 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/mts/model/AddMCTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddMCTemplateResult::AddMCTemplateResult() :
ServiceResult()
{}
AddMCTemplateResult::AddMCTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddMCTemplateResult::~AddMCTemplateResult()
{}
void AddMCTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto _templateNode = value["Template"];
if(!_templateNode["TemplateId"].isNull())
_template_.templateId = _templateNode["TemplateId"].asString();
if(!_templateNode["Name"].isNull())
_template_.name = _templateNode["Name"].asString();
if(!_templateNode["Porn"].isNull())
_template_.porn = _templateNode["Porn"].asString();
if(!_templateNode["Terrorism"].isNull())
_template_.terrorism = _templateNode["Terrorism"].asString();
if(!_templateNode["Politics"].isNull())
_template_.politics = _templateNode["Politics"].asString();
if(!_templateNode["Ad"].isNull())
_template_.ad = _templateNode["Ad"].asString();
if(!_templateNode["Qrcode"].isNull())
_template_.qrcode = _templateNode["Qrcode"].asString();
if(!_templateNode["Live"].isNull())
_template_.live = _templateNode["Live"].asString();
if(!_templateNode["Logo"].isNull())
_template_.logo = _templateNode["Logo"].asString();
if(!_templateNode["Abuse"].isNull())
_template_.abuse = _templateNode["Abuse"].asString();
if(!_templateNode["Contraband"].isNull())
_template_.contraband = _templateNode["Contraband"].asString();
if(!_templateNode["Spam"].isNull())
_template_.spam = _templateNode["Spam"].asString();
}
AddMCTemplateResult::_Template AddMCTemplateResult::get_Template()const
{
return _template_;
}

View File

@@ -51,6 +51,8 @@ void AddPipelineResult::parse(const std::string &payload)
pipeline_.speed = pipelineNode["Speed"].asString();
if(!pipelineNode["SpeedLevel"].isNull())
pipeline_.speedLevel = std::stol(pipelineNode["SpeedLevel"].asString());
if(!pipelineNode["QuotaAllocate"].isNull())
pipeline_.quotaAllocate = std::stol(pipelineNode["QuotaAllocate"].asString());
if(!pipelineNode["Role"].isNull())
pipeline_.role = pipelineNode["Role"].asString();
auto notifyConfigNode = pipelineNode["NotifyConfig"];
@@ -58,6 +60,10 @@ void AddPipelineResult::parse(const std::string &payload)
pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["QueueName"].isNull())
pipeline_.notifyConfig.queueName = notifyConfigNode["QueueName"].asString();
if(!notifyConfigNode["MqTopic"].isNull())
pipeline_.notifyConfig.mqTopic = notifyConfigNode["MqTopic"].asString();
if(!notifyConfigNode["MqTag"].isNull())
pipeline_.notifyConfig.mqTag = notifyConfigNode["MqTag"].asString();
}

View File

@@ -81,6 +81,8 @@ void AddTemplateResult::parse(const std::string &payload)
_template_.video.degrain = videoNode["Degrain"].asString();
if(!videoNode["Qscale"].isNull())
_template_.video.qscale = videoNode["Qscale"].asString();
if(!videoNode["LongShortMode"].isNull())
_template_.video.longShortMode = videoNode["LongShortMode"].asString();
if(!videoNode["Remove"].isNull())
_template_.video.remove = videoNode["Remove"].asString();
if(!videoNode["Crop"].isNull())
@@ -89,6 +91,8 @@ void AddTemplateResult::parse(const std::string &payload)
_template_.video.pad = videoNode["Pad"].asString();
if(!videoNode["MaxFps"].isNull())
_template_.video.maxFps = videoNode["MaxFps"].asString();
if(!videoNode["ResoPriority"].isNull())
_template_.video.resoPriority = videoNode["ResoPriority"].asString();
auto bitrateBndNode = videoNode["BitrateBnd"];
if(!bitrateBndNode["Max"].isNull())
_template_.video.bitrateBnd.max = bitrateBndNode["Max"].asString();
@@ -144,6 +148,9 @@ void AddTemplateResult::parse(const std::string &payload)
_template_.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString();
if(!gifNode["DitherMode"].isNull())
_template_.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString();
auto webpNode = muxConfigNode["Webp"];
if(!webpNode["Loop"].isNull())
_template_.muxConfig.webp.loop = webpNode["Loop"].asString();
}

View File

@@ -0,0 +1,93 @@
/*
* 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/mts/model/CreateMcuTemplateRequest.h>
using AlibabaCloud::Mts::Model::CreateMcuTemplateRequest;
CreateMcuTemplateRequest::CreateMcuTemplateRequest() :
RpcServiceRequest("mts", "2014-06-18", "CreateMcuTemplate")
{}
CreateMcuTemplateRequest::~CreateMcuTemplateRequest()
{}
std::string CreateMcuTemplateRequest::get_Template()const
{
return _template_;
}
void CreateMcuTemplateRequest::set_Template(const std::string& _template)
{
_template_ = _template;
setParameter("_Template", _template);
}
long CreateMcuTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateMcuTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateMcuTemplateRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long CreateMcuTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void CreateMcuTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateMcuTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/mts/model/CreateMcuTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
CreateMcuTemplateResult::CreateMcuTemplateResult() :
ServiceResult()
{}
CreateMcuTemplateResult::CreateMcuTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMcuTemplateResult::~CreateMcuTemplateResult()
{}
void CreateMcuTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TemplateId"].isNull())
templateId_ = value["TemplateId"].asString();
}
std::string CreateMcuTemplateResult::getTemplateId()const
{
return templateId_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/mts/model/DeleteMCTemplateRequest.h>
using AlibabaCloud::Mts::Model::DeleteMCTemplateRequest;
DeleteMCTemplateRequest::DeleteMCTemplateRequest() :
RpcServiceRequest("mts", "2014-06-18", "DeleteMCTemplate")
{}
DeleteMCTemplateRequest::~DeleteMCTemplateRequest()
{}
long DeleteMCTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteMCTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteMCTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMCTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteMCTemplateRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteMCTemplateRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteMCTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMCTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteMCTemplateRequest::getTemplateId()const
{
return templateId_;
}
void DeleteMCTemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}
std::string DeleteMCTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteMCTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/mts/model/DeleteMCTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
DeleteMCTemplateResult::DeleteMCTemplateResult() :
ServiceResult()
{}
DeleteMCTemplateResult::DeleteMCTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMCTemplateResult::~DeleteMCTemplateResult()
{}
void DeleteMCTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TemplateId"].isNull())
templateId_ = value["TemplateId"].asString();
}
std::string DeleteMCTemplateResult::getTemplateId()const
{
return templateId_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/mts/model/DeleteMcuJobRequest.h>
using AlibabaCloud::Mts::Model::DeleteMcuJobRequest;
DeleteMcuJobRequest::DeleteMcuJobRequest() :
RpcServiceRequest("mts", "2014-06-18", "DeleteMcuJob")
{}
DeleteMcuJobRequest::~DeleteMcuJobRequest()
{}
long DeleteMcuJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteMcuJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteMcuJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMcuJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteMcuJobRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteMcuJobRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteMcuJobRequest::getJobIds()const
{
return jobIds_;
}
void DeleteMcuJobRequest::setJobIds(const std::string& jobIds)
{
jobIds_ = jobIds;
setParameter("JobIds", jobIds);
}
long DeleteMcuJobRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMcuJobRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteMcuJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteMcuJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,61 @@
/*
* 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/mts/model/DeleteMcuJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
DeleteMcuJobResult::DeleteMcuJobResult() :
ServiceResult()
{}
DeleteMcuJobResult::DeleteMcuJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMcuJobResult::~DeleteMcuJobResult()
{}
void DeleteMcuJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allNonExistJobIds = value["NonExistJobIds"]["String"];
for (const auto &item : allNonExistJobIds)
nonExistJobIds_.push_back(item.asString());
auto allDeletedJobIds = value["DeletedJobIds"]["String"];
for (const auto &item : allDeletedJobIds)
deletedJobIds_.push_back(item.asString());
}
std::vector<std::string> DeleteMcuJobResult::getNonExistJobIds()const
{
return nonExistJobIds_;
}
std::vector<std::string> DeleteMcuJobResult::getDeletedJobIds()const
{
return deletedJobIds_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/mts/model/DeleteMcuTemplateRequest.h>
using AlibabaCloud::Mts::Model::DeleteMcuTemplateRequest;
DeleteMcuTemplateRequest::DeleteMcuTemplateRequest() :
RpcServiceRequest("mts", "2014-06-18", "DeleteMcuTemplate")
{}
DeleteMcuTemplateRequest::~DeleteMcuTemplateRequest()
{}
long DeleteMcuTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteMcuTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteMcuTemplateRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteMcuTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMcuTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteMcuTemplateRequest::getTemplateId()const
{
return templateId_;
}
void DeleteMcuTemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}
std::string DeleteMcuTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/mts/model/DeleteMcuTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
DeleteMcuTemplateResult::DeleteMcuTemplateResult() :
ServiceResult()
{}
DeleteMcuTemplateResult::DeleteMcuTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMcuTemplateResult::~DeleteMcuTemplateResult()
{}
void DeleteMcuTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TemplateId"].isNull())
templateId_ = value["TemplateId"].asString();
}
std::string DeleteMcuTemplateResult::getTemplateId()const
{
return templateId_;
}

View File

@@ -47,6 +47,17 @@ void ListAllMediaBucketRequest::setResourceOwnerAccount(const std::string& resou
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListAllMediaBucketRequest::getNextPageToken()const
{
return nextPageToken_;
}
void ListAllMediaBucketRequest::setNextPageToken(const std::string& nextPageToken)
{
nextPageToken_ = nextPageToken;
setParameter("NextPageToken", nextPageToken);
}
std::string ListAllMediaBucketRequest::getOwnerAccount()const
{
return ownerAccount_;
@@ -58,6 +69,17 @@ void ListAllMediaBucketRequest::setOwnerAccount(const std::string& ownerAccount)
setParameter("OwnerAccount", ownerAccount);
}
int ListAllMediaBucketRequest::getMaximumPageSize()const
{
return maximumPageSize_;
}
void ListAllMediaBucketRequest::setMaximumPageSize(int maximumPageSize)
{
maximumPageSize_ = maximumPageSize;
setParameter("MaximumPageSize", std::to_string(maximumPageSize));
}
long ListAllMediaBucketRequest::getOwnerId()const
{
return ownerId_;

View File

@@ -50,9 +50,16 @@ void ListAllMediaBucketResult::parse(const std::string &payload)
mediaBucketListObject.type = value["Type"].asString();
mediaBucketList_.push_back(mediaBucketListObject);
}
if(!value["NextPageToken"].isNull())
nextPageToken_ = value["NextPageToken"].asString();
}
std::string ListAllMediaBucketResult::getNextPageToken()const
{
return nextPageToken_;
}
std::vector<ListAllMediaBucketResult::MediaBucket> ListAllMediaBucketResult::getMediaBucketList()const
{
return mediaBucketList_;

View File

@@ -0,0 +1,126 @@
/*
* 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/mts/model/QueryFpImportResultRequest.h>
using AlibabaCloud::Mts::Model::QueryFpImportResultRequest;
QueryFpImportResultRequest::QueryFpImportResultRequest() :
RpcServiceRequest("mts", "2014-06-18", "QueryFpImportResult")
{}
QueryFpImportResultRequest::~QueryFpImportResultRequest()
{}
long QueryFpImportResultRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryFpImportResultRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryFpImportResultRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryFpImportResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryFpImportResultRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void QueryFpImportResultRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long QueryFpImportResultRequest::getPageSize()const
{
return pageSize_;
}
void QueryFpImportResultRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
long QueryFpImportResultRequest::getEndTime()const
{
return endTime_;
}
void QueryFpImportResultRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setParameter("EndTime", std::to_string(endTime));
}
long QueryFpImportResultRequest::getPageIndex()const
{
return pageIndex_;
}
void QueryFpImportResultRequest::setPageIndex(long pageIndex)
{
pageIndex_ = pageIndex;
setParameter("PageIndex", std::to_string(pageIndex));
}
long QueryFpImportResultRequest::getStartTime()const
{
return startTime_;
}
void QueryFpImportResultRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setParameter("StartTime", std::to_string(startTime));
}
long QueryFpImportResultRequest::getOwnerId()const
{
return ownerId_;
}
void QueryFpImportResultRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryFpImportResultRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryFpImportResultRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,87 @@
/*
* 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/mts/model/QueryFpImportResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryFpImportResultResult::QueryFpImportResultResult() :
ServiceResult()
{}
QueryFpImportResultResult::QueryFpImportResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryFpImportResultResult::~QueryFpImportResultResult()
{}
void QueryFpImportResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFpResultLogInfoList = value["FpResultLogInfoList"]["FpResultLogInfo"];
for (auto value : allFpResultLogInfoList)
{
FpResultLogInfo fpResultLogInfoListObject;
if(!value["LogPath"].isNull())
fpResultLogInfoListObject.logPath = value["LogPath"].asString();
if(!value["LogName"].isNull())
fpResultLogInfoListObject.logName = value["LogName"].asString();
if(!value["LogStartTime"].isNull())
fpResultLogInfoListObject.logStartTime = std::stol(value["LogStartTime"].asString());
if(!value["LogEndTime"].isNull())
fpResultLogInfoListObject.logEndTime = std::stol(value["LogEndTime"].asString());
if(!value["LogSize"].isNull())
fpResultLogInfoListObject.logSize = std::stol(value["LogSize"].asString());
if(!value["CreateTime"].isNull())
fpResultLogInfoListObject.createTime = std::stol(value["CreateTime"].asString());
fpResultLogInfoList_.push_back(fpResultLogInfoListObject);
}
auto pageInfoNode = value["PageInfo"];
if(!pageInfoNode["PageIndex"].isNull())
pageInfo_.pageIndex = std::stol(pageInfoNode["PageIndex"].asString());
if(!pageInfoNode["PageSize"].isNull())
pageInfo_.pageSize = std::stol(pageInfoNode["PageSize"].asString());
if(!pageInfoNode["Total"].isNull())
pageInfo_.total = std::stol(pageInfoNode["Total"].asString());
if(!value["LogCount"].isNull())
logCount_ = std::stol(value["LogCount"].asString());
}
QueryFpImportResultResult::PageInfo QueryFpImportResultResult::getPageInfo()const
{
return pageInfo_;
}
std::vector<QueryFpImportResultResult::FpResultLogInfo> QueryFpImportResultResult::getFpResultLogInfoList()const
{
return fpResultLogInfoList_;
}
long QueryFpImportResultResult::getLogCount()const
{
return logCount_;
}

View File

@@ -47,15 +47,26 @@ void QueryFpShotJobListRequest::setResourceOwnerAccount(const std::string& resou
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryFpShotJobListRequest::getJobIds()const
std::string QueryFpShotJobListRequest::getNextPageToken()const
{
return jobIds_;
return nextPageToken_;
}
void QueryFpShotJobListRequest::setJobIds(const std::string& jobIds)
void QueryFpShotJobListRequest::setNextPageToken(const std::string& nextPageToken)
{
jobIds_ = jobIds;
setParameter("JobIds", jobIds);
nextPageToken_ = nextPageToken;
setParameter("NextPageToken", nextPageToken);
}
std::string QueryFpShotJobListRequest::getStartOfJobCreatedTimeRange()const
{
return startOfJobCreatedTimeRange_;
}
void QueryFpShotJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange)
{
startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange;
setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange);
}
std::string QueryFpShotJobListRequest::getOwnerAccount()const
@@ -69,6 +80,17 @@ void QueryFpShotJobListRequest::setOwnerAccount(const std::string& ownerAccount)
setParameter("OwnerAccount", ownerAccount);
}
long QueryFpShotJobListRequest::getMaximumPageSize()const
{
return maximumPageSize_;
}
void QueryFpShotJobListRequest::setMaximumPageSize(long maximumPageSize)
{
maximumPageSize_ = maximumPageSize;
setParameter("MaximumPageSize", std::to_string(maximumPageSize));
}
long QueryFpShotJobListRequest::getOwnerId()const
{
return ownerId_;
@@ -91,3 +113,58 @@ void QueryFpShotJobListRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryFpShotJobListRequest::getPipelineId()const
{
return pipelineId_;
}
void QueryFpShotJobListRequest::setPipelineId(const std::string& pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", pipelineId);
}
std::string QueryFpShotJobListRequest::getPrimaryKeyList()const
{
return primaryKeyList_;
}
void QueryFpShotJobListRequest::setPrimaryKeyList(const std::string& primaryKeyList)
{
primaryKeyList_ = primaryKeyList;
setParameter("PrimaryKeyList", primaryKeyList);
}
std::string QueryFpShotJobListRequest::getJobIds()const
{
return jobIds_;
}
void QueryFpShotJobListRequest::setJobIds(const std::string& jobIds)
{
jobIds_ = jobIds;
setParameter("JobIds", jobIds);
}
std::string QueryFpShotJobListRequest::getState()const
{
return state_;
}
void QueryFpShotJobListRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
}
std::string QueryFpShotJobListRequest::getEndOfJobCreatedTimeRange()const
{
return endOfJobCreatedTimeRange_;
}
void QueryFpShotJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange)
{
endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange;
setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange);
}

View File

@@ -50,6 +50,8 @@ void QueryFpShotJobListResult::parse(const std::string &payload)
fpShotJobListObject.userData = value["UserData"].asString();
if(!value["PipelineId"].isNull())
fpShotJobListObject.pipelineId = value["PipelineId"].asString();
if(!value["FileId"].isNull())
fpShotJobListObject.fileId = value["FileId"].asString();
if(!value["State"].isNull())
fpShotJobListObject.state = value["State"].asString();
if(!value["Code"].isNull())
@@ -67,6 +69,11 @@ void QueryFpShotJobListResult::parse(const std::string &payload)
fpShotJobListObject.inputFile.location = inputFileNode["Location"].asString();
if(!inputFileNode["Object"].isNull())
fpShotJobListObject.inputFile.object = inputFileNode["Object"].asString();
auto fpShotConfigNode = value["FpShotConfig"];
if(!fpShotConfigNode["PrimaryKey"].isNull())
fpShotJobListObject.fpShotConfig.primaryKey = fpShotConfigNode["PrimaryKey"].asString();
if(!fpShotConfigNode["SaveType"].isNull())
fpShotJobListObject.fpShotConfig.saveType = fpShotConfigNode["SaveType"].asString();
auto fpShotResultNode = value["FpShotResult"];
auto allFpShots = value["FpShots"]["FpShot"];
for (auto value : allFpShots)
@@ -94,14 +101,55 @@ void QueryFpShotJobListResult::parse(const std::string &payload)
}
fpShotJobListObject.fpShotResult.fpShots.push_back(fpShotObject);
}
auto allAudioFpShots = value["AudioFpShots"]["FpShot"];
for (auto value : allAudioFpShots)
{
FpShotJob::FpShotResult::FpShot fpShotObject;
if(!value["PrimaryKey"].isNull())
fpShotObject.primaryKey = value["PrimaryKey"].asString();
if(!value["Similarity"].isNull())
fpShotObject.similarity = value["Similarity"].asString();
auto allFpShotSlices = value["FpShotSlices"]["FpShotSlice"];
for (auto value : allFpShotSlices)
{
FpShotJob::FpShotResult::FpShot::FpShotSlice fpShotSlicesObject;
auto inputNode = value["Input"];
if(!inputNode["Start"].isNull())
fpShotSlicesObject.input.start = inputNode["Start"].asString();
if(!inputNode["Duration"].isNull())
fpShotSlicesObject.input.duration = inputNode["Duration"].asString();
auto duplicationNode = value["Duplication"];
if(!duplicationNode["Start"].isNull())
fpShotSlicesObject.duplication.start = duplicationNode["Start"].asString();
if(!duplicationNode["Duration"].isNull())
fpShotSlicesObject.duplication.duration = duplicationNode["Duration"].asString();
fpShotObject.fpShotSlices.push_back(fpShotSlicesObject);
}
fpShotJobListObject.fpShotResult.audioFpShots.push_back(fpShotObject);
}
fpShotJobList_.push_back(fpShotJobListObject);
}
auto allNonExistIds = value["NonExistIds"]["String"];
for (const auto &item : allNonExistIds)
nonExistIds_.push_back(item.asString());
auto allNonExistPrimaryKeys = value["NonExistPrimaryKeys"]["String"];
for (const auto &item : allNonExistPrimaryKeys)
nonExistPrimaryKeys_.push_back(item.asString());
if(!value["NextPageToken"].isNull())
nextPageToken_ = value["NextPageToken"].asString();
}
std::string QueryFpShotJobListResult::getNextPageToken()const
{
return nextPageToken_;
}
std::vector<std::string> QueryFpShotJobListResult::getNonExistPrimaryKeys()const
{
return nonExistPrimaryKeys_;
}
std::vector<QueryFpShotJobListResult::FpShotJob> QueryFpShotJobListResult::getFpShotJobList()const
{
return fpShotJobList_;

View File

@@ -0,0 +1,93 @@
/*
* 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/mts/model/QueryImageSearchJobListRequest.h>
using AlibabaCloud::Mts::Model::QueryImageSearchJobListRequest;
QueryImageSearchJobListRequest::QueryImageSearchJobListRequest() :
RpcServiceRequest("mts", "2014-06-18", "QueryImageSearchJobList")
{}
QueryImageSearchJobListRequest::~QueryImageSearchJobListRequest()
{}
long QueryImageSearchJobListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryImageSearchJobListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryImageSearchJobListRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryImageSearchJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryImageSearchJobListRequest::getJobIds()const
{
return jobIds_;
}
void QueryImageSearchJobListRequest::setJobIds(const std::string& jobIds)
{
jobIds_ = jobIds;
setParameter("JobIds", jobIds);
}
std::string QueryImageSearchJobListRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void QueryImageSearchJobListRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long QueryImageSearchJobListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryImageSearchJobListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryImageSearchJobListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryImageSearchJobListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,107 @@
/*
* 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/mts/model/QueryImageSearchJobListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryImageSearchJobListResult::QueryImageSearchJobListResult() :
ServiceResult()
{}
QueryImageSearchJobListResult::QueryImageSearchJobListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryImageSearchJobListResult::~QueryImageSearchJobListResult()
{}
void QueryImageSearchJobListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allImageSearchJobList = value["ImageSearchJobList"]["ImageSearchJob"];
for (auto value : allImageSearchJobList)
{
ImageSearchJob imageSearchJobListObject;
if(!value["Id"].isNull())
imageSearchJobListObject.id = value["Id"].asString();
if(!value["UserData"].isNull())
imageSearchJobListObject.userData = value["UserData"].asString();
if(!value["PipelineId"].isNull())
imageSearchJobListObject.pipelineId = value["PipelineId"].asString();
if(!value["State"].isNull())
imageSearchJobListObject.state = value["State"].asString();
if(!value["Code"].isNull())
imageSearchJobListObject.code = value["Code"].asString();
if(!value["Message"].isNull())
imageSearchJobListObject.message = value["Message"].asString();
if(!value["CreationTime"].isNull())
imageSearchJobListObject.creationTime = value["CreationTime"].asString();
if(!value["FinishTime"].isNull())
imageSearchJobListObject.finishTime = value["FinishTime"].asString();
auto inputVideoNode = value["InputVideo"];
if(!inputVideoNode["Bucket"].isNull())
imageSearchJobListObject.inputVideo.bucket = inputVideoNode["Bucket"].asString();
if(!inputVideoNode["Location"].isNull())
imageSearchJobListObject.inputVideo.location = inputVideoNode["Location"].asString();
if(!inputVideoNode["Object"].isNull())
imageSearchJobListObject.inputVideo.object = inputVideoNode["Object"].asString();
auto inputImageNode = value["inputImage"];
if(!inputImageNode["Bucket"].isNull())
imageSearchJobListObject.inputImage.bucket = inputImageNode["Bucket"].asString();
if(!inputImageNode["Location"].isNull())
imageSearchJobListObject.inputImage.location = inputImageNode["Location"].asString();
if(!inputImageNode["Object"].isNull())
imageSearchJobListObject.inputImage.object = inputImageNode["Object"].asString();
auto resultNode = value["Result"];
auto allImageSearchShots = value["ImageSearchShots"]["ImageSearchShotsItem"];
for (auto value : allImageSearchShots)
{
ImageSearchJob::Result::ImageSearchShotsItem imageSearchShotsItemObject;
if(!value["MatchedTimestamp"].isNull())
imageSearchShotsItemObject.matchedTimestamp = value["MatchedTimestamp"].asString();
if(!value["MatchedFrame"].isNull())
imageSearchShotsItemObject.matchedFrame = value["MatchedFrame"].asString();
if(!value["Similarity"].isNull())
imageSearchShotsItemObject.similarity = value["Similarity"].asString();
imageSearchJobListObject.result.imageSearchShots.push_back(imageSearchShotsItemObject);
}
imageSearchJobList_.push_back(imageSearchJobListObject);
}
auto allNonExistIds = value["NonExistIds"]["String"];
for (const auto &item : allNonExistIds)
nonExistIds_.push_back(item.asString());
}
std::vector<QueryImageSearchJobListResult::ImageSearchJob> QueryImageSearchJobListResult::getImageSearchJobList()const
{
return imageSearchJobList_;
}
std::vector<std::string> QueryImageSearchJobListResult::getNonExistIds()const
{
return nonExistIds_;
}

View File

@@ -0,0 +1,159 @@
/*
* 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/mts/model/QueryMCJobListRequest.h>
using AlibabaCloud::Mts::Model::QueryMCJobListRequest;
QueryMCJobListRequest::QueryMCJobListRequest() :
RpcServiceRequest("mts", "2014-06-18", "QueryMCJobList")
{}
QueryMCJobListRequest::~QueryMCJobListRequest()
{}
long QueryMCJobListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryMCJobListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryMCJobListRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryMCJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryMCJobListRequest::getNextPageToken()const
{
return nextPageToken_;
}
void QueryMCJobListRequest::setNextPageToken(const std::string& nextPageToken)
{
nextPageToken_ = nextPageToken;
setParameter("NextPageToken", nextPageToken);
}
std::string QueryMCJobListRequest::getStartOfJobCreatedTimeRange()const
{
return startOfJobCreatedTimeRange_;
}
void QueryMCJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange)
{
startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange;
setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange);
}
std::string QueryMCJobListRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void QueryMCJobListRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long QueryMCJobListRequest::getMaximumPageSize()const
{
return maximumPageSize_;
}
void QueryMCJobListRequest::setMaximumPageSize(long maximumPageSize)
{
maximumPageSize_ = maximumPageSize;
setParameter("MaximumPageSize", std::to_string(maximumPageSize));
}
long QueryMCJobListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryMCJobListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryMCJobListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryMCJobListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string QueryMCJobListRequest::getPipelineId()const
{
return pipelineId_;
}
void QueryMCJobListRequest::setPipelineId(const std::string& pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", pipelineId);
}
std::string QueryMCJobListRequest::getJobIds()const
{
return jobIds_;
}
void QueryMCJobListRequest::setJobIds(const std::string& jobIds)
{
jobIds_ = jobIds;
setParameter("JobIds", jobIds);
}
std::string QueryMCJobListRequest::getState()const
{
return state_;
}
void QueryMCJobListRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
}
std::string QueryMCJobListRequest::getEndOfJobCreatedTimeRange()const
{
return endOfJobCreatedTimeRange_;
}
void QueryMCJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange)
{
endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange;
setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange);
}

View File

@@ -0,0 +1,620 @@
/*
* 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/mts/model/QueryMCJobListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryMCJobListResult::QueryMCJobListResult() :
ServiceResult()
{}
QueryMCJobListResult::QueryMCJobListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMCJobListResult::~QueryMCJobListResult()
{}
void QueryMCJobListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobList = value["JobList"]["Job"];
for (auto value : allJobList)
{
Job jobListObject;
if(!value["JobId"].isNull())
jobListObject.jobId = value["JobId"].asString();
if(!value["UserData"].isNull())
jobListObject.userData = value["UserData"].asString();
if(!value["PipelineId"].isNull())
jobListObject.pipelineId = value["PipelineId"].asString();
if(!value["State"].isNull())
jobListObject.state = value["State"].asString();
if(!value["Code"].isNull())
jobListObject.code = value["Code"].asString();
if(!value["Message"].isNull())
jobListObject.message = value["Message"].asString();
if(!value["CreationTime"].isNull())
jobListObject.creationTime = value["CreationTime"].asString();
if(!value["ResultOutputFile"].isNull())
jobListObject.resultOutputFile = value["ResultOutputFile"].asString();
auto resultNode = value["Result"];
if(!resultNode["Suggestion"].isNull())
jobListObject.result.suggestion = resultNode["Suggestion"].asString();
if(!resultNode["Score"].isNull())
jobListObject.result.score = resultNode["Score"].asString();
auto pornResultNode = resultNode["PornResult"];
auto allPornVideos = value["PornVideos"]["PornVideo"];
for (auto value : allPornVideos)
{
Job::Result::PornResult::PornVideo pornVideoObject;
if(!value["Suggestion"].isNull())
pornVideoObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
pornVideoObject.score = value["Score"].asString();
if(!value["Time"].isNull())
pornVideoObject.time = value["Time"].asString();
if(!value["Object"].isNull())
pornVideoObject.object = value["Object"].asString();
jobListObject.result.pornResult.pornVideos.push_back(pornVideoObject);
}
auto allPornAudios = value["PornAudios"]["PornAudio"];
for (auto value : allPornAudios)
{
Job::Result::PornResult::PornAudio pornAudioObject;
if(!value["Suggestion"].isNull())
pornAudioObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
pornAudioObject.score = value["Score"].asString();
if(!value["StartTime"].isNull())
pornAudioObject.startTime = value["StartTime"].asString();
if(!value["EndTime"].isNull())
pornAudioObject.endTime = value["EndTime"].asString();
if(!value["Text"].isNull())
pornAudioObject.text = value["Text"].asString();
if(!value["Object"].isNull())
pornAudioObject.object = value["Object"].asString();
jobListObject.result.pornResult.pornAudios.push_back(pornAudioObject);
}
auto allPornTexts = value["PornTexts"]["PornText"];
for (auto value : allPornTexts)
{
Job::Result::PornResult::PornText pornTextObject;
if(!value["Suggestion"].isNull())
pornTextObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
pornTextObject.score = value["Score"].asString();
if(!value["Text"].isNull())
pornTextObject.text = value["Text"].asString();
jobListObject.result.pornResult.pornTexts.push_back(pornTextObject);
}
auto allPornImages = value["PornImages"]["PornImage"];
for (auto value : allPornImages)
{
Job::Result::PornResult::PornImage pornImageObject;
if(!value["Suggestion"].isNull())
pornImageObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
pornImageObject.score = value["Score"].asString();
if(!value["Url"].isNull())
pornImageObject.url = value["Url"].asString();
if(!value["Text"].isNull())
pornImageObject.text = value["Text"].asString();
jobListObject.result.pornResult.pornImages.push_back(pornImageObject);
}
auto allPornOcrs = value["PornOcrs"]["PornOcr"];
for (auto value : allPornOcrs)
{
Job::Result::PornResult::PornOcr pornOcrObject;
if(!value["Suggestion"].isNull())
pornOcrObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
pornOcrObject.score = value["Score"].asString();
if(!value["Time"].isNull())
pornOcrObject.time = value["Time"].asString();
if(!value["Object"].isNull())
pornOcrObject.object = value["Object"].asString();
if(!value["Text"].isNull())
pornOcrObject.text = value["Text"].asString();
jobListObject.result.pornResult.pornOcrs.push_back(pornOcrObject);
}
auto terrorismResultNode = resultNode["TerrorismResult"];
auto allTerrorismVideos = value["TerrorismVideos"]["TerrorismVideo"];
for (auto value : allTerrorismVideos)
{
Job::Result::TerrorismResult::TerrorismVideo terrorismVideoObject;
if(!value["Suggestion"].isNull())
terrorismVideoObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
terrorismVideoObject.score = value["Score"].asString();
if(!value["Time"].isNull())
terrorismVideoObject.time = value["Time"].asString();
if(!value["Object"].isNull())
terrorismVideoObject.object = value["Object"].asString();
jobListObject.result.terrorismResult.terrorismVideos.push_back(terrorismVideoObject);
}
auto allTerrorismAudios = value["TerrorismAudios"]["TerrorismAudio"];
for (auto value : allTerrorismAudios)
{
Job::Result::TerrorismResult::TerrorismAudio terrorismAudioObject;
if(!value["Suggestion"].isNull())
terrorismAudioObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
terrorismAudioObject.score = value["Score"].asString();
if(!value["StartTime"].isNull())
terrorismAudioObject.startTime = value["StartTime"].asString();
if(!value["EndTime"].isNull())
terrorismAudioObject.endTime = value["EndTime"].asString();
if(!value["Text"].isNull())
terrorismAudioObject.text = value["Text"].asString();
if(!value["Object"].isNull())
terrorismAudioObject.object = value["Object"].asString();
jobListObject.result.terrorismResult.terrorismAudios.push_back(terrorismAudioObject);
}
auto allTerrorismTexts = value["TerrorismTexts"]["TerrorismText"];
for (auto value : allTerrorismTexts)
{
Job::Result::TerrorismResult::TerrorismText terrorismTextObject;
if(!value["Suggestion"].isNull())
terrorismTextObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
terrorismTextObject.score = value["Score"].asString();
if(!value["Text"].isNull())
terrorismTextObject.text = value["Text"].asString();
jobListObject.result.terrorismResult.terrorismTexts.push_back(terrorismTextObject);
}
auto allTerrorismImages = value["TerrorismImages"]["TerrorismImage"];
for (auto value : allTerrorismImages)
{
Job::Result::TerrorismResult::TerrorismImage terrorismImageObject;
if(!value["Suggestion"].isNull())
terrorismImageObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
terrorismImageObject.score = value["Score"].asString();
if(!value["Url"].isNull())
terrorismImageObject.url = value["Url"].asString();
if(!value["Text"].isNull())
terrorismImageObject.text = value["Text"].asString();
jobListObject.result.terrorismResult.terrorismImages.push_back(terrorismImageObject);
}
auto allTerrorismOcrs = value["TerrorismOcrs"]["TerrorismOcr"];
for (auto value : allTerrorismOcrs)
{
Job::Result::TerrorismResult::TerrorismOcr terrorismOcrObject;
if(!value["Suggestion"].isNull())
terrorismOcrObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
terrorismOcrObject.score = value["Score"].asString();
if(!value["Time"].isNull())
terrorismOcrObject.time = value["Time"].asString();
if(!value["Object"].isNull())
terrorismOcrObject.object = value["Object"].asString();
if(!value["Text"].isNull())
terrorismOcrObject.text = value["Text"].asString();
jobListObject.result.terrorismResult.terrorismOcrs.push_back(terrorismOcrObject);
}
auto politicsResultNode = resultNode["PoliticsResult"];
auto allPoliticsVideos = value["PoliticsVideos"]["PoliticsVideo"];
for (auto value : allPoliticsVideos)
{
Job::Result::PoliticsResult::PoliticsVideo politicsVideoObject;
if(!value["Suggestion"].isNull())
politicsVideoObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
politicsVideoObject.score = value["Score"].asString();
if(!value["Time"].isNull())
politicsVideoObject.time = value["Time"].asString();
if(!value["Object"].isNull())
politicsVideoObject.object = value["Object"].asString();
jobListObject.result.politicsResult.politicsVideos.push_back(politicsVideoObject);
}
auto allPoliticsAudios = value["PoliticsAudios"]["PoliticsAudio"];
for (auto value : allPoliticsAudios)
{
Job::Result::PoliticsResult::PoliticsAudio politicsAudioObject;
if(!value["Suggestion"].isNull())
politicsAudioObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
politicsAudioObject.score = value["Score"].asString();
if(!value["StartTime"].isNull())
politicsAudioObject.startTime = value["StartTime"].asString();
if(!value["EndTime"].isNull())
politicsAudioObject.endTime = value["EndTime"].asString();
if(!value["Text"].isNull())
politicsAudioObject.text = value["Text"].asString();
if(!value["Object"].isNull())
politicsAudioObject.object = value["Object"].asString();
jobListObject.result.politicsResult.politicsAudios.push_back(politicsAudioObject);
}
auto allPoliticsTexts = value["PoliticsTexts"]["PoliticsText"];
for (auto value : allPoliticsTexts)
{
Job::Result::PoliticsResult::PoliticsText politicsTextObject;
if(!value["Suggestion"].isNull())
politicsTextObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
politicsTextObject.score = value["Score"].asString();
if(!value["Text"].isNull())
politicsTextObject.text = value["Text"].asString();
jobListObject.result.politicsResult.politicsTexts.push_back(politicsTextObject);
}
auto allPoliticsImages = value["PoliticsImages"]["PoliticsImage"];
for (auto value : allPoliticsImages)
{
Job::Result::PoliticsResult::PoliticsImage politicsImageObject;
if(!value["Suggestion"].isNull())
politicsImageObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
politicsImageObject.score = value["Score"].asString();
if(!value["Url"].isNull())
politicsImageObject.url = value["Url"].asString();
if(!value["Text"].isNull())
politicsImageObject.text = value["Text"].asString();
jobListObject.result.politicsResult.politicsImages.push_back(politicsImageObject);
}
auto allPoliticsOcrs = value["PoliticsOcrs"]["PoliticsOcr"];
for (auto value : allPoliticsOcrs)
{
Job::Result::PoliticsResult::PoliticsOcr politicsOcrObject;
if(!value["Suggestion"].isNull())
politicsOcrObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
politicsOcrObject.score = value["Score"].asString();
if(!value["Time"].isNull())
politicsOcrObject.time = value["Time"].asString();
if(!value["Object"].isNull())
politicsOcrObject.object = value["Object"].asString();
if(!value["Text"].isNull())
politicsOcrObject.text = value["Text"].asString();
jobListObject.result.politicsResult.politicsOcrs.push_back(politicsOcrObject);
}
auto adResultNode = resultNode["AdResult"];
auto allAdVideos = value["AdVideos"]["AdVideo"];
for (auto value : allAdVideos)
{
Job::Result::AdResult::AdVideo adVideoObject;
if(!value["Suggestion"].isNull())
adVideoObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
adVideoObject.score = value["Score"].asString();
if(!value["Time"].isNull())
adVideoObject.time = value["Time"].asString();
if(!value["Object"].isNull())
adVideoObject.object = value["Object"].asString();
jobListObject.result.adResult.adVideos.push_back(adVideoObject);
}
auto allAdAudios = value["AdAudios"]["AdAudio"];
for (auto value : allAdAudios)
{
Job::Result::AdResult::AdAudio adAudioObject;
if(!value["Suggestion"].isNull())
adAudioObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
adAudioObject.score = value["Score"].asString();
if(!value["StartTime"].isNull())
adAudioObject.startTime = value["StartTime"].asString();
if(!value["EndTime"].isNull())
adAudioObject.endTime = value["EndTime"].asString();
if(!value["Text"].isNull())
adAudioObject.text = value["Text"].asString();
if(!value["Object"].isNull())
adAudioObject.object = value["Object"].asString();
jobListObject.result.adResult.adAudios.push_back(adAudioObject);
}
auto allAdTexts = value["AdTexts"]["AdText"];
for (auto value : allAdTexts)
{
Job::Result::AdResult::AdText adTextObject;
if(!value["Suggestion"].isNull())
adTextObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
adTextObject.score = value["Score"].asString();
if(!value["Text"].isNull())
adTextObject.text = value["Text"].asString();
jobListObject.result.adResult.adTexts.push_back(adTextObject);
}
auto allAdImages = value["AdImages"]["AdImage"];
for (auto value : allAdImages)
{
Job::Result::AdResult::AdImage adImageObject;
if(!value["Suggestion"].isNull())
adImageObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
adImageObject.score = value["Score"].asString();
if(!value["Url"].isNull())
adImageObject.url = value["Url"].asString();
if(!value["Text"].isNull())
adImageObject.text = value["Text"].asString();
jobListObject.result.adResult.adImages.push_back(adImageObject);
}
auto allAdOcrs = value["AdOcrs"]["AdOcr"];
for (auto value : allAdOcrs)
{
Job::Result::AdResult::AdOcr adOcrObject;
if(!value["Suggestion"].isNull())
adOcrObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
adOcrObject.score = value["Score"].asString();
if(!value["Time"].isNull())
adOcrObject.time = value["Time"].asString();
if(!value["Object"].isNull())
adOcrObject.object = value["Object"].asString();
if(!value["Text"].isNull())
adOcrObject.text = value["Text"].asString();
jobListObject.result.adResult.adOcrs.push_back(adOcrObject);
}
auto qrcodeResultNode = resultNode["QrcodeResult"];
auto allQrcodeVideos = value["QrcodeVideos"]["QrcodeVideo"];
for (auto value : allQrcodeVideos)
{
Job::Result::QrcodeResult::QrcodeVideo qrcodeVideoObject;
if(!value["Suggestion"].isNull())
qrcodeVideoObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
qrcodeVideoObject.score = value["Score"].asString();
if(!value["Time"].isNull())
qrcodeVideoObject.time = value["Time"].asString();
if(!value["Object"].isNull())
qrcodeVideoObject.object = value["Object"].asString();
jobListObject.result.qrcodeResult.qrcodeVideos.push_back(qrcodeVideoObject);
}
auto allQrcodeImages = value["QrcodeImages"]["QrcodeImage"];
for (auto value : allQrcodeImages)
{
Job::Result::QrcodeResult::QrcodeImage qrcodeImageObject;
if(!value["Suggestion"].isNull())
qrcodeImageObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
qrcodeImageObject.score = value["Score"].asString();
if(!value["Url"].isNull())
qrcodeImageObject.url = value["Url"].asString();
if(!value["Text"].isNull())
qrcodeImageObject.text = value["Text"].asString();
jobListObject.result.qrcodeResult.qrcodeImages.push_back(qrcodeImageObject);
}
auto liveResultNode = resultNode["LiveResult"];
auto allLiveVideos = value["LiveVideos"]["LiveVideo"];
for (auto value : allLiveVideos)
{
Job::Result::LiveResult::LiveVideo liveVideoObject;
if(!value["Suggestion"].isNull())
liveVideoObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
liveVideoObject.score = value["Score"].asString();
if(!value["Time"].isNull())
liveVideoObject.time = value["Time"].asString();
if(!value["Object"].isNull())
liveVideoObject.object = value["Object"].asString();
jobListObject.result.liveResult.liveVideos.push_back(liveVideoObject);
}
auto allLiveImages = value["LiveImages"]["LiveImage"];
for (auto value : allLiveImages)
{
Job::Result::LiveResult::LiveImage liveImageObject;
if(!value["Suggestion"].isNull())
liveImageObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
liveImageObject.score = value["Score"].asString();
if(!value["Url"].isNull())
liveImageObject.url = value["Url"].asString();
if(!value["Text"].isNull())
liveImageObject.text = value["Text"].asString();
jobListObject.result.liveResult.liveImages.push_back(liveImageObject);
}
auto logoResultNode = resultNode["LogoResult"];
auto allLogoVideos = value["LogoVideos"]["LogoVideo"];
for (auto value : allLogoVideos)
{
Job::Result::LogoResult::LogoVideo logoVideoObject;
if(!value["Suggestion"].isNull())
logoVideoObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
logoVideoObject.score = value["Score"].asString();
if(!value["Time"].isNull())
logoVideoObject.time = value["Time"].asString();
if(!value["Object"].isNull())
logoVideoObject.object = value["Object"].asString();
jobListObject.result.logoResult.logoVideos.push_back(logoVideoObject);
}
auto allLogoImages = value["LogoImages"]["LogoImage"];
for (auto value : allLogoImages)
{
Job::Result::LogoResult::LogoImage logoImageObject;
if(!value["Suggestion"].isNull())
logoImageObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
logoImageObject.score = value["Score"].asString();
if(!value["Url"].isNull())
logoImageObject.url = value["Url"].asString();
if(!value["Text"].isNull())
logoImageObject.text = value["Text"].asString();
jobListObject.result.logoResult.logoImages.push_back(logoImageObject);
}
auto abuseResultNode = resultNode["AbuseResult"];
auto allAbuseAudios = value["AbuseAudios"]["AbuseAudio"];
for (auto value : allAbuseAudios)
{
Job::Result::AbuseResult::AbuseAudio abuseAudioObject;
if(!value["Suggestion"].isNull())
abuseAudioObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
abuseAudioObject.score = value["Score"].asString();
if(!value["StartTime"].isNull())
abuseAudioObject.startTime = value["StartTime"].asString();
if(!value["EndTime"].isNull())
abuseAudioObject.endTime = value["EndTime"].asString();
if(!value["Text"].isNull())
abuseAudioObject.text = value["Text"].asString();
if(!value["Object"].isNull())
abuseAudioObject.object = value["Object"].asString();
jobListObject.result.abuseResult.abuseAudios.push_back(abuseAudioObject);
}
auto allAbuseTexts = value["AbuseTexts"]["AbuseText"];
for (auto value : allAbuseTexts)
{
Job::Result::AbuseResult::AbuseText abuseTextObject;
if(!value["Suggestion"].isNull())
abuseTextObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
abuseTextObject.score = value["Score"].asString();
if(!value["Text"].isNull())
abuseTextObject.text = value["Text"].asString();
jobListObject.result.abuseResult.abuseTexts.push_back(abuseTextObject);
}
auto allAbuseOcrs = value["AbuseOcrs"]["AbuseOcr"];
for (auto value : allAbuseOcrs)
{
Job::Result::AbuseResult::AbuseOcr abuseOcrObject;
if(!value["Suggestion"].isNull())
abuseOcrObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
abuseOcrObject.score = value["Score"].asString();
if(!value["Time"].isNull())
abuseOcrObject.time = value["Time"].asString();
if(!value["Object"].isNull())
abuseOcrObject.object = value["Object"].asString();
if(!value["Text"].isNull())
abuseOcrObject.text = value["Text"].asString();
jobListObject.result.abuseResult.abuseOcrs.push_back(abuseOcrObject);
}
auto contrabandResultNode = resultNode["ContrabandResult"];
auto allContrabandAudios = value["ContrabandAudios"]["ContrabandAudio"];
for (auto value : allContrabandAudios)
{
Job::Result::ContrabandResult::ContrabandAudio contrabandAudioObject;
if(!value["Suggestion"].isNull())
contrabandAudioObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
contrabandAudioObject.score = value["Score"].asString();
if(!value["StartTime"].isNull())
contrabandAudioObject.startTime = value["StartTime"].asString();
if(!value["EndTime"].isNull())
contrabandAudioObject.endTime = value["EndTime"].asString();
if(!value["Text"].isNull())
contrabandAudioObject.text = value["Text"].asString();
if(!value["Object"].isNull())
contrabandAudioObject.object = value["Object"].asString();
jobListObject.result.contrabandResult.contrabandAudios.push_back(contrabandAudioObject);
}
auto allContrabandTexts = value["ContrabandTexts"]["ContrabandText"];
for (auto value : allContrabandTexts)
{
Job::Result::ContrabandResult::ContrabandText contrabandTextObject;
if(!value["Suggestion"].isNull())
contrabandTextObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
contrabandTextObject.score = value["Score"].asString();
if(!value["Text"].isNull())
contrabandTextObject.text = value["Text"].asString();
jobListObject.result.contrabandResult.contrabandTexts.push_back(contrabandTextObject);
}
auto allContrabandOcrs = value["ContrabandOcrs"]["ContrabandOcr"];
for (auto value : allContrabandOcrs)
{
Job::Result::ContrabandResult::ContrabandOcr contrabandOcrObject;
if(!value["Suggestion"].isNull())
contrabandOcrObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
contrabandOcrObject.score = value["Score"].asString();
if(!value["Time"].isNull())
contrabandOcrObject.time = value["Time"].asString();
if(!value["Object"].isNull())
contrabandOcrObject.object = value["Object"].asString();
if(!value["Text"].isNull())
contrabandOcrObject.text = value["Text"].asString();
jobListObject.result.contrabandResult.contrabandOcrs.push_back(contrabandOcrObject);
}
auto spamResultNode = resultNode["SpamResult"];
auto allSpamAudios = value["SpamAudios"]["SpamAudio"];
for (auto value : allSpamAudios)
{
Job::Result::SpamResult::SpamAudio spamAudioObject;
if(!value["Suggestion"].isNull())
spamAudioObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
spamAudioObject.score = value["Score"].asString();
if(!value["StartTime"].isNull())
spamAudioObject.startTime = value["StartTime"].asString();
if(!value["EndTime"].isNull())
spamAudioObject.endTime = value["EndTime"].asString();
if(!value["Text"].isNull())
spamAudioObject.text = value["Text"].asString();
if(!value["Object"].isNull())
spamAudioObject.object = value["Object"].asString();
jobListObject.result.spamResult.spamAudios.push_back(spamAudioObject);
}
auto allSpamTexts = value["SpamTexts"]["SpamText"];
for (auto value : allSpamTexts)
{
Job::Result::SpamResult::SpamText spamTextObject;
if(!value["Suggestion"].isNull())
spamTextObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
spamTextObject.score = value["Score"].asString();
if(!value["Text"].isNull())
spamTextObject.text = value["Text"].asString();
jobListObject.result.spamResult.spamTexts.push_back(spamTextObject);
}
auto allSpamOcrs = value["SpamOcrs"]["SpamOcr"];
for (auto value : allSpamOcrs)
{
Job::Result::SpamResult::SpamOcr spamOcrObject;
if(!value["Suggestion"].isNull())
spamOcrObject.suggestion = value["Suggestion"].asString();
if(!value["Score"].isNull())
spamOcrObject.score = value["Score"].asString();
if(!value["Time"].isNull())
spamOcrObject.time = value["Time"].asString();
if(!value["Object"].isNull())
spamOcrObject.object = value["Object"].asString();
if(!value["Text"].isNull())
spamOcrObject.text = value["Text"].asString();
jobListObject.result.spamResult.spamOcrs.push_back(spamOcrObject);
}
jobList_.push_back(jobListObject);
}
auto allNonExistIds = value["NonExistIds"]["String"];
for (const auto &item : allNonExistIds)
nonExistIds_.push_back(item.asString());
if(!value["NextPageToken"].isNull())
nextPageToken_ = value["NextPageToken"].asString();
}
std::string QueryMCJobListResult::getNextPageToken()const
{
return nextPageToken_;
}
std::vector<QueryMCJobListResult::Job> QueryMCJobListResult::getJobList()const
{
return jobList_;
}
std::vector<std::string> QueryMCJobListResult::getNonExistIds()const
{
return nonExistIds_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/mts/model/QueryMCTemplateListRequest.h>
using AlibabaCloud::Mts::Model::QueryMCTemplateListRequest;
QueryMCTemplateListRequest::QueryMCTemplateListRequest() :
RpcServiceRequest("mts", "2014-06-18", "QueryMCTemplateList")
{}
QueryMCTemplateListRequest::~QueryMCTemplateListRequest()
{}
long QueryMCTemplateListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryMCTemplateListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryMCTemplateListRequest::getTemplateIds()const
{
return templateIds_;
}
void QueryMCTemplateListRequest::setTemplateIds(const std::string& templateIds)
{
templateIds_ = templateIds;
setParameter("TemplateIds", templateIds);
}
std::string QueryMCTemplateListRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryMCTemplateListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryMCTemplateListRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void QueryMCTemplateListRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long QueryMCTemplateListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryMCTemplateListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryMCTemplateListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryMCTemplateListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,90 @@
/*
* 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/mts/model/QueryMCTemplateListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryMCTemplateListResult::QueryMCTemplateListResult() :
ServiceResult()
{}
QueryMCTemplateListResult::QueryMCTemplateListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMCTemplateListResult::~QueryMCTemplateListResult()
{}
void QueryMCTemplateListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTemplateList = value["TemplateList"]["Template"];
for (auto value : allTemplateList)
{
_Template templateListObject;
if(!value["TemplateId"].isNull())
templateListObject.templateId = value["TemplateId"].asString();
if(!value["Name"].isNull())
templateListObject.name = value["Name"].asString();
if(!value["State"].isNull())
templateListObject.state = value["State"].asString();
if(!value["Porn"].isNull())
templateListObject.porn = value["Porn"].asString();
if(!value["Terrorism"].isNull())
templateListObject.terrorism = value["Terrorism"].asString();
if(!value["Politics"].isNull())
templateListObject.politics = value["Politics"].asString();
if(!value["Ad"].isNull())
templateListObject.ad = value["Ad"].asString();
if(!value["Qrcode"].isNull())
templateListObject.qrcode = value["Qrcode"].asString();
if(!value["Live"].isNull())
templateListObject.live = value["Live"].asString();
if(!value["Logo"].isNull())
templateListObject.logo = value["Logo"].asString();
if(!value["Abuse"].isNull())
templateListObject.abuse = value["Abuse"].asString();
if(!value["Contraband"].isNull())
templateListObject.contraband = value["Contraband"].asString();
if(!value["Spam"].isNull())
templateListObject.spam = value["Spam"].asString();
templateList_.push_back(templateListObject);
}
auto allNonExistTids = value["NonExistTids"]["String"];
for (const auto &item : allNonExistTids)
nonExistTids_.push_back(item.asString());
}
std::vector<QueryMCTemplateListResult::_Template> QueryMCTemplateListResult::getTemplateList()const
{
return templateList_;
}
std::vector<std::string> QueryMCTemplateListResult::getNonExistTids()const
{
return nonExistTids_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/mts/model/QueryMcuJobRequest.h>
using AlibabaCloud::Mts::Model::QueryMcuJobRequest;
QueryMcuJobRequest::QueryMcuJobRequest() :
RpcServiceRequest("mts", "2014-06-18", "QueryMcuJob")
{}
QueryMcuJobRequest::~QueryMcuJobRequest()
{}
long QueryMcuJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryMcuJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryMcuJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryMcuJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryMcuJobRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void QueryMcuJobRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string QueryMcuJobRequest::getJobIds()const
{
return jobIds_;
}
void QueryMcuJobRequest::setJobIds(const std::string& jobIds)
{
jobIds_ = jobIds;
setParameter("JobIds", jobIds);
}
long QueryMcuJobRequest::getOwnerId()const
{
return ownerId_;
}
void QueryMcuJobRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryMcuJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryMcuJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,173 @@
/*
* 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/mts/model/QueryMcuJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryMcuJobResult::QueryMcuJobResult() :
ServiceResult()
{}
QueryMcuJobResult::QueryMcuJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMcuJobResult::~QueryMcuJobResult()
{}
void QueryMcuJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobResult = value["JobResult"]["Job"];
for (auto value : allJobResult)
{
Job jobResultObject;
if(!value["JobId"].isNull())
jobResultObject.jobId = value["JobId"].asString();
if(!value["UserData"].isNull())
jobResultObject.userData = value["UserData"].asString();
if(!value["TemplateId"].isNull())
jobResultObject.templateId = value["TemplateId"].asString();
if(!value["Template"].isNull())
jobResultObject._template = value["Template"].asString();
auto allOcrResult = value["OcrResult"]["Ocr"];
for (auto value : allOcrResult)
{
Job::Ocr ocrResultObject;
if(!value["Time"].isNull())
ocrResultObject.time = value["Time"].asString();
if(!value["OcrText"].isNull())
ocrResultObject.ocrText = value["OcrText"].asString();
if(!value["ImageUrl"].isNull())
ocrResultObject.imageUrl = value["ImageUrl"].asString();
if(!value["ImageId"].isNull())
ocrResultObject.imageId = value["ImageId"].asString();
jobResultObject.ocrResult.push_back(ocrResultObject);
}
auto allTagResult = value["TagResult"]["Tag"];
for (auto value : allTagResult)
{
Job::Tag tagResultObject;
if(!value["Time"].isNull())
tagResultObject.time = value["Time"].asString();
if(!value["ImageUrl"].isNull())
tagResultObject.imageUrl = value["ImageUrl"].asString();
if(!value["ImageId"].isNull())
tagResultObject.imageId = value["ImageId"].asString();
auto allFrameTagInfos = value["FrameTagInfos"]["FrameTagInfo"];
for (auto value : allFrameTagInfos)
{
Job::Tag::FrameTagInfo frameTagInfosObject;
if(!value["Tag"].isNull())
frameTagInfosObject.tag = value["Tag"].asString();
if(!value["Score"].isNull())
frameTagInfosObject.score = value["Score"].asString();
if(!value["Category"].isNull())
frameTagInfosObject.category = value["Category"].asString();
tagResultObject.frameTagInfos.push_back(frameTagInfosObject);
}
jobResultObject.tagResult.push_back(tagResultObject);
}
auto allFaceResult = value["FaceResult"]["Face"];
for (auto value : allFaceResult)
{
Job::Face faceResultObject;
if(!value["Time"].isNull())
faceResultObject.time = value["Time"].asString();
if(!value["ImageUrl"].isNull())
faceResultObject.imageUrl = value["ImageUrl"].asString();
if(!value["ImageId"].isNull())
faceResultObject.imageId = value["ImageId"].asString();
auto allCelebrities = value["Celebrities"]["Celebrity"];
for (auto value : allCelebrities)
{
Job::Face::Celebrity celebritiesObject;
if(!value["Name"].isNull())
celebritiesObject.name = value["Name"].asString();
if(!value["Score"].isNull())
celebritiesObject.score = value["Score"].asString();
if(!value["Target"].isNull())
celebritiesObject.target = value["Target"].asString();
faceResultObject.celebrities.push_back(celebritiesObject);
}
jobResultObject.faceResult.push_back(faceResultObject);
}
auto inputNode = value["Input"];
if(!inputNode["Bucket"].isNull())
jobResultObject.input.bucket = inputNode["Bucket"].asString();
if(!inputNode["Location"].isNull())
jobResultObject.input.location = inputNode["Location"].asString();
if(!inputNode["Object"].isNull())
jobResultObject.input.object = inputNode["Object"].asString();
auto asrResultNode = value["AsrResult"];
if(!asrResultNode["Duration"].isNull())
jobResultObject.asrResult.duration = asrResultNode["Duration"].asString();
auto allAsrTextList = value["AsrTextList"]["AsrText"];
for (auto value : allAsrTextList)
{
Job::AsrResult::AsrText asrTextObject;
if(!value["StartTime"].isNull())
asrTextObject.startTime = std::stoi(value["StartTime"].asString());
if(!value["EndTime"].isNull())
asrTextObject.endTime = value["EndTime"].asString();
if(!value["ChannelId"].isNull())
asrTextObject.channelId = value["ChannelId"].asString();
if(!value["SpeechRate"].isNull())
asrTextObject.speechRate = value["SpeechRate"].asString();
if(!value["Text"].isNull())
asrTextObject.text = value["Text"].asString();
jobResultObject.asrResult.asrTextList.push_back(asrTextObject);
}
auto categoryResultNode = value["CategoryResult"];
if(!categoryResultNode["Details"].isNull())
jobResultObject.categoryResult.details = categoryResultNode["Details"].asString();
auto allCategories = value["Categories"]["Category"];
for (auto value : allCategories)
{
Job::CategoryResult::Category categoryObject;
if(!value["Label"].isNull())
categoryObject.label = value["Label"].asString();
if(!value["Score"].isNull())
categoryObject.score = value["Score"].asString();
jobResultObject.categoryResult.categories.push_back(categoryObject);
}
jobResult_.push_back(jobResultObject);
}
auto allNonExistJobIds = value["NonExistJobIds"]["String"];
for (const auto &item : allNonExistJobIds)
nonExistJobIds_.push_back(item.asString());
}
std::vector<std::string> QueryMcuJobResult::getNonExistJobIds()const
{
return nonExistJobIds_;
}
std::vector<QueryMcuJobResult::Job> QueryMcuJobResult::getJobResult()const
{
return jobResult_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/mts/model/QueryMcuTemplateRequest.h>
using AlibabaCloud::Mts::Model::QueryMcuTemplateRequest;
QueryMcuTemplateRequest::QueryMcuTemplateRequest() :
RpcServiceRequest("mts", "2014-06-18", "QueryMcuTemplate")
{}
QueryMcuTemplateRequest::~QueryMcuTemplateRequest()
{}
long QueryMcuTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryMcuTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryMcuTemplateRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void QueryMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long QueryMcuTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void QueryMcuTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryMcuTemplateRequest::getTemplateId()const
{
return templateId_;
}
void QueryMcuTemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}
std::string QueryMcuTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,60 @@
/*
* 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/mts/model/QueryMcuTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryMcuTemplateResult::QueryMcuTemplateResult() :
ServiceResult()
{}
QueryMcuTemplateResult::QueryMcuTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMcuTemplateResult::~QueryMcuTemplateResult()
{}
void QueryMcuTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTemplates = value["Templates"]["Job"];
for (auto value : allTemplates)
{
Job templatesObject;
if(!value["TemplateId"].isNull())
templatesObject.templateId = value["TemplateId"].asString();
if(!value["Template"].isNull())
templatesObject._template = value["Template"].asString();
templates_.push_back(templatesObject);
}
}
std::vector<QueryMcuTemplateResult::Job> QueryMcuTemplateResult::getTemplates()const
{
return templates_;
}

View 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/mts/model/QueryMediaCensorJobDetailRequest.h>
using AlibabaCloud::Mts::Model::QueryMediaCensorJobDetailRequest;
QueryMediaCensorJobDetailRequest::QueryMediaCensorJobDetailRequest() :
RpcServiceRequest("mts", "2014-06-18", "QueryMediaCensorJobDetail")
{}
QueryMediaCensorJobDetailRequest::~QueryMediaCensorJobDetailRequest()
{}
std::string QueryMediaCensorJobDetailRequest::getJobId()const
{
return jobId_;
}
void QueryMediaCensorJobDetailRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}
long QueryMediaCensorJobDetailRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryMediaCensorJobDetailRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryMediaCensorJobDetailRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryMediaCensorJobDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryMediaCensorJobDetailRequest::getNextPageToken()const
{
return nextPageToken_;
}
void QueryMediaCensorJobDetailRequest::setNextPageToken(const std::string& nextPageToken)
{
nextPageToken_ = nextPageToken;
setParameter("NextPageToken", nextPageToken);
}
std::string QueryMediaCensorJobDetailRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void QueryMediaCensorJobDetailRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long QueryMediaCensorJobDetailRequest::getMaximumPageSize()const
{
return maximumPageSize_;
}
void QueryMediaCensorJobDetailRequest::setMaximumPageSize(long maximumPageSize)
{
maximumPageSize_ = maximumPageSize;
setParameter("MaximumPageSize", std::to_string(maximumPageSize));
}
long QueryMediaCensorJobDetailRequest::getOwnerId()const
{
return ownerId_;
}
void QueryMediaCensorJobDetailRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryMediaCensorJobDetailRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryMediaCensorJobDetailRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,180 @@
/*
* 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/mts/model/QueryMediaCensorJobDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryMediaCensorJobDetailResult::QueryMediaCensorJobDetailResult() :
ServiceResult()
{}
QueryMediaCensorJobDetailResult::QueryMediaCensorJobDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMediaCensorJobDetailResult::~QueryMediaCensorJobDetailResult()
{}
void QueryMediaCensorJobDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto mediaCensorJobDetailNode = value["MediaCensorJobDetail"];
if(!mediaCensorJobDetailNode["Id"].isNull())
mediaCensorJobDetail_.id = mediaCensorJobDetailNode["Id"].asString();
if(!mediaCensorJobDetailNode["UserData"].isNull())
mediaCensorJobDetail_.userData = mediaCensorJobDetailNode["UserData"].asString();
if(!mediaCensorJobDetailNode["PipelineId"].isNull())
mediaCensorJobDetail_.pipelineId = mediaCensorJobDetailNode["PipelineId"].asString();
if(!mediaCensorJobDetailNode["State"].isNull())
mediaCensorJobDetail_.state = mediaCensorJobDetailNode["State"].asString();
if(!mediaCensorJobDetailNode["Code"].isNull())
mediaCensorJobDetail_.code = mediaCensorJobDetailNode["Code"].asString();
if(!mediaCensorJobDetailNode["Suggestion"].isNull())
mediaCensorJobDetail_.suggestion = mediaCensorJobDetailNode["Suggestion"].asString();
if(!mediaCensorJobDetailNode["Message"].isNull())
mediaCensorJobDetail_.message = mediaCensorJobDetailNode["Message"].asString();
if(!mediaCensorJobDetailNode["CreationTime"].isNull())
mediaCensorJobDetail_.creationTime = mediaCensorJobDetailNode["CreationTime"].asString();
auto allCoverImageCensorResults = value["CoverImageCensorResults"]["CoverImageCensorResult"];
for (auto value : allCoverImageCensorResults)
{
MediaCensorJobDetail::CoverImageCensorResult coverImageCensorResultObject;
if(!value["Location"].isNull())
coverImageCensorResultObject.location = value["Location"].asString();
if(!value["Bucket"].isNull())
coverImageCensorResultObject.bucket = value["Bucket"].asString();
if(!value["Object"].isNull())
coverImageCensorResultObject.object = value["Object"].asString();
auto allResults = value["Results"]["Result"];
for (auto value : allResults)
{
MediaCensorJobDetail::CoverImageCensorResult::Result resultsObject;
if(!value["Rate"].isNull())
resultsObject.rate = value["Rate"].asString();
if(!value["Scene"].isNull())
resultsObject.scene = value["Scene"].asString();
if(!value["Label"].isNull())
resultsObject.label = value["Label"].asString();
if(!value["Suggestion"].isNull())
resultsObject.suggestion = value["Suggestion"].asString();
coverImageCensorResultObject.results.push_back(resultsObject);
}
mediaCensorJobDetail_.coverImageCensorResults.push_back(coverImageCensorResultObject);
}
auto titleCensorResultNode = mediaCensorJobDetailNode["TitleCensorResult"];
if(!titleCensorResultNode["Rate"].isNull())
mediaCensorJobDetail_.titleCensorResult.rate = titleCensorResultNode["Rate"].asString();
if(!titleCensorResultNode["Scene"].isNull())
mediaCensorJobDetail_.titleCensorResult.scene = titleCensorResultNode["Scene"].asString();
if(!titleCensorResultNode["Label"].isNull())
mediaCensorJobDetail_.titleCensorResult.label = titleCensorResultNode["Label"].asString();
if(!titleCensorResultNode["Suggestion"].isNull())
mediaCensorJobDetail_.titleCensorResult.suggestion = titleCensorResultNode["Suggestion"].asString();
auto descCensorResultNode = mediaCensorJobDetailNode["DescCensorResult"];
if(!descCensorResultNode["Rate"].isNull())
mediaCensorJobDetail_.descCensorResult.rate = descCensorResultNode["Rate"].asString();
if(!descCensorResultNode["Scene"].isNull())
mediaCensorJobDetail_.descCensorResult.scene = descCensorResultNode["Scene"].asString();
if(!descCensorResultNode["Label"].isNull())
mediaCensorJobDetail_.descCensorResult.label = descCensorResultNode["Label"].asString();
if(!descCensorResultNode["Suggestion"].isNull())
mediaCensorJobDetail_.descCensorResult.suggestion = descCensorResultNode["Suggestion"].asString();
auto barrageCensorResultNode = mediaCensorJobDetailNode["BarrageCensorResult"];
if(!barrageCensorResultNode["Rate"].isNull())
mediaCensorJobDetail_.barrageCensorResult.rate = barrageCensorResultNode["Rate"].asString();
if(!barrageCensorResultNode["Scene"].isNull())
mediaCensorJobDetail_.barrageCensorResult.scene = barrageCensorResultNode["Scene"].asString();
if(!barrageCensorResultNode["Label"].isNull())
mediaCensorJobDetail_.barrageCensorResult.label = barrageCensorResultNode["Label"].asString();
if(!barrageCensorResultNode["Suggestion"].isNull())
mediaCensorJobDetail_.barrageCensorResult.suggestion = barrageCensorResultNode["Suggestion"].asString();
auto inputNode = mediaCensorJobDetailNode["Input"];
if(!inputNode["Bucket"].isNull())
mediaCensorJobDetail_.input.bucket = inputNode["Bucket"].asString();
if(!inputNode["Location"].isNull())
mediaCensorJobDetail_.input.location = inputNode["Location"].asString();
if(!inputNode["Object"].isNull())
mediaCensorJobDetail_.input.object = inputNode["Object"].asString();
auto videoCensorConfigNode = mediaCensorJobDetailNode["VideoCensorConfig"];
if(!videoCensorConfigNode["BizType"].isNull())
mediaCensorJobDetail_.videoCensorConfig.bizType = videoCensorConfigNode["BizType"].asString();
if(!videoCensorConfigNode["VideoCensor"].isNull())
mediaCensorJobDetail_.videoCensorConfig.videoCensor = videoCensorConfigNode["VideoCensor"].asString();
auto outputFileNode = videoCensorConfigNode["OutputFile"];
if(!outputFileNode["Bucket"].isNull())
mediaCensorJobDetail_.videoCensorConfig.outputFile.bucket = outputFileNode["Bucket"].asString();
if(!outputFileNode["Location"].isNull())
mediaCensorJobDetail_.videoCensorConfig.outputFile.location = outputFileNode["Location"].asString();
if(!outputFileNode["Object"].isNull())
mediaCensorJobDetail_.videoCensorConfig.outputFile.object = outputFileNode["Object"].asString();
auto vensorCensorResultNode = mediaCensorJobDetailNode["VensorCensorResult"];
if(!vensorCensorResultNode["NextPageToken"].isNull())
mediaCensorJobDetail_.vensorCensorResult.nextPageToken = vensorCensorResultNode["NextPageToken"].asString();
auto allCensorResults = value["CensorResults"]["CensorResult"];
for (auto value : allCensorResults)
{
MediaCensorJobDetail::VensorCensorResult::CensorResult censorResultObject;
if(!value["Rate"].isNull())
censorResultObject.rate = value["Rate"].asString();
if(!value["Scene"].isNull())
censorResultObject.scene = value["Scene"].asString();
if(!value["Label"].isNull())
censorResultObject.label = value["Label"].asString();
if(!value["Suggestion"].isNull())
censorResultObject.suggestion = value["Suggestion"].asString();
mediaCensorJobDetail_.vensorCensorResult.censorResults.push_back(censorResultObject);
}
auto allVideoTimelines = value["VideoTimelines"]["VideoTimeline"];
for (auto value : allVideoTimelines)
{
MediaCensorJobDetail::VensorCensorResult::VideoTimeline videoTimelineObject;
if(!value["Object"].isNull())
videoTimelineObject.object = value["Object"].asString();
if(!value["Timestamp"].isNull())
videoTimelineObject.timestamp = value["Timestamp"].asString();
auto allCensorResults1 = value["CensorResults"]["CensorResult"];
for (auto value : allCensorResults1)
{
MediaCensorJobDetail::VensorCensorResult::VideoTimeline::CensorResult2 censorResults1Object;
if(!value["Rate"].isNull())
censorResults1Object.rate = value["Rate"].asString();
if(!value["Scene"].isNull())
censorResults1Object.scene = value["Scene"].asString();
if(!value["Label"].isNull())
censorResults1Object.label = value["Label"].asString();
if(!value["Suggestion"].isNull())
censorResults1Object.suggestion = value["Suggestion"].asString();
videoTimelineObject.censorResults1.push_back(censorResults1Object);
}
mediaCensorJobDetail_.vensorCensorResult.videoTimelines.push_back(videoTimelineObject);
}
}
QueryMediaCensorJobDetailResult::MediaCensorJobDetail QueryMediaCensorJobDetailResult::getMediaCensorJobDetail()const
{
return mediaCensorJobDetail_;
}

View File

@@ -0,0 +1,93 @@
/*
* 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/mts/model/QueryMediaFpDeleteJobListRequest.h>
using AlibabaCloud::Mts::Model::QueryMediaFpDeleteJobListRequest;
QueryMediaFpDeleteJobListRequest::QueryMediaFpDeleteJobListRequest() :
RpcServiceRequest("mts", "2014-06-18", "QueryMediaFpDeleteJobList")
{}
QueryMediaFpDeleteJobListRequest::~QueryMediaFpDeleteJobListRequest()
{}
long QueryMediaFpDeleteJobListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryMediaFpDeleteJobListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryMediaFpDeleteJobListRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryMediaFpDeleteJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryMediaFpDeleteJobListRequest::getJobIds()const
{
return jobIds_;
}
void QueryMediaFpDeleteJobListRequest::setJobIds(const std::string& jobIds)
{
jobIds_ = jobIds;
setParameter("JobIds", jobIds);
}
std::string QueryMediaFpDeleteJobListRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void QueryMediaFpDeleteJobListRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long QueryMediaFpDeleteJobListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryMediaFpDeleteJobListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryMediaFpDeleteJobListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryMediaFpDeleteJobListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,84 @@
/*
* 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/mts/model/QueryMediaFpDeleteJobListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryMediaFpDeleteJobListResult::QueryMediaFpDeleteJobListResult() :
ServiceResult()
{}
QueryMediaFpDeleteJobListResult::QueryMediaFpDeleteJobListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryMediaFpDeleteJobListResult::~QueryMediaFpDeleteJobListResult()
{}
void QueryMediaFpDeleteJobListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMediaFpDeleteJobList = value["MediaFpDeleteJobList"]["MediaFpDeleteJob"];
for (auto value : allMediaFpDeleteJobList)
{
MediaFpDeleteJob mediaFpDeleteJobListObject;
if(!value["Id"].isNull())
mediaFpDeleteJobListObject.id = value["Id"].asString();
if(!value["UserData"].isNull())
mediaFpDeleteJobListObject.userData = value["UserData"].asString();
if(!value["PipelineId"].isNull())
mediaFpDeleteJobListObject.pipelineId = value["PipelineId"].asString();
if(!value["State"].isNull())
mediaFpDeleteJobListObject.state = value["State"].asString();
if(!value["Code"].isNull())
mediaFpDeleteJobListObject.code = value["Code"].asString();
if(!value["Message"].isNull())
mediaFpDeleteJobListObject.message = value["Message"].asString();
if(!value["CreationTime"].isNull())
mediaFpDeleteJobListObject.creationTime = value["CreationTime"].asString();
if(!value["FinishTime"].isNull())
mediaFpDeleteJobListObject.finishTime = value["FinishTime"].asString();
if(!value["PrimaryKey"].isNull())
mediaFpDeleteJobListObject.primaryKey = value["PrimaryKey"].asString();
if(!value["FpDBId"].isNull())
mediaFpDeleteJobListObject.fpDBId = value["FpDBId"].asString();
mediaFpDeleteJobList_.push_back(mediaFpDeleteJobListObject);
}
auto allNonExistIds = value["NonExistIds"]["String"];
for (const auto &item : allNonExistIds)
nonExistIds_.push_back(item.asString());
}
std::vector<std::string> QueryMediaFpDeleteJobListResult::getNonExistIds()const
{
return nonExistIds_;
}
std::vector<QueryMediaFpDeleteJobListResult::MediaFpDeleteJob> QueryMediaFpDeleteJobListResult::getMediaFpDeleteJobList()const
{
return mediaFpDeleteJobList_;
}

View File

@@ -54,6 +54,8 @@ void QueryPipelineListResult::parse(const std::string &payload)
pipelineListObject.speed = value["Speed"].asString();
if(!value["SpeedLevel"].isNull())
pipelineListObject.speedLevel = std::stol(value["SpeedLevel"].asString());
if(!value["QuotaAllocate"].isNull())
pipelineListObject.quotaAllocate = std::stol(value["QuotaAllocate"].asString());
if(!value["Role"].isNull())
pipelineListObject.role = value["Role"].asString();
auto notifyConfigNode = value["NotifyConfig"];
@@ -61,6 +63,10 @@ void QueryPipelineListResult::parse(const std::string &payload)
pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["QueueName"].isNull())
pipelineListObject.notifyConfig.queueName = notifyConfigNode["QueueName"].asString();
if(!notifyConfigNode["MqTopic"].isNull())
pipelineListObject.notifyConfig.mqTopic = notifyConfigNode["MqTopic"].asString();
if(!notifyConfigNode["MqTag"].isNull())
pipelineListObject.notifyConfig.mqTag = notifyConfigNode["MqTag"].asString();
pipelineList_.push_back(pipelineListObject);
}
auto allNonExistPids = value["NonExistPids"]["String"];

View File

@@ -84,6 +84,8 @@ void QueryTemplateListResult::parse(const std::string &payload)
templateListObject.video.degrain = videoNode["Degrain"].asString();
if(!videoNode["Qscale"].isNull())
templateListObject.video.qscale = videoNode["Qscale"].asString();
if(!videoNode["LongShortMode"].isNull())
templateListObject.video.longShortMode = videoNode["LongShortMode"].asString();
if(!videoNode["Remove"].isNull())
templateListObject.video.remove = videoNode["Remove"].asString();
if(!videoNode["Crop"].isNull())
@@ -92,6 +94,8 @@ void QueryTemplateListResult::parse(const std::string &payload)
templateListObject.video.pad = videoNode["Pad"].asString();
if(!videoNode["MaxFps"].isNull())
templateListObject.video.maxFps = videoNode["MaxFps"].asString();
if(!videoNode["ResoPriority"].isNull())
templateListObject.video.resoPriority = videoNode["ResoPriority"].asString();
auto bitrateBndNode = videoNode["BitrateBnd"];
if(!bitrateBndNode["Max"].isNull())
templateListObject.video.bitrateBnd.max = bitrateBndNode["Max"].asString();
@@ -142,6 +146,9 @@ void QueryTemplateListResult::parse(const std::string &payload)
templateListObject.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString();
if(!gifNode["DitherMode"].isNull())
templateListObject.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString();
auto webpNode = muxConfigNode["Webp"];
if(!webpNode["Loop"].isNull())
templateListObject.muxConfig.webp.loop = webpNode["Loop"].asString();
templateList_.push_back(templateListObject);
}
auto allNonExistTids = value["NonExistTids"]["String"];

View File

@@ -0,0 +1,93 @@
/*
* 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/mts/model/QueryVideoPoseJobListRequest.h>
using AlibabaCloud::Mts::Model::QueryVideoPoseJobListRequest;
QueryVideoPoseJobListRequest::QueryVideoPoseJobListRequest() :
RpcServiceRequest("mts", "2014-06-18", "QueryVideoPoseJobList")
{}
QueryVideoPoseJobListRequest::~QueryVideoPoseJobListRequest()
{}
long QueryVideoPoseJobListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryVideoPoseJobListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string QueryVideoPoseJobListRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryVideoPoseJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryVideoPoseJobListRequest::getJobIds()const
{
return jobIds_;
}
void QueryVideoPoseJobListRequest::setJobIds(const std::string& jobIds)
{
jobIds_ = jobIds;
setParameter("JobIds", jobIds);
}
std::string QueryVideoPoseJobListRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void QueryVideoPoseJobListRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long QueryVideoPoseJobListRequest::getOwnerId()const
{
return ownerId_;
}
void QueryVideoPoseJobListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string QueryVideoPoseJobListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryVideoPoseJobListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,263 @@
/*
* 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/mts/model/QueryVideoPoseJobListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryVideoPoseJobListResult::QueryVideoPoseJobListResult() :
ServiceResult()
{}
QueryVideoPoseJobListResult::QueryVideoPoseJobListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryVideoPoseJobListResult::~QueryVideoPoseJobListResult()
{}
void QueryVideoPoseJobListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobList = value["JobList"]["Job"];
for (auto value : allJobList)
{
Job jobListObject;
if(!value["JobId"].isNull())
jobListObject.jobId = value["JobId"].asString();
if(!value["PipelineId"].isNull())
jobListObject.pipelineId = value["PipelineId"].asString();
if(!value["UserData"].isNull())
jobListObject.userData = value["UserData"].asString();
if(!value["State"].isNull())
jobListObject.state = value["State"].asString();
auto inputNode = value["Input"];
if(!inputNode["Bucket"].isNull())
jobListObject.input.bucket = inputNode["Bucket"].asString();
if(!inputNode["Location"].isNull())
jobListObject.input.location = inputNode["Location"].asString();
if(!inputNode["Object"].isNull())
jobListObject.input.object = inputNode["Object"].asString();
if(!inputNode["RoleArn"].isNull())
jobListObject.input.roleArn = inputNode["RoleArn"].asString();
auto outputConfigNode = value["OutputConfig"];
auto videoFileNode = outputConfigNode["VideoFile"];
if(!videoFileNode["Bucket"].isNull())
jobListObject.outputConfig.videoFile.bucket = videoFileNode["Bucket"].asString();
if(!videoFileNode["Location"].isNull())
jobListObject.outputConfig.videoFile.location = videoFileNode["Location"].asString();
if(!videoFileNode["Object"].isNull())
jobListObject.outputConfig.videoFile.object = videoFileNode["Object"].asString();
if(!videoFileNode["RoleArn"].isNull())
jobListObject.outputConfig.videoFile.roleArn = videoFileNode["RoleArn"].asString();
auto dataFileNode = outputConfigNode["DataFile"];
if(!dataFileNode["Bucket"].isNull())
jobListObject.outputConfig.dataFile.bucket = dataFileNode["Bucket"].asString();
if(!dataFileNode["Location"].isNull())
jobListObject.outputConfig.dataFile.location = dataFileNode["Location"].asString();
if(!dataFileNode["Object"].isNull())
jobListObject.outputConfig.dataFile.object = dataFileNode["Object"].asString();
if(!dataFileNode["RoleArn"].isNull())
jobListObject.outputConfig.dataFile.roleArn = dataFileNode["RoleArn"].asString();
auto propertiesNode = value["Properties"];
if(!propertiesNode["Width"].isNull())
jobListObject.properties.width = propertiesNode["Width"].asString();
if(!propertiesNode["Height"].isNull())
jobListObject.properties.height = propertiesNode["Height"].asString();
if(!propertiesNode["Bitrate"].isNull())
jobListObject.properties.bitrate = propertiesNode["Bitrate"].asString();
if(!propertiesNode["Duration"].isNull())
jobListObject.properties.duration = propertiesNode["Duration"].asString();
if(!propertiesNode["Fps"].isNull())
jobListObject.properties.fps = propertiesNode["Fps"].asString();
if(!propertiesNode["FileSize"].isNull())
jobListObject.properties.fileSize = propertiesNode["FileSize"].asString();
if(!propertiesNode["FileFormat"].isNull())
jobListObject.properties.fileFormat = propertiesNode["FileFormat"].asString();
auto streamsNode = propertiesNode["Streams"];
auto allVideoStreamList = value["VideoStreamList"]["VideoStream"];
for (auto value : allVideoStreamList)
{
Job::Properties::Streams::VideoStream videoStreamObject;
if(!value["Index"].isNull())
videoStreamObject.index = value["Index"].asString();
if(!value["CodecName"].isNull())
videoStreamObject.codecName = value["CodecName"].asString();
if(!value["CodecLongName"].isNull())
videoStreamObject.codecLongName = value["CodecLongName"].asString();
if(!value["Profile"].isNull())
videoStreamObject.profile = value["Profile"].asString();
if(!value["CodecTimeBase"].isNull())
videoStreamObject.codecTimeBase = value["CodecTimeBase"].asString();
if(!value["CodecTagString"].isNull())
videoStreamObject.codecTagString = value["CodecTagString"].asString();
if(!value["CodecTag"].isNull())
videoStreamObject.codecTag = value["CodecTag"].asString();
if(!value["Width"].isNull())
videoStreamObject.width = value["Width"].asString();
if(!value["Height"].isNull())
videoStreamObject.height = value["Height"].asString();
if(!value["HasBFrames"].isNull())
videoStreamObject.hasBFrames = value["HasBFrames"].asString();
if(!value["Sar"].isNull())
videoStreamObject.sar = value["Sar"].asString();
if(!value["Dar"].isNull())
videoStreamObject.dar = value["Dar"].asString();
if(!value["PixFmt"].isNull())
videoStreamObject.pixFmt = value["PixFmt"].asString();
if(!value["Level"].isNull())
videoStreamObject.level = value["Level"].asString();
if(!value["Fps"].isNull())
videoStreamObject.fps = value["Fps"].asString();
if(!value["AvgFPS"].isNull())
videoStreamObject.avgFPS = value["AvgFPS"].asString();
if(!value["Timebase"].isNull())
videoStreamObject.timebase = value["Timebase"].asString();
if(!value["StartTime"].isNull())
videoStreamObject.startTime = value["StartTime"].asString();
if(!value["Duration"].isNull())
videoStreamObject.duration = value["Duration"].asString();
if(!value["Bitrate"].isNull())
videoStreamObject.bitrate = value["Bitrate"].asString();
if(!value["NumFrames"].isNull())
videoStreamObject.numFrames = value["NumFrames"].asString();
if(!value["Lang"].isNull())
videoStreamObject.lang = value["Lang"].asString();
if(!value["Rotate"].isNull())
videoStreamObject.rotate = value["Rotate"].asString();
auto networkCostNode = value["NetworkCost"];
if(!networkCostNode["PreloadTime"].isNull())
videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString();
if(!networkCostNode["CostBandwidth"].isNull())
videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString();
if(!networkCostNode["AvgBitrate"].isNull())
videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString();
jobListObject.properties.streams.videoStreamList.push_back(videoStreamObject);
}
auto allAudioStreamList = value["AudioStreamList"]["AudioStream"];
for (auto value : allAudioStreamList)
{
Job::Properties::Streams::AudioStream audioStreamObject;
if(!value["Index"].isNull())
audioStreamObject.index = value["Index"].asString();
if(!value["CodecName"].isNull())
audioStreamObject.codecName = value["CodecName"].asString();
if(!value["CodecTimeBase"].isNull())
audioStreamObject.codecTimeBase = value["CodecTimeBase"].asString();
if(!value["CodecLongName"].isNull())
audioStreamObject.codecLongName = value["CodecLongName"].asString();
if(!value["CodecTagString"].isNull())
audioStreamObject.codecTagString = value["CodecTagString"].asString();
if(!value["CodecTag"].isNull())
audioStreamObject.codecTag = value["CodecTag"].asString();
if(!value["SampleFmt"].isNull())
audioStreamObject.sampleFmt = value["SampleFmt"].asString();
if(!value["Samplerate"].isNull())
audioStreamObject.samplerate = value["Samplerate"].asString();
if(!value["Channels"].isNull())
audioStreamObject.channels = value["Channels"].asString();
if(!value["ChannelLayout"].isNull())
audioStreamObject.channelLayout = value["ChannelLayout"].asString();
if(!value["Timebase"].isNull())
audioStreamObject.timebase = value["Timebase"].asString();
if(!value["StartTime"].isNull())
audioStreamObject.startTime = value["StartTime"].asString();
if(!value["Duration"].isNull())
audioStreamObject.duration = value["Duration"].asString();
if(!value["Bitrate"].isNull())
audioStreamObject.bitrate = value["Bitrate"].asString();
if(!value["NumFrames"].isNull())
audioStreamObject.numFrames = value["NumFrames"].asString();
if(!value["Lang"].isNull())
audioStreamObject.lang = value["Lang"].asString();
jobListObject.properties.streams.audioStreamList.push_back(audioStreamObject);
}
auto allSubtitleStreamList = value["SubtitleStreamList"]["SubtitleStream"];
for (auto value : allSubtitleStreamList)
{
Job::Properties::Streams::SubtitleStream subtitleStreamObject;
if(!value["Index"].isNull())
subtitleStreamObject.index = value["Index"].asString();
if(!value["CodecName"].isNull())
subtitleStreamObject.codecName = value["CodecName"].asString();
if(!value["CodecTimeBase"].isNull())
subtitleStreamObject.codecTimeBase = value["CodecTimeBase"].asString();
if(!value["CodecLongName"].isNull())
subtitleStreamObject.codecLongName = value["CodecLongName"].asString();
if(!value["CodecTagString"].isNull())
subtitleStreamObject.codecTagString = value["CodecTagString"].asString();
if(!value["CodecTag"].isNull())
subtitleStreamObject.codecTag = value["CodecTag"].asString();
if(!value["Timebase"].isNull())
subtitleStreamObject.timebase = value["Timebase"].asString();
if(!value["StartTime"].isNull())
subtitleStreamObject.startTime = value["StartTime"].asString();
if(!value["Duration"].isNull())
subtitleStreamObject.duration = value["Duration"].asString();
if(!value["Lang"].isNull())
subtitleStreamObject.lang = value["Lang"].asString();
jobListObject.properties.streams.subtitleStreamList.push_back(subtitleStreamObject);
}
auto formatNode = propertiesNode["Format"];
if(!formatNode["NumStreams"].isNull())
jobListObject.properties.format.numStreams = formatNode["NumStreams"].asString();
if(!formatNode["NumPrograms"].isNull())
jobListObject.properties.format.numPrograms = formatNode["NumPrograms"].asString();
if(!formatNode["FormatName"].isNull())
jobListObject.properties.format.formatName = formatNode["FormatName"].asString();
if(!formatNode["FormatLongName"].isNull())
jobListObject.properties.format.formatLongName = formatNode["FormatLongName"].asString();
if(!formatNode["StartTime"].isNull())
jobListObject.properties.format.startTime = formatNode["StartTime"].asString();
if(!formatNode["Duration"].isNull())
jobListObject.properties.format.duration = formatNode["Duration"].asString();
if(!formatNode["Size"].isNull())
jobListObject.properties.format.size = formatNode["Size"].asString();
if(!formatNode["Bitrate"].isNull())
jobListObject.properties.format.bitrate = formatNode["Bitrate"].asString();
auto mNSMessageResultNode = value["MNSMessageResult"];
if(!mNSMessageResultNode["MessageId"].isNull())
jobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString();
if(!mNSMessageResultNode["ErrorMessage"].isNull())
jobListObject.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString();
if(!mNSMessageResultNode["ErrorCode"].isNull())
jobListObject.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString();
jobList_.push_back(jobListObject);
}
auto allNonExistJobIds = value["NonExistJobIds"]["String"];
for (const auto &item : allNonExistJobIds)
nonExistJobIds_.push_back(item.asString());
}
std::vector<std::string> QueryVideoPoseJobListResult::getNonExistJobIds()const
{
return nonExistJobIds_;
}
std::vector<QueryVideoPoseJobListResult::Job> QueryVideoPoseJobListResult::getJobList()const
{
return jobList_;
}

View File

@@ -54,6 +54,8 @@ void SearchPipelineResult::parse(const std::string &payload)
pipelineListObject.speed = value["Speed"].asString();
if(!value["SpeedLevel"].isNull())
pipelineListObject.speedLevel = std::stol(value["SpeedLevel"].asString());
if(!value["QuotaAllocate"].isNull())
pipelineListObject.quotaAllocate = std::stol(value["QuotaAllocate"].asString());
if(!value["Role"].isNull())
pipelineListObject.role = value["Role"].asString();
auto notifyConfigNode = value["NotifyConfig"];
@@ -61,6 +63,10 @@ void SearchPipelineResult::parse(const std::string &payload)
pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["QueueName"].isNull())
pipelineListObject.notifyConfig.queueName = notifyConfigNode["QueueName"].asString();
if(!notifyConfigNode["MqTopic"].isNull())
pipelineListObject.notifyConfig.mqTopic = notifyConfigNode["MqTopic"].asString();
if(!notifyConfigNode["MqTag"].isNull())
pipelineListObject.notifyConfig.mqTag = notifyConfigNode["MqTag"].asString();
pipelineList_.push_back(pipelineListObject);
}
if(!value["TotalCount"].isNull())

View File

@@ -84,6 +84,8 @@ void SearchTemplateResult::parse(const std::string &payload)
templateListObject.video.degrain = videoNode["Degrain"].asString();
if(!videoNode["Qscale"].isNull())
templateListObject.video.qscale = videoNode["Qscale"].asString();
if(!videoNode["LongShortMode"].isNull())
templateListObject.video.longShortMode = videoNode["LongShortMode"].asString();
if(!videoNode["Remove"].isNull())
templateListObject.video.remove = videoNode["Remove"].asString();
if(!videoNode["Crop"].isNull())

View File

@@ -1,170 +0,0 @@
/*
* 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/mts/model/SubmitCensorJobRequest.h>
using AlibabaCloud::Mts::Model::SubmitCensorJobRequest;
SubmitCensorJobRequest::SubmitCensorJobRequest() :
RpcServiceRequest("mts", "2014-06-18", "SubmitCensorJob")
{}
SubmitCensorJobRequest::~SubmitCensorJobRequest()
{}
long SubmitCensorJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitCensorJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitCensorJobRequest::getCoverImages()const
{
return coverImages_;
}
void SubmitCensorJobRequest::setCoverImages(const std::string& coverImages)
{
coverImages_ = coverImages;
setParameter("CoverImages", coverImages);
}
std::string SubmitCensorJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SubmitCensorJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SubmitCensorJobRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void SubmitCensorJobRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string SubmitCensorJobRequest::getDescription()const
{
return description_;
}
void SubmitCensorJobRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long SubmitCensorJobRequest::getOwnerId()const
{
return ownerId_;
}
void SubmitCensorJobRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SubmitCensorJobRequest::getTitle()const
{
return title_;
}
void SubmitCensorJobRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
}
std::string SubmitCensorJobRequest::getCensorConfig()const
{
return censorConfig_;
}
void SubmitCensorJobRequest::setCensorConfig(const std::string& censorConfig)
{
censorConfig_ = censorConfig;
setParameter("CensorConfig", censorConfig);
}
std::string SubmitCensorJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SubmitCensorJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SubmitCensorJobRequest::getPipelineId()const
{
return pipelineId_;
}
void SubmitCensorJobRequest::setPipelineId(const std::string& pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", pipelineId);
}
std::string SubmitCensorJobRequest::getInput()const
{
return input_;
}
void SubmitCensorJobRequest::setInput(const std::string& input)
{
input_ = input;
setParameter("Input", input);
}
std::string SubmitCensorJobRequest::getUserData()const
{
return userData_;
}
void SubmitCensorJobRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
}
std::string SubmitCensorJobRequest::getBarrages()const
{
return barrages_;
}
void SubmitCensorJobRequest::setBarrages(const std::string& barrages)
{
barrages_ = barrages;
setParameter("Barrages", barrages);
}

View File

@@ -0,0 +1,148 @@
/*
* 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/mts/model/SubmitImageSearchJobRequest.h>
using AlibabaCloud::Mts::Model::SubmitImageSearchJobRequest;
SubmitImageSearchJobRequest::SubmitImageSearchJobRequest() :
RpcServiceRequest("mts", "2014-06-18", "SubmitImageSearchJob")
{}
SubmitImageSearchJobRequest::~SubmitImageSearchJobRequest()
{}
std::string SubmitImageSearchJobRequest::getInputImage()const
{
return inputImage_;
}
void SubmitImageSearchJobRequest::setInputImage(const std::string& inputImage)
{
inputImage_ = inputImage;
setParameter("InputImage", inputImage);
}
std::string SubmitImageSearchJobRequest::getUserData()const
{
return userData_;
}
void SubmitImageSearchJobRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
}
long SubmitImageSearchJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitImageSearchJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitImageSearchJobRequest::getFpDBId()const
{
return fpDBId_;
}
void SubmitImageSearchJobRequest::setFpDBId(const std::string& fpDBId)
{
fpDBId_ = fpDBId;
setParameter("FpDBId", fpDBId);
}
std::string SubmitImageSearchJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SubmitImageSearchJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SubmitImageSearchJobRequest::getInputVideo()const
{
return inputVideo_;
}
void SubmitImageSearchJobRequest::setInputVideo(const std::string& inputVideo)
{
inputVideo_ = inputVideo;
setParameter("InputVideo", inputVideo);
}
std::string SubmitImageSearchJobRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void SubmitImageSearchJobRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long SubmitImageSearchJobRequest::getOwnerId()const
{
return ownerId_;
}
void SubmitImageSearchJobRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SubmitImageSearchJobRequest::getConfig()const
{
return config_;
}
void SubmitImageSearchJobRequest::setConfig(const std::string& config)
{
config_ = config;
setParameter("Config", config);
}
std::string SubmitImageSearchJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SubmitImageSearchJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SubmitImageSearchJobRequest::getPipelineId()const
{
return pipelineId_;
}
void SubmitImageSearchJobRequest::setPipelineId(const std::string& pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", pipelineId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/mts/model/SubmitImageSearchJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
SubmitImageSearchJobResult::SubmitImageSearchJobResult() :
ServiceResult()
{}
SubmitImageSearchJobResult::SubmitImageSearchJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitImageSearchJobResult::~SubmitImageSearchJobResult()
{}
void SubmitImageSearchJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["JobId"].isNull())
jobId_ = value["JobId"].asString();
}
std::string SubmitImageSearchJobResult::getJobId()const
{
return jobId_;
}

View File

@@ -189,6 +189,22 @@ void SubmitJobsResult::parse(const std::string &payload)
outSubtitleObject.outSubtitleFile.roleArn = outSubtitleFileNode["RoleArn"].asString();
jobResultListObject.job.output.outSubtitleList.push_back(outSubtitleObject);
}
auto allAmixList = value["AmixList"]["Amix"];
for (auto value : allAmixList)
{
JobResult::Job::Output::Amix amixObject;
if(!value["AmixURL"].isNull())
amixObject.amixURL = value["AmixURL"].asString();
if(!value["Map"].isNull())
amixObject.map = value["Map"].asString();
if(!value["MixDurMode"].isNull())
amixObject.mixDurMode = value["MixDurMode"].asString();
if(!value["Start"].isNull())
amixObject.start = value["Start"].asString();
if(!value["Duration"].isNull())
amixObject.duration = value["Duration"].asString();
jobResultListObject.job.output.amixList.push_back(amixObject);
}
auto digiWaterMarkNode = outputNode["DigiWaterMark"];
if(!digiWaterMarkNode["Type"].isNull())
jobResultListObject.job.output.digiWaterMark.type = digiWaterMarkNode["Type"].asString();

View File

@@ -0,0 +1,148 @@
/*
* 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/mts/model/SubmitMCJobRequest.h>
using AlibabaCloud::Mts::Model::SubmitMCJobRequest;
SubmitMCJobRequest::SubmitMCJobRequest() :
RpcServiceRequest("mts", "2014-06-18", "SubmitMCJob")
{}
SubmitMCJobRequest::~SubmitMCJobRequest()
{}
std::string SubmitMCJobRequest::getUserData()const
{
return userData_;
}
void SubmitMCJobRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
}
long SubmitMCJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitMCJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitMCJobRequest::getImages()const
{
return images_;
}
void SubmitMCJobRequest::setImages(const std::string& images)
{
images_ = images;
setParameter("Images", images);
}
std::string SubmitMCJobRequest::getTexts()const
{
return texts_;
}
void SubmitMCJobRequest::setTexts(const std::string& texts)
{
texts_ = texts;
setParameter("Texts", texts);
}
std::string SubmitMCJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SubmitMCJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SubmitMCJobRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void SubmitMCJobRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string SubmitMCJobRequest::getVideo()const
{
return video_;
}
void SubmitMCJobRequest::setVideo(const std::string& video)
{
video_ = video;
setParameter("Video", video);
}
long SubmitMCJobRequest::getOwnerId()const
{
return ownerId_;
}
void SubmitMCJobRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SubmitMCJobRequest::getCensorConfig()const
{
return censorConfig_;
}
void SubmitMCJobRequest::setCensorConfig(const std::string& censorConfig)
{
censorConfig_ = censorConfig;
setParameter("CensorConfig", censorConfig);
}
std::string SubmitMCJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SubmitMCJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SubmitMCJobRequest::getPipelineId()const
{
return pipelineId_;
}
void SubmitMCJobRequest::setPipelineId(const std::string& pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", pipelineId);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/mts/model/SubmitCensorJobResult.h>
#include <alibabacloud/mts/model/SubmitMCJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
SubmitCensorJobResult::SubmitCensorJobResult() :
SubmitMCJobResult::SubmitMCJobResult() :
ServiceResult()
{}
SubmitCensorJobResult::SubmitCensorJobResult(const std::string &payload) :
SubmitMCJobResult::SubmitMCJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitCensorJobResult::~SubmitCensorJobResult()
SubmitMCJobResult::~SubmitMCJobResult()
{}
void SubmitCensorJobResult::parse(const std::string &payload)
void SubmitMCJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -45,7 +45,7 @@ void SubmitCensorJobResult::parse(const std::string &payload)
}
std::string SubmitCensorJobResult::getJobId()const
std::string SubmitMCJobResult::getJobId()const
{
return jobId_;
}

View File

@@ -0,0 +1,137 @@
/*
* 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/mts/model/SubmitMcuJobRequest.h>
using AlibabaCloud::Mts::Model::SubmitMcuJobRequest;
SubmitMcuJobRequest::SubmitMcuJobRequest() :
RpcServiceRequest("mts", "2014-06-18", "SubmitMcuJob")
{}
SubmitMcuJobRequest::~SubmitMcuJobRequest()
{}
std::string SubmitMcuJobRequest::get_Template()const
{
return _template_;
}
void SubmitMcuJobRequest::set_Template(const std::string& _template)
{
_template_ = _template;
setParameter("_Template", _template);
}
std::string SubmitMcuJobRequest::getInput()const
{
return input_;
}
void SubmitMcuJobRequest::setInput(const std::string& input)
{
input_ = input;
setParameter("Input", input);
}
std::string SubmitMcuJobRequest::getUserData()const
{
return userData_;
}
void SubmitMcuJobRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
}
long SubmitMcuJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitMcuJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitMcuJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SubmitMcuJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SubmitMcuJobRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void SubmitMcuJobRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long SubmitMcuJobRequest::getOwnerId()const
{
return ownerId_;
}
void SubmitMcuJobRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SubmitMcuJobRequest::getTemplateId()const
{
return templateId_;
}
void SubmitMcuJobRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}
std::string SubmitMcuJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SubmitMcuJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SubmitMcuJobRequest::getPipelineId()const
{
return pipelineId_;
}
void SubmitMcuJobRequest::setPipelineId(const std::string& pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", pipelineId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/mts/model/SubmitMcuJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
SubmitMcuJobResult::SubmitMcuJobResult() :
ServiceResult()
{}
SubmitMcuJobResult::SubmitMcuJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitMcuJobResult::~SubmitMcuJobResult()
{}
void SubmitMcuJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["JobId"].isNull())
jobId_ = value["JobId"].asString();
}
std::string SubmitMcuJobResult::getJobId()const
{
return jobId_;
}

View File

@@ -0,0 +1,170 @@
/*
* 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/mts/model/SubmitMediaCensorJobRequest.h>
using AlibabaCloud::Mts::Model::SubmitMediaCensorJobRequest;
SubmitMediaCensorJobRequest::SubmitMediaCensorJobRequest() :
RpcServiceRequest("mts", "2014-06-18", "SubmitMediaCensorJob")
{}
SubmitMediaCensorJobRequest::~SubmitMediaCensorJobRequest()
{}
long SubmitMediaCensorJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitMediaCensorJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitMediaCensorJobRequest::getCoverImages()const
{
return coverImages_;
}
void SubmitMediaCensorJobRequest::setCoverImages(const std::string& coverImages)
{
coverImages_ = coverImages;
setParameter("CoverImages", coverImages);
}
std::string SubmitMediaCensorJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SubmitMediaCensorJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SubmitMediaCensorJobRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void SubmitMediaCensorJobRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string SubmitMediaCensorJobRequest::getDescription()const
{
return description_;
}
void SubmitMediaCensorJobRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
long SubmitMediaCensorJobRequest::getOwnerId()const
{
return ownerId_;
}
void SubmitMediaCensorJobRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SubmitMediaCensorJobRequest::getTitle()const
{
return title_;
}
void SubmitMediaCensorJobRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
}
std::string SubmitMediaCensorJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SubmitMediaCensorJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SubmitMediaCensorJobRequest::getPipelineId()const
{
return pipelineId_;
}
void SubmitMediaCensorJobRequest::setPipelineId(const std::string& pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", pipelineId);
}
std::string SubmitMediaCensorJobRequest::getVideoCensorConfig()const
{
return videoCensorConfig_;
}
void SubmitMediaCensorJobRequest::setVideoCensorConfig(const std::string& videoCensorConfig)
{
videoCensorConfig_ = videoCensorConfig;
setParameter("VideoCensorConfig", videoCensorConfig);
}
std::string SubmitMediaCensorJobRequest::getInput()const
{
return input_;
}
void SubmitMediaCensorJobRequest::setInput(const std::string& input)
{
input_ = input;
setParameter("Input", input);
}
std::string SubmitMediaCensorJobRequest::getUserData()const
{
return userData_;
}
void SubmitMediaCensorJobRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
}
std::string SubmitMediaCensorJobRequest::getBarrages()const
{
return barrages_;
}
void SubmitMediaCensorJobRequest::setBarrages(const std::string& barrages)
{
barrages_ = barrages;
setParameter("Barrages", barrages);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/mts/model/SubmitMediaCensorJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
SubmitMediaCensorJobResult::SubmitMediaCensorJobResult() :
ServiceResult()
{}
SubmitMediaCensorJobResult::SubmitMediaCensorJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitMediaCensorJobResult::~SubmitMediaCensorJobResult()
{}
void SubmitMediaCensorJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["JobId"].isNull())
jobId_ = value["JobId"].asString();
}
std::string SubmitMediaCensorJobResult::getJobId()const
{
return jobId_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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/mts/model/SubmitMediaFpDeleteJobRequest.h>
using AlibabaCloud::Mts::Model::SubmitMediaFpDeleteJobRequest;
SubmitMediaFpDeleteJobRequest::SubmitMediaFpDeleteJobRequest() :
RpcServiceRequest("mts", "2014-06-18", "SubmitMediaFpDeleteJob")
{}
SubmitMediaFpDeleteJobRequest::~SubmitMediaFpDeleteJobRequest()
{}
std::string SubmitMediaFpDeleteJobRequest::getUserData()const
{
return userData_;
}
void SubmitMediaFpDeleteJobRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
}
long SubmitMediaFpDeleteJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitMediaFpDeleteJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitMediaFpDeleteJobRequest::getFpDBId()const
{
return fpDBId_;
}
void SubmitMediaFpDeleteJobRequest::setFpDBId(const std::string& fpDBId)
{
fpDBId_ = fpDBId;
setParameter("FpDBId", fpDBId);
}
std::string SubmitMediaFpDeleteJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SubmitMediaFpDeleteJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SubmitMediaFpDeleteJobRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void SubmitMediaFpDeleteJobRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long SubmitMediaFpDeleteJobRequest::getOwnerId()const
{
return ownerId_;
}
void SubmitMediaFpDeleteJobRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SubmitMediaFpDeleteJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SubmitMediaFpDeleteJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SubmitMediaFpDeleteJobRequest::getPipelineId()const
{
return pipelineId_;
}
void SubmitMediaFpDeleteJobRequest::setPipelineId(const std::string& pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", pipelineId);
}
std::string SubmitMediaFpDeleteJobRequest::getPrimaryKey()const
{
return primaryKey_;
}
void SubmitMediaFpDeleteJobRequest::setPrimaryKey(const std::string& primaryKey)
{
primaryKey_ = primaryKey;
setParameter("PrimaryKey", primaryKey);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/mts/model/SubmitMediaFpDeleteJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
SubmitMediaFpDeleteJobResult::SubmitMediaFpDeleteJobResult() :
ServiceResult()
{}
SubmitMediaFpDeleteJobResult::SubmitMediaFpDeleteJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitMediaFpDeleteJobResult::~SubmitMediaFpDeleteJobResult()
{}
void SubmitMediaFpDeleteJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["JobId"].isNull())
jobId_ = value["JobId"].asString();
}
std::string SubmitMediaFpDeleteJobResult::getJobId()const
{
return jobId_;
}

View File

@@ -0,0 +1,126 @@
/*
* 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/mts/model/SubmitVideoPoseJobRequest.h>
using AlibabaCloud::Mts::Model::SubmitVideoPoseJobRequest;
SubmitVideoPoseJobRequest::SubmitVideoPoseJobRequest() :
RpcServiceRequest("mts", "2014-06-18", "SubmitVideoPoseJob")
{}
SubmitVideoPoseJobRequest::~SubmitVideoPoseJobRequest()
{}
std::string SubmitVideoPoseJobRequest::getInput()const
{
return input_;
}
void SubmitVideoPoseJobRequest::setInput(const std::string& input)
{
input_ = input;
setParameter("Input", input);
}
std::string SubmitVideoPoseJobRequest::getUserData()const
{
return userData_;
}
void SubmitVideoPoseJobRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
}
long SubmitVideoPoseJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitVideoPoseJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string SubmitVideoPoseJobRequest::getOutputConfig()const
{
return outputConfig_;
}
void SubmitVideoPoseJobRequest::setOutputConfig(const std::string& outputConfig)
{
outputConfig_ = outputConfig;
setParameter("OutputConfig", outputConfig);
}
std::string SubmitVideoPoseJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SubmitVideoPoseJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SubmitVideoPoseJobRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void SubmitVideoPoseJobRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long SubmitVideoPoseJobRequest::getOwnerId()const
{
return ownerId_;
}
void SubmitVideoPoseJobRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string SubmitVideoPoseJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SubmitVideoPoseJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SubmitVideoPoseJobRequest::getPipelineId()const
{
return pipelineId_;
}
void SubmitVideoPoseJobRequest::setPipelineId(const std::string& pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", pipelineId);
}

View File

@@ -0,0 +1,250 @@
/*
* 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/mts/model/SubmitVideoPoseJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
SubmitVideoPoseJobResult::SubmitVideoPoseJobResult() :
ServiceResult()
{}
SubmitVideoPoseJobResult::SubmitVideoPoseJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitVideoPoseJobResult::~SubmitVideoPoseJobResult()
{}
void SubmitVideoPoseJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto videoPoseJobNode = value["VideoPoseJob"];
if(!videoPoseJobNode["JobId"].isNull())
videoPoseJob_.jobId = videoPoseJobNode["JobId"].asString();
if(!videoPoseJobNode["PipelineId"].isNull())
videoPoseJob_.pipelineId = videoPoseJobNode["PipelineId"].asString();
if(!videoPoseJobNode["UserData"].isNull())
videoPoseJob_.userData = videoPoseJobNode["UserData"].asString();
if(!videoPoseJobNode["State"].isNull())
videoPoseJob_.state = videoPoseJobNode["State"].asString();
auto inputNode = videoPoseJobNode["Input"];
if(!inputNode["Bucket"].isNull())
videoPoseJob_.input.bucket = inputNode["Bucket"].asString();
if(!inputNode["Location"].isNull())
videoPoseJob_.input.location = inputNode["Location"].asString();
if(!inputNode["Object"].isNull())
videoPoseJob_.input.object = inputNode["Object"].asString();
if(!inputNode["RoleArn"].isNull())
videoPoseJob_.input.roleArn = inputNode["RoleArn"].asString();
auto outputConfigNode = videoPoseJobNode["OutputConfig"];
auto videoFileNode = outputConfigNode["VideoFile"];
if(!videoFileNode["Bucket"].isNull())
videoPoseJob_.outputConfig.videoFile.bucket = videoFileNode["Bucket"].asString();
if(!videoFileNode["Location"].isNull())
videoPoseJob_.outputConfig.videoFile.location = videoFileNode["Location"].asString();
if(!videoFileNode["Object"].isNull())
videoPoseJob_.outputConfig.videoFile.object = videoFileNode["Object"].asString();
if(!videoFileNode["RoleArn"].isNull())
videoPoseJob_.outputConfig.videoFile.roleArn = videoFileNode["RoleArn"].asString();
auto dataFileNode = outputConfigNode["DataFile"];
if(!dataFileNode["Bucket"].isNull())
videoPoseJob_.outputConfig.dataFile.bucket = dataFileNode["Bucket"].asString();
if(!dataFileNode["Location"].isNull())
videoPoseJob_.outputConfig.dataFile.location = dataFileNode["Location"].asString();
if(!dataFileNode["Object"].isNull())
videoPoseJob_.outputConfig.dataFile.object = dataFileNode["Object"].asString();
if(!dataFileNode["RoleArn"].isNull())
videoPoseJob_.outputConfig.dataFile.roleArn = dataFileNode["RoleArn"].asString();
auto propertiesNode = videoPoseJobNode["Properties"];
if(!propertiesNode["Width"].isNull())
videoPoseJob_.properties.width = propertiesNode["Width"].asString();
if(!propertiesNode["Height"].isNull())
videoPoseJob_.properties.height = propertiesNode["Height"].asString();
if(!propertiesNode["Bitrate"].isNull())
videoPoseJob_.properties.bitrate = propertiesNode["Bitrate"].asString();
if(!propertiesNode["Duration"].isNull())
videoPoseJob_.properties.duration = propertiesNode["Duration"].asString();
if(!propertiesNode["Fps"].isNull())
videoPoseJob_.properties.fps = propertiesNode["Fps"].asString();
if(!propertiesNode["FileSize"].isNull())
videoPoseJob_.properties.fileSize = propertiesNode["FileSize"].asString();
if(!propertiesNode["FileFormat"].isNull())
videoPoseJob_.properties.fileFormat = propertiesNode["FileFormat"].asString();
auto streamsNode = propertiesNode["Streams"];
auto allVideoStreamList = value["VideoStreamList"]["VideoStream"];
for (auto value : allVideoStreamList)
{
VideoPoseJob::Properties::Streams::VideoStream videoStreamObject;
if(!value["Index"].isNull())
videoStreamObject.index = value["Index"].asString();
if(!value["CodecName"].isNull())
videoStreamObject.codecName = value["CodecName"].asString();
if(!value["CodecLongName"].isNull())
videoStreamObject.codecLongName = value["CodecLongName"].asString();
if(!value["Profile"].isNull())
videoStreamObject.profile = value["Profile"].asString();
if(!value["CodecTimeBase"].isNull())
videoStreamObject.codecTimeBase = value["CodecTimeBase"].asString();
if(!value["CodecTagString"].isNull())
videoStreamObject.codecTagString = value["CodecTagString"].asString();
if(!value["CodecTag"].isNull())
videoStreamObject.codecTag = value["CodecTag"].asString();
if(!value["Width"].isNull())
videoStreamObject.width = value["Width"].asString();
if(!value["Height"].isNull())
videoStreamObject.height = value["Height"].asString();
if(!value["HasBFrames"].isNull())
videoStreamObject.hasBFrames = value["HasBFrames"].asString();
if(!value["Sar"].isNull())
videoStreamObject.sar = value["Sar"].asString();
if(!value["Dar"].isNull())
videoStreamObject.dar = value["Dar"].asString();
if(!value["PixFmt"].isNull())
videoStreamObject.pixFmt = value["PixFmt"].asString();
if(!value["Level"].isNull())
videoStreamObject.level = value["Level"].asString();
if(!value["Fps"].isNull())
videoStreamObject.fps = value["Fps"].asString();
if(!value["AvgFPS"].isNull())
videoStreamObject.avgFPS = value["AvgFPS"].asString();
if(!value["Timebase"].isNull())
videoStreamObject.timebase = value["Timebase"].asString();
if(!value["StartTime"].isNull())
videoStreamObject.startTime = value["StartTime"].asString();
if(!value["Duration"].isNull())
videoStreamObject.duration = value["Duration"].asString();
if(!value["Bitrate"].isNull())
videoStreamObject.bitrate = value["Bitrate"].asString();
if(!value["NumFrames"].isNull())
videoStreamObject.numFrames = value["NumFrames"].asString();
if(!value["Lang"].isNull())
videoStreamObject.lang = value["Lang"].asString();
if(!value["Rotate"].isNull())
videoStreamObject.rotate = value["Rotate"].asString();
auto networkCostNode = value["NetworkCost"];
if(!networkCostNode["PreloadTime"].isNull())
videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString();
if(!networkCostNode["CostBandwidth"].isNull())
videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString();
if(!networkCostNode["AvgBitrate"].isNull())
videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString();
videoPoseJob_.properties.streams.videoStreamList.push_back(videoStreamObject);
}
auto allAudioStreamList = value["AudioStreamList"]["AudioStream"];
for (auto value : allAudioStreamList)
{
VideoPoseJob::Properties::Streams::AudioStream audioStreamObject;
if(!value["Index"].isNull())
audioStreamObject.index = value["Index"].asString();
if(!value["CodecName"].isNull())
audioStreamObject.codecName = value["CodecName"].asString();
if(!value["CodecTimeBase"].isNull())
audioStreamObject.codecTimeBase = value["CodecTimeBase"].asString();
if(!value["CodecLongName"].isNull())
audioStreamObject.codecLongName = value["CodecLongName"].asString();
if(!value["CodecTagString"].isNull())
audioStreamObject.codecTagString = value["CodecTagString"].asString();
if(!value["CodecTag"].isNull())
audioStreamObject.codecTag = value["CodecTag"].asString();
if(!value["SampleFmt"].isNull())
audioStreamObject.sampleFmt = value["SampleFmt"].asString();
if(!value["Samplerate"].isNull())
audioStreamObject.samplerate = value["Samplerate"].asString();
if(!value["Channels"].isNull())
audioStreamObject.channels = value["Channels"].asString();
if(!value["ChannelLayout"].isNull())
audioStreamObject.channelLayout = value["ChannelLayout"].asString();
if(!value["Timebase"].isNull())
audioStreamObject.timebase = value["Timebase"].asString();
if(!value["StartTime"].isNull())
audioStreamObject.startTime = value["StartTime"].asString();
if(!value["Duration"].isNull())
audioStreamObject.duration = value["Duration"].asString();
if(!value["Bitrate"].isNull())
audioStreamObject.bitrate = value["Bitrate"].asString();
if(!value["NumFrames"].isNull())
audioStreamObject.numFrames = value["NumFrames"].asString();
if(!value["Lang"].isNull())
audioStreamObject.lang = value["Lang"].asString();
videoPoseJob_.properties.streams.audioStreamList.push_back(audioStreamObject);
}
auto allSubtitleStreamList = value["SubtitleStreamList"]["SubtitleStream"];
for (auto value : allSubtitleStreamList)
{
VideoPoseJob::Properties::Streams::SubtitleStream subtitleStreamObject;
if(!value["Index"].isNull())
subtitleStreamObject.index = value["Index"].asString();
if(!value["CodecName"].isNull())
subtitleStreamObject.codecName = value["CodecName"].asString();
if(!value["CodecTimeBase"].isNull())
subtitleStreamObject.codecTimeBase = value["CodecTimeBase"].asString();
if(!value["CodecLongName"].isNull())
subtitleStreamObject.codecLongName = value["CodecLongName"].asString();
if(!value["CodecTagString"].isNull())
subtitleStreamObject.codecTagString = value["CodecTagString"].asString();
if(!value["CodecTag"].isNull())
subtitleStreamObject.codecTag = value["CodecTag"].asString();
if(!value["Timebase"].isNull())
subtitleStreamObject.timebase = value["Timebase"].asString();
if(!value["StartTime"].isNull())
subtitleStreamObject.startTime = value["StartTime"].asString();
if(!value["Duration"].isNull())
subtitleStreamObject.duration = value["Duration"].asString();
if(!value["Lang"].isNull())
subtitleStreamObject.lang = value["Lang"].asString();
videoPoseJob_.properties.streams.subtitleStreamList.push_back(subtitleStreamObject);
}
auto formatNode = propertiesNode["Format"];
if(!formatNode["NumStreams"].isNull())
videoPoseJob_.properties.format.numStreams = formatNode["NumStreams"].asString();
if(!formatNode["NumPrograms"].isNull())
videoPoseJob_.properties.format.numPrograms = formatNode["NumPrograms"].asString();
if(!formatNode["FormatName"].isNull())
videoPoseJob_.properties.format.formatName = formatNode["FormatName"].asString();
if(!formatNode["FormatLongName"].isNull())
videoPoseJob_.properties.format.formatLongName = formatNode["FormatLongName"].asString();
if(!formatNode["StartTime"].isNull())
videoPoseJob_.properties.format.startTime = formatNode["StartTime"].asString();
if(!formatNode["Duration"].isNull())
videoPoseJob_.properties.format.duration = formatNode["Duration"].asString();
if(!formatNode["Size"].isNull())
videoPoseJob_.properties.format.size = formatNode["Size"].asString();
if(!formatNode["Bitrate"].isNull())
videoPoseJob_.properties.format.bitrate = formatNode["Bitrate"].asString();
auto mNSMessageResultNode = videoPoseJobNode["MNSMessageResult"];
if(!mNSMessageResultNode["MessageId"].isNull())
videoPoseJob_.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString();
if(!mNSMessageResultNode["ErrorMessage"].isNull())
videoPoseJob_.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString();
if(!mNSMessageResultNode["ErrorCode"].isNull())
videoPoseJob_.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString();
}
SubmitVideoPoseJobResult::VideoPoseJob SubmitVideoPoseJobResult::getVideoPoseJob()const
{
return videoPoseJob_;
}

View File

@@ -0,0 +1,214 @@
/*
* 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/mts/model/UpdateMCTemplateRequest.h>
using AlibabaCloud::Mts::Model::UpdateMCTemplateRequest;
UpdateMCTemplateRequest::UpdateMCTemplateRequest() :
RpcServiceRequest("mts", "2014-06-18", "UpdateMCTemplate")
{}
UpdateMCTemplateRequest::~UpdateMCTemplateRequest()
{}
std::string UpdateMCTemplateRequest::getPolitics()const
{
return politics_;
}
void UpdateMCTemplateRequest::setPolitics(const std::string& politics)
{
politics_ = politics;
setParameter("Politics", politics);
}
long UpdateMCTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UpdateMCTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string UpdateMCTemplateRequest::getContraband()const
{
return contraband_;
}
void UpdateMCTemplateRequest::setContraband(const std::string& contraband)
{
contraband_ = contraband;
setParameter("Contraband", contraband);
}
std::string UpdateMCTemplateRequest::getAd()const
{
return ad_;
}
void UpdateMCTemplateRequest::setAd(const std::string& ad)
{
ad_ = ad;
setParameter("Ad", ad);
}
std::string UpdateMCTemplateRequest::getAbuse()const
{
return abuse_;
}
void UpdateMCTemplateRequest::setAbuse(const std::string& abuse)
{
abuse_ = abuse;
setParameter("Abuse", abuse);
}
std::string UpdateMCTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void UpdateMCTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string UpdateMCTemplateRequest::getQrcode()const
{
return qrcode_;
}
void UpdateMCTemplateRequest::setQrcode(const std::string& qrcode)
{
qrcode_ = qrcode;
setParameter("Qrcode", qrcode);
}
std::string UpdateMCTemplateRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void UpdateMCTemplateRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long UpdateMCTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateMCTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateMCTemplateRequest::getTemplateId()const
{
return templateId_;
}
void UpdateMCTemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}
std::string UpdateMCTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UpdateMCTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string UpdateMCTemplateRequest::getPorn()const
{
return porn_;
}
void UpdateMCTemplateRequest::setPorn(const std::string& porn)
{
porn_ = porn;
setParameter("Porn", porn);
}
std::string UpdateMCTemplateRequest::getTerrorism()const
{
return terrorism_;
}
void UpdateMCTemplateRequest::setTerrorism(const std::string& terrorism)
{
terrorism_ = terrorism;
setParameter("Terrorism", terrorism);
}
std::string UpdateMCTemplateRequest::getName()const
{
return name_;
}
void UpdateMCTemplateRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string UpdateMCTemplateRequest::getLogo()const
{
return logo_;
}
void UpdateMCTemplateRequest::setLogo(const std::string& logo)
{
logo_ = logo;
setParameter("Logo", logo);
}
std::string UpdateMCTemplateRequest::getSpam()const
{
return spam_;
}
void UpdateMCTemplateRequest::setSpam(const std::string& spam)
{
spam_ = spam;
setParameter("Spam", spam);
}
std::string UpdateMCTemplateRequest::getLive()const
{
return live_;
}
void UpdateMCTemplateRequest::setLive(const std::string& live)
{
live_ = live;
setParameter("Live", live);
}

View File

@@ -0,0 +1,77 @@
/*
* 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/mts/model/UpdateMCTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
UpdateMCTemplateResult::UpdateMCTemplateResult() :
ServiceResult()
{}
UpdateMCTemplateResult::UpdateMCTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateMCTemplateResult::~UpdateMCTemplateResult()
{}
void UpdateMCTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto _templateNode = value["Template"];
if(!_templateNode["TemplateId"].isNull())
_template_.templateId = _templateNode["TemplateId"].asString();
if(!_templateNode["Name"].isNull())
_template_.name = _templateNode["Name"].asString();
if(!_templateNode["State"].isNull())
_template_.state = _templateNode["State"].asString();
if(!_templateNode["Porn"].isNull())
_template_.porn = _templateNode["Porn"].asString();
if(!_templateNode["Terrorism"].isNull())
_template_.terrorism = _templateNode["Terrorism"].asString();
if(!_templateNode["Politics"].isNull())
_template_.politics = _templateNode["Politics"].asString();
if(!_templateNode["Ad"].isNull())
_template_.ad = _templateNode["Ad"].asString();
if(!_templateNode["Qrcode"].isNull())
_template_.qrcode = _templateNode["Qrcode"].asString();
if(!_templateNode["Live"].isNull())
_template_.live = _templateNode["Live"].asString();
if(!_templateNode["Logo"].isNull())
_template_.logo = _templateNode["Logo"].asString();
if(!_templateNode["Abuse"].isNull())
_template_.abuse = _templateNode["Abuse"].asString();
if(!_templateNode["Contraband"].isNull())
_template_.contraband = _templateNode["Contraband"].asString();
if(!_templateNode["Spam"].isNull())
_template_.spam = _templateNode["Spam"].asString();
}
UpdateMCTemplateResult::_Template UpdateMCTemplateResult::get_Template()const
{
return _template_;
}

View File

@@ -0,0 +1,104 @@
/*
* 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/mts/model/UpdateMcuTemplateRequest.h>
using AlibabaCloud::Mts::Model::UpdateMcuTemplateRequest;
UpdateMcuTemplateRequest::UpdateMcuTemplateRequest() :
RpcServiceRequest("mts", "2014-06-18", "UpdateMcuTemplate")
{}
UpdateMcuTemplateRequest::~UpdateMcuTemplateRequest()
{}
std::string UpdateMcuTemplateRequest::get_Template()const
{
return _template_;
}
void UpdateMcuTemplateRequest::set_Template(const std::string& _template)
{
_template_ = _template;
setParameter("_Template", _template);
}
long UpdateMcuTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void UpdateMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string UpdateMcuTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void UpdateMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string UpdateMcuTemplateRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void UpdateMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long UpdateMcuTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void UpdateMcuTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string UpdateMcuTemplateRequest::getTemplateId()const
{
return templateId_;
}
void UpdateMcuTemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}
std::string UpdateMcuTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void UpdateMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,52 @@
/*
* 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/mts/model/UpdateMcuTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
UpdateMcuTemplateResult::UpdateMcuTemplateResult() :
ServiceResult()
{}
UpdateMcuTemplateResult::UpdateMcuTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateMcuTemplateResult::~UpdateMcuTemplateResult()
{}
void UpdateMcuTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TemplateId"].isNull())
templateId_ = value["TemplateId"].asString();
}
std::string UpdateMcuTemplateResult::getTemplateId()const
{
return templateId_;
}

View File

@@ -49,6 +49,8 @@ void UpdatePipelineResult::parse(const std::string &payload)
pipeline_.state = pipelineNode["State"].asString();
if(!pipelineNode["Speed"].isNull())
pipeline_.speed = pipelineNode["Speed"].asString();
if(!pipelineNode["QuotaAllocate"].isNull())
pipeline_.quotaAllocate = std::stol(pipelineNode["QuotaAllocate"].asString());
if(!pipelineNode["Role"].isNull())
pipeline_.role = pipelineNode["Role"].asString();
auto notifyConfigNode = pipelineNode["NotifyConfig"];
@@ -56,6 +58,10 @@ void UpdatePipelineResult::parse(const std::string &payload)
pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["QueueName"].isNull())
pipeline_.notifyConfig.queueName = notifyConfigNode["QueueName"].asString();
if(!notifyConfigNode["MqTopic"].isNull())
pipeline_.notifyConfig.mqTopic = notifyConfigNode["MqTopic"].asString();
if(!notifyConfigNode["MqTag"].isNull())
pipeline_.notifyConfig.mqTag = notifyConfigNode["MqTag"].asString();
}

View File

@@ -63,6 +63,8 @@ void UpdateTemplateResult::parse(const std::string &payload)
_template_.video.width = videoNode["Width"].asString();
if(!videoNode["Height"].isNull())
_template_.video.height = videoNode["Height"].asString();
if(!videoNode["LongShortMode"].isNull())
_template_.video.longShortMode = videoNode["LongShortMode"].asString();
if(!videoNode["Fps"].isNull())
_template_.video.fps = videoNode["Fps"].asString();
if(!videoNode["Gop"].isNull())
@@ -89,6 +91,8 @@ void UpdateTemplateResult::parse(const std::string &payload)
_template_.video.pad = videoNode["Pad"].asString();
if(!videoNode["MaxFps"].isNull())
_template_.video.maxFps = videoNode["MaxFps"].asString();
if(!videoNode["ResoPriority"].isNull())
_template_.video.resoPriority = videoNode["ResoPriority"].asString();
auto bitrateBndNode = videoNode["BitrateBnd"];
if(!bitrateBndNode["Max"].isNull())
_template_.video.bitrateBnd.max = bitrateBndNode["Max"].asString();
@@ -139,6 +143,9 @@ void UpdateTemplateResult::parse(const std::string &payload)
_template_.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString();
if(!gifNode["DitherMode"].isNull())
_template_.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString();
auto webpNode = muxConfigNode["Webp"];
if(!webpNode["Loop"].isNull())
_template_.muxConfig.webp.loop = webpNode["Loop"].asString();
}