Update water-mark params

This commit is contained in:
sdk-team
2024-07-23 02:38:34 +00:00
parent 7f6b7dbfba
commit 4985a32853
599 changed files with 5679 additions and 43660 deletions

File diff suppressed because it is too large Load Diff

View File

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

View File

@@ -1,63 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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["State"].isNull())
pipeline_.state = pipelineNode["State"].asString();
if(!pipelineNode["Priority"].isNull())
pipeline_.priority = std::stoi(pipelineNode["Priority"].asString());
if(!pipelineNode["Name"].isNull())
pipeline_.name = pipelineNode["Name"].asString();
if(!pipelineNode["Id"].isNull())
pipeline_.id = pipelineNode["Id"].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

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

View File

@@ -1,58 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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["CateName"].isNull())
category_.cateName = categoryNode["CateName"].asString();
if(!categoryNode["ParentId"].isNull())
category_.parentId = categoryNode["ParentId"].asString();
if(!categoryNode["CateId"].isNull())
category_.cateId = categoryNode["CateId"].asString();
if(!categoryNode["Level"].isNull())
category_.level = categoryNode["Level"].asString();
}
AddCategoryResult::Category AddCategoryResult::getCategory()const
{
return category_;
}

View File

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

View File

@@ -1,63 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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["State"].isNull())
pipeline_.state = pipelineNode["State"].asString();
if(!pipelineNode["Priority"].isNull())
pipeline_.priority = std::stoi(pipelineNode["Priority"].asString());
if(!pipelineNode["Name"].isNull())
pipeline_.name = pipelineNode["Name"].asString();
if(!pipelineNode["Id"].isNull())
pipeline_.id = pipelineNode["Id"].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

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

View File

@@ -1,65 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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["State"].isNull())
pipeline_.state = pipelineNode["State"].asString();
if(!pipelineNode["Priority"].isNull())
pipeline_.priority = pipelineNode["Priority"].asString();
if(!pipelineNode["Role"].isNull())
pipeline_.role = pipelineNode["Role"].asString();
if(!pipelineNode["Name"].isNull())
pipeline_.name = pipelineNode["Name"].asString();
if(!pipelineNode["Id"].isNull())
pipeline_.id = pipelineNode["Id"].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

@@ -1,171 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddMCTemplateRequest.h>
using AlibabaCloud::Mts::Model::AddMCTemplateRequest;
AddMCTemplateRequest::AddMCTemplateRequest()
: RpcServiceRequest("mts", "2014-06-18", "AddMCTemplate") {
setMethod(HttpRequest::Method::Post);
}
AddMCTemplateRequest::~AddMCTemplateRequest() {}
std::string AddMCTemplateRequest::getPolitics() const {
return politics_;
}
void AddMCTemplateRequest::setPolitics(const std::string &politics) {
politics_ = politics;
setParameter(std::string("Politics"), politics);
}
long AddMCTemplateRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void AddMCTemplateRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string AddMCTemplateRequest::getAbuse() const {
return abuse_;
}
void AddMCTemplateRequest::setAbuse(const std::string &abuse) {
abuse_ = abuse;
setParameter(std::string("Abuse"), abuse);
}
std::string AddMCTemplateRequest::getQrcode() const {
return qrcode_;
}
void AddMCTemplateRequest::setQrcode(const std::string &qrcode) {
qrcode_ = qrcode;
setParameter(std::string("Qrcode"), qrcode);
}
std::string AddMCTemplateRequest::getAccessKeyId() const {
return accessKeyId_;
}
void AddMCTemplateRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string AddMCTemplateRequest::getPorn() const {
return porn_;
}
void AddMCTemplateRequest::setPorn(const std::string &porn) {
porn_ = porn;
setParameter(std::string("Porn"), porn);
}
std::string AddMCTemplateRequest::getTerrorism() const {
return terrorism_;
}
void AddMCTemplateRequest::setTerrorism(const std::string &terrorism) {
terrorism_ = terrorism;
setParameter(std::string("Terrorism"), terrorism);
}
std::string AddMCTemplateRequest::getLogo() const {
return logo_;
}
void AddMCTemplateRequest::setLogo(const std::string &logo) {
logo_ = logo;
setParameter(std::string("Logo"), logo);
}
std::string AddMCTemplateRequest::getLive() const {
return live_;
}
void AddMCTemplateRequest::setLive(const std::string &live) {
live_ = live;
setParameter(std::string("Live"), live);
}
std::string AddMCTemplateRequest::getContraband() const {
return contraband_;
}
void AddMCTemplateRequest::setContraband(const std::string &contraband) {
contraband_ = contraband;
setParameter(std::string("Contraband"), contraband);
}
std::string AddMCTemplateRequest::getAd() const {
return ad_;
}
void AddMCTemplateRequest::setAd(const std::string &ad) {
ad_ = ad;
setParameter(std::string("Ad"), ad);
}
std::string AddMCTemplateRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void AddMCTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string AddMCTemplateRequest::getOwnerAccount() const {
return ownerAccount_;
}
void AddMCTemplateRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long AddMCTemplateRequest::getOwnerId() const {
return ownerId_;
}
void AddMCTemplateRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string AddMCTemplateRequest::getName() const {
return name_;
}
void AddMCTemplateRequest::setName(const std::string &name) {
name_ = name;
setParameter(std::string("Name"), name);
}
std::string AddMCTemplateRequest::getSpam() const {
return spam_;
}
void AddMCTemplateRequest::setSpam(const std::string &spam) {
spam_ = spam;
setParameter(std::string("spam"), spam);
}

View File

@@ -1,74 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/AddMCTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
AddMCTemplateResult::AddMCTemplateResult() :
ServiceResult()
{}
AddMCTemplateResult::AddMCTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddMCTemplateResult::~AddMCTemplateResult()
{}
void AddMCTemplateResult::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["Logo"].isNull())
_template_.logo = _templateNode["Logo"].asString();
if(!_templateNode["Abuse"].isNull())
_template_.abuse = _templateNode["Abuse"].asString();
if(!_templateNode["Terrorism"].isNull())
_template_.terrorism = _templateNode["Terrorism"].asString();
if(!_templateNode["Politics"].isNull())
_template_.politics = _templateNode["Politics"].asString();
if(!_templateNode["Qrcode"].isNull())
_template_.qrcode = _templateNode["Qrcode"].asString();
if(!_templateNode["Spam"].isNull())
_template_.spam = _templateNode["Spam"].asString();
if(!_templateNode["Live"].isNull())
_template_.live = _templateNode["Live"].asString();
if(!_templateNode["Contraband"].isNull())
_template_.contraband = _templateNode["Contraband"].asString();
if(!_templateNode["Ad"].isNull())
_template_.ad = _templateNode["Ad"].asString();
if(!_templateNode["Porn"].isNull())
_template_.porn = _templateNode["Porn"].asString();
if(!_templateNode["Name"].isNull())
_template_.name = _templateNode["Name"].asString();
if(!_templateNode["TemplateId"].isNull())
_template_.templateId = _templateNode["TemplateId"].asString();
}
AddMCTemplateResult::_Template AddMCTemplateResult::get_Template()const
{
return _template_;
}

View File

@@ -61,6 +61,15 @@ void AddPipelineRequest::setAccessKeyId(const std::string &accessKeyId) {
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string AddPipelineRequest::getExtendConfig() const {
return extendConfig_;
}
void AddPipelineRequest::setExtendConfig(const std::string &extendConfig) {
extendConfig_ = extendConfig;
setParameter(std::string("ExtendConfig"), extendConfig);
}
std::string AddPipelineRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}

View File

@@ -63,6 +63,13 @@ void AddPipelineResult::parse(const std::string &payload)
pipeline_.notifyConfig.mqTag = notifyConfigNode["MqTag"].asString();
if(!notifyConfigNode["Topic"].isNull())
pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString();
auto extendConfigNode = pipelineNode["ExtendConfig"];
if(!extendConfigNode["IsBoostNew"].isNull())
pipeline_.extendConfig.isBoostNew = extendConfigNode["IsBoostNew"].asString() == "true";
if(!extendConfigNode["MaxMultiSpeed"].isNull())
pipeline_.extendConfig.maxMultiSpeed = std::stoi(extendConfigNode["MaxMultiSpeed"].asString());
if(!extendConfigNode["MultiSpeedDowngradePolicy"].isNull())
pipeline_.extendConfig.multiSpeedDowngradePolicy = extendConfigNode["MultiSpeedDowngradePolicy"].asString();
}

View File

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

View File

@@ -1,63 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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["State"].isNull())
pipeline_.state = pipelineNode["State"].asString();
if(!pipelineNode["Priority"].isNull())
pipeline_.priority = std::stoi(pipelineNode["Priority"].asString());
if(!pipelineNode["Name"].isNull())
pipeline_.name = pipelineNode["Name"].asString();
if(!pipelineNode["Id"].isNull())
pipeline_.id = pipelineNode["Id"].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

