Supported ExternalId IMM.

This commit is contained in:
sdk-team
2019-10-22 10:07:21 +08:00
parent 63f8b47b8d
commit c9f3f1182e
148 changed files with 183 additions and 11244 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,49 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/CreateFaceSetRequest.h>
using AlibabaCloud::Imm::Model::CreateFaceSetRequest;
CreateFaceSetRequest::CreateFaceSetRequest() :
RpcServiceRequest("imm", "2017-09-06", "CreateFaceSet")
{}
CreateFaceSetRequest::~CreateFaceSetRequest()
{}
std::string CreateFaceSetRequest::getProject()const
{
return project_;
}
void CreateFaceSetRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string CreateFaceSetRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateFaceSetRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -1,104 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/CreatePornBatchDetectJobRequest.h>
using AlibabaCloud::Imm::Model::CreatePornBatchDetectJobRequest;
CreatePornBatchDetectJobRequest::CreatePornBatchDetectJobRequest() :
RpcServiceRequest("imm", "2017-09-06", "CreatePornBatchDetectJob")
{}
CreatePornBatchDetectJobRequest::~CreatePornBatchDetectJobRequest()
{}
std::string CreatePornBatchDetectJobRequest::getProject()const
{
return project_;
}
void CreatePornBatchDetectJobRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string CreatePornBatchDetectJobRequest::getExternalID()const
{
return externalID_;
}
void CreatePornBatchDetectJobRequest::setExternalID(const std::string& externalID)
{
externalID_ = externalID;
setCoreParameter("ExternalID", externalID);
}
std::string CreatePornBatchDetectJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreatePornBatchDetectJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreatePornBatchDetectJobRequest::getNotifyEndpoint()const
{
return notifyEndpoint_;
}
void CreatePornBatchDetectJobRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
{
notifyEndpoint_ = notifyEndpoint;
setCoreParameter("NotifyEndpoint", notifyEndpoint);
}
std::string CreatePornBatchDetectJobRequest::getNotifyTopicName()const
{
return notifyTopicName_;
}
void CreatePornBatchDetectJobRequest::setNotifyTopicName(const std::string& notifyTopicName)
{
notifyTopicName_ = notifyTopicName;
setCoreParameter("NotifyTopicName", notifyTopicName);
}
std::string CreatePornBatchDetectJobRequest::getSrcUri()const
{
return srcUri_;
}
void CreatePornBatchDetectJobRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setCoreParameter("SrcUri", srcUri);
}
std::string CreatePornBatchDetectJobRequest::getTgtUri()const
{
return tgtUri_;
}
void CreatePornBatchDetectJobRequest::setTgtUri(const std::string& tgtUri)
{
tgtUri_ = tgtUri;
setCoreParameter("TgtUri", tgtUri);
}

View File

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

View File

@@ -1,93 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/CreateTagJobRequest.h>
using AlibabaCloud::Imm::Model::CreateTagJobRequest;
CreateTagJobRequest::CreateTagJobRequest() :
RpcServiceRequest("imm", "2017-09-06", "CreateTagJob")
{}
CreateTagJobRequest::~CreateTagJobRequest()
{}
std::string CreateTagJobRequest::getProject()const
{
return project_;
}
void CreateTagJobRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string CreateTagJobRequest::getExternalID()const
{
return externalID_;
}
void CreateTagJobRequest::setExternalID(const std::string& externalID)
{
externalID_ = externalID;
setCoreParameter("ExternalID", externalID);
}
std::string CreateTagJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateTagJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreateTagJobRequest::getNotifyEndpoint()const
{
return notifyEndpoint_;
}
void CreateTagJobRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
{
notifyEndpoint_ = notifyEndpoint;
setCoreParameter("NotifyEndpoint", notifyEndpoint);
}
std::string CreateTagJobRequest::getNotifyTopicName()const
{
return notifyTopicName_;
}
void CreateTagJobRequest::setNotifyTopicName(const std::string& notifyTopicName)
{
notifyTopicName_ = notifyTopicName;
setCoreParameter("NotifyTopicName", notifyTopicName);
}
std::string CreateTagJobRequest::getSrcUri()const
{
return srcUri_;
}
void CreateTagJobRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setCoreParameter("SrcUri", srcUri);
}

View File

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

View File

@@ -1,49 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/CreateTagSetRequest.h>
using AlibabaCloud::Imm::Model::CreateTagSetRequest;
CreateTagSetRequest::CreateTagSetRequest() :
RpcServiceRequest("imm", "2017-09-06", "CreateTagSet")
{}
CreateTagSetRequest::~CreateTagSetRequest()
{}
std::string CreateTagSetRequest::getProject()const
{
return project_;
}
void CreateTagSetRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string CreateTagSetRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateTagSetRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -1,71 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DeleteFaceJobRequest.h>
using AlibabaCloud::Imm::Model::DeleteFaceJobRequest;
DeleteFaceJobRequest::DeleteFaceJobRequest() :
RpcServiceRequest("imm", "2017-09-06", "DeleteFaceJob")
{}
DeleteFaceJobRequest::~DeleteFaceJobRequest()
{}
std::string DeleteFaceJobRequest::getProject()const
{
return project_;
}
void DeleteFaceJobRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DeleteFaceJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteFaceJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteFaceJobRequest::getJobId()const
{
return jobId_;
}
void DeleteFaceJobRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setCoreParameter("JobId", jobId);
}
std::string DeleteFaceJobRequest::getClearIndexData()const
{
return clearIndexData_;
}
void DeleteFaceJobRequest::setClearIndexData(const std::string& clearIndexData)
{
clearIndexData_ = clearIndexData;
setCoreParameter("ClearIndexData", clearIndexData);
}

View File

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

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DeleteFaceSearchGroupRequest.h>
using AlibabaCloud::Imm::Model::DeleteFaceSearchGroupRequest;
DeleteFaceSearchGroupRequest::DeleteFaceSearchGroupRequest() :
RpcServiceRequest("imm", "2017-09-06", "DeleteFaceSearchGroup")
{}
DeleteFaceSearchGroupRequest::~DeleteFaceSearchGroupRequest()
{}
std::string DeleteFaceSearchGroupRequest::getProject()const
{
return project_;
}
void DeleteFaceSearchGroupRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DeleteFaceSearchGroupRequest::getGroupName()const
{
return groupName_;
}
void DeleteFaceSearchGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string DeleteFaceSearchGroupRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteFaceSearchGroupRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}

View File

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

View File

@@ -1,93 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DeleteFaceSearchImageByIdRequest.h>
using AlibabaCloud::Imm::Model::DeleteFaceSearchImageByIdRequest;
DeleteFaceSearchImageByIdRequest::DeleteFaceSearchImageByIdRequest() :
RpcServiceRequest("imm", "2017-09-06", "DeleteFaceSearchImageById")
{}
DeleteFaceSearchImageByIdRequest::~DeleteFaceSearchImageByIdRequest()
{}
std::string DeleteFaceSearchImageByIdRequest::getImageId()const
{
return imageId_;
}
void DeleteFaceSearchImageByIdRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setCoreParameter("ImageId", imageId);
}
std::string DeleteFaceSearchImageByIdRequest::getProject()const
{
return project_;
}
void DeleteFaceSearchImageByIdRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DeleteFaceSearchImageByIdRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteFaceSearchImageByIdRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteFaceSearchImageByIdRequest::getGroupName()const
{
return groupName_;
}
void DeleteFaceSearchImageByIdRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string DeleteFaceSearchImageByIdRequest::getSrcUri()const
{
return srcUri_;
}
void DeleteFaceSearchImageByIdRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setCoreParameter("SrcUri", srcUri);
}
std::string DeleteFaceSearchImageByIdRequest::getUser()const
{
return user_;
}
void DeleteFaceSearchImageByIdRequest::setUser(const std::string& user)
{
user_ = user;
setCoreParameter("User", user);
}

View File

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

View File

@@ -1,71 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DeleteFaceSearchUserRequest.h>
using AlibabaCloud::Imm::Model::DeleteFaceSearchUserRequest;
DeleteFaceSearchUserRequest::DeleteFaceSearchUserRequest() :
RpcServiceRequest("imm", "2017-09-06", "DeleteFaceSearchUser")
{}
DeleteFaceSearchUserRequest::~DeleteFaceSearchUserRequest()
{}
std::string DeleteFaceSearchUserRequest::getProject()const
{
return project_;
}
void DeleteFaceSearchUserRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DeleteFaceSearchUserRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteFaceSearchUserRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteFaceSearchUserRequest::getGroupName()const
{
return groupName_;
}
void DeleteFaceSearchUserRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string DeleteFaceSearchUserRequest::getUser()const
{
return user_;
}
void DeleteFaceSearchUserRequest::setUser(const std::string& user)
{
user_ = user;
setCoreParameter("User", user);
}

View File

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

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DeletePhotoProcessTaskRequest.h>
using AlibabaCloud::Imm::Model::DeletePhotoProcessTaskRequest;
DeletePhotoProcessTaskRequest::DeletePhotoProcessTaskRequest() :
RpcServiceRequest("imm", "2017-09-06", "DeletePhotoProcessTask")
{}
DeletePhotoProcessTaskRequest::~DeletePhotoProcessTaskRequest()
{}
std::string DeletePhotoProcessTaskRequest::getProject()const
{
return project_;
}
void DeletePhotoProcessTaskRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DeletePhotoProcessTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeletePhotoProcessTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeletePhotoProcessTaskRequest::getTaskId()const
{
return taskId_;
}
void DeletePhotoProcessTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setCoreParameter("TaskId", taskId);
}

View File

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

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h>
using AlibabaCloud::Imm::Model::DeletePornBatchDetectJobRequest;
DeletePornBatchDetectJobRequest::DeletePornBatchDetectJobRequest() :
RpcServiceRequest("imm", "2017-09-06", "DeletePornBatchDetectJob")
{}
DeletePornBatchDetectJobRequest::~DeletePornBatchDetectJobRequest()
{}
std::string DeletePornBatchDetectJobRequest::getProject()const
{
return project_;
}
void DeletePornBatchDetectJobRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DeletePornBatchDetectJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeletePornBatchDetectJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeletePornBatchDetectJobRequest::getJobId()const
{
return jobId_;
}
void DeletePornBatchDetectJobRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setCoreParameter("JobId", jobId);
}

