IVISION SDK Auto Released By wb-czb515173,Version:1.34.65
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
313
ivision/src/model/CreateProjectRequest.cc
Normal file
313
ivision/src/model/CreateProjectRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::CreateProjectRequest;
|
||||
|
||||
CreateProjectRequest::CreateProjectRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "CreateProject")
|
||||
{}
|
||||
|
||||
CreateProjectRequest::~CreateProjectRequest()
|
||||
{}
|
||||
|
||||
long CreateProjectRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateProjectRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateProjectRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateProjectRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateProjectRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateProjectRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateProjectRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateProjectRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getProType()const
|
||||
{
|
||||
return proType_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setProType(const std::string& proType)
|
||||
{
|
||||
proType_ = proType;
|
||||
setParameter("ProType", proType);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateProjectRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateProjectRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
65
ivision/src/model/CreateProjectResult.cc
Normal file
65
ivision/src/model/CreateProjectResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
CreateProjectResult::CreateProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateProjectResult::CreateProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateProjectResult::~CreateProjectResult()
|
||||
{}
|
||||
|
||||
void CreateProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto projectNode = value["Project"];
|
||||
if(!projectNode["ProjectId"].isNull())
|
||||
project_.projectId = projectNode["ProjectId"].asString();
|
||||
if(!projectNode["Name"].isNull())
|
||||
project_.name = projectNode["Name"].asString();
|
||||
if(!projectNode["Description"].isNull())
|
||||
project_.description = projectNode["Description"].asString();
|
||||
if(!projectNode["ProType"].isNull())
|
||||
project_.proType = projectNode["ProType"].asString();
|
||||
if(!projectNode["IterCount"].isNull())
|
||||
project_.iterCount = std::stoi(projectNode["IterCount"].asString());
|
||||
if(!projectNode["CreationTime"].isNull())
|
||||
project_.creationTime = projectNode["CreationTime"].asString();
|
||||
if(!projectNode["Status"].isNull())
|
||||
project_.status = projectNode["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateProjectResult::Project CreateProjectResult::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
368
ivision/src/model/CreateStreamPredictRequest.cc
Normal file
368
ivision/src/model/CreateStreamPredictRequest.cc
Normal file
@@ -0,0 +1,368 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateStreamPredictRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::CreateStreamPredictRequest;
|
||||
|
||||
CreateStreamPredictRequest::CreateStreamPredictRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "CreateStreamPredict")
|
||||
{}
|
||||
|
||||
CreateStreamPredictRequest::~CreateStreamPredictRequest()
|
||||
{}
|
||||
|
||||
long CreateStreamPredictRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateStreamPredictRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateStreamPredictRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getAutoStart()const
|
||||
{
|
||||
return autoStart_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setAutoStart(const std::string& autoStart)
|
||||
{
|
||||
autoStart_ = autoStart;
|
||||
setParameter("AutoStart", autoStart);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getNotify()const
|
||||
{
|
||||
return notify_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setNotify(const std::string& notify)
|
||||
{
|
||||
notify_ = notify;
|
||||
setParameter("Notify", notify);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getOutput()const
|
||||
{
|
||||
return output_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setOutput(const std::string& output)
|
||||
{
|
||||
output_ = output;
|
||||
setParameter("Output", output);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getUserData()const
|
||||
{
|
||||
return userData_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setUserData(const std::string& userData)
|
||||
{
|
||||
userData_ = userData;
|
||||
setParameter("UserData", userData);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateStreamPredictRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getStreamType()const
|
||||
{
|
||||
return streamType_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setStreamType(const std::string& streamType)
|
||||
{
|
||||
streamType_ = streamType;
|
||||
setParameter("StreamType", streamType);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getStreamId()const
|
||||
{
|
||||
return streamId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setStreamId(const std::string& streamId)
|
||||
{
|
||||
streamId_ = streamId;
|
||||
setParameter("StreamId", streamId);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateStreamPredictRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateStreamPredictRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateStreamPredictRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getProbabilityThresholds()const
|
||||
{
|
||||
return probabilityThresholds_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setProbabilityThresholds(const std::string& probabilityThresholds)
|
||||
{
|
||||
probabilityThresholds_ = probabilityThresholds;
|
||||
setParameter("ProbabilityThresholds", probabilityThresholds);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getModelIds()const
|
||||
{
|
||||
return modelIds_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setModelIds(const std::string& modelIds)
|
||||
{
|
||||
modelIds_ = modelIds;
|
||||
setParameter("ModelIds", modelIds);
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateStreamPredictRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
52
ivision/src/model/CreateStreamPredictResult.cc
Normal file
52
ivision/src/model/CreateStreamPredictResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateStreamPredictResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
CreateStreamPredictResult::CreateStreamPredictResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateStreamPredictResult::CreateStreamPredictResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateStreamPredictResult::~CreateStreamPredictResult()
|
||||
{}
|
||||
|
||||
void CreateStreamPredictResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PredictId"].isNull())
|
||||
predictId_ = value["PredictId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateStreamPredictResult::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/CreateTagRequest.cc
Normal file
313
ivision/src/model/CreateTagRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::CreateTagRequest;
|
||||
|
||||
CreateTagRequest::CreateTagRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "CreateTag")
|
||||
{}
|
||||
|
||||
CreateTagRequest::~CreateTagRequest()
|
||||
{}
|
||||
|
||||
long CreateTagRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateTagRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateTagRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateTagRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateTagRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateTagRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTagRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTagRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateTagRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void CreateTagRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
63
ivision/src/model/CreateTagResult.cc
Normal file
63
ivision/src/model/CreateTagResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
CreateTagResult::CreateTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTagResult::CreateTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTagResult::~CreateTagResult()
|
||||
{}
|
||||
|
||||
void CreateTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto tagNode = value["Tag"];
|
||||
if(!tagNode["ProjectId"].isNull())
|
||||
tag_.projectId = tagNode["ProjectId"].asString();
|
||||
if(!tagNode["TagId"].isNull())
|
||||
tag_.tagId = tagNode["TagId"].asString();
|
||||
if(!tagNode["TagName"].isNull())
|
||||
tag_.tagName = tagNode["TagName"].asString();
|
||||
if(!tagNode["Description"].isNull())
|
||||
tag_.description = tagNode["Description"].asString();
|
||||
if(!tagNode["Count"].isNull())
|
||||
tag_.count = std::stoi(tagNode["Count"].asString());
|
||||
if(!tagNode["CreationTime"].isNull())
|
||||
tag_.creationTime = tagNode["CreationTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateTagResult::Tag CreateTagResult::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/CreateTrainDataRegionTagRequest.cc
Normal file
313
ivision/src/model/CreateTrainDataRegionTagRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTrainDataRegionTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::CreateTrainDataRegionTagRequest;
|
||||
|
||||
CreateTrainDataRegionTagRequest::CreateTrainDataRegionTagRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDataRegionTag")
|
||||
{}
|
||||
|
||||
CreateTrainDataRegionTagRequest::~CreateTrainDataRegionTagRequest()
|
||||
{}
|
||||
|
||||
long CreateTrainDataRegionTagRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateTrainDataRegionTagRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateTrainDataRegionTagRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateTrainDataRegionTagRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getTagItems()const
|
||||
{
|
||||
return tagItems_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setTagItems(const std::string& tagItems)
|
||||
{
|
||||
tagItems_ = tagItems;
|
||||
setParameter("TagItems", tagItems);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateTrainDataRegionTagRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateTrainDataRegionTagRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTrainDataRegionTagRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTrainDataRegionTagRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataRegionTagRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataRegionTagRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
86
ivision/src/model/CreateTrainDataRegionTagResult.cc
Normal file
86
ivision/src/model/CreateTrainDataRegionTagResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTrainDataRegionTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
CreateTrainDataRegionTagResult::CreateTrainDataRegionTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTrainDataRegionTagResult::CreateTrainDataRegionTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTrainDataRegionTagResult::~CreateTrainDataRegionTagResult()
|
||||
{}
|
||||
|
||||
void CreateTrainDataRegionTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto trainDataNode = value["TrainData"];
|
||||
if(!trainDataNode["ProjectId"].isNull())
|
||||
trainData_.projectId = trainDataNode["ProjectId"].asString();
|
||||
if(!trainDataNode["IterationId"].isNull())
|
||||
trainData_.iterationId = trainDataNode["IterationId"].asString();
|
||||
if(!trainDataNode["DataId"].isNull())
|
||||
trainData_.dataId = trainDataNode["DataId"].asString();
|
||||
if(!trainDataNode["DataName"].isNull())
|
||||
trainData_.dataName = trainDataNode["DataName"].asString();
|
||||
if(!trainDataNode["DataUrl"].isNull())
|
||||
trainData_.dataUrl = trainDataNode["DataUrl"].asString();
|
||||
if(!trainDataNode["CreationTime"].isNull())
|
||||
trainData_.creationTime = trainDataNode["CreationTime"].asString();
|
||||
if(!trainDataNode["Status"].isNull())
|
||||
trainData_.status = trainDataNode["Status"].asString();
|
||||
if(!trainDataNode["TagStatus"].isNull())
|
||||
trainData_.tagStatus = trainDataNode["TagStatus"].asString();
|
||||
auto allTagItems = value["TagItems"]["TagItem"];
|
||||
for (auto value : allTagItems)
|
||||
{
|
||||
TrainData::TagItem tagItemObject;
|
||||
if(!value["TagId"].isNull())
|
||||
tagItemObject.tagId = value["TagId"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
tagItemObject.regionType = value["RegionType"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
tagItemObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
tagItemObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
tagItemObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
tagItemObject.region.height = regionNode["Height"].asString();
|
||||
trainData_.tagItems.push_back(tagItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CreateTrainDataRegionTagResult::TrainData CreateTrainDataRegionTagResult::getTrainData()const
|
||||
{
|
||||
return trainData_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/CreateTrainDataTagRequest.cc
Normal file
313
ivision/src/model/CreateTrainDataTagRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTrainDataTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::CreateTrainDataTagRequest;
|
||||
|
||||
CreateTrainDataTagRequest::CreateTrainDataTagRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDataTag")
|
||||
{}
|
||||
|
||||
CreateTrainDataTagRequest::~CreateTrainDataTagRequest()
|
||||
{}
|
||||
|
||||
long CreateTrainDataTagRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateTrainDataTagRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateTrainDataTagRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateTrainDataTagRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getTagItems()const
|
||||
{
|
||||
return tagItems_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setTagItems(const std::string& tagItems)
|
||||
{
|
||||
tagItems_ = tagItems;
|
||||
setParameter("TagItems", tagItems);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateTrainDataTagRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateTrainDataTagRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTrainDataTagRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTrainDataTagRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDataTagRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateTrainDataTagRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
86
ivision/src/model/CreateTrainDataTagResult.cc
Normal file
86
ivision/src/model/CreateTrainDataTagResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTrainDataTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
CreateTrainDataTagResult::CreateTrainDataTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTrainDataTagResult::CreateTrainDataTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTrainDataTagResult::~CreateTrainDataTagResult()
|
||||
{}
|
||||
|
||||
void CreateTrainDataTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto trainDataNode = value["TrainData"];
|
||||
if(!trainDataNode["ProjectId"].isNull())
|
||||
trainData_.projectId = trainDataNode["ProjectId"].asString();
|
||||
if(!trainDataNode["IterationId"].isNull())
|
||||
trainData_.iterationId = trainDataNode["IterationId"].asString();
|
||||
if(!trainDataNode["DataId"].isNull())
|
||||
trainData_.dataId = trainDataNode["DataId"].asString();
|
||||
if(!trainDataNode["DataName"].isNull())
|
||||
trainData_.dataName = trainDataNode["DataName"].asString();
|
||||
if(!trainDataNode["DataUrl"].isNull())
|
||||
trainData_.dataUrl = trainDataNode["DataUrl"].asString();
|
||||
if(!trainDataNode["CreationTime"].isNull())
|
||||
trainData_.creationTime = trainDataNode["CreationTime"].asString();
|
||||
if(!trainDataNode["Status"].isNull())
|
||||
trainData_.status = trainDataNode["Status"].asString();
|
||||
if(!trainDataNode["TagStatus"].isNull())
|
||||
trainData_.tagStatus = trainDataNode["TagStatus"].asString();
|
||||
auto allTagItems = value["TagItems"]["TagItem"];
|
||||
for (auto value : allTagItems)
|
||||
{
|
||||
TrainData::TagItem tagItemObject;
|
||||
if(!value["TagId"].isNull())
|
||||
tagItemObject.tagId = value["TagId"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
tagItemObject.regionType = value["RegionType"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
tagItemObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
tagItemObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
tagItemObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
tagItemObject.region.height = regionNode["Height"].asString();
|
||||
trainData_.tagItems.push_back(tagItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CreateTrainDataTagResult::TrainData CreateTrainDataTagResult::getTrainData()const
|
||||
{
|
||||
return trainData_;
|
||||
}
|
||||
|
||||
324
ivision/src/model/CreateTrainDatasFromPredictionRequest.cc
Normal file
324
ivision/src/model/CreateTrainDatasFromPredictionRequest.cc
Normal file
@@ -0,0 +1,324 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTrainDatasFromPredictionRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::CreateTrainDatasFromPredictionRequest;
|
||||
|
||||
CreateTrainDatasFromPredictionRequest::CreateTrainDatasFromPredictionRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDatasFromPrediction")
|
||||
{}
|
||||
|
||||
CreateTrainDatasFromPredictionRequest::~CreateTrainDatasFromPredictionRequest()
|
||||
{}
|
||||
|
||||
long CreateTrainDatasFromPredictionRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateTrainDatasFromPredictionRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateTrainDatasFromPredictionRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getDataIds()const
|
||||
{
|
||||
return dataIds_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setDataIds(const std::string& dataIds)
|
||||
{
|
||||
dataIds_ = dataIds;
|
||||
setParameter("DataIds", dataIds);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateTrainDatasFromPredictionRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getTagId()const
|
||||
{
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setTagId(const std::string& tagId)
|
||||
{
|
||||
tagId_ = tagId;
|
||||
setParameter("TagId", tagId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateTrainDatasFromPredictionRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateTrainDatasFromPredictionRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTrainDatasFromPredictionRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTrainDatasFromPredictionRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromPredictionRequest::getIterationId()const
|
||||
{
|
||||
return iterationId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromPredictionRequest::setIterationId(const std::string& iterationId)
|
||||
{
|
||||
iterationId_ = iterationId;
|
||||
setParameter("IterationId", iterationId);
|
||||
}
|
||||
|
||||
91
ivision/src/model/CreateTrainDatasFromPredictionResult.cc
Normal file
91
ivision/src/model/CreateTrainDatasFromPredictionResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTrainDatasFromPredictionResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
CreateTrainDatasFromPredictionResult::CreateTrainDatasFromPredictionResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTrainDatasFromPredictionResult::CreateTrainDatasFromPredictionResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTrainDatasFromPredictionResult::~CreateTrainDatasFromPredictionResult()
|
||||
{}
|
||||
|
||||
void CreateTrainDatasFromPredictionResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTrainDatas = value["TrainDatas"]["TrainData"];
|
||||
for (auto value : allTrainDatas)
|
||||
{
|
||||
TrainData trainDatasObject;
|
||||
if(!value["ProjectId"].isNull())
|
||||
trainDatasObject.projectId = value["ProjectId"].asString();
|
||||
if(!value["IterationId"].isNull())
|
||||
trainDatasObject.iterationId = value["IterationId"].asString();
|
||||
if(!value["DataId"].isNull())
|
||||
trainDatasObject.dataId = value["DataId"].asString();
|
||||
if(!value["DataName"].isNull())
|
||||
trainDatasObject.dataName = value["DataName"].asString();
|
||||
if(!value["DataUrl"].isNull())
|
||||
trainDatasObject.dataUrl = value["DataUrl"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
trainDatasObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
trainDatasObject.status = value["Status"].asString();
|
||||
if(!value["TagStatus"].isNull())
|
||||
trainDatasObject.tagStatus = value["TagStatus"].asString();
|
||||
auto allTagItems = value["TagItems"]["TagItem"];
|
||||
for (auto value : allTagItems)
|
||||
{
|
||||
TrainData::TagItem tagItemsObject;
|
||||
if(!value["TagId"].isNull())
|
||||
tagItemsObject.tagId = value["TagId"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
tagItemsObject.regionType = value["RegionType"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
tagItemsObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
tagItemsObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
tagItemsObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
tagItemsObject.region.height = regionNode["Height"].asString();
|
||||
trainDatasObject.tagItems.push_back(tagItemsObject);
|
||||
}
|
||||
trainDatas_.push_back(trainDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<CreateTrainDatasFromPredictionResult::TrainData> CreateTrainDatasFromPredictionResult::getTrainDatas()const
|
||||
{
|
||||
return trainDatas_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/CreateTrainDatasFromUrlsRequest.cc
Normal file
313
ivision/src/model/CreateTrainDatasFromUrlsRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTrainDatasFromUrlsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::CreateTrainDatasFromUrlsRequest;
|
||||
|
||||
CreateTrainDatasFromUrlsRequest::CreateTrainDatasFromUrlsRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDatasFromUrls")
|
||||
{}
|
||||
|
||||
CreateTrainDatasFromUrlsRequest::~CreateTrainDatasFromUrlsRequest()
|
||||
{}
|
||||
|
||||
long CreateTrainDatasFromUrlsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateTrainDatasFromUrlsRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateTrainDatasFromUrlsRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getUrls()const
|
||||
{
|
||||
return urls_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setUrls(const std::string& urls)
|
||||
{
|
||||
urls_ = urls;
|
||||
setParameter("Urls", urls);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateTrainDatasFromUrlsRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getTagId()const
|
||||
{
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setTagId(const std::string& tagId)
|
||||
{
|
||||
tagId_ = tagId;
|
||||
setParameter("TagId", tagId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateTrainDatasFromUrlsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateTrainDatasFromUrlsRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTrainDatasFromUrlsRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTrainDatasFromUrlsRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasFromUrlsRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasFromUrlsRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
91
ivision/src/model/CreateTrainDatasFromUrlsResult.cc
Normal file
91
ivision/src/model/CreateTrainDatasFromUrlsResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTrainDatasFromUrlsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
CreateTrainDatasFromUrlsResult::CreateTrainDatasFromUrlsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTrainDatasFromUrlsResult::CreateTrainDatasFromUrlsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTrainDatasFromUrlsResult::~CreateTrainDatasFromUrlsResult()
|
||||
{}
|
||||
|
||||
void CreateTrainDatasFromUrlsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTrainDatas = value["TrainDatas"]["TrainData"];
|
||||
for (auto value : allTrainDatas)
|
||||
{
|
||||
TrainData trainDatasObject;
|
||||
if(!value["ProjectId"].isNull())
|
||||
trainDatasObject.projectId = value["ProjectId"].asString();
|
||||
if(!value["IterationId"].isNull())
|
||||
trainDatasObject.iterationId = value["IterationId"].asString();
|
||||
if(!value["DataId"].isNull())
|
||||
trainDatasObject.dataId = value["DataId"].asString();
|
||||
if(!value["DataName"].isNull())
|
||||
trainDatasObject.dataName = value["DataName"].asString();
|
||||
if(!value["DataUrl"].isNull())
|
||||
trainDatasObject.dataUrl = value["DataUrl"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
trainDatasObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
trainDatasObject.status = value["Status"].asString();
|
||||
if(!value["TagStatus"].isNull())
|
||||
trainDatasObject.tagStatus = value["TagStatus"].asString();
|
||||
auto allTagItems = value["TagItems"]["TagItem"];
|
||||
for (auto value : allTagItems)
|
||||
{
|
||||
TrainData::TagItem tagItemsObject;
|
||||
if(!value["TagId"].isNull())
|
||||
tagItemsObject.tagId = value["TagId"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
tagItemsObject.regionType = value["RegionType"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
tagItemsObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
tagItemsObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
tagItemsObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
tagItemsObject.region.height = regionNode["Height"].asString();
|
||||
trainDatasObject.tagItems.push_back(tagItemsObject);
|
||||
}
|
||||
trainDatas_.push_back(trainDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<CreateTrainDatasFromUrlsResult::TrainData> CreateTrainDatasFromUrlsResult::getTrainDatas()const
|
||||
{
|
||||
return trainDatas_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/CreateTrainDatasTagRequest.cc
Normal file
313
ivision/src/model/CreateTrainDatasTagRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTrainDatasTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::CreateTrainDatasTagRequest;
|
||||
|
||||
CreateTrainDatasTagRequest::CreateTrainDatasTagRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "CreateTrainDatasTag")
|
||||
{}
|
||||
|
||||
CreateTrainDatasTagRequest::~CreateTrainDatasTagRequest()
|
||||
{}
|
||||
|
||||
long CreateTrainDatasTagRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateTrainDatasTagRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateTrainDatasTagRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getDataIds()const
|
||||
{
|
||||
return dataIds_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setDataIds(const std::string& dataIds)
|
||||
{
|
||||
dataIds_ = dataIds;
|
||||
setParameter("DataIds", dataIds);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateTrainDatasTagRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getTagId()const
|
||||
{
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setTagId(const std::string& tagId)
|
||||
{
|
||||
tagId_ = tagId;
|
||||
setParameter("TagId", tagId);
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateTrainDatasTagRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateTrainDatasTagRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTrainDatasTagRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateTrainDatasTagRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateTrainDatasTagRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateTrainDatasTagRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
86
ivision/src/model/CreateTrainDatasTagResult.cc
Normal file
86
ivision/src/model/CreateTrainDatasTagResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateTrainDatasTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
CreateTrainDatasTagResult::CreateTrainDatasTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateTrainDatasTagResult::CreateTrainDatasTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateTrainDatasTagResult::~CreateTrainDatasTagResult()
|
||||
{}
|
||||
|
||||
void CreateTrainDatasTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto trainDataNode = value["TrainData"];
|
||||
if(!trainDataNode["ProjectId"].isNull())
|
||||
trainData_.projectId = trainDataNode["ProjectId"].asString();
|
||||
if(!trainDataNode["IterationId"].isNull())
|
||||
trainData_.iterationId = trainDataNode["IterationId"].asString();
|
||||
if(!trainDataNode["DataId"].isNull())
|
||||
trainData_.dataId = trainDataNode["DataId"].asString();
|
||||
if(!trainDataNode["DataName"].isNull())
|
||||
trainData_.dataName = trainDataNode["DataName"].asString();
|
||||
if(!trainDataNode["DataUrl"].isNull())
|
||||
trainData_.dataUrl = trainDataNode["DataUrl"].asString();
|
||||
if(!trainDataNode["CreationTime"].isNull())
|
||||
trainData_.creationTime = trainDataNode["CreationTime"].asString();
|
||||
if(!trainDataNode["Status"].isNull())
|
||||
trainData_.status = trainDataNode["Status"].asString();
|
||||
if(!trainDataNode["TagStatus"].isNull())
|
||||
trainData_.tagStatus = trainDataNode["TagStatus"].asString();
|
||||
auto allTagItems = value["TagItems"]["TagItem"];
|
||||
for (auto value : allTagItems)
|
||||
{
|
||||
TrainData::TagItem tagItemObject;
|
||||
if(!value["TagId"].isNull())
|
||||
tagItemObject.tagId = value["TagId"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
tagItemObject.regionType = value["RegionType"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
tagItemObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
tagItemObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
tagItemObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
tagItemObject.region.height = regionNode["Height"].asString();
|
||||
trainData_.tagItems.push_back(tagItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
CreateTrainDatasTagResult::TrainData CreateTrainDatasTagResult::getTrainData()const
|
||||
{
|
||||
return trainData_;
|
||||
}
|
||||
|
||||
302
ivision/src/model/CreateUploadTokenRequest.cc
Normal file
302
ivision/src/model/CreateUploadTokenRequest.cc
Normal file
@@ -0,0 +1,302 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateUploadTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::CreateUploadTokenRequest;
|
||||
|
||||
CreateUploadTokenRequest::CreateUploadTokenRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "CreateUploadToken")
|
||||
{}
|
||||
|
||||
CreateUploadTokenRequest::~CreateUploadTokenRequest()
|
||||
{}
|
||||
|
||||
long CreateUploadTokenRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long CreateUploadTokenRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool CreateUploadTokenRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long CreateUploadTokenRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long CreateUploadTokenRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool CreateUploadTokenRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateUploadTokenRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateUploadTokenRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getFileName()const
|
||||
{
|
||||
return fileName_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setFileName(const std::string& fileName)
|
||||
{
|
||||
fileName_ = fileName;
|
||||
setParameter("FileName", fileName);
|
||||
}
|
||||
|
||||
std::string CreateUploadTokenRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void CreateUploadTokenRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
67
ivision/src/model/CreateUploadTokenResult.cc
Normal file
67
ivision/src/model/CreateUploadTokenResult.cc
Normal file
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/CreateUploadTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
CreateUploadTokenResult::CreateUploadTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateUploadTokenResult::CreateUploadTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateUploadTokenResult::~CreateUploadTokenResult()
|
||||
{}
|
||||
|
||||
void CreateUploadTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto uploadTokenNode = value["UploadToken"];
|
||||
if(!uploadTokenNode["AccessKeyId"].isNull())
|
||||
uploadToken_.accessKeyId = uploadTokenNode["AccessKeyId"].asString();
|
||||
if(!uploadTokenNode["AccessKeySecret"].isNull())
|
||||
uploadToken_.accessKeySecret = uploadTokenNode["AccessKeySecret"].asString();
|
||||
if(!uploadTokenNode["SecurityToken"].isNull())
|
||||
uploadToken_.securityToken = uploadTokenNode["SecurityToken"].asString();
|
||||
if(!uploadTokenNode["Expiration"].isNull())
|
||||
uploadToken_.expiration = uploadTokenNode["Expiration"].asString();
|
||||
if(!uploadTokenNode["Bucket"].isNull())
|
||||
uploadToken_.bucket = uploadTokenNode["Bucket"].asString();
|
||||
if(!uploadTokenNode["Object"].isNull())
|
||||
uploadToken_.object = uploadTokenNode["Object"].asString();
|
||||
if(!uploadTokenNode["Endpoint"].isNull())
|
||||
uploadToken_.endpoint = uploadTokenNode["Endpoint"].asString();
|
||||
if(!uploadTokenNode["Url"].isNull())
|
||||
uploadToken_.url = uploadTokenNode["Url"].asString();
|
||||
|
||||
}
|
||||
|
||||
CreateUploadTokenResult::UploadToken CreateUploadTokenResult::getUploadToken()const
|
||||
{
|
||||
return uploadToken_;
|
||||
}
|
||||
|
||||
302
ivision/src/model/DeleteIterationRequest.cc
Normal file
302
ivision/src/model/DeleteIterationRequest.cc
Normal file
@@ -0,0 +1,302 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteIterationRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DeleteIterationRequest;
|
||||
|
||||
DeleteIterationRequest::DeleteIterationRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DeleteIteration")
|
||||
{}
|
||||
|
||||
DeleteIterationRequest::~DeleteIterationRequest()
|
||||
{}
|
||||
|
||||
long DeleteIterationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DeleteIterationRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteIterationRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteIterationRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteIterationRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DeleteIterationRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteIterationRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteIterationRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DeleteIterationRequest::getIterationId()const
|
||||
{
|
||||
return iterationId_;
|
||||
}
|
||||
|
||||
void DeleteIterationRequest::setIterationId(const std::string& iterationId)
|
||||
{
|
||||
iterationId_ = iterationId;
|
||||
setParameter("IterationId", iterationId);
|
||||
}
|
||||
|
||||
52
ivision/src/model/DeleteIterationResult.cc
Normal file
52
ivision/src/model/DeleteIterationResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteIterationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DeleteIterationResult::DeleteIterationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteIterationResult::DeleteIterationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteIterationResult::~DeleteIterationResult()
|
||||
{}
|
||||
|
||||
void DeleteIterationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IterationId"].isNull())
|
||||
iterationId_ = value["IterationId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteIterationResult::getIterationId()const
|
||||
{
|
||||
return iterationId_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/DeletePredictDatasRequest.cc
Normal file
313
ivision/src/model/DeletePredictDatasRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeletePredictDatasRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DeletePredictDatasRequest;
|
||||
|
||||
DeletePredictDatasRequest::DeletePredictDatasRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DeletePredictDatas")
|
||||
{}
|
||||
|
||||
DeletePredictDatasRequest::~DeletePredictDatasRequest()
|
||||
{}
|
||||
|
||||
long DeletePredictDatasRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DeletePredictDatasRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeletePredictDatasRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getDataIds()const
|
||||
{
|
||||
return dataIds_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setDataIds(const std::string& dataIds)
|
||||
{
|
||||
dataIds_ = dataIds;
|
||||
setParameter("DataIds", dataIds);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeletePredictDatasRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeletePredictDatasRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DeletePredictDatasRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeletePredictDatasRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeletePredictDatasRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DeletePredictDatasRequest::getIterationId()const
|
||||
{
|
||||
return iterationId_;
|
||||
}
|
||||
|
||||
void DeletePredictDatasRequest::setIterationId(const std::string& iterationId)
|
||||
{
|
||||
iterationId_ = iterationId;
|
||||
setParameter("IterationId", iterationId);
|
||||
}
|
||||
|
||||
45
ivision/src/model/DeletePredictDatasResult.cc
Normal file
45
ivision/src/model/DeletePredictDatasResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeletePredictDatasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DeletePredictDatasResult::DeletePredictDatasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeletePredictDatasResult::DeletePredictDatasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeletePredictDatasResult::~DeletePredictDatasResult()
|
||||
{}
|
||||
|
||||
void DeletePredictDatasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
291
ivision/src/model/DeleteProjectRequest.cc
Normal file
291
ivision/src/model/DeleteProjectRequest.cc
Normal file
@@ -0,0 +1,291 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DeleteProjectRequest;
|
||||
|
||||
DeleteProjectRequest::DeleteProjectRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DeleteProject")
|
||||
{}
|
||||
|
||||
DeleteProjectRequest::~DeleteProjectRequest()
|
||||
{}
|
||||
|
||||
long DeleteProjectRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DeleteProjectRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteProjectRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteProjectRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteProjectRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DeleteProjectRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteProjectRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteProjectRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteProjectRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteProjectRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
52
ivision/src/model/DeleteProjectResult.cc
Normal file
52
ivision/src/model/DeleteProjectResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DeleteProjectResult::DeleteProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteProjectResult::DeleteProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteProjectResult::~DeleteProjectResult()
|
||||
{}
|
||||
|
||||
void DeleteProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ProjectId"].isNull())
|
||||
projectId_ = value["ProjectId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteProjectResult::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
291
ivision/src/model/DeleteStreamPredictRequest.cc
Normal file
291
ivision/src/model/DeleteStreamPredictRequest.cc
Normal file
@@ -0,0 +1,291 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteStreamPredictRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DeleteStreamPredictRequest;
|
||||
|
||||
DeleteStreamPredictRequest::DeleteStreamPredictRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DeleteStreamPredict")
|
||||
{}
|
||||
|
||||
DeleteStreamPredictRequest::~DeleteStreamPredictRequest()
|
||||
{}
|
||||
|
||||
long DeleteStreamPredictRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DeleteStreamPredictRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteStreamPredictRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteStreamPredictRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DeleteStreamPredictRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteStreamPredictRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteStreamPredictRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteStreamPredictRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
52
ivision/src/model/DeleteStreamPredictResult.cc
Normal file
52
ivision/src/model/DeleteStreamPredictResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteStreamPredictResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DeleteStreamPredictResult::DeleteStreamPredictResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteStreamPredictResult::DeleteStreamPredictResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteStreamPredictResult::~DeleteStreamPredictResult()
|
||||
{}
|
||||
|
||||
void DeleteStreamPredictResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PredictId"].isNull())
|
||||
predictId_ = value["PredictId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteStreamPredictResult::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
302
ivision/src/model/DeleteTagRequest.cc
Normal file
302
ivision/src/model/DeleteTagRequest.cc
Normal file
@@ -0,0 +1,302 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DeleteTagRequest;
|
||||
|
||||
DeleteTagRequest::DeleteTagRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DeleteTag")
|
||||
{}
|
||||
|
||||
DeleteTagRequest::~DeleteTagRequest()
|
||||
{}
|
||||
|
||||
long DeleteTagRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DeleteTagRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteTagRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteTagRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getTagId()const
|
||||
{
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setTagId(const std::string& tagId)
|
||||
{
|
||||
tagId_ = tagId;
|
||||
setParameter("TagId", tagId);
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteTagRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DeleteTagRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteTagRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteTagRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTagRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteTagRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
52
ivision/src/model/DeleteTagResult.cc
Normal file
52
ivision/src/model/DeleteTagResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DeleteTagResult::DeleteTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTagResult::DeleteTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTagResult::~DeleteTagResult()
|
||||
{}
|
||||
|
||||
void DeleteTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["TagId"].isNull())
|
||||
tagId_ = value["TagId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteTagResult::getTagId()const
|
||||
{
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
302
ivision/src/model/DeleteTrainDatasRequest.cc
Normal file
302
ivision/src/model/DeleteTrainDatasRequest.cc
Normal file
@@ -0,0 +1,302 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteTrainDatasRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DeleteTrainDatasRequest;
|
||||
|
||||
DeleteTrainDatasRequest::DeleteTrainDatasRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DeleteTrainDatas")
|
||||
{}
|
||||
|
||||
DeleteTrainDatasRequest::~DeleteTrainDatasRequest()
|
||||
{}
|
||||
|
||||
long DeleteTrainDatasRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DeleteTrainDatasRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteTrainDatasRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getDataIds()const
|
||||
{
|
||||
return dataIds_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setDataIds(const std::string& dataIds)
|
||||
{
|
||||
dataIds_ = dataIds;
|
||||
setParameter("DataIds", dataIds);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteTrainDatasRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteTrainDatasRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DeleteTrainDatasRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteTrainDatasRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteTrainDatasRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
45
ivision/src/model/DeleteTrainDatasResult.cc
Normal file
45
ivision/src/model/DeleteTrainDatasResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteTrainDatasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DeleteTrainDatasResult::DeleteTrainDatasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTrainDatasResult::DeleteTrainDatasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTrainDatasResult::~DeleteTrainDatasResult()
|
||||
{}
|
||||
|
||||
void DeleteTrainDatasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
313
ivision/src/model/DeleteTrainDatasTagRequest.cc
Normal file
313
ivision/src/model/DeleteTrainDatasTagRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteTrainDatasTagRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DeleteTrainDatasTagRequest;
|
||||
|
||||
DeleteTrainDatasTagRequest::DeleteTrainDatasTagRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DeleteTrainDatasTag")
|
||||
{}
|
||||
|
||||
DeleteTrainDatasTagRequest::~DeleteTrainDatasTagRequest()
|
||||
{}
|
||||
|
||||
long DeleteTrainDatasTagRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DeleteTrainDatasTagRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteTrainDatasTagRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getDataIds()const
|
||||
{
|
||||
return dataIds_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setDataIds(const std::string& dataIds)
|
||||
{
|
||||
dataIds_ = dataIds;
|
||||
setParameter("DataIds", dataIds);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteTrainDatasTagRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getTagId()const
|
||||
{
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setTagId(const std::string& tagId)
|
||||
{
|
||||
tagId_ = tagId;
|
||||
setParameter("TagId", tagId);
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteTrainDatasTagRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DeleteTrainDatasTagRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteTrainDatasTagRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DeleteTrainDatasTagRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteTrainDatasTagRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteTrainDatasTagRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
45
ivision/src/model/DeleteTrainDatasTagResult.cc
Normal file
45
ivision/src/model/DeleteTrainDatasTagResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DeleteTrainDatasTagResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DeleteTrainDatasTagResult::DeleteTrainDatasTagResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteTrainDatasTagResult::DeleteTrainDatasTagResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteTrainDatasTagResult::~DeleteTrainDatasTagResult()
|
||||
{}
|
||||
|
||||
void DeleteTrainDatasTagResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
324
ivision/src/model/DescribeIterationsRequest.cc
Normal file
324
ivision/src/model/DescribeIterationsRequest.cc
Normal file
@@ -0,0 +1,324 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeIterationsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DescribeIterationsRequest;
|
||||
|
||||
DescribeIterationsRequest::DescribeIterationsRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribeIterations")
|
||||
{}
|
||||
|
||||
DescribeIterationsRequest::~DescribeIterationsRequest()
|
||||
{}
|
||||
|
||||
long DescribeIterationsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeIterationsRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeIterationsRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getThreshold()const
|
||||
{
|
||||
return threshold_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setThreshold(const std::string& threshold)
|
||||
{
|
||||
threshold_ = threshold;
|
||||
setParameter("Threshold", threshold);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeIterationsRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getIterationIds()const
|
||||
{
|
||||
return iterationIds_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setIterationIds(const std::string& iterationIds)
|
||||
{
|
||||
iterationIds_ = iterationIds;
|
||||
setParameter("IterationIds", iterationIds);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeIterationsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeIterationsRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeIterationsRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeIterationsRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeIterationsRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeIterationsRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
104
ivision/src/model/DescribeIterationsResult.cc
Normal file
104
ivision/src/model/DescribeIterationsResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeIterationsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DescribeIterationsResult::DescribeIterationsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeIterationsResult::DescribeIterationsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeIterationsResult::~DescribeIterationsResult()
|
||||
{}
|
||||
|
||||
void DescribeIterationsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allIterations = value["Iterations"]["Iteration"];
|
||||
for (auto value : allIterations)
|
||||
{
|
||||
Iteration iterationsObject;
|
||||
if(!value["ProjectId"].isNull())
|
||||
iterationsObject.projectId = value["ProjectId"].asString();
|
||||
if(!value["IterationId"].isNull())
|
||||
iterationsObject.iterationId = value["IterationId"].asString();
|
||||
if(!value["IterationName"].isNull())
|
||||
iterationsObject.iterationName = value["IterationName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
iterationsObject.status = value["Status"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
iterationsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["FinishTime"].isNull())
|
||||
iterationsObject.finishTime = value["FinishTime"].asString();
|
||||
if(!value["ModelId"].isNull())
|
||||
iterationsObject.modelId = value["ModelId"].asString();
|
||||
if(!value["Precision"].isNull())
|
||||
iterationsObject.precision = value["Precision"].asString();
|
||||
if(!value["Recall"].isNull())
|
||||
iterationsObject.recall = value["Recall"].asString();
|
||||
if(!value["MAP"].isNull())
|
||||
iterationsObject.mAP = value["MAP"].asString();
|
||||
iterations_.push_back(iterationsObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stol(value["CurrentPage"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["NextPageToken"].isNull())
|
||||
nextPageToken_ = value["NextPageToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
long DescribeIterationsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
long DescribeIterationsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeIterationsResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string DescribeIterationsResult::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
std::vector<DescribeIterationsResult::Iteration> DescribeIterationsResult::getIterations()const
|
||||
{
|
||||
return iterations_;
|
||||
}
|
||||
|
||||
379
ivision/src/model/DescribePredictDatasRequest.cc
Normal file
379
ivision/src/model/DescribePredictDatasRequest.cc
Normal file
@@ -0,0 +1,379 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribePredictDatasRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DescribePredictDatasRequest;
|
||||
|
||||
DescribePredictDatasRequest::DescribePredictDatasRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribePredictDatas")
|
||||
{}
|
||||
|
||||
DescribePredictDatasRequest::~DescribePredictDatasRequest()
|
||||
{}
|
||||
|
||||
long DescribePredictDatasRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
long DescribePredictDatasRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribePredictDatasRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
long DescribePredictDatasRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getProbabilityThreshold()const
|
||||
{
|
||||
return probabilityThreshold_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setProbabilityThreshold(const std::string& probabilityThreshold)
|
||||
{
|
||||
probabilityThreshold_ = probabilityThreshold;
|
||||
setParameter("ProbabilityThreshold", probabilityThreshold);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getOverlapThreshold()const
|
||||
{
|
||||
return overlapThreshold_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setOverlapThreshold(const std::string& overlapThreshold)
|
||||
{
|
||||
overlapThreshold_ = overlapThreshold;
|
||||
setParameter("OverlapThreshold", overlapThreshold);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribePredictDatasRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getModelId()const
|
||||
{
|
||||
return modelId_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setModelId(const std::string& modelId)
|
||||
{
|
||||
modelId_ = modelId;
|
||||
setParameter("ModelId", modelId);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getTagId()const
|
||||
{
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setTagId(const std::string& tagId)
|
||||
{
|
||||
tagId_ = tagId;
|
||||
setParameter("TagId", tagId);
|
||||
}
|
||||
|
||||
long DescribePredictDatasRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribePredictDatasRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribePredictDatasRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribePredictDatasRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribePredictDatasRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasRequest::getIterationId()const
|
||||
{
|
||||
return iterationId_;
|
||||
}
|
||||
|
||||
void DescribePredictDatasRequest::setIterationId(const std::string& iterationId)
|
||||
{
|
||||
iterationId_ = iterationId;
|
||||
setParameter("IterationId", iterationId);
|
||||
}
|
||||
|
||||
129
ivision/src/model/DescribePredictDatasResult.cc
Normal file
129
ivision/src/model/DescribePredictDatasResult.cc
Normal file
@@ -0,0 +1,129 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribePredictDatasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DescribePredictDatasResult::DescribePredictDatasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribePredictDatasResult::DescribePredictDatasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribePredictDatasResult::~DescribePredictDatasResult()
|
||||
{}
|
||||
|
||||
void DescribePredictDatasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPredictDatas = value["PredictDatas"]["PredictData"];
|
||||
for (auto value : allPredictDatas)
|
||||
{
|
||||
PredictData predictDatasObject;
|
||||
if(!value["ProjectId"].isNull())
|
||||
predictDatasObject.projectId = value["ProjectId"].asString();
|
||||
if(!value["IterationId"].isNull())
|
||||
predictDatasObject.iterationId = value["IterationId"].asString();
|
||||
if(!value["DataId"].isNull())
|
||||
predictDatasObject.dataId = value["DataId"].asString();
|
||||
if(!value["DataName"].isNull())
|
||||
predictDatasObject.dataName = value["DataName"].asString();
|
||||
if(!value["DataUrl"].isNull())
|
||||
predictDatasObject.dataUrl = value["DataUrl"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
predictDatasObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
predictDatasObject.status = value["Status"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
predictDatasObject.errorCode = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
predictDatasObject.errorMessage = value["ErrorMessage"].asString();
|
||||
auto allPredictionResults = value["PredictionResults"]["PredictionResult"];
|
||||
for (auto value : allPredictionResults)
|
||||
{
|
||||
PredictData::PredictionResult predictionResultsObject;
|
||||
if(!value["TagId"].isNull())
|
||||
predictionResultsObject.tagId = value["TagId"].asString();
|
||||
if(!value["TagName"].isNull())
|
||||
predictionResultsObject.tagName = value["TagName"].asString();
|
||||
if(!value["Probability"].isNull())
|
||||
predictionResultsObject.probability = value["Probability"].asString();
|
||||
if(!value["Overlap"].isNull())
|
||||
predictionResultsObject.overlap = value["Overlap"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
predictionResultsObject.regionType = value["RegionType"].asString();
|
||||
if(!value["Properties"].isNull())
|
||||
predictionResultsObject.properties = value["Properties"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
predictionResultsObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
predictionResultsObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
predictionResultsObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
predictionResultsObject.region.height = regionNode["Height"].asString();
|
||||
predictDatasObject.predictionResults.push_back(predictionResultsObject);
|
||||
}
|
||||
predictDatas_.push_back(predictDatasObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stol(value["CurrentPage"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["NextPageToken"].isNull())
|
||||
nextPageToken_ = value["NextPageToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribePredictDatasResult::PredictData> DescribePredictDatasResult::getPredictDatas()const
|
||||
{
|
||||
return predictDatas_;
|
||||
}
|
||||
|
||||
long DescribePredictDatasResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
long DescribePredictDatasResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribePredictDatasResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string DescribePredictDatasResult::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
324
ivision/src/model/DescribeProjectsRequest.cc
Normal file
324
ivision/src/model/DescribeProjectsRequest.cc
Normal file
@@ -0,0 +1,324 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeProjectsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DescribeProjectsRequest;
|
||||
|
||||
DescribeProjectsRequest::DescribeProjectsRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribeProjects")
|
||||
{}
|
||||
|
||||
DescribeProjectsRequest::~DescribeProjectsRequest()
|
||||
{}
|
||||
|
||||
long DescribeProjectsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
long DescribeProjectsRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeProjectsRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
long DescribeProjectsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeProjectsRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long DescribeProjectsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getProjectIds()const
|
||||
{
|
||||
return projectIds_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setProjectIds(const std::string& projectIds)
|
||||
{
|
||||
projectIds_ = projectIds;
|
||||
setParameter("ProjectIds", projectIds);
|
||||
}
|
||||
|
||||
long DescribeProjectsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeProjectsRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeProjectsRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeProjectsRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeProjectsRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeProjectsRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
98
ivision/src/model/DescribeProjectsResult.cc
Normal file
98
ivision/src/model/DescribeProjectsResult.cc
Normal file
@@ -0,0 +1,98 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeProjectsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DescribeProjectsResult::DescribeProjectsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeProjectsResult::DescribeProjectsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeProjectsResult::~DescribeProjectsResult()
|
||||
{}
|
||||
|
||||
void DescribeProjectsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allProjects = value["Projects"]["Project"];
|
||||
for (auto value : allProjects)
|
||||
{
|
||||
Project projectsObject;
|
||||
if(!value["ProjectId"].isNull())
|
||||
projectsObject.projectId = value["ProjectId"].asString();
|
||||
if(!value["Name"].isNull())
|
||||
projectsObject.name = value["Name"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
projectsObject.description = value["Description"].asString();
|
||||
if(!value["ProType"].isNull())
|
||||
projectsObject.proType = value["ProType"].asString();
|
||||
if(!value["IterCount"].isNull())
|
||||
projectsObject.iterCount = std::stoi(value["IterCount"].asString());
|
||||
if(!value["CreationTime"].isNull())
|
||||
projectsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
projectsObject.status = value["Status"].asString();
|
||||
projects_.push_back(projectsObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stol(value["CurrentPage"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["NextPageToken"].isNull())
|
||||
nextPageToken_ = value["NextPageToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
long DescribeProjectsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
long DescribeProjectsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeProjectsResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string DescribeProjectsResult::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
std::vector<DescribeProjectsResult::Project> DescribeProjectsResult::getProjects()const
|
||||
{
|
||||
return projects_;
|
||||
}
|
||||
|
||||
368
ivision/src/model/DescribeStreamPredictResultRequest.cc
Normal file
368
ivision/src/model/DescribeStreamPredictResultRequest.cc
Normal file
@@ -0,0 +1,368 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeStreamPredictResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DescribeStreamPredictResultRequest;
|
||||
|
||||
DescribeStreamPredictResultRequest::DescribeStreamPredictResultRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribeStreamPredictResult")
|
||||
{}
|
||||
|
||||
DescribeStreamPredictResultRequest::~DescribeStreamPredictResultRequest()
|
||||
{}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeStreamPredictResultRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getProbabilityThreshold()const
|
||||
{
|
||||
return probabilityThreshold_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setProbabilityThreshold(const std::string& probabilityThreshold)
|
||||
{
|
||||
probabilityThreshold_ = probabilityThreshold;
|
||||
setParameter("ProbabilityThreshold", probabilityThreshold);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getModelId()const
|
||||
{
|
||||
return modelId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setModelId(const std::string& modelId)
|
||||
{
|
||||
modelId_ = modelId;
|
||||
setParameter("ModelId", modelId);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeStreamPredictResultRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeStreamPredictResultRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeStreamPredictResultRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictResultRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
138
ivision/src/model/DescribeStreamPredictResultResult.cc
Normal file
138
ivision/src/model/DescribeStreamPredictResultResult.cc
Normal file
@@ -0,0 +1,138 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeStreamPredictResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DescribeStreamPredictResultResult::DescribeStreamPredictResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeStreamPredictResultResult::DescribeStreamPredictResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeStreamPredictResultResult::~DescribeStreamPredictResultResult()
|
||||
{}
|
||||
|
||||
void DescribeStreamPredictResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStreamPredictDatas = value["StreamPredictDatas"]["StreamPredictData"];
|
||||
for (auto value : allStreamPredictDatas)
|
||||
{
|
||||
StreamPredictData streamPredictDatasObject;
|
||||
if(!value["PredictId"].isNull())
|
||||
streamPredictDatasObject.predictId = value["PredictId"].asString();
|
||||
if(!value["ModelId"].isNull())
|
||||
streamPredictDatasObject.modelId = value["ModelId"].asString();
|
||||
if(!value["DataUrl"].isNull())
|
||||
streamPredictDatasObject.dataUrl = value["DataUrl"].asString();
|
||||
if(!value["StreamTimestamp"].isNull())
|
||||
streamPredictDatasObject.streamTimestamp = value["StreamTimestamp"].asString();
|
||||
if(!value["PredictTime"].isNull())
|
||||
streamPredictDatasObject.predictTime = value["PredictTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
streamPredictDatasObject.status = value["Status"].asString();
|
||||
auto allResultStatistics = value["ResultStatistics"]["ResultStatisticsItem"];
|
||||
for (auto value : allResultStatistics)
|
||||
{
|
||||
StreamPredictData::ResultStatisticsItem resultStatisticsObject;
|
||||
if(!value["TagId"].isNull())
|
||||
resultStatisticsObject.tagId = value["TagId"].asString();
|
||||
if(!value["TagName"].isNull())
|
||||
resultStatisticsObject.tagName = value["TagName"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
resultStatisticsObject.count = std::stol(value["Count"].asString());
|
||||
streamPredictDatasObject.resultStatistics.push_back(resultStatisticsObject);
|
||||
}
|
||||
auto allPredictionResults = value["PredictionResults"]["PredictionResult"];
|
||||
for (auto value : allPredictionResults)
|
||||
{
|
||||
StreamPredictData::PredictionResult predictionResultsObject;
|
||||
if(!value["TagId"].isNull())
|
||||
predictionResultsObject.tagId = value["TagId"].asString();
|
||||
if(!value["TagName"].isNull())
|
||||
predictionResultsObject.tagName = value["TagName"].asString();
|
||||
if(!value["Probability"].isNull())
|
||||
predictionResultsObject.probability = value["Probability"].asString();
|
||||
if(!value["Overlap"].isNull())
|
||||
predictionResultsObject.overlap = value["Overlap"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
predictionResultsObject.regionType = value["RegionType"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
predictionResultsObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
predictionResultsObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
predictionResultsObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
predictionResultsObject.region.height = regionNode["Height"].asString();
|
||||
auto propertiesNode = value["Properties"];
|
||||
if(!propertiesNode["WithGloves"].isNull())
|
||||
predictionResultsObject.properties.withGloves = propertiesNode["WithGloves"].asString();
|
||||
if(!propertiesNode["WithGlovesProbability"].isNull())
|
||||
predictionResultsObject.properties.withGlovesProbability = propertiesNode["WithGlovesProbability"].asString();
|
||||
streamPredictDatasObject.predictionResults.push_back(predictionResultsObject);
|
||||
}
|
||||
streamPredictDatas_.push_back(streamPredictDatasObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stol(value["CurrentPage"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["NextPageToken"].isNull())
|
||||
nextPageToken_ = value["NextPageToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeStreamPredictResultResult::StreamPredictData> DescribeStreamPredictResultResult::getStreamPredictDatas()const
|
||||
{
|
||||
return streamPredictDatas_;
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeStreamPredictResultResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictResultResult::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
324
ivision/src/model/DescribeStreamPredictsRequest.cc
Normal file
324
ivision/src/model/DescribeStreamPredictsRequest.cc
Normal file
@@ -0,0 +1,324 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeStreamPredictsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DescribeStreamPredictsRequest;
|
||||
|
||||
DescribeStreamPredictsRequest::DescribeStreamPredictsRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribeStreamPredicts")
|
||||
{}
|
||||
|
||||
DescribeStreamPredictsRequest::~DescribeStreamPredictsRequest()
|
||||
{}
|
||||
|
||||
long DescribeStreamPredictsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getPredictIds()const
|
||||
{
|
||||
return predictIds_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setPredictIds(const std::string& predictIds)
|
||||
{
|
||||
predictIds_ = predictIds;
|
||||
setParameter("PredictIds", predictIds);
|
||||
}
|
||||
|
||||
bool DescribeStreamPredictsRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeStreamPredictsRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeStreamPredictsRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeStreamPredictsRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeStreamPredictsRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
104
ivision/src/model/DescribeStreamPredictsResult.cc
Normal file
104
ivision/src/model/DescribeStreamPredictsResult.cc
Normal file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeStreamPredictsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DescribeStreamPredictsResult::DescribeStreamPredictsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeStreamPredictsResult::DescribeStreamPredictsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeStreamPredictsResult::~DescribeStreamPredictsResult()
|
||||
{}
|
||||
|
||||
void DescribeStreamPredictsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStreamPredicts = value["StreamPredicts"]["StreamPredict"];
|
||||
for (auto value : allStreamPredicts)
|
||||
{
|
||||
StreamPredict streamPredictsObject;
|
||||
if(!value["PredictId"].isNull())
|
||||
streamPredictsObject.predictId = value["PredictId"].asString();
|
||||
if(!value["StreamType"].isNull())
|
||||
streamPredictsObject.streamType = value["StreamType"].asString();
|
||||
if(!value["StreamId"].isNull())
|
||||
streamPredictsObject.streamId = value["StreamId"].asString();
|
||||
if(!value["ModelIds"].isNull())
|
||||
streamPredictsObject.modelIds = value["ModelIds"].asString();
|
||||
if(!value["ProbabilityThresholds"].isNull())
|
||||
streamPredictsObject.probabilityThresholds = value["ProbabilityThresholds"].asString();
|
||||
if(!value["Output"].isNull())
|
||||
streamPredictsObject.output = value["Output"].asString();
|
||||
if(!value["Notify"].isNull())
|
||||
streamPredictsObject.notify = value["Notify"].asString();
|
||||
if(!value["UserData"].isNull())
|
||||
streamPredictsObject.userData = value["UserData"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
streamPredictsObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
streamPredictsObject.status = value["Status"].asString();
|
||||
streamPredicts_.push_back(streamPredictsObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stol(value["CurrentPage"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["NextPageToken"].isNull())
|
||||
nextPageToken_ = value["NextPageToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeStreamPredictsResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string DescribeStreamPredictsResult::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
std::vector<DescribeStreamPredictsResult::StreamPredict> DescribeStreamPredictsResult::getStreamPredicts()const
|
||||
{
|
||||
return streamPredicts_;
|
||||
}
|
||||
|
||||
346
ivision/src/model/DescribeTagsRequest.cc
Normal file
346
ivision/src/model/DescribeTagsRequest.cc
Normal file
@@ -0,0 +1,346 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeTagsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DescribeTagsRequest;
|
||||
|
||||
DescribeTagsRequest::DescribeTagsRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribeTags")
|
||||
{}
|
||||
|
||||
DescribeTagsRequest::~DescribeTagsRequest()
|
||||
{}
|
||||
|
||||
long DescribeTagsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
long DescribeTagsRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeTagsRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
long DescribeTagsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeTagsRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getTagIds()const
|
||||
{
|
||||
return tagIds_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setTagIds(const std::string& tagIds)
|
||||
{
|
||||
tagIds_ = tagIds;
|
||||
setParameter("TagIds", tagIds);
|
||||
}
|
||||
|
||||
long DescribeTagsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeTagsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeTagsRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeTagsRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeTagsRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeTagsRequest::getIterationId()const
|
||||
{
|
||||
return iterationId_;
|
||||
}
|
||||
|
||||
void DescribeTagsRequest::setIterationId(const std::string& iterationId)
|
||||
{
|
||||
iterationId_ = iterationId;
|
||||
setParameter("IterationId", iterationId);
|
||||
}
|
||||
|
||||
96
ivision/src/model/DescribeTagsResult.cc
Normal file
96
ivision/src/model/DescribeTagsResult.cc
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeTagsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DescribeTagsResult::DescribeTagsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTagsResult::DescribeTagsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTagsResult::~DescribeTagsResult()
|
||||
{}
|
||||
|
||||
void DescribeTagsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTags = value["Tags"]["Tag"];
|
||||
for (auto value : allTags)
|
||||
{
|
||||
Tag tagsObject;
|
||||
if(!value["ProjectId"].isNull())
|
||||
tagsObject.projectId = value["ProjectId"].asString();
|
||||
if(!value["TagId"].isNull())
|
||||
tagsObject.tagId = value["TagId"].asString();
|
||||
if(!value["TagName"].isNull())
|
||||
tagsObject.tagName = value["TagName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
tagsObject.description = value["Description"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
tagsObject.count = std::stoi(value["Count"].asString());
|
||||
if(!value["CreationTime"].isNull())
|
||||
tagsObject.creationTime = value["CreationTime"].asString();
|
||||
tags_.push_back(tagsObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stol(value["CurrentPage"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["NextPageToken"].isNull())
|
||||
nextPageToken_ = value["NextPageToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
long DescribeTagsResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
long DescribeTagsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeTagsResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string DescribeTagsResult::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTagsResult::Tag> DescribeTagsResult::getTags()const
|
||||
{
|
||||
return tags_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/DescribeTrainDatasByIdsRequest.cc
Normal file
313
ivision/src/model/DescribeTrainDatasByIdsRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeTrainDatasByIdsRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DescribeTrainDatasByIdsRequest;
|
||||
|
||||
DescribeTrainDatasByIdsRequest::DescribeTrainDatasByIdsRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribeTrainDatasByIds")
|
||||
{}
|
||||
|
||||
DescribeTrainDatasByIdsRequest::~DescribeTrainDatasByIdsRequest()
|
||||
{}
|
||||
|
||||
long DescribeTrainDatasByIdsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeTrainDatasByIdsRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeTrainDatasByIdsRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getDataIds()const
|
||||
{
|
||||
return dataIds_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setDataIds(const std::string& dataIds)
|
||||
{
|
||||
dataIds_ = dataIds;
|
||||
setParameter("DataIds", dataIds);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeTrainDatasByIdsRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeTrainDatasByIdsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeTrainDatasByIdsRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeTrainDatasByIdsRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeTrainDatasByIdsRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasByIdsRequest::getIterationId()const
|
||||
{
|
||||
return iterationId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasByIdsRequest::setIterationId(const std::string& iterationId)
|
||||
{
|
||||
iterationId_ = iterationId;
|
||||
setParameter("IterationId", iterationId);
|
||||
}
|
||||
|
||||
91
ivision/src/model/DescribeTrainDatasByIdsResult.cc
Normal file
91
ivision/src/model/DescribeTrainDatasByIdsResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeTrainDatasByIdsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DescribeTrainDatasByIdsResult::DescribeTrainDatasByIdsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTrainDatasByIdsResult::DescribeTrainDatasByIdsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTrainDatasByIdsResult::~DescribeTrainDatasByIdsResult()
|
||||
{}
|
||||
|
||||
void DescribeTrainDatasByIdsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTrainDatas = value["TrainDatas"]["TrainData"];
|
||||
for (auto value : allTrainDatas)
|
||||
{
|
||||
TrainData trainDatasObject;
|
||||
if(!value["ProjectId"].isNull())
|
||||
trainDatasObject.projectId = value["ProjectId"].asString();
|
||||
if(!value["IterationId"].isNull())
|
||||
trainDatasObject.iterationId = value["IterationId"].asString();
|
||||
if(!value["DataId"].isNull())
|
||||
trainDatasObject.dataId = value["DataId"].asString();
|
||||
if(!value["DataName"].isNull())
|
||||
trainDatasObject.dataName = value["DataName"].asString();
|
||||
if(!value["DataUrl"].isNull())
|
||||
trainDatasObject.dataUrl = value["DataUrl"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
trainDatasObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
trainDatasObject.status = value["Status"].asString();
|
||||
if(!value["TagStatus"].isNull())
|
||||
trainDatasObject.tagStatus = value["TagStatus"].asString();
|
||||
auto allTagItems = value["TagItems"]["TagItem"];
|
||||
for (auto value : allTagItems)
|
||||
{
|
||||
TrainData::TagItem tagItemsObject;
|
||||
if(!value["TagId"].isNull())
|
||||
tagItemsObject.tagId = value["TagId"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
tagItemsObject.regionType = value["RegionType"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
tagItemsObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
tagItemsObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
tagItemsObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
tagItemsObject.region.height = regionNode["Height"].asString();
|
||||
trainDatasObject.tagItems.push_back(tagItemsObject);
|
||||
}
|
||||
trainDatas_.push_back(trainDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeTrainDatasByIdsResult::TrainData> DescribeTrainDatasByIdsResult::getTrainDatas()const
|
||||
{
|
||||
return trainDatas_;
|
||||
}
|
||||
|
||||
357
ivision/src/model/DescribeTrainDatasRequest.cc
Normal file
357
ivision/src/model/DescribeTrainDatasRequest.cc
Normal file
@@ -0,0 +1,357 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeTrainDatasRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DescribeTrainDatasRequest;
|
||||
|
||||
DescribeTrainDatasRequest::DescribeTrainDatasRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribeTrainDatas")
|
||||
{}
|
||||
|
||||
DescribeTrainDatasRequest::~DescribeTrainDatasRequest()
|
||||
{}
|
||||
|
||||
long DescribeTrainDatasRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setNextPageToken(const std::string& nextPageToken)
|
||||
{
|
||||
nextPageToken_ = nextPageToken;
|
||||
setParameter("NextPageToken", nextPageToken);
|
||||
}
|
||||
|
||||
long DescribeTrainDatasRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeTrainDatasRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getTagStatus()const
|
||||
{
|
||||
return tagStatus_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setTagStatus(const std::string& tagStatus)
|
||||
{
|
||||
tagStatus_ = tagStatus;
|
||||
setParameter("TagStatus", tagStatus);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
long DescribeTrainDatasRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setPageSize(long pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeTrainDatasRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getTagId()const
|
||||
{
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setTagId(const std::string& tagId)
|
||||
{
|
||||
tagId_ = tagId;
|
||||
setParameter("TagId", tagId);
|
||||
}
|
||||
|
||||
long DescribeTrainDatasRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setCurrentPage(long currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeTrainDatasRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeTrainDatasRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeTrainDatasRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeTrainDatasRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasRequest::getIterationId()const
|
||||
{
|
||||
return iterationId_;
|
||||
}
|
||||
|
||||
void DescribeTrainDatasRequest::setIterationId(const std::string& iterationId)
|
||||
{
|
||||
iterationId_ = iterationId;
|
||||
setParameter("IterationId", iterationId);
|
||||
}
|
||||
|
||||
119
ivision/src/model/DescribeTrainDatasResult.cc
Normal file
119
ivision/src/model/DescribeTrainDatasResult.cc
Normal file
@@ -0,0 +1,119 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeTrainDatasResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DescribeTrainDatasResult::DescribeTrainDatasResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTrainDatasResult::DescribeTrainDatasResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTrainDatasResult::~DescribeTrainDatasResult()
|
||||
{}
|
||||
|
||||
void DescribeTrainDatasResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTrainDatas = value["TrainDatas"]["TrainData"];
|
||||
for (auto value : allTrainDatas)
|
||||
{
|
||||
TrainData trainDatasObject;
|
||||
if(!value["ProjectId"].isNull())
|
||||
trainDatasObject.projectId = value["ProjectId"].asString();
|
||||
if(!value["IterationId"].isNull())
|
||||
trainDatasObject.iterationId = value["IterationId"].asString();
|
||||
if(!value["DataId"].isNull())
|
||||
trainDatasObject.dataId = value["DataId"].asString();
|
||||
if(!value["DataName"].isNull())
|
||||
trainDatasObject.dataName = value["DataName"].asString();
|
||||
if(!value["DataUrl"].isNull())
|
||||
trainDatasObject.dataUrl = value["DataUrl"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
trainDatasObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
trainDatasObject.status = value["Status"].asString();
|
||||
if(!value["TagStatus"].isNull())
|
||||
trainDatasObject.tagStatus = value["TagStatus"].asString();
|
||||
auto allTagItems = value["TagItems"]["TagItem"];
|
||||
for (auto value : allTagItems)
|
||||
{
|
||||
TrainData::TagItem tagItemsObject;
|
||||
if(!value["TagId"].isNull())
|
||||
tagItemsObject.tagId = value["TagId"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
tagItemsObject.regionType = value["RegionType"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
tagItemsObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
tagItemsObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
tagItemsObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
tagItemsObject.region.height = regionNode["Height"].asString();
|
||||
trainDatasObject.tagItems.push_back(tagItemsObject);
|
||||
}
|
||||
trainDatas_.push_back(trainDatasObject);
|
||||
}
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stol(value["TotalNum"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stol(value["CurrentPage"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["NextPageToken"].isNull())
|
||||
nextPageToken_ = value["NextPageToken"].asString();
|
||||
|
||||
}
|
||||
|
||||
long DescribeTrainDatasResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
long DescribeTrainDatasResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::vector<DescribeTrainDatasResult::TrainData> DescribeTrainDatasResult::getTrainDatas()const
|
||||
{
|
||||
return trainDatas_;
|
||||
}
|
||||
|
||||
long DescribeTrainDatasResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::string DescribeTrainDatasResult::getNextPageToken()const
|
||||
{
|
||||
return nextPageToken_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/DescribeTrainResultRequest.cc
Normal file
313
ivision/src/model/DescribeTrainResultRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeTrainResultRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::DescribeTrainResultRequest;
|
||||
|
||||
DescribeTrainResultRequest::DescribeTrainResultRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "DescribeTrainResult")
|
||||
{}
|
||||
|
||||
DescribeTrainResultRequest::~DescribeTrainResultRequest()
|
||||
{}
|
||||
|
||||
long DescribeTrainResultRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long DescribeTrainResultRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeTrainResultRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getThreshold()const
|
||||
{
|
||||
return threshold_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setThreshold(const std::string& threshold)
|
||||
{
|
||||
threshold_ = threshold;
|
||||
setParameter("Threshold", threshold);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeTrainResultRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeTrainResultRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool DescribeTrainResultRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeTrainResultRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool DescribeTrainResultRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeTrainResultRequest::getIterationId()const
|
||||
{
|
||||
return iterationId_;
|
||||
}
|
||||
|
||||
void DescribeTrainResultRequest::setIterationId(const std::string& iterationId)
|
||||
{
|
||||
iterationId_ = iterationId;
|
||||
setParameter("IterationId", iterationId);
|
||||
}
|
||||
|
||||
91
ivision/src/model/DescribeTrainResultResult.cc
Normal file
91
ivision/src/model/DescribeTrainResultResult.cc
Normal file
@@ -0,0 +1,91 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/DescribeTrainResultResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
DescribeTrainResultResult::DescribeTrainResultResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeTrainResultResult::DescribeTrainResultResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeTrainResultResult::~DescribeTrainResultResult()
|
||||
{}
|
||||
|
||||
void DescribeTrainResultResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto trainResultNode = value["TrainResult"];
|
||||
if(!trainResultNode["ProjectId"].isNull())
|
||||
trainResult_.projectId = trainResultNode["ProjectId"].asString();
|
||||
if(!trainResultNode["IterationId"].isNull())
|
||||
trainResult_.iterationId = trainResultNode["IterationId"].asString();
|
||||
if(!trainResultNode["IterationName"].isNull())
|
||||
trainResult_.iterationName = trainResultNode["IterationName"].asString();
|
||||
if(!trainResultNode["Precision"].isNull())
|
||||
trainResult_.precision = trainResultNode["Precision"].asString();
|
||||
if(!trainResultNode["Recall"].isNull())
|
||||
trainResult_.recall = trainResultNode["Recall"].asString();
|
||||
if(!trainResultNode["MAP"].isNull())
|
||||
trainResult_.mAP = trainResultNode["MAP"].asString();
|
||||
if(!trainResultNode["Threshold"].isNull())
|
||||
trainResult_.threshold = trainResultNode["Threshold"].asString();
|
||||
if(!trainResultNode["Status"].isNull())
|
||||
trainResult_.status = trainResultNode["Status"].asString();
|
||||
if(!trainResultNode["StartTime"].isNull())
|
||||
trainResult_.startTime = trainResultNode["StartTime"].asString();
|
||||
if(!trainResultNode["EndTime"].isNull())
|
||||
trainResult_.endTime = trainResultNode["EndTime"].asString();
|
||||
if(!trainResultNode["ErrorCode"].isNull())
|
||||
trainResult_.errorCode = trainResultNode["ErrorCode"].asString();
|
||||
if(!trainResultNode["ErrorMessage"].isNull())
|
||||
trainResult_.errorMessage = trainResultNode["ErrorMessage"].asString();
|
||||
auto allTagResults = value["TagResults"]["TagResult"];
|
||||
for (auto value : allTagResults)
|
||||
{
|
||||
TrainResult::TagResult tagResultObject;
|
||||
if(!value["TagId"].isNull())
|
||||
tagResultObject.tagId = value["TagId"].asString();
|
||||
if(!value["TagName"].isNull())
|
||||
tagResultObject.tagName = value["TagName"].asString();
|
||||
if(!value["Precision"].isNull())
|
||||
tagResultObject.precision = value["Precision"].asString();
|
||||
if(!value["Recall"].isNull())
|
||||
tagResultObject.recall = value["Recall"].asString();
|
||||
if(!value["AP"].isNull())
|
||||
tagResultObject.aP = value["AP"].asString();
|
||||
trainResult_.tagResults.push_back(tagResultObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
DescribeTrainResultResult::TrainResult DescribeTrainResultResult::getTrainResult()const
|
||||
{
|
||||
return trainResult_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/ModifyProjectAttributeRequest.cc
Normal file
313
ivision/src/model/ModifyProjectAttributeRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/ModifyProjectAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::ModifyProjectAttributeRequest;
|
||||
|
||||
ModifyProjectAttributeRequest::ModifyProjectAttributeRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "ModifyProjectAttribute")
|
||||
{}
|
||||
|
||||
ModifyProjectAttributeRequest::~ModifyProjectAttributeRequest()
|
||||
{}
|
||||
|
||||
long ModifyProjectAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long ModifyProjectAttributeRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ModifyProjectAttributeRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ModifyProjectAttributeRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ModifyProjectAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool ModifyProjectAttributeRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyProjectAttributeRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyProjectAttributeRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string ModifyProjectAttributeRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyProjectAttributeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
65
ivision/src/model/ModifyProjectAttributeResult.cc
Normal file
65
ivision/src/model/ModifyProjectAttributeResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/ModifyProjectAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
ModifyProjectAttributeResult::ModifyProjectAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyProjectAttributeResult::ModifyProjectAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyProjectAttributeResult::~ModifyProjectAttributeResult()
|
||||
{}
|
||||
|
||||
void ModifyProjectAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto projectNode = value["Project"];
|
||||
if(!projectNode["ProjectId"].isNull())
|
||||
project_.projectId = projectNode["ProjectId"].asString();
|
||||
if(!projectNode["Name"].isNull())
|
||||
project_.name = projectNode["Name"].asString();
|
||||
if(!projectNode["Description"].isNull())
|
||||
project_.description = projectNode["Description"].asString();
|
||||
if(!projectNode["ProType"].isNull())
|
||||
project_.proType = projectNode["ProType"].asString();
|
||||
if(!projectNode["IterCount"].isNull())
|
||||
project_.iterCount = std::stoi(projectNode["IterCount"].asString());
|
||||
if(!projectNode["CreationTime"].isNull())
|
||||
project_.creationTime = projectNode["CreationTime"].asString();
|
||||
if(!projectNode["Status"].isNull())
|
||||
project_.status = projectNode["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
ModifyProjectAttributeResult::Project ModifyProjectAttributeResult::getProject()const
|
||||
{
|
||||
return project_;
|
||||
}
|
||||
|
||||
324
ivision/src/model/ModifyTagAttributeRequest.cc
Normal file
324
ivision/src/model/ModifyTagAttributeRequest.cc
Normal file
@@ -0,0 +1,324 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/ModifyTagAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::ModifyTagAttributeRequest;
|
||||
|
||||
ModifyTagAttributeRequest::ModifyTagAttributeRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "ModifyTagAttribute")
|
||||
{}
|
||||
|
||||
ModifyTagAttributeRequest::~ModifyTagAttributeRequest()
|
||||
{}
|
||||
|
||||
long ModifyTagAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long ModifyTagAttributeRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ModifyTagAttributeRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getDescription()const
|
||||
{
|
||||
return description_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ModifyTagAttributeRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getTagId()const
|
||||
{
|
||||
return tagId_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setTagId(const std::string& tagId)
|
||||
{
|
||||
tagId_ = tagId;
|
||||
setParameter("TagId", tagId);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ModifyTagAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool ModifyTagAttributeRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyTagAttributeRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyTagAttributeRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string ModifyTagAttributeRequest::getName()const
|
||||
{
|
||||
return name_;
|
||||
}
|
||||
|
||||
void ModifyTagAttributeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
65
ivision/src/model/ModifyTagAttributeResult.cc
Normal file
65
ivision/src/model/ModifyTagAttributeResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/ModifyTagAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
ModifyTagAttributeResult::ModifyTagAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyTagAttributeResult::ModifyTagAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyTagAttributeResult::~ModifyTagAttributeResult()
|
||||
{}
|
||||
|
||||
void ModifyTagAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto tagNode = value["Tag"];
|
||||
if(!tagNode["ProjectId"].isNull())
|
||||
tag_.projectId = tagNode["ProjectId"].asString();
|
||||
if(!tagNode["TagId"].isNull())
|
||||
tag_.tagId = tagNode["TagId"].asString();
|
||||
if(!tagNode["TagName"].isNull())
|
||||
tag_.tagName = tagNode["TagName"].asString();
|
||||
if(!tagNode["Description"].isNull())
|
||||
tag_.description = tagNode["Description"].asString();
|
||||
if(!tagNode["Count"].isNull())
|
||||
tag_.count = std::stoi(tagNode["Count"].asString());
|
||||
if(!tagNode["CreationTime"].isNull())
|
||||
tag_.creationTime = tagNode["CreationTime"].asString();
|
||||
if(!tagNode["Status"].isNull())
|
||||
tag_.status = tagNode["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
ModifyTagAttributeResult::Tag ModifyTagAttributeResult::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/ModifyTrainDataRegionTagAttributeRequest.cc
Normal file
313
ivision/src/model/ModifyTrainDataRegionTagAttributeRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::ModifyTrainDataRegionTagAttributeRequest;
|
||||
|
||||
ModifyTrainDataRegionTagAttributeRequest::ModifyTrainDataRegionTagAttributeRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "ModifyTrainDataRegionTagAttribute")
|
||||
{}
|
||||
|
||||
ModifyTrainDataRegionTagAttributeRequest::~ModifyTrainDataRegionTagAttributeRequest()
|
||||
{}
|
||||
|
||||
long ModifyTrainDataRegionTagAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long ModifyTrainDataRegionTagAttributeRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ModifyTrainDataRegionTagAttributeRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ModifyTrainDataRegionTagAttributeRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getTagItems()const
|
||||
{
|
||||
return tagItems_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setTagItems(const std::string& tagItems)
|
||||
{
|
||||
tagItems_ = tagItems;
|
||||
setParameter("TagItems", tagItems);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ModifyTrainDataRegionTagAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool ModifyTrainDataRegionTagAttributeRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyTrainDataRegionTagAttributeRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyTrainDataRegionTagAttributeRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataRegionTagAttributeRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
86
ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc
Normal file
86
ivision/src/model/ModifyTrainDataRegionTagAttributeResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/ModifyTrainDataRegionTagAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
ModifyTrainDataRegionTagAttributeResult::ModifyTrainDataRegionTagAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyTrainDataRegionTagAttributeResult::ModifyTrainDataRegionTagAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyTrainDataRegionTagAttributeResult::~ModifyTrainDataRegionTagAttributeResult()
|
||||
{}
|
||||
|
||||
void ModifyTrainDataRegionTagAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto trainDataNode = value["TrainData"];
|
||||
if(!trainDataNode["ProjectId"].isNull())
|
||||
trainData_.projectId = trainDataNode["ProjectId"].asString();
|
||||
if(!trainDataNode["IterationId"].isNull())
|
||||
trainData_.iterationId = trainDataNode["IterationId"].asString();
|
||||
if(!trainDataNode["DataId"].isNull())
|
||||
trainData_.dataId = trainDataNode["DataId"].asString();
|
||||
if(!trainDataNode["DataName"].isNull())
|
||||
trainData_.dataName = trainDataNode["DataName"].asString();
|
||||
if(!trainDataNode["DataUrl"].isNull())
|
||||
trainData_.dataUrl = trainDataNode["DataUrl"].asString();
|
||||
if(!trainDataNode["CreationTime"].isNull())
|
||||
trainData_.creationTime = trainDataNode["CreationTime"].asString();
|
||||
if(!trainDataNode["Status"].isNull())
|
||||
trainData_.status = trainDataNode["Status"].asString();
|
||||
if(!trainDataNode["TagStatus"].isNull())
|
||||
trainData_.tagStatus = trainDataNode["TagStatus"].asString();
|
||||
auto allTagItems = value["TagItems"]["TagItem"];
|
||||
for (auto value : allTagItems)
|
||||
{
|
||||
TrainData::TagItem tagItemObject;
|
||||
if(!value["TagId"].isNull())
|
||||
tagItemObject.tagId = value["TagId"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
tagItemObject.regionType = value["RegionType"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
tagItemObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
tagItemObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
tagItemObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
tagItemObject.region.height = regionNode["Height"].asString();
|
||||
trainData_.tagItems.push_back(tagItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ModifyTrainDataRegionTagAttributeResult::TrainData ModifyTrainDataRegionTagAttributeResult::getTrainData()const
|
||||
{
|
||||
return trainData_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/ModifyTrainDataTagAttributeRequest.cc
Normal file
313
ivision/src/model/ModifyTrainDataTagAttributeRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/ModifyTrainDataTagAttributeRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::ModifyTrainDataTagAttributeRequest;
|
||||
|
||||
ModifyTrainDataTagAttributeRequest::ModifyTrainDataTagAttributeRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "ModifyTrainDataTagAttribute")
|
||||
{}
|
||||
|
||||
ModifyTrainDataTagAttributeRequest::~ModifyTrainDataTagAttributeRequest()
|
||||
{}
|
||||
|
||||
long ModifyTrainDataTagAttributeRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long ModifyTrainDataTagAttributeRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool ModifyTrainDataTagAttributeRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long ModifyTrainDataTagAttributeRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getTagItems()const
|
||||
{
|
||||
return tagItems_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setTagItems(const std::string& tagItems)
|
||||
{
|
||||
tagItems_ = tagItems;
|
||||
setParameter("TagItems", tagItems);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long ModifyTrainDataTagAttributeRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool ModifyTrainDataTagAttributeRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyTrainDataTagAttributeRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool ModifyTrainDataTagAttributeRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getDataId()const
|
||||
{
|
||||
return dataId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setDataId(const std::string& dataId)
|
||||
{
|
||||
dataId_ = dataId;
|
||||
setParameter("DataId", dataId);
|
||||
}
|
||||
|
||||
std::string ModifyTrainDataTagAttributeRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void ModifyTrainDataTagAttributeRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
86
ivision/src/model/ModifyTrainDataTagAttributeResult.cc
Normal file
86
ivision/src/model/ModifyTrainDataTagAttributeResult.cc
Normal file
@@ -0,0 +1,86 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/ModifyTrainDataTagAttributeResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
ModifyTrainDataTagAttributeResult::ModifyTrainDataTagAttributeResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ModifyTrainDataTagAttributeResult::ModifyTrainDataTagAttributeResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ModifyTrainDataTagAttributeResult::~ModifyTrainDataTagAttributeResult()
|
||||
{}
|
||||
|
||||
void ModifyTrainDataTagAttributeResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto trainDataNode = value["TrainData"];
|
||||
if(!trainDataNode["ProjectId"].isNull())
|
||||
trainData_.projectId = trainDataNode["ProjectId"].asString();
|
||||
if(!trainDataNode["IterationId"].isNull())
|
||||
trainData_.iterationId = trainDataNode["IterationId"].asString();
|
||||
if(!trainDataNode["DataId"].isNull())
|
||||
trainData_.dataId = trainDataNode["DataId"].asString();
|
||||
if(!trainDataNode["DataName"].isNull())
|
||||
trainData_.dataName = trainDataNode["DataName"].asString();
|
||||
if(!trainDataNode["DataUrl"].isNull())
|
||||
trainData_.dataUrl = trainDataNode["DataUrl"].asString();
|
||||
if(!trainDataNode["CreationTime"].isNull())
|
||||
trainData_.creationTime = trainDataNode["CreationTime"].asString();
|
||||
if(!trainDataNode["Status"].isNull())
|
||||
trainData_.status = trainDataNode["Status"].asString();
|
||||
if(!trainDataNode["TagStatus"].isNull())
|
||||
trainData_.tagStatus = trainDataNode["TagStatus"].asString();
|
||||
auto allTagItems = value["TagItems"]["TagItem"];
|
||||
for (auto value : allTagItems)
|
||||
{
|
||||
TrainData::TagItem tagItemObject;
|
||||
if(!value["TagId"].isNull())
|
||||
tagItemObject.tagId = value["TagId"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
tagItemObject.regionType = value["RegionType"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
tagItemObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
tagItemObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
tagItemObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
tagItemObject.region.height = regionNode["Height"].asString();
|
||||
trainData_.tagItems.push_back(tagItemObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
ModifyTrainDataTagAttributeResult::TrainData ModifyTrainDataTagAttributeResult::getTrainData()const
|
||||
{
|
||||
return trainData_;
|
||||
}
|
||||
|
||||
313
ivision/src/model/PredictImageRequest.cc
Normal file
313
ivision/src/model/PredictImageRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/PredictImageRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::PredictImageRequest;
|
||||
|
||||
PredictImageRequest::PredictImageRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "PredictImage")
|
||||
{}
|
||||
|
||||
PredictImageRequest::~PredictImageRequest()
|
||||
{}
|
||||
|
||||
long PredictImageRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long PredictImageRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool PredictImageRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long PredictImageRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long PredictImageRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool PredictImageRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool PredictImageRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool PredictImageRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getIterationId()const
|
||||
{
|
||||
return iterationId_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setIterationId(const std::string& iterationId)
|
||||
{
|
||||
iterationId_ = iterationId;
|
||||
setParameter("IterationId", iterationId);
|
||||
}
|
||||
|
||||
std::string PredictImageRequest::getDataUrls()const
|
||||
{
|
||||
return dataUrls_;
|
||||
}
|
||||
|
||||
void PredictImageRequest::setDataUrls(const std::string& dataUrls)
|
||||
{
|
||||
dataUrls_ = dataUrls;
|
||||
setParameter("DataUrls", dataUrls);
|
||||
}
|
||||
|
||||
101
ivision/src/model/PredictImageResult.cc
Normal file
101
ivision/src/model/PredictImageResult.cc
Normal file
@@ -0,0 +1,101 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/PredictImageResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
PredictImageResult::PredictImageResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
PredictImageResult::PredictImageResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
PredictImageResult::~PredictImageResult()
|
||||
{}
|
||||
|
||||
void PredictImageResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPredictDatas = value["PredictDatas"]["PredictData"];
|
||||
for (auto value : allPredictDatas)
|
||||
{
|
||||
PredictData predictDatasObject;
|
||||
if(!value["ProjectId"].isNull())
|
||||
predictDatasObject.projectId = value["ProjectId"].asString();
|
||||
if(!value["IterationId"].isNull())
|
||||
predictDatasObject.iterationId = value["IterationId"].asString();
|
||||
if(!value["DataId"].isNull())
|
||||
predictDatasObject.dataId = value["DataId"].asString();
|
||||
if(!value["DataName"].isNull())
|
||||
predictDatasObject.dataName = value["DataName"].asString();
|
||||
if(!value["DataUrl"].isNull())
|
||||
predictDatasObject.dataUrl = value["DataUrl"].asString();
|
||||
if(!value["CreationTime"].isNull())
|
||||
predictDatasObject.creationTime = value["CreationTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
predictDatasObject.status = value["Status"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
predictDatasObject.errorCode = value["ErrorCode"].asString();
|
||||
if(!value["ErrorMessage"].isNull())
|
||||
predictDatasObject.errorMessage = value["ErrorMessage"].asString();
|
||||
auto allPredictionResults = value["PredictionResults"]["PredictionResult"];
|
||||
for (auto value : allPredictionResults)
|
||||
{
|
||||
PredictData::PredictionResult predictionResultsObject;
|
||||
if(!value["TagId"].isNull())
|
||||
predictionResultsObject.tagId = value["TagId"].asString();
|
||||
if(!value["TagName"].isNull())
|
||||
predictionResultsObject.tagName = value["TagName"].asString();
|
||||
if(!value["Probability"].isNull())
|
||||
predictionResultsObject.probability = value["Probability"].asString();
|
||||
if(!value["Overlap"].isNull())
|
||||
predictionResultsObject.overlap = value["Overlap"].asString();
|
||||
if(!value["RegionType"].isNull())
|
||||
predictionResultsObject.regionType = value["RegionType"].asString();
|
||||
if(!value["Properties"].isNull())
|
||||
predictionResultsObject.properties = value["Properties"].asString();
|
||||
auto regionNode = value["Region"];
|
||||
if(!regionNode["Left"].isNull())
|
||||
predictionResultsObject.region.left = regionNode["Left"].asString();
|
||||
if(!regionNode["Top"].isNull())
|
||||
predictionResultsObject.region.top = regionNode["Top"].asString();
|
||||
if(!regionNode["Width"].isNull())
|
||||
predictionResultsObject.region.width = regionNode["Width"].asString();
|
||||
if(!regionNode["Height"].isNull())
|
||||
predictionResultsObject.region.height = regionNode["Height"].asString();
|
||||
predictDatasObject.predictionResults.push_back(predictionResultsObject);
|
||||
}
|
||||
predictDatas_.push_back(predictDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<PredictImageResult::PredictData> PredictImageResult::getPredictDatas()const
|
||||
{
|
||||
return predictDatas_;
|
||||
}
|
||||
|
||||
291
ivision/src/model/StartStreamPredictRequest.cc
Normal file
291
ivision/src/model/StartStreamPredictRequest.cc
Normal file
@@ -0,0 +1,291 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/StartStreamPredictRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::StartStreamPredictRequest;
|
||||
|
||||
StartStreamPredictRequest::StartStreamPredictRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "StartStreamPredict")
|
||||
{}
|
||||
|
||||
StartStreamPredictRequest::~StartStreamPredictRequest()
|
||||
{}
|
||||
|
||||
long StartStreamPredictRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long StartStreamPredictRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool StartStreamPredictRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long StartStreamPredictRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long StartStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool StartStreamPredictRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool StartStreamPredictRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool StartStreamPredictRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StartStreamPredictRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void StartStreamPredictRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
52
ivision/src/model/StartStreamPredictResult.cc
Normal file
52
ivision/src/model/StartStreamPredictResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/StartStreamPredictResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
StartStreamPredictResult::StartStreamPredictResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartStreamPredictResult::StartStreamPredictResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartStreamPredictResult::~StartStreamPredictResult()
|
||||
{}
|
||||
|
||||
void StartStreamPredictResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PredictId"].isNull())
|
||||
predictId_ = value["PredictId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StartStreamPredictResult::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
291
ivision/src/model/StopStreamPredictRequest.cc
Normal file
291
ivision/src/model/StopStreamPredictRequest.cc
Normal file
@@ -0,0 +1,291 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/StopStreamPredictRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::StopStreamPredictRequest;
|
||||
|
||||
StopStreamPredictRequest::StopStreamPredictRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "StopStreamPredict")
|
||||
{}
|
||||
|
||||
StopStreamPredictRequest::~StopStreamPredictRequest()
|
||||
{}
|
||||
|
||||
long StopStreamPredictRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long StopStreamPredictRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool StopStreamPredictRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setPredictId(const std::string& predictId)
|
||||
{
|
||||
predictId_ = predictId;
|
||||
setParameter("PredictId", predictId);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long StopStreamPredictRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long StopStreamPredictRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool StopStreamPredictRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool StopStreamPredictRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool StopStreamPredictRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string StopStreamPredictRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void StopStreamPredictRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
52
ivision/src/model/StopStreamPredictResult.cc
Normal file
52
ivision/src/model/StopStreamPredictResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/StopStreamPredictResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
StopStreamPredictResult::StopStreamPredictResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopStreamPredictResult::StopStreamPredictResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopStreamPredictResult::~StopStreamPredictResult()
|
||||
{}
|
||||
|
||||
void StopStreamPredictResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["PredictId"].isNull())
|
||||
predictId_ = value["PredictId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string StopStreamPredictResult::getPredictId()const
|
||||
{
|
||||
return predictId_;
|
||||
}
|
||||
|
||||
291
ivision/src/model/TrainProjectRequest.cc
Normal file
291
ivision/src/model/TrainProjectRequest.cc
Normal file
@@ -0,0 +1,291 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/TrainProjectRequest.h>
|
||||
|
||||
using AlibabaCloud::Ivision::Model::TrainProjectRequest;
|
||||
|
||||
TrainProjectRequest::TrainProjectRequest() :
|
||||
RpcServiceRequest("ivision", "2019-03-08", "TrainProject")
|
||||
{}
|
||||
|
||||
TrainProjectRequest::~TrainProjectRequest()
|
||||
{}
|
||||
|
||||
long TrainProjectRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
long TrainProjectRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool TrainProjectRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", proxy_original_security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getProjectId()const
|
||||
{
|
||||
return projectId_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setProjectId(const std::string& projectId)
|
||||
{
|
||||
projectId_ = projectId;
|
||||
setParameter("ProjectId", projectId);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long TrainProjectRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getShowLog()const
|
||||
{
|
||||
return showLog_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setShowLog(const std::string& showLog)
|
||||
{
|
||||
showLog_ = showLog;
|
||||
setParameter("ShowLog", showLog);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getPopProduct()const
|
||||
{
|
||||
return popProduct_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setPopProduct(const std::string& popProduct)
|
||||
{
|
||||
popProduct_ = popProduct;
|
||||
setParameter("PopProduct", popProduct);
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long TrainProjectRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool TrainProjectRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", proxy_trust_transport_info ? "true" : "false");
|
||||
}
|
||||
|
||||
bool TrainProjectRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", ak_mfa_present ? "true" : "false");
|
||||
}
|
||||
|
||||
bool TrainProjectRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", security_transport ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string TrainProjectRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void TrainProjectRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
52
ivision/src/model/TrainProjectResult.cc
Normal file
52
ivision/src/model/TrainProjectResult.cc
Normal file
@@ -0,0 +1,52 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/ivision/model/TrainProjectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Ivision;
|
||||
using namespace AlibabaCloud::Ivision::Model;
|
||||
|
||||
TrainProjectResult::TrainProjectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
TrainProjectResult::TrainProjectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
TrainProjectResult::~TrainProjectResult()
|
||||
{}
|
||||
|
||||
void TrainProjectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IterationId"].isNull())
|
||||
iterationId_ = value["IterationId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string TrainProjectResult::getIterationId()const
|
||||
{
|
||||
return iterationId_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user