IMM SDK Auto Released By zhengrui.lj,Version:1.35.0

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-03-28 11:20:44 +08:00
parent 97716c02e9
commit 1befab93b1
371 changed files with 34985 additions and 2 deletions

3329
imm/src/ImmClient.cc Executable file

File diff suppressed because it is too large Load Diff

View File

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

View File

@@ -0,0 +1,70 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/CompareFaceResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
CompareFaceResult::CompareFaceResult() :
ServiceResult()
{}
CompareFaceResult::CompareFaceResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CompareFaceResult::~CompareFaceResult()
{}
void CompareFaceResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allCompareResult = value["CompareResult"]["CompareResultItem"];
for (auto value : allCompareResult)
{
CompareResultItem compareResultObject;
if(!value["Similarity"].isNull())
compareResultObject.similarity = std::stof(value["Similarity"].asString());
auto faceANode = value["FaceA"];
if(!faceANode["ImageUri"].isNull())
compareResultObject.faceA.imageUri = faceANode["ImageUri"].asString();
auto allAxis = faceANode["Axis"]["Axis"];
for (auto value : allAxis)
compareResultObject.faceA.axis.push_back(value.asString());
auto faceBNode = value["FaceB"];
if(!faceBNode["ImageUri"].isNull())
compareResultObject.faceB.imageUri = faceBNode["ImageUri"].asString();
auto allAxis1 = faceBNode["Axis"]["Axis"];
for (auto value : allAxis1)
compareResultObject.faceB.axis1.push_back(value.asString());
compareResult_.push_back(compareResultObject);
}
}
std::vector<CompareFaceResult::CompareResultItem> CompareFaceResult::getCompareResult()const
{
return compareResult_;
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/CompareImageFacesRequest.h>
using AlibabaCloud::Imm::Model::CompareImageFacesRequest;
CompareImageFacesRequest::CompareImageFacesRequest() :
RpcServiceRequest("imm", "2017-09-06", "CompareImageFaces")
{}
CompareImageFacesRequest::~CompareImageFacesRequest()
{}
std::string CompareImageFacesRequest::getRegionId()const
{
return regionId_;
}
void CompareImageFacesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CompareImageFacesRequest::getImageUriB()const
{
return imageUriB_;
}
void CompareImageFacesRequest::setImageUriB(const std::string& imageUriB)
{
imageUriB_ = imageUriB;
setParameter("ImageUriB", imageUriB);
}
std::string CompareImageFacesRequest::getImageUriA()const
{
return imageUriA_;
}
void CompareImageFacesRequest::setImageUriA(const std::string& imageUriA)
{
imageUriA_ = imageUriA;
setParameter("ImageUriA", imageUriA);
}
std::string CompareImageFacesRequest::getProject()const
{
return project_;
}
void CompareImageFacesRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
std::string CompareImageFacesRequest::getSetId()const
{
return setId_;
}
void CompareImageFacesRequest::setSetId(const std::string& setId)
{
setId_ = setId;
setParameter("SetId", setId);
}
std::string CompareImageFacesRequest::getFaceIdA()const
{
return faceIdA_;
}
void CompareImageFacesRequest::setFaceIdA(const std::string& faceIdA)
{
faceIdA_ = faceIdA;
setParameter("FaceIdA", faceIdA);
}
std::string CompareImageFacesRequest::getFaceIdB()const
{
return faceIdB_;
}
void CompareImageFacesRequest::setFaceIdB(const std::string& faceIdB)
{
faceIdB_ = faceIdB;
setParameter("FaceIdB", faceIdB);
}
std::string CompareImageFacesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CompareImageFacesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,95 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/CompareImageFacesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
CompareImageFacesResult::CompareImageFacesResult() :
ServiceResult()
{}
CompareImageFacesResult::CompareImageFacesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CompareImageFacesResult::~CompareImageFacesResult()
{}
void CompareImageFacesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto faceANode = value["FaceA"];
if(!faceANode["FaceId"].isNull())
faceA_.faceId = faceANode["FaceId"].asString();
auto faceAttributesNode = faceANode["FaceAttributes"];
auto faceBoundaryNode = faceAttributesNode["FaceBoundary"];
if(!faceBoundaryNode["Left"].isNull())
faceA_.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString());
if(!faceBoundaryNode["Top"].isNull())
faceA_.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString());
if(!faceBoundaryNode["Width"].isNull())
faceA_.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString());
if(!faceBoundaryNode["Height"].isNull())
faceA_.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString());
auto faceBNode = value["FaceB"];
if(!faceBNode["FaceId"].isNull())
faceB_.faceId = faceBNode["FaceId"].asString();
auto faceAttributes1Node = faceBNode["FaceAttributes"];
auto faceBoundary2Node = faceAttributes1Node["FaceBoundary"];
if(!faceBoundary2Node["Left"].isNull())
faceB_.faceAttributes1.faceBoundary2.left = std::stoi(faceBoundary2Node["Left"].asString());
if(!faceBoundary2Node["Top"].isNull())
faceB_.faceAttributes1.faceBoundary2.top = std::stoi(faceBoundary2Node["Top"].asString());
if(!faceBoundary2Node["Width"].isNull())
faceB_.faceAttributes1.faceBoundary2.width = std::stoi(faceBoundary2Node["Width"].asString());
if(!faceBoundary2Node["Height"].isNull())
faceB_.faceAttributes1.faceBoundary2.height = std::stoi(faceBoundary2Node["Height"].asString());
if(!value["SetId"].isNull())
setId_ = value["SetId"].asString();
if(!value["Similarity"].isNull())
similarity_ = std::stof(value["Similarity"].asString());
}
float CompareImageFacesResult::getSimilarity()const
{
return similarity_;
}
CompareImageFacesResult::FaceA CompareImageFacesResult::getFaceA()const
{
return faceA_;
}
std::string CompareImageFacesResult::getSetId()const
{
return setId_;
}
CompareImageFacesResult::FaceB CompareImageFacesResult::getFaceB()const
{
return faceB_;
}

View File

@@ -0,0 +1,269 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/ConvertOfficeFormatRequest.h>
using AlibabaCloud::Imm::Model::ConvertOfficeFormatRequest;
ConvertOfficeFormatRequest::ConvertOfficeFormatRequest() :
RpcServiceRequest("imm", "2017-09-06", "ConvertOfficeFormat")
{}
ConvertOfficeFormatRequest::~ConvertOfficeFormatRequest()
{}
std::string ConvertOfficeFormatRequest::getSrcType()const
{
return srcType_;
}
void ConvertOfficeFormatRequest::setSrcType(const std::string& srcType)
{
srcType_ = srcType;
setParameter("SrcType", srcType);
}
std::string ConvertOfficeFormatRequest::getModelId()const
{
return modelId_;
}
void ConvertOfficeFormatRequest::setModelId(const std::string& modelId)
{
modelId_ = modelId;
setParameter("ModelId", modelId);
}
std::string ConvertOfficeFormatRequest::getProject()const
{
return project_;
}
void ConvertOfficeFormatRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
long ConvertOfficeFormatRequest::getMaxSheetRow()const
{
return maxSheetRow_;
}
void ConvertOfficeFormatRequest::setMaxSheetRow(long maxSheetRow)
{
maxSheetRow_ = maxSheetRow;
setParameter("MaxSheetRow", std::to_string(maxSheetRow));
}
long ConvertOfficeFormatRequest::getMaxSheetCount()const
{
return maxSheetCount_;
}
void ConvertOfficeFormatRequest::setMaxSheetCount(long maxSheetCount)
{
maxSheetCount_ = maxSheetCount;
setParameter("MaxSheetCount", std::to_string(maxSheetCount));
}
long ConvertOfficeFormatRequest::getEndPage()const
{
return endPage_;
}
void ConvertOfficeFormatRequest::setEndPage(long endPage)
{
endPage_ = endPage;
setParameter("EndPage", std::to_string(endPage));
}
std::string ConvertOfficeFormatRequest::getTgtFileSuffix()const
{
return tgtFileSuffix_;
}
void ConvertOfficeFormatRequest::setTgtFileSuffix(const std::string& tgtFileSuffix)
{
tgtFileSuffix_ = tgtFileSuffix;
setParameter("TgtFileSuffix", tgtFileSuffix);
}
bool ConvertOfficeFormatRequest::getPdfVector()const
{
return pdfVector_;
}
void ConvertOfficeFormatRequest::setPdfVector(bool pdfVector)
{
pdfVector_ = pdfVector;
setParameter("PdfVector", pdfVector ? "true" : "false");
}
std::string ConvertOfficeFormatRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void ConvertOfficeFormatRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
bool ConvertOfficeFormatRequest::getSheetOnePage()const
{
return sheetOnePage_;
}
void ConvertOfficeFormatRequest::setSheetOnePage(bool sheetOnePage)
{
sheetOnePage_ = sheetOnePage;
setParameter("SheetOnePage", sheetOnePage ? "true" : "false");
}
std::string ConvertOfficeFormatRequest::getPassword()const
{
return password_;
}
void ConvertOfficeFormatRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
}
long ConvertOfficeFormatRequest::getStartPage()const
{
return startPage_;
}
void ConvertOfficeFormatRequest::setStartPage(long startPage)
{
startPage_ = startPage;
setParameter("StartPage", std::to_string(startPage));
}
long ConvertOfficeFormatRequest::getMaxSheetCol()const
{
return maxSheetCol_;
}
void ConvertOfficeFormatRequest::setMaxSheetCol(long maxSheetCol)
{
maxSheetCol_ = maxSheetCol;
setParameter("MaxSheetCol", std::to_string(maxSheetCol));
}
std::string ConvertOfficeFormatRequest::getTgtType()const
{
return tgtType_;
}
void ConvertOfficeFormatRequest::setTgtType(const std::string& tgtType)
{
tgtType_ = tgtType;
setParameter("TgtType", tgtType);
}
std::string ConvertOfficeFormatRequest::getRegionId()const
{
return regionId_;
}
void ConvertOfficeFormatRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
bool ConvertOfficeFormatRequest::getFitToPagesWide()const
{
return fitToPagesWide_;
}
void ConvertOfficeFormatRequest::setFitToPagesWide(bool fitToPagesWide)
{
fitToPagesWide_ = fitToPagesWide;
setParameter("FitToPagesWide", fitToPagesWide ? "true" : "false");
}
bool ConvertOfficeFormatRequest::getHidecomments()const
{
return hidecomments_;
}
void ConvertOfficeFormatRequest::setHidecomments(bool hidecomments)
{
hidecomments_ = hidecomments;
setParameter("Hidecomments", hidecomments ? "true" : "false");
}
std::string ConvertOfficeFormatRequest::getTgtFilePrefix()const
{
return tgtFilePrefix_;
}
void ConvertOfficeFormatRequest::setTgtFilePrefix(const std::string& tgtFilePrefix)
{
tgtFilePrefix_ = tgtFilePrefix;
setParameter("TgtFilePrefix", tgtFilePrefix);
}
bool ConvertOfficeFormatRequest::getFitToPagesTall()const
{
return fitToPagesTall_;
}
void ConvertOfficeFormatRequest::setFitToPagesTall(bool fitToPagesTall)
{
fitToPagesTall_ = fitToPagesTall;
setParameter("FitToPagesTall", fitToPagesTall ? "true" : "false");
}
std::string ConvertOfficeFormatRequest::getSrcUri()const
{
return srcUri_;
}
void ConvertOfficeFormatRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setParameter("SrcUri", srcUri);
}
std::string ConvertOfficeFormatRequest::getTgtFilePages()const
{
return tgtFilePages_;
}
void ConvertOfficeFormatRequest::setTgtFilePages(const std::string& tgtFilePages)
{
tgtFilePages_ = tgtFilePages;
setParameter("TgtFilePages", tgtFilePages);
}
std::string ConvertOfficeFormatRequest::getTgtUri()const
{
return tgtUri_;
}
void ConvertOfficeFormatRequest::setTgtUri(const std::string& tgtUri)
{
tgtUri_ = tgtUri;
setParameter("TgtUri", tgtUri);
}