View File

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

View File

@@ -1,82 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DeleteTagByNameRequest.h>
using AlibabaCloud::Imm::Model::DeleteTagByNameRequest;
DeleteTagByNameRequest::DeleteTagByNameRequest() :
RpcServiceRequest("imm", "2017-09-06", "DeleteTagByName")
{}
DeleteTagByNameRequest::~DeleteTagByNameRequest()
{}
std::string DeleteTagByNameRequest::getProject()const
{
return project_;
}
void DeleteTagByNameRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DeleteTagByNameRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteTagByNameRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteTagByNameRequest::getTagName()const
{
return tagName_;
}
void DeleteTagByNameRequest::setTagName(const std::string& tagName)
{
tagName_ = tagName;
setCoreParameter("TagName", tagName);
}
std::string DeleteTagByNameRequest::getSetId()const
{
return setId_;
}
void DeleteTagByNameRequest::setSetId(const std::string& setId)
{
setId_ = setId;
setCoreParameter("SetId", setId);
}
std::string DeleteTagByNameRequest::getSrcUri()const
{
return srcUri_;
}
void DeleteTagByNameRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setCoreParameter("SrcUri", srcUri);
}

View File

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

View File

@@ -1,71 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DeleteTagByUrlRequest.h>
using AlibabaCloud::Imm::Model::DeleteTagByUrlRequest;
DeleteTagByUrlRequest::DeleteTagByUrlRequest() :
RpcServiceRequest("imm", "2017-09-06", "DeleteTagByUrl")
{}
DeleteTagByUrlRequest::~DeleteTagByUrlRequest()
{}
std::string DeleteTagByUrlRequest::getProject()const
{
return project_;
}
void DeleteTagByUrlRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DeleteTagByUrlRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteTagByUrlRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteTagByUrlRequest::getSetId()const
{
return setId_;
}
void DeleteTagByUrlRequest::setSetId(const std::string& setId)
{
setId_ = setId;
setCoreParameter("SetId", setId);
}
std::string DeleteTagByUrlRequest::getSrcUri()const
{
return srcUri_;
}
void DeleteTagByUrlRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setCoreParameter("SrcUri", srcUri);
}

View File

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

View File

@@ -1,71 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DeleteTagJobRequest.h>
using AlibabaCloud::Imm::Model::DeleteTagJobRequest;
DeleteTagJobRequest::DeleteTagJobRequest() :
RpcServiceRequest("imm", "2017-09-06", "DeleteTagJob")
{}
DeleteTagJobRequest::~DeleteTagJobRequest()
{}
std::string DeleteTagJobRequest::getProject()const
{
return project_;
}
void DeleteTagJobRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DeleteTagJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteTagJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteTagJobRequest::getJobId()const
{
return jobId_;
}
void DeleteTagJobRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setCoreParameter("JobId", jobId);
}
std::string DeleteTagJobRequest::getClearIndexData()const
{
return clearIndexData_;
}
void DeleteTagJobRequest::setClearIndexData(const std::string& clearIndexData)
{
clearIndexData_ = clearIndexData;
setCoreParameter("ClearIndexData", clearIndexData);
}

View File

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

View File

@@ -1,82 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DeleteTagSetRequest.h>
using AlibabaCloud::Imm::Model::DeleteTagSetRequest;
DeleteTagSetRequest::DeleteTagSetRequest() :
RpcServiceRequest("imm", "2017-09-06", "DeleteTagSet")
{}
DeleteTagSetRequest::~DeleteTagSetRequest()
{}
std::string DeleteTagSetRequest::getProject()const
{
return project_;
}
void DeleteTagSetRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DeleteTagSetRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteTagSetRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteTagSetRequest::getLazyMode()const
{
return lazyMode_;
}
void DeleteTagSetRequest::setLazyMode(const std::string& lazyMode)
{
lazyMode_ = lazyMode;
setCoreParameter("LazyMode", lazyMode);
}
std::string DeleteTagSetRequest::getCheckEmpty()const
{
return checkEmpty_;
}
void DeleteTagSetRequest::setCheckEmpty(const std::string& checkEmpty)
{
checkEmpty_ = checkEmpty;
setCoreParameter("CheckEmpty", checkEmpty);
}
std::string DeleteTagSetRequest::getSetId()const
{
return setId_;
}
void DeleteTagSetRequest::setSetId(const std::string& setId)
{
setId_ = setId;
setCoreParameter("SetId", setId);
}

View File

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

View File

@@ -14,47 +14,47 @@
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetFaceSearchGroupRequest.h>
#include <alibabacloud/imm/model/DetectImageQRCodesRequest.h>
using AlibabaCloud::Imm::Model::GetFaceSearchGroupRequest;
using AlibabaCloud::Imm::Model::DetectImageQRCodesRequest;
GetFaceSearchGroupRequest::GetFaceSearchGroupRequest() :
RpcServiceRequest("imm", "2017-09-06", "GetFaceSearchGroup")
DetectImageQRCodesRequest::DetectImageQRCodesRequest() :
RpcServiceRequest("imm", "2017-09-06", "DetectImageQRCodes")
{}
GetFaceSearchGroupRequest::~GetFaceSearchGroupRequest()
DetectImageQRCodesRequest::~DetectImageQRCodesRequest()
{}
std::string GetFaceSearchGroupRequest::getProject()const
std::string DetectImageQRCodesRequest::getProject()const
{
return project_;
}
void GetFaceSearchGroupRequest::setProject(const std::string& project)
void DetectImageQRCodesRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string GetFaceSearchGroupRequest::getGroupName()const
{
return groupName_;
}
void GetFaceSearchGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string GetFaceSearchGroupRequest::getAccessKeyId()const
std::string DetectImageQRCodesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetFaceSearchGroupRequest::setAccessKeyId(const std::string& accessKeyId)
void DetectImageQRCodesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DetectImageQRCodesRequest::getImageUri()const
{
return imageUri_;
}
void DetectImageQRCodesRequest::setImageUri(const std::string& imageUri)
{
imageUri_ = imageUri;
setCoreParameter("ImageUri", imageUri);
}

View File

@@ -0,0 +1,73 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DetectImageQRCodesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
DetectImageQRCodesResult::DetectImageQRCodesResult() :
ServiceResult()
{}
DetectImageQRCodesResult::DetectImageQRCodesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectImageQRCodesResult::~DetectImageQRCodesResult()
{}
void DetectImageQRCodesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allQRCodesNode = value["QRCodes"]["QRCodesItem"];
for (auto valueQRCodesQRCodesItem : allQRCodesNode)
{
QRCodesItem qRCodesObject;
if(!valueQRCodesQRCodesItem["Content"].isNull())
qRCodesObject.content = valueQRCodesQRCodesItem["Content"].asString();
auto qRCodeBoundaryNode = value["QRCodeBoundary"];
if(!qRCodeBoundaryNode["Top"].isNull())
qRCodesObject.qRCodeBoundary.top = std::stoi(qRCodeBoundaryNode["Top"].asString());
if(!qRCodeBoundaryNode["Left"].isNull())
qRCodesObject.qRCodeBoundary.left = std::stoi(qRCodeBoundaryNode["Left"].asString());
if(!qRCodeBoundaryNode["Width"].isNull())
qRCodesObject.qRCodeBoundary.width = std::stoi(qRCodeBoundaryNode["Width"].asString());
if(!qRCodeBoundaryNode["Height"].isNull())
qRCodesObject.qRCodeBoundary.height = std::stoi(qRCodeBoundaryNode["Height"].asString());
qRCodes_.push_back(qRCodesObject);
}
if(!value["ImageUri"].isNull())
imageUri_ = value["ImageUri"].asString();
}
std::string DetectImageQRCodesResult::getImageUri()const
{
return imageUri_;
}
std::vector<DetectImageQRCodesResult::QRCodesItem> DetectImageQRCodesResult::getQRCodes()const
{
return qRCodes_;
}

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DetectLogoRequest.h>
using AlibabaCloud::Imm::Model::DetectLogoRequest;
DetectLogoRequest::DetectLogoRequest() :
RpcServiceRequest("imm", "2017-09-06", "DetectLogo")
{}
DetectLogoRequest::~DetectLogoRequest()
{}
std::string DetectLogoRequest::getProject()const
{
return project_;
}
void DetectLogoRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DetectLogoRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DetectLogoRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DetectLogoRequest::getSrcUris()const
{
return srcUris_;
}
void DetectLogoRequest::setSrcUris(const std::string& srcUris)
{
srcUris_ = srcUris;
setCoreParameter("SrcUris", srcUris);
}

View File

