MTS SDK Auto Released By lingkong.mxs,Version:1.21.1

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
yixiong.jxy
2018-08-05 01:08:55 +08:00
parent fe5f64d980
commit 13ea4f0698
543 changed files with 57980 additions and 2 deletions

4877
mts/src/MtsClient.cc Normal file

File diff suppressed because it is too large Load Diff

View File

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

View File

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

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddAsrPipelineRequest.h>
using AlibabaCloud::Mts::Model::AddAsrPipelineRequest;
AddAsrPipelineRequest::AddAsrPipelineRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddAsrPipeline")
{}
AddAsrPipelineRequest::~AddAsrPipelineRequest()
{}
long AddAsrPipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddAsrPipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddAsrPipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddAsrPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddAsrPipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddAsrPipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddAsrPipelineRequest::getName()const
{
return name_;
}
void AddAsrPipelineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddAsrPipelineRequest::getNotifyConfig()const
{
return notifyConfig_;
}
void AddAsrPipelineRequest::setNotifyConfig(const std::string& notifyConfig)
{
notifyConfig_ = notifyConfig;
setParameter("NotifyConfig", notifyConfig);
}
long AddAsrPipelineRequest::getOwnerId()const
{
return ownerId_;
}
void AddAsrPipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int AddAsrPipelineRequest::getPriority()const
{
return priority_;
}
void AddAsrPipelineRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
std::string AddAsrPipelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddAsrPipelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddAsrPipelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddAsrPipelineResult::AddAsrPipelineResult() :
ServiceResult()
{}
AddAsrPipelineResult::AddAsrPipelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddAsrPipelineResult::~AddAsrPipelineResult()
{}
void AddAsrPipelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto pipelineNode = value["Pipeline"];
if(!pipelineNode["Id"].isNull())
pipeline_.id = pipelineNode["Id"].asString();
if(!pipelineNode["Name"].isNull())
pipeline_.name = pipelineNode["Name"].asString();
if(!pipelineNode["Priority"].isNull())
pipeline_.priority = std::stoi(pipelineNode["Priority"].asString());
if(!pipelineNode["State"].isNull())
pipeline_.state = pipelineNode["State"].asString();
auto notifyConfigNode = pipelineNode["NotifyConfig"];
if(!notifyConfigNode["Topic"].isNull())
pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["Queue"].isNull())
pipeline_.notifyConfig.queue = notifyConfigNode["Queue"].asString();
}
AddAsrPipelineResult::Pipeline AddAsrPipelineResult::getPipeline()const
{
return pipeline_;
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddCategoryRequest.h>
using AlibabaCloud::Mts::Model::AddCategoryRequest;
AddCategoryRequest::AddCategoryRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddCategory")
{}
AddCategoryRequest::~AddCategoryRequest()
{}
long AddCategoryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddCategoryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddCategoryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddCategoryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddCategoryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long AddCategoryRequest::getOwnerId()const
{
return ownerId_;
}
void AddCategoryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long AddCategoryRequest::getParentId()const
{
return parentId_;
}
void AddCategoryRequest::setParentId(long parentId)
{
parentId_ = parentId;
setParameter("ParentId", std::to_string(parentId));
}
std::string AddCategoryRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddCategoryRequest::getCateName()const
{
return cateName_;
}
void AddCategoryRequest::setCateName(const std::string& cateName)
{
cateName_ = cateName;
setParameter("CateName", cateName);
}

View File

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

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddCensorPipelineRequest.h>
using AlibabaCloud::Mts::Model::AddCensorPipelineRequest;
AddCensorPipelineRequest::AddCensorPipelineRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddCensorPipeline")
{}
AddCensorPipelineRequest::~AddCensorPipelineRequest()
{}
long AddCensorPipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddCensorPipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddCensorPipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddCensorPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddCensorPipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddCensorPipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddCensorPipelineRequest::getName()const
{
return name_;
}
void AddCensorPipelineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddCensorPipelineRequest::getNotifyConfig()const
{
return notifyConfig_;
}
void AddCensorPipelineRequest::setNotifyConfig(const std::string& notifyConfig)
{
notifyConfig_ = notifyConfig;
setParameter("NotifyConfig", notifyConfig);
}
long AddCensorPipelineRequest::getOwnerId()const
{
return ownerId_;
}
void AddCensorPipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int AddCensorPipelineRequest::getPriority()const
{
return priority_;
}
void AddCensorPipelineRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
std::string AddCensorPipelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddCensorPipelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddCensorPipelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddCensorPipelineResult::AddCensorPipelineResult() :
ServiceResult()
{}
AddCensorPipelineResult::AddCensorPipelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddCensorPipelineResult::~AddCensorPipelineResult()
{}
void AddCensorPipelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto pipelineNode = value["Pipeline"];
if(!pipelineNode["Id"].isNull())
pipeline_.id = pipelineNode["Id"].asString();
if(!pipelineNode["Name"].isNull())
pipeline_.name = pipelineNode["Name"].asString();
if(!pipelineNode["Priority"].isNull())
pipeline_.priority = std::stoi(pipelineNode["Priority"].asString());
if(!pipelineNode["State"].isNull())
pipeline_.state = pipelineNode["State"].asString();
auto notifyConfigNode = pipelineNode["NotifyConfig"];
if(!notifyConfigNode["Topic"].isNull())
pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["Queue"].isNull())
pipeline_.notifyConfig.queue = notifyConfigNode["Queue"].asString();
}
AddCensorPipelineResult::Pipeline AddCensorPipelineResult::getPipeline()const
{
return pipeline_;
}

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddCoverPipelineRequest.h>
using AlibabaCloud::Mts::Model::AddCoverPipelineRequest;
AddCoverPipelineRequest::AddCoverPipelineRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddCoverPipeline")
{}
AddCoverPipelineRequest::~AddCoverPipelineRequest()
{}
long AddCoverPipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddCoverPipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddCoverPipelineRequest::getRole()const
{
return role_;
}
void AddCoverPipelineRequest::setRole(const std::string& role)
{
role_ = role;
setParameter("Role", role);
}
std::string AddCoverPipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddCoverPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddCoverPipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddCoverPipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddCoverPipelineRequest::getName()const
{
return name_;
}
void AddCoverPipelineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddCoverPipelineRequest::getNotifyConfig()const
{
return notifyConfig_;
}
void AddCoverPipelineRequest::setNotifyConfig(const std::string& notifyConfig)
{
notifyConfig_ = notifyConfig;
setParameter("NotifyConfig", notifyConfig);
}
long AddCoverPipelineRequest::getOwnerId()const
{
return ownerId_;
}
void AddCoverPipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddCoverPipelineRequest::getPriority()const
{
return priority_;
}
void AddCoverPipelineRequest::setPriority(const std::string& priority)
{
priority_ = priority;
setParameter("Priority", priority);
}
std::string AddCoverPipelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddCoverPipelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,66 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddCoverPipelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddCoverPipelineResult::AddCoverPipelineResult() :
ServiceResult()
{}
AddCoverPipelineResult::AddCoverPipelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddCoverPipelineResult::~AddCoverPipelineResult()
{}
void AddCoverPipelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto pipelineNode = value["Pipeline"];
if(!pipelineNode["Id"].isNull())
pipeline_.id = pipelineNode["Id"].asString();
if(!pipelineNode["Name"].isNull())
pipeline_.name = pipelineNode["Name"].asString();
if(!pipelineNode["Priority"].isNull())
pipeline_.priority = pipelineNode["Priority"].asString();
if(!pipelineNode["State"].isNull())
pipeline_.state = pipelineNode["State"].asString();
if(!pipelineNode["Role"].isNull())
pipeline_.role = pipelineNode["Role"].asString();
auto notifyConfigNode = pipelineNode["NotifyConfig"];
if(!notifyConfigNode["Topic"].isNull())
pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["Queue"].isNull())
pipeline_.notifyConfig.queue = notifyConfigNode["Queue"].asString();
}
AddCoverPipelineResult::Pipeline AddCoverPipelineResult::getPipeline()const
{
return pipeline_;
}

View File

@@ -0,0 +1,192 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddMediaRequest.h>
using AlibabaCloud::Mts::Model::AddMediaRequest;
AddMediaRequest::AddMediaRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddMedia")
{}
AddMediaRequest::~AddMediaRequest()
{}
long AddMediaRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddMediaRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddMediaRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddMediaRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddMediaRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddMediaRequest::getDescription()const
{
return description_;
}
void AddMediaRequest::setDescription(const std::string& description)
{
description_ = description;
setParameter("Description", description);
}
std::string AddMediaRequest::getOverrideParams()const
{
return overrideParams_;
}
void AddMediaRequest::setOverrideParams(const std::string& overrideParams)
{
overrideParams_ = overrideParams;
setParameter("OverrideParams", overrideParams);
}
long AddMediaRequest::getOwnerId()const
{
return ownerId_;
}
void AddMediaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddMediaRequest::getTitle()const
{
return title_;
}
void AddMediaRequest::setTitle(const std::string& title)
{
title_ = title;
setParameter("Title", title);
}
bool AddMediaRequest::getInputUnbind()const
{
return inputUnbind_;
}
void AddMediaRequest::setInputUnbind(bool inputUnbind)
{
inputUnbind_ = inputUnbind;
setParameter("InputUnbind", std::to_string(inputUnbind));
}
std::string AddMediaRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddMediaRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddMediaRequest::getTags()const
{
return tags_;
}
void AddMediaRequest::setTags(const std::string& tags)
{
tags_ = tags;
setParameter("Tags", tags);
}
std::string AddMediaRequest::getCoverURL()const
{
return coverURL_;
}
void AddMediaRequest::setCoverURL(const std::string& coverURL)
{
coverURL_ = coverURL;
setParameter("CoverURL", coverURL);
}
long AddMediaRequest::getCateId()const
{
return cateId_;
}
void AddMediaRequest::setCateId(long cateId)
{
cateId_ = cateId;
setParameter("CateId", std::to_string(cateId));
}
std::string AddMediaRequest::getFileURL()const
{
return fileURL_;
}
void AddMediaRequest::setFileURL(const std::string& fileURL)
{
fileURL_ = fileURL;
setParameter("FileURL", fileURL);
}
std::string AddMediaRequest::getMediaWorkflowId()const
{
return mediaWorkflowId_;
}
void AddMediaRequest::setMediaWorkflowId(const std::string& mediaWorkflowId)
{
mediaWorkflowId_ = mediaWorkflowId;
setParameter("MediaWorkflowId", mediaWorkflowId);
}
std::string AddMediaRequest::getMediaWorkflowUserData()const
{
return mediaWorkflowUserData_;
}
void AddMediaRequest::setMediaWorkflowUserData(const std::string& mediaWorkflowUserData)
{
mediaWorkflowUserData_ = mediaWorkflowUserData;
setParameter("MediaWorkflowUserData", mediaWorkflowUserData);
}

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddMediaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddMediaResult::AddMediaResult() :
ServiceResult()
{}
AddMediaResult::AddMediaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddMediaResult::~AddMediaResult()
{}
void AddMediaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto mediaNode = value["Media"];
if(!mediaNode["MediaId"].isNull())
media_.mediaId = mediaNode["MediaId"].asString();
if(!mediaNode["Title"].isNull())
media_.title = mediaNode["Title"].asString();
if(!mediaNode["Description"].isNull())
media_.description = mediaNode["Description"].asString();
if(!mediaNode["CoverURL"].isNull())
media_.coverURL = mediaNode["CoverURL"].asString();
if(!mediaNode["CateId"].isNull())
media_.cateId = std::stol(mediaNode["CateId"].asString());
if(!mediaNode["Duration"].isNull())
media_.duration = mediaNode["Duration"].asString();
if(!mediaNode["Format"].isNull())
media_.format = mediaNode["Format"].asString();
if(!mediaNode["Size"].isNull())
media_.size = mediaNode["Size"].asString();
if(!mediaNode["Bitrate"].isNull())
media_.bitrate = mediaNode["Bitrate"].asString();
if(!mediaNode["Width"].isNull())
media_.width = mediaNode["Width"].asString();
if(!mediaNode["Height"].isNull())
media_.height = mediaNode["Height"].asString();
if(!mediaNode["Fps"].isNull())
media_.fps = mediaNode["Fps"].asString();
if(!mediaNode["PublishState"].isNull())
media_.publishState = mediaNode["PublishState"].asString();
if(!mediaNode["CensorState"].isNull())
media_.censorState = mediaNode["CensorState"].asString();
if(!mediaNode["CreationTime"].isNull())
media_.creationTime = mediaNode["CreationTime"].asString();
auto fileNode = mediaNode["File"];
if(!fileNode["URL"].isNull())
media_.file.uRL = fileNode["URL"].asString();
if(!fileNode["State"].isNull())
media_.file.state = fileNode["State"].asString();
auto allTags = mediaNode["Tags"]["Tag"];
for (auto value : allTags)
media_.tags.push_back(value.asString());
auto allRunIdList = mediaNode["RunIdList"]["RunId"];
for (auto value : allRunIdList)
media_.runIdList.push_back(value.asString());
}
AddMediaResult::Media AddMediaResult::getMedia()const
{
return media_;
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddMediaTagRequest.h>
using AlibabaCloud::Mts::Model::AddMediaTagRequest;
AddMediaTagRequest::AddMediaTagRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddMediaTag")
{}
AddMediaTagRequest::~AddMediaTagRequest()
{}
long AddMediaTagRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddMediaTagRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddMediaTagRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddMediaTagRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddMediaTagRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddMediaTagRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddMediaTagRequest::getTag()const
{
return tag_;
}
void AddMediaTagRequest::setTag(const std::string& tag)
{
tag_ = tag;
setParameter("Tag", tag);
}
long AddMediaTagRequest::getOwnerId()const
{
return ownerId_;
}
void AddMediaTagRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddMediaTagRequest::getMediaId()const
{
return mediaId_;
}
void AddMediaTagRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setParameter("MediaId", mediaId);
}
std::string AddMediaTagRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddMediaTagRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("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/mts/model/AddMediaTagResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddMediaTagResult::AddMediaTagResult() :
ServiceResult()
{}
AddMediaTagResult::AddMediaTagResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddMediaTagResult::~AddMediaTagResult()
{}
void AddMediaTagResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddMediaWorkflowRequest.h>
using AlibabaCloud::Mts::Model::AddMediaWorkflowRequest;
AddMediaWorkflowRequest::AddMediaWorkflowRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddMediaWorkflow")
{}
AddMediaWorkflowRequest::~AddMediaWorkflowRequest()
{}
long AddMediaWorkflowRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddMediaWorkflowRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddMediaWorkflowRequest::getTopology()const
{
return topology_;
}
void AddMediaWorkflowRequest::setTopology(const std::string& topology)
{
topology_ = topology;
setParameter("Topology", topology);
}
std::string AddMediaWorkflowRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddMediaWorkflowRequest::getName()const
{
return name_;
}
void AddMediaWorkflowRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
long AddMediaWorkflowRequest::getOwnerId()const
{
return ownerId_;
}
void AddMediaWorkflowRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddMediaWorkflowRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string AddMediaWorkflowRequest::getTriggerMode()const
{
return triggerMode_;
}
void AddMediaWorkflowRequest::setTriggerMode(const std::string& triggerMode)
{
triggerMode_ = triggerMode;
setParameter("TriggerMode", triggerMode);
}

View File

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

View File

@@ -0,0 +1,137 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddPipelineRequest.h>
using AlibabaCloud::Mts::Model::AddPipelineRequest;
AddPipelineRequest::AddPipelineRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddPipeline")
{}
AddPipelineRequest::~AddPipelineRequest()
{}
long AddPipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddPipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddPipelineRequest::getRole()const
{
return role_;
}
void AddPipelineRequest::setRole(const std::string& role)
{
role_ = role;
setParameter("Role", role);
}
std::string AddPipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddPipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddPipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddPipelineRequest::getName()const
{
return name_;
}
void AddPipelineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddPipelineRequest::getNotifyConfig()const
{
return notifyConfig_;
}
void AddPipelineRequest::setNotifyConfig(const std::string& notifyConfig)
{
notifyConfig_ = notifyConfig;
setParameter("NotifyConfig", notifyConfig);
}
long AddPipelineRequest::getOwnerId()const
{
return ownerId_;
}
void AddPipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long AddPipelineRequest::getSpeedLevel()const
{
return speedLevel_;
}
void AddPipelineRequest::setSpeedLevel(long speedLevel)
{
speedLevel_ = speedLevel;
setParameter("SpeedLevel", std::to_string(speedLevel));
}
std::string AddPipelineRequest::getSpeed()const
{
return speed_;
}
void AddPipelineRequest::setSpeed(const std::string& speed)
{
speed_ = speed;
setParameter("Speed", speed);
}
std::string AddPipelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddPipelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,68 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddPipelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddPipelineResult::AddPipelineResult() :
ServiceResult()
{}
AddPipelineResult::AddPipelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddPipelineResult::~AddPipelineResult()
{}
void AddPipelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto pipelineNode = value["Pipeline"];
if(!pipelineNode["Id"].isNull())
pipeline_.id = pipelineNode["Id"].asString();
if(!pipelineNode["Name"].isNull())
pipeline_.name = pipelineNode["Name"].asString();
if(!pipelineNode["State"].isNull())
pipeline_.state = pipelineNode["State"].asString();
if(!pipelineNode["Speed"].isNull())
pipeline_.speed = pipelineNode["Speed"].asString();
if(!pipelineNode["SpeedLevel"].isNull())
pipeline_.speedLevel = std::stol(pipelineNode["SpeedLevel"].asString());
if(!pipelineNode["Role"].isNull())
pipeline_.role = pipelineNode["Role"].asString();
auto notifyConfigNode = pipelineNode["NotifyConfig"];
if(!notifyConfigNode["Topic"].isNull())
pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["QueueName"].isNull())
pipeline_.notifyConfig.queueName = notifyConfigNode["QueueName"].asString();
}
AddPipelineResult::Pipeline AddPipelineResult::getPipeline()const
{
return pipeline_;
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddPornPipelineRequest.h>
using AlibabaCloud::Mts::Model::AddPornPipelineRequest;
AddPornPipelineRequest::AddPornPipelineRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddPornPipeline")
{}
AddPornPipelineRequest::~AddPornPipelineRequest()
{}
long AddPornPipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddPornPipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddPornPipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddPornPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddPornPipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddPornPipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddPornPipelineRequest::getName()const
{
return name_;
}
void AddPornPipelineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddPornPipelineRequest::getNotifyConfig()const
{
return notifyConfig_;
}
void AddPornPipelineRequest::setNotifyConfig(const std::string& notifyConfig)
{
notifyConfig_ = notifyConfig;
setParameter("NotifyConfig", notifyConfig);
}
long AddPornPipelineRequest::getOwnerId()const
{
return ownerId_;
}
void AddPornPipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int AddPornPipelineRequest::getPriority()const
{
return priority_;
}
void AddPornPipelineRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
std::string AddPornPipelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddPornPipelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddPornPipelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddPornPipelineResult::AddPornPipelineResult() :
ServiceResult()
{}
AddPornPipelineResult::AddPornPipelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddPornPipelineResult::~AddPornPipelineResult()
{}
void AddPornPipelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto pipelineNode = value["Pipeline"];
if(!pipelineNode["Id"].isNull())
pipeline_.id = pipelineNode["Id"].asString();
if(!pipelineNode["Name"].isNull())
pipeline_.name = pipelineNode["Name"].asString();
if(!pipelineNode["Priority"].isNull())
pipeline_.priority = std::stoi(pipelineNode["Priority"].asString());
if(!pipelineNode["State"].isNull())
pipeline_.state = pipelineNode["State"].asString();
auto notifyConfigNode = pipelineNode["NotifyConfig"];
if(!notifyConfigNode["Topic"].isNull())
pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["Queue"].isNull())
pipeline_.notifyConfig.queue = notifyConfigNode["Queue"].asString();
}
AddPornPipelineResult::Pipeline AddPornPipelineResult::getPipeline()const
{
return pipeline_;
}