View File

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

View File

@@ -0,0 +1,214 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/CreateCADConversionTaskRequest.h>
using AlibabaCloud::Imm::Model::CreateCADConversionTaskRequest;
CreateCADConversionTaskRequest::CreateCADConversionTaskRequest() :
RpcServiceRequest("imm", "2017-09-06", "CreateCADConversionTask")
{}
CreateCADConversionTaskRequest::~CreateCADConversionTaskRequest()
{}
std::string CreateCADConversionTaskRequest::getSrcType()const
{
return srcType_;
}
void CreateCADConversionTaskRequest::setSrcType(const std::string& srcType)
{
srcType_ = srcType;
setParameter("SrcType", srcType);
}
int CreateCADConversionTaskRequest::getBaseCol()const
{
return baseCol_;
}
void CreateCADConversionTaskRequest::setBaseCol(int baseCol)
{
baseCol_ = baseCol;
setParameter("BaseCol", std::to_string(baseCol));
}
std::string CreateCADConversionTaskRequest::getNotifyTopicName()const
{
return notifyTopicName_;
}
void CreateCADConversionTaskRequest::setNotifyTopicName(const std::string& notifyTopicName)
{
notifyTopicName_ = notifyTopicName;
setParameter("NotifyTopicName", notifyTopicName);
}
long CreateCADConversionTaskRequest::getUnitWidth()const
{
return unitWidth_;
}
void CreateCADConversionTaskRequest::setUnitWidth(long unitWidth)
{
unitWidth_ = unitWidth;
setParameter("UnitWidth", std::to_string(unitWidth));
}
int CreateCADConversionTaskRequest::getZoomLevel()const
{
return zoomLevel_;
}
void CreateCADConversionTaskRequest::setZoomLevel(int zoomLevel)
{
zoomLevel_ = zoomLevel;
setParameter("ZoomLevel", std::to_string(zoomLevel));
}
int CreateCADConversionTaskRequest::getBaseRow()const
{
return baseRow_;
}
void CreateCADConversionTaskRequest::setBaseRow(int baseRow)
{
baseRow_ = baseRow;
setParameter("BaseRow", std::to_string(baseRow));
}
std::string CreateCADConversionTaskRequest::getModelId()const
{
return modelId_;
}
void CreateCADConversionTaskRequest::setModelId(const std::string& modelId)
{
modelId_ = modelId;
setParameter("ModelId", modelId);
}
std::string CreateCADConversionTaskRequest::getProject()const
{
return project_;
}
void CreateCADConversionTaskRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
int CreateCADConversionTaskRequest::getZoomFactor()const
{
return zoomFactor_;
}
void CreateCADConversionTaskRequest::setZoomFactor(int zoomFactor)
{
zoomFactor_ = zoomFactor;
setParameter("ZoomFactor", std::to_string(zoomFactor));
}
std::string CreateCADConversionTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateCADConversionTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateCADConversionTaskRequest::getTgtType()const
{
return tgtType_;
}
void CreateCADConversionTaskRequest::setTgtType(const std::string& tgtType)
{
tgtType_ = tgtType;
setParameter("TgtType", tgtType);
}
long CreateCADConversionTaskRequest::getUnitHeight()const
{
return unitHeight_;
}
void CreateCADConversionTaskRequest::setUnitHeight(long unitHeight)
{
unitHeight_ = unitHeight;
setParameter("UnitHeight", std::to_string(unitHeight));
}
std::string CreateCADConversionTaskRequest::getRegionId()const
{
return regionId_;
}
void CreateCADConversionTaskRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateCADConversionTaskRequest::getNotifyEndpoint()const
{
return notifyEndpoint_;
}
void CreateCADConversionTaskRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
{
notifyEndpoint_ = notifyEndpoint;
setParameter("NotifyEndpoint", notifyEndpoint);
}
std::string CreateCADConversionTaskRequest::getSrcUri()const
{
return srcUri_;
}
void CreateCADConversionTaskRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setParameter("SrcUri", srcUri);
}
bool CreateCADConversionTaskRequest::getThumbnails()const
{
return thumbnails_;
}
void CreateCADConversionTaskRequest::setThumbnails(bool thumbnails)
{
thumbnails_ = thumbnails;
setParameter("Thumbnails", thumbnails ? "true" : "false");
}
std::string CreateCADConversionTaskRequest::getTgtUri()const
{
return tgtUri_;
}
void CreateCADConversionTaskRequest::setTgtUri(const std::string& tgtUri)
{
tgtUri_ = tgtUri;
setParameter("TgtUri", tgtUri);
}

View File

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

View File

@@ -0,0 +1,170 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/CreateDocIndexTaskRequest.h>
using AlibabaCloud::Imm::Model::CreateDocIndexTaskRequest;
CreateDocIndexTaskRequest::CreateDocIndexTaskRequest() :
RpcServiceRequest("imm", "2017-09-06", "CreateDocIndexTask")
{}
CreateDocIndexTaskRequest::~CreateDocIndexTaskRequest()
{}
std::string CreateDocIndexTaskRequest::getCustomKey1()const
{
return customKey1_;
}
void CreateDocIndexTaskRequest::setCustomKey1(const std::string& customKey1)
{
customKey1_ = customKey1;
setParameter("CustomKey1", customKey1);
}
std::string CreateDocIndexTaskRequest::getSet()const
{
return set_;
}
void CreateDocIndexTaskRequest::setSet(const std::string& set)
{
set_ = set;
setParameter("Set", set);
}
std::string CreateDocIndexTaskRequest::getCustomKey5()const
{
return customKey5_;
}
void CreateDocIndexTaskRequest::setCustomKey5(const std::string& customKey5)
{
customKey5_ = customKey5;
setParameter("CustomKey5", customKey5);
}
std::string CreateDocIndexTaskRequest::getCustomKey4()const
{
return customKey4_;
}
void CreateDocIndexTaskRequest::setCustomKey4(const std::string& customKey4)
{
customKey4_ = customKey4;
setParameter("CustomKey4", customKey4);
}
std::string CreateDocIndexTaskRequest::getCustomKey3()const
{
return customKey3_;
}
void CreateDocIndexTaskRequest::setCustomKey3(const std::string& customKey3)
{
customKey3_ = customKey3;
setParameter("CustomKey3", customKey3);
}
std::string CreateDocIndexTaskRequest::getCustomKey2()const
{
return customKey2_;
}
void CreateDocIndexTaskRequest::setCustomKey2(const std::string& customKey2)
{
customKey2_ = customKey2;
setParameter("CustomKey2", customKey2);
}
std::string CreateDocIndexTaskRequest::getProject()const
{
return project_;
}
void CreateDocIndexTaskRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
std::string CreateDocIndexTaskRequest::getCustomKey6()const
{
return customKey6_;
}
void CreateDocIndexTaskRequest::setCustomKey6(const std::string& customKey6)
{
customKey6_ = customKey6;
setParameter("CustomKey6", customKey6);
}
std::string CreateDocIndexTaskRequest::getContentType()const
{
return contentType_;
}
void CreateDocIndexTaskRequest::setContentType(const std::string& contentType)
{
contentType_ = contentType;
setParameter("ContentType", contentType);
}
std::string CreateDocIndexTaskRequest::getRegionId()const
{
return regionId_;
}
void CreateDocIndexTaskRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateDocIndexTaskRequest::getName()const
{
return name_;
}
void CreateDocIndexTaskRequest::setName(const std::string& name)
{
name_ = name;
setParameter("Name", name);
}
std::string CreateDocIndexTaskRequest::getSrcUri()const
{
return srcUri_;
}
void CreateDocIndexTaskRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setParameter("SrcUri", srcUri);
}
std::string CreateDocIndexTaskRequest::getUniqueId()const
{
return uniqueId_;
}
void CreateDocIndexTaskRequest::setUniqueId(const std::string& uniqueId)
{
uniqueId_ = uniqueId;
setParameter("UniqueId", uniqueId);
}

View File

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

View File

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

View File

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

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

View File

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

View File