@@ -1,101 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DetectLogoResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
DetectLogoResult::DetectLogoResult() :
ServiceResult()
{}
DetectLogoResult::DetectLogoResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectLogoResult::~DetectLogoResult()
{}
void DetectLogoResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSuccessDetailsNode = value["SuccessDetails"]["SuccessDetailsItem"];
for (auto valueSuccessDetailsSuccessDetailsItem : allSuccessDetailsNode)
{
SuccessDetailsItem successDetailsObject;
if(!valueSuccessDetailsSuccessDetailsItem["SrcUri"].isNull())
successDetailsObject.srcUri = valueSuccessDetailsSuccessDetailsItem["SrcUri"].asString();
if(!valueSuccessDetailsSuccessDetailsItem["Time"].isNull())
successDetailsObject.time = valueSuccessDetailsSuccessDetailsItem["Time"].asString();
if(!valueSuccessDetailsSuccessDetailsItem["GetImageTime"].isNull())
successDetailsObject.getImageTime = valueSuccessDetailsSuccessDetailsItem["GetImageTime"].asString();
if(!valueSuccessDetailsSuccessDetailsItem["DetectTime"].isNull())
successDetailsObject.detectTime = valueSuccessDetailsSuccessDetailsItem["DetectTime"].asString();
auto allLogoBoxDetailNode = allSuccessDetailsNode["LogoBoxDetail"]["LogoBoxDetailItem"];
for (auto allSuccessDetailsNodeLogoBoxDetailLogoBoxDetailItem : allLogoBoxDetailNode)
{
SuccessDetailsItem::LogoBoxDetailItem logoBoxDetailObject;
if(!allSuccessDetailsNodeLogoBoxDetailLogoBoxDetailItem["PUID"].isNull())
logoBoxDetailObject.pUID = allSuccessDetailsNodeLogoBoxDetailLogoBoxDetailItem["PUID"].asString();
if(!allSuccessDetailsNodeLogoBoxDetailLogoBoxDetailItem["Type"].isNull())
logoBoxDetailObject.type = allSuccessDetailsNodeLogoBoxDetailLogoBoxDetailItem["Type"].asString();
if(!allSuccessDetailsNodeLogoBoxDetailLogoBoxDetailItem["Score"].isNull())
logoBoxDetailObject.score = std::stof(allSuccessDetailsNodeLogoBoxDetailLogoBoxDetailItem["Score"].asString());
auto allBox = value["Box"]["Box"];
for (auto value : allBox)
logoBoxDetailObject.box.push_back(value.asString());
successDetailsObject.logoBoxDetail.push_back(logoBoxDetailObject);
}
successDetails_.push_back(successDetailsObject);
}
auto allFailDetailsNode = value["FailDetails"]["FailDetailsItem"];
for (auto valueFailDetailsFailDetailsItem : allFailDetailsNode)
{
FailDetailsItem failDetailsObject;
if(!valueFailDetailsFailDetailsItem["SrcUri"].isNull())
failDetailsObject.srcUri = valueFailDetailsFailDetailsItem["SrcUri"].asString();
if(!valueFailDetailsFailDetailsItem["Reason"].isNull())
failDetailsObject.reason = valueFailDetailsFailDetailsItem["Reason"].asString();
failDetails_.push_back(failDetailsObject);
}
auto allSrcUris = value["SrcUris"]["SrcUris"];
for (const auto &item : allSrcUris)
srcUris_.push_back(item.asString());
}
std::vector<DetectLogoResult::SuccessDetailsItem> DetectLogoResult::getSuccessDetails()const
{
return successDetails_;
}
std::vector<std::string> DetectLogoResult::getSrcUris()const
{
return srcUris_;
}
std::vector<DetectLogoResult::FailDetailsItem> DetectLogoResult::getFailDetails()const
{
return failDetails_;
}

View File

@@ -1,71 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DetectTagRequest.h>
using AlibabaCloud::Imm::Model::DetectTagRequest;
DetectTagRequest::DetectTagRequest() :
RpcServiceRequest("imm", "2017-09-06", "DetectTag")
{}
DetectTagRequest::~DetectTagRequest()
{}
std::string DetectTagRequest::getProject()const
{
return project_;
}
void DetectTagRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string DetectTagRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DetectTagRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DetectTagRequest::getModelId()const
{
return modelId_;
}
void DetectTagRequest::setModelId(const std::string& modelId)
{
modelId_ = modelId;
setCoreParameter("ModelId", modelId);
}
std::string DetectTagRequest::getSrcUris()const
{
return srcUris_;
}
void DetectTagRequest::setSrcUris(const std::string& srcUris)
{
srcUris_ = srcUris;
setCoreParameter("SrcUris", srcUris);
}

View File

@@ -1,97 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DetectTagResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
DetectTagResult::DetectTagResult() :
ServiceResult()
{}
DetectTagResult::DetectTagResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectTagResult::~DetectTagResult()
{}
void DetectTagResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSuccessDetailsNode = value["SuccessDetails"]["SuccessDetailsItem"];
for (auto valueSuccessDetailsSuccessDetailsItem : allSuccessDetailsNode)
{
SuccessDetailsItem successDetailsObject;
if(!valueSuccessDetailsSuccessDetailsItem["SrcUri"].isNull())
successDetailsObject.srcUri = valueSuccessDetailsSuccessDetailsItem["SrcUri"].asString();
auto allTagsNode = allSuccessDetailsNode["Tags"]["TagsItem"];
for (auto allSuccessDetailsNodeTagsTagsItem : allTagsNode)
{
SuccessDetailsItem::TagsItem tagsObject;
if(!allSuccessDetailsNodeTagsTagsItem["TagId"].isNull())
tagsObject.tagId = allSuccessDetailsNodeTagsTagsItem["TagId"].asString();
if(!allSuccessDetailsNodeTagsTagsItem["TagLevel"].isNull())
tagsObject.tagLevel = allSuccessDetailsNodeTagsTagsItem["TagLevel"].asString();
if(!allSuccessDetailsNodeTagsTagsItem["TagName"].isNull())
tagsObject.tagName = allSuccessDetailsNodeTagsTagsItem["TagName"].asString();
if(!allSuccessDetailsNodeTagsTagsItem["ParentTagId"].isNull())
tagsObject.parentTagId = allSuccessDetailsNodeTagsTagsItem["ParentTagId"].asString();
if(!allSuccessDetailsNodeTagsTagsItem["ParentTagName"].isNull())
tagsObject.parentTagName = allSuccessDetailsNodeTagsTagsItem["ParentTagName"].asString();
if(!allSuccessDetailsNodeTagsTagsItem["TagScore"].isNull())
tagsObject.tagScore = allSuccessDetailsNodeTagsTagsItem["TagScore"].asString();
successDetailsObject.tags.push_back(tagsObject);
}
successDetails_.push_back(successDetailsObject);
}
auto allFailDetailsNode = value["FailDetails"]["FailDetailsItem"];
for (auto valueFailDetailsFailDetailsItem : allFailDetailsNode)
{
FailDetailsItem failDetailsObject;
if(!valueFailDetailsFailDetailsItem["SrcUri"].isNull())
failDetailsObject.srcUri = valueFailDetailsFailDetailsItem["SrcUri"].asString();
if(!valueFailDetailsFailDetailsItem["Reason"].isNull())
failDetailsObject.reason = valueFailDetailsFailDetailsItem["Reason"].asString();
failDetails_.push_back(failDetailsObject);
}
if(!value["SuccessNum"].isNull())
successNum_ = value["SuccessNum"].asString();
}
std::vector<DetectTagResult::SuccessDetailsItem> DetectTagResult::getSuccessDetails()const
{
return successDetails_;
}
std::string DetectTagResult::getSuccessNum()const
{
return successNum_;
}
std::vector<DetectTagResult::FailDetailsItem> DetectTagResult::getFailDetails()const
{
return failDetails_;
}

View File

@@ -49,6 +49,8 @@ void FindSimilarFacesResult::parse(const std::string &payload)
facesObject.imageUri = valueFacesFacesItem["ImageUri"].asString();
if(!valueFacesFacesItem["Similarity"].isNull())
facesObject.similarity = std::stof(valueFacesFacesItem["Similarity"].asString());
if(!valueFacesFacesItem["ExternalId"].isNull())
facesObject.externalId = valueFacesFacesItem["ExternalId"].asString();
auto allSimilarFacesNode = allFacesNode["SimilarFaces"]["SimilarFacesItem"];
for (auto allFacesNodeSimilarFacesSimilarFacesItem : allSimilarFacesNode)
{
@@ -59,6 +61,8 @@ void FindSimilarFacesResult::parse(const std::string &payload)
similarFacesObject.imageUri = allFacesNodeSimilarFacesSimilarFacesItem["ImageUri"].asString();
if(!allFacesNodeSimilarFacesSimilarFacesItem["Similarity"].isNull())
similarFacesObject.similarity = std::stof(allFacesNodeSimilarFacesSimilarFacesItem["Similarity"].asString());
if(!allFacesNodeSimilarFacesSimilarFacesItem["ExternalId"].isNull())
similarFacesObject.externalId = allFacesNodeSimilarFacesSimilarFacesItem["ExternalId"].asString();
auto faceAttributes1Node = value["FaceAttributes"];
auto faceBoundaryNode = faceAttributes1Node["FaceBoundary"];
if(!faceBoundaryNode["Left"].isNull())

View File

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

View File

@@ -1,93 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetFaceSearchImageRequest.h>
using AlibabaCloud::Imm::Model::GetFaceSearchImageRequest;
GetFaceSearchImageRequest::GetFaceSearchImageRequest() :
RpcServiceRequest("imm", "2017-09-06", "GetFaceSearchImage")
{}
GetFaceSearchImageRequest::~GetFaceSearchImageRequest()
{}
std::string GetFaceSearchImageRequest::getImageId()const
{
return imageId_;
}
void GetFaceSearchImageRequest::setImageId(const std::string& imageId)
{
imageId_ = imageId;
setCoreParameter("ImageId", imageId);
}
std::string GetFaceSearchImageRequest::getProject()const
{
return project_;
}
void GetFaceSearchImageRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string GetFaceSearchImageRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetFaceSearchImageRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string GetFaceSearchImageRequest::getGroupName()const
{
return groupName_;
}
void GetFaceSearchImageRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string GetFaceSearchImageRequest::getSrcUri()const
{
return srcUri_;
}
void GetFaceSearchImageRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setCoreParameter("SrcUri", srcUri);
}
std::string GetFaceSearchImageRequest::getUser()const
{
return user_;
}
void GetFaceSearchImageRequest::setUser(const std::string& user)
{
user_ = user;
setCoreParameter("User", user);
}

View File

