VOD SDK Auto Released By guzhaoyuan,Version:1.36.2

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-04-11 18:03:35 +08:00
parent fa74cc1f43
commit e0ba4b2b8f
374 changed files with 16991 additions and 10943 deletions

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/AddAITemplateRequest.h>
using AlibabaCloud::Vod::Model::AddAITemplateRequest;
AddAITemplateRequest::AddAITemplateRequest() :
RpcServiceRequest("vod", "2017-03-21", "AddAITemplate")
{}
AddAITemplateRequest::~AddAITemplateRequest()
{}
long AddAITemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddAITemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddAITemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddAITemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddAITemplateRequest::getTemplateConfig()const
{
return templateConfig_;
}
void AddAITemplateRequest::setTemplateConfig(const std::string& templateConfig)
{
templateConfig_ = templateConfig;
setCoreParameter("TemplateConfig", templateConfig);
}
std::string AddAITemplateRequest::getTemplateType()const
{
return templateType_;
}
void AddAITemplateRequest::setTemplateType(const std::string& templateType)
{
templateType_ = templateType;
setCoreParameter("TemplateType", templateType);
}
std::string AddAITemplateRequest::getTemplateName()const
{
return templateName_;
}
void AddAITemplateRequest::setTemplateName(const std::string& templateName)
{
templateName_ = templateName;
setCoreParameter("TemplateName", templateName);
}
long AddAITemplateRequest::getOwnerId()const
{
return ownerId_;
}
void AddAITemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -14,39 +14,39 @@
* limitations under the License.
*/
#include <alibabacloud/vod/model/UpdateWorkFlowResult.h>
#include <alibabacloud/vod/model/AddAITemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
UpdateWorkFlowResult::UpdateWorkFlowResult() :
AddAITemplateResult::AddAITemplateResult() :
ServiceResult()
{}
UpdateWorkFlowResult::UpdateWorkFlowResult(const std::string &payload) :
AddAITemplateResult::AddAITemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateWorkFlowResult::~UpdateWorkFlowResult()
AddAITemplateResult::~AddAITemplateResult()
{}
void UpdateWorkFlowResult::parse(const std::string &payload)
void AddAITemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["WorkFlowId"].isNull())
workFlowId_ = value["WorkFlowId"].asString();
if(!value["TemplateId"].isNull())
templateId_ = value["TemplateId"].asString();
}
std::string UpdateWorkFlowResult::getWorkFlowId()const
std::string AddAITemplateResult::getTemplateId()const
{
return workFlowId_;
return templateId_;
}

View File

@@ -33,7 +33,7 @@ std::string AddCategoryRequest::getResourceOwnerId()const
void AddCategoryRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
setCoreParameter("ResourceOwnerId", resourceOwnerId);
}
std::string AddCategoryRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string AddCategoryRequest::getResourceOwnerAccount()const
void AddCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddCategoryRequest::getOwnerId()const
@@ -55,7 +55,18 @@ std::string AddCategoryRequest::getOwnerId()const
void AddCategoryRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
setCoreParameter("OwnerId", ownerId);
}
std::string AddCategoryRequest::getType()const
{
return type_;
}
void AddCategoryRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}
long AddCategoryRequest::getParentId()const
@@ -66,7 +77,7 @@ long AddCategoryRequest::getParentId()const
void AddCategoryRequest::setParentId(long parentId)
{
parentId_ = parentId;
setParameter("ParentId", std::to_string(parentId));
setCoreParameter("ParentId", std::to_string(parentId));
}
std::string AddCategoryRequest::getCateName()const
@@ -77,6 +88,6 @@ std::string AddCategoryRequest::getCateName()const
void AddCategoryRequest::setCateName(const std::string& cateName)
{
cateName_ = cateName;
setParameter("CateName", cateName);
setCoreParameter("CateName", cateName);
}

View File

@@ -49,6 +49,8 @@ void AddCategoryResult::parse(const std::string &payload)
category_.parentId = std::stol(categoryNode["ParentId"].asString());
if(!categoryNode["Level"].isNull())
category_.level = std::stol(categoryNode["Level"].asString());
if(!categoryNode["Type"].isNull())
category_.type = categoryNode["Type"].asString();
}

View File

@@ -33,7 +33,18 @@ std::string AddEditingProjectRequest::getCoverURL()const
void AddEditingProjectRequest::setCoverURL(const std::string& coverURL)
{
coverURL_ = coverURL;
setParameter("CoverURL", coverURL);
setCoreParameter("CoverURL", coverURL);
}
std::string AddEditingProjectRequest::getDivision()const
{
return division_;
}
void AddEditingProjectRequest::setDivision(const std::string& division)
{
division_ = division;
setCoreParameter("Division", division);
}
std::string AddEditingProjectRequest::getResourceOwnerId()const
@@ -44,7 +55,7 @@ std::string AddEditingProjectRequest::getResourceOwnerId()const
void AddEditingProjectRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
setCoreParameter("ResourceOwnerId", resourceOwnerId);
}
std::string AddEditingProjectRequest::getResourceOwnerAccount()const
@@ -55,7 +66,7 @@ std::string AddEditingProjectRequest::getResourceOwnerAccount()const
void AddEditingProjectRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddEditingProjectRequest::getOwnerAccount()const
@@ -66,7 +77,7 @@ std::string AddEditingProjectRequest::getOwnerAccount()const
void AddEditingProjectRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string AddEditingProjectRequest::getDescription()const
@@ -77,7 +88,7 @@ std::string AddEditingProjectRequest::getDescription()const
void AddEditingProjectRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
setCoreParameter("Description", description);
}
std::string AddEditingProjectRequest::getTimeline()const
@@ -88,7 +99,7 @@ std::string AddEditingProjectRequest::getTimeline()const
void AddEditingProjectRequest::setTimeline(const std::string& timeline)
{
timeline_ = timeline;
setParameter("Timeline", timeline);
setCoreParameter("Timeline", timeline);
}
std::string AddEditingProjectRequest::getOwnerId()const
@@ -99,7 +110,7 @@ std::string AddEditingProjectRequest::getOwnerId()const
void AddEditingProjectRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
setCoreParameter("OwnerId", ownerId);
}
std::string AddEditingProjectRequest::getTitle()const
@@ -110,7 +121,7 @@ std::string AddEditingProjectRequest::getTitle()const
void AddEditingProjectRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
setCoreParameter("Title", title);
}
std::string AddEditingProjectRequest::getAccessKeyId()const
@@ -121,6 +132,6 @@ std::string AddEditingProjectRequest::getAccessKeyId()const
void AddEditingProjectRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/AddTranscodeTemplateGroupRequest.h>
using AlibabaCloud::Vod::Model::AddTranscodeTemplateGroupRequest;
AddTranscodeTemplateGroupRequest::AddTranscodeTemplateGroupRequest() :
RpcServiceRequest("vod", "2017-03-21", "AddTranscodeTemplateGroup")
{}
AddTranscodeTemplateGroupRequest::~AddTranscodeTemplateGroupRequest()
{}
std::string AddTranscodeTemplateGroupRequest::getTranscodeTemplateList()const
{
return transcodeTemplateList_;
}
void AddTranscodeTemplateGroupRequest::setTranscodeTemplateList(const std::string& transcodeTemplateList)
{
transcodeTemplateList_ = transcodeTemplateList;
setCoreParameter("TranscodeTemplateList", transcodeTemplateList);
}
long AddTranscodeTemplateGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddTranscodeTemplateGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddTranscodeTemplateGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddTranscodeTemplateGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddTranscodeTemplateGroupRequest::getName()const
{
return name_;
}
void AddTranscodeTemplateGroupRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
long AddTranscodeTemplateGroupRequest::getOwnerId()const
{
return ownerId_;
}
void AddTranscodeTemplateGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string AddTranscodeTemplateGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddTranscodeTemplateGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string AddTranscodeTemplateGroupRequest::getTranscodeTemplateGroupId()const
{
return transcodeTemplateGroupId_;
}
void AddTranscodeTemplateGroupRequest::setTranscodeTemplateGroupId(const std::string& transcodeTemplateGroupId)
{
transcodeTemplateGroupId_ = transcodeTemplateGroupId;
setCoreParameter("TranscodeTemplateGroupId", transcodeTemplateGroupId);
}

View File

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

View File

@@ -33,7 +33,7 @@ long AddVodTemplateRequest::getResourceOwnerId()const
void AddVodTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddVodTemplateRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string AddVodTemplateRequest::getResourceOwnerAccount()const
void AddVodTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddVodTemplateRequest::getTemplateConfig()const
@@ -55,7 +55,7 @@ std::string AddVodTemplateRequest::getTemplateConfig()const
void AddVodTemplateRequest::setTemplateConfig(const std::string& templateConfig)
{
templateConfig_ = templateConfig;
setParameter("TemplateConfig", templateConfig);
setCoreParameter("TemplateConfig", templateConfig);
}
std::string AddVodTemplateRequest::getTemplateType()const
@@ -66,7 +66,7 @@ std::string AddVodTemplateRequest::getTemplateType()const
void AddVodTemplateRequest::setTemplateType(const std::string& templateType)
{
templateType_ = templateType;
setParameter("TemplateType", templateType);
setCoreParameter("TemplateType", templateType);
}
std::string AddVodTemplateRequest::getName()const
@@ -77,7 +77,7 @@ std::string AddVodTemplateRequest::getName()const
void AddVodTemplateRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
setCoreParameter("Name", name);
}
long AddVodTemplateRequest::getOwnerId()const
@@ -88,7 +88,7 @@ long AddVodTemplateRequest::getOwnerId()const
void AddVodTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string AddVodTemplateRequest::getSubTemplateType()const
@@ -99,6 +99,6 @@ std::string AddVodTemplateRequest::getSubTemplateType()const
void AddVodTemplateRequest::setSubTemplateType(const std::string& subTemplateType)
{
subTemplateType_ = subTemplateType;
setParameter("SubTemplateType", subTemplateType);
setCoreParameter("SubTemplateType", subTemplateType);
}

View File

@@ -33,7 +33,7 @@ long AddWatermarkRequest::getResourceOwnerId()const
void AddWatermarkRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddWatermarkRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string AddWatermarkRequest::getResourceOwnerAccount()const
void AddWatermarkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddWatermarkRequest::getName()const
@@ -55,7 +55,7 @@ std::string AddWatermarkRequest::getName()const
void AddWatermarkRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
setCoreParameter("Name", name);
}
std::string AddWatermarkRequest::getFileUrl()const
@@ -66,7 +66,7 @@ std::string AddWatermarkRequest::getFileUrl()const
void AddWatermarkRequest::setFileUrl(const std::string& fileUrl)
{
fileUrl_ = fileUrl;
setParameter("FileUrl", fileUrl);
setCoreParameter("FileUrl", fileUrl);
}
long AddWatermarkRequest::getOwnerId()const
@@ -77,7 +77,7 @@ long AddWatermarkRequest::getOwnerId()const
void AddWatermarkRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string AddWatermarkRequest::getType()const
@@ -88,7 +88,7 @@ std::string AddWatermarkRequest::getType()const
void AddWatermarkRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
setCoreParameter("Type", type);
}
std::string AddWatermarkRequest::getWatermarkConfig()const
@@ -99,7 +99,7 @@ std::string AddWatermarkRequest::getWatermarkConfig()const
void AddWatermarkRequest::setWatermarkConfig(const std::string& watermarkConfig)
{
watermarkConfig_ = watermarkConfig;
setParameter("WatermarkConfig", watermarkConfig);
setCoreParameter("WatermarkConfig", watermarkConfig);
}
std::string AddWatermarkRequest::getAccessKeyId()const
@@ -110,6 +110,6 @@ std::string AddWatermarkRequest::getAccessKeyId()const
void AddWatermarkRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,82 +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/AddWorkFlowRequest.h>
using AlibabaCloud::Vod::Model::AddWorkFlowRequest;
AddWorkFlowRequest::AddWorkFlowRequest() :
RpcServiceRequest("vod", "2017-03-21", "AddWorkFlow")
{}
AddWorkFlowRequest::~AddWorkFlowRequest()
{}
long AddWorkFlowRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddWorkFlowRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddWorkFlowRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddWorkFlowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddWorkFlowRequest::getName()const
{
return name_;
}
void AddWorkFlowRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddWorkFlowRequest::getActionList()const
{
return actionList_;
}
void AddWorkFlowRequest::setActionList(const std::string& actionList)
{
actionList_ = actionList;
setParameter("ActionList", actionList);
}
long AddWorkFlowRequest::getOwnerId()const
{
return ownerId_;
}
void AddWorkFlowRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/AttachAppPolicyToIdentityRequest.h>
using AlibabaCloud::Vod::Model::AttachAppPolicyToIdentityRequest;
AttachAppPolicyToIdentityRequest::AttachAppPolicyToIdentityRequest() :
RpcServiceRequest("vod", "2017-03-21", "AttachAppPolicyToIdentity")
{}
AttachAppPolicyToIdentityRequest::~AttachAppPolicyToIdentityRequest()
{}
std::string AttachAppPolicyToIdentityRequest::getIdentityName()const
{
return identityName_;
}
void AttachAppPolicyToIdentityRequest::setIdentityName(const std::string& identityName)
{
identityName_ = identityName;
setCoreParameter("IdentityName", identityName);
}
long AttachAppPolicyToIdentityRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AttachAppPolicyToIdentityRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AttachAppPolicyToIdentityRequest::getIdentityType()const
{
return identityType_;
}
void AttachAppPolicyToIdentityRequest::setIdentityType(const std::string& identityType)
{
identityType_ = identityType;
setCoreParameter("IdentityType", identityType);
}
std::string AttachAppPolicyToIdentityRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AttachAppPolicyToIdentityRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AttachAppPolicyToIdentityRequest::getAppId()const
{
return appId_;
}
void AttachAppPolicyToIdentityRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setCoreParameter("AppId", appId);
}
std::string AttachAppPolicyToIdentityRequest::getPolicyNames()const
{
return policyNames_;
}
void AttachAppPolicyToIdentityRequest::setPolicyNames(const std::string& policyNames)
{
policyNames_ = policyNames;
setCoreParameter("PolicyNames", policyNames);
}
long AttachAppPolicyToIdentityRequest::getOwnerId()const
{
return ownerId_;
}
void AttachAppPolicyToIdentityRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/CreateAppInfoRequest.h>
using AlibabaCloud::Vod::Model::CreateAppInfoRequest;
CreateAppInfoRequest::CreateAppInfoRequest() :
RpcServiceRequest("vod", "2017-03-21", "CreateAppInfo")
{}
CreateAppInfoRequest::~CreateAppInfoRequest()
{}
long CreateAppInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateAppInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateAppInfoRequest::getAppName()const
{
return appName_;
}
void CreateAppInfoRequest::setAppName(const std::string& appName)
{
appName_ = appName;
setCoreParameter("AppName", appName);
}
std::string CreateAppInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateAppInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateAppInfoRequest::getDescription()const
{
return description_;
}
void CreateAppInfoRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
long CreateAppInfoRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
}
void CreateAppInfoRequest::setResourceRealOwnerId(long resourceRealOwnerId)
{
resourceRealOwnerId_ = resourceRealOwnerId;
setCoreParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
long CreateAppInfoRequest::getOwnerId()const
{
return ownerId_;
}
void CreateAppInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateAppInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateAppInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -14,39 +14,39 @@
* limitations under the License.
*/
#include <alibabacloud/vod/model/AddWorkFlowResult.h>
#include <alibabacloud/vod/model/CreateAppInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
AddWorkFlowResult::AddWorkFlowResult() :
CreateAppInfoResult::CreateAppInfoResult() :
ServiceResult()
{}
AddWorkFlowResult::AddWorkFlowResult(const std::string &payload) :
CreateAppInfoResult::CreateAppInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddWorkFlowResult::~AddWorkFlowResult()
CreateAppInfoResult::~CreateAppInfoResult()
{}
void AddWorkFlowResult::parse(const std::string &payload)
void CreateAppInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["WorkFlowId"].isNull())
workFlowId_ = value["WorkFlowId"].asString();
if(!value["AppId"].isNull())
appId_ = value["AppId"].asString();
}
std::string AddWorkFlowResult::getWorkFlowId()const
std::string CreateAppInfoResult::getAppId()const
{
return workFlowId_;
return appId_;
}

View File

@@ -33,6 +33,6 @@ std::string CreateAuditRequest::getAuditContent()const
void CreateAuditRequest::setAuditContent(const std::string& auditContent)
{
auditContent_ = auditContent;
setParameter("AuditContent", auditContent);
setCoreParameter("AuditContent", auditContent);
}

View File

@@ -33,7 +33,7 @@ long CreateUploadAttachedMediaRequest::getResourceOwnerId()const
void CreateUploadAttachedMediaRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateUploadAttachedMediaRequest::getResourceOwnerAccount()const
@@ -44,7 +44,29 @@ std::string CreateUploadAttachedMediaRequest::getResourceOwnerAccount()const
void CreateUploadAttachedMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateUploadAttachedMediaRequest::getCateIds()const
{
return cateIds_;
}
void CreateUploadAttachedMediaRequest::setCateIds(const std::string& cateIds)
{
cateIds_ = cateIds;
setCoreParameter("CateIds", cateIds);
}
std::string CreateUploadAttachedMediaRequest::getIcon()const
{
return icon_;
}
void CreateUploadAttachedMediaRequest::setIcon(const std::string& icon)
{
icon_ = icon;
setCoreParameter("Icon", icon);
}
std::string CreateUploadAttachedMediaRequest::getDescription()const
@@ -55,7 +77,7 @@ std::string CreateUploadAttachedMediaRequest::getDescription()const
void CreateUploadAttachedMediaRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
setCoreParameter("Description", description);
}
std::string CreateUploadAttachedMediaRequest::getFileSize()const
@@ -66,7 +88,7 @@ std::string CreateUploadAttachedMediaRequest::getFileSize()const
void CreateUploadAttachedMediaRequest::setFileSize(const std::string& fileSize)
{
fileSize_ = fileSize;
setParameter("FileSize", fileSize);
setCoreParameter("FileSize", fileSize);
}
long CreateUploadAttachedMediaRequest::getOwnerId()const
@@ -77,7 +99,7 @@ long CreateUploadAttachedMediaRequest::getOwnerId()const
void CreateUploadAttachedMediaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateUploadAttachedMediaRequest::getTitle()const
@@ -88,7 +110,7 @@ std::string CreateUploadAttachedMediaRequest::getTitle()const
void CreateUploadAttachedMediaRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
setCoreParameter("Title", title);
}
std::string CreateUploadAttachedMediaRequest::getAccessKeyId()const
@@ -99,7 +121,7 @@ std::string CreateUploadAttachedMediaRequest::getAccessKeyId()const
void CreateUploadAttachedMediaRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreateUploadAttachedMediaRequest::getBusinessType()const
@@ -110,7 +132,7 @@ std::string CreateUploadAttachedMediaRequest::getBusinessType()const
void CreateUploadAttachedMediaRequest::setBusinessType(const std::string& businessType)
{
businessType_ = businessType;
setParameter("BusinessType", businessType);
setCoreParameter("BusinessType", businessType);
}
std::string CreateUploadAttachedMediaRequest::getTags()const
@@ -121,7 +143,7 @@ std::string CreateUploadAttachedMediaRequest::getTags()const
void CreateUploadAttachedMediaRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
setCoreParameter("Tags", tags);
}
std::string CreateUploadAttachedMediaRequest::getStorageLocation()const
@@ -132,7 +154,18 @@ std::string CreateUploadAttachedMediaRequest::getStorageLocation()const
void CreateUploadAttachedMediaRequest::setStorageLocation(const std::string& storageLocation)
{
storageLocation_ = storageLocation;
setParameter("StorageLocation", storageLocation);
setCoreParameter("StorageLocation", storageLocation);
}
std::string CreateUploadAttachedMediaRequest::getUserData()const
{
return userData_;
}
void CreateUploadAttachedMediaRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setCoreParameter("UserData", userData);
}
std::string CreateUploadAttachedMediaRequest::getMediaExt()const
@@ -143,7 +176,7 @@ std::string CreateUploadAttachedMediaRequest::getMediaExt()const
void CreateUploadAttachedMediaRequest::setMediaExt(const std::string& mediaExt)
{
mediaExt_ = mediaExt;
setParameter("MediaExt", mediaExt);
setCoreParameter("MediaExt", mediaExt);
}
std::string CreateUploadAttachedMediaRequest::getFileName()const
@@ -154,17 +187,28 @@ std::string CreateUploadAttachedMediaRequest::getFileName()const
void CreateUploadAttachedMediaRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setParameter("FileName", fileName);
setCoreParameter("FileName", fileName);
}
int CreateUploadAttachedMediaRequest::getCateId()const
long CreateUploadAttachedMediaRequest::getCateId()const
{
return cateId_;
}
void CreateUploadAttachedMediaRequest::setCateId(int cateId)
void CreateUploadAttachedMediaRequest::setCateId(long cateId)
{
cateId_ = cateId;
setParameter("CateId", std::to_string(cateId));
setCoreParameter("CateId", std::to_string(cateId));
}
std::string CreateUploadAttachedMediaRequest::getAppId()const
{
return appId_;
}
void CreateUploadAttachedMediaRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setCoreParameter("AppId", appId);
}

View File