@@ -34,6 +34,15 @@ void AddSmarttagTemplateRequest::setResourceOwnerId(long resourceOwnerId) {
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string AddSmarttagTemplateRequest::getKnowledgeConfig() const {
return knowledgeConfig_;
}
void AddSmarttagTemplateRequest::setKnowledgeConfig(const std::string &knowledgeConfig) {
knowledgeConfig_ = knowledgeConfig;
setParameter(std::string("KnowledgeConfig"), knowledgeConfig);
}
std::string AddSmarttagTemplateRequest::getIndustry() const {
return industry_;
}
@@ -43,6 +52,15 @@ void AddSmarttagTemplateRequest::setIndustry(const std::string &industry) {
setParameter(std::string("Industry"), industry);
}
std::string AddSmarttagTemplateRequest::getLabelVersion() const {
return labelVersion_;
}
void AddSmarttagTemplateRequest::setLabelVersion(const std::string &labelVersion) {
labelVersion_ = labelVersion;
setParameter(std::string("LabelVersion"), labelVersion);
}
std::string AddSmarttagTemplateRequest::getAccessKeyId() const {
return accessKeyId_;
}
@@ -61,6 +79,15 @@ void AddSmarttagTemplateRequest::setScene(const std::string &scene) {
setParameter(std::string("Scene"), scene);
}
std::string AddSmarttagTemplateRequest::getFaceCustomParamsConfig() const {
return faceCustomParamsConfig_;
}
void AddSmarttagTemplateRequest::setFaceCustomParamsConfig(const std::string &faceCustomParamsConfig) {
faceCustomParamsConfig_ = faceCustomParamsConfig;
setParameter(std::string("FaceCustomParamsConfig"), faceCustomParamsConfig);
}
std::string AddSmarttagTemplateRequest::getTemplateName() const {
return templateName_;
}
@@ -88,6 +115,24 @@ void AddSmarttagTemplateRequest::setFaceCategoryIds(const std::string &faceCateg
setParameter(std::string("FaceCategoryIds"), faceCategoryIds);
}
std::string AddSmarttagTemplateRequest::getKeywordConfig() const {
return keywordConfig_;
}
void AddSmarttagTemplateRequest::setKeywordConfig(const std::string &keywordConfig) {
keywordConfig_ = keywordConfig;
setParameter(std::string("KeywordConfig"), keywordConfig);
}
std::string AddSmarttagTemplateRequest::getLandmarkGroupIds() const {
return landmarkGroupIds_;
}
void AddSmarttagTemplateRequest::setLandmarkGroupIds(const std::string &landmarkGroupIds) {
landmarkGroupIds_ = landmarkGroupIds;
setParameter(std::string("LandmarkGroupIds"), landmarkGroupIds);
}
std::string AddSmarttagTemplateRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
@@ -106,6 +151,15 @@ void AddSmarttagTemplateRequest::setOwnerAccount(const std::string &ownerAccount
setParameter(std::string("OwnerAccount"), ownerAccount);
}
std::string AddSmarttagTemplateRequest::getObjectGroupIds() const {
return objectGroupIds_;
}
void AddSmarttagTemplateRequest::setObjectGroupIds(const std::string &objectGroupIds) {
objectGroupIds_ = objectGroupIds;
setParameter(std::string("ObjectGroupIds"), objectGroupIds);
}
long AddSmarttagTemplateRequest::getOwnerId() const {
return ownerId_;
}
@@ -124,3 +178,12 @@ void AddSmarttagTemplateRequest::setAnalyseTypes(const std::string &analyseTypes
setParameter(std::string("AnalyseTypes"), analyseTypes);
}
std::string AddSmarttagTemplateRequest::getLabelType() const {
return labelType_;
}
void AddSmarttagTemplateRequest::setLabelType(const std::string &labelType) {
labelType_ = labelType;
setParameter(std::string("LabelType"), labelType);
}

View File

@@ -89,11 +89,20 @@ void AddTemplateResult::parse(const std::string &payload)
_template_.video.scanMode = videoNode["ScanMode"].asString();
if(!videoNode["ResoPriority"].isNull())
_template_.video.resoPriority = videoNode["ResoPriority"].asString();
if(!videoNode["Hdr2sdr"].isNull())
_template_.video.hdr2sdr = videoNode["Hdr2sdr"].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 narrowBandNode = videoNode["NarrowBand"];
if(!narrowBandNode["Version"].isNull())
_template_.video.narrowBand.version = narrowBandNode["Version"].asString();
if(!narrowBandNode["Abrmax"].isNull())
_template_.video.narrowBand.abrmax = std::stof(narrowBandNode["Abrmax"].asString());
if(!narrowBandNode["MaxAbrRatio"].isNull())
_template_.video.narrowBand.maxAbrRatio = std::stof(narrowBandNode["MaxAbrRatio"].asString());
auto transConfigNode = _templateNode["TransConfig"];
if(!transConfigNode["IsCheckAudioBitrate"].isNull())
_template_.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString();
@@ -147,6 +156,14 @@ void AddTemplateResult::parse(const std::string &payload)
_template_.audio.volume.method = volumeNode["Method"].asString();
if(!volumeNode["Level"].isNull())
_template_.audio.volume.level = volumeNode["Level"].asString();
if(!volumeNode["IntegratedLoudnessTarget"].isNull())
_template_.audio.volume.integratedLoudnessTarget = volumeNode["IntegratedLoudnessTarget"].asString();
if(!volumeNode["TruePeak"].isNull())
_template_.audio.volume.truePeak = volumeNode["TruePeak"].asString();
if(!volumeNode["LoudnessRangeTarget"].isNull())
_template_.audio.volume.loudnessRangeTarget = volumeNode["LoudnessRangeTarget"].asString();
if(!volumeNode["PeakLevel"].isNull())
_template_.audio.volume.peakLevel = volumeNode["PeakLevel"].asString();
auto containerNode = _templateNode["Container"];
if(!containerNode["Format"].isNull())
_template_.container.format = containerNode["Format"].asString();

View File

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

View File

@@ -1,63 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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["State"].isNull())
pipeline_.state = pipelineNode["State"].asString();
if(!pipelineNode["Priority"].isNull())
pipeline_.priority = std::stoi(pipelineNode["Priority"].asString());
if(!pipelineNode["Name"].isNull())
pipeline_.name = pipelineNode["Name"].asString();
if(!pipelineNode["Id"].isNull())
pipeline_.id = pipelineNode["Id"].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