@@ -1,157 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetFaceSearchImageResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
GetFaceSearchImageResult::GetFaceSearchImageResult() :
ServiceResult()
{}
GetFaceSearchImageResult::GetFaceSearchImageResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFaceSearchImageResult::~GetFaceSearchImageResult()
{}
void GetFaceSearchImageResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAxis = value["Axis"]["Axis"];
for (const auto &item : allAxis)
axis_.push_back(item.asString());
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["Gender"].isNull())
gender_ = value["Gender"].asString();
if(!value["Age"].isNull())
age_ = std::stoi(value["Age"].asString());
if(!value["Pitch"].isNull())
pitch_ = std::stof(value["Pitch"].asString());
if(!value["ImageUri"].isNull())
imageUri_ = value["ImageUri"].asString();
if(!value["ImageMd5"].isNull())
imageMd5_ = value["ImageMd5"].asString();
if(!value["Roll"].isNull())
roll_ = std::stof(value["Roll"].asString());
if(!value["FaceId"].isNull())
faceId_ = value["FaceId"].asString();
if(!value["Yaw"].isNull())
yaw_ = std::stof(value["Yaw"].asString());
if(!value["Quality"].isNull())
quality_ = std::stof(value["Quality"].asString());
if(!value["Hat"].isNull())
hat_ = std::stoi(value["Hat"].asString());
if(!value["Glasses"].isNull())
glasses_ = std::stoi(value["Glasses"].asString());
if(!value["ImageId"].isNull())
imageId_ = value["ImageId"].asString();
if(!value["User"].isNull())
user_ = value["User"].asString();
}
std::string GetFaceSearchImageResult::getGroupName()const
{
return groupName_;
}
std::string GetFaceSearchImageResult::getFaceId()const
{
return faceId_;
}
std::string GetFaceSearchImageResult::getUser()const
{
return user_;
}
std::string GetFaceSearchImageResult::getGender()const
{
return gender_;
}
std::string GetFaceSearchImageResult::getImageUri()const
{
return imageUri_;
}
float GetFaceSearchImageResult::getYaw()const
{
return yaw_;
}
std::string GetFaceSearchImageResult::getGroupId()const
{
return groupId_;
}
float GetFaceSearchImageResult::getQuality()const
{
return quality_;
}
float GetFaceSearchImageResult::getPitch()const
{
return pitch_;
}
int GetFaceSearchImageResult::getGlasses()const
{
return glasses_;
}
std::string GetFaceSearchImageResult::getImageId()const
{
return imageId_;
}
int GetFaceSearchImageResult::getHat()const
{
return hat_;
}
float GetFaceSearchImageResult::getRoll()const
{
return roll_;
}
std::vector<std::string> GetFaceSearchImageResult::getAxis()const
{
return axis_;
}
int GetFaceSearchImageResult::getAge()const
{
return age_;
}
std::string GetFaceSearchImageResult::getImageMd5()const
{
return imageMd5_;
}

View File

@@ -1,71 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetFaceSearchUserRequest.h>
using AlibabaCloud::Imm::Model::GetFaceSearchUserRequest;
GetFaceSearchUserRequest::GetFaceSearchUserRequest() :
RpcServiceRequest("imm", "2017-09-06", "GetFaceSearchUser")
{}
GetFaceSearchUserRequest::~GetFaceSearchUserRequest()
{}
std::string GetFaceSearchUserRequest::getProject()const
{
return project_;
}
void GetFaceSearchUserRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string GetFaceSearchUserRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetFaceSearchUserRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string GetFaceSearchUserRequest::getGroupName()const
{
return groupName_;
}
void GetFaceSearchUserRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string GetFaceSearchUserRequest::getUser()const
{
return user_;
}
void GetFaceSearchUserRequest::setUser(const std::string& user)
{
user_ = user;
setCoreParameter("User", user);
}

View File

@@ -1,93 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetFaceSearchUserResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
GetFaceSearchUserResult::GetFaceSearchUserResult() :
ServiceResult()
{}
GetFaceSearchUserResult::GetFaceSearchUserResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetFaceSearchUserResult::~GetFaceSearchUserResult()
{}
void GetFaceSearchUserResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["Count"].isNull())
count_ = std::stoi(value["Count"].asString());
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["ModifyTime"].isNull())
modifyTime_ = value["ModifyTime"].asString();
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["User"].isNull())
user_ = value["User"].asString();
}
std::string GetFaceSearchUserResult::getGroupName()const
{
return groupName_;
}
std::string GetFaceSearchUserResult::getStatus()const
{
return status_;
}
std::string GetFaceSearchUserResult::getModifyTime()const
{
return modifyTime_;
}
std::string GetFaceSearchUserResult::getUser()const
{
return user_;
}
std::string GetFaceSearchUserResult::getCreateTime()const
{
return createTime_;
}
int GetFaceSearchUserResult::getCount()const
{
return count_;
}
std::string GetFaceSearchUserResult::getGroupId()const
{
return groupId_;
}

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetPhotoProcessTaskRequest.h>
using AlibabaCloud::Imm::Model::GetPhotoProcessTaskRequest;
GetPhotoProcessTaskRequest::GetPhotoProcessTaskRequest() :
RpcServiceRequest("imm", "2017-09-06", "GetPhotoProcessTask")
{}
GetPhotoProcessTaskRequest::~GetPhotoProcessTaskRequest()
{}
std::string GetPhotoProcessTaskRequest::getProject()const
{
return project_;
}
void GetPhotoProcessTaskRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string GetPhotoProcessTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetPhotoProcessTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string GetPhotoProcessTaskRequest::getTaskId()const
{
return taskId_;
}
void GetPhotoProcessTaskRequest::setTaskId(const std::string& taskId)
{
taskId_ = taskId;
setCoreParameter("TaskId", taskId);
}

View File

@@ -1,121 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetPhotoProcessTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
GetPhotoProcessTaskResult::GetPhotoProcessTaskResult() :
ServiceResult()
{}
GetPhotoProcessTaskResult::GetPhotoProcessTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPhotoProcessTaskResult::~GetPhotoProcessTaskResult()
{}
void GetPhotoProcessTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["SrcUri"].isNull())
srcUri_ = value["SrcUri"].asString();
if(!value["TgtUri"].isNull())
tgtUri_ = value["TgtUri"].asString();
if(!value["Style"].isNull())
style_ = value["Style"].asString();
if(!value["NotifyTopicName"].isNull())
notifyTopicName_ = value["NotifyTopicName"].asString();
if(!value["NotifyEndpoint"].isNull())
notifyEndpoint_ = value["NotifyEndpoint"].asString();
if(!value["ExternalID"].isNull())
externalID_ = value["ExternalID"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["FinishTime"].isNull())
finishTime_ = value["FinishTime"].asString();
if(!value["Percent"].isNull())
percent_ = std::stoi(value["Percent"].asString());
}
std::string GetPhotoProcessTaskResult::getStatus()const
{
return status_;
}
std::string GetPhotoProcessTaskResult::getNotifyEndpoint()const
{
return notifyEndpoint_;
}
std::string GetPhotoProcessTaskResult::getTaskId()const
{
return taskId_;
}
std::string GetPhotoProcessTaskResult::getTgtUri()const
{
return tgtUri_;
}
std::string GetPhotoProcessTaskResult::getFinishTime()const
{
return finishTime_;
}
int GetPhotoProcessTaskResult::getPercent()const
{
return percent_;
}
std::string GetPhotoProcessTaskResult::getExternalID()const
{
return externalID_;
}
std::string GetPhotoProcessTaskResult::getCreateTime()const
{
return createTime_;
}
std::string GetPhotoProcessTaskResult::getStyle()const
{
return style_;
}
std::string GetPhotoProcessTaskResult::getNotifyTopicName()const
{
return notifyTopicName_;
}
std::string GetPhotoProcessTaskResult::getSrcUri()const
{
return srcUri_;
}

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetPornBatchDetectJobRequest.h>
using AlibabaCloud::Imm::Model::GetPornBatchDetectJobRequest;
GetPornBatchDetectJobRequest::GetPornBatchDetectJobRequest() :
RpcServiceRequest("imm", "2017-09-06", "GetPornBatchDetectJob")
{}
GetPornBatchDetectJobRequest::~GetPornBatchDetectJobRequest()
{}
std::string GetPornBatchDetectJobRequest::getProject()const
{
return project_;
}
void GetPornBatchDetectJobRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string GetPornBatchDetectJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetPornBatchDetectJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string GetPornBatchDetectJobRequest::getJobId()const
{
return jobId_;
}
void GetPornBatchDetectJobRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setCoreParameter("JobId", jobId);
}

View File

@@ -1,114 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetPornBatchDetectJobResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
GetPornBatchDetectJobResult::GetPornBatchDetectJobResult() :
ServiceResult()
{}
GetPornBatchDetectJobResult::GetPornBatchDetectJobResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetPornBatchDetectJobResult::~GetPornBatchDetectJobResult()
{}
void GetPornBatchDetectJobResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["JobId"].isNull())
jobId_ = value["JobId"].asString();
if(!value["SrcUri"].isNull())
srcUri_ = value["SrcUri"].asString();
if(!value["TgtUri"].isNull())
tgtUri_ = value["TgtUri"].asString();
if(!value["NotifyTopicName"].isNull())
notifyTopicName_ = value["NotifyTopicName"].asString();
if(!value["NotifyEndpoint"].isNull())
notifyEndpoint_ = value["NotifyEndpoint"].asString();
if(!value["ExternalID"].isNull())
externalID_ = value["ExternalID"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["FinishTime"].isNull())
finishTime_ = value["FinishTime"].asString();
if(!value["Percent"].isNull())
percent_ = std::stoi(value["Percent"].asString());
}
std::string GetPornBatchDetectJobResult::getStatus()const
{
return status_;
}
std::string GetPornBatchDetectJobResult::getNotifyEndpoint()const
{
return notifyEndpoint_;
}
std::string GetPornBatchDetectJobResult::getTgtUri()const
{
return tgtUri_;
}
std::string GetPornBatchDetectJobResult::getFinishTime()const
{
return finishTime_;
}
int GetPornBatchDetectJobResult::getPercent()const
{
return percent_;
}
std::string GetPornBatchDetectJobResult::getExternalID()const
{
return externalID_;
}
std::string GetPornBatchDetectJobResult::getCreateTime()const
{
return createTime_;
}
std::string GetPornBatchDetectJobResult::getNotifyTopicName()const
{
return notifyTopicName_;
}
std::string GetPornBatchDetectJobResult::getJobId()const
{
return jobId_;
}
std::string GetPornBatchDetectJobResult::getSrcUri()const
{
return srcUri_;
}

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetTagJobRequest.h>
using AlibabaCloud::Imm::Model::GetTagJobRequest;
GetTagJobRequest::GetTagJobRequest() :
RpcServiceRequest("imm", "2017-09-06", "GetTagJob")
{}
GetTagJobRequest::~GetTagJobRequest()
{}
std::string GetTagJobRequest::getProject()const
{
return project_;
}
void GetTagJobRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string GetTagJobRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetTagJobRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string GetTagJobRequest::getJobId()const
{
return jobId_;
}
void GetTagJobRequest::setJobId(const std::string& jobId)
{
jobId_ = jobId;
setCoreParameter("JobId", jobId);
}

