Add copyright invasion detection APIs.

This commit is contained in:
sdk-team
2021-09-18 03:36:45 +00:00
parent b8ca7e85aa
commit e690260627
321 changed files with 7452 additions and 5586 deletions

View File

@@ -27,17 +27,6 @@ AddAITemplateRequest::AddAITemplateRequest() :
AddAITemplateRequest::~AddAITemplateRequest()
{}
long AddAITemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddAITemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddAITemplateRequest::getTemplateConfig()const
{
return templateConfig_;
@@ -71,25 +60,3 @@ void AddAITemplateRequest::setTemplateName(const std::string& templateName)
setParameter("TemplateName", templateName);
}
std::string AddAITemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddAITemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long AddAITemplateRequest::getOwnerId()const
{
return ownerId_;
}
void AddAITemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -27,17 +27,6 @@ AddCategoryRequest::AddCategoryRequest() :
AddCategoryRequest::~AddCategoryRequest()
{}
std::string AddCategoryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddCategoryRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string AddCategoryRequest::getType()const
{
return type_;
@@ -71,25 +60,3 @@ void AddCategoryRequest::setCateName(const std::string& cateName)
setParameter("CateName", cateName);
}
std::string AddCategoryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddCategoryRequest::getOwnerId()const
{
return ownerId_;
}
void AddCategoryRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}

View File

@@ -93,6 +93,28 @@ void AddEditingProjectRequest::setDivision(const std::string& division)
setParameter("Division", division);
}
float AddEditingProjectRequest::getDuration()const
{
return duration_;
}
void AddEditingProjectRequest::setDuration(float duration)
{
duration_ = duration;
setParameter("Duration", std::to_string(duration));
}
std::string AddEditingProjectRequest::getFEExtend()const
{
return fEExtend_;
}
void AddEditingProjectRequest::setFEExtend(const std::string& fEExtend)
{
fEExtend_ = fEExtend;
setParameter("FEExtend", fEExtend);
}
std::string AddEditingProjectRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;

View File