@@ -0,0 +1,313 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h>
using AlibabaCloud::Imm::Model::CreateOfficeConversionTaskRequest;
CreateOfficeConversionTaskRequest::CreateOfficeConversionTaskRequest() :
RpcServiceRequest("imm", "2017-09-06", "CreateOfficeConversionTask")
{}
CreateOfficeConversionTaskRequest::~CreateOfficeConversionTaskRequest()
{}
std::string CreateOfficeConversionTaskRequest::getSrcType()const
{
return srcType_;
}
void CreateOfficeConversionTaskRequest::setSrcType(const std::string& srcType)
{
srcType_ = srcType;
setParameter("SrcType", srcType);
}
std::string CreateOfficeConversionTaskRequest::getProject()const
{
return project_;
}
void CreateOfficeConversionTaskRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
std::string CreateOfficeConversionTaskRequest::getIdempotentToken()const
{
return idempotentToken_;
}
void CreateOfficeConversionTaskRequest::setIdempotentToken(const std::string& idempotentToken)
{
idempotentToken_ = idempotentToken;
setParameter("IdempotentToken", idempotentToken);
}
bool CreateOfficeConversionTaskRequest::getPdfVector()const
{
return pdfVector_;
}
void CreateOfficeConversionTaskRequest::setPdfVector(bool pdfVector)
{
pdfVector_ = pdfVector;
setParameter("PdfVector", pdfVector ? "true" : "false");
}
std::string CreateOfficeConversionTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateOfficeConversionTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateOfficeConversionTaskRequest::getPassword()const
{
return password_;
}
void CreateOfficeConversionTaskRequest::setPassword(const std::string& password)
{
password_ = password;
setParameter("Password", password);
}
long CreateOfficeConversionTaskRequest::getStartPage()const
{
return startPage_;
}
void CreateOfficeConversionTaskRequest::setStartPage(long startPage)
{
startPage_ = startPage;
setParameter("StartPage", std::to_string(startPage));
}
std::string CreateOfficeConversionTaskRequest::getRegionId()const
{
return regionId_;
}
void CreateOfficeConversionTaskRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateOfficeConversionTaskRequest::getNotifyEndpoint()const
{
return notifyEndpoint_;
}
void CreateOfficeConversionTaskRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
{
notifyEndpoint_ = notifyEndpoint;
setParameter("NotifyEndpoint", notifyEndpoint);
}
bool CreateOfficeConversionTaskRequest::getFitToPagesWide()const
{
return fitToPagesWide_;
}
void CreateOfficeConversionTaskRequest::setFitToPagesWide(bool fitToPagesWide)
{
fitToPagesWide_ = fitToPagesWide;
setParameter("FitToPagesWide", fitToPagesWide ? "true" : "false");
}
std::string CreateOfficeConversionTaskRequest::getTgtFilePrefix()const
{
return tgtFilePrefix_;
}
void CreateOfficeConversionTaskRequest::setTgtFilePrefix(const std::string& tgtFilePrefix)
{
tgtFilePrefix_ = tgtFilePrefix;
setParameter("TgtFilePrefix", tgtFilePrefix);
}
std::string CreateOfficeConversionTaskRequest::getNotifyTopicName()const
{
return notifyTopicName_;
}
void CreateOfficeConversionTaskRequest::setNotifyTopicName(const std::string& notifyTopicName)
{
notifyTopicName_ = notifyTopicName;
setParameter("NotifyTopicName", notifyTopicName);
}
std::string CreateOfficeConversionTaskRequest::getModelId()const
{
return modelId_;
}
void CreateOfficeConversionTaskRequest::setModelId(const std::string& modelId)
{
modelId_ = modelId;
setParameter("ModelId", modelId);
}
int CreateOfficeConversionTaskRequest::getDisplayDpi()const
{
return displayDpi_;
}
void CreateOfficeConversionTaskRequest::setDisplayDpi(int displayDpi)
{
displayDpi_ = displayDpi;
setParameter("DisplayDpi", std::to_string(displayDpi));
}
long CreateOfficeConversionTaskRequest::getMaxSheetRow()const
{
return maxSheetRow_;
}
void CreateOfficeConversionTaskRequest::setMaxSheetRow(long maxSheetRow)
{
maxSheetRow_ = maxSheetRow;
setParameter("MaxSheetRow", std::to_string(maxSheetRow));
}
long CreateOfficeConversionTaskRequest::getMaxSheetCount()const
{
return maxSheetCount_;
}
void CreateOfficeConversionTaskRequest::setMaxSheetCount(long maxSheetCount)
{
maxSheetCount_ = maxSheetCount;
setParameter("MaxSheetCount", std::to_string(maxSheetCount));
}
long CreateOfficeConversionTaskRequest::getEndPage()const
{
return endPage_;
}
void CreateOfficeConversionTaskRequest::setEndPage(long endPage)
{
endPage_ = endPage;
setParameter("EndPage", std::to_string(endPage));
}
std::string CreateOfficeConversionTaskRequest::getTgtFileSuffix()const
{
return tgtFileSuffix_;
}
void CreateOfficeConversionTaskRequest::setTgtFileSuffix(const std::string& tgtFileSuffix)
{
tgtFileSuffix_ = tgtFileSuffix;
setParameter("TgtFileSuffix", tgtFileSuffix);
}
bool CreateOfficeConversionTaskRequest::getSheetOnePage()const
{
return sheetOnePage_;
}
void CreateOfficeConversionTaskRequest::setSheetOnePage(bool sheetOnePage)
{
sheetOnePage_ = sheetOnePage;
setParameter("SheetOnePage", sheetOnePage ? "true" : "false");
}
long CreateOfficeConversionTaskRequest::getMaxSheetCol()const
{
return maxSheetCol_;
}
void CreateOfficeConversionTaskRequest::setMaxSheetCol(long maxSheetCol)
{
maxSheetCol_ = maxSheetCol;
setParameter("MaxSheetCol", std::to_string(maxSheetCol));
}
std::string CreateOfficeConversionTaskRequest::getTgtType()const
{
return tgtType_;
}
void CreateOfficeConversionTaskRequest::setTgtType(const std::string& tgtType)
{
tgtType_ = tgtType;
setParameter("TgtType", tgtType);
}
bool CreateOfficeConversionTaskRequest::getHidecomments()const
{
return hidecomments_;
}
void CreateOfficeConversionTaskRequest::setHidecomments(bool hidecomments)
{
hidecomments_ = hidecomments;
setParameter("Hidecomments", hidecomments ? "true" : "false");
}
bool CreateOfficeConversionTaskRequest::getFitToPagesTall()const
{
return fitToPagesTall_;
}
void CreateOfficeConversionTaskRequest::setFitToPagesTall(bool fitToPagesTall)
{
fitToPagesTall_ = fitToPagesTall;
setParameter("FitToPagesTall", fitToPagesTall ? "true" : "false");
}
std::string CreateOfficeConversionTaskRequest::getSrcUri()const
{
return srcUri_;
}
void CreateOfficeConversionTaskRequest::setSrcUri(const std::string& srcUri)
{
srcUri_ = srcUri;
setParameter("SrcUri", srcUri);
}
std::string CreateOfficeConversionTaskRequest::getTgtFilePages()const
{
return tgtFilePages_;
}
void CreateOfficeConversionTaskRequest::setTgtFilePages(const std::string& tgtFilePages)
{
tgtFilePages_ = tgtFilePages;
setParameter("TgtFilePages", tgtFilePages);
}
std::string CreateOfficeConversionTaskRequest::getTgtUri()const
{
return tgtUri_;
}
void CreateOfficeConversionTaskRequest::setTgtUri(const std::string& tgtUri)
{
tgtUri_ = tgtUri;
setParameter("TgtUri", tgtUri);
}

View File

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

View File

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

View File

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

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

101
imm/src/model/CreateSetResult.cc Executable file
View File

@@ -0,0 +1,101 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/CreateSetResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
CreateSetResult::CreateSetResult() :
ServiceResult()
{}
CreateSetResult::CreateSetResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSetResult::~CreateSetResult()
{}
void CreateSetResult::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["SetName"].isNull())
setName_ = value["SetName"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["ModifyTime"].isNull())
modifyTime_ = value["ModifyTime"].asString();
if(!value["FaceCount"].isNull())
faceCount_ = std::stoi(value["FaceCount"].asString());
if(!value["ImageCount"].isNull())
imageCount_ = std::stoi(value["ImageCount"].asString());
if(!value["VideoCount"].isNull())
videoCount_ = std::stoi(value["VideoCount"].asString());
if(!value["VideoLength"].isNull())
videoLength_ = std::stoi(value["VideoLength"].asString());
}
std::string CreateSetResult::getModifyTime()const
{
return modifyTime_;
}
int CreateSetResult::getImageCount()const
{
return imageCount_;
}
int CreateSetResult::getVideoCount()const
{
return videoCount_;
}
std::string CreateSetResult::getCreateTime()const
{
return createTime_;
}
std::string CreateSetResult::getSetName()const
{
return setName_;
}
std::string CreateSetResult::getSetId()const
{
return setId_;
}
int CreateSetResult::getFaceCount()const
{
return faceCount_;
}
int CreateSetResult::getVideoLength()const
{
return videoLength_;
}

View File

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

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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

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

View File

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

@@ -0,0 +1,159 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h>
using AlibabaCloud::Imm::Model::CreateVideoAnalyseTaskRequest;
CreateVideoAnalyseTaskRequest::CreateVideoAnalyseTaskRequest() :
RpcServiceRequest("imm", "2017-09-06", "CreateVideoAnalyseTask")
{}
CreateVideoAnalyseTaskRequest::~CreateVideoAnalyseTaskRequest()
{}
std::string CreateVideoAnalyseTaskRequest::getNotifyTopicName()const
{
return notifyTopicName_;
}
void CreateVideoAnalyseTaskRequest::setNotifyTopicName(const std::string& notifyTopicName)
{
notifyTopicName_ = notifyTopicName;
setParameter("NotifyTopicName", notifyTopicName);
}
std::string CreateVideoAnalyseTaskRequest::getGrabType()const
{
return grabType_;
}
void CreateVideoAnalyseTaskRequest::setGrabType(const std::string& grabType)
{
grabType_ = grabType;
setParameter("GrabType", grabType);
}
std::string CreateVideoAnalyseTaskRequest::getProject()const
{
return project_;
}
void CreateVideoAnalyseTaskRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
std::string CreateVideoAnalyseTaskRequest::getEndTime()const
{
return endTime_;
}
void CreateVideoAnalyseTaskRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setParameter("EndTime", endTime);
}
std::string CreateVideoAnalyseTaskRequest::getStartTime()const
{
return startTime_;
}
void CreateVideoAnalyseTaskRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setParameter("StartTime", startTime);
}
std::string CreateVideoAnalyseTaskRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateVideoAnalyseTaskRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string CreateVideoAnalyseTaskRequest::getVideoUri()const
{
return videoUri_;
}
void CreateVideoAnalyseTaskRequest::setVideoUri(const std::string& videoUri)
{
videoUri_ = videoUri;
setParameter("VideoUri", videoUri);
}
bool CreateVideoAnalyseTaskRequest::getSaveType()const
{
return saveType_;
}
void CreateVideoAnalyseTaskRequest::setSaveType(bool saveType)
{
saveType_ = saveType;
setParameter("SaveType", saveType ? "true" : "false");
}
std::string CreateVideoAnalyseTaskRequest::getRegionId()const
{
return regionId_;
}
void CreateVideoAnalyseTaskRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string CreateVideoAnalyseTaskRequest::getNotifyEndpoint()const
{
return notifyEndpoint_;
}
void CreateVideoAnalyseTaskRequest::setNotifyEndpoint(const std::string& notifyEndpoint)
{
notifyEndpoint_ = notifyEndpoint;
setParameter("NotifyEndpoint", notifyEndpoint);
}
std::string CreateVideoAnalyseTaskRequest::getInterval()const
{
return interval_;
}
void CreateVideoAnalyseTaskRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setParameter("Interval", interval);
}
std::string CreateVideoAnalyseTaskRequest::getTgtUri()const
{
return tgtUri_;
}
void CreateVideoAnalyseTaskRequest::setTgtUri(const std::string& tgtUri)
{
tgtUri_ = tgtUri;
setParameter("TgtUri", tgtUri);
}

View File

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

View File

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

View File

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

View File

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

View File

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

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

View File

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

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

View File

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

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

View File

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

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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

View File

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

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

View File

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

View File

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

View File

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

View File

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

View File

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

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

View File

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

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

View File

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

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

View File

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

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,62 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/DescribeRegionsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
DescribeRegionsResult::DescribeRegionsResult() :
ServiceResult()
{}
DescribeRegionsResult::DescribeRegionsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeRegionsResult::~DescribeRegionsResult()
{}
void DescribeRegionsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto regionsNode = value["Regions"];
auto allRegion = value["Region"]["RegionItem"];
for (auto value : allRegion)
{
Regions::RegionItem regionItemObject;
if(!value["RegionId"].isNull())
regionItemObject.regionId = value["RegionId"].asString();
auto allProjectTypes = value["ProjectTypes"]["ProjectTypes"];
for (auto value : allProjectTypes)
regionItemObject.projectTypes.push_back(value.asString());
regions_.region.push_back(regionItemObject);
}
}
DescribeRegionsResult::Regions DescribeRegionsResult::getRegions()const
{
return regions_;
}

View File

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

View File