@@ -25,6 +25,15 @@ BindInputBucketRequest::BindInputBucketRequest()
BindInputBucketRequest::~BindInputBucketRequest() {}
std::string BindInputBucketRequest::getReferer() const {
return referer_;
}
void BindInputBucketRequest::setReferer(const std::string &referer) {
referer_ = referer;
setParameter(std::string("Referer"), referer);
}
long BindInputBucketRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
@@ -34,6 +43,15 @@ void BindInputBucketRequest::setResourceOwnerId(long resourceOwnerId) {
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string BindInputBucketRequest::getDepositorCredentials() const {
return depositorCredentials_;
}
void BindInputBucketRequest::setDepositorCredentials(const std::string &depositorCredentials) {
depositorCredentials_ = depositorCredentials;
setParameter(std::string("DepositorCredentials"), depositorCredentials);
}
std::string BindInputBucketRequest::getAccessKeyId() const {
return accessKeyId_;
}

View File

@@ -34,6 +34,15 @@ void BindOutputBucketRequest::setResourceOwnerId(long resourceOwnerId) {
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string BindOutputBucketRequest::getDepositorCredentials() const {
return depositorCredentials_;
}
void BindOutputBucketRequest::setDepositorCredentials(const std::string &depositorCredentials) {
depositorCredentials_ = depositorCredentials;
setParameter(std::string("DepositorCredentials"), depositorCredentials);
}
std::string BindOutputBucketRequest::getAccessKeyId() const {
return accessKeyId_;
}

View File

@@ -34,6 +34,24 @@ void CancelJobRequest::setResourceOwnerId(long resourceOwnerId) {
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string CancelJobRequest::getAccessKeyId() const {
return accessKeyId_;
}
void CancelJobRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string CancelJobRequest::getJobId() const {
return jobId_;
}
void CancelJobRequest::setJobId(const std::string &jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), jobId);
}
std::string CancelJobRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
@@ -61,21 +79,3 @@ void CancelJobRequest::setOwnerId(long ownerId) {
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string CancelJobRequest::getAccessKeyId() const {
return accessKeyId_;
}
void CancelJobRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string CancelJobRequest::getJobId() const {
return jobId_;
}
void CancelJobRequest::setJobId(const std::string &jobId) {
jobId_ = jobId;
setParameter(std::string("JobId"), jobId);
}

View File

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

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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

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

View File

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

View File

@@ -0,0 +1,108 @@
/*
* 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/CreateCustomEntityRequest.h>
using AlibabaCloud::Mts::Model::CreateCustomEntityRequest;
CreateCustomEntityRequest::CreateCustomEntityRequest()
: RpcServiceRequest("mts", "2014-06-18", "CreateCustomEntity") {
setMethod(HttpRequest::Method::Post);
}
CreateCustomEntityRequest::~CreateCustomEntityRequest() {}
long CreateCustomEntityRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void CreateCustomEntityRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string CreateCustomEntityRequest::getAccessKeyId() const {
return accessKeyId_;
}
void CreateCustomEntityRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string CreateCustomEntityRequest::getAlgorithm() const {
return algorithm_;
}
void CreateCustomEntityRequest::setAlgorithm(const std::string &algorithm) {
algorithm_ = algorithm;
setParameter(std::string("Algorithm"), algorithm);
}
std::string CreateCustomEntityRequest::getCustomGroupId() const {
return customGroupId_;
}
void CreateCustomEntityRequest::setCustomGroupId(const std::string &customGroupId) {
customGroupId_ = customGroupId;
setParameter(std::string("CustomGroupId"), customGroupId);
}
std::string CreateCustomEntityRequest::getCustomEntityName() const {
return customEntityName_;
}
void CreateCustomEntityRequest::setCustomEntityName(const std::string &customEntityName) {
customEntityName_ = customEntityName;
setParameter(std::string("CustomEntityName"), customEntityName);
}
std::string CreateCustomEntityRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void CreateCustomEntityRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string CreateCustomEntityRequest::getOwnerAccount() const {
return ownerAccount_;
}
void CreateCustomEntityRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long CreateCustomEntityRequest::getOwnerId() const {
return ownerId_;
}
void CreateCustomEntityRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string CreateCustomEntityRequest::getCustomEntityInfo() const {
return customEntityInfo_;
}
void CreateCustomEntityRequest::setCustomEntityInfo(const std::string &customEntityInfo) {
customEntityInfo_ = customEntityInfo;
setParameter(std::string("CustomEntityInfo"), customEntityInfo);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/mts/model/SubmitFpCompareJobResult.h>
#include <alibabacloud/mts/model/CreateCustomEntityResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
SubmitFpCompareJobResult::SubmitFpCompareJobResult() :
CreateCustomEntityResult::CreateCustomEntityResult() :
ServiceResult()
{}
SubmitFpCompareJobResult::SubmitFpCompareJobResult(const std::string &payload) :
CreateCustomEntityResult::CreateCustomEntityResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitFpCompareJobResult::~SubmitFpCompareJobResult()
CreateCustomEntityResult::~CreateCustomEntityResult()
{}
void SubmitFpCompareJobResult::parse(const std::string &payload)
void CreateCustomEntityResult::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();
if(!value["CustomEntityId"].isNull())
customEntityId_ = value["CustomEntityId"].asString();
}
std::string SubmitFpCompareJobResult::getJobId()const
std::string CreateCustomEntityResult::getCustomEntityId()const
{
return jobId_;
return customEntityId_;
}

View File

@@ -0,0 +1,99 @@
/*
* 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/CreateCustomGroupRequest.h>
using AlibabaCloud::Mts::Model::CreateCustomGroupRequest;
CreateCustomGroupRequest::CreateCustomGroupRequest()
: RpcServiceRequest("mts", "2014-06-18", "CreateCustomGroup") {
setMethod(HttpRequest::Method::Post);
}
CreateCustomGroupRequest::~CreateCustomGroupRequest() {}
long CreateCustomGroupRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void CreateCustomGroupRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string CreateCustomGroupRequest::getAccessKeyId() const {
return accessKeyId_;
}
void CreateCustomGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string CreateCustomGroupRequest::getCustomGroupName() const {
return customGroupName_;
}
void CreateCustomGroupRequest::setCustomGroupName(const std::string &customGroupName) {
customGroupName_ = customGroupName;
setParameter(std::string("CustomGroupName"), customGroupName);
}
std::string CreateCustomGroupRequest::getAlgorithm() const {
return algorithm_;
}
void CreateCustomGroupRequest::setAlgorithm(const std::string &algorithm) {
algorithm_ = algorithm;
setParameter(std::string("Algorithm"), algorithm);
}
std::string CreateCustomGroupRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void CreateCustomGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string CreateCustomGroupRequest::getOwnerAccount() const {
return ownerAccount_;
}
void CreateCustomGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long CreateCustomGroupRequest::getOwnerId() const {
return ownerId_;
}
void CreateCustomGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string CreateCustomGroupRequest::getCustomGroupDescription() const {
return customGroupDescription_;
}
void CreateCustomGroupRequest::setCustomGroupDescription(const std::string &customGroupDescription) {
customGroupDescription_ = customGroupDescription;
setParameter(std::string("CustomGroupDescription"), customGroupDescription);
}

View File

@@ -14,38 +14,38 @@
* limitations under the License.
*/
#include <alibabacloud/mts/model/CreateMcuTemplateResult.h>
#include <alibabacloud/mts/model/CreateCustomGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
CreateMcuTemplateResult::CreateMcuTemplateResult() :
CreateCustomGroupResult::CreateCustomGroupResult() :
ServiceResult()
{}
CreateMcuTemplateResult::CreateMcuTemplateResult(const std::string &payload) :
CreateCustomGroupResult::CreateCustomGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMcuTemplateResult::~CreateMcuTemplateResult()
CreateCustomGroupResult::~CreateCustomGroupResult()
{}
void CreateMcuTemplateResult::parse(const std::string &payload)
void CreateCustomGroupResult::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();
if(!value["CustomGroupId"].isNull())
customGroupId_ = value["CustomGroupId"].asString();
}
std::string CreateMcuTemplateResult::getTemplateId()const
std::string CreateCustomGroupResult::getCustomGroupId()const
{
return templateId_;
return customGroupId_;
}

View File

@@ -88,6 +88,15 @@ void CreateFpShotDBRequest::setOwnerId(long ownerId) {
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string CreateFpShotDBRequest::getInstanceId() const {
return instanceId_;
}
void CreateFpShotDBRequest::setInstanceId(const std::string &instanceId) {
instanceId_ = instanceId;
setParameter(std::string("InstanceId"), instanceId);
}
std::string CreateFpShotDBRequest::getName() const {
return name_;
}

View File

@@ -52,6 +52,8 @@ void CreateFpShotDBResult::parse(const std::string &payload)
fpShotDB_.modelId = std::stoi(fpShotDBNode["ModelId"].asString());
if(!fpShotDBNode["Config"].isNull())
fpShotDB_.config = fpShotDBNode["Config"].asString();
if(!fpShotDBNode["InstanceId"].isNull())
fpShotDB_.instanceId = fpShotDBNode["InstanceId"].asString();
}

View File

@@ -1,81 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/CreateInferenceServerRequest.h>
using AlibabaCloud::Mts::Model::CreateInferenceServerRequest;
CreateInferenceServerRequest::CreateInferenceServerRequest()
: RpcServiceRequest("mts", "2014-06-18", "CreateInferenceServer") {
setMethod(HttpRequest::Method::Post);
}
CreateInferenceServerRequest::~CreateInferenceServerRequest() {}
std::string CreateInferenceServerRequest::getPipelineId() const {
return pipelineId_;
}
void CreateInferenceServerRequest::setPipelineId(const std::string &pipelineId) {
pipelineId_ = pipelineId;
setParameter(std::string("PipelineId"), pipelineId);
}
std::string CreateInferenceServerRequest::getUserData() const {
return userData_;
}
void CreateInferenceServerRequest::setUserData(const std::string &userData) {
userData_ = userData;
setParameter(std::string("UserData"), userData);
}
std::string CreateInferenceServerRequest::getModelType() const {
return modelType_;
}
void CreateInferenceServerRequest::setModelType(const std::string &modelType) {
modelType_ = modelType;
setParameter(std::string("ModelType"), modelType);
}
std::string CreateInferenceServerRequest::getFunctionName() const {
return functionName_;
}
void CreateInferenceServerRequest::setFunctionName(const std::string &functionName) {
functionName_ = functionName;
setParameter(std::string("FunctionName"), functionName);
}
std::string CreateInferenceServerRequest::getTestId() const {
return testId_;
}
void CreateInferenceServerRequest::setTestId(const std::string &testId) {
testId_ = testId;
setParameter(std::string("TestId"), testId);
}
std::string CreateInferenceServerRequest::getModelPath() const {
return modelPath_;
}
void CreateInferenceServerRequest::setModelPath(const std::string &modelPath) {
modelPath_ = modelPath;
setParameter(std::string("ModelPath"), modelPath);
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,99 @@
/*
* 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/DeleteCustomEntityRequest.h>
using AlibabaCloud::Mts::Model::DeleteCustomEntityRequest;
DeleteCustomEntityRequest::DeleteCustomEntityRequest()
: RpcServiceRequest("mts", "2014-06-18", "DeleteCustomEntity") {
setMethod(HttpRequest::Method::Post);
}
DeleteCustomEntityRequest::~DeleteCustomEntityRequest() {}
long DeleteCustomEntityRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DeleteCustomEntityRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DeleteCustomEntityRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DeleteCustomEntityRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DeleteCustomEntityRequest::getAlgorithm() const {
return algorithm_;
}
void DeleteCustomEntityRequest::setAlgorithm(const std::string &algorithm) {
algorithm_ = algorithm;
setParameter(std::string("Algorithm"), algorithm);
}
std::string DeleteCustomEntityRequest::getCustomGroupId() const {
return customGroupId_;
}
void DeleteCustomEntityRequest::setCustomGroupId(const std::string &customGroupId) {
customGroupId_ = customGroupId;
setParameter(std::string("CustomGroupId"), customGroupId);
}
std::string DeleteCustomEntityRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DeleteCustomEntityRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DeleteCustomEntityRequest::getOwnerAccount() const {
return ownerAccount_;
}
void DeleteCustomEntityRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
std::string DeleteCustomEntityRequest::getCustomEntityId() const {
return customEntityId_;
}
void DeleteCustomEntityRequest::setCustomEntityId(const std::string &customEntityId) {
customEntityId_ = customEntityId;
setParameter(std::string("CustomEntityId"), customEntityId);
}
long DeleteCustomEntityRequest::getOwnerId() const {
return ownerId_;
}
void DeleteCustomEntityRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/mts/model/UpdateCategoryNameResult.h>
#include <alibabacloud/mts/model/DeleteCustomEntityResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
UpdateCategoryNameResult::UpdateCategoryNameResult() :
DeleteCustomEntityResult::DeleteCustomEntityResult() :
ServiceResult()
{}
UpdateCategoryNameResult::UpdateCategoryNameResult(const std::string &payload) :
DeleteCustomEntityResult::DeleteCustomEntityResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateCategoryNameResult::~UpdateCategoryNameResult()
DeleteCustomEntityResult::~DeleteCustomEntityResult()
{}
void UpdateCategoryNameResult::parse(const std::string &payload)
void DeleteCustomEntityResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

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/DeleteCustomGroupRequest.h>
using AlibabaCloud::Mts::Model::DeleteCustomGroupRequest;
DeleteCustomGroupRequest::DeleteCustomGroupRequest()
: RpcServiceRequest("mts", "2014-06-18", "DeleteCustomGroup") {
setMethod(HttpRequest::Method::Post);
}
DeleteCustomGroupRequest::~DeleteCustomGroupRequest() {}
long DeleteCustomGroupRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DeleteCustomGroupRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DeleteCustomGroupRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DeleteCustomGroupRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DeleteCustomGroupRequest::getAlgorithm() const {
return algorithm_;
}
void DeleteCustomGroupRequest::setAlgorithm(const std::string &algorithm) {
algorithm_ = algorithm;
setParameter(std::string("Algorithm"), algorithm);
}
std::string DeleteCustomGroupRequest::getCustomGroupId() const {
return customGroupId_;
}
void DeleteCustomGroupRequest::setCustomGroupId(const std::string &customGroupId) {
customGroupId_ = customGroupId;
setParameter(std::string("CustomGroupId"), customGroupId);
}
std::string DeleteCustomGroupRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DeleteCustomGroupRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DeleteCustomGroupRequest::getOwnerAccount() const {
return ownerAccount_;
}
void DeleteCustomGroupRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long DeleteCustomGroupRequest::getOwnerId() const {
return ownerId_;
}
void DeleteCustomGroupRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

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

View File

@@ -0,0 +1,108 @@
/*
* 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/DeleteCustomViewRequest.h>
using AlibabaCloud::Mts::Model::DeleteCustomViewRequest;
DeleteCustomViewRequest::DeleteCustomViewRequest()
: RpcServiceRequest("mts", "2014-06-18", "DeleteCustomView") {
setMethod(HttpRequest::Method::Post);
}
DeleteCustomViewRequest::~DeleteCustomViewRequest() {}
long DeleteCustomViewRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void DeleteCustomViewRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string DeleteCustomViewRequest::getCustomViewId() const {
return customViewId_;
}
void DeleteCustomViewRequest::setCustomViewId(const std::string &customViewId) {
customViewId_ = customViewId;
setParameter(std::string("CustomViewId"), customViewId);
}
std::string DeleteCustomViewRequest::getAccessKeyId() const {
return accessKeyId_;
}
void DeleteCustomViewRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string DeleteCustomViewRequest::getAlgorithm() const {
return algorithm_;
}
void DeleteCustomViewRequest::setAlgorithm(const std::string &algorithm) {
algorithm_ = algorithm;
setParameter(std::string("Algorithm"), algorithm);
}
std::string DeleteCustomViewRequest::getCustomGroupId() const {
return customGroupId_;
}
void DeleteCustomViewRequest::setCustomGroupId(const std::string &customGroupId) {
customGroupId_ = customGroupId;
setParameter(std::string("CustomGroupId"), customGroupId);
}
std::string DeleteCustomViewRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void DeleteCustomViewRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string DeleteCustomViewRequest::getOwnerAccount() const {
return ownerAccount_;
}
void DeleteCustomViewRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
std::string DeleteCustomViewRequest::getCustomEntityId() const {
return customEntityId_;
}
void DeleteCustomViewRequest::setCustomEntityId(const std::string &customEntityId) {
customEntityId_ = customEntityId;
setParameter(std::string("CustomEntityId"), customEntityId);
}
long DeleteCustomViewRequest::getOwnerId() const {
return ownerId_;
}
void DeleteCustomViewRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/mts/model/DeleteCategoryResult.h>
#include <alibabacloud/mts/model/DeleteCustomViewResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
DeleteCategoryResult::DeleteCategoryResult() :
DeleteCustomViewResult::DeleteCustomViewResult() :
ServiceResult()
{}
DeleteCategoryResult::DeleteCategoryResult(const std::string &payload) :
DeleteCustomViewResult::DeleteCustomViewResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteCategoryResult::~DeleteCategoryResult()
DeleteCustomViewResult::~DeleteCustomViewResult()
{}
void DeleteCategoryResult::parse(const std::string &payload)
void DeleteCustomViewResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,54 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/DescribeMtsUserResourcePackageRequest.h>
using AlibabaCloud::Mts::Model::DescribeMtsUserResourcePackageRequest;
DescribeMtsUserResourcePackageRequest::DescribeMtsUserResourcePackageRequest()
: RpcServiceRequest("mts", "2014-06-18", "DescribeMtsUserResourcePackage") {
setMethod(HttpRequest::Method::Post);
}
DescribeMtsUserResourcePackageRequest::~DescribeMtsUserResourcePackageRequest() {}
long DescribeMtsUserResourcePackageRequest::getOwnerId() const {
return ownerId_;
}
void DescribeMtsUserResourcePackageRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string DescribeMtsUserResourcePackageRequest::getSecurityToken() const {
return securityToken_;
}
void DescribeMtsUserResourcePackageRequest::setSecurityToken(const std::string &securityToken) {
securityToken_ = securityToken;
setParameter(std::string("SecurityToken"), securityToken);
}
std::string DescribeMtsUserResourcePackageRequest::getShowLog() const {
return showLog_;
}
void DescribeMtsUserResourcePackageRequest::setShowLog(const std::string &showLog) {
showLog_ = showLog;
setParameter(std::string("ShowLog"), showLog);
}

View File

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

View File

@@ -1,36 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/GetJobInfoRequest.h>
using AlibabaCloud::Mts::Model::GetJobInfoRequest;
GetJobInfoRequest::GetJobInfoRequest()
: RpcServiceRequest("mts", "2014-06-18", "GetJobInfo") {
setMethod(HttpRequest::Method::Get);
}
GetJobInfoRequest::~GetJobInfoRequest() {}
std::string GetJobInfoRequest::getJobId() const {
return jobId_;
}
void GetJobInfoRequest::setJobId(const std::string &jobId) {
jobId_ = jobId;
setParameter(std::string("jobId"), jobId);
}

View File

@@ -1,72 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/GetJobInfoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
GetJobInfoResult::GetJobInfoResult() :
ServiceResult()
{}
GetJobInfoResult::GetJobInfoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetJobInfoResult::~GetJobInfoResult()
{}
void GetJobInfoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto mtsTransferJobNode = value["MtsTransferJob"];
if(!mtsTransferJobNode["JobId"].isNull())
mtsTransferJob_.jobId = mtsTransferJobNode["JobId"].asString();
if(!mtsTransferJobNode["JobType"].isNull())
mtsTransferJob_.jobType = mtsTransferJobNode["JobType"].asString();
if(!mtsTransferJobNode["CreateTime"].isNull())
mtsTransferJob_.createTime = mtsTransferJobNode["CreateTime"].asString();
if(!mtsTransferJobNode["ModifiedTime"].isNull())
mtsTransferJob_.modifiedTime = mtsTransferJobNode["ModifiedTime"].asString();
if(!mtsTransferJobNode["FinishedTime"].isNull())
mtsTransferJob_.finishedTime = mtsTransferJobNode["FinishedTime"].asString();
if(!mtsTransferJobNode["State"].isNull())
mtsTransferJob_.state = mtsTransferJobNode["State"].asString();
if(!mtsTransferJobNode["ErrorCode"].isNull())
mtsTransferJob_.errorCode = mtsTransferJobNode["ErrorCode"].asString();
if(!mtsTransferJobNode["ErrorMessage"].isNull())
mtsTransferJob_.errorMessage = mtsTransferJobNode["ErrorMessage"].asString();
if(!mtsTransferJobNode["UserData"].isNull())
mtsTransferJob_.userData = mtsTransferJobNode["UserData"].asString();
if(!mtsTransferJobNode["Extend"].isNull())
mtsTransferJob_.extend = mtsTransferJobNode["Extend"].asString();
if(!mtsTransferJobNode["RequestJson"].isNull())
mtsTransferJob_.requestJson = mtsTransferJobNode["RequestJson"].asString();
}
GetJobInfoResult::MtsTransferJob GetJobInfoResult::getMtsTransferJob()const
{
return mtsTransferJob_;
}

View File

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

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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

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

View File

@@ -1,51 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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,99 @@
/*
* 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/ImAuditRequest.h>
using AlibabaCloud::Mts::Model::ImAuditRequest;
ImAuditRequest::ImAuditRequest()
: RpcServiceRequest("mts", "2014-06-18", "ImAudit") {
setMethod(HttpRequest::Method::Post);
}
ImAuditRequest::~ImAuditRequest() {}
long ImAuditRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void ImAuditRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string ImAuditRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ImAuditRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string ImAuditRequest::getImages() const {
return images_;
}
void ImAuditRequest::setImages(const std::string &images) {
images_ = images;
setParameter(std::string("Images"), images);
}
std::string ImAuditRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void ImAuditRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
long ImAuditRequest::getOwnerId() const {
return ownerId_;
}
void ImAuditRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string ImAuditRequest::getBizType() const {
return bizType_;
}
void ImAuditRequest::setBizType(const std::string &bizType) {
bizType_ = bizType;
setParameter(std::string("BizType"), bizType);
}
std::string ImAuditRequest::getContents() const {
return contents_;
}
void ImAuditRequest::setContents(const std::string &contents) {
contents_ = contents;
setParameter(std::string("Contents"), contents);
}
std::string ImAuditRequest::getScenes() const {
return scenes_;
}
void ImAuditRequest::setScenes(const std::string &scenes) {
scenes_ = scenes;
setParameter(std::string("Scenes"), scenes);
}

View File

@@ -0,0 +1,255 @@
/*
* 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/ImAuditResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ImAuditResult::ImAuditResult() :
ServiceResult()
{}
ImAuditResult::ImAuditResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ImAuditResult::~ImAuditResult()
{}
void ImAuditResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto imageResultsNode = value["ImageResults"];
auto allresultNode = imageResultsNode["result"]["resultItem"];
for (auto imageResultsNoderesultresultItem : allresultNode)
{
ImageResults::ResultItem resultItemObject;
if(!imageResultsNoderesultresultItem["code"].isNull())
resultItemObject.code = std::stol(imageResultsNoderesultresultItem["code"].asString());
if(!imageResultsNoderesultresultItem["dataId"].isNull())
resultItemObject.dataId = imageResultsNoderesultresultItem["dataId"].asString();
if(!imageResultsNoderesultresultItem["extras"].isNull())
resultItemObject.extras = imageResultsNoderesultresultItem["extras"].asString();
if(!imageResultsNoderesultresultItem["msg"].isNull())
resultItemObject.msg = imageResultsNoderesultresultItem["msg"].asString();
if(!imageResultsNoderesultresultItem["taskId"].isNull())
resultItemObject.taskId = imageResultsNoderesultresultItem["taskId"].asString();
if(!imageResultsNoderesultresultItem["url"].isNull())
resultItemObject.url = imageResultsNoderesultresultItem["url"].asString();
auto allresultsNode = imageResultsNoderesultresultItem["results"]["result"];
for (auto imageResultsNoderesultresultItemresultsresult : allresultsNode)
{
ImageResults::ResultItem::Result resultsObject;
if(!imageResultsNoderesultresultItemresultsresult["Label"].isNull())
resultsObject.label = imageResultsNoderesultresultItemresultsresult["Label"].asString();
if(!imageResultsNoderesultresultItemresultsresult["Rate"].isNull())
resultsObject.rate = imageResultsNoderesultresultItemresultsresult["Rate"].asString();
if(!imageResultsNoderesultresultItemresultsresult["Scene"].isNull())
resultsObject.scene = imageResultsNoderesultresultItemresultsresult["Scene"].asString();
if(!imageResultsNoderesultresultItemresultsresult["Suggestion"].isNull())
resultsObject.suggestion = imageResultsNoderesultresultItemresultsresult["Suggestion"].asString();
auto allhintWordsInfoNode = imageResultsNoderesultresultItemresultsresult["hintWordsInfo"]["hintWordsInfoItem"];
for (auto imageResultsNoderesultresultItemresultsresulthintWordsInfohintWordsInfoItem : allhintWordsInfoNode)
{
ImageResults::ResultItem::Result::HintWordsInfoItem hintWordsInfoObject;
if(!imageResultsNoderesultresultItemresultsresulthintWordsInfohintWordsInfoItem["context"].isNull())
hintWordsInfoObject.context = imageResultsNoderesultresultItemresultsresulthintWordsInfohintWordsInfoItem["context"].asString();
resultsObject.hintWordsInfo.push_back(hintWordsInfoObject);
}
auto allqrcodeLocationsNode = imageResultsNoderesultresultItemresultsresult["qrcodeLocations"]["qrcodeLocationsItem"];
for (auto imageResultsNoderesultresultItemresultsresultqrcodeLocationsqrcodeLocationsItem : allqrcodeLocationsNode)
{
ImageResults::ResultItem::Result::QrcodeLocationsItem qrcodeLocationsObject;
if(!imageResultsNoderesultresultItemresultsresultqrcodeLocationsqrcodeLocationsItem["x"].isNull())
qrcodeLocationsObject.x = std::stof(imageResultsNoderesultresultItemresultsresultqrcodeLocationsqrcodeLocationsItem["x"].asString());
if(!imageResultsNoderesultresultItemresultsresultqrcodeLocationsqrcodeLocationsItem["y"].isNull())
qrcodeLocationsObject.y = std::stof(imageResultsNoderesultresultItemresultsresultqrcodeLocationsqrcodeLocationsItem["y"].asString());
if(!imageResultsNoderesultresultItemresultsresultqrcodeLocationsqrcodeLocationsItem["w"].isNull())
qrcodeLocationsObject.w = std::stof(imageResultsNoderesultresultItemresultsresultqrcodeLocationsqrcodeLocationsItem["w"].asString());
if(!imageResultsNoderesultresultItemresultsresultqrcodeLocationsqrcodeLocationsItem["h"].isNull())
qrcodeLocationsObject.h = std::stof(imageResultsNoderesultresultItemresultsresultqrcodeLocationsqrcodeLocationsItem["h"].asString());
if(!imageResultsNoderesultresultItemresultsresultqrcodeLocationsqrcodeLocationsItem["qrcode"].isNull())
qrcodeLocationsObject.qrcode = imageResultsNoderesultresultItemresultsresultqrcodeLocationsqrcodeLocationsItem["qrcode"].asString();
resultsObject.qrcodeLocations.push_back(qrcodeLocationsObject);
}
auto allprogramCodeDataNode = imageResultsNoderesultresultItemresultsresult["programCodeData"]["programCodeDataItem"];
for (auto imageResultsNoderesultresultItemresultsresultprogramCodeDataprogramCodeDataItem : allprogramCodeDataNode)
{
ImageResults::ResultItem::Result::ProgramCodeDataItem programCodeDataObject;
if(!imageResultsNoderesultresultItemresultsresultprogramCodeDataprogramCodeDataItem["x"].isNull())
programCodeDataObject.x = std::stof(imageResultsNoderesultresultItemresultsresultprogramCodeDataprogramCodeDataItem["x"].asString());
if(!imageResultsNoderesultresultItemresultsresultprogramCodeDataprogramCodeDataItem["y"].isNull())
programCodeDataObject.y = std::stof(imageResultsNoderesultresultItemresultsresultprogramCodeDataprogramCodeDataItem["y"].asString());
if(!imageResultsNoderesultresultItemresultsresultprogramCodeDataprogramCodeDataItem["w"].isNull())
programCodeDataObject.w = std::stof(imageResultsNoderesultresultItemresultsresultprogramCodeDataprogramCodeDataItem["w"].asString());
if(!imageResultsNoderesultresultItemresultsresultprogramCodeDataprogramCodeDataItem["h"].isNull())
programCodeDataObject.h = std::stof(imageResultsNoderesultresultItemresultsresultprogramCodeDataprogramCodeDataItem["h"].asString());
resultsObject.programCodeData.push_back(programCodeDataObject);
}
auto alllogoDataNode = imageResultsNoderesultresultItemresultsresult["logoData"]["logoDataItem"];
for (auto imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem : alllogoDataNode)
{
ImageResults::ResultItem::Result::LogoDataItem logoDataObject;
if(!imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["type"].isNull())
logoDataObject.type = imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["type"].asString();
if(!imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["name"].isNull())
logoDataObject.name = imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["name"].asString();
if(!imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["x"].isNull())
logoDataObject.x = std::stof(imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["x"].asString());
if(!imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["y"].isNull())
logoDataObject.y = std::stof(imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["y"].asString());
if(!imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["w"].isNull())
logoDataObject.w = std::stof(imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["w"].asString());
if(!imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["h"].isNull())
logoDataObject.h = std::stof(imageResultsNoderesultresultItemresultsresultlogoDatalogoDataItem["h"].asString());
resultsObject.logoData.push_back(logoDataObject);
}
auto allsfaceDataNode = imageResultsNoderesultresultItemresultsresult["sfaceData"]["sfaceDataItem"];
for (auto imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItem : allsfaceDataNode)
{
ImageResults::ResultItem::Result::SfaceDataItem sfaceDataObject;
if(!imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItem["x"].isNull())
sfaceDataObject.x = std::stof(imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItem["x"].asString());
if(!imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItem["y"].isNull())
sfaceDataObject.y = std::stof(imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItem["y"].asString());
if(!imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItem["w"].isNull())
sfaceDataObject.w = std::stof(imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItem["w"].asString());
if(!imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItem["h"].isNull())
sfaceDataObject.h = std::stof(imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItem["h"].asString());
auto allfacesNode = imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItem["faces"]["facesItem"];
for (auto imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItemfacesfacesItem : allfacesNode)
{
ImageResults::ResultItem::Result::SfaceDataItem::FacesItem facesObject;
if(!imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItemfacesfacesItem["name"].isNull())
facesObject.name = imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItemfacesfacesItem["name"].asString();
if(!imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItemfacesfacesItem["re"].isNull())
facesObject.re = std::stof(imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItemfacesfacesItem["re"].asString());
if(!imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItemfacesfacesItem["idid"].isNull())
facesObject.idid = imageResultsNoderesultresultItemresultsresultsfaceDatasfaceDataItemfacesfacesItem["idid"].asString();
sfaceDataObject.faces.push_back(facesObject);
}
resultsObject.sfaceData.push_back(sfaceDataObject);
}
auto allframesNode = imageResultsNoderesultresultItemresultsresult["frames"]["framesItem"];
for (auto imageResultsNoderesultresultItemresultsresultframesframesItem : allframesNode)
{
ImageResults::ResultItem::Result::FramesItem framesObject;
if(!imageResultsNoderesultresultItemresultsresultframesframesItem["rate"].isNull())
framesObject.rate = std::stof(imageResultsNoderesultresultItemresultsresultframesframesItem["rate"].asString());
if(!imageResultsNoderesultresultItemresultsresultframesframesItem["url"].isNull())
framesObject.url = imageResultsNoderesultresultItemresultsresultframesframesItem["url"].asString();
resultsObject.frames.push_back(framesObject);
}
auto allQrcodeData = value["qrcodeData"]["qrcodeData"];
for (auto value : allQrcodeData)
resultsObject.qrcodeData.push_back(value.asString());
auto allOcrData = value["ocrData"]["ocrData"];
for (auto value : allOcrData)
resultsObject.ocrData.push_back(value.asString());
resultItemObject.results.push_back(resultsObject);
}
imageResults_.result.push_back(resultItemObject);
}
auto textResultsNode = value["TextResults"];
auto allresult1Node = textResultsNode["result"]["resultItem"];
for (auto textResultsNoderesultresultItem : allresult1Node)
{
TextResults::ResultItem2 resultItem2Object;
if(!textResultsNoderesultresultItem["code"].isNull())
resultItem2Object.code = std::stol(textResultsNoderesultresultItem["code"].asString());
if(!textResultsNoderesultresultItem["content"].isNull())
resultItem2Object.content = textResultsNoderesultresultItem["content"].asString();
if(!textResultsNoderesultresultItem["dataId"].isNull())
resultItem2Object.dataId = textResultsNoderesultresultItem["dataId"].asString();
if(!textResultsNoderesultresultItem["msg"].isNull())
resultItem2Object.msg = textResultsNoderesultresultItem["msg"].asString();
if(!textResultsNoderesultresultItem["taskId"].isNull())
resultItem2Object.taskId = textResultsNoderesultresultItem["taskId"].asString();
auto allresults3Node = textResultsNoderesultresultItem["results"]["result"];
for (auto textResultsNoderesultresultItemresultsresult : allresults3Node)
{
TextResults::ResultItem2::Result4 results3Object;
if(!textResultsNoderesultresultItemresultsresult["label"].isNull())
results3Object.label = textResultsNoderesultresultItemresultsresult["label"].asString();
if(!textResultsNoderesultresultItemresultsresult["rate"].isNull())
results3Object.rate = textResultsNoderesultresultItemresultsresult["rate"].asString();
if(!textResultsNoderesultresultItemresultsresult["scene"].isNull())
results3Object.scene = textResultsNoderesultresultItemresultsresult["scene"].asString();
if(!textResultsNoderesultresultItemresultsresult["suggestion"].isNull())
results3Object.suggestion = textResultsNoderesultresultItemresultsresult["suggestion"].asString();
auto alldetailsNode = textResultsNoderesultresultItemresultsresult["details"]["detailsItem"];
for (auto textResultsNoderesultresultItemresultsresultdetailsdetailsItem : alldetailsNode)
{
TextResults::ResultItem2::Result4::DetailsItem detailsObject;
if(!textResultsNoderesultresultItemresultsresultdetailsdetailsItem["Label"].isNull())
detailsObject.label = textResultsNoderesultresultItemresultsresultdetailsdetailsItem["Label"].asString();
auto allcontextsNode = textResultsNoderesultresultItemresultsresultdetailsdetailsItem["contexts"]["contextsItem"];
for (auto textResultsNoderesultresultItemresultsresultdetailsdetailsItemcontextscontextsItem : allcontextsNode)
{
TextResults::ResultItem2::Result4::DetailsItem::ContextsItem contextsObject;
if(!textResultsNoderesultresultItemresultsresultdetailsdetailsItemcontextscontextsItem["context"].isNull())
contextsObject.context = textResultsNoderesultresultItemresultsresultdetailsdetailsItemcontextscontextsItem["context"].asString();
if(!textResultsNoderesultresultItemresultsresultdetailsdetailsItemcontextscontextsItem["libName"].isNull())
contextsObject.libName = textResultsNoderesultresultItemresultsresultdetailsdetailsItemcontextscontextsItem["libName"].asString();
if(!textResultsNoderesultresultItemresultsresultdetailsdetailsItemcontextscontextsItem["libCode"].isNull())
contextsObject.libCode = textResultsNoderesultresultItemresultsresultdetailsdetailsItemcontextscontextsItem["libCode"].asString();
if(!textResultsNoderesultresultItemresultsresultdetailsdetailsItemcontextscontextsItem["ruleType"].isNull())
contextsObject.ruleType = textResultsNoderesultresultItemresultsresultdetailsdetailsItemcontextscontextsItem["ruleType"].asString();
auto allPositions = value["positions"]["positions"];
for (auto value : allPositions)
contextsObject.positions.push_back(value.asString());
detailsObject.contexts.push_back(contextsObject);
}
results3Object.details.push_back(detailsObject);
}
resultItem2Object.results3.push_back(results3Object);
}
textResults_.result1.push_back(resultItem2Object);
}
if(!value["TextQuotaExceed"].isNull())
textQuotaExceed_ = value["TextQuotaExceed"].asString() == "true";
if(!value["ImageQuotaExceed"].isNull())
imageQuotaExceed_ = value["ImageQuotaExceed"].asString() == "true";
}
bool ImAuditResult::getTextQuotaExceed()const
{
return textQuotaExceed_;
}
bool ImAuditResult::getImageQuotaExceed()const
{
return imageQuotaExceed_;
}
ImAuditResult::ImageResults ImAuditResult::getImageResults()const
{
return imageResults_;
}
ImAuditResult::TextResults ImAuditResult::getTextResults()const
{
return textResults_;
}

View File

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

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/mts/model/SubmitInnerJobResult.h>
#include <alibabacloud/mts/model/ImportFpShotJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
SubmitInnerJobResult::SubmitInnerJobResult() :
ImportFpShotJobResult::ImportFpShotJobResult() :
ServiceResult()
{}
SubmitInnerJobResult::SubmitInnerJobResult(const std::string &payload) :
ImportFpShotJobResult::ImportFpShotJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SubmitInnerJobResult::~SubmitInnerJobResult()
ImportFpShotJobResult::~ImportFpShotJobResult()
{}
void SubmitInnerJobResult::parse(const std::string &payload)
void ImportFpShotJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -44,7 +44,7 @@ void SubmitInnerJobResult::parse(const std::string &payload)
}
std::string SubmitInnerJobResult::getJobId()const
std::string ImportFpShotJobResult::getJobId()const
{
return jobId_;
}

View File

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

View File

@@ -1,63 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 allCategoryListNode = value["CategoryList"]["Category"];
for (auto valueCategoryListCategory : allCategoryListNode)
{
Category categoryListObject;
if(!valueCategoryListCategory["CateName"].isNull())
categoryListObject.cateName = valueCategoryListCategory["CateName"].asString();
if(!valueCategoryListCategory["ParentId"].isNull())
categoryListObject.parentId = valueCategoryListCategory["ParentId"].asString();
if(!valueCategoryListCategory["CateId"].isNull())
categoryListObject.cateId = valueCategoryListCategory["CateId"].asString();
if(!valueCategoryListCategory["Level"].isNull())
categoryListObject.level = valueCategoryListCategory["Level"].asString();
categoryList_.push_back(categoryListObject);
}
}
std::vector<ListAllCategoryResult::Category> ListAllCategoryResult::getCategoryList()const
{
return categoryList_;
}

View File

@@ -47,6 +47,8 @@ void ListAllMediaBucketResult::parse(const std::string &payload)
mediaBucketListObject.type = valueMediaBucketListMediaBucket["Type"].asString();
if(!valueMediaBucketListMediaBucket["Bucket"].isNull())
mediaBucketListObject.bucket = valueMediaBucketListMediaBucket["Bucket"].asString();
if(!valueMediaBucketListMediaBucket["Referer"].isNull())
mediaBucketListObject.referer = valueMediaBucketListMediaBucket["Referer"].asString();
mediaBucketList_.push_back(mediaBucketListObject);
}
if(!value["NextPageToken"].isNull())

View File

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

View File

@@ -1,89 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 allPipelineListNode = value["PipelineList"]["Pipeline"];
for (auto valuePipelineListPipeline : allPipelineListNode)
{
Pipeline pipelineListObject;
if(!valuePipelineListPipeline["State"].isNull())
pipelineListObject.state = valuePipelineListPipeline["State"].asString();
if(!valuePipelineListPipeline["Priority"].isNull())
pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString();
if(!valuePipelineListPipeline["Name"].isNull())
pipelineListObject.name = valuePipelineListPipeline["Name"].asString();
if(!valuePipelineListPipeline["Id"].isNull())
pipelineListObject.id = valuePipelineListPipeline["Id"].asString();
auto notifyConfigNode = value["NotifyConfig"];
if(!notifyConfigNode["QueueName"].isNull())
pipelineListObject.notifyConfig.queueName = notifyConfigNode["QueueName"].asString();
if(!notifyConfigNode["Topic"].isNull())
pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString();
pipelineList_.push_back(pipelineListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].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

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

View File

@@ -1,89 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 allPipelineListNode = value["PipelineList"]["Pipeline"];
for (auto valuePipelineListPipeline : allPipelineListNode)
{
Pipeline pipelineListObject;
if(!valuePipelineListPipeline["State"].isNull())
pipelineListObject.state = valuePipelineListPipeline["State"].asString();
if(!valuePipelineListPipeline["Priority"].isNull())
pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString();
if(!valuePipelineListPipeline["Name"].isNull())
pipelineListObject.name = valuePipelineListPipeline["Name"].asString();
if(!valuePipelineListPipeline["Id"].isNull())
pipelineListObject.id = valuePipelineListPipeline["Id"].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["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].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

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

View File

@@ -1,96 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 allPipelineListNode = value["PipelineList"]["Pipeline"];
for (auto valuePipelineListPipeline : allPipelineListNode)
{
Pipeline pipelineListObject;
if(!valuePipelineListPipeline["State"].isNull())
pipelineListObject.state = valuePipelineListPipeline["State"].asString();
if(!valuePipelineListPipeline["quotaNum"].isNull())
pipelineListObject.quotaNum = std::stoi(valuePipelineListPipeline["quotaNum"].asString());
if(!valuePipelineListPipeline["UserId"].isNull())
pipelineListObject.userId = std::stol(valuePipelineListPipeline["UserId"].asString());
if(!valuePipelineListPipeline["NotifyConfig"].isNull())
pipelineListObject.notifyConfig = valuePipelineListPipeline["NotifyConfig"].asString();
if(!valuePipelineListPipeline["ExtendConfig"].isNull())
pipelineListObject.extendConfig = valuePipelineListPipeline["ExtendConfig"].asString();
if(!valuePipelineListPipeline["Priority"].isNull())
pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString();
if(!valuePipelineListPipeline["Role"].isNull())
pipelineListObject.role = valuePipelineListPipeline["Role"].asString();
if(!valuePipelineListPipeline["Name"].isNull())
pipelineListObject.name = valuePipelineListPipeline["Name"].asString();
if(!valuePipelineListPipeline["PipelineId"].isNull())
pipelineListObject.pipelineId = valuePipelineListPipeline["PipelineId"].asString();
if(!valuePipelineListPipeline["quotaUsed"].isNull())
pipelineListObject.quotaUsed = std::stoi(valuePipelineListPipeline["quotaUsed"].asString());
pipelineList_.push_back(pipelineListObject);
}
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].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,108 @@
/*
* 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/ListCustomEntitiesRequest.h>
using AlibabaCloud::Mts::Model::ListCustomEntitiesRequest;
ListCustomEntitiesRequest::ListCustomEntitiesRequest()
: RpcServiceRequest("mts", "2014-06-18", "ListCustomEntities") {
setMethod(HttpRequest::Method::Post);
}
ListCustomEntitiesRequest::~ListCustomEntitiesRequest() {}
long ListCustomEntitiesRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void ListCustomEntitiesRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
int ListCustomEntitiesRequest::getPageNumber() const {
return pageNumber_;
}
void ListCustomEntitiesRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListCustomEntitiesRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ListCustomEntitiesRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
int ListCustomEntitiesRequest::getPageSize() const {
return pageSize_;
}
void ListCustomEntitiesRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListCustomEntitiesRequest::getAlgorithm() const {
return algorithm_;
}
void ListCustomEntitiesRequest::setAlgorithm(const std::string &algorithm) {
algorithm_ = algorithm;
setParameter(std::string("Algorithm"), algorithm);
}
std::string ListCustomEntitiesRequest::getCustomGroupId() const {
return customGroupId_;
}
void ListCustomEntitiesRequest::setCustomGroupId(const std::string &customGroupId) {
customGroupId_ = customGroupId;
setParameter(std::string("CustomGroupId"), customGroupId);
}
std::string ListCustomEntitiesRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void ListCustomEntitiesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string ListCustomEntitiesRequest::getOwnerAccount() const {
return ownerAccount_;
}
void ListCustomEntitiesRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long ListCustomEntitiesRequest::getOwnerId() const {
return ownerId_;
}
void ListCustomEntitiesRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

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/ListCustomEntitiesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListCustomEntitiesResult::ListCustomEntitiesResult() :
ServiceResult()
{}
ListCustomEntitiesResult::ListCustomEntitiesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCustomEntitiesResult::~ListCustomEntitiesResult()
{}
void ListCustomEntitiesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCustomEntitiesNode = value["CustomEntities"]["CustomEntity"];
for (auto valueCustomEntitiesCustomEntity : allCustomEntitiesNode)
{
CustomEntity customEntitiesObject;
if(!valueCustomEntitiesCustomEntity["CustomEntityId"].isNull())
customEntitiesObject.customEntityId = valueCustomEntitiesCustomEntity["CustomEntityId"].asString();
if(!valueCustomEntitiesCustomEntity["CustomEntityName"].isNull())
customEntitiesObject.customEntityName = valueCustomEntitiesCustomEntity["CustomEntityName"].asString();
if(!valueCustomEntitiesCustomEntity["CustomEntityInfo"].isNull())
customEntitiesObject.customEntityInfo = valueCustomEntitiesCustomEntity["CustomEntityInfo"].asString();
customEntities_.push_back(customEntitiesObject);
}
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListCustomEntitiesResult::getTotalCount()const
{
return totalCount_;
}
std::vector<ListCustomEntitiesResult::CustomEntity> ListCustomEntitiesResult::getCustomEntities()const
{
return customEntities_;
}
int ListCustomEntitiesResult::getPageSize()const
{
return pageSize_;
}
int ListCustomEntitiesResult::getPageNumber()const
{
return pageNumber_;
}

View File

@@ -14,85 +14,85 @@
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListPornPipelineRequest.h>
#include <alibabacloud/mts/model/ListCustomGroupsRequest.h>
using AlibabaCloud::Mts::Model::ListPornPipelineRequest;
using AlibabaCloud::Mts::Model::ListCustomGroupsRequest;
ListPornPipelineRequest::ListPornPipelineRequest()
: RpcServiceRequest("mts", "2014-06-18", "ListPornPipeline") {
ListCustomGroupsRequest::ListCustomGroupsRequest()
: RpcServiceRequest("mts", "2014-06-18", "ListCustomGroups") {
setMethod(HttpRequest::Method::Post);
}
ListPornPipelineRequest::~ListPornPipelineRequest() {}
ListCustomGroupsRequest::~ListCustomGroupsRequest() {}
long ListPornPipelineRequest::getResourceOwnerId() const {
long ListCustomGroupsRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void ListPornPipelineRequest::setResourceOwnerId(long resourceOwnerId) {
void ListCustomGroupsRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
long ListPornPipelineRequest::getPageNumber() const {
int ListCustomGroupsRequest::getPageNumber() const {
return pageNumber_;
}
void ListPornPipelineRequest::setPageNumber(long pageNumber) {
void ListCustomGroupsRequest::setPageNumber(int pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListPornPipelineRequest::getAccessKeyId() const {
std::string ListCustomGroupsRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ListPornPipelineRequest::setAccessKeyId(const std::string &accessKeyId) {
void ListCustomGroupsRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
long ListPornPipelineRequest::getPageSize() const {
int ListCustomGroupsRequest::getPageSize() const {
return pageSize_;
}
void ListPornPipelineRequest::setPageSize(long pageSize) {
void ListCustomGroupsRequest::setPageSize(int pageSize) {
pageSize_ = pageSize;
setParameter(std::string("PageSize"), std::to_string(pageSize));
}
std::string ListPornPipelineRequest::getState() const {
return state_;
std::string ListCustomGroupsRequest::getAlgorithm() const {
return algorithm_;
}
void ListPornPipelineRequest::setState(const std::string &state) {
state_ = state;
setParameter(std::string("State"), state);
void ListCustomGroupsRequest::setAlgorithm(const std::string &algorithm) {
algorithm_ = algorithm;
setParameter(std::string("Algorithm"), algorithm);
}
std::string ListPornPipelineRequest::getResourceOwnerAccount() const {
std::string ListCustomGroupsRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void ListPornPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
void ListCustomGroupsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string ListPornPipelineRequest::getOwnerAccount() const {
std::string ListCustomGroupsRequest::getOwnerAccount() const {
return ownerAccount_;
}
void ListPornPipelineRequest::setOwnerAccount(const std::string &ownerAccount) {
void ListCustomGroupsRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long ListPornPipelineRequest::getOwnerId() const {
long ListCustomGroupsRequest::getOwnerId() const {
return ownerId_;
}
void ListPornPipelineRequest::setOwnerId(long ownerId) {
void ListCustomGroupsRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

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/ListCustomGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListCustomGroupsResult::ListCustomGroupsResult() :
ServiceResult()
{}
ListCustomGroupsResult::ListCustomGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCustomGroupsResult::~ListCustomGroupsResult()
{}
void ListCustomGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCustomGroupsNode = value["CustomGroups"]["CustomGroup"];
for (auto valueCustomGroupsCustomGroup : allCustomGroupsNode)
{
CustomGroup customGroupsObject;
if(!valueCustomGroupsCustomGroup["CustomGroupId"].isNull())
customGroupsObject.customGroupId = valueCustomGroupsCustomGroup["CustomGroupId"].asString();
if(!valueCustomGroupsCustomGroup["CustomGroupName"].isNull())
customGroupsObject.customGroupName = valueCustomGroupsCustomGroup["CustomGroupName"].asString();
if(!valueCustomGroupsCustomGroup["CustomGroupDescription"].isNull())
customGroupsObject.customGroupDescription = valueCustomGroupsCustomGroup["CustomGroupDescription"].asString();
customGroups_.push_back(customGroupsObject);
}
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListCustomGroupsResult::getTotalCount()const
{
return totalCount_;
}
int ListCustomGroupsResult::getPageSize()const
{
return pageSize_;
}
std::vector<ListCustomGroupsResult::CustomGroup> ListCustomGroupsResult::getCustomGroups()const
{
return customGroups_;
}
int ListCustomGroupsResult::getPageNumber()const
{
return pageNumber_;
}

View File

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

View File

@@ -0,0 +1,80 @@
/*
* 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/ListCustomViewsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListCustomViewsResult::ListCustomViewsResult() :
ServiceResult()
{}
ListCustomViewsResult::ListCustomViewsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListCustomViewsResult::~ListCustomViewsResult()
{}
void ListCustomViewsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCustomViewsNode = value["CustomViews"]["CustomView"];
for (auto valueCustomViewsCustomView : allCustomViewsNode)
{
CustomView customViewsObject;
if(!valueCustomViewsCustomView["CustomViewId"].isNull())
customViewsObject.customViewId = valueCustomViewsCustomView["CustomViewId"].asString();
if(!valueCustomViewsCustomView["ImageUrl"].isNull())
customViewsObject.imageUrl = valueCustomViewsCustomView["ImageUrl"].asString();
customViews_.push_back(customViewsObject);
}
if(!value["PageNumber"].isNull())
pageNumber_ = std::stoi(value["PageNumber"].asString());
if(!value["PageSize"].isNull())
pageSize_ = std::stoi(value["PageSize"].asString());
if(!value["TotalCount"].isNull())
totalCount_ = std::stol(value["TotalCount"].asString());
}
long ListCustomViewsResult::getTotalCount()const
{
return totalCount_;
}
int ListCustomViewsResult::getPageSize()const
{
return pageSize_;
}
int ListCustomViewsResult::getPageNumber()const
{
return pageNumber_;
}
std::vector<ListCustomViewsResult::CustomView> ListCustomViewsResult::getCustomViews()const
{
return customViews_;
}

View File

@@ -53,6 +53,8 @@ void ListFpShotDBResult::parse(const std::string &payload)
fpShotDBListObject.modelId = std::stoi(valueFpShotDBListFpShotDB["ModelId"].asString());
if(!valueFpShotDBListFpShotDB["FpDBId"].isNull())
fpShotDBListObject.fpDBId = valueFpShotDBListFpShotDB["FpDBId"].asString();
if(!valueFpShotDBListFpShotDB["InstanceId"].isNull())
fpShotDBListObject.instanceId = valueFpShotDBListFpShotDB["InstanceId"].asString();
fpShotDBList_.push_back(fpShotDBListObject);
}
auto allNonExistIds = value["NonExistIds"]["String"];

View File

@@ -52,6 +52,15 @@ void ListFpShotFilesRequest::setNextPageToken(const std::string &nextPageToken)
setParameter(std::string("NextPageToken"), nextPageToken);
}
std::string ListFpShotFilesRequest::getStartTime() const {
return startTime_;
}
void ListFpShotFilesRequest::setStartTime(const std::string &startTime) {
startTime_ = startTime;
setParameter(std::string("StartTime"), startTime);
}
std::string ListFpShotFilesRequest::getAccessKeyId() const {
return accessKeyId_;
}
@@ -88,6 +97,15 @@ void ListFpShotFilesRequest::setOwnerAccount(const std::string &ownerAccount) {
setParameter(std::string("OwnerAccount"), ownerAccount);
}
std::string ListFpShotFilesRequest::getEndTime() const {
return endTime_;
}
void ListFpShotFilesRequest::setEndTime(const std::string &endTime) {
endTime_ = endTime;
setParameter(std::string("EndTime"), endTime);
}
long ListFpShotFilesRequest::getOwnerId() const {
return ownerId_;
}

View File

@@ -47,6 +47,8 @@ void ListFpShotFilesResult::parse(const std::string &payload)
fpShotFileListObject.primaryKey = valueFpShotFileListFpShotFile["PrimaryKey"].asString();
if(!valueFpShotFileListFpShotFile["FileId"].isNull())
fpShotFileListObject.fileId = valueFpShotFileListFpShotFile["FileId"].asString();
if(!valueFpShotFileListFpShotFile["StoreTime"].isNull())
fpShotFileListObject.storeTime = valueFpShotFileListFpShotFile["StoreTime"].asString();
auto inputFileNode = value["InputFile"];
if(!inputFileNode["Object"].isNull())
fpShotFileListObject.inputFile.object = inputFileNode["Object"].asString();

View File

@@ -14,67 +14,67 @@
* limitations under the License.
*/
#include <alibabacloud/mts/model/QueryComplexJobListRequest.h>
#include <alibabacloud/mts/model/ListFpShotImportJobRequest.h>
using AlibabaCloud::Mts::Model::QueryComplexJobListRequest;
using AlibabaCloud::Mts::Model::ListFpShotImportJobRequest;
QueryComplexJobListRequest::QueryComplexJobListRequest()
: RpcServiceRequest("mts", "2014-06-18", "QueryComplexJobList") {
ListFpShotImportJobRequest::ListFpShotImportJobRequest()
: RpcServiceRequest("mts", "2014-06-18", "ListFpShotImportJob") {
setMethod(HttpRequest::Method::Post);
}
QueryComplexJobListRequest::~QueryComplexJobListRequest() {}
ListFpShotImportJobRequest::~ListFpShotImportJobRequest() {}
long QueryComplexJobListRequest::getResourceOwnerId() const {
long ListFpShotImportJobRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void QueryComplexJobListRequest::setResourceOwnerId(long resourceOwnerId) {
void ListFpShotImportJobRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string QueryComplexJobListRequest::getResourceOwnerAccount() const {
std::string ListFpShotImportJobRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void QueryComplexJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
void ListFpShotImportJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string QueryComplexJobListRequest::getOwnerAccount() const {
std::string ListFpShotImportJobRequest::getOwnerAccount() const {
return ownerAccount_;
}
void QueryComplexJobListRequest::setOwnerAccount(const std::string &ownerAccount) {
void ListFpShotImportJobRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long QueryComplexJobListRequest::getOwnerId() const {
long ListFpShotImportJobRequest::getOwnerId() const {
return ownerId_;
}
void QueryComplexJobListRequest::setOwnerId(long ownerId) {
void ListFpShotImportJobRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}
std::string QueryComplexJobListRequest::getAccessKeyId() const {
std::string ListFpShotImportJobRequest::getAccessKeyId() const {
return accessKeyId_;
}
void QueryComplexJobListRequest::setAccessKeyId(const std::string &accessKeyId) {
void ListFpShotImportJobRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string QueryComplexJobListRequest::getJobIds() const {
std::string ListFpShotImportJobRequest::getJobIds() const {
return jobIds_;
}
void QueryComplexJobListRequest::setJobIds(const std::string &jobIds) {
void ListFpShotImportJobRequest::setJobIds(const std::string &jobIds) {
jobIds_ = jobIds;
setParameter(std::string("JobIds"), jobIds);
}

View File

@@ -0,0 +1,87 @@
/*
* 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/ListFpShotImportJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListFpShotImportJobResult::ListFpShotImportJobResult() :
ServiceResult()
{}
ListFpShotImportJobResult::ListFpShotImportJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListFpShotImportJobResult::~ListFpShotImportJobResult()
{}
void ListFpShotImportJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFpShotImportJobListNode = value["FpShotImportJobList"]["FpShotImportJob"];
for (auto valueFpShotImportJobListFpShotImportJob : allFpShotImportJobListNode)
{
FpShotImportJob fpShotImportJobListObject;
if(!valueFpShotImportJobListFpShotImportJob["Id"].isNull())
fpShotImportJobListObject.id = valueFpShotImportJobListFpShotImportJob["Id"].asString();
if(!valueFpShotImportJobListFpShotImportJob["FpDBId"].isNull())
fpShotImportJobListObject.fpDBId = valueFpShotImportJobListFpShotImportJob["FpDBId"].asString();
if(!valueFpShotImportJobListFpShotImportJob["PipelineId"].isNull())
fpShotImportJobListObject.pipelineId = valueFpShotImportJobListFpShotImportJob["PipelineId"].asString();
if(!valueFpShotImportJobListFpShotImportJob["FpImportConfig"].isNull())
fpShotImportJobListObject.fpImportConfig = valueFpShotImportJobListFpShotImportJob["FpImportConfig"].asString();
if(!valueFpShotImportJobListFpShotImportJob["Status"].isNull())
fpShotImportJobListObject.status = valueFpShotImportJobListFpShotImportJob["Status"].asString();
if(!valueFpShotImportJobListFpShotImportJob["Code"].isNull())
fpShotImportJobListObject.code = valueFpShotImportJobListFpShotImportJob["Code"].asString();
if(!valueFpShotImportJobListFpShotImportJob["Message"].isNull())
fpShotImportJobListObject.message = valueFpShotImportJobListFpShotImportJob["Message"].asString();
if(!valueFpShotImportJobListFpShotImportJob["CreateTime"].isNull())
fpShotImportJobListObject.createTime = valueFpShotImportJobListFpShotImportJob["CreateTime"].asString();
if(!valueFpShotImportJobListFpShotImportJob["FinishTime"].isNull())
fpShotImportJobListObject.finishTime = valueFpShotImportJobListFpShotImportJob["FinishTime"].asString();
if(!valueFpShotImportJobListFpShotImportJob["UserData"].isNull())
fpShotImportJobListObject.userData = valueFpShotImportJobListFpShotImportJob["UserData"].asString();
if(!valueFpShotImportJobListFpShotImportJob["Input"].isNull())
fpShotImportJobListObject.input = valueFpShotImportJobListFpShotImportJob["Input"].asString();
if(!valueFpShotImportJobListFpShotImportJob["ProcessMessage"].isNull())
fpShotImportJobListObject.processMessage = valueFpShotImportJobListFpShotImportJob["ProcessMessage"].asString();
fpShotImportJobList_.push_back(fpShotImportJobListObject);
}
auto allNonExistIds = value["NonExistIds"]["String"];
for (const auto &item : allNonExistIds)
nonExistIds_.push_back(item.asString());
}
std::vector<ListFpShotImportJobResult::FpShotImportJob> ListFpShotImportJobResult::getFpShotImportJobList()const
{
return fpShotImportJobList_;
}
std::vector<std::string> ListFpShotImportJobResult::getNonExistIds()const
{
return nonExistIds_;
}

View File

@@ -1,117 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListFpShotNotaryRequest.h>
using AlibabaCloud::Mts::Model::ListFpShotNotaryRequest;
ListFpShotNotaryRequest::ListFpShotNotaryRequest()
: RpcServiceRequest("mts", "2014-06-18", "ListFpShotNotary") {
setMethod(HttpRequest::Method::Post);
}
ListFpShotNotaryRequest::~ListFpShotNotaryRequest() {}
long ListFpShotNotaryRequest::getResourceOwnerId() const {
return resourceOwnerId_;
}
void ListFpShotNotaryRequest::setResourceOwnerId(long resourceOwnerId) {
resourceOwnerId_ = resourceOwnerId;
setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId));
}
std::string ListFpShotNotaryRequest::getFpDBId() const {
return fpDBId_;
}
void ListFpShotNotaryRequest::setFpDBId(const std::string &fpDBId) {
fpDBId_ = fpDBId;
setParameter(std::string("FpDBId"), fpDBId);
}
std::string ListFpShotNotaryRequest::getNextPageToken() const {
return nextPageToken_;
}
void ListFpShotNotaryRequest::setNextPageToken(const std::string &nextPageToken) {
nextPageToken_ = nextPageToken;
setParameter(std::string("NextPageToken"), nextPageToken);
}
std::string ListFpShotNotaryRequest::getStartOfCreatedTimeRange() const {
return startOfCreatedTimeRange_;
}
void ListFpShotNotaryRequest::setStartOfCreatedTimeRange(const std::string &startOfCreatedTimeRange) {
startOfCreatedTimeRange_ = startOfCreatedTimeRange;
setParameter(std::string("StartOfCreatedTimeRange"), startOfCreatedTimeRange);
}
std::string ListFpShotNotaryRequest::getAccessKeyId() const {
return accessKeyId_;
}
void ListFpShotNotaryRequest::setAccessKeyId(const std::string &accessKeyId) {
accessKeyId_ = accessKeyId;
setParameter(std::string("AccessKeyId"), accessKeyId);
}
std::string ListFpShotNotaryRequest::getEndOfCreatedTimeRange() const {
return endOfCreatedTimeRange_;
}
void ListFpShotNotaryRequest::setEndOfCreatedTimeRange(const std::string &endOfCreatedTimeRange) {
endOfCreatedTimeRange_ = endOfCreatedTimeRange;
setParameter(std::string("EndOfCreatedTimeRange"), endOfCreatedTimeRange);
}
std::string ListFpShotNotaryRequest::getResourceOwnerAccount() const {
return resourceOwnerAccount_;
}
void ListFpShotNotaryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) {
resourceOwnerAccount_ = resourceOwnerAccount;
setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount);
}
std::string ListFpShotNotaryRequest::getOwnerAccount() const {
return ownerAccount_;
}
void ListFpShotNotaryRequest::setOwnerAccount(const std::string &ownerAccount) {
ownerAccount_ = ownerAccount;
setParameter(std::string("OwnerAccount"), ownerAccount);
}
long ListFpShotNotaryRequest::getMaximumPageSize() const {
return maximumPageSize_;
}
void ListFpShotNotaryRequest::setMaximumPageSize(long maximumPageSize) {
maximumPageSize_ = maximumPageSize;
setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize));
}
long ListFpShotNotaryRequest::getOwnerId() const {
return ownerId_;
}
void ListFpShotNotaryRequest::setOwnerId(long ownerId) {
ownerId_ = ownerId;
setParameter(std::string("OwnerId"), std::to_string(ownerId));
}

View File

@@ -1,76 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListFpShotNotaryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListFpShotNotaryResult::ListFpShotNotaryResult() :
ServiceResult()
{}
ListFpShotNotaryResult::ListFpShotNotaryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListFpShotNotaryResult::~ListFpShotNotaryResult()
{}
void ListFpShotNotaryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFpShotNotaryListNode = value["FpShotNotaryList"]["FpShotNotary"];
for (auto valueFpShotNotaryListFpShotNotary : allFpShotNotaryListNode)
{
FpShotNotary fpShotNotaryListObject;
if(!valueFpShotNotaryListFpShotNotary["CreationTime"].isNull())
fpShotNotaryListObject.creationTime = valueFpShotNotaryListFpShotNotary["CreationTime"].asString();
if(!valueFpShotNotaryListFpShotNotary["FinishTime"].isNull())
fpShotNotaryListObject.finishTime = valueFpShotNotaryListFpShotNotary["FinishTime"].asString();
if(!valueFpShotNotaryListFpShotNotary["JobId"].isNull())
fpShotNotaryListObject.jobId = valueFpShotNotaryListFpShotNotary["JobId"].asString();
if(!valueFpShotNotaryListFpShotNotary["TxHash"].isNull())
fpShotNotaryListObject.txHash = valueFpShotNotaryListFpShotNotary["TxHash"].asString();
if(!valueFpShotNotaryListFpShotNotary["TransactionId"].isNull())
fpShotNotaryListObject.transactionId = valueFpShotNotaryListFpShotNotary["TransactionId"].asString();
if(!valueFpShotNotaryListFpShotNotary["FpDBId"].isNull())
fpShotNotaryListObject.fpDBId = valueFpShotNotaryListFpShotNotary["FpDBId"].asString();
if(!valueFpShotNotaryListFpShotNotary["Detail"].isNull())
fpShotNotaryListObject.detail = valueFpShotNotaryListFpShotNotary["Detail"].asString();
fpShotNotaryList_.push_back(fpShotNotaryListObject);
}
if(!value["NextPageToken"].isNull())
nextPageToken_ = value["NextPageToken"].asString();
}
std::vector<ListFpShotNotaryResult::FpShotNotary> ListFpShotNotaryResult::getFpShotNotaryList()const
{
return fpShotNotaryList_;
}
std::string ListFpShotNotaryResult::getNextPageToken()const
{
return nextPageToken_;
}

View File

@@ -1,54 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListInferenceJobRequest.h>
using AlibabaCloud::Mts::Model::ListInferenceJobRequest;
ListInferenceJobRequest::ListInferenceJobRequest()
: RpcServiceRequest("mts", "2014-06-18", "ListInferenceJob") {
setMethod(HttpRequest::Method::Post);
}
ListInferenceJobRequest::~ListInferenceJobRequest() {}
long ListInferenceJobRequest::getMaxPageSize() const {
return maxPageSize_;
}
void ListInferenceJobRequest::setMaxPageSize(long maxPageSize) {
maxPageSize_ = maxPageSize;
setParameter(std::string("MaxPageSize"), std::to_string(maxPageSize));
}
long ListInferenceJobRequest::getPageNumber() const {
return pageNumber_;
}
void ListInferenceJobRequest::setPageNumber(long pageNumber) {
pageNumber_ = pageNumber;
setParameter(std::string("PageNumber"), std::to_string(pageNumber));
}
std::string ListInferenceJobRequest::getServerName() const {
return serverName_;
}
void ListInferenceJobRequest::setServerName(const std::string &serverName) {
serverName_ = serverName;
setParameter(std::string("ServerName"), serverName);
}

View File

@@ -1,90 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/mts/model/ListInferenceJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Mts;
using namespace AlibabaCloud::Mts::Model;
ListInferenceJobResult::ListInferenceJobResult() :
ServiceResult()
{}
ListInferenceJobResult::ListInferenceJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListInferenceJobResult::~ListInferenceJobResult()
{}
void ListInferenceJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobsNode = value["Jobs"]["JobsItem"];
for (auto valueJobsJobsItem : allJobsNode)
{
JobsItem jobsObject;
if(!valueJobsJobsItem["Status"].isNull())
jobsObject.status = valueJobsJobsItem["Status"].asString();
if(!valueJobsJobsItem["Result"].isNull())
jobsObject.result = valueJobsJobsItem["Result"].asString();
if(!valueJobsJobsItem["JobId"].isNull())
jobsObject.jobId = valueJobsJobsItem["JobId"].asString();
if(!valueJobsJobsItem["UserId"].isNull())
jobsObject.userId = std::stol(valueJobsJobsItem["UserId"].asString());
if(!valueJobsJobsItem["Message"].isNull())
jobsObject.message = valueJobsJobsItem["Message"].asString();
if(!valueJobsJobsItem["JobTime"].isNull())
jobsObject.jobTime = std::stol(valueJobsJobsItem["JobTime"].asString());
if(!valueJobsJobsItem["JobParams"].isNull())
jobsObject.jobParams = valueJobsJobsItem["JobParams"].asString();
jobs_.push_back(jobsObject);
}
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["TotalSize"].isNull())
totalSize_ = std::stol(value["TotalSize"].asString());
}
std::string ListInferenceJobResult::getMessage()const
{
return message_;
}
std::vector<ListInferenceJobResult::JobsItem> ListInferenceJobResult::getJobs()const
{
return jobs_;
}
long ListInferenceJobResult::getTotalSize()const
{
return totalSize_;
}
std::string ListInferenceJobResult::getCode()const
{
return code_;
}

View File

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

View File

@@ -1,103 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 allMediaListNode = value["MediaList"]["Media"];
for (auto valueMediaListMedia : allMediaListNode)
{
Media mediaListObject;
if(!valueMediaListMedia["CreationTime"].isNull())
mediaListObject.creationTime = valueMediaListMedia["CreationTime"].asString();
if(!valueMediaListMedia["CateId"].isNull())
mediaListObject.cateId = std::stol(valueMediaListMedia["CateId"].asString());
if(!valueMediaListMedia["Height"].isNull())
mediaListObject.height = valueMediaListMedia["Height"].asString();
if(!valueMediaListMedia["CensorState"].isNull())
mediaListObject.censorState = valueMediaListMedia["CensorState"].asString();
if(!valueMediaListMedia["Bitrate"].isNull())
mediaListObject.bitrate = valueMediaListMedia["Bitrate"].asString();
if(!valueMediaListMedia["MediaId"].isNull())
mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString();
if(!valueMediaListMedia["PublishState"].isNull())
mediaListObject.publishState = valueMediaListMedia["PublishState"].asString();
if(!valueMediaListMedia["Description"].isNull())
mediaListObject.description = valueMediaListMedia["Description"].asString();
if(!valueMediaListMedia["Width"].isNull())
mediaListObject.width = valueMediaListMedia["Width"].asString();
if(!valueMediaListMedia["Size"].isNull())
mediaListObject.size = valueMediaListMedia["Size"].asString();
if(!valueMediaListMedia["CoverURL"].isNull())
mediaListObject.coverURL = valueMediaListMedia["CoverURL"].asString();
if(!valueMediaListMedia["Duration"].isNull())
mediaListObject.duration = valueMediaListMedia["Duration"].asString();
if(!valueMediaListMedia["Fps"].isNull())
mediaListObject.fps = valueMediaListMedia["Fps"].asString();
if(!valueMediaListMedia["Title"].isNull())
mediaListObject.title = valueMediaListMedia["Title"].asString();
if(!valueMediaListMedia["Format"].isNull())
mediaListObject.format = valueMediaListMedia["Format"].asString();
auto fileNode = value["File"];
if(!fileNode["State"].isNull())
mediaListObject.file.state = fileNode["State"].asString();
if(!fileNode["URL"].isNull())
mediaListObject.file.uRL = fileNode["URL"].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

@@ -1,89 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 allPipelineListNode = value["PipelineList"]["Pipeline"];
for (auto valuePipelineListPipeline : allPipelineListNode)
{
Pipeline pipelineListObject;
if(!valuePipelineListPipeline["State"].isNull())
pipelineListObject.state = valuePipelineListPipeline["State"].asString();
if(!valuePipelineListPipeline["Priority"].isNull())
pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString();
if(!valuePipelineListPipeline["Name"].isNull())
pipelineListObject.name = valuePipelineListPipeline["Name"].asString();
if(!valuePipelineListPipeline["Id"].isNull())
pipelineListObject.id = valuePipelineListPipeline["Id"].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["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].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

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

View File

@@ -1,89 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 allPipelineListNode = value["PipelineList"]["Pipeline"];
for (auto valuePipelineListPipeline : allPipelineListNode)
{
Pipeline pipelineListObject;
if(!valuePipelineListPipeline["State"].isNull())
pipelineListObject.state = valuePipelineListPipeline["State"].asString();
if(!valuePipelineListPipeline["Priority"].isNull())
pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString();
if(!valuePipelineListPipeline["Name"].isNull())
pipelineListObject.name = valuePipelineListPipeline["Name"].asString();
if(!valuePipelineListPipeline["Id"].isNull())
pipelineListObject.id = valuePipelineListPipeline["Id"].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["PageSize"].isNull())
pageSize_ = std::stol(value["PageSize"].asString());
if(!value["PageNumber"].isNull())
pageNumber_ = std::stol(value["PageNumber"].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

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -1,95 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 allPlayInfoListNode = value["PlayInfoList"]["PlayInfo"];
for (auto valuePlayInfoListPlayInfo : allPlayInfoListNode)
{
PlayInfo playInfoListObject;
if(!valuePlayInfoListPlayInfo["downloadType"].isNull())
playInfoListObject.downloadType = valuePlayInfoListPlayInfo["downloadType"].asString();
if(!valuePlayInfoListPlayInfo["width"].isNull())
playInfoListObject.width = valuePlayInfoListPlayInfo["width"].asString();
if(!valuePlayInfoListPlayInfo["definition"].isNull())
playInfoListObject.definition = valuePlayInfoListPlayInfo["definition"].asString();
if(!valuePlayInfoListPlayInfo["rand"].isNull())
playInfoListObject.rand = valuePlayInfoListPlayInfo["rand"].asString();
if(!valuePlayInfoListPlayInfo["Url"].isNull())
playInfoListObject.url = valuePlayInfoListPlayInfo["Url"].asString();
if(!valuePlayInfoListPlayInfo["complexity"].isNull())
playInfoListObject.complexity = valuePlayInfoListPlayInfo["complexity"].asString();
if(!valuePlayInfoListPlayInfo["encryption"].isNull())
playInfoListObject.encryption = valuePlayInfoListPlayInfo["encryption"].asString();
if(!valuePlayInfoListPlayInfo["fps"].isNull())
playInfoListObject.fps = valuePlayInfoListPlayInfo["fps"].asString();
if(!valuePlayInfoListPlayInfo["encryptionType"].isNull())
playInfoListObject.encryptionType = valuePlayInfoListPlayInfo["encryptionType"].asString();
if(!valuePlayInfoListPlayInfo["height"].isNull())
playInfoListObject.height = valuePlayInfoListPlayInfo["height"].asString();
if(!valuePlayInfoListPlayInfo["activityName"].isNull())
playInfoListObject.activityName = valuePlayInfoListPlayInfo["activityName"].asString();
if(!valuePlayInfoListPlayInfo["size"].isNull())
playInfoListObject.size = valuePlayInfoListPlayInfo["size"].asString();
if(!valuePlayInfoListPlayInfo["bitrate"].isNull())
playInfoListObject.bitrate = valuePlayInfoListPlayInfo["bitrate"].asString();
if(!valuePlayInfoListPlayInfo["plaintext"].isNull())
playInfoListObject.plaintext = valuePlayInfoListPlayInfo["plaintext"].asString();
if(!valuePlayInfoListPlayInfo["duration"].isNull())
playInfoListObject.duration = valuePlayInfoListPlayInfo["duration"].asString();
if(!valuePlayInfoListPlayInfo["format"].isNull())
playInfoListObject.format = valuePlayInfoListPlayInfo["format"].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

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

View File

@@ -1,70 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 allSwitchListNode = value["SwitchList"]["Switch"];
for (auto valueSwitchListSwitch : allSwitchListNode)
{
_Switch switchListObject;
if(!valueSwitchListSwitch["FunctionId"].isNull())
switchListObject.functionId = valueSwitchListSwitch["FunctionId"].asString();
if(!valueSwitchListSwitch["FunctionName"].isNull())
switchListObject.functionName = valueSwitchListSwitch["FunctionName"].asString();
if(!valueSwitchListSwitch["State"].isNull())
switchListObject.state = valueSwitchListSwitch["State"].asString();
if(!valueSwitchListSwitch["SwitchId"].isNull())
switchListObject.switchId = valueSwitchListSwitch["SwitchId"].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_;
}

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