View File

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

View File

@@ -1,60 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/GetTagSetRequest.h>
using AlibabaCloud::Imm::Model::GetTagSetRequest;
GetTagSetRequest::GetTagSetRequest() :
RpcServiceRequest("imm", "2017-09-06", "GetTagSet")
{}
GetTagSetRequest::~GetTagSetRequest()
{}
std::string GetTagSetRequest::getProject()const
{
return project_;
}
void GetTagSetRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string GetTagSetRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void GetTagSetRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string GetTagSetRequest::getSetId()const
{
return setId_;
}
void GetTagSetRequest::setSetId(const std::string& setId)
{
setId_ = setId;
setCoreParameter("SetId", setId);
}

View File

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

View File

@@ -1,93 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/IndexTagRequest.h>
using AlibabaCloud::Imm::Model::IndexTagRequest;
IndexTagRequest::IndexTagRequest() :
RpcServiceRequest("imm", "2017-09-06", "IndexTag")
{}
IndexTagRequest::~IndexTagRequest()
{}
std::string IndexTagRequest::getProject()const
{
return project_;
}
void IndexTagRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string IndexTagRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void IndexTagRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string IndexTagRequest::getModelId()const
{
return modelId_;
}
void IndexTagRequest::setModelId(const std::string& modelId)
{
modelId_ = modelId;
setCoreParameter("ModelId", modelId);
}
std::string IndexTagRequest::getSrcUris()const
{
return srcUris_;
}
void IndexTagRequest::setSrcUris(const std::string& srcUris)
{
srcUris_ = srcUris;
setCoreParameter("SrcUris", srcUris);
}
std::string IndexTagRequest::getSetId()const
{
return setId_;
}
void IndexTagRequest::setSetId(const std::string& setId)
{
setId_ = setId;
setCoreParameter("SetId", setId);
}
std::string IndexTagRequest::getForce()const
{
return force_;
}
void IndexTagRequest::setForce(const std::string& force)
{
force_ = force;
setCoreParameter("Force", force);
}

View File

@@ -1,104 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/IndexTagResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
IndexTagResult::IndexTagResult() :
ServiceResult()
{}
IndexTagResult::IndexTagResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
IndexTagResult::~IndexTagResult()
{}
void IndexTagResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFailDetailsNode = value["FailDetails"]["FailDetailsItem"];
for (auto valueFailDetailsFailDetailsItem : allFailDetailsNode)
{
FailDetailsItem failDetailsObject;
if(!valueFailDetailsFailDetailsItem["SrcUri"].isNull())
failDetailsObject.srcUri = valueFailDetailsFailDetailsItem["SrcUri"].asString();
if(!valueFailDetailsFailDetailsItem["Reason"].isNull())
failDetailsObject.reason = valueFailDetailsFailDetailsItem["Reason"].asString();
failDetails_.push_back(failDetailsObject);
}
auto allSuccessDetailsNode = value["SuccessDetails"]["SuccessDetailsItem"];
for (auto valueSuccessDetailsSuccessDetailsItem : allSuccessDetailsNode)
{
SuccessDetailsItem successDetailsObject;
if(!valueSuccessDetailsSuccessDetailsItem["SrcUri"].isNull())
successDetailsObject.srcUri = valueSuccessDetailsSuccessDetailsItem["SrcUri"].asString();
auto allTagsNode = allSuccessDetailsNode["Tags"]["TagsItem"];
for (auto allSuccessDetailsNodeTagsTagsItem : allTagsNode)
{
SuccessDetailsItem::TagsItem tagsObject;
if(!allSuccessDetailsNodeTagsTagsItem["TagId"].isNull())
tagsObject.tagId = allSuccessDetailsNodeTagsTagsItem["TagId"].asString();
if(!allSuccessDetailsNodeTagsTagsItem["TagLevel"].isNull())
tagsObject.tagLevel = allSuccessDetailsNodeTagsTagsItem["TagLevel"].asString();
if(!allSuccessDetailsNodeTagsTagsItem["TagName"].isNull())
tagsObject.tagName = allSuccessDetailsNodeTagsTagsItem["TagName"].asString();
if(!allSuccessDetailsNodeTagsTagsItem["ParentTagId"].isNull())
tagsObject.parentTagId = allSuccessDetailsNodeTagsTagsItem["ParentTagId"].asString();
if(!allSuccessDetailsNodeTagsTagsItem["ParentTagName"].isNull())
tagsObject.parentTagName = allSuccessDetailsNodeTagsTagsItem["ParentTagName"].asString();
if(!allSuccessDetailsNodeTagsTagsItem["TagScore"].isNull())
tagsObject.tagScore = allSuccessDetailsNodeTagsTagsItem["TagScore"].asString();
successDetailsObject.tags.push_back(tagsObject);
}
successDetails_.push_back(successDetailsObject);
}
if(!value["SetId"].isNull())
setId_ = value["SetId"].asString();
if(!value["SuccessIndexNum"].isNull())
successIndexNum_ = value["SuccessIndexNum"].asString();
}
std::vector<IndexTagResult::SuccessDetailsItem> IndexTagResult::getSuccessDetails()const
{
return successDetails_;
}
std::string IndexTagResult::getSuccessIndexNum()const
{
return successIndexNum_;
}
std::vector<IndexTagResult::FailDetailsItem> IndexTagResult::getFailDetails()const
{
return failDetails_;
}
std::string IndexTagResult::getSetId()const
{
return setId_;
}

View File

@@ -1,93 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListFaceSearchGroupImagesRequest.h>
using AlibabaCloud::Imm::Model::ListFaceSearchGroupImagesRequest;
ListFaceSearchGroupImagesRequest::ListFaceSearchGroupImagesRequest() :
RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroupImages")
{}
ListFaceSearchGroupImagesRequest::~ListFaceSearchGroupImagesRequest()
{}
int ListFaceSearchGroupImagesRequest::getMaxKeys()const
{
return maxKeys_;
}
void ListFaceSearchGroupImagesRequest::setMaxKeys(int maxKeys)
{
maxKeys_ = maxKeys;
setCoreParameter("MaxKeys", std::to_string(maxKeys));
}
std::string ListFaceSearchGroupImagesRequest::getProject()const
{
return project_;
}
void ListFaceSearchGroupImagesRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string ListFaceSearchGroupImagesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListFaceSearchGroupImagesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ListFaceSearchGroupImagesRequest::getGroupName()const
{
return groupName_;
}
void ListFaceSearchGroupImagesRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string ListFaceSearchGroupImagesRequest::getMarker()const
{
return marker_;
}
void ListFaceSearchGroupImagesRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setCoreParameter("Marker", marker);
}
std::string ListFaceSearchGroupImagesRequest::getUser()const
{
return user_;
}
void ListFaceSearchGroupImagesRequest::setUser(const std::string& user)
{
user_ = user;
setCoreParameter("User", user);
}

View File

@@ -1,105 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListFaceSearchGroupImagesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
ListFaceSearchGroupImagesResult::ListFaceSearchGroupImagesResult() :
ServiceResult()
{}
ListFaceSearchGroupImagesResult::ListFaceSearchGroupImagesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListFaceSearchGroupImagesResult::~ListFaceSearchGroupImagesResult()
{}
void ListFaceSearchGroupImagesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allImagesNode = value["Images"]["ImagesItem"];
for (auto valueImagesImagesItem : allImagesNode)
{
ImagesItem imagesObject;
if(!valueImagesImagesItem["User"].isNull())
imagesObject.user = valueImagesImagesItem["User"].asString();
if(!valueImagesImagesItem["ImageId"].isNull())
imagesObject.imageId = valueImagesImagesItem["ImageId"].asString();
if(!valueImagesImagesItem["ImageUri"].isNull())
imagesObject.imageUri = valueImagesImagesItem["ImageUri"].asString();
if(!valueImagesImagesItem["ImageMd5"].isNull())
imagesObject.imageMd5 = valueImagesImagesItem["ImageMd5"].asString();
if(!valueImagesImagesItem["Roll"].isNull())
imagesObject.roll = std::stof(valueImagesImagesItem["Roll"].asString());
if(!valueImagesImagesItem["FaceId"].isNull())
imagesObject.faceId = valueImagesImagesItem["FaceId"].asString();
if(!valueImagesImagesItem["Yaw"].isNull())
imagesObject.yaw = std::stof(valueImagesImagesItem["Yaw"].asString());
if(!valueImagesImagesItem["Quality"].isNull())
imagesObject.quality = std::stof(valueImagesImagesItem["Quality"].asString());
if(!valueImagesImagesItem["Glasses"].isNull())
imagesObject.glasses = std::stoi(valueImagesImagesItem["Glasses"].asString());
if(!valueImagesImagesItem["Hat"].isNull())
imagesObject.hat = std::stoi(valueImagesImagesItem["Hat"].asString());
if(!valueImagesImagesItem["Pitch"].isNull())
imagesObject.pitch = std::stof(valueImagesImagesItem["Pitch"].asString());
if(!valueImagesImagesItem["Age"].isNull())
imagesObject.age = std::stoi(valueImagesImagesItem["Age"].asString());
if(!valueImagesImagesItem["Gender"].isNull())
imagesObject.gender = valueImagesImagesItem["Gender"].asString();
auto allAxis = value["Axis"]["Axis"];
for (auto value : allAxis)
imagesObject.axis.push_back(value.asString());
images_.push_back(imagesObject);
}
if(!value["NextMarker"].isNull())
nextMarker_ = value["NextMarker"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
}
std::string ListFaceSearchGroupImagesResult::getGroupName()const
{
return groupName_;
}
std::vector<ListFaceSearchGroupImagesResult::ImagesItem> ListFaceSearchGroupImagesResult::getImages()const
{
return images_;
}
std::string ListFaceSearchGroupImagesResult::getNextMarker()const
{
return nextMarker_;
}
std::string ListFaceSearchGroupImagesResult::getGroupId()const
{
return groupId_;
}

View File