@@ -0,0 +1,102 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/DetectClothesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
DetectClothesResult::DetectClothesResult() :
ServiceResult()
{}
DetectClothesResult::DetectClothesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectClothesResult::~DetectClothesResult()
{}
void DetectClothesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSuccessDetails = value["SuccessDetails"]["SuccessDetailsItem"];
for (auto value : allSuccessDetails)
{
SuccessDetailsItem successDetailsObject;
if(!value["SrcUri"].isNull())
successDetailsObject.srcUri = value["SrcUri"].asString();
if(!value["Time"].isNull())
successDetailsObject.time = value["Time"].asString();
if(!value["GetImageTime"].isNull())
successDetailsObject.getImageTime = value["GetImageTime"].asString();
if(!value["DetectTime"].isNull())
successDetailsObject.detectTime = value["DetectTime"].asString();
auto allClothesBoxDetail = value["ClothesBoxDetail"]["ClothesBoxDetailItem"];
for (auto value : allClothesBoxDetail)
{
SuccessDetailsItem::ClothesBoxDetailItem clothesBoxDetailObject;
if(!value["PUID"].isNull())
clothesBoxDetailObject.pUID = value["PUID"].asString();
if(!value["Type"].isNull())
clothesBoxDetailObject.type = value["Type"].asString();
if(!value["Score"].isNull())
clothesBoxDetailObject.score = std::stof(value["Score"].asString());
auto allBox = value["Box"]["Box"];
for (auto value : allBox)
clothesBoxDetailObject.box.push_back(value.asString());
successDetailsObject.clothesBoxDetail.push_back(clothesBoxDetailObject);
}
successDetails_.push_back(successDetailsObject);
}
auto allFailDetails = value["FailDetails"]["FailDetailsItem"];
for (auto value : allFailDetails)
{
FailDetailsItem failDetailsObject;
if(!value["SrcUri"].isNull())
failDetailsObject.srcUri = value["SrcUri"].asString();
if(!value["Reason"].isNull())
failDetailsObject.reason = value["Reason"].asString();
failDetails_.push_back(failDetailsObject);
}
auto allSrcUris = value["SrcUris"]["SrcUris"];
for (const auto &item : allSrcUris)
srcUris_.push_back(item.asString());
}
std::vector<DetectClothesResult::SuccessDetailsItem> DetectClothesResult::getSuccessDetails()const
{
return successDetails_;
}
std::vector<std::string> DetectClothesResult::getSrcUris()const
{
return srcUris_;
}
std::vector<DetectClothesResult::FailDetailsItem> DetectClothesResult::getFailDetails()const
{
return failDetails_;
}

View File

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

View File

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

View File

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

View File

@@ -0,0 +1,133 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/DetectImageFacesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
DetectImageFacesResult::DetectImageFacesResult() :
ServiceResult()
{}
DetectImageFacesResult::DetectImageFacesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectImageFacesResult::~DetectImageFacesResult()
{}
void DetectImageFacesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFaces = value["Faces"]["FacesItem"];
for (auto value : allFaces)
{
FacesItem facesObject;
if(!value["FaceId"].isNull())
facesObject.faceId = value["FaceId"].asString();
if(!value["FaceConfidence"].isNull())
facesObject.faceConfidence = std::stof(value["FaceConfidence"].asString());
if(!value["Age"].isNull())
facesObject.age = std::stoi(value["Age"].asString());
if(!value["Gender"].isNull())
facesObject.gender = value["Gender"].asString();
if(!value["Emotion"].isNull())
facesObject.emotion = value["Emotion"].asString();
if(!value["Attractive"].isNull())
facesObject.attractive = std::stof(value["Attractive"].asString());
if(!value["GenderConfidence"].isNull())
facesObject.genderConfidence = std::stof(value["GenderConfidence"].asString());
if(!value["AgeConfidence"].isNull())
facesObject.ageConfidence = std::stof(value["AgeConfidence"].asString());
if(!value["AttractiveConfidence"].isNull())
facesObject.attractiveConfidence = std::stof(value["AttractiveConfidence"].asString());
if(!value["EmotionConfidence"].isNull())
facesObject.emotionConfidence = std::stof(value["EmotionConfidence"].asString());
if(!value["FaceQuality"].isNull())
facesObject.faceQuality = std::stof(value["FaceQuality"].asString());
auto faceAttributesNode = value["FaceAttributes"];
if(!faceAttributesNode["Glasses"].isNull())
facesObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString();
if(!faceAttributesNode["Beard"].isNull())
facesObject.faceAttributes.beard = faceAttributesNode["Beard"].asString();
if(!faceAttributesNode["Race"].isNull())
facesObject.faceAttributes.race = faceAttributesNode["Race"].asString();
if(!faceAttributesNode["Mask"].isNull())
facesObject.faceAttributes.mask = faceAttributesNode["Mask"].asString();
if(!faceAttributesNode["GlassesConfidence"].isNull())
facesObject.faceAttributes.glassesConfidence = std::stof(faceAttributesNode["GlassesConfidence"].asString());
if(!faceAttributesNode["BeardConfidence"].isNull())
facesObject.faceAttributes.beardConfidence = std::stof(faceAttributesNode["BeardConfidence"].asString());
if(!faceAttributesNode["RaceConfidence"].isNull())
facesObject.faceAttributes.raceConfidence = std::stof(faceAttributesNode["RaceConfidence"].asString());
if(!faceAttributesNode["MaskConfidence"].isNull())
facesObject.faceAttributes.maskConfidence = std::stof(faceAttributesNode["MaskConfidence"].asString());
auto faceBoundaryNode = faceAttributesNode["FaceBoundary"];
if(!faceBoundaryNode["Left"].isNull())
facesObject.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString());
if(!faceBoundaryNode["Top"].isNull())
facesObject.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString());
if(!faceBoundaryNode["Width"].isNull())
facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString());
if(!faceBoundaryNode["Height"].isNull())
facesObject.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString());
auto headPoseNode = faceAttributesNode["HeadPose"];
if(!headPoseNode["Pitch"].isNull())
facesObject.faceAttributes.headPose.pitch = std::stof(headPoseNode["Pitch"].asString());
if(!headPoseNode["Roll"].isNull())
facesObject.faceAttributes.headPose.roll = std::stof(headPoseNode["Roll"].asString());
if(!headPoseNode["Yaw"].isNull())
facesObject.faceAttributes.headPose.yaw = std::stof(headPoseNode["Yaw"].asString());
auto emotionDetailsNode = value["EmotionDetails"];
if(!emotionDetailsNode["HAPPY"].isNull())
facesObject.emotionDetails.hAPPY = std::stof(emotionDetailsNode["HAPPY"].asString());
if(!emotionDetailsNode["SAD"].isNull())
facesObject.emotionDetails.sAD = std::stof(emotionDetailsNode["SAD"].asString());
if(!emotionDetailsNode["ANGRY"].isNull())
facesObject.emotionDetails.aNGRY = std::stof(emotionDetailsNode["ANGRY"].asString());
if(!emotionDetailsNode["SURPRISED"].isNull())
facesObject.emotionDetails.sURPRISED = std::stof(emotionDetailsNode["SURPRISED"].asString());
if(!emotionDetailsNode["SCARED"].isNull())
facesObject.emotionDetails.sCARED = std::stof(emotionDetailsNode["SCARED"].asString());
if(!emotionDetailsNode["DISGUSTED"].isNull())
facesObject.emotionDetails.dISGUSTED = std::stof(emotionDetailsNode["DISGUSTED"].asString());
if(!emotionDetailsNode["CALM"].isNull())
facesObject.emotionDetails.cALM = std::stof(emotionDetailsNode["CALM"].asString());
faces_.push_back(facesObject);
}
if(!value["ImageUri"].isNull())
imageUri_ = value["ImageUri"].asString();
}
std::string DetectImageFacesResult::getImageUri()const
{
return imageUri_;
}
std::vector<DetectImageFacesResult::FacesItem> DetectImageFacesResult::getFaces()const
{
return faces_;
}

View File

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

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/DetectImageLogosResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
DetectImageLogosResult::DetectImageLogosResult() :
ServiceResult()
{}
DetectImageLogosResult::DetectImageLogosResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectImageLogosResult::~DetectImageLogosResult()
{}
void DetectImageLogosResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allLogos = value["Logos"]["LogosItem"];
for (auto value : allLogos)
{
LogosItem logosObject;
if(!value["LogoName"].isNull())
logosObject.logoName = value["LogoName"].asString();
if(!value["LogoConfidence"].isNull())
logosObject.logoConfidence = std::stof(value["LogoConfidence"].asString());
auto logoBoundaryNode = value["LogoBoundary"];
if(!logoBoundaryNode["Width"].isNull())
logosObject.logoBoundary.width = std::stoi(logoBoundaryNode["Width"].asString());
if(!logoBoundaryNode["Height"].isNull())
logosObject.logoBoundary.height = std::stoi(logoBoundaryNode["Height"].asString());
if(!logoBoundaryNode["Top"].isNull())
logosObject.logoBoundary.top = std::stoi(logoBoundaryNode["Top"].asString());
if(!logoBoundaryNode["Left"].isNull())
logosObject.logoBoundary.left = std::stoi(logoBoundaryNode["Left"].asString());
logos_.push_back(logosObject);
}
if(!value["ImageUri"].isNull())
imageUri_ = value["ImageUri"].asString();
}
std::vector<DetectImageLogosResult::LogosItem> DetectImageLogosResult::getLogos()const
{
return logos_;
}
std::string DetectImageLogosResult::getImageUri()const
{
return imageUri_;
}

View File

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

View File

@@ -0,0 +1,75 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DetectImageTagsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
DetectImageTagsResult::DetectImageTagsResult() :
ServiceResult()
{}
DetectImageTagsResult::DetectImageTagsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectImageTagsResult::~DetectImageTagsResult()
{}
void DetectImageTagsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allTags = value["Tags"]["TagsItem"];
for (auto value : allTags)
{
TagsItem tagsObject;
if(!value["TagName"].isNull())
tagsObject.tagName = value["TagName"].asString();
if(!value["TagConfidence"].isNull())
tagsObject.tagConfidence = std::stof(value["TagConfidence"].asString());
if(!value["TagLevel"].isNull())
tagsObject.tagLevel = std::stoi(value["TagLevel"].asString());
if(!value["ParentTagName"].isNull())
tagsObject.parentTagName = value["ParentTagName"].asString();
if(!value["ParentTagEnName"].isNull())
tagsObject.parentTagEnName = value["ParentTagEnName"].asString();
if(!value["TagEnName"].isNull())
tagsObject.tagEnName = value["TagEnName"].asString();
tags_.push_back(tagsObject);
}
if(!value["ImageUri"].isNull())
imageUri_ = value["ImageUri"].asString();
}
std::string DetectImageTagsResult::getImageUri()const
{
return imageUri_;
}
std::vector<DetectImageTagsResult::TagsItem> DetectImageTagsResult::getTags()const
{
return tags_;
}

View File

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

View File

@@ -0,0 +1,76 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/DetectImageTextsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
DetectImageTextsResult::DetectImageTextsResult() :
ServiceResult()
{}
DetectImageTextsResult::DetectImageTextsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectImageTextsResult::~DetectImageTextsResult()
{}
void DetectImageTextsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allOCR = value["OCR"]["OCRItem"];
for (auto value : allOCR)
{
OCRItem oCRObject;
if(!value["OCRContents"].isNull())
oCRObject.oCRContents = value["OCRContents"].asString();
if(!value["OCRConfidence"].isNull())
oCRObject.oCRConfidence = std::stof(value["OCRConfidence"].asString());
auto oCRBoundaryNode = value["OCRBoundary"];
if(!oCRBoundaryNode["Left"].isNull())
oCRObject.oCRBoundary.left = std::stoi(oCRBoundaryNode["Left"].asString());
if(!oCRBoundaryNode["Top"].isNull())
oCRObject.oCRBoundary.top = std::stoi(oCRBoundaryNode["Top"].asString());
if(!oCRBoundaryNode["Width"].isNull())
oCRObject.oCRBoundary.width = std::stoi(oCRBoundaryNode["Width"].asString());
if(!oCRBoundaryNode["Height"].isNull())
oCRObject.oCRBoundary.height = std::stoi(oCRBoundaryNode["Height"].asString());
oCR_.push_back(oCRObject);
}
if(!value["ImageUri"].isNull())
imageUri_ = value["ImageUri"].asString();
}
std::string DetectImageTextsResult::getImageUri()const
{
return imageUri_;
}
std::vector<DetectImageTextsResult::OCRItem> DetectImageTextsResult::getOCR()const
{
return oCR_;
}

