Add a new api named SubmitAIImageAuditJob to submit image ai detection job.

This commit is contained in:
sdk-team
2020-09-24 03:24:57 +00:00
parent f014392806
commit d088239972
22 changed files with 1340 additions and 0 deletions

View File

@@ -519,6 +519,42 @@ VodClient::CreateAuditOutcomeCallable VodClient::createAuditCallable(const Creat
return task->get_future();
}
VodClient::CreateDNADBOutcome VodClient::createDNADB(const CreateDNADBRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDNADBOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDNADBOutcome(CreateDNADBResult(outcome.result()));
else
return CreateDNADBOutcome(outcome.error());
}
void VodClient::createDNADBAsync(const CreateDNADBRequest& request, const CreateDNADBAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDNADB(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::CreateDNADBOutcomeCallable VodClient::createDNADBCallable(const CreateDNADBRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDNADBOutcome()>>(
[this, request]()
{
return this->createDNADB(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::CreateMediaDNALibOutcome VodClient::createMediaDNALib(const CreateMediaDNALibRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2355,6 +2391,42 @@ VodClient::GetCategoriesOutcomeCallable VodClient::getCategoriesCallable(const G
return task->get_future();
}
VodClient::GetDNADBOutcome VodClient::getDNADB(const GetDNADBRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDNADBOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDNADBOutcome(GetDNADBResult(outcome.result()));
else
return GetDNADBOutcome(outcome.error());
}
void VodClient::getDNADBAsync(const GetDNADBRequest& request, const GetDNADBAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDNADB(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::GetDNADBOutcomeCallable VodClient::getDNADBCallable(const GetDNADBRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDNADBOutcome()>>(
[this, request]()
{
return this->getDNADB(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::GetDRMCertInfoOutcome VodClient::getDRMCertInfo(const GetDRMCertInfoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3471,6 +3543,42 @@ VodClient::ListAuditSecurityIpOutcomeCallable VodClient::listAuditSecurityIpCall
return task->get_future();
}
VodClient::ListDNADBOutcome VodClient::listDNADB(const ListDNADBRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListDNADBOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListDNADBOutcome(ListDNADBResult(outcome.result()));
else
return ListDNADBOutcome(outcome.error());
}
void VodClient::listDNADBAsync(const ListDNADBRequest& request, const ListDNADBAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listDNADB(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::ListDNADBOutcomeCallable VodClient::listDNADBCallable(const ListDNADBRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListDNADBOutcome()>>(
[this, request]()
{
return this->listDNADB(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::ListDynamicImageOutcome VodClient::listDynamicImage(const ListDynamicImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4335,6 +4443,42 @@ VodClient::SetVodDomainCertificateOutcomeCallable VodClient::setVodDomainCertifi
return task->get_future();
}
VodClient::SubmitAIImageAuditJobOutcome VodClient::submitAIImageAuditJob(const SubmitAIImageAuditJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubmitAIImageAuditJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubmitAIImageAuditJobOutcome(SubmitAIImageAuditJobResult(outcome.result()));
else
return SubmitAIImageAuditJobOutcome(outcome.error());
}
void VodClient::submitAIImageAuditJobAsync(const SubmitAIImageAuditJobRequest& request, const SubmitAIImageAuditJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, submitAIImageAuditJob(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::SubmitAIImageAuditJobOutcomeCallable VodClient::submitAIImageAuditJobCallable(const SubmitAIImageAuditJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubmitAIImageAuditJobOutcome()>>(
[this, request]()
{
return this->submitAIImageAuditJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::SubmitAIImageJobOutcome VodClient::submitAIImageJob(const SubmitAIImageJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -60,6 +60,17 @@ void AddVodDomainRequest::setScope(const std::string& scope)
setParameter("Scope", scope);
}
std::string AddVodDomainRequest::getTopLevelDomain()const
{
return topLevelDomain_;
}
void AddVodDomainRequest::setTopLevelDomain(const std::string& topLevelDomain)
{
topLevelDomain_ = topLevelDomain;
setParameter("TopLevelDomain", topLevelDomain);
}
std::string AddVodDomainRequest::getOwnerAccount()const
{
return ownerAccount_;

View File

@@ -0,0 +1,117 @@
/*
* 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/vod/model/CreateDNADBRequest.h>
using AlibabaCloud::Vod::Model::CreateDNADBRequest;
CreateDNADBRequest::CreateDNADBRequest() :
RpcServiceRequest("vod", "2017-03-21", "CreateDNADB")
{
setMethod(HttpRequest::Method::Post);
}
CreateDNADBRequest::~CreateDNADBRequest()
{}
long CreateDNADBRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateDNADBRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateDNADBRequest::getClientToken()const
{
return clientToken_;
}
void CreateDNADBRequest::setClientToken(const std::string& clientToken)
{
clientToken_ = clientToken;
setParameter("ClientToken", clientToken);
}
std::string CreateDNADBRequest::getDBRegion()const
{
return dBRegion_;
}
void CreateDNADBRequest::setDBRegion(const std::string& dBRegion)
{
dBRegion_ = dBRegion;
setParameter("DBRegion", dBRegion);
}
std::string CreateDNADBRequest::getDBDescription()const
{
return dBDescription_;
}
void CreateDNADBRequest::setDBDescription(const std::string& dBDescription)
{
dBDescription_ = dBDescription;
setParameter("DBDescription", dBDescription);
}
std::string CreateDNADBRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateDNADBRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CreateDNADBRequest::getOwnerId()const
{
return ownerId_;
}
void CreateDNADBRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateDNADBRequest::getDBName()const
{
return dBName_;
}
void CreateDNADBRequest::setDBName(const std::string& dBName)
{
dBName_ = dBName;
setParameter("DBName", dBName);
}
std::string CreateDNADBRequest::getDBType()const
{
return dBType_;
}
void CreateDNADBRequest::setDBType(const std::string& dBType)
{
dBType_ = dBType;
setParameter("DBType", dBType);
}

View File

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

View File

@@ -0,0 +1,95 @@
/*
* 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/vod/model/GetDNADBRequest.h>
using AlibabaCloud::Vod::Model::GetDNADBRequest;
GetDNADBRequest::GetDNADBRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetDNADB")
{
setMethod(HttpRequest::Method::Post);
}
GetDNADBRequest::~GetDNADBRequest()
{}
std::string GetDNADBRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetDNADBRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetDNADBRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetDNADBRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetDNADBRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void GetDNADBRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string GetDNADBRequest::getOwnerId()const
{
return ownerId_;
}
void GetDNADBRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetDNADBRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetDNADBRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetDNADBRequest::getDBId()const
{
return dBId_;
}
void GetDNADBRequest::setDBId(const std::string& dBId)
{
dBId_ = dBId;
setParameter("DBId", dBId);
}

View File

@@ -0,0 +1,62 @@
/*
* 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/vod/model/GetDNADBResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetDNADBResult::GetDNADBResult() :
ServiceResult()
{}
GetDNADBResult::GetDNADBResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDNADBResult::~GetDNADBResult()
{}
void GetDNADBResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dNADBNode = value["DNADB"];
if(!dNADBNode["DBId"].isNull())
dNADB_.dBId = dNADBNode["DBId"].asString();
if(!dNADBNode["Status"].isNull())
dNADB_.status = dNADBNode["Status"].asString();
if(!dNADBNode["DBDescription"].isNull())
dNADB_.dBDescription = dNADBNode["DBDescription"].asString();
if(!dNADBNode["DBType"].isNull())
dNADB_.dBType = dNADBNode["DBType"].asString();
if(!dNADBNode["DBName"].isNull())
dNADB_.dBName = dNADBNode["DBName"].asString();
if(!dNADBNode["DBRegion"].isNull())
dNADB_.dBRegion = dNADBNode["DBRegion"].asString();
}
GetDNADBResult::DNADB GetDNADBResult::getDNADB()const
{
return dNADB_;
}

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/vod/model/ListDNADBRequest.h>
using AlibabaCloud::Vod::Model::ListDNADBRequest;
ListDNADBRequest::ListDNADBRequest() :
RpcServiceRequest("vod", "2017-03-21", "ListDNADB")
{
setMethod(HttpRequest::Method::Post);
}
ListDNADBRequest::~ListDNADBRequest()
{}
std::string ListDNADBRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListDNADBRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string ListDNADBRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListDNADBRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListDNADBRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListDNADBRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string ListDNADBRequest::getOwnerId()const
{
return ownerId_;
}
void ListDNADBRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string ListDNADBRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListDNADBRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,67 @@
/*
* 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/vod/model/ListDNADBResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
ListDNADBResult::ListDNADBResult() :
ServiceResult()
{}
ListDNADBResult::ListDNADBResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDNADBResult::~ListDNADBResult()
{}
void ListDNADBResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDNADBListNode = value["DNADBList"]["DNADB"];
for (auto valueDNADBListDNADB : allDNADBListNode)
{
DNADB dNADBListObject;
if(!valueDNADBListDNADB["DBId"].isNull())
dNADBListObject.dBId = valueDNADBListDNADB["DBId"].asString();
if(!valueDNADBListDNADB["Status"].isNull())
dNADBListObject.status = valueDNADBListDNADB["Status"].asString();
if(!valueDNADBListDNADB["DBDescription"].isNull())
dNADBListObject.dBDescription = valueDNADBListDNADB["DBDescription"].asString();
if(!valueDNADBListDNADB["DBType"].isNull())
dNADBListObject.dBType = valueDNADBListDNADB["DBType"].asString();
if(!valueDNADBListDNADB["DBName"].isNull())
dNADBListObject.dBName = valueDNADBListDNADB["DBName"].asString();
if(!valueDNADBListDNADB["DBRegion"].isNull())
dNADBListObject.dBRegion = valueDNADBListDNADB["DBRegion"].asString();
dNADBList_.push_back(dNADBListObject);
}
}
std::vector<ListDNADBResult::DNADB> ListDNADBResult::getDNADBList()const
{
return dNADBList_;
}

View File

@@ -0,0 +1,117 @@
/*
* 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/vod/model/SubmitAIImageAuditJobRequest.h>
using AlibabaCloud::Vod::Model::SubmitAIImageAuditJobRequest;
SubmitAIImageAuditJobRequest::SubmitAIImageAuditJobRequest() :
RpcServiceRequest("vod", "2017-03-21", "SubmitAIImageAuditJob")
{
setMethod(HttpRequest::Method::Post);
}
SubmitAIImageAuditJobRequest::~SubmitAIImageAuditJobRequest()
{}
std::string SubmitAIImageAuditJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void SubmitAIImageAuditJobRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string SubmitAIImageAuditJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SubmitAIImageAuditJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SubmitAIImageAuditJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void SubmitAIImageAuditJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string SubmitAIImageAuditJobRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void SubmitAIImageAuditJobRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string SubmitAIImageAuditJobRequest::getOwnerId()const
{
return ownerId_;
}
void SubmitAIImageAuditJobRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string SubmitAIImageAuditJobRequest::getMediaId()const
{
return mediaId_;
}
void SubmitAIImageAuditJobRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setParameter("MediaId", mediaId);
}
std::string SubmitAIImageAuditJobRequest::getTemplateId()const
{
return templateId_;
}
void SubmitAIImageAuditJobRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}
std::string SubmitAIImageAuditJobRequest::getMediaAuditConfiguration()const
{
return mediaAuditConfiguration_;
}
void SubmitAIImageAuditJobRequest::setMediaAuditConfiguration(const std::string& mediaAuditConfiguration)
{
mediaAuditConfiguration_ = mediaAuditConfiguration;
setParameter("MediaAuditConfiguration", mediaAuditConfiguration);
}

View File

@@ -0,0 +1,51 @@
/*
* 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/vod/model/SubmitAIImageAuditJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
SubmitAIImageAuditJobResult::SubmitAIImageAuditJobResult() :
ServiceResult()
{}
SubmitAIImageAuditJobResult::SubmitAIImageAuditJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitAIImageAuditJobResult::~SubmitAIImageAuditJobResult()
{}
void SubmitAIImageAuditJobResult::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 SubmitAIImageAuditJobResult::getJobId()const
{
return jobId_;
}