Set API DescribeVodDomainSrcBpsData to public.

This commit is contained in:
sdk-team
2021-11-24 03:51:24 +00:00
parent 1c7304d44c
commit caafbf0de9
60 changed files with 306 additions and 4090 deletions

View File

@@ -555,42 +555,6 @@ VodClient::CreateAuditOutcomeCallable VodClient::createAuditCallable(const Creat
return task->get_future();
}
VodClient::CreateDetectionTemplateOutcome VodClient::createDetectionTemplate(const CreateDetectionTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return CreateDetectionTemplateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return CreateDetectionTemplateOutcome(CreateDetectionTemplateResult(outcome.result()));
else
return CreateDetectionTemplateOutcome(outcome.error());
}
void VodClient::createDetectionTemplateAsync(const CreateDetectionTemplateRequest& request, const CreateDetectionTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, createDetectionTemplate(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::CreateDetectionTemplateOutcomeCallable VodClient::createDetectionTemplateCallable(const CreateDetectionTemplateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<CreateDetectionTemplateOutcome()>>(
[this, request]()
{
return this->createDetectionTemplate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::CreateUploadAttachedMediaOutcome VodClient::createUploadAttachedMedia(const CreateUploadAttachedMediaRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -915,42 +879,6 @@ VodClient::DeleteCategoryOutcomeCallable VodClient::deleteCategoryCallable(const
return task->get_future();
}
VodClient::DeleteDetectionTemplateOutcome VodClient::deleteDetectionTemplate(const DeleteDetectionTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DeleteDetectionTemplateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DeleteDetectionTemplateOutcome(DeleteDetectionTemplateResult(outcome.result()));
else
return DeleteDetectionTemplateOutcome(outcome.error());
}
void VodClient::deleteDetectionTemplateAsync(const DeleteDetectionTemplateRequest& request, const DeleteDetectionTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, deleteDetectionTemplate(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::DeleteDetectionTemplateOutcomeCallable VodClient::deleteDetectionTemplateCallable(const DeleteDetectionTemplateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DeleteDetectionTemplateOutcome()>>(
[this, request]()
{
return this->deleteDetectionTemplate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::DeleteDynamicImageOutcome VodClient::deleteDynamicImage(const DeleteDynamicImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -1887,6 +1815,42 @@ VodClient::DescribeVodDomainRealtimeLogDeliveryOutcomeCallable VodClient::descri
return task->get_future();
}
VodClient::DescribeVodDomainSrcBpsDataOutcome VodClient::describeVodDomainSrcBpsData(const DescribeVodDomainSrcBpsDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return DescribeVodDomainSrcBpsDataOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return DescribeVodDomainSrcBpsDataOutcome(DescribeVodDomainSrcBpsDataResult(outcome.result()));
else
return DescribeVodDomainSrcBpsDataOutcome(outcome.error());
}
void VodClient::describeVodDomainSrcBpsDataAsync(const DescribeVodDomainSrcBpsDataRequest& request, const DescribeVodDomainSrcBpsDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, describeVodDomainSrcBpsData(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::DescribeVodDomainSrcBpsDataOutcomeCallable VodClient::describeVodDomainSrcBpsDataCallable(const DescribeVodDomainSrcBpsDataRequest &request) const
{
auto task = std::make_shared<std::packaged_task<DescribeVodDomainSrcBpsDataOutcome()>>(
[this, request]()
{
return this->describeVodDomainSrcBpsData(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::DescribeVodDomainTrafficDataOutcome VodClient::describeVodDomainTrafficData(const DescribeVodDomainTrafficDataRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2355,42 +2319,6 @@ VodClient::EnableVodRealtimeLogDeliveryOutcomeCallable VodClient::enableVodRealt
return task->get_future();
}
VodClient::GetAICaptionExtractionJobsOutcome VodClient::getAICaptionExtractionJobs(const GetAICaptionExtractionJobsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetAICaptionExtractionJobsOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetAICaptionExtractionJobsOutcome(GetAICaptionExtractionJobsResult(outcome.result()));
else
return GetAICaptionExtractionJobsOutcome(outcome.error());
}
void VodClient::getAICaptionExtractionJobsAsync(const GetAICaptionExtractionJobsRequest& request, const GetAICaptionExtractionJobsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getAICaptionExtractionJobs(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::GetAICaptionExtractionJobsOutcomeCallable VodClient::getAICaptionExtractionJobsCallable(const GetAICaptionExtractionJobsRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetAICaptionExtractionJobsOutcome()>>(
[this, request]()
{
return this->getAICaptionExtractionJobs(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::GetAIImageJobsOutcome VodClient::getAIImageJobs(const GetAIImageJobsRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -2715,114 +2643,6 @@ VodClient::GetDefaultAITemplateOutcomeCallable VodClient::getDefaultAITemplateCa
return task->get_future();
}
VodClient::GetDetectionJobOutcome VodClient::getDetectionJob(const GetDetectionJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDetectionJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDetectionJobOutcome(GetDetectionJobResult(outcome.result()));
else
return GetDetectionJobOutcome(outcome.error());
}
void VodClient::getDetectionJobAsync(const GetDetectionJobRequest& request, const GetDetectionJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDetectionJob(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::GetDetectionJobOutcomeCallable VodClient::getDetectionJobCallable(const GetDetectionJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDetectionJobOutcome()>>(
[this, request]()
{
return this->getDetectionJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::GetDetectionResultOutcome VodClient::getDetectionResult(const GetDetectionResultRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDetectionResultOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDetectionResultOutcome(GetDetectionResultResult(outcome.result()));
else
return GetDetectionResultOutcome(outcome.error());
}
void VodClient::getDetectionResultAsync(const GetDetectionResultRequest& request, const GetDetectionResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDetectionResult(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::GetDetectionResultOutcomeCallable VodClient::getDetectionResultCallable(const GetDetectionResultRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDetectionResultOutcome()>>(
[this, request]()
{
return this->getDetectionResult(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::GetDetectionTemplateOutcome VodClient::getDetectionTemplate(const GetDetectionTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return GetDetectionTemplateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return GetDetectionTemplateOutcome(GetDetectionTemplateResult(outcome.result()));
else
return GetDetectionTemplateOutcome(outcome.error());
}
void VodClient::getDetectionTemplateAsync(const GetDetectionTemplateRequest& request, const GetDetectionTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, getDetectionTemplate(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::GetDetectionTemplateOutcomeCallable VodClient::getDetectionTemplateCallable(const GetDetectionTemplateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<GetDetectionTemplateOutcome()>>(
[this, request]()
{
return this->getDetectionTemplate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::GetEditingProjectOutcome VodClient::getEditingProject(const GetEditingProjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3831,78 +3651,6 @@ VodClient::ListAuditSecurityIpOutcomeCallable VodClient::listAuditSecurityIpCall
return task->get_future();
}
VodClient::ListDetectionJobOutcome VodClient::listDetectionJob(const ListDetectionJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListDetectionJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListDetectionJobOutcome(ListDetectionJobResult(outcome.result()));
else
return ListDetectionJobOutcome(outcome.error());
}
void VodClient::listDetectionJobAsync(const ListDetectionJobRequest& request, const ListDetectionJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listDetectionJob(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::ListDetectionJobOutcomeCallable VodClient::listDetectionJobCallable(const ListDetectionJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListDetectionJobOutcome()>>(
[this, request]()
{
return this->listDetectionJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::ListDetectionTemplateOutcome VodClient::listDetectionTemplate(const ListDetectionTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListDetectionTemplateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListDetectionTemplateOutcome(ListDetectionTemplateResult(outcome.result()));
else
return ListDetectionTemplateOutcome(outcome.error());
}
void VodClient::listDetectionTemplateAsync(const ListDetectionTemplateRequest& request, const ListDetectionTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listDetectionTemplate(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::ListDetectionTemplateOutcomeCallable VodClient::listDetectionTemplateCallable(const ListDetectionTemplateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListDetectionTemplateOutcome()>>(
[this, request]()
{
return this->listDetectionTemplate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::ListDynamicImageOutcome VodClient::listDynamicImage(const ListDynamicImageRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -3939,42 +3687,6 @@ VodClient::ListDynamicImageOutcomeCallable VodClient::listDynamicImageCallable(c
return task->get_future();
}
VodClient::ListLetterSendJobOutcome VodClient::listLetterSendJob(const ListLetterSendJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return ListLetterSendJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return ListLetterSendJobOutcome(ListLetterSendJobResult(outcome.result()));
else
return ListLetterSendJobOutcome(outcome.error());
}
void VodClient::listLetterSendJobAsync(const ListLetterSendJobRequest& request, const ListLetterSendJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, listLetterSendJob(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::ListLetterSendJobOutcomeCallable VodClient::listLetterSendJobCallable(const ListLetterSendJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<ListLetterSendJobOutcome()>>(
[this, request]()
{
return this->listLetterSendJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::ListLiveRecordVideoOutcome VodClient::listLiveRecordVideo(const ListLiveRecordVideoRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -4875,42 +4587,6 @@ VodClient::SetVodDomainCertificateOutcomeCallable VodClient::setVodDomainCertifi
return task->get_future();
}
VodClient::SubmitAICaptionExtractionJobOutcome VodClient::submitAICaptionExtractionJob(const SubmitAICaptionExtractionJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubmitAICaptionExtractionJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubmitAICaptionExtractionJobOutcome(SubmitAICaptionExtractionJobResult(outcome.result()));
else
return SubmitAICaptionExtractionJobOutcome(outcome.error());
}
void VodClient::submitAICaptionExtractionJobAsync(const SubmitAICaptionExtractionJobRequest& request, const SubmitAICaptionExtractionJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, submitAICaptionExtractionJob(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::SubmitAICaptionExtractionJobOutcomeCallable VodClient::submitAICaptionExtractionJobCallable(const SubmitAICaptionExtractionJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubmitAICaptionExtractionJobOutcome()>>(
[this, request]()
{
return this->submitAICaptionExtractionJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::SubmitAIImageAuditJobOutcome VodClient::submitAIImageAuditJob(const SubmitAIImageAuditJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5055,42 +4731,6 @@ VodClient::SubmitAIMediaAuditJobOutcomeCallable VodClient::submitAIMediaAuditJob
return task->get_future();
}
VodClient::SubmitDetectionJobOutcome VodClient::submitDetectionJob(const SubmitDetectionJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return SubmitDetectionJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return SubmitDetectionJobOutcome(SubmitDetectionJobResult(outcome.result()));
else
return SubmitDetectionJobOutcome(outcome.error());
}
void VodClient::submitDetectionJobAsync(const SubmitDetectionJobRequest& request, const SubmitDetectionJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, submitDetectionJob(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::SubmitDetectionJobOutcomeCallable VodClient::submitDetectionJobCallable(const SubmitDetectionJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<SubmitDetectionJobOutcome()>>(
[this, request]()
{
return this->submitDetectionJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::SubmitDynamicImageJobOutcome VodClient::submitDynamicImageJob(const SubmitDynamicImageJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
@@ -5559,78 +5199,6 @@ VodClient::UpdateCategoryOutcomeCallable VodClient::updateCategoryCallable(const
return task->get_future();
}
VodClient::UpdateDetectionJobOutcome VodClient::updateDetectionJob(const UpdateDetectionJobRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateDetectionJobOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateDetectionJobOutcome(UpdateDetectionJobResult(outcome.result()));
else
return UpdateDetectionJobOutcome(outcome.error());
}
void VodClient::updateDetectionJobAsync(const UpdateDetectionJobRequest& request, const UpdateDetectionJobAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateDetectionJob(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::UpdateDetectionJobOutcomeCallable VodClient::updateDetectionJobCallable(const UpdateDetectionJobRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateDetectionJobOutcome()>>(
[this, request]()
{
return this->updateDetectionJob(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::UpdateDetectionTemplateOutcome VodClient::updateDetectionTemplate(const UpdateDetectionTemplateRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();
if (!endpointOutcome.isSuccess())
return UpdateDetectionTemplateOutcome(endpointOutcome.error());
auto outcome = makeRequest(endpointOutcome.result(), request);
if (outcome.isSuccess())
return UpdateDetectionTemplateOutcome(UpdateDetectionTemplateResult(outcome.result()));
else
return UpdateDetectionTemplateOutcome(outcome.error());
}
void VodClient::updateDetectionTemplateAsync(const UpdateDetectionTemplateRequest& request, const UpdateDetectionTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
{
auto fn = [this, request, handler, context]()
{
handler(this, request, updateDetectionTemplate(request), context);
};
asyncExecute(new Runnable(fn));
}
VodClient::UpdateDetectionTemplateOutcomeCallable VodClient::updateDetectionTemplateCallable(const UpdateDetectionTemplateRequest &request) const
{
auto task = std::make_shared<std::packaged_task<UpdateDetectionTemplateOutcome()>>(
[this, request]()
{
return this->updateDetectionTemplate(request);
});
asyncExecute(new Runnable([task]() { (*task)(); }));
return task->get_future();
}
VodClient::UpdateEditingProjectOutcome VodClient::updateEditingProject(const UpdateEditingProjectRequest &request) const
{
auto endpointOutcome = endpointProvider_->getEndpoint();

View File

@@ -1,128 +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/vod/model/CreateDetectionTemplateRequest.h>
using AlibabaCloud::Vod::Model::CreateDetectionTemplateRequest;
CreateDetectionTemplateRequest::CreateDetectionTemplateRequest() :
RpcServiceRequest("vod", "2017-03-21", "CreateDetectionTemplate")
{
setMethod(HttpRequest::Method::Post);
}
CreateDetectionTemplateRequest::~CreateDetectionTemplateRequest()
{}
std::string CreateDetectionTemplateRequest::getPeriod()const
{
return period_;
}
void CreateDetectionTemplateRequest::setPeriod(const std::string& period)
{
period_ = period;
setParameter("Period", period);
}
bool CreateDetectionTemplateRequest::getAutoEvidenceSuspect()const
{
return autoEvidenceSuspect_;
}
void CreateDetectionTemplateRequest::setAutoEvidenceSuspect(bool autoEvidenceSuspect)
{
autoEvidenceSuspect_ = autoEvidenceSuspect;
setParameter("AutoEvidenceSuspect", autoEvidenceSuspect ? "true" : "false");
}
std::string CreateDetectionTemplateRequest::getLetterSendTime()const
{
return letterSendTime_;
}
void CreateDetectionTemplateRequest::setLetterSendTime(const std::string& letterSendTime)
{
letterSendTime_ = letterSendTime;
setParameter("LetterSendTime", letterSendTime);
}
bool CreateDetectionTemplateRequest::getAutoLetterSuspect()const
{
return autoLetterSuspect_;
}
void CreateDetectionTemplateRequest::setAutoLetterSuspect(bool autoLetterSuspect)
{
autoLetterSuspect_ = autoLetterSuspect;
setParameter("AutoLetterSuspect", autoLetterSuspect ? "true" : "false");
}
std::string CreateDetectionTemplateRequest::getPlatform()const
{
return platform_;
}
void CreateDetectionTemplateRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
bool CreateDetectionTemplateRequest::getAutoLetter()const
{
return autoLetter_;
}
void CreateDetectionTemplateRequest::setAutoLetter(bool autoLetter)
{
autoLetter_ = autoLetter;
setParameter("AutoLetter", autoLetter ? "true" : "false");
}
std::string CreateDetectionTemplateRequest::getTemplateName()const
{
return templateName_;
}
void CreateDetectionTemplateRequest::setTemplateName(const std::string& templateName)
{
templateName_ = templateName;
setParameter("TemplateName", templateName);
}
bool CreateDetectionTemplateRequest::getAutoEvidence()const
{
return autoEvidence_;
}
void CreateDetectionTemplateRequest::setAutoEvidence(bool autoEvidence)
{
autoEvidence_ = autoEvidence;
setParameter("AutoEvidence", autoEvidence ? "true" : "false");
}
std::string CreateDetectionTemplateRequest::getLetterTemplateId()const
{
return letterTemplateId_;
}
void CreateDetectionTemplateRequest::setLetterTemplateId(const std::string& letterTemplateId)
{
letterTemplateId_ = letterTemplateId;
setParameter("LetterTemplateId", letterTemplateId);
}

View File

@@ -1,64 +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/vod/model/CreateDetectionTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
CreateDetectionTemplateResult::CreateDetectionTemplateResult() :
ServiceResult()
{}
CreateDetectionTemplateResult::CreateDetectionTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDetectionTemplateResult::~CreateDetectionTemplateResult()
{}
void CreateDetectionTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto detectionTemplateNode = value["DetectionTemplate"];
if(!detectionTemplateNode["CreateTime"].isNull())
detectionTemplate_.createTime = detectionTemplateNode["CreateTime"].asString();
if(!detectionTemplateNode["UserId"].isNull())
detectionTemplate_.userId = std::stol(detectionTemplateNode["UserId"].asString());
if(!detectionTemplateNode["TemplateName"].isNull())
detectionTemplate_.templateName = detectionTemplateNode["TemplateName"].asString();
if(!detectionTemplateNode["Period"].isNull())
detectionTemplate_.period = detectionTemplateNode["Period"].asString();
if(!detectionTemplateNode["Platform"].isNull())
detectionTemplate_.platform = detectionTemplateNode["Platform"].asString();
if(!detectionTemplateNode["TemplateId"].isNull())
detectionTemplate_.templateId = detectionTemplateNode["TemplateId"].asString();
if(!detectionTemplateNode["ModifyTime"].isNull())
detectionTemplate_.modifyTime = detectionTemplateNode["ModifyTime"].asString();
}
CreateDetectionTemplateResult::DetectionTemplate CreateDetectionTemplateResult::getDetectionTemplate()const
{
return detectionTemplate_;
}

View File

@@ -1,40 +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/vod/model/DeleteDetectionTemplateRequest.h>
using AlibabaCloud::Vod::Model::DeleteDetectionTemplateRequest;
DeleteDetectionTemplateRequest::DeleteDetectionTemplateRequest() :
RpcServiceRequest("vod", "2017-03-21", "DeleteDetectionTemplate")
{
setMethod(HttpRequest::Method::Post);
}
DeleteDetectionTemplateRequest::~DeleteDetectionTemplateRequest()
{}
std::string DeleteDetectionTemplateRequest::getTemplateId()const
{
return templateId_;
}
void DeleteDetectionTemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}

View File

@@ -1,44 +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/vod/model/DeleteDetectionTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DeleteDetectionTemplateResult::DeleteDetectionTemplateResult() :
ServiceResult()
{}
DeleteDetectionTemplateResult::DeleteDetectionTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteDetectionTemplateResult::~DeleteDetectionTemplateResult()
{}
void DeleteDetectionTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

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/DescribeVodDomainSrcBpsDataRequest.h>
using AlibabaCloud::Vod::Model::DescribeVodDomainSrcBpsDataRequest;
DescribeVodDomainSrcBpsDataRequest::DescribeVodDomainSrcBpsDataRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeVodDomainSrcBpsData")
{
setMethod(HttpRequest::Method::Post);
}
DescribeVodDomainSrcBpsDataRequest::~DescribeVodDomainSrcBpsDataRequest()
{}
std::string DescribeVodDomainSrcBpsDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeVodDomainSrcBpsDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeVodDomainSrcBpsDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeVodDomainSrcBpsDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeVodDomainSrcBpsDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeVodDomainSrcBpsDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
long DescribeVodDomainSrcBpsDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVodDomainSrcBpsDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeVodDomainSrcBpsDataRequest::getInterval()const
{
return interval_;
}
void DescribeVodDomainSrcBpsDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}

View File

@@ -0,0 +1,89 @@
/*
* 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/DescribeVodDomainSrcBpsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeVodDomainSrcBpsDataResult::DescribeVodDomainSrcBpsDataResult() :
ServiceResult()
{}
DescribeVodDomainSrcBpsDataResult::DescribeVodDomainSrcBpsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVodDomainSrcBpsDataResult::~DescribeVodDomainSrcBpsDataResult()
{}
void DescribeVodDomainSrcBpsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSrcBpsDataPerIntervalNode = value["SrcBpsDataPerInterval"]["DataModule"];
for (auto valueSrcBpsDataPerIntervalDataModule : allSrcBpsDataPerIntervalNode)
{
DataModule srcBpsDataPerIntervalObject;
if(!valueSrcBpsDataPerIntervalDataModule["Value"].isNull())
srcBpsDataPerIntervalObject.value = valueSrcBpsDataPerIntervalDataModule["Value"].asString();
if(!valueSrcBpsDataPerIntervalDataModule["TimeStamp"].isNull())
srcBpsDataPerIntervalObject.timeStamp = valueSrcBpsDataPerIntervalDataModule["TimeStamp"].asString();
if(!valueSrcBpsDataPerIntervalDataModule["HttpsValue"].isNull())
srcBpsDataPerIntervalObject.httpsValue = valueSrcBpsDataPerIntervalDataModule["HttpsValue"].asString();
srcBpsDataPerInterval_.push_back(srcBpsDataPerIntervalObject);
}
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
}
std::vector<DescribeVodDomainSrcBpsDataResult::DataModule> DescribeVodDomainSrcBpsDataResult::getSrcBpsDataPerInterval()const
{
return srcBpsDataPerInterval_;
}
std::string DescribeVodDomainSrcBpsDataResult::getEndTime()const
{
return endTime_;
}
std::string DescribeVodDomainSrcBpsDataResult::getDomainName()const
{
return domainName_;
}
std::string DescribeVodDomainSrcBpsDataResult::getStartTime()const
{
return startTime_;
}
std::string DescribeVodDomainSrcBpsDataResult::getDataInterval()const
{
return dataInterval_;
}

View File

@@ -1,51 +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/vod/model/GetAICaptionExtractionJobsRequest.h>
using AlibabaCloud::Vod::Model::GetAICaptionExtractionJobsRequest;
GetAICaptionExtractionJobsRequest::GetAICaptionExtractionJobsRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetAICaptionExtractionJobs")
{
setMethod(HttpRequest::Method::Post);
}
GetAICaptionExtractionJobsRequest::~GetAICaptionExtractionJobsRequest()
{}
std::string GetAICaptionExtractionJobsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetAICaptionExtractionJobsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetAICaptionExtractionJobsRequest::getJobIds()const
{
return jobIds_;
}
void GetAICaptionExtractionJobsRequest::setJobIds(const std::string& jobIds)
{
jobIds_ = jobIds;
setParameter("JobIds", jobIds);
}

View File

@@ -1,73 +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/vod/model/GetAICaptionExtractionJobsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetAICaptionExtractionJobsResult::GetAICaptionExtractionJobsResult() :
ServiceResult()
{}
GetAICaptionExtractionJobsResult::GetAICaptionExtractionJobsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAICaptionExtractionJobsResult::~GetAICaptionExtractionJobsResult()
{}
void GetAICaptionExtractionJobsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAICaptionExtractionJobListNode = value["AICaptionExtractionJobList"]["AICaptionExtractionJob"];
for (auto valueAICaptionExtractionJobListAICaptionExtractionJob : allAICaptionExtractionJobListNode)
{
AICaptionExtractionJob aICaptionExtractionJobListObject;
if(!valueAICaptionExtractionJobListAICaptionExtractionJob["CreationTime"].isNull())
aICaptionExtractionJobListObject.creationTime = valueAICaptionExtractionJobListAICaptionExtractionJob["CreationTime"].asString();
if(!valueAICaptionExtractionJobListAICaptionExtractionJob["JobId"].isNull())
aICaptionExtractionJobListObject.jobId = valueAICaptionExtractionJobListAICaptionExtractionJob["JobId"].asString();
if(!valueAICaptionExtractionJobListAICaptionExtractionJob["VideoId"].isNull())
aICaptionExtractionJobListObject.videoId = valueAICaptionExtractionJobListAICaptionExtractionJob["VideoId"].asString();
if(!valueAICaptionExtractionJobListAICaptionExtractionJob["AICaptionExtractionResult"].isNull())
aICaptionExtractionJobListObject.aICaptionExtractionResult = valueAICaptionExtractionJobListAICaptionExtractionJob["AICaptionExtractionResult"].asString();
if(!valueAICaptionExtractionJobListAICaptionExtractionJob["UserData"].isNull())
aICaptionExtractionJobListObject.userData = valueAICaptionExtractionJobListAICaptionExtractionJob["UserData"].asString();
if(!valueAICaptionExtractionJobListAICaptionExtractionJob["Code"].isNull())
aICaptionExtractionJobListObject.code = valueAICaptionExtractionJobListAICaptionExtractionJob["Code"].asString();
if(!valueAICaptionExtractionJobListAICaptionExtractionJob["Message"].isNull())
aICaptionExtractionJobListObject.message = valueAICaptionExtractionJobListAICaptionExtractionJob["Message"].asString();
if(!valueAICaptionExtractionJobListAICaptionExtractionJob["Status"].isNull())
aICaptionExtractionJobListObject.status = valueAICaptionExtractionJobListAICaptionExtractionJob["Status"].asString();
if(!valueAICaptionExtractionJobListAICaptionExtractionJob["TemplateConfig"].isNull())
aICaptionExtractionJobListObject.templateConfig = valueAICaptionExtractionJobListAICaptionExtractionJob["TemplateConfig"].asString();
aICaptionExtractionJobList_.push_back(aICaptionExtractionJobListObject);
}
}
std::vector<GetAICaptionExtractionJobsResult::AICaptionExtractionJob> GetAICaptionExtractionJobsResult::getAICaptionExtractionJobList()const
{
return aICaptionExtractionJobList_;
}

View File

@@ -1,40 +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/vod/model/GetDetectionJobRequest.h>
using AlibabaCloud::Vod::Model::GetDetectionJobRequest;
GetDetectionJobRequest::GetDetectionJobRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetDetectionJob")
{
setMethod(HttpRequest::Method::Get);
}
GetDetectionJobRequest::~GetDetectionJobRequest()
{}
std::string GetDetectionJobRequest::getJobId()const
{
return jobId_;
}
void GetDetectionJobRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}

View File

@@ -1,74 +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/vod/model/GetDetectionJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetDetectionJobResult::GetDetectionJobResult() :
ServiceResult()
{}
GetDetectionJobResult::GetDetectionJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDetectionJobResult::~GetDetectionJobResult()
{}
void GetDetectionJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto detectionJobNode = value["DetectionJob"];
if(!detectionJobNode["JobId"].isNull())
detectionJob_.jobId = detectionJobNode["JobId"].asString();
if(!detectionJobNode["CreateTime"].isNull())
detectionJob_.createTime = detectionJobNode["CreateTime"].asString();
if(!detectionJobNode["ModifyTime"].isNull())
detectionJob_.modifyTime = detectionJobNode["ModifyTime"].asString();
if(!detectionJobNode["BeginTime"].isNull())
detectionJob_.beginTime = detectionJobNode["BeginTime"].asString();
if(!detectionJobNode["EndTime"].isNull())
detectionJob_.endTime = detectionJobNode["EndTime"].asString();
if(!detectionJobNode["VideoId"].isNull())
detectionJob_.videoId = detectionJobNode["VideoId"].asString();
if(!detectionJobNode["CopyrightStatus"].isNull())
detectionJob_.copyrightStatus = detectionJobNode["CopyrightStatus"].asString();
if(!detectionJobNode["CopyrightBeginTime"].isNull())
detectionJob_.copyrightBeginTime = detectionJobNode["CopyrightBeginTime"].asString();
if(!detectionJobNode["CopyrightEndTime"].isNull())
detectionJob_.copyrightEndTime = detectionJobNode["CopyrightEndTime"].asString();
if(!detectionJobNode["CopyrightFile"].isNull())
detectionJob_.copyrightFile = detectionJobNode["CopyrightFile"].asString();
if(!detectionJobNode["WhitelistUrls"].isNull())
detectionJob_.whitelistUrls = detectionJobNode["WhitelistUrls"].asString();
if(!detectionJobNode["TemplateId"].isNull())
detectionJob_.templateId = detectionJobNode["TemplateId"].asString();
}
GetDetectionJobResult::DetectionJob GetDetectionJobResult::getDetectionJob()const
{
return detectionJob_;
}

View File

@@ -1,84 +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/vod/model/GetDetectionResultRequest.h>
using AlibabaCloud::Vod::Model::GetDetectionResultRequest;
GetDetectionResultRequest::GetDetectionResultRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetDetectionResult")
{
setMethod(HttpRequest::Method::Get);
}
GetDetectionResultRequest::~GetDetectionResultRequest()
{}
long GetDetectionResultRequest::getCountByPage()const
{
return countByPage_;
}
void GetDetectionResultRequest::setCountByPage(long countByPage)
{
countByPage_ = countByPage;
setParameter("CountByPage", std::to_string(countByPage));
}
bool GetDetectionResultRequest::getDesensitization()const
{
return desensitization_;
}
void GetDetectionResultRequest::setDesensitization(bool desensitization)
{
desensitization_ = desensitization;
setParameter("Desensitization", desensitization ? "true" : "false");
}
std::string GetDetectionResultRequest::getJobId()const
{
return jobId_;
}
void GetDetectionResultRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}
long GetDetectionResultRequest::getPage()const
{
return page_;
}
void GetDetectionResultRequest::setPage(long page)
{
page_ = page;
setParameter("Page", std::to_string(page));
}
std::string GetDetectionResultRequest::getStatus()const
{
return status_;
}
void GetDetectionResultRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -1,71 +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/vod/model/GetDetectionResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetDetectionResultResult::GetDetectionResultResult() :
ServiceResult()
{}
GetDetectionResultResult::GetDetectionResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDetectionResultResult::~GetDetectionResultResult()
{}
void GetDetectionResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDetectionResultListNode = value["DetectionResultList"]["DetectionResult"];
for (auto valueDetectionResultListDetectionResult : allDetectionResultListNode)
{
DetectionResult detectionResultListObject;
if(!valueDetectionResultListDetectionResult["Status"].isNull())
detectionResultListObject.status = valueDetectionResultListDetectionResult["Status"].asString();
if(!valueDetectionResultListDetectionResult["Platform"].isNull())
detectionResultListObject.platform = valueDetectionResultListDetectionResult["Platform"].asString();
if(!valueDetectionResultListDetectionResult["ContentType"].isNull())
detectionResultListObject.contentType = valueDetectionResultListDetectionResult["ContentType"].asString();
if(!valueDetectionResultListDetectionResult["CollectionTitle"].isNull())
detectionResultListObject.collectionTitle = valueDetectionResultListDetectionResult["CollectionTitle"].asString();
if(!valueDetectionResultListDetectionResult["CollectionUrl"].isNull())
detectionResultListObject.collectionUrl = valueDetectionResultListDetectionResult["CollectionUrl"].asString();
if(!valueDetectionResultListDetectionResult["CreateTime"].isNull())
detectionResultListObject.createTime = valueDetectionResultListDetectionResult["CreateTime"].asString();
if(!valueDetectionResultListDetectionResult["Uploader"].isNull())
detectionResultListObject.uploader = valueDetectionResultListDetectionResult["Uploader"].asString();
if(!valueDetectionResultListDetectionResult["ModifyTime"].isNull())
detectionResultListObject.modifyTime = valueDetectionResultListDetectionResult["ModifyTime"].asString();
detectionResultList_.push_back(detectionResultListObject);
}
}
std::vector<GetDetectionResultResult::DetectionResult> GetDetectionResultResult::getDetectionResultList()const
{
return detectionResultList_;
}

View File

@@ -1,40 +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/vod/model/GetDetectionTemplateRequest.h>
using AlibabaCloud::Vod::Model::GetDetectionTemplateRequest;
GetDetectionTemplateRequest::GetDetectionTemplateRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetDetectionTemplate")
{
setMethod(HttpRequest::Method::Get);
}
GetDetectionTemplateRequest::~GetDetectionTemplateRequest()
{}
std::string GetDetectionTemplateRequest::getTemplateId()const
{
return templateId_;
}
void GetDetectionTemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}

View File

@@ -1,64 +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/vod/model/GetDetectionTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetDetectionTemplateResult::GetDetectionTemplateResult() :
ServiceResult()
{}
GetDetectionTemplateResult::GetDetectionTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDetectionTemplateResult::~GetDetectionTemplateResult()
{}
void GetDetectionTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto detectionTemplateNode = value["DetectionTemplate"];
if(!detectionTemplateNode["CreateTime"].isNull())
detectionTemplate_.createTime = detectionTemplateNode["CreateTime"].asString();
if(!detectionTemplateNode["UserId"].isNull())
detectionTemplate_.userId = std::stol(detectionTemplateNode["UserId"].asString());
if(!detectionTemplateNode["TemplateName"].isNull())
detectionTemplate_.templateName = detectionTemplateNode["TemplateName"].asString();
if(!detectionTemplateNode["Period"].isNull())
detectionTemplate_.period = detectionTemplateNode["Period"].asString();
if(!detectionTemplateNode["Platform"].isNull())
detectionTemplate_.platform = detectionTemplateNode["Platform"].asString();
if(!detectionTemplateNode["TemplateId"].isNull())
detectionTemplate_.templateId = detectionTemplateNode["TemplateId"].asString();
if(!detectionTemplateNode["ModifyTime"].isNull())
detectionTemplate_.modifyTime = detectionTemplateNode["ModifyTime"].asString();
}
GetDetectionTemplateResult::DetectionTemplate GetDetectionTemplateResult::getDetectionTemplate()const
{
return detectionTemplate_;
}

View File

@@ -1,40 +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/vod/model/ListDetectionJobRequest.h>
using AlibabaCloud::Vod::Model::ListDetectionJobRequest;
ListDetectionJobRequest::ListDetectionJobRequest() :
RpcServiceRequest("vod", "2017-03-21", "ListDetectionJob")
{
setMethod(HttpRequest::Method::Get);
}
ListDetectionJobRequest::~ListDetectionJobRequest()
{}
std::string ListDetectionJobRequest::getVideoId()const
{
return videoId_;
}
void ListDetectionJobRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
}

View File

@@ -1,79 +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/vod/model/ListDetectionJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
ListDetectionJobResult::ListDetectionJobResult() :
ServiceResult()
{}
ListDetectionJobResult::ListDetectionJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDetectionJobResult::~ListDetectionJobResult()
{}
void ListDetectionJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDetectionJobListNode = value["DetectionJobList"]["DetectionJob"];
for (auto valueDetectionJobListDetectionJob : allDetectionJobListNode)
{
DetectionJob detectionJobListObject;
if(!valueDetectionJobListDetectionJob["JobId"].isNull())
detectionJobListObject.jobId = valueDetectionJobListDetectionJob["JobId"].asString();
if(!valueDetectionJobListDetectionJob["CreateTime"].isNull())
detectionJobListObject.createTime = valueDetectionJobListDetectionJob["CreateTime"].asString();
if(!valueDetectionJobListDetectionJob["ModifyTime"].isNull())
detectionJobListObject.modifyTime = valueDetectionJobListDetectionJob["ModifyTime"].asString();
if(!valueDetectionJobListDetectionJob["BeginTime"].isNull())
detectionJobListObject.beginTime = valueDetectionJobListDetectionJob["BeginTime"].asString();
if(!valueDetectionJobListDetectionJob["EndTime"].isNull())
detectionJobListObject.endTime = valueDetectionJobListDetectionJob["EndTime"].asString();
if(!valueDetectionJobListDetectionJob["VideoId"].isNull())
detectionJobListObject.videoId = valueDetectionJobListDetectionJob["VideoId"].asString();
if(!valueDetectionJobListDetectionJob["CopyrightStatus"].isNull())
detectionJobListObject.copyrightStatus = valueDetectionJobListDetectionJob["CopyrightStatus"].asString();
if(!valueDetectionJobListDetectionJob["CopyrightBeginTime"].isNull())
detectionJobListObject.copyrightBeginTime = valueDetectionJobListDetectionJob["CopyrightBeginTime"].asString();
if(!valueDetectionJobListDetectionJob["CopyrightEndTime"].isNull())
detectionJobListObject.copyrightEndTime = valueDetectionJobListDetectionJob["CopyrightEndTime"].asString();
if(!valueDetectionJobListDetectionJob["CopyrightFile"].isNull())
detectionJobListObject.copyrightFile = valueDetectionJobListDetectionJob["CopyrightFile"].asString();
if(!valueDetectionJobListDetectionJob["WhitelistUrls"].isNull())
detectionJobListObject.whitelistUrls = valueDetectionJobListDetectionJob["WhitelistUrls"].asString();
if(!valueDetectionJobListDetectionJob["TemplateId"].isNull())
detectionJobListObject.templateId = valueDetectionJobListDetectionJob["TemplateId"].asString();
detectionJobList_.push_back(detectionJobListObject);
}
}
std::vector<ListDetectionJobResult::DetectionJob> ListDetectionJobResult::getDetectionJobList()const
{
return detectionJobList_;
}

View File

@@ -1,62 +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/vod/model/ListDetectionTemplateRequest.h>
using AlibabaCloud::Vod::Model::ListDetectionTemplateRequest;
ListDetectionTemplateRequest::ListDetectionTemplateRequest() :
RpcServiceRequest("vod", "2017-03-21", "ListDetectionTemplate")
{
setMethod(HttpRequest::Method::Get);
}
ListDetectionTemplateRequest::~ListDetectionTemplateRequest()
{}
std::string ListDetectionTemplateRequest::getPeriod()const
{
return period_;
}
void ListDetectionTemplateRequest::setPeriod(const std::string& period)
{
period_ = period;
setParameter("Period", period);
}
std::string ListDetectionTemplateRequest::getTemplateName()const
{
return templateName_;
}
void ListDetectionTemplateRequest::setTemplateName(const std::string& templateName)
{
templateName_ = templateName;
setParameter("TemplateName", templateName);
}
std::string ListDetectionTemplateRequest::getLetterTemplateId()const
{
return letterTemplateId_;
}
void ListDetectionTemplateRequest::setLetterTemplateId(const std::string& letterTemplateId)
{
letterTemplateId_ = letterTemplateId;
setParameter("LetterTemplateId", letterTemplateId);
}

View File

@@ -1,69 +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/vod/model/ListDetectionTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
ListDetectionTemplateResult::ListDetectionTemplateResult() :
ServiceResult()
{}
ListDetectionTemplateResult::ListDetectionTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListDetectionTemplateResult::~ListDetectionTemplateResult()
{}
void ListDetectionTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDetectionTemplateListNode = value["DetectionTemplateList"]["DetectionTemplate"];
for (auto valueDetectionTemplateListDetectionTemplate : allDetectionTemplateListNode)
{
DetectionTemplate detectionTemplateListObject;
if(!valueDetectionTemplateListDetectionTemplate["CreateTime"].isNull())
detectionTemplateListObject.createTime = valueDetectionTemplateListDetectionTemplate["CreateTime"].asString();
if(!valueDetectionTemplateListDetectionTemplate["UserId"].isNull())
detectionTemplateListObject.userId = std::stol(valueDetectionTemplateListDetectionTemplate["UserId"].asString());
if(!valueDetectionTemplateListDetectionTemplate["TemplateName"].isNull())
detectionTemplateListObject.templateName = valueDetectionTemplateListDetectionTemplate["TemplateName"].asString();
if(!valueDetectionTemplateListDetectionTemplate["Period"].isNull())
detectionTemplateListObject.period = valueDetectionTemplateListDetectionTemplate["Period"].asString();
if(!valueDetectionTemplateListDetectionTemplate["Platform"].isNull())
detectionTemplateListObject.platform = valueDetectionTemplateListDetectionTemplate["Platform"].asString();
if(!valueDetectionTemplateListDetectionTemplate["TemplateId"].isNull())
detectionTemplateListObject.templateId = valueDetectionTemplateListDetectionTemplate["TemplateId"].asString();
if(!valueDetectionTemplateListDetectionTemplate["ModifyTime"].isNull())
detectionTemplateListObject.modifyTime = valueDetectionTemplateListDetectionTemplate["ModifyTime"].asString();
detectionTemplateList_.push_back(detectionTemplateListObject);
}
}
std::vector<ListDetectionTemplateResult::DetectionTemplate> ListDetectionTemplateResult::getDetectionTemplateList()const
{
return detectionTemplateList_;
}

View File

@@ -1,62 +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/vod/model/ListLetterSendJobRequest.h>
using AlibabaCloud::Vod::Model::ListLetterSendJobRequest;
ListLetterSendJobRequest::ListLetterSendJobRequest() :
RpcServiceRequest("vod", "2017-03-21", "ListLetterSendJob")
{
setMethod(HttpRequest::Method::Get);
}
ListLetterSendJobRequest::~ListLetterSendJobRequest()
{}
std::string ListLetterSendJobRequest::getToAddress()const
{
return toAddress_;
}
void ListLetterSendJobRequest::setToAddress(const std::string& toAddress)
{
toAddress_ = toAddress;
setParameter("ToAddress", toAddress);
}
std::string ListLetterSendJobRequest::getTemplateId()const
{
return templateId_;
}
void ListLetterSendJobRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}
std::string ListLetterSendJobRequest::getDetectionId()const
{
return detectionId_;
}
void ListLetterSendJobRequest::setDetectionId(const std::string& detectionId)
{
detectionId_ = detectionId;
setParameter("DetectionId", detectionId);
}

View File

@@ -1,79 +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/vod/model/ListLetterSendJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
ListLetterSendJobResult::ListLetterSendJobResult() :
ServiceResult()
{}
ListLetterSendJobResult::ListLetterSendJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListLetterSendJobResult::~ListLetterSendJobResult()
{}
void ListLetterSendJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLetterJobListNode = value["LetterJobList"]["LetterJob"];
for (auto valueLetterJobListLetterJob : allLetterJobListNode)
{
LetterJob letterJobListObject;
if(!valueLetterJobListLetterJob["CcAddress"].isNull())
letterJobListObject.ccAddress = valueLetterJobListLetterJob["CcAddress"].asString();
if(!valueLetterJobListLetterJob["CreateTime"].isNull())
letterJobListObject.createTime = valueLetterJobListLetterJob["CreateTime"].asString();
if(!valueLetterJobListLetterJob["UserId"].isNull())
letterJobListObject.userId = std::stol(valueLetterJobListLetterJob["UserId"].asString());
if(!valueLetterJobListLetterJob["SendTime"].isNull())
letterJobListObject.sendTime = valueLetterJobListLetterJob["SendTime"].asString();
if(!valueLetterJobListLetterJob["ToAddress"].isNull())
letterJobListObject.toAddress = valueLetterJobListLetterJob["ToAddress"].asString();
if(!valueLetterJobListLetterJob["Body"].isNull())
letterJobListObject.body = valueLetterJobListLetterJob["Body"].asString();
if(!valueLetterJobListLetterJob["DetectionId"].isNull())
letterJobListObject.detectionId = valueLetterJobListLetterJob["DetectionId"].asString();
if(!valueLetterJobListLetterJob["BccAddress"].isNull())
letterJobListObject.bccAddress = valueLetterJobListLetterJob["BccAddress"].asString();
if(!valueLetterJobListLetterJob["JobId"].isNull())
letterJobListObject.jobId = valueLetterJobListLetterJob["JobId"].asString();
if(!valueLetterJobListLetterJob["Title"].isNull())
letterJobListObject.title = valueLetterJobListLetterJob["Title"].asString();
if(!valueLetterJobListLetterJob["TemplateId"].isNull())
letterJobListObject.templateId = valueLetterJobListLetterJob["TemplateId"].asString();
if(!valueLetterJobListLetterJob["ModifyTime"].isNull())
letterJobListObject.modifyTime = valueLetterJobListLetterJob["ModifyTime"].asString();
letterJobList_.push_back(letterJobListObject);
}
}
std::vector<ListLetterSendJobResult::LetterJob> ListLetterSendJobResult::getLetterJobList()const
{
return letterJobList_;
}

View File

@@ -1,84 +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/vod/model/SubmitAICaptionExtractionJobRequest.h>
using AlibabaCloud::Vod::Model::SubmitAICaptionExtractionJobRequest;
SubmitAICaptionExtractionJobRequest::SubmitAICaptionExtractionJobRequest() :
RpcServiceRequest("vod", "2017-03-21", "SubmitAICaptionExtractionJob")
{
setMethod(HttpRequest::Method::Post);
}
SubmitAICaptionExtractionJobRequest::~SubmitAICaptionExtractionJobRequest()
{}
std::string SubmitAICaptionExtractionJobRequest::getJobConfig()const
{
return jobConfig_;
}
void SubmitAICaptionExtractionJobRequest::setJobConfig(const std::string& jobConfig)
{
jobConfig_ = jobConfig;
setParameter("JobConfig", jobConfig);
}
std::string SubmitAICaptionExtractionJobRequest::getVideoId()const
{
return videoId_;
}
void SubmitAICaptionExtractionJobRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
}
std::string SubmitAICaptionExtractionJobRequest::getAIPipelineId()const
{
return aIPipelineId_;
}
void SubmitAICaptionExtractionJobRequest::setAIPipelineId(const std::string& aIPipelineId)
{
aIPipelineId_ = aIPipelineId;
setParameter("AIPipelineId", aIPipelineId);
}
std::string SubmitAICaptionExtractionJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SubmitAICaptionExtractionJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string SubmitAICaptionExtractionJobRequest::getUserData()const
{
return userData_;
}
void SubmitAICaptionExtractionJobRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
}

View File

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

View File

@@ -1,150 +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/vod/model/SubmitDetectionJobRequest.h>
using AlibabaCloud::Vod::Model::SubmitDetectionJobRequest;
SubmitDetectionJobRequest::SubmitDetectionJobRequest() :
RpcServiceRequest("vod", "2017-03-21", "SubmitDetectionJob")
{
setMethod(HttpRequest::Method::Post);
}
SubmitDetectionJobRequest::~SubmitDetectionJobRequest()
{}
std::string SubmitDetectionJobRequest::getWhiteListUrls()const
{
return whiteListUrls_;
}
void SubmitDetectionJobRequest::setWhiteListUrls(const std::string& whiteListUrls)
{
whiteListUrls_ = whiteListUrls;
setParameter("WhiteListUrls", whiteListUrls);
}
std::string SubmitDetectionJobRequest::getCopyrightEndTime()const
{
return copyrightEndTime_;
}
void SubmitDetectionJobRequest::setCopyrightEndTime(const std::string& copyrightEndTime)
{
copyrightEndTime_ = copyrightEndTime;
setParameter("CopyrightEndTime", copyrightEndTime);
}
std::string SubmitDetectionJobRequest::getCopyrightStatus()const
{
return copyrightStatus_;
}
void SubmitDetectionJobRequest::setCopyrightStatus(const std::string& copyrightStatus)
{
copyrightStatus_ = copyrightStatus;
setParameter("CopyrightStatus", copyrightStatus);
}
std::string SubmitDetectionJobRequest::getCopyrightBeginTime()const
{
return copyrightBeginTime_;
}
void SubmitDetectionJobRequest::setCopyrightBeginTime(const std::string& copyrightBeginTime)
{
copyrightBeginTime_ = copyrightBeginTime;
setParameter("CopyrightBeginTime", copyrightBeginTime);
}
int SubmitDetectionJobRequest::getDuration()const
{
return duration_;
}
void SubmitDetectionJobRequest::setDuration(int duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
}
std::string SubmitDetectionJobRequest::getEndTime()const
{
return endTime_;
}
void SubmitDetectionJobRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string SubmitDetectionJobRequest::getVideoId()const
{
return videoId_;
}
void SubmitDetectionJobRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
}
std::string SubmitDetectionJobRequest::getBeginTime()const
{
return beginTime_;
}
void SubmitDetectionJobRequest::setBeginTime(const std::string& beginTime)
{
beginTime_ = beginTime;
setParameter("BeginTime", beginTime);
}
bool SubmitDetectionJobRequest::getShortVideo()const
{
return shortVideo_;
}
void SubmitDetectionJobRequest::setShortVideo(bool shortVideo)
{
shortVideo_ = shortVideo;
setParameter("ShortVideo", shortVideo ? "true" : "false");
}
std::string SubmitDetectionJobRequest::getTemplateId()const
{
return templateId_;
}
void SubmitDetectionJobRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}
std::string SubmitDetectionJobRequest::getCopyrightFile()const
{
return copyrightFile_;
}
void SubmitDetectionJobRequest::setCopyrightFile(const std::string& copyrightFile)
{
copyrightFile_ = copyrightFile;
setParameter("CopyrightFile", copyrightFile);
}

View File

@@ -1,74 +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/vod/model/SubmitDetectionJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
SubmitDetectionJobResult::SubmitDetectionJobResult() :
ServiceResult()
{}
SubmitDetectionJobResult::SubmitDetectionJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitDetectionJobResult::~SubmitDetectionJobResult()
{}
void SubmitDetectionJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto detectionJobNode = value["DetectionJob"];
if(!detectionJobNode["JobId"].isNull())
detectionJob_.jobId = detectionJobNode["JobId"].asString();
if(!detectionJobNode["CreateTime"].isNull())
detectionJob_.createTime = detectionJobNode["CreateTime"].asString();
if(!detectionJobNode["ModifyTime"].isNull())
detectionJob_.modifyTime = detectionJobNode["ModifyTime"].asString();
if(!detectionJobNode["BeginTime"].isNull())
detectionJob_.beginTime = detectionJobNode["BeginTime"].asString();
if(!detectionJobNode["EndTime"].isNull())
detectionJob_.endTime = detectionJobNode["EndTime"].asString();
if(!detectionJobNode["VideoId"].isNull())
detectionJob_.videoId = detectionJobNode["VideoId"].asString();
if(!detectionJobNode["CopyrightStatus"].isNull())
detectionJob_.copyrightStatus = detectionJobNode["CopyrightStatus"].asString();
if(!detectionJobNode["CopyrightBeginTime"].isNull())
detectionJob_.copyrightBeginTime = detectionJobNode["CopyrightBeginTime"].asString();
if(!detectionJobNode["CopyrightEndTime"].isNull())
detectionJob_.copyrightEndTime = detectionJobNode["CopyrightEndTime"].asString();
if(!detectionJobNode["CopyrightFile"].isNull())
detectionJob_.copyrightFile = detectionJobNode["CopyrightFile"].asString();
if(!detectionJobNode["WhitelistUrls"].isNull())
detectionJob_.whitelistUrls = detectionJobNode["WhitelistUrls"].asString();
if(!detectionJobNode["TemplateId"].isNull())
detectionJob_.templateId = detectionJobNode["TemplateId"].asString();
}
SubmitDetectionJobResult::DetectionJob SubmitDetectionJobResult::getDetectionJob()const
{
return detectionJob_;
}

View File

@@ -1,139 +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/vod/model/UpdateDetectionJobRequest.h>
using AlibabaCloud::Vod::Model::UpdateDetectionJobRequest;
UpdateDetectionJobRequest::UpdateDetectionJobRequest() :
RpcServiceRequest("vod", "2017-03-21", "UpdateDetectionJob")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDetectionJobRequest::~UpdateDetectionJobRequest()
{}
std::string UpdateDetectionJobRequest::getWhiteListUrls()const
{
return whiteListUrls_;
}
void UpdateDetectionJobRequest::setWhiteListUrls(const std::string& whiteListUrls)
{
whiteListUrls_ = whiteListUrls;
setParameter("WhiteListUrls", whiteListUrls);
}
std::string UpdateDetectionJobRequest::getCopyrightEndTime()const
{
return copyrightEndTime_;
}
void UpdateDetectionJobRequest::setCopyrightEndTime(const std::string& copyrightEndTime)
{
copyrightEndTime_ = copyrightEndTime;
setParameter("CopyrightEndTime", copyrightEndTime);
}
std::string UpdateDetectionJobRequest::getCopyrightStatus()const
{
return copyrightStatus_;
}
void UpdateDetectionJobRequest::setCopyrightStatus(const std::string& copyrightStatus)
{
copyrightStatus_ = copyrightStatus;
setParameter("CopyrightStatus", copyrightStatus);
}
std::string UpdateDetectionJobRequest::getCopyrightBeginTime()const
{
return copyrightBeginTime_;
}
void UpdateDetectionJobRequest::setCopyrightBeginTime(const std::string& copyrightBeginTime)
{
copyrightBeginTime_ = copyrightBeginTime;
setParameter("CopyrightBeginTime", copyrightBeginTime);
}
int UpdateDetectionJobRequest::getDuration()const
{
return duration_;
}
void UpdateDetectionJobRequest::setDuration(int duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
}
std::string UpdateDetectionJobRequest::getJobId()const
{
return jobId_;
}
void UpdateDetectionJobRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setParameter("JobId", jobId);
}
std::string UpdateDetectionJobRequest::getEndTime()const
{
return endTime_;
}
void UpdateDetectionJobRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string UpdateDetectionJobRequest::getBeginTime()const
{
return beginTime_;
}
void UpdateDetectionJobRequest::setBeginTime(const std::string& beginTime)
{
beginTime_ = beginTime;
setParameter("BeginTime", beginTime);
}
std::string UpdateDetectionJobRequest::getTemplateId()const
{
return templateId_;
}
void UpdateDetectionJobRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}
std::string UpdateDetectionJobRequest::getCopyrightFile()const
{
return copyrightFile_;
}
void UpdateDetectionJobRequest::setCopyrightFile(const std::string& copyrightFile)
{
copyrightFile_ = copyrightFile;
setParameter("CopyrightFile", copyrightFile);
}

View File

@@ -1,74 +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/vod/model/UpdateDetectionJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
UpdateDetectionJobResult::UpdateDetectionJobResult() :
ServiceResult()
{}
UpdateDetectionJobResult::UpdateDetectionJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateDetectionJobResult::~UpdateDetectionJobResult()
{}
void UpdateDetectionJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto detectionJobNode = value["DetectionJob"];
if(!detectionJobNode["JobId"].isNull())
detectionJob_.jobId = detectionJobNode["JobId"].asString();
if(!detectionJobNode["CreateTime"].isNull())
detectionJob_.createTime = detectionJobNode["CreateTime"].asString();
if(!detectionJobNode["ModifyTime"].isNull())
detectionJob_.modifyTime = detectionJobNode["ModifyTime"].asString();
if(!detectionJobNode["BeginTime"].isNull())
detectionJob_.beginTime = detectionJobNode["BeginTime"].asString();
if(!detectionJobNode["EndTime"].isNull())
detectionJob_.endTime = detectionJobNode["EndTime"].asString();
if(!detectionJobNode["VideoId"].isNull())
detectionJob_.videoId = detectionJobNode["VideoId"].asString();
if(!detectionJobNode["CopyrightStatus"].isNull())
detectionJob_.copyrightStatus = detectionJobNode["CopyrightStatus"].asString();
if(!detectionJobNode["CopyrightBeginTime"].isNull())
detectionJob_.copyrightBeginTime = detectionJobNode["CopyrightBeginTime"].asString();
if(!detectionJobNode["CopyrightEndTime"].isNull())
detectionJob_.copyrightEndTime = detectionJobNode["CopyrightEndTime"].asString();
if(!detectionJobNode["CopyrightFile"].isNull())
detectionJob_.copyrightFile = detectionJobNode["CopyrightFile"].asString();
if(!detectionJobNode["WhitelistUrls"].isNull())
detectionJob_.whitelistUrls = detectionJobNode["WhitelistUrls"].asString();
if(!detectionJobNode["TemplateId"].isNull())
detectionJob_.templateId = detectionJobNode["TemplateId"].asString();
}
UpdateDetectionJobResult::DetectionJob UpdateDetectionJobResult::getDetectionJob()const
{
return detectionJob_;
}

View File

@@ -1,139 +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/vod/model/UpdateDetectionTemplateRequest.h>
using AlibabaCloud::Vod::Model::UpdateDetectionTemplateRequest;
UpdateDetectionTemplateRequest::UpdateDetectionTemplateRequest() :
RpcServiceRequest("vod", "2017-03-21", "UpdateDetectionTemplate")
{
setMethod(HttpRequest::Method::Post);
}
UpdateDetectionTemplateRequest::~UpdateDetectionTemplateRequest()
{}
std::string UpdateDetectionTemplateRequest::getLetterSendTime()const
{
return letterSendTime_;
}
void UpdateDetectionTemplateRequest::setLetterSendTime(const std::string& letterSendTime)
{
letterSendTime_ = letterSendTime;
setParameter("LetterSendTime", letterSendTime);
}
bool UpdateDetectionTemplateRequest::getAutoLetterSuspect()const
{
return autoLetterSuspect_;
}
void UpdateDetectionTemplateRequest::setAutoLetterSuspect(bool autoLetterSuspect)
{
autoLetterSuspect_ = autoLetterSuspect;
setParameter("AutoLetterSuspect", autoLetterSuspect ? "true" : "false");
}
std::string UpdateDetectionTemplateRequest::getPlatform()const
{
return platform_;
}
void UpdateDetectionTemplateRequest::setPlatform(const std::string& platform)
{
platform_ = platform;
setParameter("Platform", platform);
}
bool UpdateDetectionTemplateRequest::getAutoLetter()const
{
return autoLetter_;
}
void UpdateDetectionTemplateRequest::setAutoLetter(bool autoLetter)
{
autoLetter_ = autoLetter;
setParameter("AutoLetter", autoLetter ? "true" : "false");
}
std::string UpdateDetectionTemplateRequest::getTemplateName()const
{
return templateName_;
}
void UpdateDetectionTemplateRequest::setTemplateName(const std::string& templateName)
{
templateName_ = templateName;
setParameter("TemplateName", templateName);
}
bool UpdateDetectionTemplateRequest::getAutoEvidence()const
{
return autoEvidence_;
}
void UpdateDetectionTemplateRequest::setAutoEvidence(bool autoEvidence)
{
autoEvidence_ = autoEvidence;
setParameter("AutoEvidence", autoEvidence ? "true" : "false");
}
std::string UpdateDetectionTemplateRequest::getLetterTemplateId()const
{
return letterTemplateId_;
}
void UpdateDetectionTemplateRequest::setLetterTemplateId(const std::string& letterTemplateId)
{
letterTemplateId_ = letterTemplateId;
setParameter("LetterTemplateId", letterTemplateId);
}
std::string UpdateDetectionTemplateRequest::getPeriod()const
{
return period_;
}
void UpdateDetectionTemplateRequest::setPeriod(const std::string& period)
{
period_ = period;
setParameter("Period", period);
}
bool UpdateDetectionTemplateRequest::getAutoEvidenceSuspect()const
{
return autoEvidenceSuspect_;
}
void UpdateDetectionTemplateRequest::setAutoEvidenceSuspect(bool autoEvidenceSuspect)
{
autoEvidenceSuspect_ = autoEvidenceSuspect;
setParameter("AutoEvidenceSuspect", autoEvidenceSuspect ? "true" : "false");
}
std::string UpdateDetectionTemplateRequest::getTemplateId()const
{
return templateId_;
}
void UpdateDetectionTemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setParameter("TemplateId", templateId);
}

View File

@@ -1,64 +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/vod/model/UpdateDetectionTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
UpdateDetectionTemplateResult::UpdateDetectionTemplateResult() :
ServiceResult()
{}
UpdateDetectionTemplateResult::UpdateDetectionTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateDetectionTemplateResult::~UpdateDetectionTemplateResult()
{}
void UpdateDetectionTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto detectionTemplateNode = value["DetectionTemplate"];
if(!detectionTemplateNode["CreateTime"].isNull())
detectionTemplate_.createTime = detectionTemplateNode["CreateTime"].asString();
if(!detectionTemplateNode["UserId"].isNull())
detectionTemplate_.userId = std::stol(detectionTemplateNode["UserId"].asString());
if(!detectionTemplateNode["TemplateName"].isNull())
detectionTemplate_.templateName = detectionTemplateNode["TemplateName"].asString();
if(!detectionTemplateNode["Period"].isNull())
detectionTemplate_.period = detectionTemplateNode["Period"].asString();
if(!detectionTemplateNode["Platform"].isNull())
detectionTemplate_.platform = detectionTemplateNode["Platform"].asString();
if(!detectionTemplateNode["TemplateId"].isNull())
detectionTemplate_.templateId = detectionTemplateNode["TemplateId"].asString();
if(!detectionTemplateNode["ModifyTime"].isNull())
detectionTemplate_.modifyTime = detectionTemplateNode["ModifyTime"].asString();
}
UpdateDetectionTemplateResult::DetectionTemplate UpdateDetectionTemplateResult::getDetectionTemplate()const
{
return detectionTemplate_;
}