View File

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

102
imm/src/model/DetectLogoResult.cc Executable file
View File

@@ -0,0 +1,102 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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 allSuccessDetails = value["SuccessDetails"]["SuccessDetailsItem"];
for (auto value : allSuccessDetails)
{
SuccessDetailsItem successDetailsObject;
if(!value["SrcUri"].isNull())
successDetailsObject.srcUri = value["SrcUri"].asString();
if(!value["Time"].isNull())
successDetailsObject.time = value["Time"].asString();
if(!value["GetImageTime"].isNull())
successDetailsObject.getImageTime = value["GetImageTime"].asString();
if(!value["DetectTime"].isNull())
successDetailsObject.detectTime = value["DetectTime"].asString();
auto allLogoBoxDetail = value["LogoBoxDetail"]["LogoBoxDetailItem"];
for (auto value : allLogoBoxDetail)
{
SuccessDetailsItem::LogoBoxDetailItem logoBoxDetailObject;
if(!value["PUID"].isNull())
logoBoxDetailObject.pUID = value["PUID"].asString();
if(!value["Type"].isNull())
logoBoxDetailObject.type = value["Type"].asString();
if(!value["Score"].isNull())
logoBoxDetailObject.score = std::stof(value["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 allFailDetails = value["FailDetails"]["FailDetailsItem"];
for (auto value : allFailDetails)
{
FailDetailsItem failDetailsObject;
if(!value["SrcUri"].isNull())
failDetailsObject.srcUri = value["SrcUri"].asString();
if(!value["Reason"].isNull())
failDetailsObject.reason = value["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

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

View File

@@ -0,0 +1,92 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/DetectQRCodesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
DetectQRCodesResult::DetectQRCodesResult() :
ServiceResult()
{}
DetectQRCodesResult::DetectQRCodesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DetectQRCodesResult::~DetectQRCodesResult()
{}
void DetectQRCodesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allSuccessDetails = value["SuccessDetails"]["SuccessDetailsItem"];
for (auto value : allSuccessDetails)
{
SuccessDetailsItem successDetailsObject;
if(!value["SrcUri"].isNull())
successDetailsObject.srcUri = value["SrcUri"].asString();
auto allQRCodes = value["QRCodes"]["QRCodesItem"];
for (auto value : allQRCodes)
{
SuccessDetailsItem::QRCodesItem qRCodesObject;
if(!value["Content"].isNull())
qRCodesObject.content = value["Content"].asString();
auto qRCodesRectangleNode = value["QRCodesRectangle"];
if(!qRCodesRectangleNode["Left"].isNull())
qRCodesObject.qRCodesRectangle.left = qRCodesRectangleNode["Left"].asString();
if(!qRCodesRectangleNode["Top"].isNull())
qRCodesObject.qRCodesRectangle.top = qRCodesRectangleNode["Top"].asString();
if(!qRCodesRectangleNode["Width"].isNull())
qRCodesObject.qRCodesRectangle.width = qRCodesRectangleNode["Width"].asString();
if(!qRCodesRectangleNode["Height"].isNull())
qRCodesObject.qRCodesRectangle.height = qRCodesRectangleNode["Height"].asString();
successDetailsObject.qRCodes.push_back(qRCodesObject);
}
successDetails_.push_back(successDetailsObject);
}
auto allFailDetails = value["FailDetails"]["FailDetailsItem"];
for (auto value : allFailDetails)
{
FailDetailsItem failDetailsObject;
if(!value["SrcUri"].isNull())
failDetailsObject.srcUri = value["SrcUri"].asString();
if(!value["ErrorCode"].isNull())
failDetailsObject.errorCode = value["ErrorCode"].asString();
if(!value["ErrorMessage"].isNull())
failDetailsObject.errorMessage = value["ErrorMessage"].asString();
failDetails_.push_back(failDetailsObject);
}
}
std::vector<DetectQRCodesResult::SuccessDetailsItem> DetectQRCodesResult::getSuccessDetails()const
{
return successDetails_;
}
std::vector<DetectQRCodesResult::FailDetailsItem> DetectQRCodesResult::getFailDetails()const
{
return failDetails_;
}

View File

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

View File

@@ -0,0 +1,98 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/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 allSuccessDetails = value["SuccessDetails"]["SuccessDetailsItem"];
for (auto value : allSuccessDetails)
{
SuccessDetailsItem successDetailsObject;
if(!value["SrcUri"].isNull())
successDetailsObject.srcUri = value["SrcUri"].asString();
auto allTags = value["Tags"]["TagsItem"];
for (auto value : allTags)
{
SuccessDetailsItem::TagsItem tagsObject;
if(!value["TagId"].isNull())
tagsObject.tagId = value["TagId"].asString();
if(!value["TagLevel"].isNull())
tagsObject.tagLevel = value["TagLevel"].asString();
if(!value["TagName"].isNull())
tagsObject.tagName = value["TagName"].asString();
if(!value["ParentTagId"].isNull())
tagsObject.parentTagId = value["ParentTagId"].asString();
if(!value["ParentTagName"].isNull())
tagsObject.parentTagName = value["ParentTagName"].asString();
if(!value["TagScore"].isNull())
tagsObject.tagScore = value["TagScore"].asString();
successDetailsObject.tags.push_back(tagsObject);
}
successDetails_.push_back(successDetailsObject);
}
auto allFailDetails = value["FailDetails"]["FailDetailsItem"];
for (auto value : allFailDetails)
{
FailDetailsItem failDetailsObject;
if(!value["SrcUri"].isNull())
failDetailsObject.srcUri = value["SrcUri"].asString();
if(!value["Reason"].isNull())
failDetailsObject.reason = value["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

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

View File

@@ -0,0 +1,262 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/FindImagesByTagNamesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
FindImagesByTagNamesResult::FindImagesByTagNamesResult() :
ServiceResult()
{}
FindImagesByTagNamesResult::FindImagesByTagNamesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
FindImagesByTagNamesResult::~FindImagesByTagNamesResult()
{}
void FindImagesByTagNamesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allImages = value["Images"]["Frames"];
for (auto value : allImages)
{
Frames imagesObject;
if(!value["FacesModifyTime"].isNull())
imagesObject.facesModifyTime = value["FacesModifyTime"].asString();
if(!value["OCRModifyTime"].isNull())
imagesObject.oCRModifyTime = value["OCRModifyTime"].asString();
if(!value["OCRStatus"].isNull())
imagesObject.oCRStatus = value["OCRStatus"].asString();
if(!value["SourcePosition"].isNull())
imagesObject.sourcePosition = value["SourcePosition"].asString();
if(!value["Exif"].isNull())
imagesObject.exif = value["Exif"].asString();
if(!value["ImageUri"].isNull())
imagesObject.imageUri = value["ImageUri"].asString();
if(!value["ImageWidth"].isNull())
imagesObject.imageWidth = std::stoi(value["ImageWidth"].asString());
if(!value["ImageFormat"].isNull())
imagesObject.imageFormat = value["ImageFormat"].asString();
if(!value["SourceType"].isNull())
imagesObject.sourceType = value["SourceType"].asString();
if(!value["ModifyTime"].isNull())
imagesObject.modifyTime = value["ModifyTime"].asString();
if(!value["FileSize"].isNull())
imagesObject.fileSize = std::stoi(value["FileSize"].asString());
if(!value["SourceUri"].isNull())
imagesObject.sourceUri = value["SourceUri"].asString();
if(!value["CreateTime"].isNull())
imagesObject.createTime = value["CreateTime"].asString();
if(!value["FacesStatus"].isNull())
imagesObject.facesStatus = value["FacesStatus"].asString();
if(!value["RemarksA"].isNull())
imagesObject.remarksA = value["RemarksA"].asString();
if(!value["ImageHeight"].isNull())
imagesObject.imageHeight = std::stoi(value["ImageHeight"].asString());
if(!value["RemarksB"].isNull())
imagesObject.remarksB = value["RemarksB"].asString();
if(!value["ImageTime"].isNull())
imagesObject.imageTime = value["ImageTime"].asString();
if(!value["Orientation"].isNull())
imagesObject.orientation = value["Orientation"].asString();
if(!value["Location"].isNull())
imagesObject.location = value["Location"].asString();
if(!value["OCRFailReason"].isNull())
imagesObject.oCRFailReason = value["OCRFailReason"].asString();
if(!value["FacesFailReason"].isNull())
imagesObject.facesFailReason = value["FacesFailReason"].asString();
if(!value["TagsFailReason"].isNull())
imagesObject.tagsFailReason = value["TagsFailReason"].asString();
if(!value["TagsModifyTime"].isNull())
imagesObject.tagsModifyTime = value["TagsModifyTime"].asString();
if(!value["CelebrityStatus"].isNull())
imagesObject.celebrityStatus = value["CelebrityStatus"].asString();
if(!value["CelebrityModifyTime"].isNull())
imagesObject.celebrityModifyTime = value["CelebrityModifyTime"].asString();
if(!value["CelebrityFailReason"].isNull())
imagesObject.celebrityFailReason = value["CelebrityFailReason"].asString();
if(!value["TagsStatus"].isNull())
imagesObject.tagsStatus = value["TagsStatus"].asString();
if(!value["ExternalId"].isNull())
imagesObject.externalId = value["ExternalId"].asString();
if(!value["RemarksC"].isNull())
imagesObject.remarksC = value["RemarksC"].asString();
if(!value["RemarksD"].isNull())
imagesObject.remarksD = value["RemarksD"].asString();
auto allFaces = value["Faces"]["FacesItem"];
for (auto value : allFaces)
{
Frames::FacesItem facesObject;
if(!value["Age"].isNull())
facesObject.age = std::stoi(value["Age"].asString());
if(!value["GenderConfidence"].isNull())
facesObject.genderConfidence = std::stof(value["GenderConfidence"].asString());
if(!value["Attractive"].isNull())
facesObject.attractive = std::stof(value["Attractive"].asString());
if(!value["Gender"].isNull())
facesObject.gender = value["Gender"].asString();
if(!value["FaceConfidence"].isNull())
facesObject.faceConfidence = std::stof(value["FaceConfidence"].asString());
if(!value["Emotion"].isNull())
facesObject.emotion = value["Emotion"].asString();
if(!value["FaceId"].isNull())
facesObject.faceId = value["FaceId"].asString();
if(!value["EmotionConfidence"].isNull())
facesObject.emotionConfidence = std::stof(value["EmotionConfidence"].asString());
if(!value["GroupId"].isNull())
facesObject.groupId = value["GroupId"].asString();
if(!value["FaceQuality"].isNull())
facesObject.faceQuality = std::stof(value["FaceQuality"].asString());
auto emotionDetailsNode = value["EmotionDetails"];
if(!emotionDetailsNode["SAD"].isNull())
facesObject.emotionDetails.sAD = std::stof(emotionDetailsNode["SAD"].asString());
if(!emotionDetailsNode["CALM"].isNull())
facesObject.emotionDetails.cALM = std::stof(emotionDetailsNode["CALM"].asString());
if(!emotionDetailsNode["ANGRY"].isNull())
facesObject.emotionDetails.aNGRY = std::stof(emotionDetailsNode["ANGRY"].asString());
if(!emotionDetailsNode["HAPPY"].isNull())
facesObject.emotionDetails.hAPPY = std::stof(emotionDetailsNode["HAPPY"].asString());
if(!emotionDetailsNode["SCARED"].isNull())
facesObject.emotionDetails.sCARED = std::stof(emotionDetailsNode["SCARED"].asString());
if(!emotionDetailsNode["DISGUSTED"].isNull())
facesObject.emotionDetails.dISGUSTED = std::stof(emotionDetailsNode["DISGUSTED"].asString());
if(!emotionDetailsNode["SURPRISED"].isNull())
facesObject.emotionDetails.sURPRISED = std::stof(emotionDetailsNode["SURPRISED"].asString());
auto faceAttributesNode = value["FaceAttributes"];
if(!faceAttributesNode["GlassesConfidence"].isNull())
facesObject.faceAttributes.glassesConfidence = std::stof(faceAttributesNode["GlassesConfidence"].asString());
if(!faceAttributesNode["Glasses"].isNull())
facesObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString();
if(!faceAttributesNode["RaceConfidence"].isNull())
facesObject.faceAttributes.raceConfidence = std::stof(faceAttributesNode["RaceConfidence"].asString());
if(!faceAttributesNode["Beard"].isNull())
facesObject.faceAttributes.beard = faceAttributesNode["Beard"].asString();
if(!faceAttributesNode["MaskConfidence"].isNull())
facesObject.faceAttributes.maskConfidence = std::stof(faceAttributesNode["MaskConfidence"].asString());
if(!faceAttributesNode["Race"].isNull())
facesObject.faceAttributes.race = faceAttributesNode["Race"].asString();
if(!faceAttributesNode["BeardConfidence"].isNull())
facesObject.faceAttributes.beardConfidence = std::stof(faceAttributesNode["BeardConfidence"].asString());
if(!faceAttributesNode["Mask"].isNull())
facesObject.faceAttributes.mask = faceAttributesNode["Mask"].asString();
auto faceBoundaryNode = faceAttributesNode["FaceBoundary"];
if(!faceBoundaryNode["Top"].isNull())
facesObject.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString());
if(!faceBoundaryNode["Height"].isNull())
facesObject.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString());
if(!faceBoundaryNode["Width"].isNull())
facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString());
if(!faceBoundaryNode["Left"].isNull())
facesObject.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString());
auto headPoseNode = faceAttributesNode["HeadPose"];
if(!headPoseNode["Pitch"].isNull())
facesObject.faceAttributes.headPose.pitch = std::stof(headPoseNode["Pitch"].asString());
if(!headPoseNode["Roll"].isNull())
facesObject.faceAttributes.headPose.roll = std::stof(headPoseNode["Roll"].asString());
if(!headPoseNode["Yaw"].isNull())
facesObject.faceAttributes.headPose.yaw = std::stof(headPoseNode["Yaw"].asString());
imagesObject.faces.push_back(facesObject);
}
auto allTags = value["Tags"]["TagsItem"];
for (auto value : allTags)
{
Frames::TagsItem tagsObject;
if(!value["TagConfidence"].isNull())
tagsObject.tagConfidence = std::stof(value["TagConfidence"].asString());
if(!value["TagLevel"].isNull())
tagsObject.tagLevel = std::stoi(value["TagLevel"].asString());
if(!value["TagName"].isNull())
tagsObject.tagName = value["TagName"].asString();
if(!value["ParentTagName"].isNull())
tagsObject.parentTagName = value["ParentTagName"].asString();
imagesObject.tags.push_back(tagsObject);
}
auto allOCR = value["OCR"]["OCRItem"];
for (auto value : allOCR)
{
Frames::OCRItem oCRObject;
if(!value["OCRContents"].isNull())
oCRObject.oCRContents = value["OCRContents"].asString();
if(!value["OCRConfidence"].isNull())
oCRObject.oCRConfidence = std::stof(value["OCRConfidence"].asString());
auto oCRBoundaryNode = value["OCRBoundary"];
if(!oCRBoundaryNode["Left"].isNull())
oCRObject.oCRBoundary.left = std::stoi(oCRBoundaryNode["Left"].asString());
if(!oCRBoundaryNode["Left"].isNull())
oCRObject.oCRBoundary.left1 = std::stoi(oCRBoundaryNode["Left"].asString());
if(!oCRBoundaryNode["Width"].isNull())
oCRObject.oCRBoundary.width = std::stoi(oCRBoundaryNode["Width"].asString());
if(!oCRBoundaryNode["Height"].isNull())
oCRObject.oCRBoundary.height = std::stoi(oCRBoundaryNode["Height"].asString());
imagesObject.oCR.push_back(oCRObject);
}
auto allCelebrity = value["Celebrity"]["CelebrityItem"];
for (auto value : allCelebrity)
{
Frames::CelebrityItem celebrityObject;
if(!value["CelebrityName"].isNull())
celebrityObject.celebrityName = value["CelebrityName"].asString();
if(!value["CelebrityGender"].isNull())
celebrityObject.celebrityGender = value["CelebrityGender"].asString();
if(!value["CelebrityConfidence"].isNull())
celebrityObject.celebrityConfidence = std::stof(value["CelebrityConfidence"].asString());
if(!value["CelebrityLibraryName"].isNull())
celebrityObject.celebrityLibraryName = value["CelebrityLibraryName"].asString();
auto celebrityBoundaryNode = value["CelebrityBoundary"];
if(!celebrityBoundaryNode["Left"].isNull())
celebrityObject.celebrityBoundary.left = std::stoi(celebrityBoundaryNode["Left"].asString());
if(!celebrityBoundaryNode["Top"].isNull())
celebrityObject.celebrityBoundary.top = std::stoi(celebrityBoundaryNode["Top"].asString());
if(!celebrityBoundaryNode["Width"].isNull())
celebrityObject.celebrityBoundary.width = std::stoi(celebrityBoundaryNode["Width"].asString());
if(!celebrityBoundaryNode["Height"].isNull())
celebrityObject.celebrityBoundary.height = std::stoi(celebrityBoundaryNode["Height"].asString());
imagesObject.celebrity.push_back(celebrityObject);
}
images_.push_back(imagesObject);
}
if(!value["SetId"].isNull())
setId_ = value["SetId"].asString();
if(!value["NextMarker"].isNull())
nextMarker_ = value["NextMarker"].asString();
}
std::vector<FindImagesByTagNamesResult::Frames> FindImagesByTagNamesResult::getImages()const
{
return images_;
}
std::string FindImagesByTagNamesResult::getSetId()const
{
return setId_;
}
std::string FindImagesByTagNamesResult::getNextMarker()const
{
return nextMarker_;
}

View File

@@ -0,0 +1,313 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/FindImagesRequest.h>
using AlibabaCloud::Imm::Model::FindImagesRequest;
FindImagesRequest::FindImagesRequest() :
RpcServiceRequest("imm", "2017-09-06", "FindImages")
{}
FindImagesRequest::~FindImagesRequest()
{}
std::string FindImagesRequest::getGender()const
{
return gender_;
}
void FindImagesRequest::setGender(const std::string& gender)
{
gender_ = gender;
setParameter("Gender", gender);
}
std::string FindImagesRequest::getProject()const
{
return project_;
}
void FindImagesRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
std::string FindImagesRequest::getExternalId()const
{
return externalId_;
}
void FindImagesRequest::setExternalId(const std::string& externalId)
{
externalId_ = externalId;
setParameter("ExternalId", externalId);
}
std::string FindImagesRequest::getImageSizeRange()const
{
return imageSizeRange_;
}
void FindImagesRequest::setImageSizeRange(const std::string& imageSizeRange)
{
imageSizeRange_ = imageSizeRange;
setParameter("ImageSizeRange", imageSizeRange);
}
std::string FindImagesRequest::getRemarksBPrefix()const
{
return remarksBPrefix_;
}
void FindImagesRequest::setRemarksBPrefix(const std::string& remarksBPrefix)
{
remarksBPrefix_ = remarksBPrefix;
setParameter("RemarksBPrefix", remarksBPrefix);
}
std::string FindImagesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void FindImagesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}
std::string FindImagesRequest::getLocationBoundary()const
{
return locationBoundary_;
}
void FindImagesRequest::setLocationBoundary(const std::string& locationBoundary)
{
locationBoundary_ = locationBoundary;
setParameter("LocationBoundary", locationBoundary);
}
std::string FindImagesRequest::getImageTimeRange()const
{
return imageTimeRange_;
}
void FindImagesRequest::setImageTimeRange(const std::string& imageTimeRange)
{
imageTimeRange_ = imageTimeRange;
setParameter("ImageTimeRange", imageTimeRange);
}
std::string FindImagesRequest::getRegionId()const
{
return regionId_;
}
void FindImagesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
std::string FindImagesRequest::getOCRContentsMatch()const
{
return oCRContentsMatch_;
}
void FindImagesRequest::setOCRContentsMatch(const std::string& oCRContentsMatch)
{
oCRContentsMatch_ = oCRContentsMatch;
setParameter("OCRContentsMatch", oCRContentsMatch);
}
int FindImagesRequest::getLimit()const
{
return limit_;
}
void FindImagesRequest::setLimit(int limit)
{
limit_ = limit;
setParameter("Limit", std::to_string(limit));
}
std::string FindImagesRequest::getRemarksDPrefix()const
{
return remarksDPrefix_;
}
void FindImagesRequest::setRemarksDPrefix(const std::string& remarksDPrefix)
{
remarksDPrefix_ = remarksDPrefix;
setParameter("RemarksDPrefix", remarksDPrefix);
}
std::string FindImagesRequest::getSourceType()const
{
return sourceType_;
}
void FindImagesRequest::setSourceType(const std::string& sourceType)
{
sourceType_ = sourceType;
setParameter("SourceType", sourceType);
}
std::string FindImagesRequest::getAgeRange()const
{
return ageRange_;
}
void FindImagesRequest::setAgeRange(const std::string& ageRange)
{
ageRange_ = ageRange;
setParameter("AgeRange", ageRange);
}
std::string FindImagesRequest::getOrder()const
{
return order_;
}
void FindImagesRequest::setOrder(const std::string& order)
{
order_ = order;
setParameter("Order", order);
}
std::string FindImagesRequest::getRemarksAPrefix()const
{
return remarksAPrefix_;
}
void FindImagesRequest::setRemarksAPrefix(const std::string& remarksAPrefix)
{
remarksAPrefix_ = remarksAPrefix;
setParameter("RemarksAPrefix", remarksAPrefix);
}
std::string FindImagesRequest::getGroupId()const
{
return groupId_;
}
void FindImagesRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setParameter("GroupId", groupId);
}
std::string FindImagesRequest::getOrderBy()const
{
return orderBy_;
}
void FindImagesRequest::setOrderBy(const std::string& orderBy)
{
orderBy_ = orderBy;
setParameter("OrderBy", orderBy);
}
std::string FindImagesRequest::getTagNames()const
{
return tagNames_;
}
void FindImagesRequest::setTagNames(const std::string& tagNames)
{
tagNames_ = tagNames;
setParameter("TagNames", tagNames);
}
std::string FindImagesRequest::getSourceUriPrefix()const
{
return sourceUriPrefix_;
}
void FindImagesRequest::setSourceUriPrefix(const std::string& sourceUriPrefix)
{
sourceUriPrefix_ = sourceUriPrefix;
setParameter("SourceUriPrefix", sourceUriPrefix);
}
std::string FindImagesRequest::getEmotion()const
{
return emotion_;
}
void FindImagesRequest::setEmotion(const std::string& emotion)
{
emotion_ = emotion;
setParameter("Emotion", emotion);
}
std::string FindImagesRequest::getMarker()const
{
return marker_;
}
void FindImagesRequest::setMarker(const std::string& marker)
{
marker_ = marker;
setParameter("Marker", marker);
}
std::string FindImagesRequest::getRemarksCPrefix()const
{
return remarksCPrefix_;
}
void FindImagesRequest::setRemarksCPrefix(const std::string& remarksCPrefix)
{
remarksCPrefix_ = remarksCPrefix;
setParameter("RemarksCPrefix", remarksCPrefix);
}
std::string FindImagesRequest::getCreateTimeRange()const
{
return createTimeRange_;
}
void FindImagesRequest::setCreateTimeRange(const std::string& createTimeRange)
{
createTimeRange_ = createTimeRange;
setParameter("CreateTimeRange", createTimeRange);
}
std::string FindImagesRequest::getSetId()const
{
return setId_;
}
void FindImagesRequest::setSetId(const std::string& setId)
{
setId_ = setId;
setParameter("SetId", setId);
}
std::string FindImagesRequest::getModifyTimeRange()const
{
return modifyTimeRange_;
}
void FindImagesRequest::setModifyTimeRange(const std::string& modifyTimeRange)
{
modifyTimeRange_ = modifyTimeRange;
setParameter("ModifyTimeRange", modifyTimeRange);
}