View File

@@ -0,0 +1,148 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddTemplateRequest.h>
using AlibabaCloud::Mts::Model::AddTemplateRequest;
AddTemplateRequest::AddTemplateRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddTemplate")
{}
AddTemplateRequest::~AddTemplateRequest()
{}
std::string AddTemplateRequest::getContainer()const
{
return container_;
}
void AddTemplateRequest::setContainer(const std::string& container)
{
container_ = container;
setParameter("Container", container);
}
long AddTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddTemplateRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddTemplateRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddTemplateRequest::getName()const
{
return name_;
}
void AddTemplateRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddTemplateRequest::getTransConfig()const
{
return transConfig_;
}
void AddTemplateRequest::setTransConfig(const std::string& transConfig)
{
transConfig_ = transConfig;
setParameter("TransConfig", transConfig);
}
std::string AddTemplateRequest::getMuxConfig()const
{
return muxConfig_;
}
void AddTemplateRequest::setMuxConfig(const std::string& muxConfig)
{
muxConfig_ = muxConfig;
setParameter("MuxConfig", muxConfig);
}
std::string AddTemplateRequest::getVideo()const
{
return video_;
}
void AddTemplateRequest::setVideo(const std::string& video)
{
video_ = video;
setParameter("Video", video);
}
std::string AddTemplateRequest::getAudio()const
{
return audio_;
}
void AddTemplateRequest::setAudio(const std::string& audio)
{
audio_ = audio;
setParameter("Audio", audio);
}
long AddTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void AddTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,154 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddTemplateResult::AddTemplateResult() :
ServiceResult()
{}
AddTemplateResult::AddTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddTemplateResult::~AddTemplateResult()
{}
void AddTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto _templateNode = value["Template"];
if(!_templateNode["Id"].isNull())
_template_.id = _templateNode["Id"].asString();
if(!_templateNode["Name"].isNull())
_template_.name = _templateNode["Name"].asString();
if(!_templateNode["State"].isNull())
_template_.state = _templateNode["State"].asString();
auto containerNode = _templateNode["Container"];
if(!containerNode["Format"].isNull())
_template_.container.format = containerNode["Format"].asString();
auto videoNode = _templateNode["Video"];
if(!videoNode["Codec"].isNull())
_template_.video.codec = videoNode["Codec"].asString();
if(!videoNode["Profile"].isNull())
_template_.video.profile = videoNode["Profile"].asString();
if(!videoNode["Bitrate"].isNull())
_template_.video.bitrate = videoNode["Bitrate"].asString();
if(!videoNode["Crf"].isNull())
_template_.video.crf = videoNode["Crf"].asString();
if(!videoNode["Width"].isNull())
_template_.video.width = videoNode["Width"].asString();
if(!videoNode["Height"].isNull())
_template_.video.height = videoNode["Height"].asString();
if(!videoNode["Fps"].isNull())
_template_.video.fps = videoNode["Fps"].asString();
if(!videoNode["Gop"].isNull())
_template_.video.gop = videoNode["Gop"].asString();
if(!videoNode["Preset"].isNull())
_template_.video.preset = videoNode["Preset"].asString();
if(!videoNode["ScanMode"].isNull())
_template_.video.scanMode = videoNode["ScanMode"].asString();
if(!videoNode["Bufsize"].isNull())
_template_.video.bufsize = videoNode["Bufsize"].asString();
if(!videoNode["Maxrate"].isNull())
_template_.video.maxrate = videoNode["Maxrate"].asString();
if(!videoNode["PixFmt"].isNull())
_template_.video.pixFmt = videoNode["PixFmt"].asString();
if(!videoNode["Degrain"].isNull())
_template_.video.degrain = videoNode["Degrain"].asString();
if(!videoNode["Qscale"].isNull())
_template_.video.qscale = videoNode["Qscale"].asString();
if(!videoNode["Remove"].isNull())
_template_.video.remove = videoNode["Remove"].asString();
if(!videoNode["Crop"].isNull())
_template_.video.crop = videoNode["Crop"].asString();
if(!videoNode["Pad"].isNull())
_template_.video.pad = videoNode["Pad"].asString();
if(!videoNode["MaxFps"].isNull())
_template_.video.maxFps = videoNode["MaxFps"].asString();
auto bitrateBndNode = videoNode["BitrateBnd"];
if(!bitrateBndNode["Max"].isNull())
_template_.video.bitrateBnd.max = bitrateBndNode["Max"].asString();
if(!bitrateBndNode["Min"].isNull())
_template_.video.bitrateBnd.min = bitrateBndNode["Min"].asString();
auto audioNode = _templateNode["Audio"];
if(!audioNode["Codec"].isNull())
_template_.audio.codec = audioNode["Codec"].asString();
if(!audioNode["Profile"].isNull())
_template_.audio.profile = audioNode["Profile"].asString();
if(!audioNode["Samplerate"].isNull())
_template_.audio.samplerate = audioNode["Samplerate"].asString();
if(!audioNode["Bitrate"].isNull())
_template_.audio.bitrate = audioNode["Bitrate"].asString();
if(!audioNode["Channels"].isNull())
_template_.audio.channels = audioNode["Channels"].asString();
if(!audioNode["Qscale"].isNull())
_template_.audio.qscale = audioNode["Qscale"].asString();
if(!audioNode["Remove"].isNull())
_template_.audio.remove = audioNode["Remove"].asString();
auto volumeNode = audioNode["Volume"];
if(!volumeNode["Level"].isNull())
_template_.audio.volume.level = volumeNode["Level"].asString();
if(!volumeNode["Method"].isNull())
_template_.audio.volume.method = volumeNode["Method"].asString();
auto transConfigNode = _templateNode["TransConfig"];
if(!transConfigNode["TransMode"].isNull())
_template_.transConfig.transMode = transConfigNode["TransMode"].asString();
if(!transConfigNode["IsCheckReso"].isNull())
_template_.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString();
if(!transConfigNode["IsCheckResoFail"].isNull())
_template_.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString();
if(!transConfigNode["IsCheckVideoBitrate"].isNull())
_template_.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString();
if(!transConfigNode["IsCheckAudioBitrate"].isNull())
_template_.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString();
if(!transConfigNode["AdjDarMethod"].isNull())
_template_.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString();
if(!transConfigNode["IsCheckVideoBitrateFail"].isNull())
_template_.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString();
if(!transConfigNode["IsCheckAudioBitrateFail"].isNull())
_template_.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString();
auto muxConfigNode = _templateNode["MuxConfig"];
auto segmentNode = muxConfigNode["Segment"];
if(!segmentNode["Duration"].isNull())
_template_.muxConfig.segment.duration = segmentNode["Duration"].asString();
auto gifNode = muxConfigNode["Gif"];
if(!gifNode["Loop"].isNull())
_template_.muxConfig.gif.loop = gifNode["Loop"].asString();
if(!gifNode["FinalDelay"].isNull())
_template_.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString();
if(!gifNode["IsCustomPalette"].isNull())
_template_.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString();
if(!gifNode["DitherMode"].isNull())
_template_.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString();
}
AddTemplateResult::_Template AddTemplateResult::get_Template()const
{
return _template_;
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddTerrorismPipelineRequest.h>
using AlibabaCloud::Mts::Model::AddTerrorismPipelineRequest;
AddTerrorismPipelineRequest::AddTerrorismPipelineRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddTerrorismPipeline")
{}
AddTerrorismPipelineRequest::~AddTerrorismPipelineRequest()
{}
long AddTerrorismPipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddTerrorismPipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddTerrorismPipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddTerrorismPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddTerrorismPipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddTerrorismPipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddTerrorismPipelineRequest::getName()const
{
return name_;
}
void AddTerrorismPipelineRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string AddTerrorismPipelineRequest::getNotifyConfig()const
{
return notifyConfig_;
}
void AddTerrorismPipelineRequest::setNotifyConfig(const std::string& notifyConfig)
{
notifyConfig_ = notifyConfig;
setParameter("NotifyConfig", notifyConfig);
}
long AddTerrorismPipelineRequest::getOwnerId()const
{
return ownerId_;
}
void AddTerrorismPipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
int AddTerrorismPipelineRequest::getPriority()const
{
return priority_;
}
void AddTerrorismPipelineRequest::setPriority(int priority)
{
priority_ = priority;
setParameter("Priority", std::to_string(priority));
}
std::string AddTerrorismPipelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddTerrorismPipelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,64 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddTerrorismPipelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddTerrorismPipelineResult::AddTerrorismPipelineResult() :
ServiceResult()
{}
AddTerrorismPipelineResult::AddTerrorismPipelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddTerrorismPipelineResult::~AddTerrorismPipelineResult()
{}
void AddTerrorismPipelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto pipelineNode = value["Pipeline"];
if(!pipelineNode["Id"].isNull())
pipeline_.id = pipelineNode["Id"].asString();
if(!pipelineNode["Name"].isNull())
pipeline_.name = pipelineNode["Name"].asString();
if(!pipelineNode["Priority"].isNull())
pipeline_.priority = std::stoi(pipelineNode["Priority"].asString());
if(!pipelineNode["State"].isNull())
pipeline_.state = pipelineNode["State"].asString();
auto notifyConfigNode = pipelineNode["NotifyConfig"];
if(!notifyConfigNode["Topic"].isNull())
pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["Queue"].isNull())
pipeline_.notifyConfig.queue = notifyConfigNode["Queue"].asString();
}
AddTerrorismPipelineResult::Pipeline AddTerrorismPipelineResult::getPipeline()const
{
return pipeline_;
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddWaterMarkTemplateRequest.h>
using AlibabaCloud::Mts::Model::AddWaterMarkTemplateRequest;
AddWaterMarkTemplateRequest::AddWaterMarkTemplateRequest() :
RpcServiceRequest("mts", "2014-06-18", "AddWaterMarkTemplate")
{}
AddWaterMarkTemplateRequest::~AddWaterMarkTemplateRequest()
{}
long AddWaterMarkTemplateRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void AddWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string AddWaterMarkTemplateRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void AddWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string AddWaterMarkTemplateRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void AddWaterMarkTemplateRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string AddWaterMarkTemplateRequest::getName()const
{
return name_;
}
void AddWaterMarkTemplateRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
long AddWaterMarkTemplateRequest::getOwnerId()const
{
return ownerId_;
}
void AddWaterMarkTemplateRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string AddWaterMarkTemplateRequest::getConfig()const
{
return config_;
}
void AddWaterMarkTemplateRequest::setConfig(const std::string& config)
{
config_ = config;
setParameter("Config", config);
}
std::string AddWaterMarkTemplateRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void AddWaterMarkTemplateRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

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/mts/model/AddWaterMarkTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddWaterMarkTemplateResult::AddWaterMarkTemplateResult() :
ServiceResult()
{}
AddWaterMarkTemplateResult::AddWaterMarkTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddWaterMarkTemplateResult::~AddWaterMarkTemplateResult()
{}
void AddWaterMarkTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto waterMarkTemplateNode = value["WaterMarkTemplate"];
if(!waterMarkTemplateNode["Id"].isNull())
waterMarkTemplate_.id = waterMarkTemplateNode["Id"].asString();
if(!waterMarkTemplateNode["Name"].isNull())
waterMarkTemplate_.name = waterMarkTemplateNode["Name"].asString();
if(!waterMarkTemplateNode["Width"].isNull())
waterMarkTemplate_.width = waterMarkTemplateNode["Width"].asString();
if(!waterMarkTemplateNode["Height"].isNull())
waterMarkTemplate_.height = waterMarkTemplateNode["Height"].asString();
if(!waterMarkTemplateNode["Dx"].isNull())
waterMarkTemplate_.dx = waterMarkTemplateNode["Dx"].asString();
if(!waterMarkTemplateNode["Dy"].isNull())
waterMarkTemplate_.dy = waterMarkTemplateNode["Dy"].asString();
if(!waterMarkTemplateNode["ReferPos"].isNull())
waterMarkTemplate_.referPos = waterMarkTemplateNode["ReferPos"].asString();
if(!waterMarkTemplateNode["Type"].isNull())
waterMarkTemplate_.type = waterMarkTemplateNode["Type"].asString();
if(!waterMarkTemplateNode["State"].isNull())
waterMarkTemplate_.state = waterMarkTemplateNode["State"].asString();
auto timelineNode = waterMarkTemplateNode["Timeline"];
if(!timelineNode["Start"].isNull())
waterMarkTemplate_.timeline.start = timelineNode["Start"].asString();
if(!timelineNode["Duration"].isNull())
waterMarkTemplate_.timeline.duration = timelineNode["Duration"].asString();
auto ratioReferNode = waterMarkTemplateNode["RatioRefer"];
if(!ratioReferNode["Dx"].isNull())
waterMarkTemplate_.ratioRefer.dx = ratioReferNode["Dx"].asString();
if(!ratioReferNode["Dy"].isNull())
waterMarkTemplate_.ratioRefer.dy = ratioReferNode["Dy"].asString();
if(!ratioReferNode["Width"].isNull())
waterMarkTemplate_.ratioRefer.width = ratioReferNode["Width"].asString();
if(!ratioReferNode["Height"].isNull())
waterMarkTemplate_.ratioRefer.height = ratioReferNode["Height"].asString();
}
AddWaterMarkTemplateResult::WaterMarkTemplate AddWaterMarkTemplateResult::getWaterMarkTemplate()const
{
return waterMarkTemplate_;
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/BindInputBucketRequest.h>
using AlibabaCloud::Mts::Model::BindInputBucketRequest;
BindInputBucketRequest::BindInputBucketRequest() :
RpcServiceRequest("mts", "2014-06-18", "BindInputBucket")
{}
BindInputBucketRequest::~BindInputBucketRequest()
{}
std::string BindInputBucketRequest::getBucket()const
{
return bucket_;
}
void BindInputBucketRequest::setBucket(const std::string& bucket)
{
bucket_ = bucket;
setParameter("Bucket", bucket);
}
long BindInputBucketRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BindInputBucketRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BindInputBucketRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BindInputBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string BindInputBucketRequest::getRoleArn()const
{
return roleArn_;
}
void BindInputBucketRequest::setRoleArn(const std::string& roleArn)
{
roleArn_ = roleArn;
setParameter("RoleArn", roleArn);
}
std::string BindInputBucketRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void BindInputBucketRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long BindInputBucketRequest::getOwnerId()const
{
return ownerId_;
}
void BindInputBucketRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string BindInputBucketRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BindInputBucketRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("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/mts/model/BindInputBucketResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
BindInputBucketResult::BindInputBucketResult() :
ServiceResult()
{}
BindInputBucketResult::BindInputBucketResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindInputBucketResult::~BindInputBucketResult()
{}
void BindInputBucketResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/BindOutputBucketRequest.h>
using AlibabaCloud::Mts::Model::BindOutputBucketRequest;
BindOutputBucketRequest::BindOutputBucketRequest() :
RpcServiceRequest("mts", "2014-06-18", "BindOutputBucket")
{}
BindOutputBucketRequest::~BindOutputBucketRequest()
{}
std::string BindOutputBucketRequest::getBucket()const
{
return bucket_;
}
void BindOutputBucketRequest::setBucket(const std::string& bucket)
{
bucket_ = bucket;
setParameter("Bucket", bucket);
}
long BindOutputBucketRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void BindOutputBucketRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string BindOutputBucketRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void BindOutputBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string BindOutputBucketRequest::getRoleArn()const
{
return roleArn_;
}
void BindOutputBucketRequest::setRoleArn(const std::string& roleArn)
{
roleArn_ = roleArn;
setParameter("RoleArn", roleArn);
}
std::string BindOutputBucketRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void BindOutputBucketRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long BindOutputBucketRequest::getOwnerId()const
{
return ownerId_;
}
void BindOutputBucketRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string BindOutputBucketRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void BindOutputBucketRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("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/mts/model/BindOutputBucketResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
BindOutputBucketResult::BindOutputBucketResult() :
ServiceResult()
{}
BindOutputBucketResult::BindOutputBucketResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
BindOutputBucketResult::~BindOutputBucketResult()
{}
void BindOutputBucketResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

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

View File

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

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

View File

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

View File

@@ -0,0 +1,181 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/CheckResourceRequest.h>
using AlibabaCloud::Mts::Model::CheckResourceRequest;
CheckResourceRequest::CheckResourceRequest() :
RpcServiceRequest("mts", "2014-06-18", "CheckResource")
{}
CheckResourceRequest::~CheckResourceRequest()
{}
std::string CheckResourceRequest::getCountry()const
{
return country_;
}
void CheckResourceRequest::setCountry(const std::string& country)
{
country_ = country;
setParameter("Country", country);
}
long CheckResourceRequest::getHid()const
{
return hid_;
}
void CheckResourceRequest::setHid(long hid)
{
hid_ = hid;
setParameter("Hid", std::to_string(hid));
}
long CheckResourceRequest::getLevel()const
{
return level_;
}
void CheckResourceRequest::setLevel(long level)
{
level_ = level;
setParameter("Level", std::to_string(level));
}
std::string CheckResourceRequest::getInvoker()const
{
return invoker_;
}
void CheckResourceRequest::setInvoker(const std::string& invoker)
{
invoker_ = invoker;
setParameter("Invoker", invoker);
}
std::string CheckResourceRequest::getMessage()const
{
return message_;
}
void CheckResourceRequest::setMessage(const std::string& message)
{
message_ = message;
setParameter("Message", message);
}
std::string CheckResourceRequest::getUrl()const
{
return url_;
}
void CheckResourceRequest::setUrl(const std::string& url)
{
url_ = url;
setParameter("Url", url);
}
bool CheckResourceRequest::getSuccess()const
{
return success_;
}
void CheckResourceRequest::setSuccess(bool success)
{
success_ = success;
setParameter("Success", std::to_string(success));
}
bool CheckResourceRequest::getInterrupt()const
{
return interrupt_;
}
void CheckResourceRequest::setInterrupt(bool interrupt)
{
interrupt_ = interrupt;
setParameter("Interrupt", std::to_string(interrupt));
}
std::string CheckResourceRequest::getGmtWakeup()const
{
return gmtWakeup_;
}
void CheckResourceRequest::setGmtWakeup(const std::string& gmtWakeup)
{
gmtWakeup_ = gmtWakeup;
setParameter("GmtWakeup", gmtWakeup);
}
std::string CheckResourceRequest::getPk()const
{
return pk_;
}
void CheckResourceRequest::setPk(const std::string& pk)
{
pk_ = pk;
setParameter("Pk", pk);
}
std::string CheckResourceRequest::getBid()const
{
return bid_;
}
void CheckResourceRequest::setBid(const std::string& bid)
{
bid_ = bid;
setParameter("Bid", bid);
}
std::string CheckResourceRequest::getPrompt()const
{
return prompt_;
}
void CheckResourceRequest::setPrompt(const std::string& prompt)
{
prompt_ = prompt;
setParameter("Prompt", prompt);
}
std::string CheckResourceRequest::getTaskExtraData()const
{
return taskExtraData_;
}
void CheckResourceRequest::setTaskExtraData(const std::string& taskExtraData)
{
taskExtraData_ = taskExtraData;
setParameter("TaskExtraData", taskExtraData);
}
std::string CheckResourceRequest::getTaskIdentifier()const
{
return taskIdentifier_;
}
void CheckResourceRequest::setTaskIdentifier(const std::string& taskIdentifier)
{
taskIdentifier_ = taskIdentifier;
setParameter("TaskIdentifier", taskIdentifier);
}

View File

@@ -0,0 +1,143 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/CheckResourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
CheckResourceResult::CheckResourceResult() :
ServiceResult()
{}
CheckResourceResult::CheckResourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CheckResourceResult::~CheckResourceResult()
{}
void CheckResourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Interrupt"].isNull())
interrupt_ = value["Interrupt"].asString() == "true";
if(!value["Invoker"].isNull())
invoker_ = value["Invoker"].asString();
if(!value["Pk"].isNull())
pk_ = value["Pk"].asString();
if(!value["Bid"].isNull())
bid_ = value["Bid"].asString();
if(!value["Hid"].isNull())
hid_ = std::stol(value["Hid"].asString());
if(!value["Country"].isNull())
country_ = value["Country"].asString();
if(!value["TaskIdentifier"].isNull())
taskIdentifier_ = value["TaskIdentifier"].asString();
if(!value["TaskExtraData"].isNull())
taskExtraData_ = value["TaskExtraData"].asString();
if(!value["GmtWakeup"].isNull())
gmtWakeup_ = value["GmtWakeup"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Level"].isNull())
level_ = std::stol(value["Level"].asString());
if(!value["Url"].isNull())
url_ = value["Url"].asString();
if(!value["Prompt"].isNull())
prompt_ = value["Prompt"].asString();
}
std::string CheckResourceResult::getGmtWakeup()const
{
return gmtWakeup_;
}
long CheckResourceResult::getHid()const
{
return hid_;
}
std::string CheckResourceResult::getTaskIdentifier()const
{
return taskIdentifier_;
}
std::string CheckResourceResult::getMessage()const
{
return message_;
}
bool CheckResourceResult::getInterrupt()const
{
return interrupt_;
}
bool CheckResourceResult::getSuccess()const
{
return success_;
}
std::string CheckResourceResult::getUrl()const
{
return url_;
}
std::string CheckResourceResult::getInvoker()const
{
return invoker_;
}
std::string CheckResourceResult::getTaskExtraData()const
{
return taskExtraData_;
}
std::string CheckResourceResult::getCountry()const
{
return country_;
}
long CheckResourceResult::getLevel()const
{
return level_;
}
std::string CheckResourceResult::getPrompt()const
{
return prompt_;
}
std::string CheckResourceResult::getPk()const
{
return pk_;
}
std::string CheckResourceResult::getBid()const
{
return bid_;
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/CreateSessionRequest.h>
using AlibabaCloud::Mts::Model::CreateSessionRequest;
CreateSessionRequest::CreateSessionRequest() :
RpcServiceRequest("mts", "2014-06-18", "CreateSession")
{}
CreateSessionRequest::~CreateSessionRequest()
{}
std::string CreateSessionRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void CreateSessionRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
int CreateSessionRequest::getSessionTime()const
{
return sessionTime_;
}
void CreateSessionRequest::setSessionTime(int sessionTime)
{
sessionTime_ = sessionTime;
setParameter("SessionTime", std::to_string(sessionTime));
}
std::string CreateSessionRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void CreateSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string CreateSessionRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void CreateSessionRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string CreateSessionRequest::getEndUserId()const
{
return endUserId_;
}
void CreateSessionRequest::setEndUserId(const std::string& endUserId)
{
endUserId_ = endUserId;
setParameter("EndUserId", endUserId);
}
std::string CreateSessionRequest::getOwnerId()const
{
return ownerId_;
}
void CreateSessionRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string CreateSessionRequest::getMediaId()const
{
return mediaId_;
}
void CreateSessionRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setParameter("MediaId", mediaId);
}
std::string CreateSessionRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateSessionRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/DecryptKeyRequest.h>
using AlibabaCloud::Mts::Model::DecryptKeyRequest;
DecryptKeyRequest::DecryptKeyRequest() :
RpcServiceRequest("mts", "2014-06-18", "DecryptKey")
{}
DecryptKeyRequest::~DecryptKeyRequest()
{}
std::string DecryptKeyRequest::getRand()const
{
return rand_;
}
void DecryptKeyRequest::setRand(const std::string& rand)
{
rand_ = rand;
setParameter("Rand", rand);
}
std::string DecryptKeyRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DecryptKeyRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string DecryptKeyRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DecryptKeyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DecryptKeyRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DecryptKeyRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DecryptKeyRequest::getOwnerId()const
{
return ownerId_;
}
void DecryptKeyRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string DecryptKeyRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DecryptKeyRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string DecryptKeyRequest::getCiphertextBlob()const
{
return ciphertextBlob_;
}
void DecryptKeyRequest::setCiphertextBlob(const std::string& ciphertextBlob)
{
ciphertextBlob_ = ciphertextBlob;
setParameter("CiphertextBlob", ciphertextBlob);
}

View File

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

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/DeleteCategoryRequest.h>
using AlibabaCloud::Mts::Model::DeleteCategoryRequest;
DeleteCategoryRequest::DeleteCategoryRequest() :
RpcServiceRequest("mts", "2014-06-18", "DeleteCategory")
{}
DeleteCategoryRequest::~DeleteCategoryRequest()
{}
long DeleteCategoryRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteCategoryRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteCategoryRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
long DeleteCategoryRequest::getCateId()const
{
return cateId_;
}
void DeleteCategoryRequest::setCateId(long cateId)
{
cateId_ = cateId;
setParameter("CateId", std::to_string(cateId));
}
std::string DeleteCategoryRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteCategoryRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long DeleteCategoryRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteCategoryRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteCategoryRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteCategoryRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("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/mts/model/DeleteCategoryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
DeleteCategoryResult::DeleteCategoryResult() :
ServiceResult()
{}
DeleteCategoryResult::DeleteCategoryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteCategoryResult::~DeleteCategoryResult()
{}
void DeleteCategoryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/DeleteMediaRequest.h>
using AlibabaCloud::Mts::Model::DeleteMediaRequest;
DeleteMediaRequest::DeleteMediaRequest() :
RpcServiceRequest("mts", "2014-06-18", "DeleteMedia")
{}
DeleteMediaRequest::~DeleteMediaRequest()
{}
long DeleteMediaRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteMediaRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteMediaRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteMediaRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteMediaRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteMediaRequest::getMediaIds()const
{
return mediaIds_;
}
void DeleteMediaRequest::setMediaIds(const std::string& mediaIds)
{
mediaIds_ = mediaIds;
setParameter("MediaIds", mediaIds);
}
long DeleteMediaRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMediaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteMediaRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteMediaRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("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/mts/model/DeleteMediaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
DeleteMediaResult::DeleteMediaResult() :
ServiceResult()
{}
DeleteMediaResult::DeleteMediaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMediaResult::~DeleteMediaResult()
{}
void DeleteMediaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

@@ -0,0 +1,104 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/DeleteMediaTagRequest.h>
using AlibabaCloud::Mts::Model::DeleteMediaTagRequest;
DeleteMediaTagRequest::DeleteMediaTagRequest() :
RpcServiceRequest("mts", "2014-06-18", "DeleteMediaTag")
{}
DeleteMediaTagRequest::~DeleteMediaTagRequest()
{}
long DeleteMediaTagRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void DeleteMediaTagRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string DeleteMediaTagRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void DeleteMediaTagRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string DeleteMediaTagRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void DeleteMediaTagRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string DeleteMediaTagRequest::getTag()const
{
return tag_;
}
void DeleteMediaTagRequest::setTag(const std::string& tag)
{
tag_ = tag;
setParameter("Tag", tag);
}
long DeleteMediaTagRequest::getOwnerId()const
{
return ownerId_;
}
void DeleteMediaTagRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string DeleteMediaTagRequest::getMediaId()const
{
return mediaId_;
}
void DeleteMediaTagRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setParameter("MediaId", mediaId);
}
std::string DeleteMediaTagRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteMediaTagRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("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/mts/model/DeleteMediaTagResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
DeleteMediaTagResult::DeleteMediaTagResult() :
ServiceResult()
{}
DeleteMediaTagResult::DeleteMediaTagResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMediaTagResult::~DeleteMediaTagResult()
{}
void DeleteMediaTagResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,137 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/GetLicenseRequest.h>
using AlibabaCloud::Mts::Model::GetLicenseRequest;
GetLicenseRequest::GetLicenseRequest() :
RpcServiceRequest("mts", "2014-06-18", "GetLicense")
{}
GetLicenseRequest::~GetLicenseRequest()
{}
std::string GetLicenseRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetLicenseRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetLicenseRequest::getData()const
{
return data_;
}
void GetLicenseRequest::setData(const std::string& data)
{
data_ = data;
setParameter("Data", data);
}
std::string GetLicenseRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetLicenseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetLicenseRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void GetLicenseRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string GetLicenseRequest::getHeader()const
{
return header_;
}
void GetLicenseRequest::setHeader(const std::string& header)
{
header_ = header;
setParameter("Header", header);
}
std::string GetLicenseRequest::getOwnerId()const
{
return ownerId_;
}
void GetLicenseRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetLicenseRequest::getMediaId()const
{
return mediaId_;
}
void GetLicenseRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setParameter("MediaId", mediaId);
}
std::string GetLicenseRequest::getType()const
{
return type_;
}
void GetLicenseRequest::setType(const std::string& type)
{
type_ = type;
setParameter("Type", type);
}
std::string GetLicenseRequest::getLicenseUrl()const
{
return licenseUrl_;
}
void GetLicenseRequest::setLicenseUrl(const std::string& licenseUrl)
{
licenseUrl_ = licenseUrl;
setParameter("LicenseUrl", licenseUrl);
}
std::string GetLicenseRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetLicenseRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -0,0 +1,93 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/GetPackageRequest.h>
using AlibabaCloud::Mts::Model::GetPackageRequest;
GetPackageRequest::GetPackageRequest() :
RpcServiceRequest("mts", "2014-06-18", "GetPackage")
{}
GetPackageRequest::~GetPackageRequest()
{}
std::string GetPackageRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void GetPackageRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string GetPackageRequest::getData()const
{
return data_;
}
void GetPackageRequest::setData(const std::string& data)
{
data_ = data;
setParameter("Data", data);
}
std::string GetPackageRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void GetPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string GetPackageRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void GetPackageRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string GetPackageRequest::getOwnerId()const
{
return ownerId_;
}
void GetPackageRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string GetPackageRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetPackageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

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

View File

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

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

View File

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

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListAsrPipelineRequest.h>
using AlibabaCloud::Mts::Model::ListAsrPipelineRequest;
ListAsrPipelineRequest::ListAsrPipelineRequest() :
RpcServiceRequest("mts", "2014-06-18", "ListAsrPipeline")
{}
ListAsrPipelineRequest::~ListAsrPipelineRequest()
{}
long ListAsrPipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListAsrPipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListAsrPipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListAsrPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListAsrPipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListAsrPipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ListAsrPipelineRequest::getPageSize()const
{
return pageSize_;
}
void ListAsrPipelineRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListAsrPipelineRequest::getState()const
{
return state_;
}
void ListAsrPipelineRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
}
long ListAsrPipelineRequest::getOwnerId()const
{
return ownerId_;
}
void ListAsrPipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long ListAsrPipelineRequest::getPageNumber()const
{
return pageNumber_;
}
void ListAsrPipelineRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListAsrPipelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListAsrPipelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListAsrPipelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListAsrPipelineResult::ListAsrPipelineResult() :
ServiceResult()
{}
ListAsrPipelineResult::ListAsrPipelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListAsrPipelineResult::~ListAsrPipelineResult()
{}
void ListAsrPipelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPipelineList = value["PipelineList"]["Pipeline"];
for (auto value : allPipelineList)
{
Pipeline pipelineListObject;
if(!value["Id"].isNull())
pipelineListObject.id = value["Id"].asString();
if(!value["Name"].isNull())
pipelineListObject.name = value["Name"].asString();
if(!value["State"].isNull())
pipelineListObject.state = value["State"].asString();
if(!value["Priority"].isNull())
pipelineListObject.priority = value["Priority"].asString();
auto notifyConfigNode = value["NotifyConfig"];
if(!notifyConfigNode["Topic"].isNull())
pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["QueueName"].isNull())
pipelineListObject.notifyConfig.queueName = notifyConfigNode["QueueName"].asString();
pipelineList_.push_back(pipelineListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long ListAsrPipelineResult::getTotalCount()const
{
return totalCount_;
}
long ListAsrPipelineResult::getPageSize()const
{
return pageSize_;
}
long ListAsrPipelineResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListAsrPipelineResult::Pipeline> ListAsrPipelineResult::getPipelineList()const
{
return pipelineList_;
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListCensorPipelineRequest.h>
using AlibabaCloud::Mts::Model::ListCensorPipelineRequest;
ListCensorPipelineRequest::ListCensorPipelineRequest() :
RpcServiceRequest("mts", "2014-06-18", "ListCensorPipeline")
{}
ListCensorPipelineRequest::~ListCensorPipelineRequest()
{}
long ListCensorPipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListCensorPipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListCensorPipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListCensorPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListCensorPipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListCensorPipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ListCensorPipelineRequest::getPageSize()const
{
return pageSize_;
}
void ListCensorPipelineRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListCensorPipelineRequest::getState()const
{
return state_;
}
void ListCensorPipelineRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
}
long ListCensorPipelineRequest::getOwnerId()const
{
return ownerId_;
}
void ListCensorPipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long ListCensorPipelineRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCensorPipelineRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCensorPipelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListCensorPipelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListCensorPipelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListCensorPipelineResult::ListCensorPipelineResult() :
ServiceResult()
{}
ListCensorPipelineResult::ListCensorPipelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCensorPipelineResult::~ListCensorPipelineResult()
{}
void ListCensorPipelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPipelineList = value["PipelineList"]["Pipeline"];
for (auto value : allPipelineList)
{
Pipeline pipelineListObject;
if(!value["Id"].isNull())
pipelineListObject.id = value["Id"].asString();
if(!value["Name"].isNull())
pipelineListObject.name = value["Name"].asString();
if(!value["State"].isNull())
pipelineListObject.state = value["State"].asString();
if(!value["Priority"].isNull())
pipelineListObject.priority = value["Priority"].asString();
auto notifyConfigNode = value["NotifyConfig"];
if(!notifyConfigNode["Topic"].isNull())
pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["Queue"].isNull())
pipelineListObject.notifyConfig.queue = notifyConfigNode["Queue"].asString();
pipelineList_.push_back(pipelineListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long ListCensorPipelineResult::getTotalCount()const
{
return totalCount_;
}
long ListCensorPipelineResult::getPageSize()const
{
return pageSize_;
}
long ListCensorPipelineResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListCensorPipelineResult::Pipeline> ListCensorPipelineResult::getPipelineList()const
{
return pipelineList_;
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListCoverPipelineRequest.h>
using AlibabaCloud::Mts::Model::ListCoverPipelineRequest;
ListCoverPipelineRequest::ListCoverPipelineRequest() :
RpcServiceRequest("mts", "2014-06-18", "ListCoverPipeline")
{}
ListCoverPipelineRequest::~ListCoverPipelineRequest()
{}
long ListCoverPipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListCoverPipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListCoverPipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListCoverPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListCoverPipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListCoverPipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ListCoverPipelineRequest::getPageSize()const
{
return pageSize_;
}
void ListCoverPipelineRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListCoverPipelineRequest::getState()const
{
return state_;
}
void ListCoverPipelineRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
}
long ListCoverPipelineRequest::getOwnerId()const
{
return ownerId_;
}
void ListCoverPipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long ListCoverPipelineRequest::getPageNumber()const
{
return pageNumber_;
}
void ListCoverPipelineRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListCoverPipelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListCoverPipelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,97 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListCoverPipelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListCoverPipelineResult::ListCoverPipelineResult() :
ServiceResult()
{}
ListCoverPipelineResult::ListCoverPipelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCoverPipelineResult::~ListCoverPipelineResult()
{}
void ListCoverPipelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPipelineList = value["PipelineList"]["Pipeline"];
for (auto value : allPipelineList)
{
Pipeline pipelineListObject;
if(!value["UserId"].isNull())
pipelineListObject.userId = std::stol(value["UserId"].asString());
if(!value["PipelineId"].isNull())
pipelineListObject.pipelineId = value["PipelineId"].asString();
if(!value["Name"].isNull())
pipelineListObject.name = value["Name"].asString();
if(!value["State"].isNull())
pipelineListObject.state = value["State"].asString();
if(!value["Priority"].isNull())
pipelineListObject.priority = value["Priority"].asString();
if(!value["quotaNum"].isNull())
pipelineListObject.quotaNum = std::stoi(value["quotaNum"].asString());
if(!value["quotaUsed"].isNull())
pipelineListObject.quotaUsed = std::stoi(value["quotaUsed"].asString());
if(!value["NotifyConfig"].isNull())
pipelineListObject.notifyConfig = value["NotifyConfig"].asString();
if(!value["Role"].isNull())
pipelineListObject.role = value["Role"].asString();
if(!value["ExtendConfig"].isNull())
pipelineListObject.extendConfig = value["ExtendConfig"].asString();
pipelineList_.push_back(pipelineListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long ListCoverPipelineResult::getTotalCount()const
{
return totalCount_;
}
long ListCoverPipelineResult::getPageSize()const
{
return pageSize_;
}
long ListCoverPipelineResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListCoverPipelineResult::Pipeline> ListCoverPipelineResult::getPipelineList()const
{
return pipelineList_;
}

View File

@@ -0,0 +1,148 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListJobRequest.h>
using AlibabaCloud::Mts::Model::ListJobRequest;
ListJobRequest::ListJobRequest() :
RpcServiceRequest("mts", "2014-06-18", "ListJob")
{}
ListJobRequest::~ListJobRequest()
{}
long ListJobRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListJobRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListJobRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListJobRequest::getNextPageToken()const
{
return nextPageToken_;
}
void ListJobRequest::setNextPageToken(const std::string& nextPageToken)
{
nextPageToken_ = nextPageToken;
setParameter("NextPageToken", nextPageToken);
}
std::string ListJobRequest::getStartOfJobCreatedTimeRange()const
{
return startOfJobCreatedTimeRange_;
}
void ListJobRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange)
{
startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange;
setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange);
}
std::string ListJobRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListJobRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ListJobRequest::getMaximumPageSize()const
{
return maximumPageSize_;
}
void ListJobRequest::setMaximumPageSize(long maximumPageSize)
{
maximumPageSize_ = maximumPageSize;
setParameter("MaximumPageSize", std::to_string(maximumPageSize));
}
std::string ListJobRequest::getState()const
{
return state_;
}
void ListJobRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
}
long ListJobRequest::getOwnerId()const
{
return ownerId_;
}
void ListJobRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ListJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string ListJobRequest::getEndOfJobCreatedTimeRange()const
{
return endOfJobCreatedTimeRange_;
}
void ListJobRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange)
{
endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange;
setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange);
}
std::string ListJobRequest::getPipelineId()const
{
return pipelineId_;
}
void ListJobRequest::setPipelineId(const std::string& pipelineId)
{
pipelineId_ = pipelineId;
setParameter("PipelineId", pipelineId);
}

View File

@@ -0,0 +1,507 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListJobResult::ListJobResult() :
ServiceResult()
{}
ListJobResult::ListJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListJobResult::~ListJobResult()
{}
void ListJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobList = value["JobList"]["Job"];
for (auto value : allJobList)
{
Job jobListObject;
if(!value["JobId"].isNull())
jobListObject.jobId = value["JobId"].asString();
if(!value["State"].isNull())
jobListObject.state = value["State"].asString();
if(!value["Code"].isNull())
jobListObject.code = value["Code"].asString();
if(!value["Message"].isNull())
jobListObject.message = value["Message"].asString();
if(!value["Percent"].isNull())
jobListObject.percent = std::stol(value["Percent"].asString());
if(!value["PipelineId"].isNull())
jobListObject.pipelineId = value["PipelineId"].asString();
if(!value["CreationTime"].isNull())
jobListObject.creationTime = value["CreationTime"].asString();
if(!value["FinishTime"].isNull())
jobListObject.finishTime = value["FinishTime"].asString();
auto inputNode = value["Input"];
if(!inputNode["Bucket"].isNull())
jobListObject.input.bucket = inputNode["Bucket"].asString();
if(!inputNode["Location"].isNull())
jobListObject.input.location = inputNode["Location"].asString();
if(!inputNode["Object"].isNull())
jobListObject.input.object = inputNode["Object"].asString();
auto outputNode = value["Output"];
if(!outputNode["TemplateId"].isNull())
jobListObject.output.templateId = outputNode["TemplateId"].asString();
if(!outputNode["UserData"].isNull())
jobListObject.output.userData = outputNode["UserData"].asString();
if(!outputNode["Rotate"].isNull())
jobListObject.output.rotate = outputNode["Rotate"].asString();
if(!outputNode["VideoStreamMap"].isNull())
jobListObject.output.videoStreamMap = outputNode["VideoStreamMap"].asString();
if(!outputNode["AudioStreamMap"].isNull())
jobListObject.output.audioStreamMap = outputNode["AudioStreamMap"].asString();
if(!outputNode["DeWatermark"].isNull())
jobListObject.output.deWatermark = outputNode["DeWatermark"].asString();
if(!outputNode["Priority"].isNull())
jobListObject.output.priority = outputNode["Priority"].asString();
if(!outputNode["WaterMarkConfigUrl"].isNull())
jobListObject.output.waterMarkConfigUrl = outputNode["WaterMarkConfigUrl"].asString();
if(!outputNode["MergeConfigUrl"].isNull())
jobListObject.output.mergeConfigUrl = outputNode["MergeConfigUrl"].asString();
auto allWaterMarkList = value["WaterMarkList"]["WaterMark"];
for (auto value : allWaterMarkList)
{
Job::Output::WaterMark waterMarkObject;
if(!value["WaterMarkTemplateId"].isNull())
waterMarkObject.waterMarkTemplateId = value["WaterMarkTemplateId"].asString();
if(!value["Width"].isNull())
waterMarkObject.width = value["Width"].asString();
if(!value["Height"].isNull())
waterMarkObject.height = value["Height"].asString();
if(!value["Dx"].isNull())
waterMarkObject.dx = value["Dx"].asString();
if(!value["Dy"].isNull())
waterMarkObject.dy = value["Dy"].asString();
if(!value["ReferPos"].isNull())
waterMarkObject.referPos = value["ReferPos"].asString();
if(!value["Type"].isNull())
waterMarkObject.type = value["Type"].asString();
auto inputFileNode = value["InputFile"];
if(!inputFileNode["Bucket"].isNull())
waterMarkObject.inputFile.bucket = inputFileNode["Bucket"].asString();
if(!inputFileNode["Location"].isNull())
waterMarkObject.inputFile.location = inputFileNode["Location"].asString();
if(!inputFileNode["Object"].isNull())
waterMarkObject.inputFile.object = inputFileNode["Object"].asString();
jobListObject.output.waterMarkList.push_back(waterMarkObject);
}
auto allMergeList = value["MergeList"]["Merge"];
for (auto value : allMergeList)
{
Job::Output::Merge mergeObject;
if(!value["MergeURL"].isNull())
mergeObject.mergeURL = value["MergeURL"].asString();
if(!value["Start"].isNull())
mergeObject.start = value["Start"].asString();
if(!value["Duration"].isNull())
mergeObject.duration = value["Duration"].asString();
if(!value["RoleArn"].isNull())
mergeObject.roleArn = value["RoleArn"].asString();
jobListObject.output.mergeList.push_back(mergeObject);
}
auto allOpeningList = value["OpeningList"]["Opening"];
for (auto value : allOpeningList)
{
Job::Output::Opening openingObject;
if(!value["openUrl"].isNull())
openingObject.openUrl = value["openUrl"].asString();
if(!value["Start"].isNull())
openingObject.start = value["Start"].asString();
if(!value["Width"].isNull())
openingObject.width = value["Width"].asString();
if(!value["Height"].isNull())
openingObject.height = value["Height"].asString();
jobListObject.output.openingList.push_back(openingObject);
}
auto allTailSlateList = value["TailSlateList"]["TailSlate"];
for (auto value : allTailSlateList)
{
Job::Output::TailSlate tailSlateObject;
if(!value["TailUrl"].isNull())
tailSlateObject.tailUrl = value["TailUrl"].asString();
if(!value["Start"].isNull())
tailSlateObject.start = value["Start"].asString();
if(!value["BlendDuration"].isNull())
tailSlateObject.blendDuration = value["BlendDuration"].asString();
if(!value["Width"].isNull())
tailSlateObject.width = value["Width"].asString();
if(!value["Height"].isNull())
tailSlateObject.height = value["Height"].asString();
if(!value["IsMergeAudio"].isNull())
tailSlateObject.isMergeAudio = value["IsMergeAudio"].asString() == "true";
if(!value["BgColor"].isNull())
tailSlateObject.bgColor = value["BgColor"].asString();
jobListObject.output.tailSlateList.push_back(tailSlateObject);
}
auto allOutSubtitleList = value["OutSubtitleList"]["OutSubtitle"];
for (auto value : allOutSubtitleList)
{
Job::Output::OutSubtitle outSubtitleObject;
if(!value["Map"].isNull())
outSubtitleObject.map = value["Map"].asString();
if(!value["Success"].isNull())
outSubtitleObject.success = value["Success"].asString() == "true";
if(!value["Message"].isNull())
outSubtitleObject.message = value["Message"].asString();
auto outSubtitleFileNode = value["OutSubtitleFile"];
if(!outSubtitleFileNode["Bucket"].isNull())
outSubtitleObject.outSubtitleFile.bucket = outSubtitleFileNode["Bucket"].asString();
if(!outSubtitleFileNode["Location"].isNull())
outSubtitleObject.outSubtitleFile.location = outSubtitleFileNode["Location"].asString();
if(!outSubtitleFileNode["Object"].isNull())
outSubtitleObject.outSubtitleFile.object = outSubtitleFileNode["Object"].asString();
if(!outSubtitleFileNode["RoleArn"].isNull())
outSubtitleObject.outSubtitleFile.roleArn = outSubtitleFileNode["RoleArn"].asString();
jobListObject.output.outSubtitleList.push_back(outSubtitleObject);
}
auto outputFileNode = outputNode["OutputFile"];
if(!outputFileNode["Bucket"].isNull())
jobListObject.output.outputFile.bucket = outputFileNode["Bucket"].asString();
if(!outputFileNode["Location"].isNull())
jobListObject.output.outputFile.location = outputFileNode["Location"].asString();
if(!outputFileNode["Object"].isNull())
jobListObject.output.outputFile.object = outputFileNode["Object"].asString();
if(!outputFileNode["RoleArn"].isNull())
jobListObject.output.outputFile.roleArn = outputFileNode["RoleArn"].asString();
auto m3U8NonStandardSupportNode = outputNode["M3U8NonStandardSupport"];
auto tSNode = m3U8NonStandardSupportNode["TS"];
if(!tSNode["Md5Support"].isNull())
jobListObject.output.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true";
if(!tSNode["SizeSupport"].isNull())
jobListObject.output.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true";
auto propertiesNode = outputNode["Properties"];
if(!propertiesNode["Width"].isNull())
jobListObject.output.properties.width = propertiesNode["Width"].asString();
if(!propertiesNode["Height"].isNull())
jobListObject.output.properties.height = propertiesNode["Height"].asString();
if(!propertiesNode["Bitrate"].isNull())
jobListObject.output.properties.bitrate = propertiesNode["Bitrate"].asString();
if(!propertiesNode["Duration"].isNull())
jobListObject.output.properties.duration = propertiesNode["Duration"].asString();
if(!propertiesNode["Fps"].isNull())
jobListObject.output.properties.fps = propertiesNode["Fps"].asString();
if(!propertiesNode["FileSize"].isNull())
jobListObject.output.properties.fileSize = propertiesNode["FileSize"].asString();
if(!propertiesNode["FileFormat"].isNull())
jobListObject.output.properties.fileFormat = propertiesNode["FileFormat"].asString();
auto streamsNode = propertiesNode["Streams"];
auto allVideoStreamList = value["VideoStreamList"]["VideoStream"];
for (auto value : allVideoStreamList)
{
Job::Output::Properties::Streams::VideoStream videoStreamObject;
if(!value["Index"].isNull())
videoStreamObject.index = value["Index"].asString();
if(!value["CodecName"].isNull())
videoStreamObject.codecName = value["CodecName"].asString();
if(!value["CodecLongName"].isNull())
videoStreamObject.codecLongName = value["CodecLongName"].asString();
if(!value["Profile"].isNull())
videoStreamObject.profile = value["Profile"].asString();
if(!value["CodecTimeBase"].isNull())
videoStreamObject.codecTimeBase = value["CodecTimeBase"].asString();
if(!value["CodecTagString"].isNull())
videoStreamObject.codecTagString = value["CodecTagString"].asString();
if(!value["CodecTag"].isNull())
videoStreamObject.codecTag = value["CodecTag"].asString();
if(!value["Width"].isNull())
videoStreamObject.width = value["Width"].asString();
if(!value["Height"].isNull())
videoStreamObject.height = value["Height"].asString();
if(!value["HasBFrames"].isNull())
videoStreamObject.hasBFrames = value["HasBFrames"].asString();
if(!value["Sar"].isNull())
videoStreamObject.sar = value["Sar"].asString();
if(!value["Dar"].isNull())
videoStreamObject.dar = value["Dar"].asString();
if(!value["PixFmt"].isNull())
videoStreamObject.pixFmt = value["PixFmt"].asString();
if(!value["Level"].isNull())
videoStreamObject.level = value["Level"].asString();
if(!value["Fps"].isNull())
videoStreamObject.fps = value["Fps"].asString();
if(!value["AvgFPS"].isNull())
videoStreamObject.avgFPS = value["AvgFPS"].asString();
if(!value["Timebase"].isNull())
videoStreamObject.timebase = value["Timebase"].asString();
if(!value["StartTime"].isNull())
videoStreamObject.startTime = value["StartTime"].asString();
if(!value["Duration"].isNull())
videoStreamObject.duration = value["Duration"].asString();
if(!value["Bitrate"].isNull())
videoStreamObject.bitrate = value["Bitrate"].asString();
if(!value["NumFrames"].isNull())
videoStreamObject.numFrames = value["NumFrames"].asString();
if(!value["Lang"].isNull())
videoStreamObject.lang = value["Lang"].asString();
auto networkCostNode = value["NetworkCost"];
if(!networkCostNode["PreloadTime"].isNull())
videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString();
if(!networkCostNode["CostBandwidth"].isNull())
videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString();
if(!networkCostNode["AvgBitrate"].isNull())
videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString();
jobListObject.output.properties.streams.videoStreamList.push_back(videoStreamObject);
}
auto allAudioStreamList = value["AudioStreamList"]["AudioStream"];
for (auto value : allAudioStreamList)
{
Job::Output::Properties::Streams::AudioStream audioStreamObject;
if(!value["Index"].isNull())
audioStreamObject.index = value["Index"].asString();
if(!value["CodecName"].isNull())
audioStreamObject.codecName = value["CodecName"].asString();
if(!value["CodecTimeBase"].isNull())
audioStreamObject.codecTimeBase = value["CodecTimeBase"].asString();
if(!value["CodecLongName"].isNull())
audioStreamObject.codecLongName = value["CodecLongName"].asString();
if(!value["CodecTagString"].isNull())
audioStreamObject.codecTagString = value["CodecTagString"].asString();
if(!value["CodecTag"].isNull())
audioStreamObject.codecTag = value["CodecTag"].asString();
if(!value["SampleFmt"].isNull())
audioStreamObject.sampleFmt = value["SampleFmt"].asString();
if(!value["Samplerate"].isNull())
audioStreamObject.samplerate = value["Samplerate"].asString();
if(!value["Channels"].isNull())
audioStreamObject.channels = value["Channels"].asString();
if(!value["ChannelLayout"].isNull())
audioStreamObject.channelLayout = value["ChannelLayout"].asString();
if(!value["Timebase"].isNull())
audioStreamObject.timebase = value["Timebase"].asString();
if(!value["StartTime"].isNull())
audioStreamObject.startTime = value["StartTime"].asString();
if(!value["Duration"].isNull())
audioStreamObject.duration = value["Duration"].asString();
if(!value["Bitrate"].isNull())
audioStreamObject.bitrate = value["Bitrate"].asString();
if(!value["NumFrames"].isNull())
audioStreamObject.numFrames = value["NumFrames"].asString();
if(!value["Lang"].isNull())
audioStreamObject.lang = value["Lang"].asString();
jobListObject.output.properties.streams.audioStreamList.push_back(audioStreamObject);
}
auto allSubtitleStreamList = value["SubtitleStreamList"]["SubtitleStream"];
for (auto value : allSubtitleStreamList)
{
Job::Output::Properties::Streams::SubtitleStream subtitleStreamObject;
if(!value["Index"].isNull())
subtitleStreamObject.index = value["Index"].asString();
if(!value["Lang"].isNull())
subtitleStreamObject.lang = value["Lang"].asString();
jobListObject.output.properties.streams.subtitleStreamList.push_back(subtitleStreamObject);
}
auto formatNode = propertiesNode["Format"];
if(!formatNode["NumStreams"].isNull())
jobListObject.output.properties.format.numStreams = formatNode["NumStreams"].asString();
if(!formatNode["NumPrograms"].isNull())
jobListObject.output.properties.format.numPrograms = formatNode["NumPrograms"].asString();
if(!formatNode["FormatName"].isNull())
jobListObject.output.properties.format.formatName = formatNode["FormatName"].asString();
if(!formatNode["FormatLongName"].isNull())
jobListObject.output.properties.format.formatLongName = formatNode["FormatLongName"].asString();
if(!formatNode["StartTime"].isNull())
jobListObject.output.properties.format.startTime = formatNode["StartTime"].asString();
if(!formatNode["Duration"].isNull())
jobListObject.output.properties.format.duration = formatNode["Duration"].asString();
if(!formatNode["Size"].isNull())
jobListObject.output.properties.format.size = formatNode["Size"].asString();
if(!formatNode["Bitrate"].isNull())
jobListObject.output.properties.format.bitrate = formatNode["Bitrate"].asString();
auto clipNode = outputNode["Clip"];
auto timeSpanNode = clipNode["TimeSpan"];
if(!timeSpanNode["Seek"].isNull())
jobListObject.output.clip.timeSpan.seek = timeSpanNode["Seek"].asString();
if(!timeSpanNode["Duration"].isNull())
jobListObject.output.clip.timeSpan.duration = timeSpanNode["Duration"].asString();
auto superResoNode = outputNode["SuperReso"];
if(!superResoNode["IsHalfSample"].isNull())
jobListObject.output.superReso.isHalfSample = superResoNode["IsHalfSample"].asString();
auto subtitleConfigNode = outputNode["SubtitleConfig"];
auto allSubtitleList = value["SubtitleList"]["Subtitle"];
for (auto value : allSubtitleList)
{
Job::Output::SubtitleConfig::Subtitle subtitleObject;
if(!value["Map"].isNull())
subtitleObject.map = value["Map"].asString();
jobListObject.output.subtitleConfig.subtitleList.push_back(subtitleObject);
}
auto allExtSubtitleList = value["ExtSubtitleList"]["ExtSubtitle"];
for (auto value : allExtSubtitleList)
{
Job::Output::SubtitleConfig::ExtSubtitle extSubtitleObject;
if(!value["FontName"].isNull())
extSubtitleObject.fontName = value["FontName"].asString();
if(!value["CharEnc"].isNull())
extSubtitleObject.charEnc = value["CharEnc"].asString();
auto input1Node = value["Input"];
if(!input1Node["Bucket"].isNull())
extSubtitleObject.input1.bucket = input1Node["Bucket"].asString();
if(!input1Node["Location"].isNull())
extSubtitleObject.input1.location = input1Node["Location"].asString();
if(!input1Node["Object"].isNull())
extSubtitleObject.input1.object = input1Node["Object"].asString();
jobListObject.output.subtitleConfig.extSubtitleList.push_back(extSubtitleObject);
}
auto transConfigNode = outputNode["TransConfig"];
if(!transConfigNode["TransMode"].isNull())
jobListObject.output.transConfig.transMode = transConfigNode["TransMode"].asString();
if(!transConfigNode["IsCheckReso"].isNull())
jobListObject.output.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString();
if(!transConfigNode["IsCheckResoFail"].isNull())
jobListObject.output.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString();
if(!transConfigNode["IsCheckVideoBitrate"].isNull())
jobListObject.output.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString();
if(!transConfigNode["IsCheckAudioBitrate"].isNull())
jobListObject.output.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString();
if(!transConfigNode["AdjDarMethod"].isNull())
jobListObject.output.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString();
if(!transConfigNode["IsCheckVideoBitrateFail"].isNull())
jobListObject.output.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString();
if(!transConfigNode["IsCheckAudioBitrateFail"].isNull())
jobListObject.output.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString();
auto muxConfigNode = outputNode["MuxConfig"];
auto segmentNode = muxConfigNode["Segment"];
if(!segmentNode["Duration"].isNull())
jobListObject.output.muxConfig.segment.duration = segmentNode["Duration"].asString();
auto gifNode = muxConfigNode["Gif"];
if(!gifNode["Loop"].isNull())
jobListObject.output.muxConfig.gif.loop = gifNode["Loop"].asString();
if(!gifNode["FinalDelay"].isNull())
jobListObject.output.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString();
if(!gifNode["IsCustomPalette"].isNull())
jobListObject.output.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString();
if(!gifNode["DitherMode"].isNull())
jobListObject.output.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString();
auto webpNode = muxConfigNode["Webp"];
if(!webpNode["Loop"].isNull())
jobListObject.output.muxConfig.webp.loop = webpNode["Loop"].asString();
auto audioNode = outputNode["Audio"];
if(!audioNode["Codec"].isNull())
jobListObject.output.audio.codec = audioNode["Codec"].asString();
if(!audioNode["Profile"].isNull())
jobListObject.output.audio.profile = audioNode["Profile"].asString();
if(!audioNode["Samplerate"].isNull())
jobListObject.output.audio.samplerate = audioNode["Samplerate"].asString();
if(!audioNode["Bitrate"].isNull())
jobListObject.output.audio.bitrate = audioNode["Bitrate"].asString();
if(!audioNode["Channels"].isNull())
jobListObject.output.audio.channels = audioNode["Channels"].asString();
if(!audioNode["Qscale"].isNull())
jobListObject.output.audio.qscale = audioNode["Qscale"].asString();
auto volumeNode = audioNode["Volume"];
if(!volumeNode["Level"].isNull())
jobListObject.output.audio.volume.level = volumeNode["Level"].asString();
if(!volumeNode["Method"].isNull())
jobListObject.output.audio.volume.method = volumeNode["Method"].asString();
auto videoNode = outputNode["Video"];
if(!videoNode["Codec"].isNull())
jobListObject.output.video.codec = videoNode["Codec"].asString();
if(!videoNode["Profile"].isNull())
jobListObject.output.video.profile = videoNode["Profile"].asString();
if(!videoNode["Bitrate"].isNull())
jobListObject.output.video.bitrate = videoNode["Bitrate"].asString();
if(!videoNode["Crf"].isNull())
jobListObject.output.video.crf = videoNode["Crf"].asString();
if(!videoNode["Width"].isNull())
jobListObject.output.video.width = videoNode["Width"].asString();
if(!videoNode["Height"].isNull())
jobListObject.output.video.height = videoNode["Height"].asString();
if(!videoNode["Fps"].isNull())
jobListObject.output.video.fps = videoNode["Fps"].asString();
if(!videoNode["Gop"].isNull())
jobListObject.output.video.gop = videoNode["Gop"].asString();
if(!videoNode["Preset"].isNull())
jobListObject.output.video.preset = videoNode["Preset"].asString();
if(!videoNode["ScanMode"].isNull())
jobListObject.output.video.scanMode = videoNode["ScanMode"].asString();
if(!videoNode["Bufsize"].isNull())
jobListObject.output.video.bufsize = videoNode["Bufsize"].asString();
if(!videoNode["Maxrate"].isNull())
jobListObject.output.video.maxrate = videoNode["Maxrate"].asString();
if(!videoNode["PixFmt"].isNull())
jobListObject.output.video.pixFmt = videoNode["PixFmt"].asString();
if(!videoNode["Degrain"].isNull())
jobListObject.output.video.degrain = videoNode["Degrain"].asString();
if(!videoNode["Qscale"].isNull())
jobListObject.output.video.qscale = videoNode["Qscale"].asString();
if(!videoNode["Crop"].isNull())
jobListObject.output.video.crop = videoNode["Crop"].asString();
if(!videoNode["Pad"].isNull())
jobListObject.output.video.pad = videoNode["Pad"].asString();
if(!videoNode["MaxFps"].isNull())
jobListObject.output.video.maxFps = videoNode["MaxFps"].asString();
if(!videoNode["ResoPriority"].isNull())
jobListObject.output.video.resoPriority = videoNode["ResoPriority"].asString();
auto bitrateBndNode = videoNode["BitrateBnd"];
if(!bitrateBndNode["Max"].isNull())
jobListObject.output.video.bitrateBnd.max = bitrateBndNode["Max"].asString();
if(!bitrateBndNode["Min"].isNull())
jobListObject.output.video.bitrateBnd.min = bitrateBndNode["Min"].asString();
auto containerNode = outputNode["Container"];
if(!containerNode["Format"].isNull())
jobListObject.output.container.format = containerNode["Format"].asString();
auto encryptionNode = outputNode["Encryption"];
if(!encryptionNode["Type"].isNull())
jobListObject.output.encryption.type = encryptionNode["Type"].asString();
if(!encryptionNode["Id"].isNull())
jobListObject.output.encryption.id = encryptionNode["Id"].asString();
if(!encryptionNode["Key"].isNull())
jobListObject.output.encryption.key = encryptionNode["Key"].asString();
if(!encryptionNode["KeyUri"].isNull())
jobListObject.output.encryption.keyUri = encryptionNode["KeyUri"].asString();
if(!encryptionNode["KeyType"].isNull())
jobListObject.output.encryption.keyType = encryptionNode["KeyType"].asString();
if(!encryptionNode["SkipCnt"].isNull())
jobListObject.output.encryption.skipCnt = encryptionNode["SkipCnt"].asString();
auto mNSMessageResultNode = value["MNSMessageResult"];
if(!mNSMessageResultNode["MessageId"].isNull())
jobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString();
if(!mNSMessageResultNode["ErrorMessage"].isNull())
jobListObject.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString();
if(!mNSMessageResultNode["ErrorCode"].isNull())
jobListObject.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString();
jobList_.push_back(jobListObject);
}
if(!value["NextPageToken"].isNull())
nextPageToken_ = value["NextPageToken"].asString();
}
std::string ListJobResult::getNextPageToken()const
{
return nextPageToken_;
}
std::vector<ListJobResult::Job> ListJobResult::getJobList()const
{
return jobList_;
}

View File

@@ -0,0 +1,126 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListMediaRequest.h>
using AlibabaCloud::Mts::Model::ListMediaRequest;
ListMediaRequest::ListMediaRequest() :
RpcServiceRequest("mts", "2014-06-18", "ListMedia")
{}
ListMediaRequest::~ListMediaRequest()
{}
long ListMediaRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListMediaRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListMediaRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListMediaRequest::getNextPageToken()const
{
return nextPageToken_;
}
void ListMediaRequest::setNextPageToken(const std::string& nextPageToken)
{
nextPageToken_ = nextPageToken;
setParameter("NextPageToken", nextPageToken);
}
std::string ListMediaRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListMediaRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ListMediaRequest::getMaximumPageSize()const
{
return maximumPageSize_;
}
void ListMediaRequest::setMaximumPageSize(long maximumPageSize)
{
maximumPageSize_ = maximumPageSize;
setParameter("MaximumPageSize", std::to_string(maximumPageSize));
}
std::string ListMediaRequest::getFrom()const
{
return from_;
}
void ListMediaRequest::setFrom(const std::string& from)
{
from_ = from;
setParameter("From", from);
}
std::string ListMediaRequest::getTo()const
{
return to_;
}
void ListMediaRequest::setTo(const std::string& to)
{
to_ = to;
setParameter("To", to);
}
long ListMediaRequest::getOwnerId()const
{
return ownerId_;
}
void ListMediaRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ListMediaRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListMediaRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("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/mts/model/ListMediaResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListMediaResult::ListMediaResult() :
ServiceResult()
{}
ListMediaResult::ListMediaResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListMediaResult::~ListMediaResult()
{}
void ListMediaResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMediaList = value["MediaList"]["Media"];
for (auto value : allMediaList)
{
Media mediaListObject;
if(!value["MediaId"].isNull())
mediaListObject.mediaId = value["MediaId"].asString();
if(!value["Title"].isNull())
mediaListObject.title = value["Title"].asString();
if(!value["Description"].isNull())
mediaListObject.description = value["Description"].asString();
if(!value["CoverURL"].isNull())
mediaListObject.coverURL = value["CoverURL"].asString();
if(!value["CateId"].isNull())
mediaListObject.cateId = std::stol(value["CateId"].asString());
if(!value["Duration"].isNull())
mediaListObject.duration = value["Duration"].asString();
if(!value["Format"].isNull())
mediaListObject.format = value["Format"].asString();
if(!value["Size"].isNull())
mediaListObject.size = value["Size"].asString();
if(!value["Bitrate"].isNull())
mediaListObject.bitrate = value["Bitrate"].asString();
if(!value["Width"].isNull())
mediaListObject.width = value["Width"].asString();
if(!value["Height"].isNull())
mediaListObject.height = value["Height"].asString();
if(!value["Fps"].isNull())
mediaListObject.fps = value["Fps"].asString();
if(!value["PublishState"].isNull())
mediaListObject.publishState = value["PublishState"].asString();
if(!value["CensorState"].isNull())
mediaListObject.censorState = value["CensorState"].asString();
if(!value["CreationTime"].isNull())
mediaListObject.creationTime = value["CreationTime"].asString();
auto fileNode = value["File"];
if(!fileNode["URL"].isNull())
mediaListObject.file.uRL = fileNode["URL"].asString();
if(!fileNode["State"].isNull())
mediaListObject.file.state = fileNode["State"].asString();
auto allTags = value["Tags"]["Tag"];
for (auto value : allTags)
mediaListObject.tags.push_back(value.asString());
auto allRunIdList = value["RunIdList"]["RunId"];
for (auto value : allRunIdList)
mediaListObject.runIdList.push_back(value.asString());
mediaList_.push_back(mediaListObject);
}
if(!value["NextPageToken"].isNull())
nextPageToken_ = value["NextPageToken"].asString();
}
std::vector<ListMediaResult::Media> ListMediaResult::getMediaList()const
{
return mediaList_;
}
std::string ListMediaResult::getNextPageToken()const
{
return nextPageToken_;
}

View File

@@ -0,0 +1,137 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListMediaWorkflowExecutionsRequest.h>
using AlibabaCloud::Mts::Model::ListMediaWorkflowExecutionsRequest;
ListMediaWorkflowExecutionsRequest::ListMediaWorkflowExecutionsRequest() :
RpcServiceRequest("mts", "2014-06-18", "ListMediaWorkflowExecutions")
{}
ListMediaWorkflowExecutionsRequest::~ListMediaWorkflowExecutionsRequest()
{}
long ListMediaWorkflowExecutionsRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListMediaWorkflowExecutionsRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListMediaWorkflowExecutionsRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListMediaWorkflowExecutionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListMediaWorkflowExecutionsRequest::getInputFileURL()const
{
return inputFileURL_;
}
void ListMediaWorkflowExecutionsRequest::setInputFileURL(const std::string& inputFileURL)
{
inputFileURL_ = inputFileURL;
setParameter("InputFileURL", inputFileURL);
}
std::string ListMediaWorkflowExecutionsRequest::getNextPageToken()const
{
return nextPageToken_;
}
void ListMediaWorkflowExecutionsRequest::setNextPageToken(const std::string& nextPageToken)
{
nextPageToken_ = nextPageToken;
setParameter("NextPageToken", nextPageToken);
}
std::string ListMediaWorkflowExecutionsRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListMediaWorkflowExecutionsRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ListMediaWorkflowExecutionsRequest::getMaximumPageSize()const
{
return maximumPageSize_;
}
void ListMediaWorkflowExecutionsRequest::setMaximumPageSize(long maximumPageSize)
{
maximumPageSize_ = maximumPageSize;
setParameter("MaximumPageSize", std::to_string(maximumPageSize));
}
std::string ListMediaWorkflowExecutionsRequest::getMediaWorkflowId()const
{
return mediaWorkflowId_;
}
void ListMediaWorkflowExecutionsRequest::setMediaWorkflowId(const std::string& mediaWorkflowId)
{
mediaWorkflowId_ = mediaWorkflowId;
setParameter("MediaWorkflowId", mediaWorkflowId);
}
long ListMediaWorkflowExecutionsRequest::getOwnerId()const
{
return ownerId_;
}
void ListMediaWorkflowExecutionsRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
std::string ListMediaWorkflowExecutionsRequest::getMediaWorkflowName()const
{
return mediaWorkflowName_;
}
void ListMediaWorkflowExecutionsRequest::setMediaWorkflowName(const std::string& mediaWorkflowName)
{
mediaWorkflowName_ = mediaWorkflowName;
setParameter("MediaWorkflowName", mediaWorkflowName);
}
std::string ListMediaWorkflowExecutionsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListMediaWorkflowExecutionsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,114 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListMediaWorkflowExecutionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListMediaWorkflowExecutionsResult::ListMediaWorkflowExecutionsResult() :
ServiceResult()
{}
ListMediaWorkflowExecutionsResult::ListMediaWorkflowExecutionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListMediaWorkflowExecutionsResult::~ListMediaWorkflowExecutionsResult()
{}
void ListMediaWorkflowExecutionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allMediaWorkflowExecutionList = value["MediaWorkflowExecutionList"]["MediaWorkflowExecution"];
for (auto value : allMediaWorkflowExecutionList)
{
MediaWorkflowExecution mediaWorkflowExecutionListObject;
if(!value["RunId"].isNull())
mediaWorkflowExecutionListObject.runId = value["RunId"].asString();
if(!value["MediaWorkflowId"].isNull())
mediaWorkflowExecutionListObject.mediaWorkflowId = value["MediaWorkflowId"].asString();
if(!value["Name"].isNull())
mediaWorkflowExecutionListObject.name = value["Name"].asString();
if(!value["State"].isNull())
mediaWorkflowExecutionListObject.state = value["State"].asString();
if(!value["MediaId"].isNull())
mediaWorkflowExecutionListObject.mediaId = value["MediaId"].asString();
if(!value["CreationTime"].isNull())
mediaWorkflowExecutionListObject.creationTime = value["CreationTime"].asString();
auto allActivityList = value["ActivityList"]["Activity"];
for (auto value : allActivityList)
{
MediaWorkflowExecution::Activity activityListObject;
if(!value["Name"].isNull())
activityListObject.name = value["Name"].asString();
if(!value["Type"].isNull())
activityListObject.type = value["Type"].asString();
if(!value["JobId"].isNull())
activityListObject.jobId = value["JobId"].asString();
if(!value["State"].isNull())
activityListObject.state = value["State"].asString();
if(!value["Code"].isNull())
activityListObject.code = value["Code"].asString();
if(!value["Message"].isNull())
activityListObject.message = value["Message"].asString();
if(!value["StartTime"].isNull())
activityListObject.startTime = value["StartTime"].asString();
if(!value["EndTime"].isNull())
activityListObject.endTime = value["EndTime"].asString();
auto mNSMessageResultNode = value["MNSMessageResult"];
if(!mNSMessageResultNode["MessageId"].isNull())
activityListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString();
if(!mNSMessageResultNode["ErrorMessage"].isNull())
activityListObject.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString();
if(!mNSMessageResultNode["ErrorCode"].isNull())
activityListObject.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString();
mediaWorkflowExecutionListObject.activityList.push_back(activityListObject);
}
auto inputNode = value["Input"];
if(!inputNode["UserData"].isNull())
mediaWorkflowExecutionListObject.input.userData = inputNode["UserData"].asString();
auto inputFileNode = inputNode["InputFile"];
if(!inputFileNode["Bucket"].isNull())
mediaWorkflowExecutionListObject.input.inputFile.bucket = inputFileNode["Bucket"].asString();
if(!inputFileNode["Location"].isNull())
mediaWorkflowExecutionListObject.input.inputFile.location = inputFileNode["Location"].asString();
if(!inputFileNode["Object"].isNull())
mediaWorkflowExecutionListObject.input.inputFile.object = inputFileNode["Object"].asString();
mediaWorkflowExecutionList_.push_back(mediaWorkflowExecutionListObject);
}
if(!value["NextPageToken"].isNull())
nextPageToken_ = value["NextPageToken"].asString();
}
std::vector<ListMediaWorkflowExecutionsResult::MediaWorkflowExecution> ListMediaWorkflowExecutionsResult::getMediaWorkflowExecutionList()const
{
return mediaWorkflowExecutionList_;
}
std::string ListMediaWorkflowExecutionsResult::getNextPageToken()const
{
return nextPageToken_;
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListPornPipelineRequest.h>
using AlibabaCloud::Mts::Model::ListPornPipelineRequest;
ListPornPipelineRequest::ListPornPipelineRequest() :
RpcServiceRequest("mts", "2014-06-18", "ListPornPipeline")
{}
ListPornPipelineRequest::~ListPornPipelineRequest()
{}
long ListPornPipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListPornPipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListPornPipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListPornPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListPornPipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListPornPipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ListPornPipelineRequest::getPageSize()const
{
return pageSize_;
}
void ListPornPipelineRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListPornPipelineRequest::getState()const
{
return state_;
}
void ListPornPipelineRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
}
long ListPornPipelineRequest::getOwnerId()const
{
return ownerId_;
}
void ListPornPipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long ListPornPipelineRequest::getPageNumber()const
{
return pageNumber_;
}
void ListPornPipelineRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListPornPipelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListPornPipelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListPornPipelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListPornPipelineResult::ListPornPipelineResult() :
ServiceResult()
{}
ListPornPipelineResult::ListPornPipelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPornPipelineResult::~ListPornPipelineResult()
{}
void ListPornPipelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPipelineList = value["PipelineList"]["Pipeline"];
for (auto value : allPipelineList)
{
Pipeline pipelineListObject;
if(!value["Id"].isNull())
pipelineListObject.id = value["Id"].asString();
if(!value["Name"].isNull())
pipelineListObject.name = value["Name"].asString();
if(!value["State"].isNull())
pipelineListObject.state = value["State"].asString();
if(!value["Priority"].isNull())
pipelineListObject.priority = value["Priority"].asString();
auto notifyConfigNode = value["NotifyConfig"];
if(!notifyConfigNode["Topic"].isNull())
pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["Queue"].isNull())
pipelineListObject.notifyConfig.queue = notifyConfigNode["Queue"].asString();
pipelineList_.push_back(pipelineListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long ListPornPipelineResult::getTotalCount()const
{
return totalCount_;
}
long ListPornPipelineResult::getPageSize()const
{
return pageSize_;
}
long ListPornPipelineResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListPornPipelineResult::Pipeline> ListPornPipelineResult::getPipelineList()const
{
return pipelineList_;
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListTerrorismPipelineRequest.h>
using AlibabaCloud::Mts::Model::ListTerrorismPipelineRequest;
ListTerrorismPipelineRequest::ListTerrorismPipelineRequest() :
RpcServiceRequest("mts", "2014-06-18", "ListTerrorismPipeline")
{}
ListTerrorismPipelineRequest::~ListTerrorismPipelineRequest()
{}
long ListTerrorismPipelineRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void ListTerrorismPipelineRequest::setResourceOwnerId(long resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
}
std::string ListTerrorismPipelineRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void ListTerrorismPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string ListTerrorismPipelineRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void ListTerrorismPipelineRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
long ListTerrorismPipelineRequest::getPageSize()const
{
return pageSize_;
}
void ListTerrorismPipelineRequest::setPageSize(long pageSize)
{
pageSize_ = pageSize;
setParameter("PageSize", std::to_string(pageSize));
}
std::string ListTerrorismPipelineRequest::getState()const
{
return state_;
}
void ListTerrorismPipelineRequest::setState(const std::string& state)
{
state_ = state;
setParameter("State", state);
}
long ListTerrorismPipelineRequest::getOwnerId()const
{
return ownerId_;
}
void ListTerrorismPipelineRequest::setOwnerId(long ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", std::to_string(ownerId));
}
long ListTerrorismPipelineRequest::getPageNumber()const
{
return pageNumber_;
}
void ListTerrorismPipelineRequest::setPageNumber(long pageNumber)
{
pageNumber_ = pageNumber;
setParameter("PageNumber", std::to_string(pageNumber));
}
std::string ListTerrorismPipelineRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListTerrorismPipelineRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,90 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListTerrorismPipelineResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListTerrorismPipelineResult::ListTerrorismPipelineResult() :
ServiceResult()
{}
ListTerrorismPipelineResult::ListTerrorismPipelineResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTerrorismPipelineResult::~ListTerrorismPipelineResult()
{}
void ListTerrorismPipelineResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPipelineList = value["PipelineList"]["Pipeline"];
for (auto value : allPipelineList)
{
Pipeline pipelineListObject;
if(!value["Id"].isNull())
pipelineListObject.id = value["Id"].asString();
if(!value["Name"].isNull())
pipelineListObject.name = value["Name"].asString();
if(!value["State"].isNull())
pipelineListObject.state = value["State"].asString();
if(!value["Priority"].isNull())
pipelineListObject.priority = value["Priority"].asString();
auto notifyConfigNode = value["NotifyConfig"];
if(!notifyConfigNode["Topic"].isNull())
pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["Queue"].isNull())
pipelineListObject.notifyConfig.queue = notifyConfigNode["Queue"].asString();
pipelineList_.push_back(pipelineListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
}
long ListTerrorismPipelineResult::getTotalCount()const
{
return totalCount_;
}
long ListTerrorismPipelineResult::getPageSize()const
{
return pageSize_;
}
long ListTerrorismPipelineResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListTerrorismPipelineResult::Pipeline> ListTerrorismPipelineResult::getPipelineList()const
{
return pipelineList_;
}

View File

@@ -0,0 +1,148 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/LogicalDeleteResourceRequest.h>
using AlibabaCloud::Mts::Model::LogicalDeleteResourceRequest;
LogicalDeleteResourceRequest::LogicalDeleteResourceRequest() :
RpcServiceRequest("mts", "2014-06-18", "LogicalDeleteResource")
{}
LogicalDeleteResourceRequest::~LogicalDeleteResourceRequest()
{}
std::string LogicalDeleteResourceRequest::getCountry()const
{
return country_;
}
void LogicalDeleteResourceRequest::setCountry(const std::string& country)
{
country_ = country;
setParameter("Country", country);
}
long LogicalDeleteResourceRequest::getHid()const
{
return hid_;
}
void LogicalDeleteResourceRequest::setHid(long hid)
{
hid_ = hid;
setParameter("Hid", std::to_string(hid));
}
bool LogicalDeleteResourceRequest::getSuccess()const
{
return success_;
}
void LogicalDeleteResourceRequest::setSuccess(bool success)
{
success_ = success;
setParameter("Success", std::to_string(success));
}
bool LogicalDeleteResourceRequest::getInterrupt()const
{
return interrupt_;
}
void LogicalDeleteResourceRequest::setInterrupt(bool interrupt)
{
interrupt_ = interrupt;
setParameter("Interrupt", std::to_string(interrupt));
}
std::string LogicalDeleteResourceRequest::getGmtWakeup()const
{
return gmtWakeup_;
}
void LogicalDeleteResourceRequest::setGmtWakeup(const std::string& gmtWakeup)
{
gmtWakeup_ = gmtWakeup;
setParameter("GmtWakeup", gmtWakeup);
}
std::string LogicalDeleteResourceRequest::getPk()const
{
return pk_;
}
void LogicalDeleteResourceRequest::setPk(const std::string& pk)
{
pk_ = pk;
setParameter("Pk", pk);
}
std::string LogicalDeleteResourceRequest::getInvoker()const
{
return invoker_;
}
void LogicalDeleteResourceRequest::setInvoker(const std::string& invoker)
{
invoker_ = invoker;
setParameter("Invoker", invoker);
}
std::string LogicalDeleteResourceRequest::getBid()const
{
return bid_;
}
void LogicalDeleteResourceRequest::setBid(const std::string& bid)
{
bid_ = bid;
setParameter("Bid", bid);
}
std::string LogicalDeleteResourceRequest::getMessage()const
{
return message_;
}
void LogicalDeleteResourceRequest::setMessage(const std::string& message)
{
message_ = message;
setParameter("Message", message);
}
std::string LogicalDeleteResourceRequest::getTaskExtraData()const
{
return taskExtraData_;
}
void LogicalDeleteResourceRequest::setTaskExtraData(const std::string& taskExtraData)
{
taskExtraData_ = taskExtraData;
setParameter("TaskExtraData", taskExtraData);
}
std::string LogicalDeleteResourceRequest::getTaskIdentifier()const
{
return taskIdentifier_;
}
void LogicalDeleteResourceRequest::setTaskIdentifier(const std::string& taskIdentifier)
{
taskIdentifier_ = taskIdentifier;
setParameter("TaskIdentifier", taskIdentifier);
}

View File

@@ -0,0 +1,122 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/LogicalDeleteResourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
LogicalDeleteResourceResult::LogicalDeleteResourceResult() :
ServiceResult()
{}
LogicalDeleteResourceResult::LogicalDeleteResourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
LogicalDeleteResourceResult::~LogicalDeleteResourceResult()
{}
void LogicalDeleteResourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Interrupt"].isNull())
interrupt_ = value["Interrupt"].asString() == "true";
if(!value["Invoker"].isNull())
invoker_ = value["Invoker"].asString();
if(!value["Pk"].isNull())
pk_ = value["Pk"].asString();
if(!value["Bid"].isNull())
bid_ = value["Bid"].asString();
if(!value["Hid"].isNull())
hid_ = std::stol(value["Hid"].asString());
if(!value["Country"].isNull())
country_ = value["Country"].asString();
if(!value["TaskIdentifier"].isNull())
taskIdentifier_ = value["TaskIdentifier"].asString();
if(!value["TaskExtraData"].isNull())
taskExtraData_ = value["TaskExtraData"].asString();
if(!value["GmtWakeup"].isNull())
gmtWakeup_ = value["GmtWakeup"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string LogicalDeleteResourceResult::getGmtWakeup()const
{
return gmtWakeup_;
}
long LogicalDeleteResourceResult::getHid()const
{
return hid_;
}
std::string LogicalDeleteResourceResult::getInvoker()const
{
return invoker_;
}
std::string LogicalDeleteResourceResult::getTaskIdentifier()const
{
return taskIdentifier_;
}
std::string LogicalDeleteResourceResult::getMessage()const
{
return message_;
}
std::string LogicalDeleteResourceResult::getTaskExtraData()const
{
return taskExtraData_;
}
std::string LogicalDeleteResourceResult::getCountry()const
{
return country_;
}
std::string LogicalDeleteResourceResult::getPk()const
{
return pk_;
}
std::string LogicalDeleteResourceResult::getBid()const
{
return bid_;
}
bool LogicalDeleteResourceResult::getInterrupt()const
{
return interrupt_;
}
bool LogicalDeleteResourceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,148 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/PhysicalDeleteResourceRequest.h>
using AlibabaCloud::Mts::Model::PhysicalDeleteResourceRequest;
PhysicalDeleteResourceRequest::PhysicalDeleteResourceRequest() :
RpcServiceRequest("mts", "2014-06-18", "PhysicalDeleteResource")
{}
PhysicalDeleteResourceRequest::~PhysicalDeleteResourceRequest()
{}
std::string PhysicalDeleteResourceRequest::getCountry()const
{
return country_;
}
void PhysicalDeleteResourceRequest::setCountry(const std::string& country)
{
country_ = country;
setParameter("Country", country);
}
long PhysicalDeleteResourceRequest::getHid()const
{
return hid_;
}
void PhysicalDeleteResourceRequest::setHid(long hid)
{
hid_ = hid;
setParameter("Hid", std::to_string(hid));
}
bool PhysicalDeleteResourceRequest::getSuccess()const
{
return success_;
}
void PhysicalDeleteResourceRequest::setSuccess(bool success)
{
success_ = success;
setParameter("Success", std::to_string(success));
}
bool PhysicalDeleteResourceRequest::getInterrupt()const
{
return interrupt_;
}
void PhysicalDeleteResourceRequest::setInterrupt(bool interrupt)
{
interrupt_ = interrupt;
setParameter("Interrupt", std::to_string(interrupt));
}
std::string PhysicalDeleteResourceRequest::getGmtWakeup()const
{
return gmtWakeup_;
}
void PhysicalDeleteResourceRequest::setGmtWakeup(const std::string& gmtWakeup)
{
gmtWakeup_ = gmtWakeup;
setParameter("GmtWakeup", gmtWakeup);
}
std::string PhysicalDeleteResourceRequest::getPk()const
{
return pk_;
}
void PhysicalDeleteResourceRequest::setPk(const std::string& pk)
{
pk_ = pk;
setParameter("Pk", pk);
}
std::string PhysicalDeleteResourceRequest::getInvoker()const
{
return invoker_;
}
void PhysicalDeleteResourceRequest::setInvoker(const std::string& invoker)
{
invoker_ = invoker;
setParameter("Invoker", invoker);
}
std::string PhysicalDeleteResourceRequest::getBid()const
{
return bid_;
}
void PhysicalDeleteResourceRequest::setBid(const std::string& bid)
{
bid_ = bid;
setParameter("Bid", bid);
}
std::string PhysicalDeleteResourceRequest::getMessage()const
{
return message_;
}
void PhysicalDeleteResourceRequest::setMessage(const std::string& message)
{
message_ = message;
setParameter("Message", message);
}
std::string PhysicalDeleteResourceRequest::getTaskExtraData()const
{
return taskExtraData_;
}
void PhysicalDeleteResourceRequest::setTaskExtraData(const std::string& taskExtraData)
{
taskExtraData_ = taskExtraData;
setParameter("TaskExtraData", taskExtraData);
}
std::string PhysicalDeleteResourceRequest::getTaskIdentifier()const
{
return taskIdentifier_;
}
void PhysicalDeleteResourceRequest::setTaskIdentifier(const std::string& taskIdentifier)
{
taskIdentifier_ = taskIdentifier;
setParameter("TaskIdentifier", taskIdentifier);
}

View File

@@ -0,0 +1,122 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/PhysicalDeleteResourceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
PhysicalDeleteResourceResult::PhysicalDeleteResourceResult() :
ServiceResult()
{}
PhysicalDeleteResourceResult::PhysicalDeleteResourceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PhysicalDeleteResourceResult::~PhysicalDeleteResourceResult()
{}
void PhysicalDeleteResourceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Interrupt"].isNull())
interrupt_ = value["Interrupt"].asString() == "true";
if(!value["Invoker"].isNull())
invoker_ = value["Invoker"].asString();
if(!value["Pk"].isNull())
pk_ = value["Pk"].asString();
if(!value["Bid"].isNull())
bid_ = value["Bid"].asString();
if(!value["Hid"].isNull())
hid_ = std::stol(value["Hid"].asString());
if(!value["Country"].isNull())
country_ = value["Country"].asString();
if(!value["TaskIdentifier"].isNull())
taskIdentifier_ = value["TaskIdentifier"].asString();
if(!value["TaskExtraData"].isNull())
taskExtraData_ = value["TaskExtraData"].asString();
if(!value["GmtWakeup"].isNull())
gmtWakeup_ = value["GmtWakeup"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string PhysicalDeleteResourceResult::getGmtWakeup()const
{
return gmtWakeup_;
}
long PhysicalDeleteResourceResult::getHid()const
{
return hid_;
}
std::string PhysicalDeleteResourceResult::getInvoker()const
{
return invoker_;
}
std::string PhysicalDeleteResourceResult::getTaskIdentifier()const
{
return taskIdentifier_;
}
std::string PhysicalDeleteResourceResult::getMessage()const
{
return message_;
}
std::string PhysicalDeleteResourceResult::getTaskExtraData()const
{
return taskExtraData_;
}
std::string PhysicalDeleteResourceResult::getCountry()const
{
return country_;
}
std::string PhysicalDeleteResourceResult::getPk()const
{
return pk_;
}
std::string PhysicalDeleteResourceResult::getBid()const
{
return bid_;
}
bool PhysicalDeleteResourceResult::getInterrupt()const
{
return interrupt_;
}
bool PhysicalDeleteResourceResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,170 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/PlayInfoRequest.h>
using AlibabaCloud::Mts::Model::PlayInfoRequest;
PlayInfoRequest::PlayInfoRequest() :
RpcServiceRequest("mts", "2014-06-18", "PlayInfo")
{}
PlayInfoRequest::~PlayInfoRequest()
{}
std::string PlayInfoRequest::getPlayDomain()const
{
return playDomain_;
}
void PlayInfoRequest::setPlayDomain(const std::string& playDomain)
{
playDomain_ = playDomain;
setParameter("PlayDomain", playDomain);
}
std::string PlayInfoRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void PlayInfoRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string PlayInfoRequest::getFormats()const
{
return formats_;
}
void PlayInfoRequest::setFormats(const std::string& formats)
{
formats_ = formats;
setParameter("Formats", formats);
}
std::string PlayInfoRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void PlayInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string PlayInfoRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void PlayInfoRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string PlayInfoRequest::getHlsUriToken()const
{
return hlsUriToken_;
}
void PlayInfoRequest::setHlsUriToken(const std::string& hlsUriToken)
{
hlsUriToken_ = hlsUriToken;
setParameter("HlsUriToken", hlsUriToken);
}
std::string PlayInfoRequest::getTerminal()const
{
return terminal_;
}
void PlayInfoRequest::setTerminal(const std::string& terminal)
{
terminal_ = terminal;
setParameter("Terminal", terminal);
}
std::string PlayInfoRequest::getOwnerId()const
{
return ownerId_;
}
void PlayInfoRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string PlayInfoRequest::getMediaId()const
{
return mediaId_;
}
void PlayInfoRequest::setMediaId(const std::string& mediaId)
{
mediaId_ = mediaId;
setParameter("MediaId", mediaId);
}
std::string PlayInfoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void PlayInfoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string PlayInfoRequest::getRand()const
{
return rand_;
}
void PlayInfoRequest::setRand(const std::string& rand)
{
rand_ = rand;
setParameter("Rand", rand);
}
long PlayInfoRequest::getAuthTimeout()const
{
return authTimeout_;
}
void PlayInfoRequest::setAuthTimeout(long authTimeout)
{
authTimeout_ = authTimeout;
setParameter("AuthTimeout", std::to_string(authTimeout));
}
std::string PlayInfoRequest::getAuthInfo()const
{
return authInfo_;
}
void PlayInfoRequest::setAuthInfo(const std::string& authInfo)
{
authInfo_ = authInfo;
setParameter("AuthInfo", authInfo);
}

View File

@@ -0,0 +1,96 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/PlayInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
PlayInfoResult::PlayInfoResult() :
ServiceResult()
{}
PlayInfoResult::PlayInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PlayInfoResult::~PlayInfoResult()
{}
void PlayInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPlayInfoList = value["PlayInfoList"]["PlayInfo"];
for (auto value : allPlayInfoList)
{
PlayInfo playInfoListObject;
if(!value["Url"].isNull())
playInfoListObject.url = value["Url"].asString();
if(!value["duration"].isNull())
playInfoListObject.duration = value["duration"].asString();
if(!value["size"].isNull())
playInfoListObject.size = value["size"].asString();
if(!value["width"].isNull())
playInfoListObject.width = value["width"].asString();
if(!value["height"].isNull())
playInfoListObject.height = value["height"].asString();
if(!value["bitrate"].isNull())
playInfoListObject.bitrate = value["bitrate"].asString();
if(!value["fps"].isNull())
playInfoListObject.fps = value["fps"].asString();
if(!value["format"].isNull())
playInfoListObject.format = value["format"].asString();
if(!value["definition"].isNull())
playInfoListObject.definition = value["definition"].asString();
if(!value["encryption"].isNull())
playInfoListObject.encryption = value["encryption"].asString();
if(!value["rand"].isNull())
playInfoListObject.rand = value["rand"].asString();
if(!value["plaintext"].isNull())
playInfoListObject.plaintext = value["plaintext"].asString();
if(!value["complexity"].isNull())
playInfoListObject.complexity = value["complexity"].asString();
if(!value["activityName"].isNull())
playInfoListObject.activityName = value["activityName"].asString();
if(!value["encryptionType"].isNull())
playInfoListObject.encryptionType = value["encryptionType"].asString();
if(!value["downloadType"].isNull())
playInfoListObject.downloadType = value["downloadType"].asString();
playInfoList_.push_back(playInfoListObject);
}
auto allNotFoundCDNDomain = value["NotFoundCDNDomain"]["String"];
for (const auto &item : allNotFoundCDNDomain)
notFoundCDNDomain_.push_back(item.asString());
}
std::vector<PlayInfoResult::PlayInfo> PlayInfoResult::getPlayInfoList()const
{
return playInfoList_;
}
std::vector<std::string> PlayInfoResult::getNotFoundCDNDomain()const
{
return notFoundCDNDomain_;
}

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/mts/model/PlayerAuthRequest.h>
using AlibabaCloud::Mts::Model::PlayerAuthRequest;
PlayerAuthRequest::PlayerAuthRequest() :
RpcServiceRequest("mts", "2014-06-18", "PlayerAuth")
{}
PlayerAuthRequest::~PlayerAuthRequest()
{}
std::string PlayerAuthRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void PlayerAuthRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string PlayerAuthRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void PlayerAuthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string PlayerAuthRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void PlayerAuthRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string PlayerAuthRequest::getOwnerId()const
{
return ownerId_;
}
void PlayerAuthRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string PlayerAuthRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void PlayerAuthRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("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/mts/model/PlayerAuthResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
PlayerAuthResult::PlayerAuthResult() :
ServiceResult()
{}
PlayerAuthResult::PlayerAuthResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
PlayerAuthResult::~PlayerAuthResult()
{}
void PlayerAuthResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSwitchList = value["SwitchList"]["Switch"];
for (auto value : allSwitchList)
{
Switch switchListObject;
if(!value["State"].isNull())
switchListObject.state = value["State"].asString();
if(!value["FunctionId"].isNull())
switchListObject.functionId = value["FunctionId"].asString();
if(!value["SwitchId"].isNull())
switchListObject.switchId = value["SwitchId"].asString();
if(!value["FunctionName"].isNull())
switchListObject.functionName = value["FunctionName"].asString();
switchList_.push_back(switchListObject);
}
if(!value["LogURL"].isNull())
logURL_ = value["LogURL"].asString();
}
std::string PlayerAuthResult::getLogURL()const
{
return logURL_;
}
std::vector<PlayerAuthResult::Switch> PlayerAuthResult::getSwitchList()const
{
return switchList_;
}

View File

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

View File

@@ -0,0 +1,192 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/QueryAnalysisJobListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryAnalysisJobListResult::QueryAnalysisJobListResult() :
ServiceResult()
{}
QueryAnalysisJobListResult::QueryAnalysisJobListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAnalysisJobListResult::~QueryAnalysisJobListResult()
{}
void QueryAnalysisJobListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAnalysisJobList = value["AnalysisJobList"]["AnalysisJob"];
for (auto value : allAnalysisJobList)
{
AnalysisJob analysisJobListObject;
if(!value["Id"].isNull())
analysisJobListObject.id = value["Id"].asString();
if(!value["UserData"].isNull())
analysisJobListObject.userData = value["UserData"].asString();
if(!value["State"].isNull())
analysisJobListObject.state = value["State"].asString();
if(!value["Code"].isNull())
analysisJobListObject.code = value["Code"].asString();
if(!value["Message"].isNull())
analysisJobListObject.message = value["Message"].asString();
if(!value["Percent"].isNull())
analysisJobListObject.percent = std::stol(value["Percent"].asString());
if(!value["CreationTime"].isNull())
analysisJobListObject.creationTime = value["CreationTime"].asString();
if(!value["PipelineId"].isNull())
analysisJobListObject.pipelineId = value["PipelineId"].asString();
if(!value["Priority"].isNull())
analysisJobListObject.priority = value["Priority"].asString();
auto allTemplateList = value["TemplateList"]["Template"];
for (auto value : allTemplateList)
{
AnalysisJob::_Template templateListObject;
if(!value["Id"].isNull())
templateListObject.id = value["Id"].asString();
if(!value["Name"].isNull())
templateListObject.name = value["Name"].asString();
if(!value["State"].isNull())
templateListObject.state = value["State"].asString();
auto containerNode = value["Container"];
if(!containerNode["Format"].isNull())
templateListObject.container.format = containerNode["Format"].asString();
auto videoNode = value["Video"];
if(!videoNode["Codec"].isNull())
templateListObject.video.codec = videoNode["Codec"].asString();
if(!videoNode["Profile"].isNull())
templateListObject.video.profile = videoNode["Profile"].asString();
if(!videoNode["Bitrate"].isNull())
templateListObject.video.bitrate = videoNode["Bitrate"].asString();
if(!videoNode["Crf"].isNull())
templateListObject.video.crf = videoNode["Crf"].asString();
if(!videoNode["Width"].isNull())
templateListObject.video.width = videoNode["Width"].asString();
if(!videoNode["Height"].isNull())
templateListObject.video.height = videoNode["Height"].asString();
if(!videoNode["Fps"].isNull())
templateListObject.video.fps = videoNode["Fps"].asString();
if(!videoNode["Gop"].isNull())
templateListObject.video.gop = videoNode["Gop"].asString();
if(!videoNode["Preset"].isNull())
templateListObject.video.preset = videoNode["Preset"].asString();
if(!videoNode["ScanMode"].isNull())
templateListObject.video.scanMode = videoNode["ScanMode"].asString();
if(!videoNode["Bufsize"].isNull())
templateListObject.video.bufsize = videoNode["Bufsize"].asString();
if(!videoNode["Maxrate"].isNull())
templateListObject.video.maxrate = videoNode["Maxrate"].asString();
if(!videoNode["PixFmt"].isNull())
templateListObject.video.pixFmt = videoNode["PixFmt"].asString();
if(!videoNode["Degrain"].isNull())
templateListObject.video.degrain = videoNode["Degrain"].asString();
if(!videoNode["Qscale"].isNull())
templateListObject.video.qscale = videoNode["Qscale"].asString();
auto bitrateBndNode = videoNode["BitrateBnd"];
if(!bitrateBndNode["Max"].isNull())
templateListObject.video.bitrateBnd.max = bitrateBndNode["Max"].asString();
if(!bitrateBndNode["Min"].isNull())
templateListObject.video.bitrateBnd.min = bitrateBndNode["Min"].asString();
auto audioNode = value["Audio"];
if(!audioNode["Codec"].isNull())
templateListObject.audio.codec = audioNode["Codec"].asString();
if(!audioNode["Profile"].isNull())
templateListObject.audio.profile = audioNode["Profile"].asString();
if(!audioNode["Samplerate"].isNull())
templateListObject.audio.samplerate = audioNode["Samplerate"].asString();
if(!audioNode["Bitrate"].isNull())
templateListObject.audio.bitrate = audioNode["Bitrate"].asString();
if(!audioNode["Channels"].isNull())
templateListObject.audio.channels = audioNode["Channels"].asString();
if(!audioNode["Qscale"].isNull())
templateListObject.audio.qscale = audioNode["Qscale"].asString();
auto transConfigNode = value["TransConfig"];
if(!transConfigNode["TransMode"].isNull())
templateListObject.transConfig.transMode = transConfigNode["TransMode"].asString();
auto muxConfigNode = value["MuxConfig"];
auto segmentNode = muxConfigNode["Segment"];
if(!segmentNode["Duration"].isNull())
templateListObject.muxConfig.segment.duration = segmentNode["Duration"].asString();
auto gifNode = muxConfigNode["Gif"];
if(!gifNode["Loop"].isNull())
templateListObject.muxConfig.gif.loop = gifNode["Loop"].asString();
if(!gifNode["FinalDelay"].isNull())
templateListObject.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString();
analysisJobListObject.templateList.push_back(templateListObject);
}
auto inputFileNode = value["InputFile"];
if(!inputFileNode["Bucket"].isNull())
analysisJobListObject.inputFile.bucket = inputFileNode["Bucket"].asString();
if(!inputFileNode["Location"].isNull())
analysisJobListObject.inputFile.location = inputFileNode["Location"].asString();
if(!inputFileNode["Object"].isNull())
analysisJobListObject.inputFile.object = inputFileNode["Object"].asString();
auto analysisConfigNode = value["AnalysisConfig"];
auto qualityControlNode = analysisConfigNode["QualityControl"];
if(!qualityControlNode["RateQuality"].isNull())
analysisJobListObject.analysisConfig.qualityControl.rateQuality = qualityControlNode["RateQuality"].asString();
if(!qualityControlNode["MethodStreaming"].isNull())
analysisJobListObject.analysisConfig.qualityControl.methodStreaming = qualityControlNode["MethodStreaming"].asString();
auto propertiesControlNode = analysisConfigNode["PropertiesControl"];
if(!propertiesControlNode["Deinterlace"].isNull())
analysisJobListObject.analysisConfig.propertiesControl.deinterlace = propertiesControlNode["Deinterlace"].asString();
auto cropNode = propertiesControlNode["Crop"];
if(!cropNode["Mode"].isNull())
analysisJobListObject.analysisConfig.propertiesControl.crop.mode = cropNode["Mode"].asString();
if(!cropNode["Width"].isNull())
analysisJobListObject.analysisConfig.propertiesControl.crop.width = cropNode["Width"].asString();
if(!cropNode["Height"].isNull())
analysisJobListObject.analysisConfig.propertiesControl.crop.height = cropNode["Height"].asString();
if(!cropNode["Top"].isNull())
analysisJobListObject.analysisConfig.propertiesControl.crop.top = cropNode["Top"].asString();
if(!cropNode["Left"].isNull())
analysisJobListObject.analysisConfig.propertiesControl.crop.left = cropNode["Left"].asString();
auto mNSMessageResultNode = value["MNSMessageResult"];
if(!mNSMessageResultNode["MessageId"].isNull())
analysisJobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString();
if(!mNSMessageResultNode["ErrorMessage"].isNull())
analysisJobListObject.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString();
if(!mNSMessageResultNode["ErrorCode"].isNull())
analysisJobListObject.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString();
analysisJobList_.push_back(analysisJobListObject);
}
auto allNonExistAnalysisJobIds = value["NonExistAnalysisJobIds"]["String"];
for (const auto &item : allNonExistAnalysisJobIds)
nonExistAnalysisJobIds_.push_back(item.asString());
}
std::vector<QueryAnalysisJobListResult::AnalysisJob> QueryAnalysisJobListResult::getAnalysisJobList()const
{
return analysisJobList_;
}
std::vector<std::string> QueryAnalysisJobListResult::getNonExistAnalysisJobIds()const
{
return nonExistAnalysisJobIds_;
}

View File

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

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/mts/model/QueryAnnotationJobListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryAnnotationJobListResult::QueryAnnotationJobListResult() :
ServiceResult()
{}
QueryAnnotationJobListResult::QueryAnnotationJobListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAnnotationJobListResult::~QueryAnnotationJobListResult()
{}
void QueryAnnotationJobListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAnnotationJobList = value["AnnotationJobList"]["AnnotationJob"];
for (auto value : allAnnotationJobList)
{
AnnotationJob annotationJobListObject;
if(!value["Id"].isNull())
annotationJobListObject.id = value["Id"].asString();
if(!value["UserData"].isNull())
annotationJobListObject.userData = value["UserData"].asString();
if(!value["PipelineId"].isNull())
annotationJobListObject.pipelineId = value["PipelineId"].asString();
if(!value["State"].isNull())
annotationJobListObject.state = value["State"].asString();
if(!value["Code"].isNull())
annotationJobListObject.code = value["Code"].asString();
if(!value["Message"].isNull())
annotationJobListObject.message = value["Message"].asString();
if(!value["CreationTime"].isNull())
annotationJobListObject.creationTime = value["CreationTime"].asString();
auto inputNode = value["Input"];
if(!inputNode["Bucket"].isNull())
annotationJobListObject.input.bucket = inputNode["Bucket"].asString();
if(!inputNode["Location"].isNull())
annotationJobListObject.input.location = inputNode["Location"].asString();
if(!inputNode["Object"].isNull())
annotationJobListObject.input.object = inputNode["Object"].asString();
auto videoAnnotationResultNode = value["VideoAnnotationResult"];
if(!videoAnnotationResultNode["Details"].isNull())
annotationJobListObject.videoAnnotationResult.details = videoAnnotationResultNode["Details"].asString();
auto allAnnotations = value["Annotations"]["Annotation"];
for (auto value : allAnnotations)
{
AnnotationJob::VideoAnnotationResult::Annotation annotationObject;
if(!value["Label"].isNull())
annotationObject.label = value["Label"].asString();
if(!value["Score"].isNull())
annotationObject.score = value["Score"].asString();
annotationJobListObject.videoAnnotationResult.annotations.push_back(annotationObject);
}
annotationJobList_.push_back(annotationJobListObject);
}
auto allNonExistIds = value["NonExistIds"]["String"];
for (const auto &item : allNonExistIds)
nonExistIds_.push_back(item.asString());
}
std::vector<QueryAnnotationJobListResult::AnnotationJob> QueryAnnotationJobListResult::getAnnotationJobList()const
{
return annotationJobList_;
}
std::vector<std::string> QueryAnnotationJobListResult::getNonExistIds()const
{
return nonExistIds_;
}

View File

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

View File

@@ -0,0 +1,107 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/QueryAsrJobListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryAsrJobListResult::QueryAsrJobListResult() :
ServiceResult()
{}
QueryAsrJobListResult::QueryAsrJobListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAsrJobListResult::~QueryAsrJobListResult()
{}
void QueryAsrJobListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobList = value["JobList"]["Job"];
for (auto value : allJobList)
{
Job jobListObject;
if(!value["Id"].isNull())
jobListObject.id = value["Id"].asString();
if(!value["UserData"].isNull())
jobListObject.userData = value["UserData"].asString();
if(!value["PipelineId"].isNull())
jobListObject.pipelineId = value["PipelineId"].asString();
if(!value["State"].isNull())
jobListObject.state = value["State"].asString();
if(!value["Code"].isNull())
jobListObject.code = value["Code"].asString();
if(!value["Message"].isNull())
jobListObject.message = value["Message"].asString();
if(!value["CreationTime"].isNull())
jobListObject.creationTime = value["CreationTime"].asString();
auto inputNode = value["Input"];
if(!inputNode["Bucket"].isNull())
jobListObject.input.bucket = inputNode["Bucket"].asString();
if(!inputNode["Location"].isNull())
jobListObject.input.location = inputNode["Location"].asString();
if(!inputNode["Object"].isNull())
jobListObject.input.object = inputNode["Object"].asString();
auto asrConfigNode = value["AsrConfig"];
if(!asrConfigNode["Scene"].isNull())
jobListObject.asrConfig.scene = asrConfigNode["Scene"].asString();
auto asrResultNode = value["AsrResult"];
if(!asrResultNode["Duration"].isNull())
jobListObject.asrResult.duration = asrResultNode["Duration"].asString();
auto allAsrTextList = value["AsrTextList"]["AsrText"];
for (auto value : allAsrTextList)
{
Job::AsrResult::AsrText asrTextObject;
if(!value["StartTime"].isNull())
asrTextObject.startTime = std::stoi(value["StartTime"].asString());
if(!value["EndTime"].isNull())
asrTextObject.endTime = value["EndTime"].asString();
if(!value["ChannelId"].isNull())
asrTextObject.channelId = value["ChannelId"].asString();
if(!value["SpeechRate"].isNull())
asrTextObject.speechRate = value["SpeechRate"].asString();
if(!value["Text"].isNull())
asrTextObject.text = value["Text"].asString();
jobListObject.asrResult.asrTextList.push_back(asrTextObject);
}
jobList_.push_back(jobListObject);
}
auto allNonExistIds = value["NonExistIds"]["String"];
for (const auto &item : allNonExistIds)
nonExistIds_.push_back(item.asString());
}
std::vector<QueryAsrJobListResult::Job> QueryAsrJobListResult::getJobList()const
{
return jobList_;
}
std::vector<std::string> QueryAsrJobListResult::getNonExistIds()const
{
return nonExistIds_;
}