@@ -33,7 +33,7 @@ long CreateUploadImageRequest::getResourceOwnerId()const
void CreateUploadImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateUploadImageRequest::getImageType()const
@@ -44,18 +44,7 @@ std::string CreateUploadImageRequest::getImageType()const
void CreateUploadImageRequest::setImageType(const std::string& imageType)
{
imageType_ = imageType;
setParameter("ImageType", imageType);
}
std::string CreateUploadImageRequest::getOriginalFileName()const
{
return originalFileName_;
}
void CreateUploadImageRequest::setOriginalFileName(const std::string& originalFileName)
{
originalFileName_ = originalFileName;
setParameter("OriginalFileName", originalFileName);
setCoreParameter("ImageType", imageType);
}
std::string CreateUploadImageRequest::getResourceOwnerAccount()const
@@ -66,7 +55,7 @@ std::string CreateUploadImageRequest::getResourceOwnerAccount()const
void CreateUploadImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateUploadImageRequest::getImageExt()const
@@ -77,18 +66,18 @@ std::string CreateUploadImageRequest::getImageExt()const
void CreateUploadImageRequest::setImageExt(const std::string& imageExt)
{
imageExt_ = imageExt;
setParameter("ImageExt", imageExt);
setCoreParameter("ImageExt", imageExt);
}
long CreateUploadImageRequest::getCateId()const
std::string CreateUploadImageRequest::getDescription()const
{
return cateId_;
return description_;
}
void CreateUploadImageRequest::setCateId(long cateId)
void CreateUploadImageRequest::setDescription(const std::string& description)
{
cateId_ = cateId;
setParameter("CateId", std::to_string(cateId));
description_ = description;
setCoreParameter("Description", description);
}
long CreateUploadImageRequest::getOwnerId()const
@@ -99,7 +88,7 @@ long CreateUploadImageRequest::getOwnerId()const
void CreateUploadImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateUploadImageRequest::getTitle()const
@@ -110,7 +99,7 @@ std::string CreateUploadImageRequest::getTitle()const
void CreateUploadImageRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
setCoreParameter("Title", title);
}
std::string CreateUploadImageRequest::getAccessKeyId()const
@@ -121,7 +110,7 @@ std::string CreateUploadImageRequest::getAccessKeyId()const
void CreateUploadImageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreateUploadImageRequest::getTags()const
@@ -132,7 +121,7 @@ std::string CreateUploadImageRequest::getTags()const
void CreateUploadImageRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
setCoreParameter("Tags", tags);
}
std::string CreateUploadImageRequest::getStorageLocation()const
@@ -143,6 +132,50 @@ std::string CreateUploadImageRequest::getStorageLocation()const
void CreateUploadImageRequest::setStorageLocation(const std::string& storageLocation)
{
storageLocation_ = storageLocation;
setParameter("StorageLocation", storageLocation);
setCoreParameter("StorageLocation", storageLocation);
}
std::string CreateUploadImageRequest::getUserData()const
{
return userData_;
}
void CreateUploadImageRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setCoreParameter("UserData", userData);
}
std::string CreateUploadImageRequest::getOriginalFileName()const
{
return originalFileName_;
}
void CreateUploadImageRequest::setOriginalFileName(const std::string& originalFileName)
{
originalFileName_ = originalFileName;
setCoreParameter("OriginalFileName", originalFileName);
}
long CreateUploadImageRequest::getCateId()const
{
return cateId_;
}
void CreateUploadImageRequest::setCateId(long cateId)
{
cateId_ = cateId;
setCoreParameter("CateId", std::to_string(cateId));
}
std::string CreateUploadImageRequest::getAppId()const
{
return appId_;
}
void CreateUploadImageRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setCoreParameter("AppId", appId);
}

View File

@@ -33,7 +33,7 @@ long CreateUploadVideoRequest::getResourceOwnerId()const
void CreateUploadVideoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string CreateUploadVideoRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string CreateUploadVideoRequest::getResourceOwnerAccount()const
void CreateUploadVideoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateUploadVideoRequest::getTranscodeMode()const
@@ -55,7 +55,7 @@ std::string CreateUploadVideoRequest::getTranscodeMode()const
void CreateUploadVideoRequest::setTranscodeMode(const std::string& transcodeMode)
{
transcodeMode_ = transcodeMode;
setParameter("TranscodeMode", transcodeMode);
setCoreParameter("TranscodeMode", transcodeMode);
}
std::string CreateUploadVideoRequest::getIP()const
@@ -66,7 +66,7 @@ std::string CreateUploadVideoRequest::getIP()const
void CreateUploadVideoRequest::setIP(const std::string& iP)
{
iP_ = iP;
setParameter("IP", iP);
setCoreParameter("IP", iP);
}
std::string CreateUploadVideoRequest::getDescription()const
@@ -77,7 +77,7 @@ std::string CreateUploadVideoRequest::getDescription()const
void CreateUploadVideoRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
setCoreParameter("Description", description);
}
long CreateUploadVideoRequest::getFileSize()const
@@ -88,7 +88,7 @@ long CreateUploadVideoRequest::getFileSize()const
void CreateUploadVideoRequest::setFileSize(long fileSize)
{
fileSize_ = fileSize;
setParameter("FileSize", std::to_string(fileSize));
setCoreParameter("FileSize", std::to_string(fileSize));
}
long CreateUploadVideoRequest::getOwnerId()const
@@ -99,7 +99,7 @@ long CreateUploadVideoRequest::getOwnerId()const
void CreateUploadVideoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string CreateUploadVideoRequest::getTitle()const
@@ -110,7 +110,7 @@ std::string CreateUploadVideoRequest::getTitle()const
void CreateUploadVideoRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
setCoreParameter("Title", title);
}
std::string CreateUploadVideoRequest::getTags()const
@@ -121,7 +121,7 @@ std::string CreateUploadVideoRequest::getTags()const
void CreateUploadVideoRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
setCoreParameter("Tags", tags);
}
std::string CreateUploadVideoRequest::getStorageLocation()const
@@ -132,7 +132,7 @@ std::string CreateUploadVideoRequest::getStorageLocation()const
void CreateUploadVideoRequest::setStorageLocation(const std::string& storageLocation)
{
storageLocation_ = storageLocation;
setParameter("StorageLocation", storageLocation);
setCoreParameter("StorageLocation", storageLocation);
}
std::string CreateUploadVideoRequest::getCoverURL()const
@@ -143,7 +143,7 @@ std::string CreateUploadVideoRequest::getCoverURL()const
void CreateUploadVideoRequest::setCoverURL(const std::string& coverURL)
{
coverURL_ = coverURL;
setParameter("CoverURL", coverURL);
setCoreParameter("CoverURL", coverURL);
}
std::string CreateUploadVideoRequest::getUserData()const
@@ -154,7 +154,7 @@ std::string CreateUploadVideoRequest::getUserData()const
void CreateUploadVideoRequest::setUserData(const std::string& userData)
{
userData_ = userData;
setParameter("UserData", userData);
setCoreParameter("UserData", userData);
}
std::string CreateUploadVideoRequest::getFileName()const
@@ -165,7 +165,7 @@ std::string CreateUploadVideoRequest::getFileName()const
void CreateUploadVideoRequest::setFileName(const std::string& fileName)
{
fileName_ = fileName;
setParameter("FileName", fileName);
setCoreParameter("FileName", fileName);
}
std::string CreateUploadVideoRequest::getTemplateGroupId()const
@@ -176,7 +176,7 @@ std::string CreateUploadVideoRequest::getTemplateGroupId()const
void CreateUploadVideoRequest::setTemplateGroupId(const std::string& templateGroupId)
{
templateGroupId_ = templateGroupId;
setParameter("TemplateGroupId", templateGroupId);
setCoreParameter("TemplateGroupId", templateGroupId);
}
long CreateUploadVideoRequest::getCateId()const
@@ -187,6 +187,39 @@ long CreateUploadVideoRequest::getCateId()const
void CreateUploadVideoRequest::setCateId(long cateId)
{
cateId_ = cateId;
setParameter("CateId", std::to_string(cateId));
setCoreParameter("CateId", std::to_string(cateId));
}
std::string CreateUploadVideoRequest::getAppId()const
{
return appId_;
}
void CreateUploadVideoRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setCoreParameter("AppId", appId);
}
std::string CreateUploadVideoRequest::getWorkflowId()const
{
return workflowId_;
}
void CreateUploadVideoRequest::setWorkflowId(const std::string& workflowId)
{
workflowId_ = workflowId;
setCoreParameter("WorkflowId", workflowId);
}
std::string CreateUploadVideoRequest::getCustomMediaInfo()const
{
return customMediaInfo_;
}
void CreateUploadVideoRequest::setCustomMediaInfo(const std::string& customMediaInfo)
{
customMediaInfo_ = customMediaInfo;
setCoreParameter("CustomMediaInfo", customMediaInfo);
}

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/DeleteAITemplateRequest.h>
using AlibabaCloud::Vod::Model::DeleteAITemplateRequest;
DeleteAITemplateRequest::DeleteAITemplateRequest() :
RpcServiceRequest("vod", "2017-03-21", "DeleteAITemplate")
{}
DeleteAITemplateRequest::~DeleteAITemplateRequest()
{}
long DeleteAITemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteAITemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteAITemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteAITemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteAITemplateRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteAITemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteAITemplateRequest::getTemplateId()const
{
return templateId_;
}
void DeleteAITemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setCoreParameter("TemplateId", templateId);
}