@@ -1,82 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListFaceSearchGroupUsersRequest.h>
using AlibabaCloud::Imm::Model::ListFaceSearchGroupUsersRequest;
ListFaceSearchGroupUsersRequest::ListFaceSearchGroupUsersRequest() :
RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroupUsers")
{}
ListFaceSearchGroupUsersRequest::~ListFaceSearchGroupUsersRequest()
{}
int ListFaceSearchGroupUsersRequest::getMaxKeys()const
{
return maxKeys_;
}
void ListFaceSearchGroupUsersRequest::setMaxKeys(int maxKeys)
{
maxKeys_ = maxKeys;
setCoreParameter("MaxKeys", std::to_string(maxKeys));
}
std::string ListFaceSearchGroupUsersRequest::getProject()const
{
return project_;
}
void ListFaceSearchGroupUsersRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string ListFaceSearchGroupUsersRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListFaceSearchGroupUsersRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ListFaceSearchGroupUsersRequest::getGroupName()const
{
return groupName_;
}
void ListFaceSearchGroupUsersRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string ListFaceSearchGroupUsersRequest::getMarker()const
{
return marker_;
}
void ListFaceSearchGroupUsersRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setCoreParameter("Marker", marker);
}

View File

@@ -1,86 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListFaceSearchGroupUsersResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
ListFaceSearchGroupUsersResult::ListFaceSearchGroupUsersResult() :
ServiceResult()
{}
ListFaceSearchGroupUsersResult::ListFaceSearchGroupUsersResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListFaceSearchGroupUsersResult::~ListFaceSearchGroupUsersResult()
{}
void ListFaceSearchGroupUsersResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allUsersNode = value["Users"]["UsersItem"];
for (auto valueUsersUsersItem : allUsersNode)
{
UsersItem usersObject;
if(!valueUsersUsersItem["User"].isNull())
usersObject.user = valueUsersUsersItem["User"].asString();
if(!valueUsersUsersItem["Count"].isNull())
usersObject.count = valueUsersUsersItem["Count"].asString();
if(!valueUsersUsersItem["Status"].isNull())
usersObject.status = valueUsersUsersItem["Status"].asString();
if(!valueUsersUsersItem["CreateTime"].isNull())
usersObject.createTime = valueUsersUsersItem["CreateTime"].asString();
if(!valueUsersUsersItem["ModifyTime"].isNull())
usersObject.modifyTime = valueUsersUsersItem["ModifyTime"].asString();
users_.push_back(usersObject);
}
if(!value["NextMarker"].isNull())
nextMarker_ = value["NextMarker"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
}
std::string ListFaceSearchGroupUsersResult::getGroupName()const
{
return groupName_;
}
std::vector<ListFaceSearchGroupUsersResult::UsersItem> ListFaceSearchGroupUsersResult::getUsers()const
{
return users_;
}
std::string ListFaceSearchGroupUsersResult::getNextMarker()const
{
return nextMarker_;
}
std::string ListFaceSearchGroupUsersResult::getGroupId()const
{
return groupId_;
}

View File

@@ -1,71 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListFaceSearchGroupsRequest.h>
using AlibabaCloud::Imm::Model::ListFaceSearchGroupsRequest;
ListFaceSearchGroupsRequest::ListFaceSearchGroupsRequest() :
RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroups")
{}
ListFaceSearchGroupsRequest::~ListFaceSearchGroupsRequest()
{}
int ListFaceSearchGroupsRequest::getMaxKeys()const
{
return maxKeys_;
}
void ListFaceSearchGroupsRequest::setMaxKeys(int maxKeys)
{
maxKeys_ = maxKeys;
setCoreParameter("MaxKeys", std::to_string(maxKeys));
}
std::string ListFaceSearchGroupsRequest::getProject()const
{
return project_;
}
void ListFaceSearchGroupsRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string ListFaceSearchGroupsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListFaceSearchGroupsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ListFaceSearchGroupsRequest::getMarker()const
{
return marker_;
}
void ListFaceSearchGroupsRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setCoreParameter("Marker", marker);
}

View File

@@ -1,74 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListFaceSearchGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
ListFaceSearchGroupsResult::ListFaceSearchGroupsResult() :
ServiceResult()
{}
ListFaceSearchGroupsResult::ListFaceSearchGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListFaceSearchGroupsResult::~ListFaceSearchGroupsResult()
{}
void ListFaceSearchGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allGroupsNode = value["Groups"]["GroupsItem"];
for (auto valueGroupsGroupsItem : allGroupsNode)
{
GroupsItem groupsObject;
if(!valueGroupsGroupsItem["GroupName"].isNull())
groupsObject.groupName = valueGroupsGroupsItem["GroupName"].asString();
if(!valueGroupsGroupsItem["Count"].isNull())
groupsObject.count = valueGroupsGroupsItem["Count"].asString();
if(!valueGroupsGroupsItem["Status"].isNull())
groupsObject.status = valueGroupsGroupsItem["Status"].asString();
if(!valueGroupsGroupsItem["CreateTime"].isNull())
groupsObject.createTime = valueGroupsGroupsItem["CreateTime"].asString();
if(!valueGroupsGroupsItem["ModifyTime"].isNull())
groupsObject.modifyTime = valueGroupsGroupsItem["ModifyTime"].asString();
if(!valueGroupsGroupsItem["GroupId"].isNull())
groupsObject.groupId = valueGroupsGroupsItem["GroupId"].asString();
groups_.push_back(groupsObject);
}
if(!value["NextMarker"].isNull())
nextMarker_ = value["NextMarker"].asString();
}
std::vector<ListFaceSearchGroupsResult::GroupsItem> ListFaceSearchGroupsResult::getGroups()const
{
return groups_;
}
std::string ListFaceSearchGroupsResult::getNextMarker()const
{
return nextMarker_;
}

View File

@@ -1,71 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListPhotoProcessTasksRequest.h>
using AlibabaCloud::Imm::Model::ListPhotoProcessTasksRequest;
ListPhotoProcessTasksRequest::ListPhotoProcessTasksRequest() :
RpcServiceRequest("imm", "2017-09-06", "ListPhotoProcessTasks")
{}
ListPhotoProcessTasksRequest::~ListPhotoProcessTasksRequest()
{}
int ListPhotoProcessTasksRequest::getMaxKeys()const
{
return maxKeys_;
}
void ListPhotoProcessTasksRequest::setMaxKeys(int maxKeys)
{
maxKeys_ = maxKeys;
setCoreParameter("MaxKeys", std::to_string(maxKeys));
}
std::string ListPhotoProcessTasksRequest::getProject()const
{
return project_;
}
void ListPhotoProcessTasksRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string ListPhotoProcessTasksRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListPhotoProcessTasksRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ListPhotoProcessTasksRequest::getMarker()const
{
return marker_;
}
void ListPhotoProcessTasksRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setCoreParameter("Marker", marker);
}

View File

@@ -1,84 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListPhotoProcessTasksResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
ListPhotoProcessTasksResult::ListPhotoProcessTasksResult() :
ServiceResult()
{}
ListPhotoProcessTasksResult::ListPhotoProcessTasksResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPhotoProcessTasksResult::~ListPhotoProcessTasksResult()
{}
void ListPhotoProcessTasksResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTasksNode = value["Tasks"]["TasksItem"];
for (auto valueTasksTasksItem : allTasksNode)
{
TasksItem tasksObject;
if(!valueTasksTasksItem["TaskId"].isNull())
tasksObject.taskId = valueTasksTasksItem["TaskId"].asString();
if(!valueTasksTasksItem["Status"].isNull())
tasksObject.status = valueTasksTasksItem["Status"].asString();
if(!valueTasksTasksItem["SrcUri"].isNull())
tasksObject.srcUri = valueTasksTasksItem["SrcUri"].asString();
if(!valueTasksTasksItem["TgtUri"].isNull())
tasksObject.tgtUri = valueTasksTasksItem["TgtUri"].asString();
if(!valueTasksTasksItem["Style"].isNull())
tasksObject.style = valueTasksTasksItem["Style"].asString();
if(!valueTasksTasksItem["NotifyTopicName"].isNull())
tasksObject.notifyTopicName = valueTasksTasksItem["NotifyTopicName"].asString();
if(!valueTasksTasksItem["NotifyEndpoint"].isNull())
tasksObject.notifyEndpoint = valueTasksTasksItem["NotifyEndpoint"].asString();
if(!valueTasksTasksItem["ExternalID"].isNull())
tasksObject.externalID = valueTasksTasksItem["ExternalID"].asString();
if(!valueTasksTasksItem["CreateTime"].isNull())
tasksObject.createTime = valueTasksTasksItem["CreateTime"].asString();
if(!valueTasksTasksItem["FinishTime"].isNull())
tasksObject.finishTime = valueTasksTasksItem["FinishTime"].asString();
if(!valueTasksTasksItem["Percent"].isNull())
tasksObject.percent = std::stoi(valueTasksTasksItem["Percent"].asString());
tasks_.push_back(tasksObject);
}
if(!value["NextMarker"].isNull())
nextMarker_ = value["NextMarker"].asString();
}
std::vector<ListPhotoProcessTasksResult::TasksItem> ListPhotoProcessTasksResult::getTasks()const
{
return tasks_;
}
std::string ListPhotoProcessTasksResult::getNextMarker()const
{
return nextMarker_;
}

View File

@@ -1,71 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListPornBatchDetectJobsRequest.h>
using AlibabaCloud::Imm::Model::ListPornBatchDetectJobsRequest;
ListPornBatchDetectJobsRequest::ListPornBatchDetectJobsRequest() :
RpcServiceRequest("imm", "2017-09-06", "ListPornBatchDetectJobs")
{}
ListPornBatchDetectJobsRequest::~ListPornBatchDetectJobsRequest()
{}
int ListPornBatchDetectJobsRequest::getMaxKeys()const
{
return maxKeys_;
}
void ListPornBatchDetectJobsRequest::setMaxKeys(int maxKeys)
{
maxKeys_ = maxKeys;
setCoreParameter("MaxKeys", std::to_string(maxKeys));
}
std::string ListPornBatchDetectJobsRequest::getProject()const
{
return project_;
}
void ListPornBatchDetectJobsRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string ListPornBatchDetectJobsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListPornBatchDetectJobsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ListPornBatchDetectJobsRequest::getMarker()const
{
return marker_;
}
void ListPornBatchDetectJobsRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setCoreParameter("Marker", marker);
}