262
imm/src/model/FindImagesResult.cc Executable file
View File

@@ -0,0 +1,262 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/FindImagesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
FindImagesResult::FindImagesResult() :
ServiceResult()
{}
FindImagesResult::FindImagesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
FindImagesResult::~FindImagesResult()
{}
void FindImagesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allImages = value["Images"]["ImagesItem"];
for (auto value : allImages)
{
ImagesItem imagesObject;
if(!value["FacesModifyTime"].isNull())
imagesObject.facesModifyTime = value["FacesModifyTime"].asString();
if(!value["OCRModifyTime"].isNull())
imagesObject.oCRModifyTime = value["OCRModifyTime"].asString();
if(!value["OCRStatus"].isNull())
imagesObject.oCRStatus = value["OCRStatus"].asString();
if(!value["SourcePosition"].isNull())
imagesObject.sourcePosition = value["SourcePosition"].asString();
if(!value["Exif"].isNull())
imagesObject.exif = value["Exif"].asString();
if(!value["ImageUri"].isNull())
imagesObject.imageUri = value["ImageUri"].asString();
if(!value["ImageWidth"].isNull())
imagesObject.imageWidth = std::stoi(value["ImageWidth"].asString());
if(!value["ImageFormat"].isNull())
imagesObject.imageFormat = value["ImageFormat"].asString();
if(!value["SourceType"].isNull())
imagesObject.sourceType = value["SourceType"].asString();
if(!value["ModifyTime"].isNull())
imagesObject.modifyTime = value["ModifyTime"].asString();
if(!value["FileSize"].isNull())
imagesObject.fileSize = std::stoi(value["FileSize"].asString());
if(!value["SourceUri"].isNull())
imagesObject.sourceUri = value["SourceUri"].asString();
if(!value["CreateTime"].isNull())
imagesObject.createTime = value["CreateTime"].asString();
if(!value["FacesStatus"].isNull())
imagesObject.facesStatus = value["FacesStatus"].asString();
if(!value["RemarksA"].isNull())
imagesObject.remarksA = value["RemarksA"].asString();
if(!value["ImageHeight"].isNull())
imagesObject.imageHeight = std::stoi(value["ImageHeight"].asString());
if(!value["RemarksB"].isNull())
imagesObject.remarksB = value["RemarksB"].asString();
if(!value["ImageTime"].isNull())
imagesObject.imageTime = value["ImageTime"].asString();
if(!value["Orientation"].isNull())
imagesObject.orientation = value["Orientation"].asString();
if(!value["Location"].isNull())
imagesObject.location = value["Location"].asString();
if(!value["OCRFailReason"].isNull())
imagesObject.oCRFailReason = value["OCRFailReason"].asString();
if(!value["FacesFailReason"].isNull())
imagesObject.facesFailReason = value["FacesFailReason"].asString();
if(!value["TagsFailReason"].isNull())
imagesObject.tagsFailReason = value["TagsFailReason"].asString();
if(!value["TagsModifyTime"].isNull())
imagesObject.tagsModifyTime = value["TagsModifyTime"].asString();
if(!value["CelebrityStatus"].isNull())
imagesObject.celebrityStatus = value["CelebrityStatus"].asString();
if(!value["CelebrityModifyTime"].isNull())
imagesObject.celebrityModifyTime = value["CelebrityModifyTime"].asString();
if(!value["CelebrityFailReason"].isNull())
imagesObject.celebrityFailReason = value["CelebrityFailReason"].asString();
if(!value["TagsStatus"].isNull())
imagesObject.tagsStatus = value["TagsStatus"].asString();
if(!value["RemarksC"].isNull())
imagesObject.remarksC = value["RemarksC"].asString();
if(!value["RemarksD"].isNull())
imagesObject.remarksD = value["RemarksD"].asString();
if(!value["ExternalId"].isNull())
imagesObject.externalId = value["ExternalId"].asString();
auto allFaces = value["Faces"]["FacesItem"];
for (auto value : allFaces)
{
ImagesItem::FacesItem facesObject;
if(!value["Age"].isNull())
facesObject.age = std::stoi(value["Age"].asString());
if(!value["GenderConfidence"].isNull())
facesObject.genderConfidence = std::stof(value["GenderConfidence"].asString());
if(!value["Attractive"].isNull())
facesObject.attractive = std::stof(value["Attractive"].asString());
if(!value["Gender"].isNull())
facesObject.gender = value["Gender"].asString();
if(!value["FaceConfidence"].isNull())
facesObject.faceConfidence = std::stof(value["FaceConfidence"].asString());
if(!value["Emotion"].isNull())
facesObject.emotion = value["Emotion"].asString();
if(!value["FaceId"].isNull())
facesObject.faceId = value["FaceId"].asString();
if(!value["EmotionConfidence"].isNull())
facesObject.emotionConfidence = std::stof(value["EmotionConfidence"].asString());
if(!value["GroupId"].isNull())
facesObject.groupId = value["GroupId"].asString();
if(!value["FaceQuality"].isNull())
facesObject.faceQuality = std::stof(value["FaceQuality"].asString());
auto emotionDetailsNode = value["EmotionDetails"];
if(!emotionDetailsNode["SAD"].isNull())
facesObject.emotionDetails.sAD = std::stof(emotionDetailsNode["SAD"].asString());
if(!emotionDetailsNode["CALM"].isNull())
facesObject.emotionDetails.cALM = std::stof(emotionDetailsNode["CALM"].asString());
if(!emotionDetailsNode["ANGRY"].isNull())
facesObject.emotionDetails.aNGRY = std::stof(emotionDetailsNode["ANGRY"].asString());
if(!emotionDetailsNode["HAPPY"].isNull())
facesObject.emotionDetails.hAPPY = std::stof(emotionDetailsNode["HAPPY"].asString());
if(!emotionDetailsNode["SCARED"].isNull())
facesObject.emotionDetails.sCARED = std::stof(emotionDetailsNode["SCARED"].asString());
if(!emotionDetailsNode["DISGUSTED"].isNull())
facesObject.emotionDetails.dISGUSTED = std::stof(emotionDetailsNode["DISGUSTED"].asString());
if(!emotionDetailsNode["SURPRISED"].isNull())
facesObject.emotionDetails.sURPRISED = std::stof(emotionDetailsNode["SURPRISED"].asString());
auto faceAttributesNode = value["FaceAttributes"];
if(!faceAttributesNode["GlassesConfidence"].isNull())
facesObject.faceAttributes.glassesConfidence = std::stof(faceAttributesNode["GlassesConfidence"].asString());
if(!faceAttributesNode["Glasses"].isNull())
facesObject.faceAttributes.glasses = faceAttributesNode["Glasses"].asString();
if(!faceAttributesNode["RaceConfidence"].isNull())
facesObject.faceAttributes.raceConfidence = std::stof(faceAttributesNode["RaceConfidence"].asString());
if(!faceAttributesNode["Beard"].isNull())
facesObject.faceAttributes.beard = faceAttributesNode["Beard"].asString();
if(!faceAttributesNode["MaskConfidence"].isNull())
facesObject.faceAttributes.maskConfidence = std::stof(faceAttributesNode["MaskConfidence"].asString());
if(!faceAttributesNode["Race"].isNull())
facesObject.faceAttributes.race = faceAttributesNode["Race"].asString();
if(!faceAttributesNode["BeardConfidence"].isNull())
facesObject.faceAttributes.beardConfidence = std::stof(faceAttributesNode["BeardConfidence"].asString());
if(!faceAttributesNode["Mask"].isNull())
facesObject.faceAttributes.mask = faceAttributesNode["Mask"].asString();
auto faceBoundaryNode = faceAttributesNode["FaceBoundary"];
if(!faceBoundaryNode["Top"].isNull())
facesObject.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString());
if(!faceBoundaryNode["Height"].isNull())
facesObject.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString());
if(!faceBoundaryNode["Width"].isNull())
facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString());
if(!faceBoundaryNode["Left"].isNull())
facesObject.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString());
auto headPoseNode = faceAttributesNode["HeadPose"];
if(!headPoseNode["Pitch"].isNull())
facesObject.faceAttributes.headPose.pitch = std::stof(headPoseNode["Pitch"].asString());
if(!headPoseNode["Roll"].isNull())
facesObject.faceAttributes.headPose.roll = std::stof(headPoseNode["Roll"].asString());
if(!headPoseNode["Yaw"].isNull())
facesObject.faceAttributes.headPose.yaw = std::stof(headPoseNode["Yaw"].asString());
imagesObject.faces.push_back(facesObject);
}
auto allTags = value["Tags"]["TagsItem"];
for (auto value : allTags)
{
ImagesItem::TagsItem tagsObject;
if(!value["TagConfidence"].isNull())
tagsObject.tagConfidence = std::stof(value["TagConfidence"].asString());
if(!value["TagLevel"].isNull())
tagsObject.tagLevel = std::stoi(value["TagLevel"].asString());
if(!value["TagName"].isNull())
tagsObject.tagName = value["TagName"].asString();
if(!value["ParentTagName"].isNull())
tagsObject.parentTagName = value["ParentTagName"].asString();
imagesObject.tags.push_back(tagsObject);
}
auto allOCR = value["OCR"]["OCRItem"];
for (auto value : allOCR)
{
ImagesItem::OCRItem oCRObject;
if(!value["OCRContents"].isNull())
oCRObject.oCRContents = value["OCRContents"].asString();
if(!value["OCRConfidence"].isNull())
oCRObject.oCRConfidence = std::stof(value["OCRConfidence"].asString());
auto oCRBoundaryNode = value["OCRBoundary"];
if(!oCRBoundaryNode["Left"].isNull())
oCRObject.oCRBoundary.left = std::stoi(oCRBoundaryNode["Left"].asString());
if(!oCRBoundaryNode["Left"].isNull())
oCRObject.oCRBoundary.left1 = std::stoi(oCRBoundaryNode["Left"].asString());
if(!oCRBoundaryNode["Width"].isNull())
oCRObject.oCRBoundary.width = std::stoi(oCRBoundaryNode["Width"].asString());
if(!oCRBoundaryNode["Height"].isNull())
oCRObject.oCRBoundary.height = std::stoi(oCRBoundaryNode["Height"].asString());
imagesObject.oCR.push_back(oCRObject);
}
auto allCelebrity = value["Celebrity"]["CelebrityItem"];
for (auto value : allCelebrity)
{
ImagesItem::CelebrityItem celebrityObject;
if(!value["CelebrityName"].isNull())
celebrityObject.celebrityName = value["CelebrityName"].asString();
if(!value["CelebrityGender"].isNull())
celebrityObject.celebrityGender = value["CelebrityGender"].asString();
if(!value["CelebrityConfidence"].isNull())
celebrityObject.celebrityConfidence = std::stof(value["CelebrityConfidence"].asString());
if(!value["CelebrityLibraryName"].isNull())
celebrityObject.celebrityLibraryName = value["CelebrityLibraryName"].asString();
auto celebrityBoundaryNode = value["CelebrityBoundary"];
if(!celebrityBoundaryNode["Left"].isNull())
celebrityObject.celebrityBoundary.left = std::stoi(celebrityBoundaryNode["Left"].asString());
if(!celebrityBoundaryNode["Top"].isNull())
celebrityObject.celebrityBoundary.top = std::stoi(celebrityBoundaryNode["Top"].asString());
if(!celebrityBoundaryNode["Width"].isNull())
celebrityObject.celebrityBoundary.width = std::stoi(celebrityBoundaryNode["Width"].asString());
if(!celebrityBoundaryNode["Height"].isNull())
celebrityObject.celebrityBoundary.height = std::stoi(celebrityBoundaryNode["Height"].asString());
imagesObject.celebrity.push_back(celebrityObject);
}
images_.push_back(imagesObject);
}
if(!value["SetId"].isNull())
setId_ = value["SetId"].asString();
if(!value["NextMarker"].isNull())
nextMarker_ = value["NextMarker"].asString();
}
std::vector<FindImagesResult::ImagesItem> FindImagesResult::getImages()const
{
return images_;
}
std::string FindImagesResult::getSetId()const
{
return setId_;
}
std::string FindImagesResult::getNextMarker()const
{
return nextMarker_;
}