View File

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

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/DeleteAppInfoRequest.h>
using AlibabaCloud::Vod::Model::DeleteAppInfoRequest;
DeleteAppInfoRequest::DeleteAppInfoRequest() :
RpcServiceRequest("vod", "2017-03-21", "DeleteAppInfo")
{}
DeleteAppInfoRequest::~DeleteAppInfoRequest()
{}
long DeleteAppInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteAppInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteAppInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteAppInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteAppInfoRequest::getAppId()const
{
return appId_;
}
void DeleteAppInfoRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setCoreParameter("AppId", appId);
}
long DeleteAppInfoRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
}
void DeleteAppInfoRequest::setResourceRealOwnerId(long resourceRealOwnerId)
{
resourceRealOwnerId_ = resourceRealOwnerId;
setCoreParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
long DeleteAppInfoRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteAppInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteAppInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteAppInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,82 @@
/*
* 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/DeleteAttachedMediaRequest.h>
using AlibabaCloud::Vod::Model::DeleteAttachedMediaRequest;
DeleteAttachedMediaRequest::DeleteAttachedMediaRequest() :
RpcServiceRequest("vod", "2017-03-21", "DeleteAttachedMedia")
{}
DeleteAttachedMediaRequest::~DeleteAttachedMediaRequest()
{}
long DeleteAttachedMediaRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteAttachedMediaRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteAttachedMediaRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteAttachedMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteAttachedMediaRequest::getMediaIds()const
{
return mediaIds_;
}
void DeleteAttachedMediaRequest::setMediaIds(const std::string& mediaIds)
{
mediaIds_ = mediaIds;
setCoreParameter("MediaIds", mediaIds);
}
long DeleteAttachedMediaRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteAttachedMediaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteAttachedMediaRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteAttachedMediaRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -33,7 +33,7 @@ std::string DeleteCategoryRequest::getResourceOwnerId()const
void DeleteCategoryRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
setCoreParameter("ResourceOwnerId", resourceOwnerId);
}
std::string DeleteCategoryRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string DeleteCategoryRequest::getResourceOwnerAccount()const
void DeleteCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteCategoryRequest::getCateId()const
@@ -55,7 +55,7 @@ long DeleteCategoryRequest::getCateId()const
void DeleteCategoryRequest::setCateId(long cateId)
{
cateId_ = cateId;
setParameter("CateId", std::to_string(cateId));
setCoreParameter("CateId", std::to_string(cateId));
}
std::string DeleteCategoryRequest::getOwnerId()const
@@ -66,6 +66,6 @@ std::string DeleteCategoryRequest::getOwnerId()const
void DeleteCategoryRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
setCoreParameter("OwnerId", ownerId);
}

View File

@@ -33,7 +33,7 @@ std::string DeleteEditingProjectRequest::getResourceOwnerId()const
void DeleteEditingProjectRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
setCoreParameter("ResourceOwnerId", resourceOwnerId);
}
std::string DeleteEditingProjectRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string DeleteEditingProjectRequest::getResourceOwnerAccount()const
void DeleteEditingProjectRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteEditingProjectRequest::getOwnerAccount()const
@@ -55,7 +55,7 @@ std::string DeleteEditingProjectRequest::getOwnerAccount()const
void DeleteEditingProjectRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string DeleteEditingProjectRequest::getProjectIds()const
@@ -66,7 +66,7 @@ std::string DeleteEditingProjectRequest::getProjectIds()const
void DeleteEditingProjectRequest::setProjectIds(const std::string& projectIds)
{
projectIds_ = projectIds;
setParameter("ProjectIds", projectIds);
setCoreParameter("ProjectIds", projectIds);
}
std::string DeleteEditingProjectRequest::getOwnerId()const
@@ -77,7 +77,7 @@ std::string DeleteEditingProjectRequest::getOwnerId()const
void DeleteEditingProjectRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
setCoreParameter("OwnerId", ownerId);
}
std::string DeleteEditingProjectRequest::getAccessKeyId()const
@@ -88,6 +88,6 @@ std::string DeleteEditingProjectRequest::getAccessKeyId()const
void DeleteEditingProjectRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ long DeleteImageRequest::getResourceOwnerId()const
void DeleteImageRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteImageRequest::getImageType()const
@@ -44,7 +44,7 @@ std::string DeleteImageRequest::getImageType()const
void DeleteImageRequest::setImageType(const std::string& imageType)
{
imageType_ = imageType;
setParameter("ImageType", imageType);
setCoreParameter("ImageType", imageType);
}
std::string DeleteImageRequest::getResourceOwnerAccount()const
@@ -55,7 +55,7 @@ std::string DeleteImageRequest::getResourceOwnerAccount()const
void DeleteImageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteImageRequest::getImageURLs()const
@@ -66,7 +66,7 @@ std::string DeleteImageRequest::getImageURLs()const
void DeleteImageRequest::setImageURLs(const std::string& imageURLs)
{
imageURLs_ = imageURLs;
setParameter("ImageURLs", imageURLs);
setCoreParameter("ImageURLs", imageURLs);
}
std::string DeleteImageRequest::getVideoId()const
@@ -77,7 +77,7 @@ std::string DeleteImageRequest::getVideoId()const
void DeleteImageRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
setCoreParameter("VideoId", videoId);
}
long DeleteImageRequest::getOwnerId()const
@@ -88,7 +88,7 @@ long DeleteImageRequest::getOwnerId()const
void DeleteImageRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteImageRequest::getDeleteImageType()const
@@ -99,7 +99,7 @@ std::string DeleteImageRequest::getDeleteImageType()const
void DeleteImageRequest::setDeleteImageType(const std::string& deleteImageType)
{
deleteImageType_ = deleteImageType;
setParameter("DeleteImageType", deleteImageType);
setCoreParameter("DeleteImageType", deleteImageType);
}
std::string DeleteImageRequest::getImageIds()const
@@ -110,7 +110,7 @@ std::string DeleteImageRequest::getImageIds()const
void DeleteImageRequest::setImageIds(const std::string& imageIds)
{
imageIds_ = imageIds;
setParameter("ImageIds", imageIds);
setCoreParameter("ImageIds", imageIds);
}
std::string DeleteImageRequest::getAccessKeyId()const
@@ -121,6 +121,6 @@ std::string DeleteImageRequest::getAccessKeyId()const
void DeleteImageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/DeleteMessageCallbackRequest.h>
using AlibabaCloud::Vod::Model::DeleteMessageCallbackRequest;
DeleteMessageCallbackRequest::DeleteMessageCallbackRequest() :
RpcServiceRequest("vod", "2017-03-21", "DeleteMessageCallback")
{}
DeleteMessageCallbackRequest::~DeleteMessageCallbackRequest()
{}
std::string DeleteMessageCallbackRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteMessageCallbackRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", resourceOwnerId);
}
std::string DeleteMessageCallbackRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMessageCallbackRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteMessageCallbackRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteMessageCallbackRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string DeleteMessageCallbackRequest::getAppId()const
{
return appId_;
}
void DeleteMessageCallbackRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setCoreParameter("AppId", appId);
}
long DeleteMessageCallbackRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
}
void DeleteMessageCallbackRequest::setResourceRealOwnerId(long resourceRealOwnerId)
{
resourceRealOwnerId_ = resourceRealOwnerId;
setCoreParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
std::string DeleteMessageCallbackRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMessageCallbackRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}
std::string DeleteMessageCallbackRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteMessageCallbackRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -33,7 +33,7 @@ long DeleteMezzaninesRequest::getResourceOwnerId()const
void DeleteMezzaninesRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteMezzaninesRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string DeleteMezzaninesRequest::getResourceOwnerAccount()const
void DeleteMezzaninesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
bool DeleteMezzaninesRequest::getForce()const
@@ -55,7 +55,7 @@ bool DeleteMezzaninesRequest::getForce()const
void DeleteMezzaninesRequest::setForce(bool force)
{
force_ = force;
setParameter("Force", std::to_string(force));
setCoreParameter("Force", force ? "true" : "false");
}
long DeleteMezzaninesRequest::getOwnerId()const
@@ -66,7 +66,7 @@ long DeleteMezzaninesRequest::getOwnerId()const
void DeleteMezzaninesRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteMezzaninesRequest::getVideoIds()const
@@ -77,6 +77,6 @@ std::string DeleteMezzaninesRequest::getVideoIds()const
void DeleteMezzaninesRequest::setVideoIds(const std::string& videoIds)
{
videoIds_ = videoIds;
setParameter("VideoIds", videoIds);
setCoreParameter("VideoIds", videoIds);
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/DeleteMultipartUploadRequest.h>
using AlibabaCloud::Vod::Model::DeleteMultipartUploadRequest;
DeleteMultipartUploadRequest::DeleteMultipartUploadRequest() :
RpcServiceRequest("vod", "2017-03-21", "DeleteMultipartUpload")
{}
DeleteMultipartUploadRequest::~DeleteMultipartUploadRequest()
{}
std::string DeleteMultipartUploadRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteMultipartUploadRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", resourceOwnerId);
}
std::string DeleteMultipartUploadRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMultipartUploadRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteMultipartUploadRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteMultipartUploadRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setCoreParameter("OwnerAccount", ownerAccount);
}
long DeleteMultipartUploadRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
}
void DeleteMultipartUploadRequest::setResourceRealOwnerId(long resourceRealOwnerId)
{
resourceRealOwnerId_ = resourceRealOwnerId;
setCoreParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
std::string DeleteMultipartUploadRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMultipartUploadRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}
std::string DeleteMultipartUploadRequest::getMediaId()const
{
return mediaId_;
}
void DeleteMultipartUploadRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setCoreParameter("MediaId", mediaId);
}
std::string DeleteMultipartUploadRequest::getMediaType()const
{
return mediaType_;
}
void DeleteMultipartUploadRequest::setMediaType(const std::string& mediaType)
{
mediaType_ = mediaType;
setCoreParameter("MediaType", mediaType);
}
std::string DeleteMultipartUploadRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteMultipartUploadRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -33,7 +33,7 @@ long DeleteStreamRequest::getResourceOwnerId()const
void DeleteStreamRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteStreamRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string DeleteStreamRequest::getResourceOwnerAccount()const
void DeleteStreamRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteStreamRequest::getJobIds()const
@@ -55,7 +55,7 @@ std::string DeleteStreamRequest::getJobIds()const
void DeleteStreamRequest::setJobIds(const std::string& jobIds)
{
jobIds_ = jobIds;
setParameter("JobIds", jobIds);
setCoreParameter("JobIds", jobIds);
}
std::string DeleteStreamRequest::getVideoId()const
@@ -66,7 +66,7 @@ std::string DeleteStreamRequest::getVideoId()const
void DeleteStreamRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
setCoreParameter("VideoId", videoId);
}
long DeleteStreamRequest::getOwnerId()const
@@ -77,6 +77,6 @@ long DeleteStreamRequest::getOwnerId()const
void DeleteStreamRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/DeleteTranscodeTemplateGroupRequest.h>
using AlibabaCloud::Vod::Model::DeleteTranscodeTemplateGroupRequest;
DeleteTranscodeTemplateGroupRequest::DeleteTranscodeTemplateGroupRequest() :
RpcServiceRequest("vod", "2017-03-21", "DeleteTranscodeTemplateGroup")
{}
DeleteTranscodeTemplateGroupRequest::~DeleteTranscodeTemplateGroupRequest()
{}
long DeleteTranscodeTemplateGroupRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteTranscodeTemplateGroupRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteTranscodeTemplateGroupRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteTranscodeTemplateGroupRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteTranscodeTemplateGroupRequest::getTranscodeTemplateIds()const
{
return transcodeTemplateIds_;
}
void DeleteTranscodeTemplateGroupRequest::setTranscodeTemplateIds(const std::string& transcodeTemplateIds)
{
transcodeTemplateIds_ = transcodeTemplateIds;
setCoreParameter("TranscodeTemplateIds", transcodeTemplateIds);
}
long DeleteTranscodeTemplateGroupRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteTranscodeTemplateGroupRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteTranscodeTemplateGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteTranscodeTemplateGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteTranscodeTemplateGroupRequest::getTranscodeTemplateGroupId()const
{
return transcodeTemplateGroupId_;
}
void DeleteTranscodeTemplateGroupRequest::setTranscodeTemplateGroupId(const std::string& transcodeTemplateGroupId)
{
transcodeTemplateGroupId_ = transcodeTemplateGroupId;
setCoreParameter("TranscodeTemplateGroupId", transcodeTemplateGroupId);
}
std::string DeleteTranscodeTemplateGroupRequest::getForceDelGroup()const
{
return forceDelGroup_;
}
void DeleteTranscodeTemplateGroupRequest::setForceDelGroup(const std::string& forceDelGroup)
{
forceDelGroup_ = forceDelGroup;
setCoreParameter("ForceDelGroup", forceDelGroup);
}

View File

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

View File

@@ -33,7 +33,7 @@ long DeleteVideoRequest::getResourceOwnerId()const
void DeleteVideoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteVideoRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string DeleteVideoRequest::getResourceOwnerAccount()const
void DeleteVideoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteVideoRequest::getOwnerId()const
@@ -55,7 +55,7 @@ long DeleteVideoRequest::getOwnerId()const
void DeleteVideoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteVideoRequest::getVideoIds()const
@@ -66,6 +66,6 @@ std::string DeleteVideoRequest::getVideoIds()const
void DeleteVideoRequest::setVideoIds(const std::string& videoIds)
{
videoIds_ = videoIds;
setParameter("VideoIds", videoIds);
setCoreParameter("VideoIds", videoIds);
}

View File

@@ -40,6 +40,22 @@ void DeleteVideoResult::parse(const std::string &payload)
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allNonExistVideoIds = value["NonExistVideoIds"]["VideoId"];
for (const auto &item : allNonExistVideoIds)
nonExistVideoIds_.push_back(item.asString());
auto allForbiddenVideoIds = value["ForbiddenVideoIds"]["VideoId"];
for (const auto &item : allForbiddenVideoIds)
forbiddenVideoIds_.push_back(item.asString());
}
std::vector<std::string> DeleteVideoResult::getForbiddenVideoIds()const
{
return forbiddenVideoIds_;
}
std::vector<std::string> DeleteVideoResult::getNonExistVideoIds()const
{
return nonExistVideoIds_;
}

View File

@@ -33,7 +33,7 @@ long DeleteVodTemplateRequest::getResourceOwnerId()const
void DeleteVodTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteVodTemplateRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string DeleteVodTemplateRequest::getResourceOwnerAccount()const
void DeleteVodTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteVodTemplateRequest::getVodTemplateId()const
@@ -55,7 +55,7 @@ std::string DeleteVodTemplateRequest::getVodTemplateId()const
void DeleteVodTemplateRequest::setVodTemplateId(const std::string& vodTemplateId)
{
vodTemplateId_ = vodTemplateId;
setParameter("VodTemplateId", vodTemplateId);
setCoreParameter("VodTemplateId", vodTemplateId);
}
long DeleteVodTemplateRequest::getOwnerId()const
@@ -66,6 +66,6 @@ long DeleteVodTemplateRequest::getOwnerId()const
void DeleteVodTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -33,7 +33,7 @@ std::string DeleteWatermarkRequest::getWatermarkId()const
void DeleteWatermarkRequest::setWatermarkId(const std::string& watermarkId)
{
watermarkId_ = watermarkId;
setParameter("WatermarkId", watermarkId);
setCoreParameter("WatermarkId", watermarkId);
}
long DeleteWatermarkRequest::getResourceOwnerId()const
@@ -44,7 +44,7 @@ long DeleteWatermarkRequest::getResourceOwnerId()const
void DeleteWatermarkRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteWatermarkRequest::getResourceOwnerAccount()const
@@ -55,7 +55,7 @@ std::string DeleteWatermarkRequest::getResourceOwnerAccount()const
void DeleteWatermarkRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteWatermarkRequest::getOwnerId()const
@@ -66,7 +66,7 @@ long DeleteWatermarkRequest::getOwnerId()const
void DeleteWatermarkRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteWatermarkRequest::getAccessKeyId()const
@@ -77,6 +77,6 @@ std::string DeleteWatermarkRequest::getAccessKeyId()const
void DeleteWatermarkRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,71 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/DeleteWorkFlowRequest.h>
using AlibabaCloud::Vod::Model::DeleteWorkFlowRequest;
DeleteWorkFlowRequest::DeleteWorkFlowRequest() :
RpcServiceRequest("vod", "2017-03-21", "DeleteWorkFlow")
{}
DeleteWorkFlowRequest::~DeleteWorkFlowRequest()
{}
long DeleteWorkFlowRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteWorkFlowRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteWorkFlowRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteWorkFlowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteWorkFlowRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteWorkFlowRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteWorkFlowRequest::getWorkFlowId()const
{
return workFlowId_;
}
void DeleteWorkFlowRequest::setWorkFlowId(const std::string& workFlowId)
{
workFlowId_ = workFlowId;
setParameter("WorkFlowId", workFlowId);
}

View File

@@ -1,148 +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/DescribeCdnDomainLogsRequest.h>
using AlibabaCloud::Vod::Model::DescribeCdnDomainLogsRequest;
DescribeCdnDomainLogsRequest::DescribeCdnDomainLogsRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeCdnDomainLogs")
{}
DescribeCdnDomainLogsRequest::~DescribeCdnDomainLogsRequest()
{}
std::string DescribeCdnDomainLogsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeCdnDomainLogsRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string DescribeCdnDomainLogsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeCdnDomainLogsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DescribeCdnDomainLogsRequest::getPageNo()const
{
return pageNo_;
}
void DescribeCdnDomainLogsRequest::setPageNo(long pageNo)
{
pageNo_ = pageNo;
setParameter("PageNo", std::to_string(pageNo));
}
std::string DescribeCdnDomainLogsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeCdnDomainLogsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DescribeCdnDomainLogsRequest::getDomainName()const
{
return domainName_;
}
void DescribeCdnDomainLogsRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
long DescribeCdnDomainLogsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeCdnDomainLogsRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeCdnDomainLogsRequest::getEndTime()const
{
return endTime_;
}
void DescribeCdnDomainLogsRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeCdnDomainLogsRequest::getStartTime()const
{
return startTime_;
}
void DescribeCdnDomainLogsRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeCdnDomainLogsRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeCdnDomainLogsRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string DescribeCdnDomainLogsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeCdnDomainLogsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeCdnDomainLogsRequest::getLogDay()const
{
return logDay_;
}
void DescribeCdnDomainLogsRequest::setLogDay(const std::string& logDay)
{
logDay_ = logDay;
setParameter("LogDay", logDay);
}

View File

@@ -1,90 +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/DescribeCdnDomainLogsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeCdnDomainLogsResult::DescribeCdnDomainLogsResult() :
ServiceResult()
{}
DescribeCdnDomainLogsResult::DescribeCdnDomainLogsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeCdnDomainLogsResult::~DescribeCdnDomainLogsResult()
{}
void DescribeCdnDomainLogsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto domainLogModelNode = value["DomainLogModel"];
if(!domainLogModelNode["DomainName"].isNull())
domainLogModel_.domainName = domainLogModelNode["DomainName"].asString();
auto allDomainLogDetails = value["DomainLogDetails"]["DomainLogDetail"];
for (auto value : allDomainLogDetails)
{
DomainLogModel::DomainLogDetail domainLogDetailObject;
if(!value["LogPath"].isNull())
domainLogDetailObject.logPath = value["LogPath"].asString();
if(!value["StartTime"].isNull())
domainLogDetailObject.startTime = value["StartTime"].asString();
if(!value["EndTime"].isNull())
domainLogDetailObject.endTime = value["EndTime"].asString();
if(!value["LogSize"].isNull())
domainLogDetailObject.logSize = std::stol(value["LogSize"].asString());
if(!value["LogName"].isNull())
domainLogDetailObject.logName = value["LogName"].asString();
domainLogModel_.domainLogDetails.push_back(domainLogDetailObject);
}
if(!value["PageNo"].isNull())
pageNo_ = std::stol(value["PageNo"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["Total"].isNull())
total_ = std::stol(value["Total"].asString());
}
long DescribeCdnDomainLogsResult::getPageSize()const
{
return pageSize_;
}
DescribeCdnDomainLogsResult::DomainLogModel DescribeCdnDomainLogsResult::getDomainLogModel()const
{
return domainLogModel_;
}
long DescribeCdnDomainLogsResult::getTotal()const
{
return total_;
}
long DescribeCdnDomainLogsResult::getPageNo()const
{
return pageNo_;
}

View File

@@ -1,159 +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/DescribeDomainBpsDataRequest.h>
using AlibabaCloud::Vod::Model::DescribeDomainBpsDataRequest;
DescribeDomainBpsDataRequest::DescribeDomainBpsDataRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeDomainBpsData")
{}
DescribeDomainBpsDataRequest::~DescribeDomainBpsDataRequest()
{}
std::string DescribeDomainBpsDataRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeDomainBpsDataRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string DescribeDomainBpsDataRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeDomainBpsDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeDomainBpsDataRequest::getTimeMerge()const
{
return timeMerge_;
}
void DescribeDomainBpsDataRequest::setTimeMerge(const std::string& timeMerge)
{
timeMerge_ = timeMerge;
setParameter("TimeMerge", timeMerge);
}
std::string DescribeDomainBpsDataRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeDomainBpsDataRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DescribeDomainBpsDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainBpsDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainBpsDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainBpsDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainBpsDataRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeDomainBpsDataRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setParameter("LocationNameEn", locationNameEn);
}
std::string DescribeDomainBpsDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainBpsDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainBpsDataRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeDomainBpsDataRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setParameter("IspNameEn", ispNameEn);
}
std::string DescribeDomainBpsDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainBpsDataRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string DescribeDomainBpsDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainBpsDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDomainBpsDataRequest::getInterval()const
{
return interval_;
}
void DescribeDomainBpsDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}

View File

@@ -1,125 +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/DescribeDomainBpsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeDomainBpsDataResult::DescribeDomainBpsDataResult() :
ServiceResult()
{}
DescribeDomainBpsDataResult::DescribeDomainBpsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainBpsDataResult::~DescribeDomainBpsDataResult()
{}
void DescribeDomainBpsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBpsDataPerInterval = value["BpsDataPerInterval"]["DataModule"];
for (auto value : allBpsDataPerInterval)
{
DataModule bpsDataPerIntervalObject;
if(!value["TimeStamp"].isNull())
bpsDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
if(!value["Value"].isNull())
bpsDataPerIntervalObject.value = value["Value"].asString();
if(!value["DomesticValue"].isNull())
bpsDataPerIntervalObject.domesticValue = value["DomesticValue"].asString();
if(!value["OverseasValue"].isNull())
bpsDataPerIntervalObject.overseasValue = value["OverseasValue"].asString();
if(!value["L2Value"].isNull())
bpsDataPerIntervalObject.l2Value = value["L2Value"].asString();
if(!value["DomesticL2Value"].isNull())
bpsDataPerIntervalObject.domesticL2Value = value["DomesticL2Value"].asString();
if(!value["OverseasL2Value"].isNull())
bpsDataPerIntervalObject.overseasL2Value = value["OverseasL2Value"].asString();
if(!value["DynamicValue"].isNull())
bpsDataPerIntervalObject.dynamicValue = std::stol(value["DynamicValue"].asString());
if(!value["DynamicDomesticValue"].isNull())
bpsDataPerIntervalObject.dynamicDomesticValue = value["DynamicDomesticValue"].asString();
if(!value["DynamicOverseasValue"].isNull())
bpsDataPerIntervalObject.dynamicOverseasValue = value["DynamicOverseasValue"].asString();
if(!value["StaticValue"].isNull())
bpsDataPerIntervalObject.staticValue = value["StaticValue"].asString();
if(!value["StaticDomesticValue"].isNull())
bpsDataPerIntervalObject.staticDomesticValue = value["StaticDomesticValue"].asString();
if(!value["StaticOverseasValue"].isNull())
bpsDataPerIntervalObject.staticOverseasValue = value["StaticOverseasValue"].asString();
bpsDataPerInterval_.push_back(bpsDataPerIntervalObject);
}
auto allSupplyBpsDatas = value["SupplyBpsDatas"]["DataModule"];
for (auto value : allSupplyBpsDatas)
{
DataModule1 supplyBpsDatasObject;
if(!value["TimeStamp"].isNull())
supplyBpsDatasObject.timeStamp = value["TimeStamp"].asString();
if(!value["Value"].isNull())
supplyBpsDatasObject.value = value["Value"].asString();
supplyBpsDatas_.push_back(supplyBpsDatasObject);
}
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainBpsDataResult::getEndTime()const
{
return endTime_;
}
std::string DescribeDomainBpsDataResult::getDomainName()const
{
return domainName_;
}
std::vector<DescribeDomainBpsDataResult::DataModule1> DescribeDomainBpsDataResult::getSupplyBpsDatas()const
{
return supplyBpsDatas_;
}
std::string DescribeDomainBpsDataResult::getDataInterval()const
{
return dataInterval_;
}
std::string DescribeDomainBpsDataResult::getStartTime()const
{
return startTime_;
}
std::vector<DescribeDomainBpsDataResult::DataModule> DescribeDomainBpsDataResult::getBpsDataPerInterval()const
{
return bpsDataPerInterval_;
}

View File

@@ -1,159 +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/DescribeDomainFlowDataRequest.h>
using AlibabaCloud::Vod::Model::DescribeDomainFlowDataRequest;
DescribeDomainFlowDataRequest::DescribeDomainFlowDataRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeDomainFlowData")
{}
DescribeDomainFlowDataRequest::~DescribeDomainFlowDataRequest()
{}
std::string DescribeDomainFlowDataRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeDomainFlowDataRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string DescribeDomainFlowDataRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeDomainFlowDataRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeDomainFlowDataRequest::getTimeMerge()const
{
return timeMerge_;
}
void DescribeDomainFlowDataRequest::setTimeMerge(const std::string& timeMerge)
{
timeMerge_ = timeMerge;
setParameter("TimeMerge", timeMerge);
}
std::string DescribeDomainFlowDataRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeDomainFlowDataRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DescribeDomainFlowDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeDomainFlowDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeDomainFlowDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeDomainFlowDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeDomainFlowDataRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeDomainFlowDataRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setParameter("LocationNameEn", locationNameEn);
}
std::string DescribeDomainFlowDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeDomainFlowDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeDomainFlowDataRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeDomainFlowDataRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setParameter("IspNameEn", ispNameEn);
}
std::string DescribeDomainFlowDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeDomainFlowDataRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string DescribeDomainFlowDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeDomainFlowDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DescribeDomainFlowDataRequest::getInterval()const
{
return interval_;
}
void DescribeDomainFlowDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}

View File

@@ -1,104 +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/DescribeDomainFlowDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeDomainFlowDataResult::DescribeDomainFlowDataResult() :
ServiceResult()
{}
DescribeDomainFlowDataResult::DescribeDomainFlowDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeDomainFlowDataResult::~DescribeDomainFlowDataResult()
{}
void DescribeDomainFlowDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFlowDataPerInterval = value["FlowDataPerInterval"]["DataModule"];
for (auto value : allFlowDataPerInterval)
{
DataModule flowDataPerIntervalObject;
if(!value["TimeStamp"].isNull())
flowDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
if(!value["Value"].isNull())
flowDataPerIntervalObject.value = value["Value"].asString();
if(!value["DomesticValue"].isNull())
flowDataPerIntervalObject.domesticValue = value["DomesticValue"].asString();
if(!value["OverseasValue"].isNull())
flowDataPerIntervalObject.overseasValue = value["OverseasValue"].asString();
if(!value["DynamicValue"].isNull())
flowDataPerIntervalObject.dynamicValue = value["DynamicValue"].asString();
if(!value["DynamicDomesticValue"].isNull())
flowDataPerIntervalObject.dynamicDomesticValue = value["DynamicDomesticValue"].asString();
if(!value["DynamicOverseasValue"].isNull())
flowDataPerIntervalObject.dynamicOverseasValue = value["DynamicOverseasValue"].asString();
if(!value["StaticValue"].isNull())
flowDataPerIntervalObject.staticValue = value["StaticValue"].asString();
if(!value["StaticDomesticValue"].isNull())
flowDataPerIntervalObject.staticDomesticValue = value["StaticDomesticValue"].asString();
if(!value["StaticOverseasValue"].isNull())
flowDataPerIntervalObject.staticOverseasValue = value["StaticOverseasValue"].asString();
flowDataPerInterval_.push_back(flowDataPerIntervalObject);
}
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
}
std::string DescribeDomainFlowDataResult::getEndTime()const
{
return endTime_;
}
std::string DescribeDomainFlowDataResult::getDomainName()const
{
return domainName_;
}
std::vector<DescribeDomainFlowDataResult::DataModule> DescribeDomainFlowDataResult::getFlowDataPerInterval()const
{
return flowDataPerInterval_;
}
std::string DescribeDomainFlowDataResult::getDataInterval()const
{
return dataInterval_;
}
std::string DescribeDomainFlowDataResult::getStartTime()const
{
return startTime_;
}

View File

@@ -25,26 +25,114 @@ DescribePlayTopVideosRequest::DescribePlayTopVideosRequest() :
DescribePlayTopVideosRequest::~DescribePlayTopVideosRequest()
{}
std::string DescribePlayTopVideosRequest::getBizDate()const
long DescribePlayTopVideosRequest::getResourceOwnerId()const
{
return bizDate_;
return resourceOwnerId_;
}
void DescribePlayTopVideosRequest::setBizDate(const std::string& bizDate)
void DescribePlayTopVideosRequest::setResourceOwnerId(long resourceOwnerId)
{
bizDate_ = bizDate;
setParameter("BizDate", bizDate);
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long DescribePlayTopVideosRequest::getPageNo()const
long DescribePlayTopVideosRequest::getCallerParentId()const
{
return pageNo_;
return callerParentId_;
}
void DescribePlayTopVideosRequest::setPageNo(long pageNo)
void DescribePlayTopVideosRequest::setCallerParentId(long callerParentId)
{
pageNo_ = pageNo;
setParameter("PageNo", std::to_string(pageNo));
callerParentId_ = callerParentId;
setCoreParameter("CallerParentId", std::to_string(callerParentId));
}
bool DescribePlayTopVideosRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribePlayTopVideosRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
}
std::string DescribePlayTopVideosRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribePlayTopVideosRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribePlayTopVideosRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribePlayTopVideosRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribePlayTopVideosRequest::getCallerType()const
{
return callerType_;
}
void DescribePlayTopVideosRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setCoreParameter("CallerType", callerType);
}
std::string DescribePlayTopVideosRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribePlayTopVideosRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribePlayTopVideosRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribePlayTopVideosRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribePlayTopVideosRequest::getRegionId()const
{
return regionId_;
}
void DescribePlayTopVideosRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribePlayTopVideosRequest::getRequestContent()const
{
return requestContent_;
}
void DescribePlayTopVideosRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setCoreParameter("RequestContent", requestContent);
}
long DescribePlayTopVideosRequest::getPageSize()const
@@ -55,7 +143,73 @@ long DescribePlayTopVideosRequest::getPageSize()const
void DescribePlayTopVideosRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribePlayTopVideosRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribePlayTopVideosRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setCoreParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribePlayTopVideosRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribePlayTopVideosRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setCoreParameter("CallerUidEmail", callerUidEmail);
}
long DescribePlayTopVideosRequest::getCallerUid()const
{
return callerUid_;
}
void DescribePlayTopVideosRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setCoreParameter("CallerUid", std::to_string(callerUid));
}
std::string DescribePlayTopVideosRequest::getApp_ip()const
{
return app_ip_;
}
void DescribePlayTopVideosRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setCoreParameter("App_ip", app_ip);
}
std::string DescribePlayTopVideosRequest::getPopProduct()const
{
return popProduct_;
}
void DescribePlayTopVideosRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setCoreParameter("PopProduct", popProduct);
}
std::string DescribePlayTopVideosRequest::getCallerBid()const
{
return callerBid_;
}
void DescribePlayTopVideosRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setCoreParameter("CallerBid", callerBid);
}
long DescribePlayTopVideosRequest::getOwnerId()const
@@ -66,6 +220,94 @@ long DescribePlayTopVideosRequest::getOwnerId()const
void DescribePlayTopVideosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribePlayTopVideosRequest::getVersion()const
{
return version_;
}
void DescribePlayTopVideosRequest::setVersion(const std::string& version)
{
version_ = version;
setCoreParameter("Version", version);
}
bool DescribePlayTopVideosRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribePlayTopVideosRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
}
bool DescribePlayTopVideosRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribePlayTopVideosRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
}
bool DescribePlayTopVideosRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribePlayTopVideosRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setCoreParameter("Security_transport", security_transport ? "true" : "false");
}
std::string DescribePlayTopVideosRequest::getBizDate()const
{
return bizDate_;
}
void DescribePlayTopVideosRequest::setBizDate(const std::string& bizDate)
{
bizDate_ = bizDate;
setCoreParameter("BizDate", bizDate);
}
std::string DescribePlayTopVideosRequest::getVideoType()const
{
return videoType_;
}
void DescribePlayTopVideosRequest::setVideoType(const std::string& videoType)
{
videoType_ = videoType;
setCoreParameter("VideoType", videoType);
}
std::string DescribePlayTopVideosRequest::getRequestId()const
{
return requestId_;
}
void DescribePlayTopVideosRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}
long DescribePlayTopVideosRequest::getPageNo()const
{
return pageNo_;
}
void DescribePlayTopVideosRequest::setPageNo(long pageNo)
{
pageNo_ = pageNo;
setCoreParameter("PageNo", std::to_string(pageNo));
}

View File

@@ -25,15 +25,37 @@ DescribePlayUserAvgRequest::DescribePlayUserAvgRequest() :
DescribePlayUserAvgRequest::~DescribePlayUserAvgRequest()
{}
std::string DescribePlayUserAvgRequest::getEndTime()const
long DescribePlayUserAvgRequest::getResourceOwnerId()const
{
return endTime_;
return resourceOwnerId_;
}
void DescribePlayUserAvgRequest::setEndTime(const std::string& endTime)
void DescribePlayUserAvgRequest::setResourceOwnerId(long resourceOwnerId)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long DescribePlayUserAvgRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribePlayUserAvgRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setCoreParameter("CallerParentId", std::to_string(callerParentId));
}
bool DescribePlayUserAvgRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribePlayUserAvgRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
}
std::string DescribePlayUserAvgRequest::getStartTime()const
@@ -44,7 +66,161 @@ std::string DescribePlayUserAvgRequest::getStartTime()const
void DescribePlayUserAvgRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
setCoreParameter("StartTime", startTime);
}
std::string DescribePlayUserAvgRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribePlayUserAvgRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribePlayUserAvgRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribePlayUserAvgRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribePlayUserAvgRequest::getCallerType()const
{
return callerType_;
}
void DescribePlayUserAvgRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setCoreParameter("CallerType", callerType);
}
std::string DescribePlayUserAvgRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribePlayUserAvgRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribePlayUserAvgRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribePlayUserAvgRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribePlayUserAvgRequest::getRegionId()const
{
return regionId_;
}
void DescribePlayUserAvgRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribePlayUserAvgRequest::getRequestContent()const
{
return requestContent_;
}
void DescribePlayUserAvgRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setCoreParameter("RequestContent", requestContent);
}
std::string DescribePlayUserAvgRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribePlayUserAvgRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setCoreParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribePlayUserAvgRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribePlayUserAvgRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setCoreParameter("CallerUidEmail", callerUidEmail);
}
long DescribePlayUserAvgRequest::getCallerUid()const
{
return callerUid_;
}
void DescribePlayUserAvgRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setCoreParameter("CallerUid", std::to_string(callerUid));
}
std::string DescribePlayUserAvgRequest::getApp_ip()const
{
return app_ip_;
}
void DescribePlayUserAvgRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setCoreParameter("App_ip", app_ip);
}
std::string DescribePlayUserAvgRequest::getPopProduct()const
{
return popProduct_;
}
void DescribePlayUserAvgRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setCoreParameter("PopProduct", popProduct);
}
std::string DescribePlayUserAvgRequest::getEndTime()const
{
return endTime_;
}
void DescribePlayUserAvgRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribePlayUserAvgRequest::getCallerBid()const
{
return callerBid_;
}
void DescribePlayUserAvgRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setCoreParameter("CallerBid", callerBid);
}
long DescribePlayUserAvgRequest::getOwnerId()const
@@ -55,6 +231,83 @@ long DescribePlayUserAvgRequest::getOwnerId()const
void DescribePlayUserAvgRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribePlayUserAvgRequest::getVersion()const
{
return version_;
}
void DescribePlayUserAvgRequest::setVersion(const std::string& version)
{
version_ = version;
setCoreParameter("Version", version);
}
bool DescribePlayUserAvgRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribePlayUserAvgRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
}
bool DescribePlayUserAvgRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribePlayUserAvgRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
}
bool DescribePlayUserAvgRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribePlayUserAvgRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setCoreParameter("Security_transport", security_transport ? "true" : "false");
}
std::string DescribePlayUserAvgRequest::getVideoType()const
{
return videoType_;
}
void DescribePlayUserAvgRequest::setVideoType(const std::string& videoType)
{
videoType_ = videoType;
setCoreParameter("VideoType", videoType);
}
std::string DescribePlayUserAvgRequest::getRequestId()const
{
return requestId_;
}
void DescribePlayUserAvgRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}
std::string DescribePlayUserAvgRequest::getInterval()const
{
return interval_;
}
void DescribePlayUserAvgRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setCoreParameter("Interval", interval);
}

View File

@@ -25,15 +25,37 @@ DescribePlayUserTotalRequest::DescribePlayUserTotalRequest() :
DescribePlayUserTotalRequest::~DescribePlayUserTotalRequest()
{}
std::string DescribePlayUserTotalRequest::getEndTime()const
long DescribePlayUserTotalRequest::getResourceOwnerId()const
{
return endTime_;
return resourceOwnerId_;
}
void DescribePlayUserTotalRequest::setEndTime(const std::string& endTime)
void DescribePlayUserTotalRequest::setResourceOwnerId(long resourceOwnerId)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long DescribePlayUserTotalRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribePlayUserTotalRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setCoreParameter("CallerParentId", std::to_string(callerParentId));
}
bool DescribePlayUserTotalRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribePlayUserTotalRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
}
std::string DescribePlayUserTotalRequest::getStartTime()const
@@ -44,7 +66,161 @@ std::string DescribePlayUserTotalRequest::getStartTime()const
void DescribePlayUserTotalRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
setCoreParameter("StartTime", startTime);
}
std::string DescribePlayUserTotalRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribePlayUserTotalRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribePlayUserTotalRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribePlayUserTotalRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribePlayUserTotalRequest::getCallerType()const
{
return callerType_;
}
void DescribePlayUserTotalRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setCoreParameter("CallerType", callerType);
}
std::string DescribePlayUserTotalRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribePlayUserTotalRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribePlayUserTotalRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribePlayUserTotalRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribePlayUserTotalRequest::getRegionId()const
{
return regionId_;
}
void DescribePlayUserTotalRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribePlayUserTotalRequest::getRequestContent()const
{
return requestContent_;
}
void DescribePlayUserTotalRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setCoreParameter("RequestContent", requestContent);
}
std::string DescribePlayUserTotalRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribePlayUserTotalRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setCoreParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribePlayUserTotalRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribePlayUserTotalRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setCoreParameter("CallerUidEmail", callerUidEmail);
}
long DescribePlayUserTotalRequest::getCallerUid()const
{
return callerUid_;
}
void DescribePlayUserTotalRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setCoreParameter("CallerUid", std::to_string(callerUid));
}
std::string DescribePlayUserTotalRequest::getApp_ip()const
{
return app_ip_;
}
void DescribePlayUserTotalRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setCoreParameter("App_ip", app_ip);
}
std::string DescribePlayUserTotalRequest::getPopProduct()const
{
return popProduct_;
}
void DescribePlayUserTotalRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setCoreParameter("PopProduct", popProduct);
}
std::string DescribePlayUserTotalRequest::getEndTime()const
{
return endTime_;
}
void DescribePlayUserTotalRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribePlayUserTotalRequest::getCallerBid()const
{
return callerBid_;
}
void DescribePlayUserTotalRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setCoreParameter("CallerBid", callerBid);
}
long DescribePlayUserTotalRequest::getOwnerId()const
@@ -55,6 +231,83 @@ long DescribePlayUserTotalRequest::getOwnerId()const
void DescribePlayUserTotalRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribePlayUserTotalRequest::getVersion()const
{
return version_;
}
void DescribePlayUserTotalRequest::setVersion(const std::string& version)
{
version_ = version;
setCoreParameter("Version", version);
}
bool DescribePlayUserTotalRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribePlayUserTotalRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
}
bool DescribePlayUserTotalRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribePlayUserTotalRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
}
bool DescribePlayUserTotalRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribePlayUserTotalRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setCoreParameter("Security_transport", security_transport ? "true" : "false");
}
std::string DescribePlayUserTotalRequest::getVideoType()const
{
return videoType_;
}
void DescribePlayUserTotalRequest::setVideoType(const std::string& videoType)
{
videoType_ = videoType;
setCoreParameter("VideoType", videoType);
}
std::string DescribePlayUserTotalRequest::getRequestId()const
{
return requestId_;
}
void DescribePlayUserTotalRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}
std::string DescribePlayUserTotalRequest::getInterval()const
{
return interval_;
}
void DescribePlayUserTotalRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setCoreParameter("Interval", interval);
}

View File

@@ -25,26 +25,37 @@ DescribePlayVideoStatisRequest::DescribePlayVideoStatisRequest() :
DescribePlayVideoStatisRequest::~DescribePlayVideoStatisRequest()
{}
std::string DescribePlayVideoStatisRequest::getEndTime()const
long DescribePlayVideoStatisRequest::getResourceOwnerId()const
{
return endTime_;
return resourceOwnerId_;
}
void DescribePlayVideoStatisRequest::setEndTime(const std::string& endTime)
void DescribePlayVideoStatisRequest::setResourceOwnerId(long resourceOwnerId)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DescribePlayVideoStatisRequest::getVideoId()const
long DescribePlayVideoStatisRequest::getCallerParentId()const
{
return videoId_;
return callerParentId_;
}
void DescribePlayVideoStatisRequest::setVideoId(const std::string& videoId)
void DescribePlayVideoStatisRequest::setCallerParentId(long callerParentId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
callerParentId_ = callerParentId;
setCoreParameter("CallerParentId", std::to_string(callerParentId));
}
bool DescribePlayVideoStatisRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribePlayVideoStatisRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
}
std::string DescribePlayVideoStatisRequest::getStartTime()const
@@ -55,7 +66,172 @@ std::string DescribePlayVideoStatisRequest::getStartTime()const
void DescribePlayVideoStatisRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
setCoreParameter("StartTime", startTime);
}
std::string DescribePlayVideoStatisRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribePlayVideoStatisRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribePlayVideoStatisRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribePlayVideoStatisRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribePlayVideoStatisRequest::getCallerType()const
{
return callerType_;
}
void DescribePlayVideoStatisRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setCoreParameter("CallerType", callerType);
}
std::string DescribePlayVideoStatisRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribePlayVideoStatisRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribePlayVideoStatisRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribePlayVideoStatisRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribePlayVideoStatisRequest::getRegionId()const
{
return regionId_;
}
void DescribePlayVideoStatisRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribePlayVideoStatisRequest::getRequestContent()const
{
return requestContent_;
}
void DescribePlayVideoStatisRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setCoreParameter("RequestContent", requestContent);
}
std::string DescribePlayVideoStatisRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribePlayVideoStatisRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setCoreParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribePlayVideoStatisRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribePlayVideoStatisRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setCoreParameter("CallerUidEmail", callerUidEmail);
}
long DescribePlayVideoStatisRequest::getCallerUid()const
{
return callerUid_;
}
void DescribePlayVideoStatisRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setCoreParameter("CallerUid", std::to_string(callerUid));
}
std::string DescribePlayVideoStatisRequest::getApp_ip()const
{
return app_ip_;
}
void DescribePlayVideoStatisRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setCoreParameter("App_ip", app_ip);
}
std::string DescribePlayVideoStatisRequest::getPopProduct()const
{
return popProduct_;
}
void DescribePlayVideoStatisRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setCoreParameter("PopProduct", popProduct);
}
std::string DescribePlayVideoStatisRequest::getEndTime()const
{
return endTime_;
}
void DescribePlayVideoStatisRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribePlayVideoStatisRequest::getVideoId()const
{
return videoId_;
}
void DescribePlayVideoStatisRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setCoreParameter("VideoId", videoId);
}
std::string DescribePlayVideoStatisRequest::getCallerBid()const
{
return callerBid_;
}
void DescribePlayVideoStatisRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setCoreParameter("CallerBid", callerBid);
}
long DescribePlayVideoStatisRequest::getOwnerId()const
@@ -66,6 +242,83 @@ long DescribePlayVideoStatisRequest::getOwnerId()const
void DescribePlayVideoStatisRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribePlayVideoStatisRequest::getVersion()const
{
return version_;
}
void DescribePlayVideoStatisRequest::setVersion(const std::string& version)
{
version_ = version;
setCoreParameter("Version", version);
}
bool DescribePlayVideoStatisRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribePlayVideoStatisRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
}
bool DescribePlayVideoStatisRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribePlayVideoStatisRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
}
bool DescribePlayVideoStatisRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribePlayVideoStatisRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setCoreParameter("Security_transport", security_transport ? "true" : "false");
}
std::string DescribePlayVideoStatisRequest::getVideoType()const
{
return videoType_;
}
void DescribePlayVideoStatisRequest::setVideoType(const std::string& videoType)
{
videoType_ = videoType;
setCoreParameter("VideoType", videoType);
}
std::string DescribePlayVideoStatisRequest::getRequestId()const
{
return requestId_;
}
void DescribePlayVideoStatisRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}
std::string DescribePlayVideoStatisRequest::getInterval()const
{
return interval_;
}
void DescribePlayVideoStatisRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setCoreParameter("Interval", interval);
}

View File

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

View File

@@ -1,59 +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/DescribeRefreshQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeRefreshQuotaResult::DescribeRefreshQuotaResult() :
ServiceResult()
{}
DescribeRefreshQuotaResult::DescribeRefreshQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRefreshQuotaResult::~DescribeRefreshQuotaResult()
{}
void DescribeRefreshQuotaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto refreshCacheQuotaNode = value["RefreshCacheQuota"];
if(!refreshCacheQuotaNode["UrlQuota"].isNull())
refreshCacheQuota_.urlQuota = refreshCacheQuotaNode["UrlQuota"].asString();
if(!refreshCacheQuotaNode["DirQuota"].isNull())
refreshCacheQuota_.dirQuota = refreshCacheQuotaNode["DirQuota"].asString();
if(!refreshCacheQuotaNode["UrlRemain"].isNull())
refreshCacheQuota_.urlRemain = refreshCacheQuotaNode["UrlRemain"].asString();
if(!refreshCacheQuotaNode["DirRemain"].isNull())
refreshCacheQuota_.dirRemain = refreshCacheQuotaNode["DirRemain"].asString();
}
DescribeRefreshQuotaResult::RefreshCacheQuota DescribeRefreshQuotaResult::getRefreshCacheQuota()const
{
return refreshCacheQuota_;
}

View File

@@ -1,181 +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/DescribeRefreshTasksRequest.h>
using AlibabaCloud::Vod::Model::DescribeRefreshTasksRequest;
DescribeRefreshTasksRequest::DescribeRefreshTasksRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeRefreshTasks")
{}
DescribeRefreshTasksRequest::~DescribeRefreshTasksRequest()
{}
std::string DescribeRefreshTasksRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeRefreshTasksRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string DescribeRefreshTasksRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DescribeRefreshTasksRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DescribeRefreshTasksRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DescribeRefreshTasksRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DescribeRefreshTasksRequest::getObjectPath()const
{
return objectPath_;
}
void DescribeRefreshTasksRequest::setObjectPath(const std::string& objectPath)
{
objectPath_ = objectPath;
setParameter("ObjectPath", objectPath);
}
std::string DescribeRefreshTasksRequest::getDomainName()const
{
return domainName_;
}
void DescribeRefreshTasksRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setParameter("DomainName", domainName);
}
std::string DescribeRefreshTasksRequest::getEndTime()const
{
return endTime_;
}
void DescribeRefreshTasksRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string DescribeRefreshTasksRequest::getStartTime()const
{
return startTime_;
}
void DescribeRefreshTasksRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string DescribeRefreshTasksRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeRefreshTasksRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
int DescribeRefreshTasksRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeRefreshTasksRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeRefreshTasksRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeRefreshTasksRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
int DescribeRefreshTasksRequest::getPageSize()const
{
return pageSize_;
}
void DescribeRefreshTasksRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeRefreshTasksRequest::getObjectType()const
{
return objectType_;
}
void DescribeRefreshTasksRequest::setObjectType(const std::string& objectType)
{
objectType_ = objectType;
setParameter("ObjectType", objectType);
}
std::string DescribeRefreshTasksRequest::getTaskId()const
{
return taskId_;
}
void DescribeRefreshTasksRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setParameter("TaskId", taskId);
}
std::string DescribeRefreshTasksRequest::getStatus()const
{
return status_;
}
void DescribeRefreshTasksRequest::setStatus(const std::string& status)
{
status_ = status;
setParameter("Status", status);
}

View File

@@ -0,0 +1,346 @@
/*
* 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/DescribeVodDomainBpsDataRequest.h>
using AlibabaCloud::Vod::Model::DescribeVodDomainBpsDataRequest;
DescribeVodDomainBpsDataRequest::DescribeVodDomainBpsDataRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeVodDomainBpsData")
{}
DescribeVodDomainBpsDataRequest::~DescribeVodDomainBpsDataRequest()
{}
long DescribeVodDomainBpsDataRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeVodDomainBpsDataRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long DescribeVodDomainBpsDataRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribeVodDomainBpsDataRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setCoreParameter("CallerParentId", std::to_string(callerParentId));
}
bool DescribeVodDomainBpsDataRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribeVodDomainBpsDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
}
std::string DescribeVodDomainBpsDataRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeVodDomainBpsDataRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setCoreParameter("LocationNameEn", locationNameEn);
}
std::string DescribeVodDomainBpsDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeVodDomainBpsDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string DescribeVodDomainBpsDataRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeVodDomainBpsDataRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setCoreParameter("IspNameEn", ispNameEn);
}
std::string DescribeVodDomainBpsDataRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribeVodDomainBpsDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribeVodDomainBpsDataRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribeVodDomainBpsDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribeVodDomainBpsDataRequest::getCallerType()const
{
return callerType_;
}
void DescribeVodDomainBpsDataRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setCoreParameter("CallerType", callerType);
}
std::string DescribeVodDomainBpsDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeVodDomainBpsDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribeVodDomainBpsDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeVodDomainBpsDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeVodDomainBpsDataRequest::getRegionId()const
{
return regionId_;
}
void DescribeVodDomainBpsDataRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribeVodDomainBpsDataRequest::getRequestContent()const
{
return requestContent_;
}
void DescribeVodDomainBpsDataRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setCoreParameter("RequestContent", requestContent);
}
std::string DescribeVodDomainBpsDataRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribeVodDomainBpsDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setCoreParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribeVodDomainBpsDataRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribeVodDomainBpsDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setCoreParameter("CallerUidEmail", callerUidEmail);
}
long DescribeVodDomainBpsDataRequest::getCallerUid()const
{
return callerUid_;
}
void DescribeVodDomainBpsDataRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setCoreParameter("CallerUid", std::to_string(callerUid));
}
std::string DescribeVodDomainBpsDataRequest::getApp_ip()const
{
return app_ip_;
}
void DescribeVodDomainBpsDataRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setCoreParameter("App_ip", app_ip);
}
std::string DescribeVodDomainBpsDataRequest::getPopProduct()const
{
return popProduct_;
}
void DescribeVodDomainBpsDataRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setCoreParameter("PopProduct", popProduct);
}
std::string DescribeVodDomainBpsDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeVodDomainBpsDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setCoreParameter("DomainName", domainName);
}
std::string DescribeVodDomainBpsDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeVodDomainBpsDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribeVodDomainBpsDataRequest::getCallerBid()const
{
return callerBid_;
}
void DescribeVodDomainBpsDataRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setCoreParameter("CallerBid", callerBid);
}
long DescribeVodDomainBpsDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVodDomainBpsDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeVodDomainBpsDataRequest::getVersion()const
{
return version_;
}
void DescribeVodDomainBpsDataRequest::setVersion(const std::string& version)
{
version_ = version;
setCoreParameter("Version", version);
}
bool DescribeVodDomainBpsDataRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribeVodDomainBpsDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
}
bool DescribeVodDomainBpsDataRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribeVodDomainBpsDataRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
}
bool DescribeVodDomainBpsDataRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribeVodDomainBpsDataRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setCoreParameter("Security_transport", security_transport ? "true" : "false");
}
std::string DescribeVodDomainBpsDataRequest::getRequestId()const
{
return requestId_;
}
void DescribeVodDomainBpsDataRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}
std::string DescribeVodDomainBpsDataRequest::getInterval()const
{
return interval_;
}
void DescribeVodDomainBpsDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setCoreParameter("Interval", interval);
}
std::string DescribeVodDomainBpsDataRequest::getFields()const
{
return fields_;
}
void DescribeVodDomainBpsDataRequest::setFields(const std::string& fields)
{
fields_ = fields;
setCoreParameter("Fields", fields);
}

View File

@@ -0,0 +1,112 @@
/*
* 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/DescribeVodDomainBpsDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeVodDomainBpsDataResult::DescribeVodDomainBpsDataResult() :
ServiceResult()
{}
DescribeVodDomainBpsDataResult::DescribeVodDomainBpsDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVodDomainBpsDataResult::~DescribeVodDomainBpsDataResult()
{}
void DescribeVodDomainBpsDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allBpsDataPerInterval = value["BpsDataPerInterval"]["DataModule"];
for (auto value : allBpsDataPerInterval)
{
DataModule bpsDataPerIntervalObject;
if(!value["TimeStamp"].isNull())
bpsDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
if(!value["Value"].isNull())
bpsDataPerIntervalObject.value = value["Value"].asString();
if(!value["DomesticValue"].isNull())
bpsDataPerIntervalObject.domesticValue = value["DomesticValue"].asString();
if(!value["OverseasValue"].isNull())
bpsDataPerIntervalObject.overseasValue = value["OverseasValue"].asString();
if(!value["HttpsValue"].isNull())
bpsDataPerIntervalObject.httpsValue = value["HttpsValue"].asString();
if(!value["HttpsDomesticValue"].isNull())
bpsDataPerIntervalObject.httpsDomesticValue = value["HttpsDomesticValue"].asString();
if(!value["HttpsOverseasValue"].isNull())
bpsDataPerIntervalObject.httpsOverseasValue = value["HttpsOverseasValue"].asString();
bpsDataPerInterval_.push_back(bpsDataPerIntervalObject);
}
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["LocationNameEn"].isNull())
locationNameEn_ = value["LocationNameEn"].asString();
if(!value["IspNameEn"].isNull())
ispNameEn_ = value["IspNameEn"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
}
std::string DescribeVodDomainBpsDataResult::getIspNameEn()const
{
return ispNameEn_;
}
std::string DescribeVodDomainBpsDataResult::getEndTime()const
{
return endTime_;
}
std::string DescribeVodDomainBpsDataResult::getDomainName()const
{
return domainName_;
}
std::string DescribeVodDomainBpsDataResult::getLocationNameEn()const
{
return locationNameEn_;
}
std::string DescribeVodDomainBpsDataResult::getStartTime()const
{
return startTime_;
}
std::string DescribeVodDomainBpsDataResult::getDataInterval()const
{
return dataInterval_;
}
std::vector<DescribeVodDomainBpsDataResult::DataModule> DescribeVodDomainBpsDataResult::getBpsDataPerInterval()const
{
return bpsDataPerInterval_;
}

View File

@@ -0,0 +1,324 @@
/*
* 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/DescribeVodDomainLogRequest.h>
using AlibabaCloud::Vod::Model::DescribeVodDomainLogRequest;
DescribeVodDomainLogRequest::DescribeVodDomainLogRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeVodDomainLog")
{}
DescribeVodDomainLogRequest::~DescribeVodDomainLogRequest()
{}
long DescribeVodDomainLogRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeVodDomainLogRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long DescribeVodDomainLogRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribeVodDomainLogRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setCoreParameter("CallerParentId", std::to_string(callerParentId));
}
bool DescribeVodDomainLogRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribeVodDomainLogRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
}
std::string DescribeVodDomainLogRequest::getStartTime()const
{
return startTime_;
}
void DescribeVodDomainLogRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string DescribeVodDomainLogRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribeVodDomainLogRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribeVodDomainLogRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribeVodDomainLogRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribeVodDomainLogRequest::getCallerType()const
{
return callerType_;
}
void DescribeVodDomainLogRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setCoreParameter("CallerType", callerType);
}
long DescribeVodDomainLogRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeVodDomainLogRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeVodDomainLogRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeVodDomainLogRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribeVodDomainLogRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeVodDomainLogRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeVodDomainLogRequest::getRegionId()const
{
return regionId_;
}
void DescribeVodDomainLogRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribeVodDomainLogRequest::getRequestContent()const
{
return requestContent_;
}
void DescribeVodDomainLogRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setCoreParameter("RequestContent", requestContent);
}
long DescribeVodDomainLogRequest::getPageSize()const
{
return pageSize_;
}
void DescribeVodDomainLogRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeVodDomainLogRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribeVodDomainLogRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setCoreParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribeVodDomainLogRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribeVodDomainLogRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setCoreParameter("CallerUidEmail", callerUidEmail);
}
long DescribeVodDomainLogRequest::getCallerUid()const
{
return callerUid_;
}
void DescribeVodDomainLogRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setCoreParameter("CallerUid", std::to_string(callerUid));
}
std::string DescribeVodDomainLogRequest::getApp_ip()const
{
return app_ip_;
}
void DescribeVodDomainLogRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setCoreParameter("App_ip", app_ip);
}
std::string DescribeVodDomainLogRequest::getPopProduct()const
{
return popProduct_;
}
void DescribeVodDomainLogRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setCoreParameter("PopProduct", popProduct);
}
std::string DescribeVodDomainLogRequest::getDomainName()const
{
return domainName_;
}
void DescribeVodDomainLogRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setCoreParameter("DomainName", domainName);
}
std::string DescribeVodDomainLogRequest::getEndTime()const
{
return endTime_;
}
void DescribeVodDomainLogRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribeVodDomainLogRequest::getCallerBid()const
{
return callerBid_;
}
void DescribeVodDomainLogRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setCoreParameter("CallerBid", callerBid);
}
long DescribeVodDomainLogRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVodDomainLogRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeVodDomainLogRequest::getVersion()const
{
return version_;
}
void DescribeVodDomainLogRequest::setVersion(const std::string& version)
{
version_ = version;
setCoreParameter("Version", version);
}
bool DescribeVodDomainLogRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribeVodDomainLogRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
}
bool DescribeVodDomainLogRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribeVodDomainLogRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
}
bool DescribeVodDomainLogRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribeVodDomainLogRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setCoreParameter("Security_transport", security_transport ? "true" : "false");
}
std::string DescribeVodDomainLogRequest::getRequestId()const
{
return requestId_;
}
void DescribeVodDomainLogRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}

View File

@@ -0,0 +1,83 @@
/*
* 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/DescribeVodDomainLogResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeVodDomainLogResult::DescribeVodDomainLogResult() :
ServiceResult()
{}
DescribeVodDomainLogResult::DescribeVodDomainLogResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVodDomainLogResult::~DescribeVodDomainLogResult()
{}
void DescribeVodDomainLogResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDomainLogDetails = value["DomainLogDetails"]["DomainLogDetail"];
for (auto value : allDomainLogDetails)
{
DomainLogDetail domainLogDetailsObject;
if(!value["DomainName"].isNull())
domainLogDetailsObject.domainName = value["DomainName"].asString();
if(!value["LogCount"].isNull())
domainLogDetailsObject.logCount = std::stol(value["LogCount"].asString());
auto allLogInfos = value["LogInfos"]["LogInfoDetail"];
for (auto value : allLogInfos)
{
DomainLogDetail::LogInfoDetail logInfosObject;
if(!value["LogName"].isNull())
logInfosObject.logName = value["LogName"].asString();
if(!value["LogPath"].isNull())
logInfosObject.logPath = value["LogPath"].asString();
if(!value["LogSize"].isNull())
logInfosObject.logSize = std::stol(value["LogSize"].asString());
if(!value["StartTime"].isNull())
logInfosObject.startTime = value["StartTime"].asString();
if(!value["EndTime"].isNull())
logInfosObject.endTime = value["EndTime"].asString();
domainLogDetailsObject.logInfos.push_back(logInfosObject);
}
auto pageInfosNode = value["PageInfos"];
if(!pageInfosNode["PageNumber"].isNull())
domainLogDetailsObject.pageInfos.pageNumber = std::stol(pageInfosNode["PageNumber"].asString());
if(!pageInfosNode["PageSize"].isNull())
domainLogDetailsObject.pageInfos.pageSize = std::stol(pageInfosNode["PageSize"].asString());
if(!pageInfosNode["Total"].isNull())
domainLogDetailsObject.pageInfos.total = std::stol(pageInfosNode["Total"].asString());
domainLogDetails_.push_back(domainLogDetailsObject);
}
}
std::vector<DescribeVodDomainLogResult::DomainLogDetail> DescribeVodDomainLogResult::getDomainLogDetails()const
{
return domainLogDetails_;
}

View File

@@ -0,0 +1,346 @@
/*
* 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/DescribeVodDomainTrafficDataRequest.h>
using AlibabaCloud::Vod::Model::DescribeVodDomainTrafficDataRequest;
DescribeVodDomainTrafficDataRequest::DescribeVodDomainTrafficDataRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeVodDomainTrafficData")
{}
DescribeVodDomainTrafficDataRequest::~DescribeVodDomainTrafficDataRequest()
{}
long DescribeVodDomainTrafficDataRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DescribeVodDomainTrafficDataRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
long DescribeVodDomainTrafficDataRequest::getCallerParentId()const
{
return callerParentId_;
}
void DescribeVodDomainTrafficDataRequest::setCallerParentId(long callerParentId)
{
callerParentId_ = callerParentId;
setCoreParameter("CallerParentId", std::to_string(callerParentId));
}
bool DescribeVodDomainTrafficDataRequest::getProxy_original_security_transport()const
{
return proxy_original_security_transport_;
}
void DescribeVodDomainTrafficDataRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
{
proxy_original_security_transport_ = proxy_original_security_transport;
setCoreParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
}
std::string DescribeVodDomainTrafficDataRequest::getLocationNameEn()const
{
return locationNameEn_;
}
void DescribeVodDomainTrafficDataRequest::setLocationNameEn(const std::string& locationNameEn)
{
locationNameEn_ = locationNameEn;
setCoreParameter("LocationNameEn", locationNameEn);
}
std::string DescribeVodDomainTrafficDataRequest::getStartTime()const
{
return startTime_;
}
void DescribeVodDomainTrafficDataRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string DescribeVodDomainTrafficDataRequest::getIspNameEn()const
{
return ispNameEn_;
}
void DescribeVodDomainTrafficDataRequest::setIspNameEn(const std::string& ispNameEn)
{
ispNameEn_ = ispNameEn;
setCoreParameter("IspNameEn", ispNameEn);
}
std::string DescribeVodDomainTrafficDataRequest::getProxy_original_source_ip()const
{
return proxy_original_source_ip_;
}
void DescribeVodDomainTrafficDataRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
{
proxy_original_source_ip_ = proxy_original_source_ip;
setCoreParameter("Proxy_original_source_ip", proxy_original_source_ip);
}
std::string DescribeVodDomainTrafficDataRequest::getOwnerIdLoginEmail()const
{
return ownerIdLoginEmail_;
}
void DescribeVodDomainTrafficDataRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
{
ownerIdLoginEmail_ = ownerIdLoginEmail;
setCoreParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
}
std::string DescribeVodDomainTrafficDataRequest::getCallerType()const
{
return callerType_;
}
void DescribeVodDomainTrafficDataRequest::setCallerType(const std::string& callerType)
{
callerType_ = callerType;
setCoreParameter("CallerType", callerType);
}
std::string DescribeVodDomainTrafficDataRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeVodDomainTrafficDataRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DescribeVodDomainTrafficDataRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeVodDomainTrafficDataRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
std::string DescribeVodDomainTrafficDataRequest::getRegionId()const
{
return regionId_;
}
void DescribeVodDomainTrafficDataRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setCoreParameter("RegionId", regionId);
}
std::string DescribeVodDomainTrafficDataRequest::getRequestContent()const
{
return requestContent_;
}
void DescribeVodDomainTrafficDataRequest::setRequestContent(const std::string& requestContent)
{
requestContent_ = requestContent;
setCoreParameter("RequestContent", requestContent);
}
std::string DescribeVodDomainTrafficDataRequest::getCallerBidEmail()const
{
return callerBidEmail_;
}
void DescribeVodDomainTrafficDataRequest::setCallerBidEmail(const std::string& callerBidEmail)
{
callerBidEmail_ = callerBidEmail;
setCoreParameter("CallerBidEmail", callerBidEmail);
}
std::string DescribeVodDomainTrafficDataRequest::getCallerUidEmail()const
{
return callerUidEmail_;
}
void DescribeVodDomainTrafficDataRequest::setCallerUidEmail(const std::string& callerUidEmail)
{
callerUidEmail_ = callerUidEmail;
setCoreParameter("CallerUidEmail", callerUidEmail);
}
long DescribeVodDomainTrafficDataRequest::getCallerUid()const
{
return callerUid_;
}
void DescribeVodDomainTrafficDataRequest::setCallerUid(long callerUid)
{
callerUid_ = callerUid;
setCoreParameter("CallerUid", std::to_string(callerUid));
}
std::string DescribeVodDomainTrafficDataRequest::getApp_ip()const
{
return app_ip_;
}
void DescribeVodDomainTrafficDataRequest::setApp_ip(const std::string& app_ip)
{
app_ip_ = app_ip;
setCoreParameter("App_ip", app_ip);
}
std::string DescribeVodDomainTrafficDataRequest::getPopProduct()const
{
return popProduct_;
}
void DescribeVodDomainTrafficDataRequest::setPopProduct(const std::string& popProduct)
{
popProduct_ = popProduct;
setCoreParameter("PopProduct", popProduct);
}
std::string DescribeVodDomainTrafficDataRequest::getDomainName()const
{
return domainName_;
}
void DescribeVodDomainTrafficDataRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setCoreParameter("DomainName", domainName);
}
std::string DescribeVodDomainTrafficDataRequest::getEndTime()const
{
return endTime_;
}
void DescribeVodDomainTrafficDataRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribeVodDomainTrafficDataRequest::getCallerBid()const
{
return callerBid_;
}
void DescribeVodDomainTrafficDataRequest::setCallerBid(const std::string& callerBid)
{
callerBid_ = callerBid;
setCoreParameter("CallerBid", callerBid);
}
long DescribeVodDomainTrafficDataRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVodDomainTrafficDataRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string DescribeVodDomainTrafficDataRequest::getVersion()const
{
return version_;
}
void DescribeVodDomainTrafficDataRequest::setVersion(const std::string& version)
{
version_ = version;
setCoreParameter("Version", version);
}
bool DescribeVodDomainTrafficDataRequest::getProxy_trust_transport_info()const
{
return proxy_trust_transport_info_;
}
void DescribeVodDomainTrafficDataRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
{
proxy_trust_transport_info_ = proxy_trust_transport_info;
setCoreParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
}
bool DescribeVodDomainTrafficDataRequest::getAk_mfa_present()const
{
return ak_mfa_present_;
}
void DescribeVodDomainTrafficDataRequest::setAk_mfa_present(bool ak_mfa_present)
{
ak_mfa_present_ = ak_mfa_present;
setCoreParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
}
bool DescribeVodDomainTrafficDataRequest::getSecurity_transport()const
{
return security_transport_;
}
void DescribeVodDomainTrafficDataRequest::setSecurity_transport(bool security_transport)
{
security_transport_ = security_transport;
setCoreParameter("Security_transport", security_transport ? "true" : "false");
}
std::string DescribeVodDomainTrafficDataRequest::getRequestId()const
{
return requestId_;
}
void DescribeVodDomainTrafficDataRequest::setRequestId(const std::string& requestId)
{
requestId_ = requestId;
setCoreParameter("RequestId", requestId);
}
std::string DescribeVodDomainTrafficDataRequest::getInterval()const
{
return interval_;
}
void DescribeVodDomainTrafficDataRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setCoreParameter("Interval", interval);
}
std::string DescribeVodDomainTrafficDataRequest::getFields()const
{
return fields_;
}
void DescribeVodDomainTrafficDataRequest::setFields(const std::string& fields)
{
fields_ = fields;
setCoreParameter("Fields", fields);
}

View File

@@ -0,0 +1,98 @@
/*
* 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/DescribeVodDomainTrafficDataResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeVodDomainTrafficDataResult::DescribeVodDomainTrafficDataResult() :
ServiceResult()
{}
DescribeVodDomainTrafficDataResult::DescribeVodDomainTrafficDataResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVodDomainTrafficDataResult::~DescribeVodDomainTrafficDataResult()
{}
void DescribeVodDomainTrafficDataResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTrafficDataPerInterval = value["TrafficDataPerInterval"]["DataModule"];
for (auto value : allTrafficDataPerInterval)
{
DataModule trafficDataPerIntervalObject;
if(!value["TimeStamp"].isNull())
trafficDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
if(!value["Value"].isNull())
trafficDataPerIntervalObject.value = value["Value"].asString();
if(!value["DomesticValue"].isNull())
trafficDataPerIntervalObject.domesticValue = value["DomesticValue"].asString();
if(!value["OverseasValue"].isNull())
trafficDataPerIntervalObject.overseasValue = value["OverseasValue"].asString();
if(!value["HttpsValue"].isNull())
trafficDataPerIntervalObject.httpsValue = value["HttpsValue"].asString();
if(!value["HttpsDomesticValue"].isNull())
trafficDataPerIntervalObject.httpsDomesticValue = value["HttpsDomesticValue"].asString();
if(!value["HttpsOverseasValue"].isNull())
trafficDataPerIntervalObject.httpsOverseasValue = value["HttpsOverseasValue"].asString();
trafficDataPerInterval_.push_back(trafficDataPerIntervalObject);
}
if(!value["DomainName"].isNull())
domainName_ = value["DomainName"].asString();
if(!value["StartTime"].isNull())
startTime_ = value["StartTime"].asString();
if(!value["EndTime"].isNull())
endTime_ = value["EndTime"].asString();
if(!value["DataInterval"].isNull())
dataInterval_ = value["DataInterval"].asString();
}
std::string DescribeVodDomainTrafficDataResult::getEndTime()const
{
return endTime_;
}
std::vector<DescribeVodDomainTrafficDataResult::DataModule> DescribeVodDomainTrafficDataResult::getTrafficDataPerInterval()const
{
return trafficDataPerInterval_;
}
std::string DescribeVodDomainTrafficDataResult::getDomainName()const
{
return domainName_;
}
std::string DescribeVodDomainTrafficDataResult::getStartTime()const
{
return startTime_;
}
std::string DescribeVodDomainTrafficDataResult::getDataInterval()const
{
return dataInterval_;
}

View File

@@ -0,0 +1,49 @@
/*
* 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/DescribeVodRefreshQuotaRequest.h>
using AlibabaCloud::Vod::Model::DescribeVodRefreshQuotaRequest;
DescribeVodRefreshQuotaRequest::DescribeVodRefreshQuotaRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeVodRefreshQuota")
{}
DescribeVodRefreshQuotaRequest::~DescribeVodRefreshQuotaRequest()
{}
std::string DescribeVodRefreshQuotaRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeVodRefreshQuotaRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
long DescribeVodRefreshQuotaRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVodRefreshQuotaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,101 @@
/*
* 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/DescribeVodRefreshQuotaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeVodRefreshQuotaResult::DescribeVodRefreshQuotaResult() :
ServiceResult()
{}
DescribeVodRefreshQuotaResult::DescribeVodRefreshQuotaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeVodRefreshQuotaResult::~DescribeVodRefreshQuotaResult()
{}
void DescribeVodRefreshQuotaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["UrlQuota"].isNull())
urlQuota_ = value["UrlQuota"].asString();
if(!value["DirQuota"].isNull())
dirQuota_ = value["DirQuota"].asString();
if(!value["UrlRemain"].isNull())
urlRemain_ = value["UrlRemain"].asString();
if(!value["DirRemain"].isNull())
dirRemain_ = value["DirRemain"].asString();
if(!value["PreloadQuota"].isNull())
preloadQuota_ = value["PreloadQuota"].asString();
if(!value["BlockQuota"].isNull())
blockQuota_ = value["BlockQuota"].asString();
if(!value["PreloadRemain"].isNull())
preloadRemain_ = value["PreloadRemain"].asString();
if(!value["blockRemain"].isNull())
blockRemain_ = value["blockRemain"].asString();
}
std::string DescribeVodRefreshQuotaResult::getUrlRemain()const
{
return urlRemain_;
}
std::string DescribeVodRefreshQuotaResult::getPreloadRemain()const
{
return preloadRemain_;
}
std::string DescribeVodRefreshQuotaResult::getBlockRemain()const
{
return blockRemain_;
}
std::string DescribeVodRefreshQuotaResult::getDirRemain()const
{
return dirRemain_;
}
std::string DescribeVodRefreshQuotaResult::getBlockQuota()const
{
return blockQuota_;
}
std::string DescribeVodRefreshQuotaResult::getUrlQuota()const
{
return urlQuota_;
}
std::string DescribeVodRefreshQuotaResult::getDirQuota()const
{
return dirQuota_;
}
std::string DescribeVodRefreshQuotaResult::getPreloadQuota()const
{
return preloadQuota_;
}

View File

@@ -0,0 +1,159 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/DescribeVodRefreshTasksRequest.h>
using AlibabaCloud::Vod::Model::DescribeVodRefreshTasksRequest;
DescribeVodRefreshTasksRequest::DescribeVodRefreshTasksRequest() :
RpcServiceRequest("vod", "2017-03-21", "DescribeVodRefreshTasks")
{}
DescribeVodRefreshTasksRequest::~DescribeVodRefreshTasksRequest()
{}
std::string DescribeVodRefreshTasksRequest::getObjectPath()const
{
return objectPath_;
}
void DescribeVodRefreshTasksRequest::setObjectPath(const std::string& objectPath)
{
objectPath_ = objectPath;
setCoreParameter("ObjectPath", objectPath);
}
std::string DescribeVodRefreshTasksRequest::getDomainName()const
{
return domainName_;
}
void DescribeVodRefreshTasksRequest::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
setCoreParameter("DomainName", domainName);
}
std::string DescribeVodRefreshTasksRequest::getEndTime()const
{
return endTime_;
}
void DescribeVodRefreshTasksRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
std::string DescribeVodRefreshTasksRequest::getStartTime()const
{
return startTime_;
}
void DescribeVodRefreshTasksRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
long DescribeVodRefreshTasksRequest::getOwnerId()const
{
return ownerId_;
}
void DescribeVodRefreshTasksRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
int DescribeVodRefreshTasksRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeVodRefreshTasksRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeVodRefreshTasksRequest::getResourceGroupId()const
{
return resourceGroupId_;
}
void DescribeVodRefreshTasksRequest::setResourceGroupId(const std::string& resourceGroupId)
{
resourceGroupId_ = resourceGroupId;
setCoreParameter("ResourceGroupId", resourceGroupId);
}
std::string DescribeVodRefreshTasksRequest::getSecurityToken()const
{
return securityToken_;
}
void DescribeVodRefreshTasksRequest::setSecurityToken(const std::string& securityToken)
{
securityToken_ = securityToken;
setCoreParameter("SecurityToken", securityToken);
}
int DescribeVodRefreshTasksRequest::getPageSize()const
{
return pageSize_;
}
void DescribeVodRefreshTasksRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeVodRefreshTasksRequest::getObjectType()const
{
return objectType_;
}
void DescribeVodRefreshTasksRequest::setObjectType(const std::string& objectType)
{
objectType_ = objectType;
setCoreParameter("ObjectType", objectType);
}
std::string DescribeVodRefreshTasksRequest::getTaskId()const
{
return taskId_;
}
void DescribeVodRefreshTasksRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setCoreParameter("TaskId", taskId);
}
std::string DescribeVodRefreshTasksRequest::getStatus()const
{
return status_;
}
void DescribeVodRefreshTasksRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/vod/model/DescribeRefreshTasksResult.h>
#include <alibabacloud/vod/model/DescribeVodRefreshTasksResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
DescribeRefreshTasksResult::DescribeRefreshTasksResult() :
DescribeVodRefreshTasksResult::DescribeVodRefreshTasksResult() :
ServiceResult()
{}
DescribeRefreshTasksResult::DescribeRefreshTasksResult(const std::string &payload) :
DescribeVodRefreshTasksResult::DescribeVodRefreshTasksResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRefreshTasksResult::~DescribeRefreshTasksResult()
DescribeVodRefreshTasksResult::~DescribeVodRefreshTasksResult()
{}
void DescribeRefreshTasksResult::parse(const std::string &payload)
void DescribeVodRefreshTasksResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -48,43 +48,43 @@ void DescribeRefreshTasksResult::parse(const std::string &payload)
tasksObject.taskId = value["TaskId"].asString();
if(!value["ObjectPath"].isNull())
tasksObject.objectPath = value["ObjectPath"].asString();
if(!value["Status"].isNull())
tasksObject.status = value["Status"].asString();
if(!value["Process"].isNull())
tasksObject.process = value["Process"].asString();
if(!value["ObjectType"].isNull())
tasksObject.objectType = value["ObjectType"].asString();
if(!value["Status"].isNull())
tasksObject.status = value["Status"].asString();
if(!value["CreationTime"].isNull())
tasksObject.creationTime = value["CreationTime"].asString();
if(!value["Description"].isNull())
tasksObject.description = value["Description"].asString();
if(!value["ObjectType"].isNull())
tasksObject.objectType = value["ObjectType"].asString();
tasks_.push_back(tasksObject);
}
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stoi(value["TotalCount"].asString());
totalCount_ = std::stol(value["TotalCount"].asString());
}
int DescribeRefreshTasksResult::getTotalCount()const
long DescribeVodRefreshTasksResult::getTotalCount()const
{
return totalCount_;
}
std::vector<DescribeRefreshTasksResult::Task> DescribeRefreshTasksResult::getTasks()const
std::vector<DescribeVodRefreshTasksResult::Task> DescribeVodRefreshTasksResult::getTasks()const
{
return tasks_;
}
int DescribeRefreshTasksResult::getPageSize()const
long DescribeVodRefreshTasksResult::getPageSize()const
{
return pageSize_;
}
int DescribeRefreshTasksResult::getPageNumber()const
long DescribeVodRefreshTasksResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/DetachAppPolicyFromIdentityRequest.h>
using AlibabaCloud::Vod::Model::DetachAppPolicyFromIdentityRequest;
DetachAppPolicyFromIdentityRequest::DetachAppPolicyFromIdentityRequest() :
RpcServiceRequest("vod", "2017-03-21", "DetachAppPolicyFromIdentity")
{}
DetachAppPolicyFromIdentityRequest::~DetachAppPolicyFromIdentityRequest()
{}
std::string DetachAppPolicyFromIdentityRequest::getIdentityName()const
{
return identityName_;
}
void DetachAppPolicyFromIdentityRequest::setIdentityName(const std::string& identityName)
{
identityName_ = identityName;
setCoreParameter("IdentityName", identityName);
}
long DetachAppPolicyFromIdentityRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DetachAppPolicyFromIdentityRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DetachAppPolicyFromIdentityRequest::getIdentityType()const
{
return identityType_;
}
void DetachAppPolicyFromIdentityRequest::setIdentityType(const std::string& identityType)
{
identityType_ = identityType;
setCoreParameter("IdentityType", identityType);
}
std::string DetachAppPolicyFromIdentityRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DetachAppPolicyFromIdentityRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DetachAppPolicyFromIdentityRequest::getAppId()const
{
return appId_;
}
void DetachAppPolicyFromIdentityRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setCoreParameter("AppId", appId);
}
std::string DetachAppPolicyFromIdentityRequest::getPolicyNames()const
{
return policyNames_;
}
void DetachAppPolicyFromIdentityRequest::setPolicyNames(const std::string& policyNames)
{
policyNames_ = policyNames;
setCoreParameter("PolicyNames", policyNames);
}
long DetachAppPolicyFromIdentityRequest::getOwnerId()const
{
return ownerId_;
}
void DetachAppPolicyFromIdentityRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,82 @@
/*
* 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/GetAIMediaAuditJobRequest.h>
using AlibabaCloud::Vod::Model::GetAIMediaAuditJobRequest;
GetAIMediaAuditJobRequest::GetAIMediaAuditJobRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetAIMediaAuditJob")
{}
GetAIMediaAuditJobRequest::~GetAIMediaAuditJobRequest()
{}
std::string GetAIMediaAuditJobRequest::getJobId()const
{
return jobId_;
}
void GetAIMediaAuditJobRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setCoreParameter("JobId", jobId);
}
long GetAIMediaAuditJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetAIMediaAuditJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetAIMediaAuditJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetAIMediaAuditJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetAIMediaAuditJobRequest::getOwnerId()const
{
return ownerId_;
}
void GetAIMediaAuditJobRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}
std::string GetAIMediaAuditJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetAIMediaAuditJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,191 @@
/*
* 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/GetAIMediaAuditJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetAIMediaAuditJobResult::GetAIMediaAuditJobResult() :
ServiceResult()
{}
GetAIMediaAuditJobResult::GetAIMediaAuditJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAIMediaAuditJobResult::~GetAIMediaAuditJobResult()
{}
void GetAIMediaAuditJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto mediaAuditJobNode = value["MediaAuditJob"];
if(!mediaAuditJobNode["JobId"].isNull())
mediaAuditJob_.jobId = mediaAuditJobNode["JobId"].asString();
if(!mediaAuditJobNode["MediaId"].isNull())
mediaAuditJob_.mediaId = mediaAuditJobNode["MediaId"].asString();
if(!mediaAuditJobNode["Type"].isNull())
mediaAuditJob_.type = mediaAuditJobNode["Type"].asString();
if(!mediaAuditJobNode["Status"].isNull())
mediaAuditJob_.status = mediaAuditJobNode["Status"].asString();
if(!mediaAuditJobNode["Code"].isNull())
mediaAuditJob_.code = mediaAuditJobNode["Code"].asString();
if(!mediaAuditJobNode["Message"].isNull())
mediaAuditJob_.message = mediaAuditJobNode["Message"].asString();
if(!mediaAuditJobNode["CreationTime"].isNull())
mediaAuditJob_.creationTime = mediaAuditJobNode["CreationTime"].asString();
if(!mediaAuditJobNode["CompleteTime"].isNull())
mediaAuditJob_.completeTime = mediaAuditJobNode["CompleteTime"].asString();
auto dataNode = mediaAuditJobNode["Data"];
if(!dataNode["Suggestion"].isNull())
mediaAuditJob_.data.suggestion = dataNode["Suggestion"].asString();
if(!dataNode["AbnormalModules"].isNull())
mediaAuditJob_.data.abnormalModules = dataNode["AbnormalModules"].asString();
if(!dataNode["Label"].isNull())
mediaAuditJob_.data.label = dataNode["Label"].asString();
auto allImageResult = value["ImageResult"]["ImageResultItem"];
for (auto value : allImageResult)
{
MediaAuditJob::Data::ImageResultItem imageResultItemObject;
if(!value["Suggestion"].isNull())
imageResultItemObject.suggestion = value["Suggestion"].asString();
if(!value["Label"].isNull())
imageResultItemObject.label = value["Label"].asString();
if(!value["Type"].isNull())
imageResultItemObject.type = value["Type"].asString();
if(!value["Url"].isNull())
imageResultItemObject.url = value["Url"].asString();
auto allResult = value["Result"]["ResultItem"];
for (auto value : allResult)
{
MediaAuditJob::Data::ImageResultItem::ResultItem resultObject;
if(!value["Suggestion"].isNull())
resultObject.suggestion = value["Suggestion"].asString();
if(!value["Label"].isNull())
resultObject.label = value["Label"].asString();
if(!value["Score"].isNull())
resultObject.score = value["Score"].asString();
if(!value["Scene"].isNull())
resultObject.scene = value["Scene"].asString();
imageResultItemObject.result.push_back(resultObject);
}
mediaAuditJob_.data.imageResult.push_back(imageResultItemObject);
}
auto allTextResult = value["TextResult"]["TextResultItem"];
for (auto value : allTextResult)
{
MediaAuditJob::Data::TextResultItem textResultItemObject;
if(!value["Suggestion"].isNull())
textResultItemObject.suggestion = value["Suggestion"].asString();
if(!value["Label"].isNull())
textResultItemObject.label = value["Label"].asString();
if(!value["Score"].isNull())
textResultItemObject.score = value["Score"].asString();
if(!value["Scene"].isNull())
textResultItemObject.scene = value["Scene"].asString();
if(!value["Type"].isNull())
textResultItemObject.type = value["Type"].asString();
if(!value["Content"].isNull())
textResultItemObject.content = value["Content"].asString();
mediaAuditJob_.data.textResult.push_back(textResultItemObject);
}
auto videoResultNode = dataNode["VideoResult"];
if(!videoResultNode["Suggestion"].isNull())
mediaAuditJob_.data.videoResult.suggestion = videoResultNode["Suggestion"].asString();
if(!videoResultNode["Label"].isNull())
mediaAuditJob_.data.videoResult.label = videoResultNode["Label"].asString();
auto terrorismResultNode = videoResultNode["TerrorismResult"];
if(!terrorismResultNode["Suggestion"].isNull())
mediaAuditJob_.data.videoResult.terrorismResult.suggestion = terrorismResultNode["Suggestion"].asString();
if(!terrorismResultNode["Label"].isNull())
mediaAuditJob_.data.videoResult.terrorismResult.label = terrorismResultNode["Label"].asString();
if(!terrorismResultNode["MaxScore"].isNull())
mediaAuditJob_.data.videoResult.terrorismResult.maxScore = terrorismResultNode["MaxScore"].asString();
if(!terrorismResultNode["AverageScore"].isNull())
mediaAuditJob_.data.videoResult.terrorismResult.averageScore = terrorismResultNode["AverageScore"].asString();
auto allCounterList = value["CounterList"]["CounterListItem"];
for (auto value : allCounterList)
{
MediaAuditJob::Data::VideoResult::TerrorismResult::CounterListItem counterListItemObject;
if(!value["Label"].isNull())
counterListItemObject.label = value["Label"].asString();
if(!value["Count"].isNull())
counterListItemObject.count = std::stoi(value["Count"].asString());
mediaAuditJob_.data.videoResult.terrorismResult.counterList.push_back(counterListItemObject);
}
auto allTopList = value["TopList"]["TopListItem"];
for (auto value : allTopList)
{
MediaAuditJob::Data::VideoResult::TerrorismResult::TopListItem topListItemObject;
if(!value["Label"].isNull())
topListItemObject.label = value["Label"].asString();
if(!value["Score"].isNull())
topListItemObject.score = value["Score"].asString();
if(!value["Timestamp"].isNull())
topListItemObject.timestamp = value["Timestamp"].asString();
if(!value["Url"].isNull())
topListItemObject.url = value["Url"].asString();
mediaAuditJob_.data.videoResult.terrorismResult.topList.push_back(topListItemObject);
}
auto pornResultNode = videoResultNode["PornResult"];
if(!pornResultNode["Suggestion"].isNull())
mediaAuditJob_.data.videoResult.pornResult.suggestion = pornResultNode["Suggestion"].asString();
if(!pornResultNode["Label"].isNull())
mediaAuditJob_.data.videoResult.pornResult.label = pornResultNode["Label"].asString();
if(!pornResultNode["MaxScore"].isNull())
mediaAuditJob_.data.videoResult.pornResult.maxScore = pornResultNode["MaxScore"].asString();
if(!pornResultNode["AverageScore"].isNull())
mediaAuditJob_.data.videoResult.pornResult.averageScore = pornResultNode["AverageScore"].asString();
auto allCounterList1 = value["CounterList"]["CounterListItem"];
for (auto value : allCounterList1)
{
MediaAuditJob::Data::VideoResult::PornResult::CounterListItem3 counterListItem3Object;
if(!value["Label"].isNull())
counterListItem3Object.label = value["Label"].asString();
if(!value["Count"].isNull())
counterListItem3Object.count = std::stoi(value["Count"].asString());
mediaAuditJob_.data.videoResult.pornResult.counterList1.push_back(counterListItem3Object);
}
auto allTopList2 = value["TopList"]["TopListItem"];
for (auto value : allTopList2)
{
MediaAuditJob::Data::VideoResult::PornResult::TopListItem4 topListItem4Object;
if(!value["Label"].isNull())
topListItem4Object.label = value["Label"].asString();
if(!value["Score"].isNull())
topListItem4Object.score = value["Score"].asString();
if(!value["Timestamp"].isNull())
topListItem4Object.timestamp = value["Timestamp"].asString();
if(!value["Url"].isNull())
topListItem4Object.url = value["Url"].asString();
mediaAuditJob_.data.videoResult.pornResult.topList2.push_back(topListItem4Object);
}
}
GetAIMediaAuditJobResult::MediaAuditJob GetAIMediaAuditJobResult::getMediaAuditJob()const
{
return mediaAuditJob_;
}

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/GetAITemplateRequest.h>
using AlibabaCloud::Vod::Model::GetAITemplateRequest;
GetAITemplateRequest::GetAITemplateRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetAITemplate")
{}
GetAITemplateRequest::~GetAITemplateRequest()
{}
long GetAITemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetAITemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetAITemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetAITemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetAITemplateRequest::getOwnerId()const
{
return ownerId_;
}
void GetAITemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string GetAITemplateRequest::getTemplateId()const
{
return templateId_;
}
void GetAITemplateRequest::setTemplateId(const std::string& templateId)
{
templateId_ = templateId;
setCoreParameter("TemplateId", templateId);
}

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/GetAITemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetAITemplateResult::GetAITemplateResult() :
ServiceResult()
{}
GetAITemplateResult::GetAITemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAITemplateResult::~GetAITemplateResult()
{}
void GetAITemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto templateInfoNode = value["TemplateInfo"];
if(!templateInfoNode["TemplateId"].isNull())
templateInfo_.templateId = templateInfoNode["TemplateId"].asString();
if(!templateInfoNode["TemplateType"].isNull())
templateInfo_.templateType = templateInfoNode["TemplateType"].asString();
if(!templateInfoNode["TemplateName"].isNull())
templateInfo_.templateName = templateInfoNode["TemplateName"].asString();
if(!templateInfoNode["TemplateConfig"].isNull())
templateInfo_.templateConfig = templateInfoNode["TemplateConfig"].asString();
if(!templateInfoNode["Source"].isNull())
templateInfo_.source = templateInfoNode["Source"].asString();
if(!templateInfoNode["IsDefault"].isNull())
templateInfo_.isDefault = templateInfoNode["IsDefault"].asString();
if(!templateInfoNode["CreationTime"].isNull())
templateInfo_.creationTime = templateInfoNode["CreationTime"].asString();
if(!templateInfoNode["ModifyTime"].isNull())
templateInfo_.modifyTime = templateInfoNode["ModifyTime"].asString();
}
GetAITemplateResult::TemplateInfo GetAITemplateResult::getTemplateInfo()const
{
return templateInfo_;
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/GetAppInfosRequest.h>
using AlibabaCloud::Vod::Model::GetAppInfosRequest;
GetAppInfosRequest::GetAppInfosRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetAppInfos")
{}
GetAppInfosRequest::~GetAppInfosRequest()
{}
long GetAppInfosRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetAppInfosRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetAppInfosRequest::getAppIds()const
{
return appIds_;
}
void GetAppInfosRequest::setAppIds(const std::string& appIds)
{
appIds_ = appIds;
setCoreParameter("AppIds", appIds);
}
std::string GetAppInfosRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetAppInfosRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetAppInfosRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
}
void GetAppInfosRequest::setResourceRealOwnerId(long resourceRealOwnerId)
{
resourceRealOwnerId_ = resourceRealOwnerId;
setCoreParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
long GetAppInfosRequest::getOwnerId()const
{
return ownerId_;
}
void GetAppInfosRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
std::string GetAppInfosRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetAppInfosRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,78 @@
/*
* 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/GetAppInfosResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetAppInfosResult::GetAppInfosResult() :
ServiceResult()
{}
GetAppInfosResult::GetAppInfosResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAppInfosResult::~GetAppInfosResult()
{}
void GetAppInfosResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAppInfoList = value["AppInfoList"]["AppInfo"];
for (auto value : allAppInfoList)
{
AppInfo appInfoListObject;
if(!value["AppId"].isNull())
appInfoListObject.appId = value["AppId"].asString();
if(!value["AppName"].isNull())
appInfoListObject.appName = value["AppName"].asString();
if(!value["Type"].isNull())
appInfoListObject.type = value["Type"].asString();
if(!value["Description"].isNull())
appInfoListObject.description = value["Description"].asString();
if(!value["Status"].isNull())
appInfoListObject.status = value["Status"].asString();
if(!value["CreationTime"].isNull())
appInfoListObject.creationTime = value["CreationTime"].asString();
if(!value["ModificationTime"].isNull())
appInfoListObject.modificationTime = value["ModificationTime"].asString();
appInfoList_.push_back(appInfoListObject);
}
auto allNonExistAppIds = value["NonExistAppIds"]["AppId"];
for (const auto &item : allNonExistAppIds)
nonExistAppIds_.push_back(item.asString());
}
std::vector<GetAppInfosResult::AppInfo> GetAppInfosResult::getAppInfoList()const
{
return appInfoList_;
}
std::vector<std::string> GetAppInfosResult::getNonExistAppIds()const
{
return nonExistAppIds_;
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/GetAttachedMediaInfoRequest.h>
using AlibabaCloud::Vod::Model::GetAttachedMediaInfoRequest;
GetAttachedMediaInfoRequest::GetAttachedMediaInfoRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetAttachedMediaInfo")
{}
GetAttachedMediaInfoRequest::~GetAttachedMediaInfoRequest()
{}
long GetAttachedMediaInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetAttachedMediaInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetAttachedMediaInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetAttachedMediaInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetAttachedMediaInfoRequest::getOutputType()const
{
return outputType_;
}
void GetAttachedMediaInfoRequest::setOutputType(const std::string& outputType)
{
outputType_ = outputType;
setCoreParameter("OutputType", outputType);
}
std::string GetAttachedMediaInfoRequest::getMediaIds()const
{
return mediaIds_;
}
void GetAttachedMediaInfoRequest::setMediaIds(const std::string& mediaIds)
{
mediaIds_ = mediaIds;
setCoreParameter("MediaIds", mediaIds);
}
long GetAttachedMediaInfoRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
}
void GetAttachedMediaInfoRequest::setResourceRealOwnerId(long resourceRealOwnerId)
{
resourceRealOwnerId_ = resourceRealOwnerId;
setCoreParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
long GetAttachedMediaInfoRequest::getOwnerId()const
{
return ownerId_;
}
void GetAttachedMediaInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}
long GetAttachedMediaInfoRequest::getAuthTimeout()const
{
return authTimeout_;
}
void GetAttachedMediaInfoRequest::setAuthTimeout(long authTimeout)
{
authTimeout_ = authTimeout;
setCoreParameter("AuthTimeout", std::to_string(authTimeout));
}
std::string GetAttachedMediaInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetAttachedMediaInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/GetAttachedMediaInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetAttachedMediaInfoResult::GetAttachedMediaInfoResult() :
ServiceResult()
{}
GetAttachedMediaInfoResult::GetAttachedMediaInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAttachedMediaInfoResult::~GetAttachedMediaInfoResult()
{}
void GetAttachedMediaInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAttachedMediaList = value["AttachedMediaList"]["AttachedMedia"];
for (auto value : allAttachedMediaList)
{
AttachedMedia attachedMediaListObject;
if(!value["MediaId"].isNull())
attachedMediaListObject.mediaId = value["MediaId"].asString();
if(!value["Title"].isNull())
attachedMediaListObject.title = value["Title"].asString();
if(!value["Type"].isNull())
attachedMediaListObject.type = value["Type"].asString();
if(!value["Tags"].isNull())
attachedMediaListObject.tags = value["Tags"].asString();
if(!value["URL"].isNull())
attachedMediaListObject.uRL = value["URL"].asString();
if(!value["Description"].isNull())
attachedMediaListObject.description = value["Description"].asString();
if(!value["FileSize"].isNull())
attachedMediaListObject.fileSize = std::stol(value["FileSize"].asString());
if(!value["StorageLocation"].isNull())
attachedMediaListObject.storageLocation = std::stol(value["StorageLocation"].asString());
if(!value["CreationTime"].isNull())
attachedMediaListObject.creationTime = value["CreationTime"].asString();
if(!value["ModificationTime"].isNull())
attachedMediaListObject.modificationTime = value["ModificationTime"].asString();
if(!value["AppId"].isNull())
attachedMediaListObject.appId = value["AppId"].asString();
if(!value["Status"].isNull())
attachedMediaListObject.status = value["Status"].asString();
if(!value["OnlineStatus"].isNull())
attachedMediaListObject.onlineStatus = value["OnlineStatus"].asString();
auto allCategories = value["Categories"]["Category"];
for (auto value : allCategories)
{
AttachedMedia::Category categoriesObject;
if(!value["CateId"].isNull())
categoriesObject.cateId = std::stol(value["CateId"].asString());
if(!value["CateName"].isNull())
categoriesObject.cateName = value["CateName"].asString();
if(!value["Level"].isNull())
categoriesObject.level = std::stol(value["Level"].asString());
if(!value["ParentId"].isNull())
categoriesObject.parentId = std::stol(value["ParentId"].asString());
attachedMediaListObject.categories.push_back(categoriesObject);
}
attachedMediaList_.push_back(attachedMediaListObject);
}
auto allNonExistMediaIds = value["NonExistMediaIds"]["MediaId"];
for (const auto &item : allNonExistMediaIds)
nonExistMediaIds_.push_back(item.asString());
}
std::vector<std::string> GetAttachedMediaInfoResult::getNonExistMediaIds()const
{
return nonExistMediaIds_;
}
std::vector<GetAttachedMediaInfoResult::AttachedMedia> GetAttachedMediaInfoResult::getAttachedMediaList()const
{
return attachedMediaList_;
}

View File

@@ -33,7 +33,7 @@ long GetAuditHistoryRequest::getPageNo()const
void GetAuditHistoryRequest::setPageNo(long pageNo)
{
pageNo_ = pageNo;
setParameter("PageNo", std::to_string(pageNo));
setCoreParameter("PageNo", std::to_string(pageNo));
}
long GetAuditHistoryRequest::getPageSize()const
@@ -44,7 +44,7 @@ long GetAuditHistoryRequest::getPageSize()const
void GetAuditHistoryRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string GetAuditHistoryRequest::getVideoId()const
@@ -55,7 +55,7 @@ std::string GetAuditHistoryRequest::getVideoId()const
void GetAuditHistoryRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
setCoreParameter("VideoId", videoId);
}
std::string GetAuditHistoryRequest::getSortBy()const
@@ -66,6 +66,6 @@ std::string GetAuditHistoryRequest::getSortBy()const
void GetAuditHistoryRequest::setSortBy(const std::string& sortBy)
{
sortBy_ = sortBy;
setParameter("SortBy", sortBy);
setCoreParameter("SortBy", sortBy);
}

View File

@@ -1,104 +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/GetAuditResultRequest.h>
using AlibabaCloud::Vod::Model::GetAuditResultRequest;
GetAuditResultRequest::GetAuditResultRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetAuditResult")
{}
GetAuditResultRequest::~GetAuditResultRequest()
{}
std::string GetAuditResultRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetAuditResultRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetAuditResultRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetAuditResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetAuditResultRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void GetAuditResultRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string GetAuditResultRequest::getVideoId()const
{
return videoId_;
}
void GetAuditResultRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
}
std::string GetAuditResultRequest::getOwnerId()const
{
return ownerId_;
}
void GetAuditResultRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetAuditResultRequest::getMediaId()const
{
return mediaId_;
}
void GetAuditResultRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setParameter("MediaId", mediaId);
}
std::string GetAuditResultRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetAuditResultRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -1,63 +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/GetAuditResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetAuditResultResult::GetAuditResultResult() :
ServiceResult()
{}
GetAuditResultResult::GetAuditResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetAuditResultResult::~GetAuditResultResult()
{}
void GetAuditResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto aIAuditResultNode = value["AIAuditResult"];
if(!aIAuditResultNode["AbnormalModules"].isNull())
aIAuditResult_.abnormalModules = aIAuditResultNode["AbnormalModules"].asString();
if(!aIAuditResultNode["Label"].isNull())
aIAuditResult_.label = aIAuditResultNode["Label"].asString();
if(!aIAuditResultNode["PornResult"].isNull())
aIAuditResult_.pornResult = aIAuditResultNode["PornResult"].asString();
if(!aIAuditResultNode["TerrorismResult"].isNull())
aIAuditResult_.terrorismResult = aIAuditResultNode["TerrorismResult"].asString();
if(!aIAuditResultNode["TitleResult"].isNull())
aIAuditResult_.titleResult = aIAuditResultNode["TitleResult"].asString();
if(!aIAuditResultNode["CoverResult"].isNull())
aIAuditResult_.coverResult = aIAuditResultNode["CoverResult"].asString();
}
GetAuditResultResult::AIAuditResult GetAuditResultResult::getAIAuditResult()const
{
return aIAuditResult_;
}

View File

@@ -1,115 +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/GetCDNStatisSumRequest.h>
using AlibabaCloud::Vod::Model::GetCDNStatisSumRequest;
GetCDNStatisSumRequest::GetCDNStatisSumRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetCDNStatisSum")
{}
GetCDNStatisSumRequest::~GetCDNStatisSumRequest()
{}
std::string GetCDNStatisSumRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetCDNStatisSumRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetCDNStatisSumRequest::getStartStatisTime()const
{
return startStatisTime_;
}
void GetCDNStatisSumRequest::setStartStatisTime(const std::string& startStatisTime)
{
startStatisTime_ = startStatisTime;
setParameter("StartStatisTime", startStatisTime);
}
std::string GetCDNStatisSumRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetCDNStatisSumRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetCDNStatisSumRequest::getLevel()const
{
return level_;
}
void GetCDNStatisSumRequest::setLevel(const std::string& level)
{
level_ = level;
setParameter("Level", level);
}
std::string GetCDNStatisSumRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void GetCDNStatisSumRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string GetCDNStatisSumRequest::getOwnerId()const
{
return ownerId_;
}
void GetCDNStatisSumRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetCDNStatisSumRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetCDNStatisSumRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetCDNStatisSumRequest::getEndStatisTime()const
{
return endStatisTime_;
}
void GetCDNStatisSumRequest::setEndStatisTime(const std::string& endStatisTime)
{
endStatisTime_ = endStatisTime;
setParameter("EndStatisTime", endStatisTime);
}

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/GetCDNStatisSumResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetCDNStatisSumResult::GetCDNStatisSumResult() :
ServiceResult()
{}
GetCDNStatisSumResult::GetCDNStatisSumResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetCDNStatisSumResult::~GetCDNStatisSumResult()
{}
void GetCDNStatisSumResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCDNStatisList = value["CDNStatisList"]["CDNMetric"];
for (auto value : allCDNStatisList)
{
CDNMetric cDNStatisListObject;
if(!value["StatTime"].isNull())
cDNStatisListObject.statTime = value["StatTime"].asString();
if(!value["FlowDataDomesticValue"].isNull())
cDNStatisListObject.flowDataDomesticValue = std::stol(value["FlowDataDomesticValue"].asString());
if(!value["FlowDataOverseasValue"].isNull())
cDNStatisListObject.flowDataOverseasValue = std::stol(value["FlowDataOverseasValue"].asString());
if(!value["FlowDataValue"].isNull())
cDNStatisListObject.flowDataValue = std::stol(value["FlowDataValue"].asString());
if(!value["BpsDataDomesticValue"].isNull())
cDNStatisListObject.bpsDataDomesticValue = std::stol(value["BpsDataDomesticValue"].asString());
if(!value["BpsDataOverseasValue"].isNull())
cDNStatisListObject.bpsDataOverseasValue = std::stol(value["BpsDataOverseasValue"].asString());
if(!value["BpsDataValue"].isNull())
cDNStatisListObject.bpsDataValue = std::stol(value["BpsDataValue"].asString());
cDNStatisList_.push_back(cDNStatisListObject);
}
if(!value["SumFlowDataValue"].isNull())
sumFlowDataValue_ = std::stol(value["SumFlowDataValue"].asString());
if(!value["MaxBpsDataValue"].isNull())
maxBpsDataValue_ = std::stol(value["MaxBpsDataValue"].asString());
}
long GetCDNStatisSumResult::getSumFlowDataValue()const
{
return sumFlowDataValue_;
}
long GetCDNStatisSumResult::getMaxBpsDataValue()const
{
return maxBpsDataValue_;
}
std::vector<GetCDNStatisSumResult::CDNMetric> GetCDNStatisSumResult::getCDNStatisList()const
{
return cDNStatisList_;
}

View File

@@ -33,7 +33,7 @@ std::string GetCategoriesRequest::getResourceOwnerId()const
void GetCategoriesRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
setCoreParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetCategoriesRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string GetCategoriesRequest::getResourceOwnerAccount()const
void GetCategoriesRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetCategoriesRequest::getCateId()const
@@ -55,7 +55,7 @@ long GetCategoriesRequest::getCateId()const
void GetCategoriesRequest::setCateId(long cateId)
{
cateId_ = cateId;
setParameter("CateId", std::to_string(cateId));
setCoreParameter("CateId", std::to_string(cateId));
}
long GetCategoriesRequest::getPageNo()const
@@ -66,7 +66,7 @@ long GetCategoriesRequest::getPageNo()const
void GetCategoriesRequest::setPageNo(long pageNo)
{
pageNo_ = pageNo;
setParameter("PageNo", std::to_string(pageNo));
setCoreParameter("PageNo", std::to_string(pageNo));
}
long GetCategoriesRequest::getPageSize()const
@@ -77,7 +77,7 @@ long GetCategoriesRequest::getPageSize()const
void GetCategoriesRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string GetCategoriesRequest::getSortBy()const
@@ -88,7 +88,7 @@ std::string GetCategoriesRequest::getSortBy()const
void GetCategoriesRequest::setSortBy(const std::string& sortBy)
{
sortBy_ = sortBy;
setParameter("SortBy", sortBy);
setCoreParameter("SortBy", sortBy);
}
std::string GetCategoriesRequest::getOwnerId()const
@@ -99,6 +99,17 @@ std::string GetCategoriesRequest::getOwnerId()const
void GetCategoriesRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
setCoreParameter("OwnerId", ownerId);
}
std::string GetCategoriesRequest::getType()const
{
return type_;
}
void GetCategoriesRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}

View File

@@ -52,6 +52,10 @@ void GetCategoriesResult::parse(const std::string &payload)
subCategoriesObject.level = std::stol(value["Level"].asString());
if(!value["ParentId"].isNull())
subCategoriesObject.parentId = std::stol(value["ParentId"].asString());
if(!value["SubTotal"].isNull())
subCategoriesObject.subTotal = std::stol(value["SubTotal"].asString());
if(!value["Type"].isNull())
subCategoriesObject.type = value["Type"].asString();
subCategories_.push_back(subCategoriesObject);
}
auto category1Node = value["Category"];
@@ -63,6 +67,8 @@ void GetCategoriesResult::parse(const std::string &payload)
category1_.level = std::stol(category1Node["Level"].asString());
if(!category1Node["ParentId"].isNull())
category1_.parentId = std::stol(category1Node["ParentId"].asString());
if(!category1Node["Type"].isNull())
category1_.type = category1Node["Type"].asString();
if(!value["SubTotal"].isNull())
subTotal_ = std::stol(value["SubTotal"].asString());

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/GetDefaultAITemplateRequest.h>
using AlibabaCloud::Vod::Model::GetDefaultAITemplateRequest;
GetDefaultAITemplateRequest::GetDefaultAITemplateRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetDefaultAITemplate")
{}
GetDefaultAITemplateRequest::~GetDefaultAITemplateRequest()
{}
long GetDefaultAITemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetDefaultAITemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetDefaultAITemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetDefaultAITemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetDefaultAITemplateRequest::getTemplateType()const
{
return templateType_;
}
void GetDefaultAITemplateRequest::setTemplateType(const std::string& templateType)
{
templateType_ = templateType;
setCoreParameter("TemplateType", templateType);
}
long GetDefaultAITemplateRequest::getOwnerId()const
{
return ownerId_;
}
void GetDefaultAITemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", std::to_string(ownerId));
}

View File

@@ -0,0 +1,67 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/GetDefaultAITemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetDefaultAITemplateResult::GetDefaultAITemplateResult() :
ServiceResult()
{}
GetDefaultAITemplateResult::GetDefaultAITemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDefaultAITemplateResult::~GetDefaultAITemplateResult()
{}
void GetDefaultAITemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto templateInfoNode = value["TemplateInfo"];
if(!templateInfoNode["TemplateId"].isNull())
templateInfo_.templateId = templateInfoNode["TemplateId"].asString();
if(!templateInfoNode["TemplateType"].isNull())
templateInfo_.templateType = templateInfoNode["TemplateType"].asString();
if(!templateInfoNode["TemplateName"].isNull())
templateInfo_.templateName = templateInfoNode["TemplateName"].asString();
if(!templateInfoNode["TemplateConfig"].isNull())
templateInfo_.templateConfig = templateInfoNode["TemplateConfig"].asString();
if(!templateInfoNode["Source"].isNull())
templateInfo_.source = templateInfoNode["Source"].asString();
if(!templateInfoNode["IsDefault"].isNull())
templateInfo_.isDefault = templateInfoNode["IsDefault"].asString();
if(!templateInfoNode["CreationTime"].isNull())
templateInfo_.creationTime = templateInfoNode["CreationTime"].asString();
if(!templateInfoNode["ModifyTime"].isNull())
templateInfo_.modifyTime = templateInfoNode["ModifyTime"].asString();
}
GetDefaultAITemplateResult::TemplateInfo GetDefaultAITemplateResult::getTemplateInfo()const
{
return templateInfo_;
}

View File

@@ -33,7 +33,18 @@ std::string GetEditingProjectMaterialsRequest::getResourceOwnerId()const
void GetEditingProjectMaterialsRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
setCoreParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetEditingProjectMaterialsRequest::getMaterialType()const
{
return materialType_;
}
void GetEditingProjectMaterialsRequest::setMaterialType(const std::string& materialType)
{
materialType_ = materialType;
setCoreParameter("MaterialType", materialType);
}
std::string GetEditingProjectMaterialsRequest::getResourceOwnerAccount()const
@@ -44,7 +55,7 @@ std::string GetEditingProjectMaterialsRequest::getResourceOwnerAccount()const
void GetEditingProjectMaterialsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetEditingProjectMaterialsRequest::getOwnerAccount()const
@@ -55,7 +66,7 @@ std::string GetEditingProjectMaterialsRequest::getOwnerAccount()const
void GetEditingProjectMaterialsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string GetEditingProjectMaterialsRequest::getOwnerId()const
@@ -66,7 +77,7 @@ std::string GetEditingProjectMaterialsRequest::getOwnerId()const
void GetEditingProjectMaterialsRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
setCoreParameter("OwnerId", ownerId);
}
std::string GetEditingProjectMaterialsRequest::getType()const
@@ -77,7 +88,7 @@ std::string GetEditingProjectMaterialsRequest::getType()const
void GetEditingProjectMaterialsRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
setCoreParameter("Type", type);
}
std::string GetEditingProjectMaterialsRequest::getProjectId()const
@@ -88,7 +99,7 @@ std::string GetEditingProjectMaterialsRequest::getProjectId()const
void GetEditingProjectMaterialsRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
setCoreParameter("ProjectId", projectId);
}
std::string GetEditingProjectMaterialsRequest::getAccessKeyId()const
@@ -99,6 +110,6 @@ std::string GetEditingProjectMaterialsRequest::getAccessKeyId()const
void GetEditingProjectMaterialsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string GetEditingProjectRequest::getResourceOwnerId()const
void GetEditingProjectRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
setCoreParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetEditingProjectRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string GetEditingProjectRequest::getResourceOwnerAccount()const
void GetEditingProjectRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetEditingProjectRequest::getOwnerAccount()const
@@ -55,7 +55,7 @@ std::string GetEditingProjectRequest::getOwnerAccount()const
void GetEditingProjectRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string GetEditingProjectRequest::getOwnerId()const
@@ -66,7 +66,7 @@ std::string GetEditingProjectRequest::getOwnerId()const
void GetEditingProjectRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
setCoreParameter("OwnerId", ownerId);
}
std::string GetEditingProjectRequest::getProjectId()const
@@ -77,7 +77,7 @@ std::string GetEditingProjectRequest::getProjectId()const
void GetEditingProjectRequest::setProjectId(const std::string& projectId)
{
projectId_ = projectId;
setParameter("ProjectId", projectId);
setCoreParameter("ProjectId", projectId);
}
std::string GetEditingProjectRequest::getAccessKeyId()const
@@ -88,6 +88,6 @@ std::string GetEditingProjectRequest::getAccessKeyId()const
void GetEditingProjectRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -57,6 +57,10 @@ void GetEditingProjectResult::parse(const std::string &payload)
project_.timeline = projectNode["Timeline"].asString();
if(!projectNode["CoverURL"].isNull())
project_.coverURL = projectNode["CoverURL"].asString();
if(!projectNode["StorageLocation"].isNull())
project_.storageLocation = projectNode["StorageLocation"].asString();
if(!projectNode["RegionId"].isNull())
project_.regionId = projectNode["RegionId"].asString();
}

View File

@@ -33,7 +33,7 @@ long GetImageInfoRequest::getResourceOwnerId()const
void GetImageInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetImageInfoRequest::getImageId()const
@@ -44,7 +44,7 @@ std::string GetImageInfoRequest::getImageId()const
void GetImageInfoRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setParameter("ImageId", imageId);
setCoreParameter("ImageId", imageId);
}
std::string GetImageInfoRequest::getResourceOwnerAccount()const
@@ -55,7 +55,18 @@ std::string GetImageInfoRequest::getResourceOwnerAccount()const
void GetImageInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetImageInfoRequest::getOutputType()const
{
return outputType_;
}
void GetImageInfoRequest::setOutputType(const std::string& outputType)
{
outputType_ = outputType;
setCoreParameter("OutputType", outputType);
}
long GetImageInfoRequest::getOwnerId()const
@@ -66,7 +77,7 @@ long GetImageInfoRequest::getOwnerId()const
void GetImageInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
long GetImageInfoRequest::getAuthTimeout()const
@@ -77,7 +88,7 @@ long GetImageInfoRequest::getAuthTimeout()const
void GetImageInfoRequest::setAuthTimeout(long authTimeout)
{
authTimeout_ = authTimeout;
setParameter("AuthTimeout", std::to_string(authTimeout));
setCoreParameter("AuthTimeout", std::to_string(authTimeout));
}
std::string GetImageInfoRequest::getAccessKeyId()const
@@ -88,6 +99,6 @@ std::string GetImageInfoRequest::getAccessKeyId()const
void GetImageInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -61,6 +61,10 @@ void GetImageInfoResult::parse(const std::string &payload)
imageInfo_.description = imageInfoNode["Description"].asString();
if(!imageInfoNode["StorageLocation"].isNull())
imageInfo_.storageLocation = imageInfoNode["StorageLocation"].asString();
if(!imageInfoNode["Status"].isNull())
imageInfo_.status = imageInfoNode["Status"].asString();
if(!imageInfoNode["AppId"].isNull())
imageInfo_.appId = imageInfoNode["AppId"].asString();
auto mezzanineNode = imageInfoNode["Mezzanine"];
if(!mezzanineNode["OriginalFileName"].isNull())
imageInfo_.mezzanine.originalFileName = mezzanineNode["OriginalFileName"].asString();

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/GetMediaAuditResultDetailRequest.h>
using AlibabaCloud::Vod::Model::GetMediaAuditResultDetailRequest;
GetMediaAuditResultDetailRequest::GetMediaAuditResultDetailRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetMediaAuditResultDetail")
{}
GetMediaAuditResultDetailRequest::~GetMediaAuditResultDetailRequest()
{}
long GetMediaAuditResultDetailRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetMediaAuditResultDetailRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetMediaAuditResultDetailRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetMediaAuditResultDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
int GetMediaAuditResultDetailRequest::getPageNo()const
{
return pageNo_;
}
void GetMediaAuditResultDetailRequest::setPageNo(int pageNo)
{
pageNo_ = pageNo;
setCoreParameter("PageNo", std::to_string(pageNo));
}
std::string GetMediaAuditResultDetailRequest::getOwnerId()const
{
return ownerId_;
}
void GetMediaAuditResultDetailRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}
std::string GetMediaAuditResultDetailRequest::getMediaId()const
{
return mediaId_;
}
void GetMediaAuditResultDetailRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setCoreParameter("MediaId", mediaId);
}
std::string GetMediaAuditResultDetailRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetMediaAuditResultDetailRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

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/GetMediaAuditResultDetailResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetMediaAuditResultDetailResult::GetMediaAuditResultDetailResult() :
ServiceResult()
{}
GetMediaAuditResultDetailResult::GetMediaAuditResultDetailResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMediaAuditResultDetailResult::~GetMediaAuditResultDetailResult()
{}
void GetMediaAuditResultDetailResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto mediaAuditResultDetailNode = value["MediaAuditResultDetail"];
if(!mediaAuditResultDetailNode["Total"].isNull())
mediaAuditResultDetail_.total = std::stoi(mediaAuditResultDetailNode["Total"].asString());
auto allList = value["List"]["ListItem"];
for (auto value : allList)
{
MediaAuditResultDetail::ListItem listItemObject;
if(!value["PornLabel"].isNull())
listItemObject.pornLabel = value["PornLabel"].asString();
if(!value["PornScore"].isNull())
listItemObject.pornScore = value["PornScore"].asString();
if(!value["TerrorismLabel"].isNull())
listItemObject.terrorismLabel = value["TerrorismLabel"].asString();
if(!value["TerrorismScore"].isNull())
listItemObject.terrorismScore = value["TerrorismScore"].asString();
if(!value["Timestamp"].isNull())
listItemObject.timestamp = value["Timestamp"].asString();
if(!value["Url"].isNull())
listItemObject.url = value["Url"].asString();
mediaAuditResultDetail_.list.push_back(listItemObject);
}
}
GetMediaAuditResultDetailResult::MediaAuditResultDetail GetMediaAuditResultDetailResult::getMediaAuditResultDetail()const
{
return mediaAuditResultDetail_;
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/GetMediaAuditResultRequest.h>
using AlibabaCloud::Vod::Model::GetMediaAuditResultRequest;
GetMediaAuditResultRequest::GetMediaAuditResultRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetMediaAuditResult")
{}
GetMediaAuditResultRequest::~GetMediaAuditResultRequest()
{}
long GetMediaAuditResultRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetMediaAuditResultRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetMediaAuditResultRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetMediaAuditResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long GetMediaAuditResultRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
}
void GetMediaAuditResultRequest::setResourceRealOwnerId(long resourceRealOwnerId)
{
resourceRealOwnerId_ = resourceRealOwnerId;
setCoreParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
std::string GetMediaAuditResultRequest::getOwnerId()const
{
return ownerId_;
}
void GetMediaAuditResultRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}
std::string GetMediaAuditResultRequest::getMediaId()const
{
return mediaId_;
}
void GetMediaAuditResultRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setCoreParameter("MediaId", mediaId);
}
std::string GetMediaAuditResultRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetMediaAuditResultRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,174 @@
/*
* 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/GetMediaAuditResultResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetMediaAuditResultResult::GetMediaAuditResultResult() :
ServiceResult()
{}
GetMediaAuditResultResult::GetMediaAuditResultResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMediaAuditResultResult::~GetMediaAuditResultResult()
{}
void GetMediaAuditResultResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto mediaAuditResultNode = value["MediaAuditResult"];
if(!mediaAuditResultNode["AbnormalModules"].isNull())
mediaAuditResult_.abnormalModules = mediaAuditResultNode["AbnormalModules"].asString();
if(!mediaAuditResultNode["Label"].isNull())
mediaAuditResult_.label = mediaAuditResultNode["Label"].asString();
if(!mediaAuditResultNode["Suggestion"].isNull())
mediaAuditResult_.suggestion = mediaAuditResultNode["Suggestion"].asString();
auto allImageResult = value["ImageResult"]["ImageResultItem"];
for (auto value : allImageResult)
{
MediaAuditResult::ImageResultItem imageResultItemObject;
if(!value["Suggestion"].isNull())
imageResultItemObject.suggestion = value["Suggestion"].asString();
if(!value["Label"].isNull())
imageResultItemObject.label = value["Label"].asString();
if(!value["Type"].isNull())
imageResultItemObject.type = value["Type"].asString();
if(!value["Url"].isNull())
imageResultItemObject.url = value["Url"].asString();
auto allResult = value["Result"]["ResultItem"];
for (auto value : allResult)
{
MediaAuditResult::ImageResultItem::ResultItem resultObject;
if(!value["Suggestion"].isNull())
resultObject.suggestion = value["Suggestion"].asString();
if(!value["Label"].isNull())
resultObject.label = value["Label"].asString();
if(!value["Score"].isNull())
resultObject.score = value["Score"].asString();
if(!value["Scene"].isNull())
resultObject.scene = value["Scene"].asString();
imageResultItemObject.result.push_back(resultObject);
}
mediaAuditResult_.imageResult.push_back(imageResultItemObject);
}
auto allTextResult = value["TextResult"]["TextResultItem"];
for (auto value : allTextResult)
{
MediaAuditResult::TextResultItem textResultItemObject;
if(!value["Suggestion"].isNull())
textResultItemObject.suggestion = value["Suggestion"].asString();
if(!value["Label"].isNull())
textResultItemObject.label = value["Label"].asString();
if(!value["Score"].isNull())
textResultItemObject.score = value["Score"].asString();
if(!value["Scene"].isNull())
textResultItemObject.scene = value["Scene"].asString();
if(!value["Type"].isNull())
textResultItemObject.type = value["Type"].asString();
if(!value["Content"].isNull())
textResultItemObject.content = value["Content"].asString();
mediaAuditResult_.textResult.push_back(textResultItemObject);
}
auto videoResultNode = mediaAuditResultNode["VideoResult"];
if(!videoResultNode["Suggestion"].isNull())
mediaAuditResult_.videoResult.suggestion = videoResultNode["Suggestion"].asString();
if(!videoResultNode["Label"].isNull())
mediaAuditResult_.videoResult.label = videoResultNode["Label"].asString();
auto terrorismResultNode = videoResultNode["TerrorismResult"];
if(!terrorismResultNode["Suggestion"].isNull())
mediaAuditResult_.videoResult.terrorismResult.suggestion = terrorismResultNode["Suggestion"].asString();
if(!terrorismResultNode["Label"].isNull())
mediaAuditResult_.videoResult.terrorismResult.label = terrorismResultNode["Label"].asString();
if(!terrorismResultNode["MaxScore"].isNull())
mediaAuditResult_.videoResult.terrorismResult.maxScore = terrorismResultNode["MaxScore"].asString();
if(!terrorismResultNode["AverageScore"].isNull())
mediaAuditResult_.videoResult.terrorismResult.averageScore = terrorismResultNode["AverageScore"].asString();
auto allCounterList = value["CounterList"]["CounterListItem"];
for (auto value : allCounterList)
{
MediaAuditResult::VideoResult::TerrorismResult::CounterListItem counterListItemObject;
if(!value["Label"].isNull())
counterListItemObject.label = value["Label"].asString();
if(!value["Count"].isNull())
counterListItemObject.count = std::stoi(value["Count"].asString());
mediaAuditResult_.videoResult.terrorismResult.counterList.push_back(counterListItemObject);
}
auto allTopList = value["TopList"]["TopListItem"];
for (auto value : allTopList)
{
MediaAuditResult::VideoResult::TerrorismResult::TopListItem topListItemObject;
if(!value["Label"].isNull())
topListItemObject.label = value["Label"].asString();
if(!value["Score"].isNull())
topListItemObject.score = value["Score"].asString();
if(!value["Timestamp"].isNull())
topListItemObject.timestamp = value["Timestamp"].asString();
if(!value["Url"].isNull())
topListItemObject.url = value["Url"].asString();
mediaAuditResult_.videoResult.terrorismResult.topList.push_back(topListItemObject);
}
auto pornResultNode = videoResultNode["PornResult"];
if(!pornResultNode["Suggestion"].isNull())
mediaAuditResult_.videoResult.pornResult.suggestion = pornResultNode["Suggestion"].asString();
if(!pornResultNode["Label"].isNull())
mediaAuditResult_.videoResult.pornResult.label = pornResultNode["Label"].asString();
if(!pornResultNode["MaxScore"].isNull())
mediaAuditResult_.videoResult.pornResult.maxScore = pornResultNode["MaxScore"].asString();
if(!pornResultNode["AverageScore"].isNull())
mediaAuditResult_.videoResult.pornResult.averageScore = pornResultNode["AverageScore"].asString();
auto allCounterList1 = value["CounterList"]["CounterListItem"];
for (auto value : allCounterList1)
{
MediaAuditResult::VideoResult::PornResult::CounterListItem3 counterListItem3Object;
if(!value["Label"].isNull())
counterListItem3Object.label = value["Label"].asString();
if(!value["Count"].isNull())
counterListItem3Object.count = std::stoi(value["Count"].asString());
mediaAuditResult_.videoResult.pornResult.counterList1.push_back(counterListItem3Object);
}
auto allTopList2 = value["TopList"]["TopListItem"];
for (auto value : allTopList2)
{
MediaAuditResult::VideoResult::PornResult::TopListItem4 topListItem4Object;
if(!value["Label"].isNull())
topListItem4Object.label = value["Label"].asString();
if(!value["Score"].isNull())
topListItem4Object.score = value["Score"].asString();
if(!value["Timestamp"].isNull())
topListItem4Object.timestamp = value["Timestamp"].asString();
if(!value["Url"].isNull())
topListItem4Object.url = value["Url"].asString();
mediaAuditResult_.videoResult.pornResult.topList2.push_back(topListItem4Object);
}
}
GetMediaAuditResultResult::MediaAuditResult GetMediaAuditResultResult::getMediaAuditResult()const
{
return mediaAuditResult_;
}

View File

@@ -0,0 +1,82 @@
/*
* 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/GetMediaAuditResultTimelineRequest.h>
using AlibabaCloud::Vod::Model::GetMediaAuditResultTimelineRequest;
GetMediaAuditResultTimelineRequest::GetMediaAuditResultTimelineRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetMediaAuditResultTimeline")
{}
GetMediaAuditResultTimelineRequest::~GetMediaAuditResultTimelineRequest()
{}
long GetMediaAuditResultTimelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetMediaAuditResultTimelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetMediaAuditResultTimelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetMediaAuditResultTimelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetMediaAuditResultTimelineRequest::getOwnerId()const
{
return ownerId_;
}
void GetMediaAuditResultTimelineRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setCoreParameter("OwnerId", ownerId);
}
std::string GetMediaAuditResultTimelineRequest::getMediaId()const
{
return mediaId_;
}
void GetMediaAuditResultTimelineRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setCoreParameter("MediaId", mediaId);
}
std::string GetMediaAuditResultTimelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetMediaAuditResultTimelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/vod/model/GetMediaAuditResultTimelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetMediaAuditResultTimelineResult::GetMediaAuditResultTimelineResult() :
ServiceResult()
{}
GetMediaAuditResultTimelineResult::GetMediaAuditResultTimelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMediaAuditResultTimelineResult::~GetMediaAuditResultTimelineResult()
{}
void GetMediaAuditResultTimelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto mediaAuditResultTimelineNode = value["MediaAuditResultTimeline"];
auto allPorn = value["Porn"]["PornItem"];
for (auto value : allPorn)
{
MediaAuditResultTimeline::PornItem pornItemObject;
if(!value["Label"].isNull())
pornItemObject.label = value["Label"].asString();
if(!value["Score"].isNull())
pornItemObject.score = value["Score"].asString();
if(!value["Timestamp"].isNull())
pornItemObject.timestamp = value["Timestamp"].asString();
mediaAuditResultTimeline_.porn.push_back(pornItemObject);
}
auto allTerrorism = value["Terrorism"]["TerrorismItem"];
for (auto value : allTerrorism)
{
MediaAuditResultTimeline::TerrorismItem terrorismItemObject;
if(!value["Label"].isNull())
terrorismItemObject.label = value["Label"].asString();
if(!value["Score"].isNull())
terrorismItemObject.score = value["Score"].asString();
if(!value["Timestamp"].isNull())
terrorismItemObject.timestamp = value["Timestamp"].asString();
mediaAuditResultTimeline_.terrorism.push_back(terrorismItemObject);
}
}
GetMediaAuditResultTimelineResult::MediaAuditResultTimeline GetMediaAuditResultTimelineResult::getMediaAuditResultTimeline()const
{
return mediaAuditResultTimeline_;
}

View File

@@ -33,7 +33,7 @@ std::string GetMediaDNAResultRequest::getResourceOwnerId()const
void GetMediaDNAResultRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
setCoreParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetMediaDNAResultRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string GetMediaDNAResultRequest::getResourceOwnerAccount()const
void GetMediaDNAResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetMediaDNAResultRequest::getOwnerAccount()const
@@ -55,7 +55,7 @@ std::string GetMediaDNAResultRequest::getOwnerAccount()const
void GetMediaDNAResultRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string GetMediaDNAResultRequest::getOwnerId()const
@@ -66,7 +66,7 @@ std::string GetMediaDNAResultRequest::getOwnerId()const
void GetMediaDNAResultRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
setCoreParameter("OwnerId", ownerId);
}
std::string GetMediaDNAResultRequest::getMediaId()const
@@ -77,7 +77,7 @@ std::string GetMediaDNAResultRequest::getMediaId()const
void GetMediaDNAResultRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setParameter("MediaId", mediaId);
setCoreParameter("MediaId", mediaId);
}
std::string GetMediaDNAResultRequest::getAccessKeyId()const
@@ -88,6 +88,6 @@ std::string GetMediaDNAResultRequest::getAccessKeyId()const
void GetMediaDNAResultRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -33,7 +33,7 @@ std::string GetMessageCallbackRequest::getResourceOwnerId()const
void GetMessageCallbackRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
setCoreParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetMessageCallbackRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string GetMessageCallbackRequest::getResourceOwnerAccount()const
void GetMessageCallbackRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetMessageCallbackRequest::getOwnerAccount()const
@@ -55,7 +55,29 @@ std::string GetMessageCallbackRequest::getOwnerAccount()const
void GetMessageCallbackRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
setCoreParameter("OwnerAccount", ownerAccount);
}
std::string GetMessageCallbackRequest::getAppId()const
{
return appId_;
}
void GetMessageCallbackRequest::setAppId(const std::string& appId)
{
appId_ = appId;
setCoreParameter("AppId", appId);
}
long GetMessageCallbackRequest::getResourceRealOwnerId()const
{
return resourceRealOwnerId_;
}
void GetMessageCallbackRequest::setResourceRealOwnerId(long resourceRealOwnerId)
{
resourceRealOwnerId_ = resourceRealOwnerId;
setCoreParameter("ResourceRealOwnerId", std::to_string(resourceRealOwnerId));
}
std::string GetMessageCallbackRequest::getOwnerId()const
@@ -66,7 +88,7 @@ std::string GetMessageCallbackRequest::getOwnerId()const
void GetMessageCallbackRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
setCoreParameter("OwnerId", ownerId);
}
std::string GetMessageCallbackRequest::getAccessKeyId()const
@@ -77,6 +99,6 @@ std::string GetMessageCallbackRequest::getAccessKeyId()const
void GetMessageCallbackRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

@@ -43,8 +43,6 @@ void GetMessageCallbackResult::parse(const std::string &payload)
auto messageCallbackNode = value["MessageCallback"];
if(!messageCallbackNode["CallbackType"].isNull())
messageCallback_.callbackType = messageCallbackNode["CallbackType"].asString();
if(!messageCallbackNode["CallbackSwitch"].isNull())
messageCallback_.callbackSwitch = messageCallbackNode["CallbackSwitch"].asString();
if(!messageCallbackNode["CallbackURL"].isNull())
messageCallback_.callbackURL = messageCallbackNode["CallbackURL"].asString();
if(!messageCallbackNode["EventTypeList"].isNull())
@@ -53,6 +51,12 @@ void GetMessageCallbackResult::parse(const std::string &payload)
messageCallback_.authSwitch = messageCallbackNode["AuthSwitch"].asString();
if(!messageCallbackNode["AuthKey"].isNull())
messageCallback_.authKey = messageCallbackNode["AuthKey"].asString();
if(!messageCallbackNode["MnsEndpoint"].isNull())
messageCallback_.mnsEndpoint = messageCallbackNode["MnsEndpoint"].asString();
if(!messageCallbackNode["MnsQueueName"].isNull())
messageCallback_.mnsQueueName = messageCallbackNode["MnsQueueName"].asString();
if(!messageCallbackNode["AppId"].isNull())
messageCallback_.appId = messageCallbackNode["AppId"].asString();
}

View File

@@ -33,7 +33,7 @@ long GetMezzanineInfoRequest::getResourceOwnerId()const
void GetMezzanineInfoRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string GetMezzanineInfoRequest::getResourceOwnerAccount()const
@@ -44,7 +44,7 @@ std::string GetMezzanineInfoRequest::getResourceOwnerAccount()const
void GetMezzanineInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
setCoreParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetMezzanineInfoRequest::getVideoId()const
@@ -55,7 +55,7 @@ std::string GetMezzanineInfoRequest::getVideoId()const
void GetMezzanineInfoRequest::setVideoId(const std::string& videoId)
{
videoId_ = videoId;
setParameter("VideoId", videoId);
setCoreParameter("VideoId", videoId);
}
bool GetMezzanineInfoRequest::getPreviewSegment()const
@@ -66,7 +66,7 @@ bool GetMezzanineInfoRequest::getPreviewSegment()const
void GetMezzanineInfoRequest::setPreviewSegment(bool previewSegment)
{
previewSegment_ = previewSegment;
setParameter("PreviewSegment", std::to_string(previewSegment));
setCoreParameter("PreviewSegment", previewSegment ? "true" : "false");
}
std::string GetMezzanineInfoRequest::getOutputType()const
@@ -77,7 +77,7 @@ std::string GetMezzanineInfoRequest::getOutputType()const
void GetMezzanineInfoRequest::setOutputType(const std::string& outputType)
{
outputType_ = outputType;
setParameter("OutputType", outputType);
setCoreParameter("OutputType", outputType);
}
std::string GetMezzanineInfoRequest::getAdditionType()const
@@ -88,7 +88,7 @@ std::string GetMezzanineInfoRequest::getAdditionType()const
void GetMezzanineInfoRequest::setAdditionType(const std::string& additionType)
{
additionType_ = additionType;
setParameter("AdditionType", additionType);
setCoreParameter("AdditionType", additionType);
}
long GetMezzanineInfoRequest::getOwnerId()const
@@ -99,7 +99,7 @@ long GetMezzanineInfoRequest::getOwnerId()const
void GetMezzanineInfoRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
setCoreParameter("OwnerId", std::to_string(ownerId));
}
long GetMezzanineInfoRequest::getAuthTimeout()const
@@ -110,6 +110,6 @@ long GetMezzanineInfoRequest::getAuthTimeout()const
void GetMezzanineInfoRequest::setAuthTimeout(long authTimeout)
{
authTimeout_ = authTimeout;
setParameter("AuthTimeout", std::to_string(authTimeout));
setCoreParameter("AuthTimeout", std::to_string(authTimeout));
}

View File

@@ -153,6 +153,8 @@ void GetMezzanineInfoResult::parse(const std::string &payload)
videoStreamObject.numFrames = value["NumFrames"].asString();
if(!value["Lang"].isNull())
videoStreamObject.lang = value["Lang"].asString();
if(!value["Rotate"].isNull())
videoStreamObject.rotate = value["Rotate"].asString();
mezzanine_.videoStreamList.push_back(videoStreamObject);
}

View File

@@ -1,115 +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/GetOSSStatisRequest.h>
using AlibabaCloud::Vod::Model::GetOSSStatisRequest;
GetOSSStatisRequest::GetOSSStatisRequest() :
RpcServiceRequest("vod", "2017-03-21", "GetOSSStatis")
{}
GetOSSStatisRequest::~GetOSSStatisRequest()
{}
std::string GetOSSStatisRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetOSSStatisRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetOSSStatisRequest::getStartStatisTime()const
{
return startStatisTime_;
}
void GetOSSStatisRequest::setStartStatisTime(const std::string& startStatisTime)
{
startStatisTime_ = startStatisTime;
setParameter("StartStatisTime", startStatisTime);
}
std::string GetOSSStatisRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetOSSStatisRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetOSSStatisRequest::getLevel()const
{
return level_;
}
void GetOSSStatisRequest::setLevel(const std::string& level)
{
level_ = level;
setParameter("Level", level);
}
std::string GetOSSStatisRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void GetOSSStatisRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string GetOSSStatisRequest::getOwnerId()const
{
return ownerId_;
}
void GetOSSStatisRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetOSSStatisRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetOSSStatisRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string GetOSSStatisRequest::getEndStatisTime()const
{
return endStatisTime_;
}
void GetOSSStatisRequest::setEndStatisTime(const std::string& endStatisTime)
{
endStatisTime_ = endStatisTime;
setParameter("EndStatisTime", endStatisTime);
}

View File

@@ -1,67 +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/GetOSSStatisResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Vod;
using namespace AlibabaCloud::Vod::Model;
GetOSSStatisResult::GetOSSStatisResult() :
ServiceResult()
{}
GetOSSStatisResult::GetOSSStatisResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetOSSStatisResult::~GetOSSStatisResult()
{}
void GetOSSStatisResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allOssStatisList = value["OssStatisList"]["OSSMetric"];
for (auto value : allOssStatisList)
{
OSSMetric ossStatisListObject;
if(!value["StatTime"].isNull())
ossStatisListObject.statTime = value["StatTime"].asString();
if(!value["StorageUtilization"].isNull())
ossStatisListObject.storageUtilization = std::stol(value["StorageUtilization"].asString());
ossStatisList_.push_back(ossStatisListObject);
}
if(!value["MaxStorageUtilization"].isNull())
maxStorageUtilization_ = std::stol(value["MaxStorageUtilization"].asString());
}
std::vector<GetOSSStatisResult::OSSMetric> GetOSSStatisResult::getOssStatisList()const
{
return ossStatisList_;
}
long GetOSSStatisResult::getMaxStorageUtilization()const
{
return maxStorageUtilization_;
}

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