@@ -38,17 +38,6 @@ void AddTranscodeTemplateGroupRequest::setTranscodeTemplateList(const std::strin
setParameter("TranscodeTemplateList", transcodeTemplateList);
}
long AddTranscodeTemplateGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddTranscodeTemplateGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddTranscodeTemplateGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
@@ -60,28 +49,6 @@ void AddTranscodeTemplateGroupRequest::setAccessKeyId(const std::string& accessK
setParameter("AccessKeyId", accessKeyId);
}
std::string AddTranscodeTemplateGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddTranscodeTemplateGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long AddTranscodeTemplateGroupRequest::getOwnerId()const
{
return ownerId_;
}
void AddTranscodeTemplateGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddTranscodeTemplateGroupRequest::getTranscodeTemplateGroupId()const
{
return transcodeTemplateGroupId_;

View File

@@ -27,17 +27,6 @@ AddVodTemplateRequest::AddVodTemplateRequest() :
AddVodTemplateRequest::~AddVodTemplateRequest()
{}
long AddVodTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddVodTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddVodTemplateRequest::getSubTemplateType()const
{
return subTemplateType_;
@@ -71,28 +60,6 @@ void AddVodTemplateRequest::setTemplateType(const std::string& templateType)
setParameter("TemplateType", templateType);
}
std::string AddVodTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddVodTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long AddVodTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void AddVodTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddVodTemplateRequest::getAppId()const
{
return appId_;

View File

@@ -27,17 +27,6 @@ AddWatermarkRequest::AddWatermarkRequest() :
AddWatermarkRequest::~AddWatermarkRequest()
{}
long AddWatermarkRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddWatermarkRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddWatermarkRequest::getType()const
{
return type_;
@@ -60,28 +49,6 @@ void AddWatermarkRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string AddWatermarkRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddWatermarkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long AddWatermarkRequest::getOwnerId()const
{
return ownerId_;
}
void AddWatermarkRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddWatermarkRequest::getWatermarkConfig()const
{
return watermarkConfig_;

View File

@@ -27,17 +27,6 @@ AttachAppPolicyToIdentityRequest::AttachAppPolicyToIdentityRequest() :
AttachAppPolicyToIdentityRequest::~AttachAppPolicyToIdentityRequest()
{}
long AttachAppPolicyToIdentityRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AttachAppPolicyToIdentityRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AttachAppPolicyToIdentityRequest::getPolicyNames()const
{
return policyNames_;
@@ -82,28 +71,6 @@ void AttachAppPolicyToIdentityRequest::setIdentityType(const std::string& identi
setParameter("IdentityType", identityType);
}
std::string AttachAppPolicyToIdentityRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AttachAppPolicyToIdentityRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long AttachAppPolicyToIdentityRequest::getOwnerId()const
{
return ownerId_;
}
void AttachAppPolicyToIdentityRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AttachAppPolicyToIdentityRequest::getAppId()const
{
return appId_;

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/CancelUrlUploadJobsRequest.h>
using AlibabaCloud::Vod::Model::CancelUrlUploadJobsRequest;
CancelUrlUploadJobsRequest::CancelUrlUploadJobsRequest() :
RpcServiceRequest("vod", "2017-03-21", "CancelUrlUploadJobs")
{
setMethod(HttpRequest::Method::Post);
}
CancelUrlUploadJobsRequest::~CancelUrlUploadJobsRequest()
{}
std::string CancelUrlUploadJobsRequest::getJobIds()const
{
return jobIds_;
}
void CancelUrlUploadJobsRequest::setJobIds(const std::string& jobIds)
{
jobIds_ = jobIds;
setParameter("JobIds", jobIds);
}
std::string CancelUrlUploadJobsRequest::getUploadUrls()const
{
return uploadUrls_;
}
void CancelUrlUploadJobsRequest::setUploadUrls(const std::string& uploadUrls)
{
uploadUrls_ = uploadUrls;
setParameter("UploadUrls", uploadUrls);
}

View File

@@ -0,0 +1,60 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/CancelUrlUploadJobsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
CancelUrlUploadJobsResult::CancelUrlUploadJobsResult() :
ServiceResult()
{}
CancelUrlUploadJobsResult::CancelUrlUploadJobsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CancelUrlUploadJobsResult::~CancelUrlUploadJobsResult()
{}
void CancelUrlUploadJobsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCanceledJobs = value["CanceledJobs"]["JobId"];
for (const auto &item : allCanceledJobs)
canceledJobs_.push_back(item.asString());
auto allNonExists = value["NonExists"]["JobId"];
for (const auto &item : allNonExists)
nonExists_.push_back(item.asString());
}
std::vector<std::string> CancelUrlUploadJobsResult::getNonExists()const
{
return nonExists_;
}
std::vector<std::string> CancelUrlUploadJobsResult::getCanceledJobs()const
{
return canceledJobs_;
}

View File

@@ -27,17 +27,6 @@ CreateAppInfoRequest::CreateAppInfoRequest() :
CreateAppInfoRequest::~CreateAppInfoRequest()
{}
long CreateAppInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateAppInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateAppInfoRequest::getDescription()const
{
return description_;
@@ -82,25 +71,3 @@ void CreateAppInfoRequest::setAppName(const std::string& appName)
setParameter("AppName", appName);
}
std::string CreateAppInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateAppInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long CreateAppInfoRequest::getOwnerId()const
{
return ownerId_;
}
void CreateAppInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -1,117 +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/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,128 @@
/*
* 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

@@ -0,0 +1,64 @@
/*
* 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,106 +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/CreateMediaDNALibRequest.h>
using AlibabaCloud::Vod::Model::CreateMediaDNALibRequest;
CreateMediaDNALibRequest::CreateMediaDNALibRequest() :
RpcServiceRequest("vod", "2017-03-21", "CreateMediaDNALib")
{
setMethod(HttpRequest::Method::Post);
}
CreateMediaDNALibRequest::~CreateMediaDNALibRequest()
{}
std::string CreateMediaDNALibRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateMediaDNALibRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string CreateMediaDNALibRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateMediaDNALibRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateMediaDNALibRequest::getModelType()const
{
return modelType_;
}
void CreateMediaDNALibRequest::setModelType(const std::string& modelType)
{
modelType_ = modelType;
setParameter("ModelType", modelType);
}
std::string CreateMediaDNALibRequest::getLibRegion()const
{
return libRegion_;
}
void CreateMediaDNALibRequest::setLibRegion(const std::string& libRegion)
{
libRegion_ = libRegion;
setParameter("LibRegion", libRegion);
}
std::string CreateMediaDNALibRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateMediaDNALibRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateMediaDNALibRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateMediaDNALibRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateMediaDNALibRequest::getOwnerId()const
{
return ownerId_;
}
void CreateMediaDNALibRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}

View File

@@ -27,17 +27,6 @@ CreateUploadAttachedMediaRequest::CreateUploadAttachedMediaRequest() :
CreateUploadAttachedMediaRequest::~CreateUploadAttachedMediaRequest()
{}
long CreateUploadAttachedMediaRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateUploadAttachedMediaRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateUploadAttachedMediaRequest::getIcon()const
{
return icon_;
@@ -137,17 +126,6 @@ void CreateUploadAttachedMediaRequest::setCateId(long cateId)
setParameter("CateId", std::to_string(cateId));
}
std::string CreateUploadAttachedMediaRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateUploadAttachedMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateUploadAttachedMediaRequest::getCateIds()const
{
return cateIds_;
@@ -159,17 +137,6 @@ void CreateUploadAttachedMediaRequest::setCateIds(const std::string& cateIds)
setParameter("CateIds", cateIds);
}
long CreateUploadAttachedMediaRequest::getOwnerId()const
{
return ownerId_;
}
void CreateUploadAttachedMediaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateUploadAttachedMediaRequest::getTags()const
{
return tags_;

View File

@@ -27,17 +27,6 @@ CreateUploadImageRequest::CreateUploadImageRequest() :
CreateUploadImageRequest::~CreateUploadImageRequest()
{}
long CreateUploadImageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateUploadImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateUploadImageRequest::getDescription()const
{
return description_;
@@ -115,17 +104,6 @@ void CreateUploadImageRequest::setImageType(const std::string& imageType)
setParameter("ImageType", imageType);
}
std::string CreateUploadImageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateUploadImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateUploadImageRequest::getImageExt()const
{
return imageExt_;
@@ -137,17 +115,6 @@ void CreateUploadImageRequest::setImageExt(const std::string& imageExt)
setParameter("ImageExt", imageExt);
}
long CreateUploadImageRequest::getOwnerId()const
{
return ownerId_;
}
void CreateUploadImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateUploadImageRequest::getTags()const
{
return tags_;

View File

@@ -27,17 +27,6 @@ CreateUploadVideoRequest::CreateUploadVideoRequest() :
CreateUploadVideoRequest::~CreateUploadVideoRequest()
{}
long CreateUploadVideoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateUploadVideoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateUploadVideoRequest::getTranscodeMode()const
{
return transcodeMode_;
@@ -148,17 +137,6 @@ void CreateUploadVideoRequest::setCustomMediaInfo(const std::string& customMedia
setParameter("CustomMediaInfo", customMediaInfo);
}
std::string CreateUploadVideoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateUploadVideoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateUploadVideoRequest::getIP()const
{
return iP_;
@@ -170,17 +148,6 @@ void CreateUploadVideoRequest::setIP(const std::string& iP)
setParameter("IP", iP);
}
long CreateUploadVideoRequest::getOwnerId()const
{
return ownerId_;
}
void CreateUploadVideoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateUploadVideoRequest::getTags()const
{
return tags_;

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/CreateVodRealTimeLogDeliveryRequest.h>
using AlibabaCloud::Vod::Model::CreateVodRealTimeLogDeliveryRequest;
CreateVodRealTimeLogDeliveryRequest::CreateVodRealTimeLogDeliveryRequest() :
RpcServiceRequest("vod", "2017-03-21", "CreateVodRealTimeLogDelivery")
{
setMethod(HttpRequest::Method::Get);
}
CreateVodRealTimeLogDeliveryRequest::~CreateVodRealTimeLogDeliveryRequest()
{}
std::string CreateVodRealTimeLogDeliveryRequest::getProject()const
{
return project_;
}
void CreateVodRealTimeLogDeliveryRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
std::string CreateVodRealTimeLogDeliveryRequest::getDomainName()const
{
return domainName_;
}
void CreateVodRealTimeLogDeliveryRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long CreateVodRealTimeLogDeliveryRequest::getOwnerId()const
{
return ownerId_;
}
void CreateVodRealTimeLogDeliveryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateVodRealTimeLogDeliveryRequest::getRegion()const
{
return region_;
}
void CreateVodRealTimeLogDeliveryRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}
std::string CreateVodRealTimeLogDeliveryRequest::getLogstore()const
{
return logstore_;
}
void CreateVodRealTimeLogDeliveryRequest::setLogstore(const std::string& logstore)
{
logstore_ = logstore;
setParameter("Logstore", logstore);
}

View File

@@ -14,38 +14,31 @@
* limitations under the License.
*/
#include <alibabacloud/vod/model/GetDRMLicenseResult.h>
#include <alibabacloud/vod/model/CreateVodRealTimeLogDeliveryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetDRMLicenseResult::GetDRMLicenseResult() :
CreateVodRealTimeLogDeliveryResult::CreateVodRealTimeLogDeliveryResult() :
ServiceResult()
{}
GetDRMLicenseResult::GetDRMLicenseResult(const std::string &payload) :
CreateVodRealTimeLogDeliveryResult::CreateVodRealTimeLogDeliveryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDRMLicenseResult::~GetDRMLicenseResult()
CreateVodRealTimeLogDeliveryResult::~CreateVodRealTimeLogDeliveryResult()
{}
void GetDRMLicenseResult::parse(const std::string &payload)
void CreateVodRealTimeLogDeliveryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["License"].isNull())
license_ = value["License"].asString();
}
std::string GetDRMLicenseResult::getLicense()const
{
return license_;
}

View File

@@ -27,39 +27,6 @@ DeleteAIImageInfosRequest::DeleteAIImageInfosRequest() :
DeleteAIImageInfosRequest::~DeleteAIImageInfosRequest()
{}
long DeleteAIImageInfosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteAIImageInfosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteAIImageInfosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteAIImageInfosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteAIImageInfosRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteAIImageInfosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteAIImageInfosRequest::getAccessKeyId()const
{
return accessKeyId_;

View File

@@ -27,39 +27,6 @@ DeleteAITemplateRequest::DeleteAITemplateRequest() :
DeleteAITemplateRequest::~DeleteAITemplateRequest()
{}
long DeleteAITemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteAITemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteAITemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteAITemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteAITemplateRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteAITemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteAITemplateRequest::getTemplateId()const
{
return templateId_;

View File

@@ -27,28 +27,6 @@ DeleteAppInfoRequest::DeleteAppInfoRequest() :
DeleteAppInfoRequest::~DeleteAppInfoRequest()
{}
long DeleteAppInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteAppInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteAppInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteAppInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteAppInfoRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
@@ -60,17 +38,6 @@ void DeleteAppInfoRequest::setResourceRealOwnerId(long resourceRealOwnerId)
setParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
long DeleteAppInfoRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteAppInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteAppInfoRequest::getAccessKeyId()const
{
return accessKeyId_;

View File

@@ -27,39 +27,6 @@ DeleteAttachedMediaRequest::DeleteAttachedMediaRequest() :
DeleteAttachedMediaRequest::~DeleteAttachedMediaRequest()
{}
long DeleteAttachedMediaRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteAttachedMediaRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteAttachedMediaRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteAttachedMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteAttachedMediaRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteAttachedMediaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteAttachedMediaRequest::getAccessKeyId()const
{
return accessKeyId_;

View File

@@ -27,39 +27,6 @@ DeleteCategoryRequest::DeleteCategoryRequest() :
DeleteCategoryRequest::~DeleteCategoryRequest()
{}
std::string DeleteCategoryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteCategoryRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string DeleteCategoryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteCategoryRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteCategoryRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
long DeleteCategoryRequest::getCateId()const
{
return cateId_;

View File

@@ -0,0 +1,40 @@
/*
* 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

@@ -14,38 +14,31 @@
* limitations under the License.
*/
#include <alibabacloud/vod/model/CreateDNADBResult.h>
#include <alibabacloud/vod/model/DeleteDetectionTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
CreateDNADBResult::CreateDNADBResult() :
DeleteDetectionTemplateResult::DeleteDetectionTemplateResult() :
ServiceResult()
{}
CreateDNADBResult::CreateDNADBResult(const std::string &payload) :
DeleteDetectionTemplateResult::DeleteDetectionTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateDNADBResult::~CreateDNADBResult()
DeleteDetectionTemplateResult::~DeleteDetectionTemplateResult()
{}
void CreateDNADBResult::parse(const std::string &payload)
void DeleteDetectionTemplateResult::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

@@ -27,28 +27,6 @@ DeleteDynamicImageRequest::DeleteDynamicImageRequest() :
DeleteDynamicImageRequest::~DeleteDynamicImageRequest()
{}
long DeleteDynamicImageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteDynamicImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteDynamicImageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteDynamicImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteDynamicImageRequest::getVideoId()const
{
return videoId_;
@@ -60,17 +38,6 @@ void DeleteDynamicImageRequest::setVideoId(const std::string& videoId)
setParameter("VideoId", videoId);
}
long DeleteDynamicImageRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteDynamicImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteDynamicImageRequest::getAccessKeyId()const
{
return accessKeyId_;

View File

@@ -27,17 +27,6 @@ DeleteImageRequest::DeleteImageRequest() :
DeleteImageRequest::~DeleteImageRequest()
{}
long DeleteImageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteImageRequest::getImageURLs()const
{
return imageURLs_;
@@ -71,17 +60,6 @@ void DeleteImageRequest::setImageType(const std::string& imageType)
setParameter("ImageType", imageType);
}
std::string DeleteImageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteImageRequest::getVideoId()const
{
return videoId_;
@@ -93,17 +71,6 @@ void DeleteImageRequest::setVideoId(const std::string& videoId)
setParameter("VideoId", videoId);
}
long DeleteImageRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteImageRequest::getDeleteImageType()const
{
return deleteImageType_;

View File

@@ -27,15 +27,15 @@ DeleteMessageCallbackRequest::DeleteMessageCallbackRequest() :
DeleteMessageCallbackRequest::~DeleteMessageCallbackRequest()
{}
std::string DeleteMessageCallbackRequest::getResourceOwnerId()const
std::string DeleteMessageCallbackRequest::getOwnerAccount()const
{
return resourceOwnerId_;
return ownerAccount_;
}
void DeleteMessageCallbackRequest::setResourceOwnerId(const std::string& resourceOwnerId)
void DeleteMessageCallbackRequest::setOwnerAccount(const std::string& ownerAccount)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteMessageCallbackRequest::getResourceRealOwnerId()const
@@ -60,39 +60,6 @@ void DeleteMessageCallbackRequest::setAccessKeyId(const std::string& accessKeyId
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteMessageCallbackRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMessageCallbackRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteMessageCallbackRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteMessageCallbackRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteMessageCallbackRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMessageCallbackRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string DeleteMessageCallbackRequest::getAppId()const
{
return appId_;

View File

@@ -27,39 +27,6 @@ DeleteMezzaninesRequest::DeleteMezzaninesRequest() :
DeleteMezzaninesRequest::~DeleteMezzaninesRequest()
{}
long DeleteMezzaninesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteMezzaninesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteMezzaninesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMezzaninesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteMezzaninesRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMezzaninesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool DeleteMezzaninesRequest::getForce()const
{
return force_;

View File

@@ -27,15 +27,15 @@ DeleteMultipartUploadRequest::DeleteMultipartUploadRequest() :
DeleteMultipartUploadRequest::~DeleteMultipartUploadRequest()
{}
std::string DeleteMultipartUploadRequest::getResourceOwnerId()const
std::string DeleteMultipartUploadRequest::getOwnerAccount()const
{
return resourceOwnerId_;
return ownerAccount_;
}
void DeleteMultipartUploadRequest::setResourceOwnerId(const std::string& resourceOwnerId)
void DeleteMultipartUploadRequest::setOwnerAccount(const std::string& ownerAccount)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteMultipartUploadRequest::getResourceRealOwnerId()const
@@ -49,50 +49,6 @@ void DeleteMultipartUploadRequest::setResourceRealOwnerId(long resourceRealOwner
setParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
std::string DeleteMultipartUploadRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteMultipartUploadRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteMultipartUploadRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMultipartUploadRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteMultipartUploadRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteMultipartUploadRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteMultipartUploadRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMultipartUploadRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string DeleteMultipartUploadRequest::getMediaId()const
{
return mediaId_;
@@ -104,6 +60,17 @@ void DeleteMultipartUploadRequest::setMediaId(const std::string& mediaId)
setParameter("MediaId", mediaId);
}
std::string DeleteMultipartUploadRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteMultipartUploadRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteMultipartUploadRequest::getMediaType()const
{
return mediaType_;

View File

@@ -27,28 +27,6 @@ DeleteStreamRequest::DeleteStreamRequest() :
DeleteStreamRequest::~DeleteStreamRequest()
{}
long DeleteStreamRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteStreamRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteStreamRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteStreamRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteStreamRequest::getVideoId()const
{
return videoId_;
@@ -60,17 +38,6 @@ void DeleteStreamRequest::setVideoId(const std::string& videoId)
setParameter("VideoId", videoId);
}
long DeleteStreamRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteStreamRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteStreamRequest::getJobIds()const
{
return jobIds_;

View File

@@ -27,17 +27,6 @@ DeleteTranscodeTemplateGroupRequest::DeleteTranscodeTemplateGroupRequest() :
DeleteTranscodeTemplateGroupRequest::~DeleteTranscodeTemplateGroupRequest()
{}
long DeleteTranscodeTemplateGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteTranscodeTemplateGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteTranscodeTemplateGroupRequest::getTranscodeTemplateIds()const
{
return transcodeTemplateIds_;
@@ -60,39 +49,6 @@ void DeleteTranscodeTemplateGroupRequest::setAccessKeyId(const std::string& acce
setParameter("AccessKeyId", accessKeyId);
}
std::string DeleteTranscodeTemplateGroupRequest::getForceDelGroup()const
{
return forceDelGroup_;
}
void DeleteTranscodeTemplateGroupRequest::setForceDelGroup(const std::string& forceDelGroup)
{
forceDelGroup_ = forceDelGroup;
setParameter("ForceDelGroup", forceDelGroup);
}
std::string DeleteTranscodeTemplateGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteTranscodeTemplateGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteTranscodeTemplateGroupRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteTranscodeTemplateGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteTranscodeTemplateGroupRequest::getTranscodeTemplateGroupId()const
{
return transcodeTemplateGroupId_;
@@ -104,3 +60,14 @@ void DeleteTranscodeTemplateGroupRequest::setTranscodeTemplateGroupId(const std:
setParameter("TranscodeTemplateGroupId", transcodeTemplateGroupId);
}
std::string DeleteTranscodeTemplateGroupRequest::getForceDelGroup()const
{
return forceDelGroup_;
}
void DeleteTranscodeTemplateGroupRequest::setForceDelGroup(const std::string& forceDelGroup)
{
forceDelGroup_ = forceDelGroup;
setParameter("ForceDelGroup", forceDelGroup);
}

View File

@@ -27,39 +27,6 @@ DeleteVideoRequest::DeleteVideoRequest() :
DeleteVideoRequest::~DeleteVideoRequest()
{}
long DeleteVideoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteVideoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteVideoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteVideoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteVideoRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteVideoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteVideoRequest::getVideoIds()const
{
return videoIds_;

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/DeleteVodRealtimeLogDeliveryRequest.h>
using AlibabaCloud::Vod::Model::DeleteVodRealtimeLogDeliveryRequest;
DeleteVodRealtimeLogDeliveryRequest::DeleteVodRealtimeLogDeliveryRequest() :
RpcServiceRequest("vod", "2017-03-21", "DeleteVodRealtimeLogDelivery")
{
setMethod(HttpRequest::Method::Get);
}
DeleteVodRealtimeLogDeliveryRequest::~DeleteVodRealtimeLogDeliveryRequest()
{}
std::string DeleteVodRealtimeLogDeliveryRequest::getProject()const
{
return project_;
}
void DeleteVodRealtimeLogDeliveryRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
std::string DeleteVodRealtimeLogDeliveryRequest::getDomainName()const
{
return domainName_;
}
void DeleteVodRealtimeLogDeliveryRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DeleteVodRealtimeLogDeliveryRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteVodRealtimeLogDeliveryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteVodRealtimeLogDeliveryRequest::getRegion()const
{
return region_;
}
void DeleteVodRealtimeLogDeliveryRequest::setRegion(const std::string& region)
{
region_ = region;
setParameter("Region", region);
}
std::string DeleteVodRealtimeLogDeliveryRequest::getLogstore()const
{
return logstore_;
}
void DeleteVodRealtimeLogDeliveryRequest::setLogstore(const std::string& logstore)
{
logstore_ = logstore;
setParameter("Logstore", logstore);
}

View File

@@ -14,38 +14,31 @@
* limitations under the License.
*/
#include <alibabacloud/vod/model/GetDRMCertInfoResult.h>
#include <alibabacloud/vod/model/DeleteVodRealtimeLogDeliveryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetDRMCertInfoResult::GetDRMCertInfoResult() :
DeleteVodRealtimeLogDeliveryResult::DeleteVodRealtimeLogDeliveryResult() :
ServiceResult()
{}
GetDRMCertInfoResult::GetDRMCertInfoResult(const std::string &payload) :
DeleteVodRealtimeLogDeliveryResult::DeleteVodRealtimeLogDeliveryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDRMCertInfoResult::~GetDRMCertInfoResult()
DeleteVodRealtimeLogDeliveryResult::~DeleteVodRealtimeLogDeliveryResult()
{}
void GetDRMCertInfoResult::parse(const std::string &payload)
void DeleteVodRealtimeLogDeliveryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["DRMCertInfo"].isNull())
dRMCertInfo_ = value["DRMCertInfo"].asString();
}
std::string GetDRMCertInfoResult::getDRMCertInfo()const
{
return dRMCertInfo_;
}

View File

@@ -27,39 +27,6 @@ DeleteVodTemplateRequest::DeleteVodTemplateRequest() :
DeleteVodTemplateRequest::~DeleteVodTemplateRequest()
{}
long DeleteVodTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteVodTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteVodTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteVodTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteVodTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteVodTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteVodTemplateRequest::getVodTemplateId()const
{
return vodTemplateId_;

View File

@@ -27,39 +27,6 @@ DeleteWatermarkRequest::DeleteWatermarkRequest() :
DeleteWatermarkRequest::~DeleteWatermarkRequest()
{}
long DeleteWatermarkRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteWatermarkRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteWatermarkRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteWatermarkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteWatermarkRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteWatermarkRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteWatermarkRequest::getAccessKeyId()const
{
return accessKeyId_;

View File

@@ -45,14 +45,14 @@ void DescribeVodAIDataResult::parse(const std::string &payload)
AIDataItem aIDataObject;
if(!valueAIDataAIDataItem["TimeStamp"].isNull())
aIDataObject.timeStamp = valueAIDataAIDataItem["TimeStamp"].asString();
auto allDataNode = allAIDataNode["Data"]["DataItem"];
for (auto allAIDataNodeDataDataItem : allDataNode)
auto allDataNode = valueAIDataAIDataItem["Data"]["DataItem"];
for (auto valueAIDataAIDataItemDataDataItem : allDataNode)
{
AIDataItem::DataItem dataObject;
if(!allAIDataNodeDataDataItem["Name"].isNull())
dataObject.name = allAIDataNodeDataDataItem["Name"].asString();
if(!allAIDataNodeDataDataItem["Value"].isNull())
dataObject.value = allAIDataNodeDataDataItem["Value"].asString();
if(!valueAIDataAIDataItemDataDataItem["Name"].isNull())
dataObject.name = valueAIDataAIDataItemDataDataItem["Name"].asString();
if(!valueAIDataAIDataItemDataDataItem["Value"].isNull())
dataObject.value = valueAIDataAIDataItemDataDataItem["Value"].asString();
aIDataObject.data.push_back(dataObject);
}
aIData_.push_back(aIDataObject);

View File

@@ -49,14 +49,14 @@ void DescribeVodDomainConfigsResult::parse(const std::string &payload)
domainConfigsObject.configId = valueDomainConfigsDomainConfig["ConfigId"].asString();
if(!valueDomainConfigsDomainConfig["Status"].isNull())
domainConfigsObject.status = valueDomainConfigsDomainConfig["Status"].asString();
auto allFunctionArgsNode = allDomainConfigsNode["FunctionArgs"]["FunctionArg"];
for (auto allDomainConfigsNodeFunctionArgsFunctionArg : allFunctionArgsNode)
auto allFunctionArgsNode = valueDomainConfigsDomainConfig["FunctionArgs"]["FunctionArg"];
for (auto valueDomainConfigsDomainConfigFunctionArgsFunctionArg : allFunctionArgsNode)
{
DomainConfig::FunctionArg functionArgsObject;
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].isNull())
functionArgsObject.argName = allDomainConfigsNodeFunctionArgsFunctionArg["ArgName"].asString();
if(!allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].isNull())
functionArgsObject.argValue = allDomainConfigsNodeFunctionArgsFunctionArg["ArgValue"].asString();
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].isNull())
functionArgsObject.argName = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgName"].asString();
if(!valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].isNull())
functionArgsObject.argValue = valueDomainConfigsDomainConfigFunctionArgsFunctionArg["ArgValue"].asString();
domainConfigsObject.functionArgs.push_back(functionArgsObject);
}
domainConfigs_.push_back(domainConfigsObject);

View File

@@ -47,20 +47,20 @@ void DescribeVodDomainLogResult::parse(const std::string &payload)
domainLogDetailsObject.domainName = valueDomainLogDetailsDomainLogDetail["DomainName"].asString();
if(!valueDomainLogDetailsDomainLogDetail["LogCount"].isNull())
domainLogDetailsObject.logCount = std::stol(valueDomainLogDetailsDomainLogDetail["LogCount"].asString());
auto allLogInfosNode = allDomainLogDetailsNode["LogInfos"]["LogInfoDetail"];
for (auto allDomainLogDetailsNodeLogInfosLogInfoDetail : allLogInfosNode)
auto allLogInfosNode = valueDomainLogDetailsDomainLogDetail["LogInfos"]["LogInfoDetail"];
for (auto valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail : allLogInfosNode)
{
DomainLogDetail::LogInfoDetail logInfosObject;
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogName"].isNull())
logInfosObject.logName = allDomainLogDetailsNodeLogInfosLogInfoDetail["LogName"].asString();
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogPath"].isNull())
logInfosObject.logPath = allDomainLogDetailsNodeLogInfosLogInfoDetail["LogPath"].asString();
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["LogSize"].isNull())
logInfosObject.logSize = std::stol(allDomainLogDetailsNodeLogInfosLogInfoDetail["LogSize"].asString());
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["StartTime"].isNull())
logInfosObject.startTime = allDomainLogDetailsNodeLogInfosLogInfoDetail["StartTime"].asString();
if(!allDomainLogDetailsNodeLogInfosLogInfoDetail["EndTime"].isNull())
logInfosObject.endTime = allDomainLogDetailsNodeLogInfosLogInfoDetail["EndTime"].asString();
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].isNull())
logInfosObject.logName = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogName"].asString();
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].isNull())
logInfosObject.logPath = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogPath"].asString();
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].isNull())
logInfosObject.logSize = std::stol(valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["LogSize"].asString());
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].isNull())
logInfosObject.startTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["StartTime"].asString();
if(!valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].isNull())
logInfosObject.endTime = valueDomainLogDetailsDomainLogDetailLogInfosLogInfoDetail["EndTime"].asString();
domainLogDetailsObject.logInfos.push_back(logInfosObject);
}
auto pageInfosNode = value["PageInfos"];

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/DescribeVodDomainRealtimeLogDeliveryRequest.h>
using AlibabaCloud::Vod::Model::DescribeVodDomainRealtimeLogDeliveryRequest;
DescribeVodDomainRealtimeLogDeliveryRequest::DescribeVodDomainRealtimeLogDeliveryRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeVodDomainRealtimeLogDelivery")
{
setMethod(HttpRequest::Method::Get);
}
DescribeVodDomainRealtimeLogDeliveryRequest::~DescribeVodDomainRealtimeLogDeliveryRequest()
{}
std::string DescribeVodDomainRealtimeLogDeliveryRequest::getDomainName()const
{
return domainName_;
}
void DescribeVodDomainRealtimeLogDeliveryRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeVodDomainRealtimeLogDeliveryRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVodDomainRealtimeLogDeliveryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,72 @@
/*
* 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/DescribeVodDomainRealtimeLogDeliveryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeVodDomainRealtimeLogDeliveryResult::DescribeVodDomainRealtimeLogDeliveryResult() :
ServiceResult()
{}
DescribeVodDomainRealtimeLogDeliveryResult::DescribeVodDomainRealtimeLogDeliveryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVodDomainRealtimeLogDeliveryResult::~DescribeVodDomainRealtimeLogDeliveryResult()
{}
void DescribeVodDomainRealtimeLogDeliveryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Project"].isNull())
project_ = value["Project"].asString();
if(!value["Region"].isNull())
region_ = value["Region"].asString();
if(!value["Logstore"].isNull())
logstore_ = value["Logstore"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
}
std::string DescribeVodDomainRealtimeLogDeliveryResult::getStatus()const
{
return status_;
}
std::string DescribeVodDomainRealtimeLogDeliveryResult::getProject()const
{
return project_;
}
std::string DescribeVodDomainRealtimeLogDeliveryResult::getLogstore()const
{
return logstore_;
}
std::string DescribeVodDomainRealtimeLogDeliveryResult::getRegion()const
{
return region_;
}

View File

@@ -60,17 +60,6 @@ void DescribeVodRefreshTasksRequest::setPageNumber(int pageNumber)
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeVodRefreshTasksRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeVodRefreshTasksRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeVodRefreshTasksRequest::getSecurityToken()const
{
return securityToken_;

View File

@@ -45,14 +45,14 @@ void DescribeVodTagResourcesResult::parse(const std::string &payload)
TagResource tagResourcesObject;
if(!valueTagResourcesTagResource["ResourceId"].isNull())
tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString();
auto allTagNode = allTagResourcesNode["Tag"]["TagItem"];
for (auto allTagResourcesNodeTagTagItem : allTagNode)
auto allTagNode = valueTagResourcesTagResource["Tag"]["TagItem"];
for (auto valueTagResourcesTagResourceTagTagItem : allTagNode)
{
TagResource::TagItem tagObject;
if(!allTagResourcesNodeTagTagItem["Key"].isNull())
tagObject.key = allTagResourcesNodeTagTagItem["Key"].asString();
if(!allTagResourcesNodeTagTagItem["Value"].isNull())
tagObject.value = allTagResourcesNodeTagTagItem["Value"].asString();
if(!valueTagResourcesTagResourceTagTagItem["Key"].isNull())
tagObject.key = valueTagResourcesTagResourceTagTagItem["Key"].asString();
if(!valueTagResourcesTagResourceTagTagItem["Value"].isNull())
tagObject.value = valueTagResourcesTagResourceTagTagItem["Value"].asString();
tagResourcesObject.tag.push_back(tagObject);
}
tagResources_.push_back(tagResourcesObject);

View File

@@ -45,14 +45,14 @@ void DescribeVodTranscodeDataResult::parse(const std::string &payload)
TranscodeDataItem transcodeDataObject;
if(!valueTranscodeDataTranscodeDataItem["TimeStamp"].isNull())
transcodeDataObject.timeStamp = valueTranscodeDataTranscodeDataItem["TimeStamp"].asString();
auto allDataNode = allTranscodeDataNode["Data"]["DataItem"];
for (auto allTranscodeDataNodeDataDataItem : allDataNode)
auto allDataNode = valueTranscodeDataTranscodeDataItem["Data"]["DataItem"];
for (auto valueTranscodeDataTranscodeDataItemDataDataItem : allDataNode)
{
TranscodeDataItem::DataItem dataObject;
if(!allTranscodeDataNodeDataDataItem["Name"].isNull())
dataObject.name = allTranscodeDataNodeDataDataItem["Name"].asString();
if(!allTranscodeDataNodeDataDataItem["Value"].isNull())
dataObject.value = allTranscodeDataNodeDataDataItem["Value"].asString();
if(!valueTranscodeDataTranscodeDataItemDataDataItem["Name"].isNull())
dataObject.name = valueTranscodeDataTranscodeDataItemDataDataItem["Name"].asString();
if(!valueTranscodeDataTranscodeDataItemDataDataItem["Value"].isNull())
dataObject.value = valueTranscodeDataTranscodeDataItemDataDataItem["Value"].asString();
transcodeDataObject.data.push_back(dataObject);
}
transcodeData_.push_back(transcodeDataObject);

View File

@@ -47,8 +47,6 @@ void DescribeVodUserDomainsResult::parse(const std::string &payload)
domainsObject.domainName = valueDomainsPageData["DomainName"].asString();
if(!valueDomainsPageData["Cname"].isNull())
domainsObject.cname = valueDomainsPageData["Cname"].asString();
if(!valueDomainsPageData["CdnType"].isNull())
domainsObject.cdnType = valueDomainsPageData["CdnType"].asString();
if(!valueDomainsPageData["DomainStatus"].isNull())
domainsObject.domainStatus = valueDomainsPageData["DomainStatus"].asString();
if(!valueDomainsPageData["GmtCreated"].isNull())
@@ -59,22 +57,20 @@ void DescribeVodUserDomainsResult::parse(const std::string &payload)
domainsObject.description = valueDomainsPageData["Description"].asString();
if(!valueDomainsPageData["SslProtocol"].isNull())
domainsObject.sslProtocol = valueDomainsPageData["SslProtocol"].asString();
if(!valueDomainsPageData["Weight"].isNull())
domainsObject.weight = valueDomainsPageData["Weight"].asString();
if(!valueDomainsPageData["Sandbox"].isNull())
domainsObject.sandbox = valueDomainsPageData["Sandbox"].asString();
auto allSourcesNode = allDomainsNode["Sources"]["Source"];
for (auto allDomainsNodeSourcesSource : allSourcesNode)
auto allSourcesNode = valueDomainsPageData["Sources"]["Source"];
for (auto valueDomainsPageDataSourcesSource : allSourcesNode)
{
PageData::Source sourcesObject;
if(!allDomainsNodeSourcesSource["Type"].isNull())
sourcesObject.type = allDomainsNodeSourcesSource["Type"].asString();
if(!allDomainsNodeSourcesSource["Content"].isNull())
sourcesObject.content = allDomainsNodeSourcesSource["Content"].asString();
if(!allDomainsNodeSourcesSource["Port"].isNull())
sourcesObject.port = std::stoi(allDomainsNodeSourcesSource["Port"].asString());
if(!allDomainsNodeSourcesSource["Priority"].isNull())
sourcesObject.priority = allDomainsNodeSourcesSource["Priority"].asString();
if(!valueDomainsPageDataSourcesSource["Type"].isNull())
sourcesObject.type = valueDomainsPageDataSourcesSource["Type"].asString();
if(!valueDomainsPageDataSourcesSource["Content"].isNull())
sourcesObject.content = valueDomainsPageDataSourcesSource["Content"].asString();
if(!valueDomainsPageDataSourcesSource["Port"].isNull())
sourcesObject.port = std::stoi(valueDomainsPageDataSourcesSource["Port"].asString());
if(!valueDomainsPageDataSourcesSource["Priority"].isNull())
sourcesObject.priority = valueDomainsPageDataSourcesSource["Priority"].asString();
domainsObject.sources.push_back(sourcesObject);
}
domains_.push_back(domainsObject);

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/DescribeVodVerifyContentRequest.h>
using AlibabaCloud::Vod::Model::DescribeVodVerifyContentRequest;
DescribeVodVerifyContentRequest::DescribeVodVerifyContentRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeVodVerifyContent")
{
setMethod(HttpRequest::Method::Post);
}
DescribeVodVerifyContentRequest::~DescribeVodVerifyContentRequest()
{}
std::string DescribeVodVerifyContentRequest::getDomainName()const
{
return domainName_;
}
void DescribeVodVerifyContentRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeVodVerifyContentRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVodVerifyContentRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

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/DescribeVodVerifyContentResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeVodVerifyContentResult::DescribeVodVerifyContentResult() :
ServiceResult()
{}
DescribeVodVerifyContentResult::DescribeVodVerifyContentResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVodVerifyContentResult::~DescribeVodVerifyContentResult()
{}
void DescribeVodVerifyContentResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Content"].isNull())
content_ = value["Content"].asString();
}
std::string DescribeVodVerifyContentResult::getContent()const
{
return content_;
}

View File

@@ -27,15 +27,15 @@ DetachAppPolicyFromIdentityRequest::DetachAppPolicyFromIdentityRequest() :
DetachAppPolicyFromIdentityRequest::~DetachAppPolicyFromIdentityRequest()
{}
long DetachAppPolicyFromIdentityRequest::getResourceOwnerId()const
std::string DetachAppPolicyFromIdentityRequest::getIdentityType()const
{
return resourceOwnerId_;
return identityType_;
}
void DetachAppPolicyFromIdentityRequest::setResourceOwnerId(long resourceOwnerId)
void DetachAppPolicyFromIdentityRequest::setIdentityType(const std::string& identityType)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
identityType_ = identityType;
setParameter("IdentityType", identityType);
}
std::string DetachAppPolicyFromIdentityRequest::getPolicyNames()const
@@ -60,39 +60,6 @@ void DetachAppPolicyFromIdentityRequest::setIdentityName(const std::string& iden
setParameter("IdentityName", identityName);
}
std::string DetachAppPolicyFromIdentityRequest::getIdentityType()const
{
return identityType_;
}
void DetachAppPolicyFromIdentityRequest::setIdentityType(const std::string& identityType)
{
identityType_ = identityType;
setParameter("IdentityType", identityType);
}
std::string DetachAppPolicyFromIdentityRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DetachAppPolicyFromIdentityRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DetachAppPolicyFromIdentityRequest::getOwnerId()const
{
return ownerId_;
}
void DetachAppPolicyFromIdentityRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DetachAppPolicyFromIdentityRequest::getAppId()const
{
return appId_;

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/DisableVodRealtimeLogDeliveryRequest.h>
using AlibabaCloud::Vod::Model::DisableVodRealtimeLogDeliveryRequest;
DisableVodRealtimeLogDeliveryRequest::DisableVodRealtimeLogDeliveryRequest() :
RpcServiceRequest("vod", "2017-03-21", "DisableVodRealtimeLogDelivery")
{
setMethod(HttpRequest::Method::Get);
}
DisableVodRealtimeLogDeliveryRequest::~DisableVodRealtimeLogDeliveryRequest()
{}
std::string DisableVodRealtimeLogDeliveryRequest::getDomainName()const
{
return domainName_;
}
void DisableVodRealtimeLogDeliveryRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DisableVodRealtimeLogDeliveryRequest::getOwnerId()const
{
return ownerId_;
}
void DisableVodRealtimeLogDeliveryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

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/EnableVodRealtimeLogDeliveryRequest.h>
using AlibabaCloud::Vod::Model::EnableVodRealtimeLogDeliveryRequest;
EnableVodRealtimeLogDeliveryRequest::EnableVodRealtimeLogDeliveryRequest() :
RpcServiceRequest("vod", "2017-03-21", "EnableVodRealtimeLogDelivery")
{
setMethod(HttpRequest::Method::Get);
}
EnableVodRealtimeLogDeliveryRequest::~EnableVodRealtimeLogDeliveryRequest()
{}
std::string EnableVodRealtimeLogDeliveryRequest::getDomainName()const
{
return domainName_;
}
void EnableVodRealtimeLogDeliveryRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long EnableVodRealtimeLogDeliveryRequest::getOwnerId()const
{
return ownerId_;
}
void EnableVodRealtimeLogDeliveryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

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

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/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

@@ -0,0 +1,73 @@
/*
* 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

@@ -27,39 +27,6 @@ GetAIMediaAuditJobRequest::GetAIMediaAuditJobRequest() :
GetAIMediaAuditJobRequest::~GetAIMediaAuditJobRequest()
{}
long GetAIMediaAuditJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetAIMediaAuditJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetAIMediaAuditJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetAIMediaAuditJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetAIMediaAuditJobRequest::getOwnerId()const
{
return ownerId_;
}
void GetAIMediaAuditJobRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetAIMediaAuditJobRequest::getAccessKeyId()const
{
return accessKeyId_;

View File

@@ -75,18 +75,18 @@ void GetAIMediaAuditJobResult::parse(const std::string &payload)
imageResultItemObject.type = dataNodeImageResultImageResultItem["Type"].asString();
if(!dataNodeImageResultImageResultItem["Url"].isNull())
imageResultItemObject.url = dataNodeImageResultImageResultItem["Url"].asString();
auto allResultNode = allImageResultNode["Result"]["ResultItem"];
for (auto allImageResultNodeResultResultItem : allResultNode)
auto allResultNode = dataNodeImageResultImageResultItem["Result"]["ResultItem"];
for (auto dataNodeImageResultImageResultItemResultResultItem : allResultNode)
{
MediaAuditJob::Data::ImageResultItem::ResultItem resultObject;
if(!allImageResultNodeResultResultItem["Suggestion"].isNull())
resultObject.suggestion = allImageResultNodeResultResultItem["Suggestion"].asString();
if(!allImageResultNodeResultResultItem["Label"].isNull())
resultObject.label = allImageResultNodeResultResultItem["Label"].asString();
if(!allImageResultNodeResultResultItem["Score"].isNull())
resultObject.score = allImageResultNodeResultResultItem["Score"].asString();
if(!allImageResultNodeResultResultItem["Scene"].isNull())
resultObject.scene = allImageResultNodeResultResultItem["Scene"].asString();
if(!dataNodeImageResultImageResultItemResultResultItem["Suggestion"].isNull())
resultObject.suggestion = dataNodeImageResultImageResultItemResultResultItem["Suggestion"].asString();
if(!dataNodeImageResultImageResultItemResultResultItem["Label"].isNull())
resultObject.label = dataNodeImageResultImageResultItemResultResultItem["Label"].asString();
if(!dataNodeImageResultImageResultItemResultResultItem["Score"].isNull())
resultObject.score = dataNodeImageResultImageResultItemResultResultItem["Score"].asString();
if(!dataNodeImageResultImageResultItemResultResultItem["Scene"].isNull())
resultObject.scene = dataNodeImageResultImageResultItemResultResultItem["Scene"].asString();
imageResultItemObject.result.push_back(resultObject);
}
mediaAuditJob_.data.imageResult.push_back(imageResultItemObject);
@@ -109,6 +109,20 @@ void GetAIMediaAuditJobResult::parse(const std::string &payload)
textResultItemObject.content = dataNodeTextResultTextResultItem["Content"].asString();
mediaAuditJob_.data.textResult.push_back(textResultItemObject);
}
auto allAudioResultNode = dataNode["AudioResult"]["AudioResultItem"];
for (auto dataNodeAudioResultAudioResultItem : allAudioResultNode)
{
MediaAuditJob::Data::AudioResultItem audioResultItemObject;
if(!dataNodeAudioResultAudioResultItem["Suggestion"].isNull())
audioResultItemObject.suggestion = dataNodeAudioResultAudioResultItem["Suggestion"].asString();
if(!dataNodeAudioResultAudioResultItem["Label"].isNull())
audioResultItemObject.label = dataNodeAudioResultAudioResultItem["Label"].asString();
if(!dataNodeAudioResultAudioResultItem["Scene"].isNull())
audioResultItemObject.scene = dataNodeAudioResultAudioResultItem["Scene"].asString();
if(!dataNodeAudioResultAudioResultItem["Score"].isNull())
audioResultItemObject.score = dataNodeAudioResultAudioResultItem["Score"].asString();
mediaAuditJob_.data.audioResult.push_back(audioResultItemObject);
}
auto videoResultNode = dataNode["VideoResult"];
if(!videoResultNode["Suggestion"].isNull())
mediaAuditJob_.data.videoResult.suggestion = videoResultNode["Suggestion"].asString();

View File

@@ -27,39 +27,6 @@ GetAITemplateRequest::GetAITemplateRequest() :
GetAITemplateRequest::~GetAITemplateRequest()
{}
long GetAITemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetAITemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetAITemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetAITemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetAITemplateRequest::getOwnerId()const
{
return ownerId_;
}
void GetAITemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetAITemplateRequest::getTemplateId()const
{
return templateId_;

View File

@@ -27,28 +27,6 @@ GetAppInfosRequest::GetAppInfosRequest() :
GetAppInfosRequest::~GetAppInfosRequest()
{}
long GetAppInfosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetAppInfosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetAppInfosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetAppInfosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetAppInfosRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
@@ -60,17 +38,6 @@ void GetAppInfosRequest::setResourceRealOwnerId(long resourceRealOwnerId)
setParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
long GetAppInfosRequest::getOwnerId()const
{
return ownerId_;
}
void GetAppInfosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetAppInfosRequest::getAccessKeyId()const
{
return accessKeyId_;

View File

@@ -27,17 +27,6 @@ GetAttachedMediaInfoRequest::GetAttachedMediaInfoRequest() :
GetAttachedMediaInfoRequest::~GetAttachedMediaInfoRequest()
{}
long GetAttachedMediaInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetAttachedMediaInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long GetAttachedMediaInfoRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
@@ -93,25 +82,3 @@ void GetAttachedMediaInfoRequest::setAuthTimeout(long authTimeout)
setParameter("AuthTimeout", std::to_string(authTimeout));
}
std::string GetAttachedMediaInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetAttachedMediaInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetAttachedMediaInfoRequest::getOwnerId()const
{
return ownerId_;
}
void GetAttachedMediaInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -73,18 +73,18 @@ void GetAttachedMediaInfoResult::parse(const std::string &payload)
attachedMediaListObject.icon = valueAttachedMediaListAttachedMedia["Icon"].asString();
if(!valueAttachedMediaListAttachedMedia["RegionId"].isNull())
attachedMediaListObject.regionId = valueAttachedMediaListAttachedMedia["RegionId"].asString();
auto allCategoriesNode = allAttachedMediaListNode["Categories"]["Category"];
for (auto allAttachedMediaListNodeCategoriesCategory : allCategoriesNode)
auto allCategoriesNode = valueAttachedMediaListAttachedMedia["Categories"]["Category"];
for (auto valueAttachedMediaListAttachedMediaCategoriesCategory : allCategoriesNode)
{
AttachedMedia::Category categoriesObject;
if(!allAttachedMediaListNodeCategoriesCategory["CateId"].isNull())
categoriesObject.cateId = std::stol(allAttachedMediaListNodeCategoriesCategory["CateId"].asString());
if(!allAttachedMediaListNodeCategoriesCategory["CateName"].isNull())
categoriesObject.cateName = allAttachedMediaListNodeCategoriesCategory["CateName"].asString();
if(!allAttachedMediaListNodeCategoriesCategory["Level"].isNull())
categoriesObject.level = std::stol(allAttachedMediaListNodeCategoriesCategory["Level"].asString());
if(!allAttachedMediaListNodeCategoriesCategory["ParentId"].isNull())
categoriesObject.parentId = std::stol(allAttachedMediaListNodeCategoriesCategory["ParentId"].asString());
if(!valueAttachedMediaListAttachedMediaCategoriesCategory["CateId"].isNull())
categoriesObject.cateId = std::stol(valueAttachedMediaListAttachedMediaCategoriesCategory["CateId"].asString());
if(!valueAttachedMediaListAttachedMediaCategoriesCategory["CateName"].isNull())
categoriesObject.cateName = valueAttachedMediaListAttachedMediaCategoriesCategory["CateName"].asString();
if(!valueAttachedMediaListAttachedMediaCategoriesCategory["Level"].isNull())
categoriesObject.level = std::stol(valueAttachedMediaListAttachedMediaCategoriesCategory["Level"].asString());
if(!valueAttachedMediaListAttachedMediaCategoriesCategory["ParentId"].isNull())
categoriesObject.parentId = std::stol(valueAttachedMediaListAttachedMediaCategoriesCategory["ParentId"].asString());
attachedMediaListObject.categories.push_back(categoriesObject);
}
attachedMediaList_.push_back(attachedMediaListObject);

View File

@@ -27,17 +27,6 @@ GetCategoriesRequest::GetCategoriesRequest() :
GetCategoriesRequest::~GetCategoriesRequest()
{}
std::string GetCategoriesRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetCategoriesRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetCategoriesRequest::getType()const
{
return type_;
@@ -71,28 +60,6 @@ void GetCategoriesRequest::setPageSize(long pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
std::string GetCategoriesRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetCategoriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetCategoriesRequest::getOwnerId()const
{
return ownerId_;
}
void GetCategoriesRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
long GetCategoriesRequest::getPageNo()const
{
return pageNo_;

View File

@@ -1,95 +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/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

@@ -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/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

@@ -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/GetDRMCertInfoRequest.h>
using AlibabaCloud::Vod::Model::GetDRMCertInfoRequest;
GetDRMCertInfoRequest::GetDRMCertInfoRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetDRMCertInfo")
{
setMethod(HttpRequest::Method::Post);
}
GetDRMCertInfoRequest::~GetDRMCertInfoRequest()
{}
std::string GetDRMCertInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetDRMCertInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetDRMCertInfoRequest::getVideoId()const
{
return videoId_;
}
void GetDRMCertInfoRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
}
std::string GetDRMCertInfoRequest::getCertId()const
{
return certId_;
}
void GetDRMCertInfoRequest::setCertId(const std::string& certId)
{
certId_ = certId;
setParameter("CertId", certId);
}
long GetDRMCertInfoRequest::getOwnerId()const
{
return ownerId_;
}
void GetDRMCertInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -1,95 +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/GetDRMLicenseRequest.h>
using AlibabaCloud::Vod::Model::GetDRMLicenseRequest;
GetDRMLicenseRequest::GetDRMLicenseRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetDRMLicense")
{
setMethod(HttpRequest::Method::Post);
}
GetDRMLicenseRequest::~GetDRMLicenseRequest()
{}
std::string GetDRMLicenseRequest::getCDMData()const
{
return cDMData_;
}
void GetDRMLicenseRequest::setCDMData(const std::string& cDMData)
{
cDMData_ = cDMData;
setParameter("CDMData", cDMData);
}
std::string GetDRMLicenseRequest::getCertId()const
{
return certId_;
}
void GetDRMLicenseRequest::setCertId(const std::string& certId)
{
certId_ = certId;
setParameter("CertId", certId);
}
std::string GetDRMLicenseRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetDRMLicenseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetDRMLicenseRequest::getVideoId()const
{
return videoId_;
}
void GetDRMLicenseRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
}
long GetDRMLicenseRequest::getOwnerId()const
{
return ownerId_;
}
void GetDRMLicenseRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetDRMLicenseRequest::getDRMType()const
{
return dRMType_;
}
void GetDRMLicenseRequest::setDRMType(const std::string& dRMType)
{
dRMType_ = dRMType;
setParameter("DRMType", dRMType);
}

View File

@@ -27,39 +27,6 @@ GetDefaultAITemplateRequest::GetDefaultAITemplateRequest() :
GetDefaultAITemplateRequest::~GetDefaultAITemplateRequest()
{}
long GetDefaultAITemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetDefaultAITemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetDefaultAITemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetDefaultAITemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetDefaultAITemplateRequest::getOwnerId()const
{
return ownerId_;
}
void GetDefaultAITemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetDefaultAITemplateRequest::getTemplateType()const
{
return templateType_;

View File

@@ -0,0 +1,40 @@
/*
* 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

@@ -0,0 +1,74 @@
/*
* 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

@@ -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/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

@@ -0,0 +1,71 @@
/*
* 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

@@ -0,0 +1,40 @@
/*
* 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

@@ -0,0 +1,64 @@
/*
* 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

@@ -71,6 +71,8 @@ void GetEditingProjectMaterialsResult::parse(const std::string &payload)
materialListObject.source = valueMaterialListMaterial["Source"].asString();
if(!valueMaterialListMaterial["SpriteConfig"].isNull())
materialListObject.spriteConfig = valueMaterialListMaterial["SpriteConfig"].asString();
if(!valueMaterialListMaterial["MaterialType"].isNull())
materialListObject.materialType = valueMaterialListMaterial["MaterialType"].asString();
auto allSnapshots = value["Snapshots"]["Snapshot"];
for (auto value : allSnapshots)
materialListObject.snapshots.push_back(value.asString());

View File

@@ -38,6 +38,39 @@ void GetEditingProjectRequest::setResourceOwnerId(const std::string& resourceOwn
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetEditingProjectRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetEditingProjectRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int GetEditingProjectRequest::getFEExtendFlag()const
{
return fEExtendFlag_;
}
void GetEditingProjectRequest::setFEExtendFlag(int fEExtendFlag)
{
fEExtendFlag_ = fEExtendFlag;
setParameter("FEExtendFlag", std::to_string(fEExtendFlag));
}
std::string GetEditingProjectRequest::getProjectId()const
{
return projectId_;
}
void GetEditingProjectRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}
std::string GetEditingProjectRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
@@ -71,25 +104,3 @@ void GetEditingProjectRequest::setOwnerId(const std::string& ownerId)
setParameter("OwnerId", ownerId);
}
std::string GetEditingProjectRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetEditingProjectRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetEditingProjectRequest::getProjectId()const
{
return projectId_;
}
void GetEditingProjectRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
}

View File

@@ -60,6 +60,8 @@ void GetEditingProjectResult::parse(const std::string &payload)
project_.storageLocation = projectNode["StorageLocation"].asString();
if(!projectNode["RegionId"].isNull())
project_.regionId = projectNode["RegionId"].asString();
if(!projectNode["FEExtend"].isNull())
project_.fEExtend = projectNode["FEExtend"].asString();
}

View File

@@ -27,17 +27,6 @@ GetImageInfoRequest::GetImageInfoRequest() :
GetImageInfoRequest::~GetImageInfoRequest()
{}
long GetImageInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetImageInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetImageInfoRequest::getImageId()const
{
return imageId_;
@@ -82,25 +71,3 @@ void GetImageInfoRequest::setAuthTimeout(long authTimeout)
setParameter("AuthTimeout", std::to_string(authTimeout));
}
std::string GetImageInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetImageInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetImageInfoRequest::getOwnerId()const
{
return ownerId_;
}
void GetImageInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -27,39 +27,6 @@ GetMediaAuditResultDetailRequest::GetMediaAuditResultDetailRequest() :
GetMediaAuditResultDetailRequest::~GetMediaAuditResultDetailRequest()
{}
long GetMediaAuditResultDetailRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetMediaAuditResultDetailRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetMediaAuditResultDetailRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetMediaAuditResultDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetMediaAuditResultDetailRequest::getOwnerId()const
{
return ownerId_;
}
void GetMediaAuditResultDetailRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetMediaAuditResultDetailRequest::getMediaId()const
{
return mediaId_;

View File

@@ -27,50 +27,6 @@ GetMediaAuditResultRequest::GetMediaAuditResultRequest() :
GetMediaAuditResultRequest::~GetMediaAuditResultRequest()
{}
long GetMediaAuditResultRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetMediaAuditResultRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetMediaAuditResultRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetMediaAuditResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetMediaAuditResultRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
}
void GetMediaAuditResultRequest::setResourceRealOwnerId(long resourceRealOwnerId)
{
resourceRealOwnerId_ = resourceRealOwnerId;
setParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
std::string GetMediaAuditResultRequest::getOwnerId()const
{
return ownerId_;
}
void GetMediaAuditResultRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetMediaAuditResultRequest::getMediaId()const
{
return mediaId_;

View File

@@ -72,18 +72,18 @@ void GetMediaAuditResultResult::parse(const std::string &payload)
imageResultItemObject.type = mediaAuditResultNodeImageResultImageResultItem["Type"].asString();
if(!mediaAuditResultNodeImageResultImageResultItem["Url"].isNull())
imageResultItemObject.url = mediaAuditResultNodeImageResultImageResultItem["Url"].asString();
auto allResultNode = allImageResultNode["Result"]["ResultItem"];
for (auto allImageResultNodeResultResultItem : allResultNode)
auto allResultNode = mediaAuditResultNodeImageResultImageResultItem["Result"]["ResultItem"];
for (auto mediaAuditResultNodeImageResultImageResultItemResultResultItem : allResultNode)
{
MediaAuditResult::ImageResultItem::ResultItem resultObject;
if(!allImageResultNodeResultResultItem["Label"].isNull())
resultObject.label = allImageResultNodeResultResultItem["Label"].asString();
if(!allImageResultNodeResultResultItem["Scene"].isNull())
resultObject.scene = allImageResultNodeResultResultItem["Scene"].asString();
if(!allImageResultNodeResultResultItem["Score"].isNull())
resultObject.score = allImageResultNodeResultResultItem["Score"].asString();
if(!allImageResultNodeResultResultItem["Suggestion"].isNull())
resultObject.suggestion = allImageResultNodeResultResultItem["Suggestion"].asString();
if(!mediaAuditResultNodeImageResultImageResultItemResultResultItem["Label"].isNull())
resultObject.label = mediaAuditResultNodeImageResultImageResultItemResultResultItem["Label"].asString();
if(!mediaAuditResultNodeImageResultImageResultItemResultResultItem["Scene"].isNull())
resultObject.scene = mediaAuditResultNodeImageResultImageResultItemResultResultItem["Scene"].asString();
if(!mediaAuditResultNodeImageResultImageResultItemResultResultItem["Score"].isNull())
resultObject.score = mediaAuditResultNodeImageResultImageResultItemResultResultItem["Score"].asString();
if(!mediaAuditResultNodeImageResultImageResultItemResultResultItem["Suggestion"].isNull())
resultObject.suggestion = mediaAuditResultNodeImageResultImageResultItemResultResultItem["Suggestion"].asString();
imageResultItemObject.result.push_back(resultObject);
}
mediaAuditResult_.imageResult.push_back(imageResultItemObject);

View File

@@ -27,39 +27,6 @@ GetMediaAuditResultTimelineRequest::GetMediaAuditResultTimelineRequest() :
GetMediaAuditResultTimelineRequest::~GetMediaAuditResultTimelineRequest()
{}
long GetMediaAuditResultTimelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetMediaAuditResultTimelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetMediaAuditResultTimelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetMediaAuditResultTimelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetMediaAuditResultTimelineRequest::getOwnerId()const
{
return ownerId_;
}
void GetMediaAuditResultTimelineRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetMediaAuditResultTimelineRequest::getMediaId()const
{
return mediaId_;

View File

@@ -48,8 +48,8 @@ void GetMediaDNAResultResult::parse(const std::string &payload)
videoDNAItemObject.primaryKey = dNAResultNodeVideoDNAVideoDNAItem["PrimaryKey"].asString();
if(!dNAResultNodeVideoDNAVideoDNAItem["Similarity"].isNull())
videoDNAItemObject.similarity = dNAResultNodeVideoDNAVideoDNAItem["Similarity"].asString();
auto allDetailNode = allVideoDNANode["Detail"]["DetailItem"];
for (auto allVideoDNANodeDetailDetailItem : allDetailNode)
auto allDetailNode = dNAResultNodeVideoDNAVideoDNAItem["Detail"]["DetailItem"];
for (auto dNAResultNodeVideoDNAVideoDNAItemDetailDetailItem : allDetailNode)
{
DNAResult::VideoDNAItem::DetailItem detailObject;
auto inputNode = value["Input"];

View File

@@ -27,15 +27,15 @@ GetMessageCallbackRequest::GetMessageCallbackRequest() :
GetMessageCallbackRequest::~GetMessageCallbackRequest()
{}
std::string GetMessageCallbackRequest::getResourceOwnerId()const
std::string GetMessageCallbackRequest::getOwnerAccount()const
{
return resourceOwnerId_;
return ownerAccount_;
}
void GetMessageCallbackRequest::setResourceOwnerId(const std::string& resourceOwnerId)
void GetMessageCallbackRequest::setOwnerAccount(const std::string& ownerAccount)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long GetMessageCallbackRequest::getResourceRealOwnerId()const
@@ -60,39 +60,6 @@ void GetMessageCallbackRequest::setAccessKeyId(const std::string& accessKeyId)
setParameter("AccessKeyId", accessKeyId);
}
std::string GetMessageCallbackRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetMessageCallbackRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetMessageCallbackRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void GetMessageCallbackRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string GetMessageCallbackRequest::getOwnerId()const
{
return ownerId_;
}
void GetMessageCallbackRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetMessageCallbackRequest::getAppId()const
{
return appId_;

View File

@@ -27,17 +27,6 @@ GetMezzanineInfoRequest::GetMezzanineInfoRequest() :
GetMezzanineInfoRequest::~GetMezzanineInfoRequest()
{}
long GetMezzanineInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetMezzanineInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetMezzanineInfoRequest::getOutputType()const
{
return outputType_;
@@ -60,17 +49,6 @@ void GetMezzanineInfoRequest::setAuthTimeout(long authTimeout)
setParameter("AuthTimeout", std::to_string(authTimeout));
}
std::string GetMezzanineInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetMezzanineInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetMezzanineInfoRequest::getVideoId()const
{
return videoId_;
@@ -82,17 +60,6 @@ void GetMezzanineInfoRequest::setVideoId(const std::string& videoId)
setParameter("VideoId", videoId);
}
long GetMezzanineInfoRequest::getOwnerId()const
{
return ownerId_;
}
void GetMezzanineInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
bool GetMezzanineInfoRequest::getPreviewSegment()const
{
return previewSegment_;

View File

@@ -27,17 +27,6 @@ GetPlayInfoRequest::GetPlayInfoRequest() :
GetPlayInfoRequest::~GetPlayInfoRequest()
{}
long GetPlayInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetPlayInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetPlayInfoRequest::getFormats()const
{
return formats_;
@@ -148,17 +137,6 @@ void GetPlayInfoRequest::setStreamType(const std::string& streamType)
setParameter("StreamType", streamType);
}
std::string GetPlayInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetPlayInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetPlayInfoRequest::getVideoId()const
{
return videoId_;
@@ -170,17 +148,6 @@ void GetPlayInfoRequest::setVideoId(const std::string& videoId)
setParameter("VideoId", videoId);
}
long GetPlayInfoRequest::getOwnerId()const
{
return ownerId_;
}
void GetPlayInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetPlayInfoRequest::getResultType()const
{
return resultType_;
@@ -192,6 +159,17 @@ void GetPlayInfoRequest::setResultType(const std::string& resultType)
setParameter("ResultType", resultType);
}
std::string GetPlayInfoRequest::getAdditionType()const
{
return additionType_;
}
void GetPlayInfoRequest::setAdditionType(const std::string& additionType)
{
additionType_ = additionType;
setParameter("AdditionType", additionType);
}
std::string GetPlayInfoRequest::getAuthInfo()const
{
return authInfo_;

View File

@@ -110,6 +110,8 @@ void GetPlayInfoResult::parse(const std::string &payload)
videoBase_.creationTime = videoBaseNode["CreationTime"].asString();
if(!videoBaseNode["TranscodeMode"].isNull())
videoBase_.transcodeMode = videoBaseNode["TranscodeMode"].asString();
if(!videoBaseNode["DanMuURL"].isNull())
videoBase_.danMuURL = videoBaseNode["DanMuURL"].asString();
auto allThumbnailListNode = videoBaseNode["ThumbnailList"]["Thumbnail"];
for (auto videoBaseNodeThumbnailListThumbnail : allThumbnailListNode)
{

View File

@@ -27,39 +27,6 @@ GetTranscodeSummaryRequest::GetTranscodeSummaryRequest() :
GetTranscodeSummaryRequest::~GetTranscodeSummaryRequest()
{}
long GetTranscodeSummaryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetTranscodeSummaryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetTranscodeSummaryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetTranscodeSummaryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetTranscodeSummaryRequest::getOwnerId()const
{
return ownerId_;
}
void GetTranscodeSummaryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetTranscodeSummaryRequest::getAccessKeyId()const
{
return accessKeyId_;

View File

@@ -55,42 +55,42 @@ void GetTranscodeSummaryResult::parse(const std::string &payload)
transcodeSummaryListObject.trigger = valueTranscodeSummaryListTranscodeSummary["Trigger"].asString();
if(!valueTranscodeSummaryListTranscodeSummary["TranscodeTemplateGroupId"].isNull())
transcodeSummaryListObject.transcodeTemplateGroupId = valueTranscodeSummaryListTranscodeSummary["TranscodeTemplateGroupId"].asString();
auto allTranscodeJobInfoSummaryListNode = allTranscodeSummaryListNode["TranscodeJobInfoSummaryList"]["TranscodeJobInfoSummary"];
for (auto allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary : allTranscodeJobInfoSummaryListNode)
auto allTranscodeJobInfoSummaryListNode = valueTranscodeSummaryListTranscodeSummary["TranscodeJobInfoSummaryList"]["TranscodeJobInfoSummary"];
for (auto valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary : allTranscodeJobInfoSummaryListNode)
{
TranscodeSummary::TranscodeJobInfoSummary transcodeJobInfoSummaryListObject;
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeTemplateId"].isNull())
transcodeJobInfoSummaryListObject.transcodeTemplateId = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeTemplateId"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeJobStatus"].isNull())
transcodeJobInfoSummaryListObject.transcodeJobStatus = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeJobStatus"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["CreationTime"].isNull())
transcodeJobInfoSummaryListObject.creationTime = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["CreationTime"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["CompleteTime"].isNull())
transcodeJobInfoSummaryListObject.completeTime = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["CompleteTime"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeProgress"].isNull())
transcodeJobInfoSummaryListObject.transcodeProgress = std::stol(allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeProgress"].asString());
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["ErrorCode"].isNull())
transcodeJobInfoSummaryListObject.errorCode = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["ErrorCode"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["ErrorMessage"].isNull())
transcodeJobInfoSummaryListObject.errorMessage = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["ErrorMessage"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Definition"].isNull())
transcodeJobInfoSummaryListObject.definition = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Definition"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Encryption"].isNull())
transcodeJobInfoSummaryListObject.encryption = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Encryption"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Width"].isNull())
transcodeJobInfoSummaryListObject.width = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Width"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Height"].isNull())
transcodeJobInfoSummaryListObject.height = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Height"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Bitrate"].isNull())
transcodeJobInfoSummaryListObject.bitrate = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Bitrate"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Fps"].isNull())
transcodeJobInfoSummaryListObject.fps = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Fps"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Format"].isNull())
transcodeJobInfoSummaryListObject.format = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Format"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Duration"].isNull())
transcodeJobInfoSummaryListObject.duration = allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Duration"].asString();
if(!allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Filesize"].isNull())
transcodeJobInfoSummaryListObject.filesize = std::stol(allTranscodeSummaryListNodeTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Filesize"].asString());
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeTemplateId"].isNull())
transcodeJobInfoSummaryListObject.transcodeTemplateId = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeTemplateId"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeJobStatus"].isNull())
transcodeJobInfoSummaryListObject.transcodeJobStatus = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeJobStatus"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["CreationTime"].isNull())
transcodeJobInfoSummaryListObject.creationTime = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["CreationTime"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["CompleteTime"].isNull())
transcodeJobInfoSummaryListObject.completeTime = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["CompleteTime"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeProgress"].isNull())
transcodeJobInfoSummaryListObject.transcodeProgress = std::stol(valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["TranscodeProgress"].asString());
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["ErrorCode"].isNull())
transcodeJobInfoSummaryListObject.errorCode = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["ErrorCode"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["ErrorMessage"].isNull())
transcodeJobInfoSummaryListObject.errorMessage = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["ErrorMessage"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Definition"].isNull())
transcodeJobInfoSummaryListObject.definition = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Definition"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Encryption"].isNull())
transcodeJobInfoSummaryListObject.encryption = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Encryption"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Width"].isNull())
transcodeJobInfoSummaryListObject.width = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Width"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Height"].isNull())
transcodeJobInfoSummaryListObject.height = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Height"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Bitrate"].isNull())
transcodeJobInfoSummaryListObject.bitrate = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Bitrate"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Fps"].isNull())
transcodeJobInfoSummaryListObject.fps = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Fps"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Format"].isNull())
transcodeJobInfoSummaryListObject.format = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Format"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Duration"].isNull())
transcodeJobInfoSummaryListObject.duration = valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Duration"].asString();
if(!valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Filesize"].isNull())
transcodeJobInfoSummaryListObject.filesize = std::stol(valueTranscodeSummaryListTranscodeSummaryTranscodeJobInfoSummaryListTranscodeJobInfoSummary["Filesize"].asString());
auto allWatermarkIdList = value["WatermarkIdList"]["WatermarkId"];
for (auto value : allWatermarkIdList)
transcodeJobInfoSummaryListObject.watermarkIdList.push_back(value.asString());

View File

@@ -27,39 +27,6 @@ GetTranscodeTaskRequest::GetTranscodeTaskRequest() :
GetTranscodeTaskRequest::~GetTranscodeTaskRequest()
{}
long GetTranscodeTaskRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetTranscodeTaskRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetTranscodeTaskRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetTranscodeTaskRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetTranscodeTaskRequest::getOwnerId()const
{
return ownerId_;
}
void GetTranscodeTaskRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetTranscodeTaskRequest::getAccessKeyId()const
{
return accessKeyId_;

View File

@@ -27,39 +27,6 @@ GetTranscodeTemplateGroupRequest::GetTranscodeTemplateGroupRequest() :
GetTranscodeTemplateGroupRequest::~GetTranscodeTemplateGroupRequest()
{}
long GetTranscodeTemplateGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetTranscodeTemplateGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetTranscodeTemplateGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetTranscodeTemplateGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetTranscodeTemplateGroupRequest::getOwnerId()const
{
return ownerId_;
}
void GetTranscodeTemplateGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetTranscodeTemplateGroupRequest::getAccessKeyId()const
{
return accessKeyId_;

View File

@@ -27,39 +27,6 @@ GetURLUploadInfosRequest::GetURLUploadInfosRequest() :
GetURLUploadInfosRequest::~GetURLUploadInfosRequest()
{}
long GetURLUploadInfosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetURLUploadInfosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetURLUploadInfosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetURLUploadInfosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetURLUploadInfosRequest::getOwnerId()const
{
return ownerId_;
}
void GetURLUploadInfosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetURLUploadInfosRequest::getJobIds()const
{
return jobIds_;

View File

@@ -27,17 +27,6 @@ GetUploadDetailsRequest::GetUploadDetailsRequest() :
GetUploadDetailsRequest::~GetUploadDetailsRequest()
{}
long GetUploadDetailsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetUploadDetailsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long GetUploadDetailsRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
@@ -71,28 +60,6 @@ void GetUploadDetailsRequest::setMediaIds(const std::string& mediaIds)
setParameter("MediaIds", mediaIds);
}
std::string GetUploadDetailsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetUploadDetailsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetUploadDetailsRequest::getOwnerId()const
{
return ownerId_;
}
void GetUploadDetailsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetUploadDetailsRequest::getMediaType()const
{
return mediaType_;

View File

@@ -27,39 +27,6 @@ GetVideoInfoRequest::GetVideoInfoRequest() :
GetVideoInfoRequest::~GetVideoInfoRequest()
{}
long GetVideoInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetVideoInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetVideoInfoRequest::getResultTypes()const
{
return resultTypes_;
}
void GetVideoInfoRequest::setResultTypes(const std::string& resultTypes)
{
resultTypes_ = resultTypes;
setParameter("ResultTypes", resultTypes);
}
std::string GetVideoInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetVideoInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetVideoInfoRequest::getVideoId()const
{
return videoId_;
@@ -71,17 +38,6 @@ void GetVideoInfoRequest::setVideoId(const std::string& videoId)
setParameter("VideoId", videoId);
}
long GetVideoInfoRequest::getOwnerId()const
{
return ownerId_;
}
void GetVideoInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetVideoInfoRequest::getAdditionType()const
{
return additionType_;
@@ -93,3 +49,14 @@ void GetVideoInfoRequest::setAdditionType(const std::string& additionType)
setParameter("AdditionType", additionType);
}
std::string GetVideoInfoRequest::getResultTypes()const
{
return resultTypes_;
}
void GetVideoInfoRequest::setResultTypes(const std::string& resultTypes)
{
resultTypes_ = resultTypes;
setParameter("ResultTypes", resultTypes);
}

View File

@@ -27,39 +27,6 @@ GetVideoInfosRequest::GetVideoInfosRequest() :
GetVideoInfosRequest::~GetVideoInfosRequest()
{}
long GetVideoInfosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetVideoInfosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetVideoInfosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetVideoInfosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetVideoInfosRequest::getOwnerId()const
{
return ownerId_;
}
void GetVideoInfosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetVideoInfosRequest::getAdditionType()const
{
return additionType_;

View File

@@ -81,12 +81,12 @@ void GetVideoInfosResult::parse(const std::string &payload)
videoListObject.customMediaInfo = valueVideoListVideo["CustomMediaInfo"].asString();
if(!valueVideoListVideo["AppId"].isNull())
videoListObject.appId = valueVideoListVideo["AppId"].asString();
auto allThumbnailListNode = allVideoListNode["ThumbnailList"]["Thumbnail"];
for (auto allVideoListNodeThumbnailListThumbnail : allThumbnailListNode)
auto allThumbnailListNode = valueVideoListVideo["ThumbnailList"]["Thumbnail"];
for (auto valueVideoListVideoThumbnailListThumbnail : allThumbnailListNode)
{
Video::Thumbnail thumbnailListObject;
if(!allVideoListNodeThumbnailListThumbnail["URL"].isNull())
thumbnailListObject.uRL = allVideoListNodeThumbnailListThumbnail["URL"].asString();
if(!valueVideoListVideoThumbnailListThumbnail["URL"].isNull())
thumbnailListObject.uRL = valueVideoListVideoThumbnailListThumbnail["URL"].asString();
videoListObject.thumbnailList.push_back(thumbnailListObject);
}
auto allSnapshots = value["Snapshots"]["Snapshot"];

View File

@@ -27,17 +27,6 @@ GetVideoListRequest::GetVideoListRequest() :
GetVideoListRequest::~GetVideoListRequest()
{}
long GetVideoListRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetVideoListRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetVideoListRequest::getStartTime()const
{
return startTime_;
@@ -82,17 +71,6 @@ void GetVideoListRequest::setPageSize(int pageSize)
setParameter("PageSize", std::to_string(pageSize));
}
std::string GetVideoListRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetVideoListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetVideoListRequest::getEndTime()const
{
return endTime_;
@@ -104,17 +82,6 @@ void GetVideoListRequest::setEndTime(const std::string& endTime)
setParameter("EndTime", endTime);
}
long GetVideoListRequest::getOwnerId()const
{
return ownerId_;
}
void GetVideoListRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int GetVideoListRequest::getPageNo()const
{
return pageNo_;

View File

@@ -27,15 +27,15 @@ GetVideoPlayAuthRequest::GetVideoPlayAuthRequest() :
GetVideoPlayAuthRequest::~GetVideoPlayAuthRequest()
{}
long GetVideoPlayAuthRequest::getResourceOwnerId()const
std::string GetVideoPlayAuthRequest::getVideoId()const
{
return resourceOwnerId_;
return videoId_;
}
void GetVideoPlayAuthRequest::setResourceOwnerId(long resourceOwnerId)
void GetVideoPlayAuthRequest::setVideoId(const std::string& videoId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
videoId_ = videoId;
setParameter("VideoId", videoId);
}
std::string GetVideoPlayAuthRequest::getReAuthInfo()const
@@ -60,39 +60,6 @@ void GetVideoPlayAuthRequest::setPlayConfig(const std::string& playConfig)
setParameter("PlayConfig", playConfig);
}
std::string GetVideoPlayAuthRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetVideoPlayAuthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetVideoPlayAuthRequest::getVideoId()const
{
return videoId_;
}
void GetVideoPlayAuthRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
}
long GetVideoPlayAuthRequest::getOwnerId()const
{
return ownerId_;
}
void GetVideoPlayAuthRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long GetVideoPlayAuthRequest::getAuthInfoTimeout()const
{
return authInfoTimeout_;

View File

@@ -27,39 +27,6 @@ GetVodTemplateRequest::GetVodTemplateRequest() :
GetVodTemplateRequest::~GetVodTemplateRequest()
{}
long GetVodTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetVodTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetVodTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetVodTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetVodTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void GetVodTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetVodTemplateRequest::getVodTemplateId()const
{
return vodTemplateId_;

View File

@@ -27,39 +27,6 @@ GetWatermarkRequest::GetWatermarkRequest() :
GetWatermarkRequest::~GetWatermarkRequest()
{}
long GetWatermarkRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetWatermarkRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetWatermarkRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetWatermarkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetWatermarkRequest::getOwnerId()const
{
return ownerId_;
}
void GetWatermarkRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string GetWatermarkRequest::getAccessKeyId()const
{
return accessKeyId_;

Some files were not shown because too many files have changed in this diff Show More