View File

@@ -0,0 +1,115 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
#include <alibabacloud/imm/model/FindSimilarFacesRequest.h>
using AlibabaCloud::Imm::Model::FindSimilarFacesRequest;
FindSimilarFacesRequest::FindSimilarFacesRequest() :
RpcServiceRequest("imm", "2017-09-06", "FindSimilarFaces")
{}
FindSimilarFacesRequest::~FindSimilarFacesRequest()
{}
std::string FindSimilarFacesRequest::getImageUri()const
{
return imageUri_;
}
void FindSimilarFacesRequest::setImageUri(const std::string& imageUri)
{
imageUri_ = imageUri;
setParameter("ImageUri", imageUri);
}
std::string FindSimilarFacesRequest::getRegionId()const
{
return regionId_;
}
void FindSimilarFacesRequest::setRegionId(const std::string& regionId)
{
regionId_ = regionId;
setParameter("RegionId", regionId);
}
float FindSimilarFacesRequest::getMinSimilarity()const
{
return minSimilarity_;
}
void FindSimilarFacesRequest::setMinSimilarity(float minSimilarity)
{
minSimilarity_ = minSimilarity;
setParameter("MinSimilarity", std::to_string(minSimilarity));
}
int FindSimilarFacesRequest::getLimit()const
{
return limit_;
}
void FindSimilarFacesRequest::setLimit(int limit)
{
limit_ = limit;
setParameter("Limit", std::to_string(limit));
}
std::string FindSimilarFacesRequest::getProject()const
{
return project_;
}
void FindSimilarFacesRequest::setProject(const std::string& project)
{
project_ = project;
setParameter("Project", project);
}
std::string FindSimilarFacesRequest::getSetId()const
{
return setId_;
}
void FindSimilarFacesRequest::setSetId(const std::string& setId)
{
setId_ = setId;
setParameter("SetId", setId);
}
std::string FindSimilarFacesRequest::getFaceId()const
{
return faceId_;
}
void FindSimilarFacesRequest::setFaceId(const std::string& faceId)
{
faceId_ = faceId;
setParameter("FaceId", faceId);
}
std::string FindSimilarFacesRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void FindSimilarFacesRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setParameter("AccessKeyId", accessKeyId);
}