View File

@@ -1,82 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListPornBatchDetectJobsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
ListPornBatchDetectJobsResult::ListPornBatchDetectJobsResult() :
ServiceResult()
{}
ListPornBatchDetectJobsResult::ListPornBatchDetectJobsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListPornBatchDetectJobsResult::~ListPornBatchDetectJobsResult()
{}
void ListPornBatchDetectJobsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobsNode = value["Jobs"]["JobsItem"];
for (auto valueJobsJobsItem : allJobsNode)
{
JobsItem jobsObject;
if(!valueJobsJobsItem["JobId"].isNull())
jobsObject.jobId = valueJobsJobsItem["JobId"].asString();
if(!valueJobsJobsItem["SrcUri"].isNull())
jobsObject.srcUri = valueJobsJobsItem["SrcUri"].asString();
if(!valueJobsJobsItem["Status"].isNull())
jobsObject.status = valueJobsJobsItem["Status"].asString();
if(!valueJobsJobsItem["TgtUri"].isNull())
jobsObject.tgtUri = valueJobsJobsItem["TgtUri"].asString();
if(!valueJobsJobsItem["NotifyTopicName"].isNull())
jobsObject.notifyTopicName = std::stoi(valueJobsJobsItem["NotifyTopicName"].asString());
if(!valueJobsJobsItem["NotifyEndpoint"].isNull())
jobsObject.notifyEndpoint = valueJobsJobsItem["NotifyEndpoint"].asString();
if(!valueJobsJobsItem["ExternalID"].isNull())
jobsObject.externalID = valueJobsJobsItem["ExternalID"].asString();
if(!valueJobsJobsItem["CreateTime"].isNull())
jobsObject.createTime = valueJobsJobsItem["CreateTime"].asString();
if(!valueJobsJobsItem["FinishTime"].isNull())
jobsObject.finishTime = valueJobsJobsItem["FinishTime"].asString();
if(!valueJobsJobsItem["Percent"].isNull())
jobsObject.percent = std::stoi(valueJobsJobsItem["Percent"].asString());
jobs_.push_back(jobsObject);
}
if(!value["NextMarker"].isNull())
nextMarker_ = value["NextMarker"].asString();
}
std::vector<ListPornBatchDetectJobsResult::JobsItem> ListPornBatchDetectJobsResult::getJobs()const
{
return jobs_;
}
std::string ListPornBatchDetectJobsResult::getNextMarker()const
{
return nextMarker_;
}

View File

@@ -1,82 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListTagJobsRequest.h>
using AlibabaCloud::Imm::Model::ListTagJobsRequest;
ListTagJobsRequest::ListTagJobsRequest() :
RpcServiceRequest("imm", "2017-09-06", "ListTagJobs")
{}
ListTagJobsRequest::~ListTagJobsRequest()
{}
int ListTagJobsRequest::getMaxKeys()const
{
return maxKeys_;
}
void ListTagJobsRequest::setMaxKeys(int maxKeys)
{
maxKeys_ = maxKeys;
setCoreParameter("MaxKeys", std::to_string(maxKeys));
}
std::string ListTagJobsRequest::getProject()const
{
return project_;
}
void ListTagJobsRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string ListTagJobsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListTagJobsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ListTagJobsRequest::getCondition()const
{
return condition_;
}
void ListTagJobsRequest::setCondition(const std::string& condition)
{
condition_ = condition;
setCoreParameter("Condition", condition);
}
std::string ListTagJobsRequest::getMarker()const
{
return marker_;
}
void ListTagJobsRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setCoreParameter("Marker", marker);
}

View File

@@ -1,76 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListTagJobsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
ListTagJobsResult::ListTagJobsResult() :
ServiceResult()
{}
ListTagJobsResult::ListTagJobsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTagJobsResult::~ListTagJobsResult()
{}
void ListTagJobsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allJobsNode = value["Jobs"]["JobsItem"];
for (auto valueJobsJobsItem : allJobsNode)
{
JobsItem jobsObject;
if(!valueJobsJobsItem["JobId"].isNull())
jobsObject.jobId = valueJobsJobsItem["JobId"].asString();
if(!valueJobsJobsItem["SetId"].isNull())
jobsObject.setId = valueJobsJobsItem["SetId"].asString();
if(!valueJobsJobsItem["SrcUri"].isNull())
jobsObject.srcUri = valueJobsJobsItem["SrcUri"].asString();
if(!valueJobsJobsItem["Status"].isNull())
jobsObject.status = valueJobsJobsItem["Status"].asString();
if(!valueJobsJobsItem["Percent"].isNull())
jobsObject.percent = std::stoi(valueJobsJobsItem["Percent"].asString());
if(!valueJobsJobsItem["CreateTime"].isNull())
jobsObject.createTime = valueJobsJobsItem["CreateTime"].asString();
if(!valueJobsJobsItem["FinishTime"].isNull())
jobsObject.finishTime = valueJobsJobsItem["FinishTime"].asString();
jobs_.push_back(jobsObject);
}
if(!value["NextMarker"].isNull())
nextMarker_ = value["NextMarker"].asString();
}
std::vector<ListTagJobsResult::JobsItem> ListTagJobsResult::getJobs()const
{
return jobs_;
}
std::string ListTagJobsResult::getNextMarker()const
{
return nextMarker_;
}

View File

@@ -1,93 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListTagPhotosRequest.h>
using AlibabaCloud::Imm::Model::ListTagPhotosRequest;
ListTagPhotosRequest::ListTagPhotosRequest() :
RpcServiceRequest("imm", "2017-09-06", "ListTagPhotos")
{}
ListTagPhotosRequest::~ListTagPhotosRequest()
{}
std::string ListTagPhotosRequest::getMaxKeys()const
{
return maxKeys_;
}
void ListTagPhotosRequest::setMaxKeys(const std::string& maxKeys)
{
maxKeys_ = maxKeys;
setCoreParameter("MaxKeys", maxKeys);
}
std::string ListTagPhotosRequest::getProject()const
{
return project_;
}
void ListTagPhotosRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string ListTagPhotosRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListTagPhotosRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ListTagPhotosRequest::getTagName()const
{
return tagName_;
}
void ListTagPhotosRequest::setTagName(const std::string& tagName)
{
tagName_ = tagName;
setCoreParameter("TagName", tagName);
}
std::string ListTagPhotosRequest::getMarker()const
{
return marker_;
}
void ListTagPhotosRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setCoreParameter("Marker", marker);
}
std::string ListTagPhotosRequest::getSetId()const
{
return setId_;
}
void ListTagPhotosRequest::setSetId(const std::string& setId)
{
setId_ = setId;
setCoreParameter("SetId", setId);
}

View File

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

View File

@@ -1,71 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListTagSetsRequest.h>
using AlibabaCloud::Imm::Model::ListTagSetsRequest;
ListTagSetsRequest::ListTagSetsRequest() :
RpcServiceRequest("imm", "2017-09-06", "ListTagSets")
{}
ListTagSetsRequest::~ListTagSetsRequest()
{}
int ListTagSetsRequest::getMaxKeys()const
{
return maxKeys_;
}
void ListTagSetsRequest::setMaxKeys(int maxKeys)
{
maxKeys_ = maxKeys;
setCoreParameter("MaxKeys", std::to_string(maxKeys));
}
std::string ListTagSetsRequest::getProject()const
{
return project_;
}
void ListTagSetsRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string ListTagSetsRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ListTagSetsRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string ListTagSetsRequest::getMarker()const
{
return marker_;
}
void ListTagSetsRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setCoreParameter("Marker", marker);
}

View File

@@ -1,72 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/ListTagSetsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
ListTagSetsResult::ListTagSetsResult() :
ServiceResult()
{}
ListTagSetsResult::ListTagSetsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListTagSetsResult::~ListTagSetsResult()
{}
void ListTagSetsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSetsNode = value["Sets"]["SetsItem"];
for (auto valueSetsSetsItem : allSetsNode)
{
SetsItem setsObject;
if(!valueSetsSetsItem["SetId"].isNull())
setsObject.setId = valueSetsSetsItem["SetId"].asString();
if(!valueSetsSetsItem["Status"].isNull())
setsObject.status = valueSetsSetsItem["Status"].asString();
if(!valueSetsSetsItem["Photos"].isNull())
setsObject.photos = std::stol(valueSetsSetsItem["Photos"].asString());
if(!valueSetsSetsItem["CreateTime"].isNull())
setsObject.createTime = valueSetsSetsItem["CreateTime"].asString();
if(!valueSetsSetsItem["ModifyTime"].isNull())
setsObject.modifyTime = valueSetsSetsItem["ModifyTime"].asString();
sets_.push_back(setsObject);
}
if(!value["NextMarker"].isNull())
nextMarker_ = value["NextMarker"].asString();
}
std::vector<ListTagSetsResult::SetsItem> ListTagSetsResult::getSets()const
{
return sets_;
}
std::string ListTagSetsResult::getNextMarker()const
{
return nextMarker_;
}

View File

@@ -1,115 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/PhotoProcessRequest.h>
using AlibabaCloud::Imm::Model::PhotoProcessRequest;
PhotoProcessRequest::PhotoProcessRequest() :
RpcServiceRequest("imm", "2017-09-06", "PhotoProcess")
{}
PhotoProcessRequest::~PhotoProcessRequest()
{}
std::string PhotoProcessRequest::getProject()const
{
return project_;
}
void PhotoProcessRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string PhotoProcessRequest::getExternalID()const
{
return externalID_;
}
void PhotoProcessRequest::setExternalID(const std::string& externalID)
{
externalID_ = externalID;
setCoreParameter("ExternalID", externalID);
}
std::string PhotoProcessRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void PhotoProcessRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string PhotoProcessRequest::getNotifyEndpoint()const
{
return notifyEndpoint_;
}
void PhotoProcessRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
{
notifyEndpoint_ = notifyEndpoint;
setCoreParameter("NotifyEndpoint", notifyEndpoint);
}
std::string PhotoProcessRequest::getNotifyTopicName()const
{
return notifyTopicName_;
}
void PhotoProcessRequest::setNotifyTopicName(const std::string& notifyTopicName)
{
notifyTopicName_ = notifyTopicName;
setCoreParameter("NotifyTopicName", notifyTopicName);
}
std::string PhotoProcessRequest::getSrcUri()const
{
return srcUri_;
}
void PhotoProcessRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setCoreParameter("SrcUri", srcUri);
}
std::string PhotoProcessRequest::getStyle()const
{
return style_;
}
void PhotoProcessRequest::setStyle(const std::string& style)
{
style_ = style;
setCoreParameter("Style", style);
}
std::string PhotoProcessRequest::getTgtUri()const
{
return tgtUri_;
}
void PhotoProcessRequest::setTgtUri(const std::string& tgtUri)
{
tgtUri_ = tgtUri;
setCoreParameter("TgtUri", tgtUri);
}