View File

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

View File

@@ -0,0 +1,77 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/QueryAsrPipelineListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
QueryAsrPipelineListResult::QueryAsrPipelineListResult() :
ServiceResult()
{}
QueryAsrPipelineListResult::QueryAsrPipelineListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryAsrPipelineListResult::~QueryAsrPipelineListResult()
{}
void QueryAsrPipelineListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allPipelineList = value["PipelineList"]["Pipeline"];
for (auto value : allPipelineList)
{
Pipeline pipelineListObject;
if(!value["Id"].isNull())
pipelineListObject.id = value["Id"].asString();
if(!value["Name"].isNull())
pipelineListObject.name = value["Name"].asString();
if(!value["State"].isNull())
pipelineListObject.state = value["State"].asString();
if(!value["Priority"].isNull())
pipelineListObject.priority = value["Priority"].asString();
auto notifyConfigNode = value["NotifyConfig"];
if(!notifyConfigNode["Topic"].isNull())
pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString();
if(!notifyConfigNode["QueueName"].isNull())
pipelineListObject.notifyConfig.queueName = notifyConfigNode["QueueName"].asString();
pipelineList_.push_back(pipelineListObject);
}
auto allNonExistIds = value["NonExistIds"]["String"];
for (const auto &item : allNonExistIds)
nonExistIds_.push_back(item.asString());
}
std::vector<QueryAsrPipelineListResult::Pipeline> QueryAsrPipelineListResult::getPipelineList()const
{
return pipelineList_;
}
std::vector<std::string> QueryAsrPipelineListResult::getNonExistIds()const
{
return nonExistIds_;
}

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/mts/model/QueryAuthConfigRequest.h>
using AlibabaCloud::Mts::Model::QueryAuthConfigRequest;
QueryAuthConfigRequest::QueryAuthConfigRequest() :
RpcServiceRequest("mts", "2014-06-18", "QueryAuthConfig")
{}
QueryAuthConfigRequest::~QueryAuthConfigRequest()
{}
std::string QueryAuthConfigRequest::getResourceOwnerId()const
{
return resourceOwnerId_;
}
void QueryAuthConfigRequest::setResourceOwnerId(const std::string& resourceOwnerId)
{
resourceOwnerId_ = resourceOwnerId;
setParameter("ResourceOwnerId", resourceOwnerId);
}
std::string QueryAuthConfigRequest::getResourceOwnerAccount()const
{
return resourceOwnerAccount_;
}
void QueryAuthConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount)
{
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter("ResourceOwnerAccount", resourceOwnerAccount);
}
std::string QueryAuthConfigRequest::getOwnerAccount()const
{
return ownerAccount_;
}
void QueryAuthConfigRequest::setOwnerAccount(const std::string& ownerAccount)
{
ownerAccount_ = ownerAccount;
setParameter("OwnerAccount", ownerAccount);
}
std::string QueryAuthConfigRequest::getOwnerId()const
{
return ownerId_;
}
void QueryAuthConfigRequest::setOwnerId(const std::string& ownerId)
{
ownerId_ = ownerId;
setParameter("OwnerId", ownerId);
}
std::string QueryAuthConfigRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void QueryAuthConfigRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

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

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