View File

@@ -0,0 +1,72 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/FindSimilarFacesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
FindSimilarFacesResult::FindSimilarFacesResult() :
ServiceResult()
{}
FindSimilarFacesResult::FindSimilarFacesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
FindSimilarFacesResult::~FindSimilarFacesResult()
{}
void FindSimilarFacesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allFaces = value["Faces"]["FacesItem"];
for (auto value : allFaces)
{
FacesItem facesObject;
if(!value["FaceId"].isNull())
facesObject.faceId = value["FaceId"].asString();
if(!value["ImageUri"].isNull())
facesObject.imageUri = value["ImageUri"].asString();
if(!value["Similarity"].isNull())
facesObject.similarity = std::stof(value["Similarity"].asString());
auto faceAttributesNode = value["FaceAttributes"];
auto faceBoundaryNode = faceAttributesNode["FaceBoundary"];
if(!faceBoundaryNode["Left"].isNull())
facesObject.faceAttributes.faceBoundary.left = std::stoi(faceBoundaryNode["Left"].asString());
if(!faceBoundaryNode["Top"].isNull())
facesObject.faceAttributes.faceBoundary.top = std::stoi(faceBoundaryNode["Top"].asString());
if(!faceBoundaryNode["Width"].isNull())
facesObject.faceAttributes.faceBoundary.width = std::stoi(faceBoundaryNode["Width"].asString());
if(!faceBoundaryNode["Height"].isNull())
facesObject.faceAttributes.faceBoundary.height = std::stoi(faceBoundaryNode["Height"].asString());
faces_.push_back(facesObject);
}
}
std::vector<FindSimilarFacesResult::FacesItem> FindSimilarFacesResult::getFaces()const
{
return faces_;
}

View File

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

View File

@@ -0,0 +1,150 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/GetDocIndexResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
GetDocIndexResult::GetDocIndexResult() :
ServiceResult()
{}
GetDocIndexResult::GetDocIndexResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDocIndexResult::~GetDocIndexResult()
{}
void GetDocIndexResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["IndexCreatedTime"].isNull())
indexCreatedTime_ = value["IndexCreatedTime"].asString();
if(!value["IndexModifiedTime"].isNull())
indexModifiedTime_ = value["IndexModifiedTime"].asString();
if(!value["UniqueId"].isNull())
uniqueId_ = value["UniqueId"].asString();
if(!value["SrcUri"].isNull())
srcUri_ = value["SrcUri"].asString();
if(!value["Name"].isNull())
name_ = value["Name"].asString();
if(!value["ContentType"].isNull())
contentType_ = value["ContentType"].asString();
if(!value["LastModified"].isNull())
lastModified_ = value["LastModified"].asString();
if(!value["Size"].isNull())
size_ = std::stol(value["Size"].asString());
if(!value["PageNum"].isNull())
pageNum_ = std::stol(value["PageNum"].asString());
if(!value["CustomKey1"].isNull())
customKey1_ = value["CustomKey1"].asString();
if(!value["CustomKey2"].isNull())
customKey2_ = value["CustomKey2"].asString();
if(!value["CustomKey3"].isNull())
customKey3_ = value["CustomKey3"].asString();
if(!value["CustomKey4"].isNull())
customKey4_ = value["CustomKey4"].asString();
if(!value["CustomKey5"].isNull())
customKey5_ = value["CustomKey5"].asString();
if(!value["CustomKey6"].isNull())
customKey6_ = value["CustomKey6"].asString();
}
std::string GetDocIndexResult::getCustomKey4()const
{
return customKey4_;
}
std::string GetDocIndexResult::getUniqueId()const
{
return uniqueId_;
}
std::string GetDocIndexResult::getCustomKey5()const
{
return customKey5_;
}
std::string GetDocIndexResult::getCustomKey2()const
{
return customKey2_;
}
std::string GetDocIndexResult::getCustomKey3()const
{
return customKey3_;
}
std::string GetDocIndexResult::getContentType()const
{
return contentType_;
}
long GetDocIndexResult::getPageNum()const
{
return pageNum_;
}
std::string GetDocIndexResult::getCustomKey1()const
{
return customKey1_;
}
long GetDocIndexResult::getSize()const
{
return size_;
}
std::string GetDocIndexResult::getIndexModifiedTime()const
{
return indexModifiedTime_;
}
std::string GetDocIndexResult::getIndexCreatedTime()const
{
return indexCreatedTime_;
}
std::string GetDocIndexResult::getCustomKey6()const
{
return customKey6_;
}
std::string GetDocIndexResult::getName()const
{
return name_;
}
std::string GetDocIndexResult::getLastModified()const
{
return lastModified_;
}
std::string GetDocIndexResult::getSrcUri()const
{
return srcUri_;
}

View File

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

View File

@@ -0,0 +1,81 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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/GetDocIndexTaskResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Imm;
using namespace AlibabaCloud::Imm::Model;
GetDocIndexTaskResult::GetDocIndexTaskResult() :
ServiceResult()
{}
GetDocIndexTaskResult::GetDocIndexTaskResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetDocIndexTaskResult::~GetDocIndexTaskResult()
{}
void GetDocIndexTaskResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto failDetailNode = value["FailDetail"];
if(!failDetailNode["Code"].isNull())
failDetail_.code = failDetailNode["Code"].asString();
if(!value["Status"].isNull())
status_ = value["Status"].asString();
if(!value["TaskId"].isNull())
taskId_ = value["TaskId"].asString();
if(!value["CreateTime"].isNull())
createTime_ = value["CreateTime"].asString();
if(!value["FinishTime"].isNull())
finishTime_ = value["FinishTime"].asString();
}
std::string GetDocIndexTaskResult::getStatus()const
{
return status_;
}
GetDocIndexTaskResult::FailDetail GetDocIndexTaskResult::getFailDetail()const
{
return failDetail_;
}
std::string GetDocIndexTaskResult::getTaskId()const
{
return taskId_;
}
std::string GetDocIndexTaskResult::getFinishTime()const
{
return finishTime_;
}
std::string GetDocIndexTaskResult::getCreateTime()const
{
return createTime_;
}

View File

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

View File

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

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

View File

@@ -0,0 +1,158 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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

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

View File

@@ -0,0 +1,94 @@
/*
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR 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

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

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