View File

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

View File

@@ -1,115 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/RegistFaceRequest.h>
using AlibabaCloud::Imm::Model::RegistFaceRequest;
RegistFaceRequest::RegistFaceRequest() :
RpcServiceRequest("imm", "2017-09-06", "RegistFace")
{}
RegistFaceRequest::~RegistFaceRequest()
{}
bool RegistFaceRequest::getChooseBiggestFace()const
{
return chooseBiggestFace_;
}
void RegistFaceRequest::setChooseBiggestFace(bool chooseBiggestFace)
{
chooseBiggestFace_ = chooseBiggestFace;
setCoreParameter("ChooseBiggestFace", chooseBiggestFace ? "true" : "false");
}
bool RegistFaceRequest::getIsQualityLimit()const
{
return isQualityLimit_;
}
void RegistFaceRequest::setIsQualityLimit(bool isQualityLimit)
{
isQualityLimit_ = isQualityLimit;
setCoreParameter("IsQualityLimit", isQualityLimit ? "true" : "false");
}
std::string RegistFaceRequest::getProject()const
{
return project_;
}
void RegistFaceRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string RegistFaceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void RegistFaceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string RegistFaceRequest::getGroupName()const
{
return groupName_;
}
void RegistFaceRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string RegistFaceRequest::getSrcUri()const
{
return srcUri_;
}
void RegistFaceRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setCoreParameter("SrcUri", srcUri);
}
std::string RegistFaceRequest::getRegisterCheckLevel()const
{
return registerCheckLevel_;
}
void RegistFaceRequest::setRegisterCheckLevel(const std::string& registerCheckLevel)
{
registerCheckLevel_ = registerCheckLevel;
setCoreParameter("RegisterCheckLevel", registerCheckLevel);
}
std::string RegistFaceRequest::getUser()const
{
return user_;
}
void RegistFaceRequest::setUser(const std::string& user)
{
user_ = user;
setCoreParameter("User", user);
}

View File

@@ -1,157 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/RegistFaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
RegistFaceResult::RegistFaceResult() :
ServiceResult()
{}
RegistFaceResult::RegistFaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RegistFaceResult::~RegistFaceResult()
{}
void RegistFaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAxis = value["Axis"]["Axis"];
for (const auto &item : allAxis)
axis_.push_back(item.asString());
if(!value["GroupId"].isNull())
groupId_ = value["GroupId"].asString();
if(!value["ImageUri"].isNull())
imageUri_ = value["ImageUri"].asString();
if(!value["ImageMd5"].isNull())
imageMd5_ = value["ImageMd5"].asString();
if(!value["ImageId"].isNull())
imageId_ = value["ImageId"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["User"].isNull())
user_ = value["User"].asString();
if(!value["Roll"].isNull())
roll_ = std::stof(value["Roll"].asString());
if(!value["FaceId"].isNull())
faceId_ = value["FaceId"].asString();
if(!value["Yaw"].isNull())
yaw_ = std::stof(value["Yaw"].asString());
if(!value["Quality"].isNull())
quality_ = std::stof(value["Quality"].asString());
if(!value["Glasses"].isNull())
glasses_ = std::stoi(value["Glasses"].asString());
if(!value["Hat"].isNull())
hat_ = std::stoi(value["Hat"].asString());
if(!value["Pitch"].isNull())
pitch_ = std::stof(value["Pitch"].asString());
if(!value["Age"].isNull())
age_ = std::stoi(value["Age"].asString());
if(!value["Gender"].isNull())
gender_ = value["Gender"].asString();
}
std::string RegistFaceResult::getGroupName()const
{
return groupName_;
}
std::string RegistFaceResult::getFaceId()const
{
return faceId_;
}
std::string RegistFaceResult::getUser()const
{
return user_;
}
std::string RegistFaceResult::getGender()const
{
return gender_;
}
std::string RegistFaceResult::getImageUri()const
{
return imageUri_;
}
float RegistFaceResult::getYaw()const
{
return yaw_;
}
std::string RegistFaceResult::getGroupId()const
{
return groupId_;
}
float RegistFaceResult::getQuality()const
{
return quality_;
}
std::string RegistFaceResult::getImageId()const
{
return imageId_;
}
int RegistFaceResult::getGlasses()const
{
return glasses_;
}
float RegistFaceResult::getPitch()const
{
return pitch_;
}
int RegistFaceResult::getHat()const
{
return hat_;
}
float RegistFaceResult::getRoll()const
{
return roll_;
}
std::vector<std::string> RegistFaceResult::getAxis()const
{
return axis_;
}
std::string RegistFaceResult::getImageMd5()const
{
return imageMd5_;
}
int RegistFaceResult::getAge()const
{
return age_;
}

View File

@@ -1,104 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/SearchFaceRequest.h>
using AlibabaCloud::Imm::Model::SearchFaceRequest;
SearchFaceRequest::SearchFaceRequest() :
RpcServiceRequest("imm", "2017-09-06", "SearchFace")
{}
SearchFaceRequest::~SearchFaceRequest()
{}
int SearchFaceRequest::getResultNum()const
{
return resultNum_;
}
void SearchFaceRequest::setResultNum(int resultNum)
{
resultNum_ = resultNum;
setCoreParameter("ResultNum", std::to_string(resultNum));
}
std::string SearchFaceRequest::getProject()const
{
return project_;
}
void SearchFaceRequest::setProject(const std::string& project)
{
project_ = project;
setCoreParameter("Project", project);
}
std::string SearchFaceRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void SearchFaceRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string SearchFaceRequest::getSearchThresholdLevel()const
{
return searchThresholdLevel_;
}
void SearchFaceRequest::setSearchThresholdLevel(const std::string& searchThresholdLevel)
{
searchThresholdLevel_ = searchThresholdLevel;
setCoreParameter("SearchThresholdLevel", searchThresholdLevel);
}
bool SearchFaceRequest::getIsThreshold()const
{
return isThreshold_;
}
void SearchFaceRequest::setIsThreshold(bool isThreshold)
{
isThreshold_ = isThreshold;
setCoreParameter("IsThreshold", isThreshold ? "true" : "false");
}
std::string SearchFaceRequest::getGroupName()const
{
return groupName_;
}
void SearchFaceRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string SearchFaceRequest::getSrcUri()const
{
return srcUri_;
}
void SearchFaceRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setCoreParameter("SrcUri", srcUri);
}

View File

@@ -1,115 +0,0 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/SearchFaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
SearchFaceResult::SearchFaceResult() :
ServiceResult()
{}
SearchFaceResult::SearchFaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
SearchFaceResult::~SearchFaceResult()
{}
void SearchFaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResultFacesNode = value["ResultFaces"]["ResultFacesItem"];
for (auto valueResultFacesResultFacesItem : allResultFacesNode)
{
ResultFacesItem resultFacesObject;
if(!valueResultFacesResultFacesItem["GroupId"].isNull())
resultFacesObject.groupId = valueResultFacesResultFacesItem["GroupId"].asString();
if(!valueResultFacesResultFacesItem["User"].isNull())
resultFacesObject.user = valueResultFacesResultFacesItem["User"].asString();
if(!valueResultFacesResultFacesItem["ImageId"].isNull())
resultFacesObject.imageId = valueResultFacesResultFacesItem["ImageId"].asString();
if(!valueResultFacesResultFacesItem["Score"].isNull())
resultFacesObject.score = std::stof(valueResultFacesResultFacesItem["Score"].asString());
if(!valueResultFacesResultFacesItem["ImageUri"].isNull())
resultFacesObject.imageUri = valueResultFacesResultFacesItem["ImageUri"].asString();
if(!valueResultFacesResultFacesItem["Glasses"].isNull())
resultFacesObject.glasses = std::stoi(valueResultFacesResultFacesItem["Glasses"].asString());
if(!valueResultFacesResultFacesItem["Hat"].isNull())
resultFacesObject.hat = std::stoi(valueResultFacesResultFacesItem["Hat"].asString());
auto allAxis1 = value["Axis"]["Axis"];
for (auto value : allAxis1)
resultFacesObject.axis1.push_back(value.asString());
resultFaces_.push_back(resultFacesObject);
}
auto allAxis = value["Axis"]["Axis"];
for (const auto &item : allAxis)
axis_.push_back(item.asString());
if(!value["ImageUri"].isNull())
imageUri_ = value["ImageUri"].asString();
if(!value["GroupName"].isNull())
groupName_ = value["GroupName"].asString();
if(!value["Glasses"].isNull())
glasses_ = std::stoi(value["Glasses"].asString());
if(!value["Hat"].isNull())
hat_ = std::stoi(value["Hat"].asString());
if(!value["Score"].isNull())
score_ = std::stof(value["Score"].asString());
}
std::string SearchFaceResult::getGroupName()const
{
return groupName_;
}
float SearchFaceResult::getScore()const
{
return score_;
}
std::vector<SearchFaceResult::ResultFacesItem> SearchFaceResult::getResultFaces()const
{
return resultFaces_;
}
int SearchFaceResult::getGlasses()const
{
return glasses_;
}
int SearchFaceResult::getHat()const
{
return hat_;
}
std::string SearchFaceResult::getImageUri()const
{
return imageUri_;
}
std::vector<std::string> SearchFaceResult::getAxis()const
{
return axis_;
}