diff --git a/CHANGELOG b/CHANGELOG index 4f240569b..f634e1f31 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2019-03-28 Version: 1.35.0 +1, Add logo detect. + 2019-03-27 Version: 1.34.66 1, Add Project interface. 2, Add Tag interface. diff --git a/CMakeLists.txt b/CMakeLists.txt index 599e18ccc..36a36554f 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -115,4 +115,5 @@ add_subdirectory(jarvis-public) add_subdirectory(mts) add_subdirectory(dysmsapi) add_subdirectory(ons) -add_subdirectory(ivision) \ No newline at end of file +add_subdirectory(ivision) +add_subdirectory(imm) \ No newline at end of file diff --git a/VERSION b/VERSION index 15be9bcf6..a2d87226a 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.34.66 \ No newline at end of file +1.35.0 \ No newline at end of file diff --git a/imm/CMakeLists.txt b/imm/CMakeLists.txt new file mode 100755 index 000000000..eb83a839f --- /dev/null +++ b/imm/CMakeLists.txt @@ -0,0 +1,446 @@ +# +# Copyright 2009-2017 Alibaba Cloud All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +set(public_header_dir ${CMAKE_CURRENT_SOURCE_DIR}/../include) + +set(imm_public_header + include/alibabacloud/imm/ImmClient.h + include/alibabacloud/imm/ImmExport.h ) + +set(imm_public_header_model + include/alibabacloud/imm/model/ListPornBatchDetectJobsRequest.h + include/alibabacloud/imm/model/ListPornBatchDetectJobsResult.h + include/alibabacloud/imm/model/DetectImageFacesRequest.h + include/alibabacloud/imm/model/DetectImageFacesResult.h + include/alibabacloud/imm/model/DetectImageTagsRequest.h + include/alibabacloud/imm/model/DetectImageTagsResult.h + include/alibabacloud/imm/model/DeleteImageRequest.h + include/alibabacloud/imm/model/DeleteImageResult.h + include/alibabacloud/imm/model/CreateTagJobRequest.h + include/alibabacloud/imm/model/CreateTagJobResult.h + include/alibabacloud/imm/model/IndexTagRequest.h + include/alibabacloud/imm/model/IndexTagResult.h + include/alibabacloud/imm/model/ListProjectsRequest.h + include/alibabacloud/imm/model/ListProjectsResult.h + include/alibabacloud/imm/model/DeleteSetRequest.h + include/alibabacloud/imm/model/DeleteSetResult.h + include/alibabacloud/imm/model/GetFaceSearchImageRequest.h + include/alibabacloud/imm/model/GetFaceSearchImageResult.h + include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h + include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h + include/alibabacloud/imm/model/CompareFaceRequest.h + include/alibabacloud/imm/model/CompareFaceResult.h + include/alibabacloud/imm/model/DetectTagRequest.h + include/alibabacloud/imm/model/DetectTagResult.h + include/alibabacloud/imm/model/ListFaceSearchGroupUsersRequest.h + include/alibabacloud/imm/model/ListFaceSearchGroupUsersResult.h + include/alibabacloud/imm/model/ListFaceSearchGroupImagesRequest.h + include/alibabacloud/imm/model/ListFaceSearchGroupImagesResult.h + include/alibabacloud/imm/model/CreateCADConversionTaskRequest.h + include/alibabacloud/imm/model/CreateCADConversionTaskResult.h + include/alibabacloud/imm/model/GetTagJobRequest.h + include/alibabacloud/imm/model/GetTagJobResult.h + include/alibabacloud/imm/model/DeleteFaceJobRequest.h + include/alibabacloud/imm/model/DeleteFaceJobResult.h + include/alibabacloud/imm/model/CreateDocIndexTaskRequest.h + include/alibabacloud/imm/model/CreateDocIndexTaskResult.h + include/alibabacloud/imm/model/PutProjectRequest.h + include/alibabacloud/imm/model/PutProjectResult.h + include/alibabacloud/imm/model/GetSetRequest.h + include/alibabacloud/imm/model/GetSetResult.h + include/alibabacloud/imm/model/GetVideoTaskRequest.h + include/alibabacloud/imm/model/GetVideoTaskResult.h + include/alibabacloud/imm/model/ListSetsRequest.h + include/alibabacloud/imm/model/ListSetsResult.h + include/alibabacloud/imm/model/SearchDocIndexRequest.h + include/alibabacloud/imm/model/SearchDocIndexResult.h + include/alibabacloud/imm/model/ListPhotoProcessTasksRequest.h + include/alibabacloud/imm/model/ListPhotoProcessTasksResult.h + include/alibabacloud/imm/model/ListVideosRequest.h + include/alibabacloud/imm/model/ListVideosResult.h + include/alibabacloud/imm/model/CreatePornBatchDetectJobRequest.h + include/alibabacloud/imm/model/CreatePornBatchDetectJobResult.h + include/alibabacloud/imm/model/FindImagesRequest.h + include/alibabacloud/imm/model/FindImagesResult.h + include/alibabacloud/imm/model/DeleteTagByNameRequest.h + include/alibabacloud/imm/model/DeleteTagByNameResult.h + include/alibabacloud/imm/model/DetectImageLogosRequest.h + include/alibabacloud/imm/model/DetectImageLogosResult.h + include/alibabacloud/imm/model/GetProjectRequest.h + include/alibabacloud/imm/model/GetProjectResult.h + include/alibabacloud/imm/model/DeletePhotoProcessTaskRequest.h + include/alibabacloud/imm/model/DeletePhotoProcessTaskResult.h + include/alibabacloud/imm/model/ListSetTagsRequest.h + include/alibabacloud/imm/model/ListSetTagsResult.h + include/alibabacloud/imm/model/DeleteVideoTaskRequest.h + include/alibabacloud/imm/model/DeleteVideoTaskResult.h + include/alibabacloud/imm/model/FindImagesByTagNamesRequest.h + include/alibabacloud/imm/model/FindImagesByTagNamesResult.h + include/alibabacloud/imm/model/DeleteTagSetRequest.h + include/alibabacloud/imm/model/DeleteTagSetResult.h + include/alibabacloud/imm/model/DeleteProjectRequest.h + include/alibabacloud/imm/model/DeleteProjectResult.h + include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h + include/alibabacloud/imm/model/UpdateDocIndexMetaResult.h + include/alibabacloud/imm/model/SearchFaceRequest.h + include/alibabacloud/imm/model/SearchFaceResult.h + include/alibabacloud/imm/model/GetImageRequest.h + include/alibabacloud/imm/model/GetImageResult.h + include/alibabacloud/imm/model/DetectImageCelebrityRequest.h + include/alibabacloud/imm/model/DetectImageCelebrityResult.h + include/alibabacloud/imm/model/CreateSetRequest.h + include/alibabacloud/imm/model/CreateSetResult.h + include/alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h + include/alibabacloud/imm/model/DeletePornBatchDetectJobResult.h + include/alibabacloud/imm/model/ListFaceSearchGroupsRequest.h + include/alibabacloud/imm/model/ListFaceSearchGroupsResult.h + include/alibabacloud/imm/model/GetTagSetRequest.h + include/alibabacloud/imm/model/GetTagSetResult.h + include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h + include/alibabacloud/imm/model/ConvertOfficeFormatResult.h + include/alibabacloud/imm/model/ListTagPhotosRequest.h + include/alibabacloud/imm/model/ListTagPhotosResult.h + include/alibabacloud/imm/model/DeleteFaceSearchImageByIdRequest.h + include/alibabacloud/imm/model/DeleteFaceSearchImageByIdResult.h + include/alibabacloud/imm/model/IndexVideoRequest.h + include/alibabacloud/imm/model/IndexVideoResult.h + include/alibabacloud/imm/model/DeleteDocIndexRequest.h + include/alibabacloud/imm/model/DeleteDocIndexResult.h + include/alibabacloud/imm/model/GetDocIndexTaskRequest.h + include/alibabacloud/imm/model/GetDocIndexTaskResult.h + include/alibabacloud/imm/model/GetImageJobRequest.h + include/alibabacloud/imm/model/GetImageJobResult.h + include/alibabacloud/imm/model/ListVideoAudiosRequest.h + include/alibabacloud/imm/model/ListVideoAudiosResult.h + include/alibabacloud/imm/model/DeleteTagByUrlRequest.h + include/alibabacloud/imm/model/DeleteTagByUrlResult.h + include/alibabacloud/imm/model/ListTagSetsRequest.h + include/alibabacloud/imm/model/ListTagSetsResult.h + include/alibabacloud/imm/model/ListTagNamesRequest.h + include/alibabacloud/imm/model/ListTagNamesResult.h + include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h + include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h + include/alibabacloud/imm/model/DetectQRCodesRequest.h + include/alibabacloud/imm/model/DetectQRCodesResult.h + include/alibabacloud/imm/model/GetFaceSearchGroupRequest.h + include/alibabacloud/imm/model/GetFaceSearchGroupResult.h + include/alibabacloud/imm/model/GetVideoRequest.h + include/alibabacloud/imm/model/GetVideoResult.h + include/alibabacloud/imm/model/ListImagesRequest.h + include/alibabacloud/imm/model/ListImagesResult.h + include/alibabacloud/imm/model/CompareImageFacesRequest.h + include/alibabacloud/imm/model/CompareImageFacesResult.h + include/alibabacloud/imm/model/DeleteTagJobRequest.h + include/alibabacloud/imm/model/DeleteTagJobResult.h + include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h + include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h + include/alibabacloud/imm/model/PhotoProcessRequest.h + include/alibabacloud/imm/model/PhotoProcessResult.h + include/alibabacloud/imm/model/GetPhotoProcessTaskRequest.h + include/alibabacloud/imm/model/GetPhotoProcessTaskResult.h + include/alibabacloud/imm/model/ListVideoFramesRequest.h + include/alibabacloud/imm/model/ListVideoFramesResult.h + include/alibabacloud/imm/model/GetPornBatchDetectJobRequest.h + include/alibabacloud/imm/model/GetPornBatchDetectJobResult.h + include/alibabacloud/imm/model/DetectLogoRequest.h + include/alibabacloud/imm/model/DetectLogoResult.h + include/alibabacloud/imm/model/DetectClothesRequest.h + include/alibabacloud/imm/model/DetectClothesResult.h + include/alibabacloud/imm/model/ListTagJobsRequest.h + include/alibabacloud/imm/model/ListTagJobsResult.h + include/alibabacloud/imm/model/DescribeRegionsRequest.h + include/alibabacloud/imm/model/DescribeRegionsResult.h + include/alibabacloud/imm/model/DeleteFaceSearchUserRequest.h + include/alibabacloud/imm/model/DeleteFaceSearchUserResult.h + include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h + include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h + include/alibabacloud/imm/model/CreateTagSetRequest.h + include/alibabacloud/imm/model/CreateTagSetResult.h + include/alibabacloud/imm/model/RegistFaceRequest.h + include/alibabacloud/imm/model/RegistFaceResult.h + include/alibabacloud/imm/model/FindSimilarFacesRequest.h + include/alibabacloud/imm/model/FindSimilarFacesResult.h + include/alibabacloud/imm/model/GetFaceSearchUserRequest.h + include/alibabacloud/imm/model/GetFaceSearchUserResult.h + include/alibabacloud/imm/model/DeleteImageJobRequest.h + include/alibabacloud/imm/model/DeleteImageJobResult.h + include/alibabacloud/imm/model/CreateFaceSetRequest.h + include/alibabacloud/imm/model/CreateFaceSetResult.h + include/alibabacloud/imm/model/DeleteFaceSearchGroupRequest.h + include/alibabacloud/imm/model/DeleteFaceSearchGroupResult.h + include/alibabacloud/imm/model/GetDocIndexRequest.h + include/alibabacloud/imm/model/GetDocIndexResult.h + include/alibabacloud/imm/model/IndexImageRequest.h + include/alibabacloud/imm/model/IndexImageResult.h + include/alibabacloud/imm/model/DetectImageTextsRequest.h + include/alibabacloud/imm/model/DetectImageTextsResult.h + include/alibabacloud/imm/model/ListImageJobsRequest.h + include/alibabacloud/imm/model/ListImageJobsResult.h + include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h + include/alibabacloud/imm/model/CreateGroupFacesJobResult.h + include/alibabacloud/imm/model/UpdateImageRequest.h + include/alibabacloud/imm/model/UpdateImageResult.h + include/alibabacloud/imm/model/ListVideoTasksRequest.h + include/alibabacloud/imm/model/ListVideoTasksResult.h + include/alibabacloud/imm/model/UpdateProjectRequest.h + include/alibabacloud/imm/model/UpdateProjectResult.h + include/alibabacloud/imm/model/DeleteVideoRequest.h + include/alibabacloud/imm/model/DeleteVideoResult.h + include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h + include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h + include/alibabacloud/imm/model/UpdateSetRequest.h + include/alibabacloud/imm/model/UpdateSetResult.h ) + +set(imm_src + src/ImmClient.cc + src/model/ListPornBatchDetectJobsRequest.cc + src/model/ListPornBatchDetectJobsResult.cc + src/model/DetectImageFacesRequest.cc + src/model/DetectImageFacesResult.cc + src/model/DetectImageTagsRequest.cc + src/model/DetectImageTagsResult.cc + src/model/DeleteImageRequest.cc + src/model/DeleteImageResult.cc + src/model/CreateTagJobRequest.cc + src/model/CreateTagJobResult.cc + src/model/IndexTagRequest.cc + src/model/IndexTagResult.cc + src/model/ListProjectsRequest.cc + src/model/ListProjectsResult.cc + src/model/DeleteSetRequest.cc + src/model/DeleteSetResult.cc + src/model/GetFaceSearchImageRequest.cc + src/model/GetFaceSearchImageResult.cc + src/model/CreateVideoAnalyseTaskRequest.cc + src/model/CreateVideoAnalyseTaskResult.cc + src/model/CompareFaceRequest.cc + src/model/CompareFaceResult.cc + src/model/DetectTagRequest.cc + src/model/DetectTagResult.cc + src/model/ListFaceSearchGroupUsersRequest.cc + src/model/ListFaceSearchGroupUsersResult.cc + src/model/ListFaceSearchGroupImagesRequest.cc + src/model/ListFaceSearchGroupImagesResult.cc + src/model/CreateCADConversionTaskRequest.cc + src/model/CreateCADConversionTaskResult.cc + src/model/GetTagJobRequest.cc + src/model/GetTagJobResult.cc + src/model/DeleteFaceJobRequest.cc + src/model/DeleteFaceJobResult.cc + src/model/CreateDocIndexTaskRequest.cc + src/model/CreateDocIndexTaskResult.cc + src/model/PutProjectRequest.cc + src/model/PutProjectResult.cc + src/model/GetSetRequest.cc + src/model/GetSetResult.cc + src/model/GetVideoTaskRequest.cc + src/model/GetVideoTaskResult.cc + src/model/ListSetsRequest.cc + src/model/ListSetsResult.cc + src/model/SearchDocIndexRequest.cc + src/model/SearchDocIndexResult.cc + src/model/ListPhotoProcessTasksRequest.cc + src/model/ListPhotoProcessTasksResult.cc + src/model/ListVideosRequest.cc + src/model/ListVideosResult.cc + src/model/CreatePornBatchDetectJobRequest.cc + src/model/CreatePornBatchDetectJobResult.cc + src/model/FindImagesRequest.cc + src/model/FindImagesResult.cc + src/model/DeleteTagByNameRequest.cc + src/model/DeleteTagByNameResult.cc + src/model/DetectImageLogosRequest.cc + src/model/DetectImageLogosResult.cc + src/model/GetProjectRequest.cc + src/model/GetProjectResult.cc + src/model/DeletePhotoProcessTaskRequest.cc + src/model/DeletePhotoProcessTaskResult.cc + src/model/ListSetTagsRequest.cc + src/model/ListSetTagsResult.cc + src/model/DeleteVideoTaskRequest.cc + src/model/DeleteVideoTaskResult.cc + src/model/FindImagesByTagNamesRequest.cc + src/model/FindImagesByTagNamesResult.cc + src/model/DeleteTagSetRequest.cc + src/model/DeleteTagSetResult.cc + src/model/DeleteProjectRequest.cc + src/model/DeleteProjectResult.cc + src/model/UpdateDocIndexMetaRequest.cc + src/model/UpdateDocIndexMetaResult.cc + src/model/SearchFaceRequest.cc + src/model/SearchFaceResult.cc + src/model/GetImageRequest.cc + src/model/GetImageResult.cc + src/model/DetectImageCelebrityRequest.cc + src/model/DetectImageCelebrityResult.cc + src/model/CreateSetRequest.cc + src/model/CreateSetResult.cc + src/model/DeletePornBatchDetectJobRequest.cc + src/model/DeletePornBatchDetectJobResult.cc + src/model/ListFaceSearchGroupsRequest.cc + src/model/ListFaceSearchGroupsResult.cc + src/model/GetTagSetRequest.cc + src/model/GetTagSetResult.cc + src/model/ConvertOfficeFormatRequest.cc + src/model/ConvertOfficeFormatResult.cc + src/model/ListTagPhotosRequest.cc + src/model/ListTagPhotosResult.cc + src/model/DeleteFaceSearchImageByIdRequest.cc + src/model/DeleteFaceSearchImageByIdResult.cc + src/model/IndexVideoRequest.cc + src/model/IndexVideoResult.cc + src/model/DeleteDocIndexRequest.cc + src/model/DeleteDocIndexResult.cc + src/model/GetDocIndexTaskRequest.cc + src/model/GetDocIndexTaskResult.cc + src/model/GetImageJobRequest.cc + src/model/GetImageJobResult.cc + src/model/ListVideoAudiosRequest.cc + src/model/ListVideoAudiosResult.cc + src/model/DeleteTagByUrlRequest.cc + src/model/DeleteTagByUrlResult.cc + src/model/ListTagSetsRequest.cc + src/model/ListTagSetsResult.cc + src/model/ListTagNamesRequest.cc + src/model/ListTagNamesResult.cc + src/model/CreateOfficeConversionTaskRequest.cc + src/model/CreateOfficeConversionTaskResult.cc + src/model/DetectQRCodesRequest.cc + src/model/DetectQRCodesResult.cc + src/model/GetFaceSearchGroupRequest.cc + src/model/GetFaceSearchGroupResult.cc + src/model/GetVideoRequest.cc + src/model/GetVideoResult.cc + src/model/ListImagesRequest.cc + src/model/ListImagesResult.cc + src/model/CompareImageFacesRequest.cc + src/model/CompareImageFacesResult.cc + src/model/DeleteTagJobRequest.cc + src/model/DeleteTagJobResult.cc + src/model/DeleteOfficeConversionTaskRequest.cc + src/model/DeleteOfficeConversionTaskResult.cc + src/model/PhotoProcessRequest.cc + src/model/PhotoProcessResult.cc + src/model/GetPhotoProcessTaskRequest.cc + src/model/GetPhotoProcessTaskResult.cc + src/model/ListVideoFramesRequest.cc + src/model/ListVideoFramesResult.cc + src/model/GetPornBatchDetectJobRequest.cc + src/model/GetPornBatchDetectJobResult.cc + src/model/DetectLogoRequest.cc + src/model/DetectLogoResult.cc + src/model/DetectClothesRequest.cc + src/model/DetectClothesResult.cc + src/model/ListTagJobsRequest.cc + src/model/ListTagJobsResult.cc + src/model/DescribeRegionsRequest.cc + src/model/DescribeRegionsResult.cc + src/model/DeleteFaceSearchUserRequest.cc + src/model/DeleteFaceSearchUserResult.cc + src/model/GetOfficeConversionTaskRequest.cc + src/model/GetOfficeConversionTaskResult.cc + src/model/CreateTagSetRequest.cc + src/model/CreateTagSetResult.cc + src/model/RegistFaceRequest.cc + src/model/RegistFaceResult.cc + src/model/FindSimilarFacesRequest.cc + src/model/FindSimilarFacesResult.cc + src/model/GetFaceSearchUserRequest.cc + src/model/GetFaceSearchUserResult.cc + src/model/DeleteImageJobRequest.cc + src/model/DeleteImageJobResult.cc + src/model/CreateFaceSetRequest.cc + src/model/CreateFaceSetResult.cc + src/model/DeleteFaceSearchGroupRequest.cc + src/model/DeleteFaceSearchGroupResult.cc + src/model/GetDocIndexRequest.cc + src/model/GetDocIndexResult.cc + src/model/IndexImageRequest.cc + src/model/IndexImageResult.cc + src/model/DetectImageTextsRequest.cc + src/model/DetectImageTextsResult.cc + src/model/ListImageJobsRequest.cc + src/model/ListImageJobsResult.cc + src/model/CreateGroupFacesJobRequest.cc + src/model/CreateGroupFacesJobResult.cc + src/model/UpdateImageRequest.cc + src/model/UpdateImageResult.cc + src/model/ListVideoTasksRequest.cc + src/model/ListVideoTasksResult.cc + src/model/UpdateProjectRequest.cc + src/model/UpdateProjectResult.cc + src/model/DeleteVideoRequest.cc + src/model/DeleteVideoResult.cc + src/model/ListOfficeConversionTaskRequest.cc + src/model/ListOfficeConversionTaskResult.cc + src/model/UpdateSetRequest.cc + src/model/UpdateSetResult.cc ) + +add_library(imm ${LIB_TYPE} + ${imm_public_header} + ${imm_public_header_model} + ${imm_src}) + +set_target_properties(imm + PROPERTIES + LINKER_LANGUAGE CXX + ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib + RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin + OUTPUT_NAME ${TARGET_OUTPUT_NAME_PREFIX}imm + ) + +if(${LIB_TYPE} STREQUAL "SHARED") + set_target_properties(imm + PROPERTIES + DEFINE_SYMBOL ALIBABACLOUD_IMM_LIBRARY) +endif() + +target_include_directories(imm + PRIVATE include + ${CMAKE_SOURCE_DIR}/core/include + ) +target_link_libraries(imm + core) + +if(CMAKE_HOST_WIN32) + ExternalProject_Get_Property(jsoncpp INSTALL_DIR) + set(jsoncpp_install_dir ${INSTALL_DIR}) + add_dependencies(imm + jsoncpp) + target_include_directories(imm + PRIVATE ${jsoncpp_install_dir}/include) + target_link_libraries(imm + ${jsoncpp_install_dir}/lib/jsoncpp.lib) + set_target_properties(imm + PROPERTIES + COMPILE_OPTIONS "/bigobj") +else() + target_include_directories(imm + PRIVATE /usr/include/jsoncpp) + target_link_libraries(imm + jsoncpp) +endif() + +install(FILES ${imm_public_header} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/imm) +install(FILES ${imm_public_header_model} + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/alibabacloud/imm/model) +install(TARGETS imm + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + ) \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/ImmClient.h b/imm/include/alibabacloud/imm/ImmClient.h new file mode 100755 index 000000000..ca507b840 --- /dev/null +++ b/imm/include/alibabacloud/imm/ImmClient.h @@ -0,0 +1,774 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_IMMCLIENT_H_ +#define ALIBABACLOUD_IMM_IMMCLIENT_H_ + +#include +#include +#include +#include +#include "ImmExport.h" +#include "model/ListPornBatchDetectJobsRequest.h" +#include "model/ListPornBatchDetectJobsResult.h" +#include "model/DetectImageFacesRequest.h" +#include "model/DetectImageFacesResult.h" +#include "model/DetectImageTagsRequest.h" +#include "model/DetectImageTagsResult.h" +#include "model/DeleteImageRequest.h" +#include "model/DeleteImageResult.h" +#include "model/CreateTagJobRequest.h" +#include "model/CreateTagJobResult.h" +#include "model/IndexTagRequest.h" +#include "model/IndexTagResult.h" +#include "model/ListProjectsRequest.h" +#include "model/ListProjectsResult.h" +#include "model/DeleteSetRequest.h" +#include "model/DeleteSetResult.h" +#include "model/GetFaceSearchImageRequest.h" +#include "model/GetFaceSearchImageResult.h" +#include "model/CreateVideoAnalyseTaskRequest.h" +#include "model/CreateVideoAnalyseTaskResult.h" +#include "model/CompareFaceRequest.h" +#include "model/CompareFaceResult.h" +#include "model/DetectTagRequest.h" +#include "model/DetectTagResult.h" +#include "model/ListFaceSearchGroupUsersRequest.h" +#include "model/ListFaceSearchGroupUsersResult.h" +#include "model/ListFaceSearchGroupImagesRequest.h" +#include "model/ListFaceSearchGroupImagesResult.h" +#include "model/CreateCADConversionTaskRequest.h" +#include "model/CreateCADConversionTaskResult.h" +#include "model/GetTagJobRequest.h" +#include "model/GetTagJobResult.h" +#include "model/DeleteFaceJobRequest.h" +#include "model/DeleteFaceJobResult.h" +#include "model/CreateDocIndexTaskRequest.h" +#include "model/CreateDocIndexTaskResult.h" +#include "model/PutProjectRequest.h" +#include "model/PutProjectResult.h" +#include "model/GetSetRequest.h" +#include "model/GetSetResult.h" +#include "model/GetVideoTaskRequest.h" +#include "model/GetVideoTaskResult.h" +#include "model/ListSetsRequest.h" +#include "model/ListSetsResult.h" +#include "model/SearchDocIndexRequest.h" +#include "model/SearchDocIndexResult.h" +#include "model/ListPhotoProcessTasksRequest.h" +#include "model/ListPhotoProcessTasksResult.h" +#include "model/ListVideosRequest.h" +#include "model/ListVideosResult.h" +#include "model/CreatePornBatchDetectJobRequest.h" +#include "model/CreatePornBatchDetectJobResult.h" +#include "model/FindImagesRequest.h" +#include "model/FindImagesResult.h" +#include "model/DeleteTagByNameRequest.h" +#include "model/DeleteTagByNameResult.h" +#include "model/DetectImageLogosRequest.h" +#include "model/DetectImageLogosResult.h" +#include "model/GetProjectRequest.h" +#include "model/GetProjectResult.h" +#include "model/DeletePhotoProcessTaskRequest.h" +#include "model/DeletePhotoProcessTaskResult.h" +#include "model/ListSetTagsRequest.h" +#include "model/ListSetTagsResult.h" +#include "model/DeleteVideoTaskRequest.h" +#include "model/DeleteVideoTaskResult.h" +#include "model/FindImagesByTagNamesRequest.h" +#include "model/FindImagesByTagNamesResult.h" +#include "model/DeleteTagSetRequest.h" +#include "model/DeleteTagSetResult.h" +#include "model/DeleteProjectRequest.h" +#include "model/DeleteProjectResult.h" +#include "model/UpdateDocIndexMetaRequest.h" +#include "model/UpdateDocIndexMetaResult.h" +#include "model/SearchFaceRequest.h" +#include "model/SearchFaceResult.h" +#include "model/GetImageRequest.h" +#include "model/GetImageResult.h" +#include "model/DetectImageCelebrityRequest.h" +#include "model/DetectImageCelebrityResult.h" +#include "model/CreateSetRequest.h" +#include "model/CreateSetResult.h" +#include "model/DeletePornBatchDetectJobRequest.h" +#include "model/DeletePornBatchDetectJobResult.h" +#include "model/ListFaceSearchGroupsRequest.h" +#include "model/ListFaceSearchGroupsResult.h" +#include "model/GetTagSetRequest.h" +#include "model/GetTagSetResult.h" +#include "model/ConvertOfficeFormatRequest.h" +#include "model/ConvertOfficeFormatResult.h" +#include "model/ListTagPhotosRequest.h" +#include "model/ListTagPhotosResult.h" +#include "model/DeleteFaceSearchImageByIdRequest.h" +#include "model/DeleteFaceSearchImageByIdResult.h" +#include "model/IndexVideoRequest.h" +#include "model/IndexVideoResult.h" +#include "model/DeleteDocIndexRequest.h" +#include "model/DeleteDocIndexResult.h" +#include "model/GetDocIndexTaskRequest.h" +#include "model/GetDocIndexTaskResult.h" +#include "model/GetImageJobRequest.h" +#include "model/GetImageJobResult.h" +#include "model/ListVideoAudiosRequest.h" +#include "model/ListVideoAudiosResult.h" +#include "model/DeleteTagByUrlRequest.h" +#include "model/DeleteTagByUrlResult.h" +#include "model/ListTagSetsRequest.h" +#include "model/ListTagSetsResult.h" +#include "model/ListTagNamesRequest.h" +#include "model/ListTagNamesResult.h" +#include "model/CreateOfficeConversionTaskRequest.h" +#include "model/CreateOfficeConversionTaskResult.h" +#include "model/DetectQRCodesRequest.h" +#include "model/DetectQRCodesResult.h" +#include "model/GetFaceSearchGroupRequest.h" +#include "model/GetFaceSearchGroupResult.h" +#include "model/GetVideoRequest.h" +#include "model/GetVideoResult.h" +#include "model/ListImagesRequest.h" +#include "model/ListImagesResult.h" +#include "model/CompareImageFacesRequest.h" +#include "model/CompareImageFacesResult.h" +#include "model/DeleteTagJobRequest.h" +#include "model/DeleteTagJobResult.h" +#include "model/DeleteOfficeConversionTaskRequest.h" +#include "model/DeleteOfficeConversionTaskResult.h" +#include "model/PhotoProcessRequest.h" +#include "model/PhotoProcessResult.h" +#include "model/GetPhotoProcessTaskRequest.h" +#include "model/GetPhotoProcessTaskResult.h" +#include "model/ListVideoFramesRequest.h" +#include "model/ListVideoFramesResult.h" +#include "model/GetPornBatchDetectJobRequest.h" +#include "model/GetPornBatchDetectJobResult.h" +#include "model/DetectLogoRequest.h" +#include "model/DetectLogoResult.h" +#include "model/DetectClothesRequest.h" +#include "model/DetectClothesResult.h" +#include "model/ListTagJobsRequest.h" +#include "model/ListTagJobsResult.h" +#include "model/DescribeRegionsRequest.h" +#include "model/DescribeRegionsResult.h" +#include "model/DeleteFaceSearchUserRequest.h" +#include "model/DeleteFaceSearchUserResult.h" +#include "model/GetOfficeConversionTaskRequest.h" +#include "model/GetOfficeConversionTaskResult.h" +#include "model/CreateTagSetRequest.h" +#include "model/CreateTagSetResult.h" +#include "model/RegistFaceRequest.h" +#include "model/RegistFaceResult.h" +#include "model/FindSimilarFacesRequest.h" +#include "model/FindSimilarFacesResult.h" +#include "model/GetFaceSearchUserRequest.h" +#include "model/GetFaceSearchUserResult.h" +#include "model/DeleteImageJobRequest.h" +#include "model/DeleteImageJobResult.h" +#include "model/CreateFaceSetRequest.h" +#include "model/CreateFaceSetResult.h" +#include "model/DeleteFaceSearchGroupRequest.h" +#include "model/DeleteFaceSearchGroupResult.h" +#include "model/GetDocIndexRequest.h" +#include "model/GetDocIndexResult.h" +#include "model/IndexImageRequest.h" +#include "model/IndexImageResult.h" +#include "model/DetectImageTextsRequest.h" +#include "model/DetectImageTextsResult.h" +#include "model/ListImageJobsRequest.h" +#include "model/ListImageJobsResult.h" +#include "model/CreateGroupFacesJobRequest.h" +#include "model/CreateGroupFacesJobResult.h" +#include "model/UpdateImageRequest.h" +#include "model/UpdateImageResult.h" +#include "model/ListVideoTasksRequest.h" +#include "model/ListVideoTasksResult.h" +#include "model/UpdateProjectRequest.h" +#include "model/UpdateProjectResult.h" +#include "model/DeleteVideoRequest.h" +#include "model/DeleteVideoResult.h" +#include "model/ListOfficeConversionTaskRequest.h" +#include "model/ListOfficeConversionTaskResult.h" +#include "model/UpdateSetRequest.h" +#include "model/UpdateSetResult.h" + + +namespace AlibabaCloud +{ + namespace Imm + { + class ALIBABACLOUD_IMM_EXPORT ImmClient : public RpcServiceClient + { + public: + typedef Outcome ListPornBatchDetectJobsOutcome; + typedef std::future ListPornBatchDetectJobsOutcomeCallable; + typedef std::function&)> ListPornBatchDetectJobsAsyncHandler; + typedef Outcome DetectImageFacesOutcome; + typedef std::future DetectImageFacesOutcomeCallable; + typedef std::function&)> DetectImageFacesAsyncHandler; + typedef Outcome DetectImageTagsOutcome; + typedef std::future DetectImageTagsOutcomeCallable; + typedef std::function&)> DetectImageTagsAsyncHandler; + typedef Outcome DeleteImageOutcome; + typedef std::future DeleteImageOutcomeCallable; + typedef std::function&)> DeleteImageAsyncHandler; + typedef Outcome CreateTagJobOutcome; + typedef std::future CreateTagJobOutcomeCallable; + typedef std::function&)> CreateTagJobAsyncHandler; + typedef Outcome IndexTagOutcome; + typedef std::future IndexTagOutcomeCallable; + typedef std::function&)> IndexTagAsyncHandler; + typedef Outcome ListProjectsOutcome; + typedef std::future ListProjectsOutcomeCallable; + typedef std::function&)> ListProjectsAsyncHandler; + typedef Outcome DeleteSetOutcome; + typedef std::future DeleteSetOutcomeCallable; + typedef std::function&)> DeleteSetAsyncHandler; + typedef Outcome GetFaceSearchImageOutcome; + typedef std::future GetFaceSearchImageOutcomeCallable; + typedef std::function&)> GetFaceSearchImageAsyncHandler; + typedef Outcome CreateVideoAnalyseTaskOutcome; + typedef std::future CreateVideoAnalyseTaskOutcomeCallable; + typedef std::function&)> CreateVideoAnalyseTaskAsyncHandler; + typedef Outcome CompareFaceOutcome; + typedef std::future CompareFaceOutcomeCallable; + typedef std::function&)> CompareFaceAsyncHandler; + typedef Outcome DetectTagOutcome; + typedef std::future DetectTagOutcomeCallable; + typedef std::function&)> DetectTagAsyncHandler; + typedef Outcome ListFaceSearchGroupUsersOutcome; + typedef std::future ListFaceSearchGroupUsersOutcomeCallable; + typedef std::function&)> ListFaceSearchGroupUsersAsyncHandler; + typedef Outcome ListFaceSearchGroupImagesOutcome; + typedef std::future ListFaceSearchGroupImagesOutcomeCallable; + typedef std::function&)> ListFaceSearchGroupImagesAsyncHandler; + typedef Outcome CreateCADConversionTaskOutcome; + typedef std::future CreateCADConversionTaskOutcomeCallable; + typedef std::function&)> CreateCADConversionTaskAsyncHandler; + typedef Outcome GetTagJobOutcome; + typedef std::future GetTagJobOutcomeCallable; + typedef std::function&)> GetTagJobAsyncHandler; + typedef Outcome DeleteFaceJobOutcome; + typedef std::future DeleteFaceJobOutcomeCallable; + typedef std::function&)> DeleteFaceJobAsyncHandler; + typedef Outcome CreateDocIndexTaskOutcome; + typedef std::future CreateDocIndexTaskOutcomeCallable; + typedef std::function&)> CreateDocIndexTaskAsyncHandler; + typedef Outcome PutProjectOutcome; + typedef std::future PutProjectOutcomeCallable; + typedef std::function&)> PutProjectAsyncHandler; + typedef Outcome GetSetOutcome; + typedef std::future GetSetOutcomeCallable; + typedef std::function&)> GetSetAsyncHandler; + typedef Outcome GetVideoTaskOutcome; + typedef std::future GetVideoTaskOutcomeCallable; + typedef std::function&)> GetVideoTaskAsyncHandler; + typedef Outcome ListSetsOutcome; + typedef std::future ListSetsOutcomeCallable; + typedef std::function&)> ListSetsAsyncHandler; + typedef Outcome SearchDocIndexOutcome; + typedef std::future SearchDocIndexOutcomeCallable; + typedef std::function&)> SearchDocIndexAsyncHandler; + typedef Outcome ListPhotoProcessTasksOutcome; + typedef std::future ListPhotoProcessTasksOutcomeCallable; + typedef std::function&)> ListPhotoProcessTasksAsyncHandler; + typedef Outcome ListVideosOutcome; + typedef std::future ListVideosOutcomeCallable; + typedef std::function&)> ListVideosAsyncHandler; + typedef Outcome CreatePornBatchDetectJobOutcome; + typedef std::future CreatePornBatchDetectJobOutcomeCallable; + typedef std::function&)> CreatePornBatchDetectJobAsyncHandler; + typedef Outcome FindImagesOutcome; + typedef std::future FindImagesOutcomeCallable; + typedef std::function&)> FindImagesAsyncHandler; + typedef Outcome DeleteTagByNameOutcome; + typedef std::future DeleteTagByNameOutcomeCallable; + typedef std::function&)> DeleteTagByNameAsyncHandler; + typedef Outcome DetectImageLogosOutcome; + typedef std::future DetectImageLogosOutcomeCallable; + typedef std::function&)> DetectImageLogosAsyncHandler; + typedef Outcome GetProjectOutcome; + typedef std::future GetProjectOutcomeCallable; + typedef std::function&)> GetProjectAsyncHandler; + typedef Outcome DeletePhotoProcessTaskOutcome; + typedef std::future DeletePhotoProcessTaskOutcomeCallable; + typedef std::function&)> DeletePhotoProcessTaskAsyncHandler; + typedef Outcome ListSetTagsOutcome; + typedef std::future ListSetTagsOutcomeCallable; + typedef std::function&)> ListSetTagsAsyncHandler; + typedef Outcome DeleteVideoTaskOutcome; + typedef std::future DeleteVideoTaskOutcomeCallable; + typedef std::function&)> DeleteVideoTaskAsyncHandler; + typedef Outcome FindImagesByTagNamesOutcome; + typedef std::future FindImagesByTagNamesOutcomeCallable; + typedef std::function&)> FindImagesByTagNamesAsyncHandler; + typedef Outcome DeleteTagSetOutcome; + typedef std::future DeleteTagSetOutcomeCallable; + typedef std::function&)> DeleteTagSetAsyncHandler; + typedef Outcome DeleteProjectOutcome; + typedef std::future DeleteProjectOutcomeCallable; + typedef std::function&)> DeleteProjectAsyncHandler; + typedef Outcome UpdateDocIndexMetaOutcome; + typedef std::future UpdateDocIndexMetaOutcomeCallable; + typedef std::function&)> UpdateDocIndexMetaAsyncHandler; + typedef Outcome SearchFaceOutcome; + typedef std::future SearchFaceOutcomeCallable; + typedef std::function&)> SearchFaceAsyncHandler; + typedef Outcome GetImageOutcome; + typedef std::future GetImageOutcomeCallable; + typedef std::function&)> GetImageAsyncHandler; + typedef Outcome DetectImageCelebrityOutcome; + typedef std::future DetectImageCelebrityOutcomeCallable; + typedef std::function&)> DetectImageCelebrityAsyncHandler; + typedef Outcome CreateSetOutcome; + typedef std::future CreateSetOutcomeCallable; + typedef std::function&)> CreateSetAsyncHandler; + typedef Outcome DeletePornBatchDetectJobOutcome; + typedef std::future DeletePornBatchDetectJobOutcomeCallable; + typedef std::function&)> DeletePornBatchDetectJobAsyncHandler; + typedef Outcome ListFaceSearchGroupsOutcome; + typedef std::future ListFaceSearchGroupsOutcomeCallable; + typedef std::function&)> ListFaceSearchGroupsAsyncHandler; + typedef Outcome GetTagSetOutcome; + typedef std::future GetTagSetOutcomeCallable; + typedef std::function&)> GetTagSetAsyncHandler; + typedef Outcome ConvertOfficeFormatOutcome; + typedef std::future ConvertOfficeFormatOutcomeCallable; + typedef std::function&)> ConvertOfficeFormatAsyncHandler; + typedef Outcome ListTagPhotosOutcome; + typedef std::future ListTagPhotosOutcomeCallable; + typedef std::function&)> ListTagPhotosAsyncHandler; + typedef Outcome DeleteFaceSearchImageByIdOutcome; + typedef std::future DeleteFaceSearchImageByIdOutcomeCallable; + typedef std::function&)> DeleteFaceSearchImageByIdAsyncHandler; + typedef Outcome IndexVideoOutcome; + typedef std::future IndexVideoOutcomeCallable; + typedef std::function&)> IndexVideoAsyncHandler; + typedef Outcome DeleteDocIndexOutcome; + typedef std::future DeleteDocIndexOutcomeCallable; + typedef std::function&)> DeleteDocIndexAsyncHandler; + typedef Outcome GetDocIndexTaskOutcome; + typedef std::future GetDocIndexTaskOutcomeCallable; + typedef std::function&)> GetDocIndexTaskAsyncHandler; + typedef Outcome GetImageJobOutcome; + typedef std::future GetImageJobOutcomeCallable; + typedef std::function&)> GetImageJobAsyncHandler; + typedef Outcome ListVideoAudiosOutcome; + typedef std::future ListVideoAudiosOutcomeCallable; + typedef std::function&)> ListVideoAudiosAsyncHandler; + typedef Outcome DeleteTagByUrlOutcome; + typedef std::future DeleteTagByUrlOutcomeCallable; + typedef std::function&)> DeleteTagByUrlAsyncHandler; + typedef Outcome ListTagSetsOutcome; + typedef std::future ListTagSetsOutcomeCallable; + typedef std::function&)> ListTagSetsAsyncHandler; + typedef Outcome ListTagNamesOutcome; + typedef std::future ListTagNamesOutcomeCallable; + typedef std::function&)> ListTagNamesAsyncHandler; + typedef Outcome CreateOfficeConversionTaskOutcome; + typedef std::future CreateOfficeConversionTaskOutcomeCallable; + typedef std::function&)> CreateOfficeConversionTaskAsyncHandler; + typedef Outcome DetectQRCodesOutcome; + typedef std::future DetectQRCodesOutcomeCallable; + typedef std::function&)> DetectQRCodesAsyncHandler; + typedef Outcome GetFaceSearchGroupOutcome; + typedef std::future GetFaceSearchGroupOutcomeCallable; + typedef std::function&)> GetFaceSearchGroupAsyncHandler; + typedef Outcome GetVideoOutcome; + typedef std::future GetVideoOutcomeCallable; + typedef std::function&)> GetVideoAsyncHandler; + typedef Outcome ListImagesOutcome; + typedef std::future ListImagesOutcomeCallable; + typedef std::function&)> ListImagesAsyncHandler; + typedef Outcome CompareImageFacesOutcome; + typedef std::future CompareImageFacesOutcomeCallable; + typedef std::function&)> CompareImageFacesAsyncHandler; + typedef Outcome DeleteTagJobOutcome; + typedef std::future DeleteTagJobOutcomeCallable; + typedef std::function&)> DeleteTagJobAsyncHandler; + typedef Outcome DeleteOfficeConversionTaskOutcome; + typedef std::future DeleteOfficeConversionTaskOutcomeCallable; + typedef std::function&)> DeleteOfficeConversionTaskAsyncHandler; + typedef Outcome PhotoProcessOutcome; + typedef std::future PhotoProcessOutcomeCallable; + typedef std::function&)> PhotoProcessAsyncHandler; + typedef Outcome GetPhotoProcessTaskOutcome; + typedef std::future GetPhotoProcessTaskOutcomeCallable; + typedef std::function&)> GetPhotoProcessTaskAsyncHandler; + typedef Outcome ListVideoFramesOutcome; + typedef std::future ListVideoFramesOutcomeCallable; + typedef std::function&)> ListVideoFramesAsyncHandler; + typedef Outcome GetPornBatchDetectJobOutcome; + typedef std::future GetPornBatchDetectJobOutcomeCallable; + typedef std::function&)> GetPornBatchDetectJobAsyncHandler; + typedef Outcome DetectLogoOutcome; + typedef std::future DetectLogoOutcomeCallable; + typedef std::function&)> DetectLogoAsyncHandler; + typedef Outcome DetectClothesOutcome; + typedef std::future DetectClothesOutcomeCallable; + typedef std::function&)> DetectClothesAsyncHandler; + typedef Outcome ListTagJobsOutcome; + typedef std::future ListTagJobsOutcomeCallable; + typedef std::function&)> ListTagJobsAsyncHandler; + typedef Outcome DescribeRegionsOutcome; + typedef std::future DescribeRegionsOutcomeCallable; + typedef std::function&)> DescribeRegionsAsyncHandler; + typedef Outcome DeleteFaceSearchUserOutcome; + typedef std::future DeleteFaceSearchUserOutcomeCallable; + typedef std::function&)> DeleteFaceSearchUserAsyncHandler; + typedef Outcome GetOfficeConversionTaskOutcome; + typedef std::future GetOfficeConversionTaskOutcomeCallable; + typedef std::function&)> GetOfficeConversionTaskAsyncHandler; + typedef Outcome CreateTagSetOutcome; + typedef std::future CreateTagSetOutcomeCallable; + typedef std::function&)> CreateTagSetAsyncHandler; + typedef Outcome RegistFaceOutcome; + typedef std::future RegistFaceOutcomeCallable; + typedef std::function&)> RegistFaceAsyncHandler; + typedef Outcome FindSimilarFacesOutcome; + typedef std::future FindSimilarFacesOutcomeCallable; + typedef std::function&)> FindSimilarFacesAsyncHandler; + typedef Outcome GetFaceSearchUserOutcome; + typedef std::future GetFaceSearchUserOutcomeCallable; + typedef std::function&)> GetFaceSearchUserAsyncHandler; + typedef Outcome DeleteImageJobOutcome; + typedef std::future DeleteImageJobOutcomeCallable; + typedef std::function&)> DeleteImageJobAsyncHandler; + typedef Outcome CreateFaceSetOutcome; + typedef std::future CreateFaceSetOutcomeCallable; + typedef std::function&)> CreateFaceSetAsyncHandler; + typedef Outcome DeleteFaceSearchGroupOutcome; + typedef std::future DeleteFaceSearchGroupOutcomeCallable; + typedef std::function&)> DeleteFaceSearchGroupAsyncHandler; + typedef Outcome GetDocIndexOutcome; + typedef std::future GetDocIndexOutcomeCallable; + typedef std::function&)> GetDocIndexAsyncHandler; + typedef Outcome IndexImageOutcome; + typedef std::future IndexImageOutcomeCallable; + typedef std::function&)> IndexImageAsyncHandler; + typedef Outcome DetectImageTextsOutcome; + typedef std::future DetectImageTextsOutcomeCallable; + typedef std::function&)> DetectImageTextsAsyncHandler; + typedef Outcome ListImageJobsOutcome; + typedef std::future ListImageJobsOutcomeCallable; + typedef std::function&)> ListImageJobsAsyncHandler; + typedef Outcome CreateGroupFacesJobOutcome; + typedef std::future CreateGroupFacesJobOutcomeCallable; + typedef std::function&)> CreateGroupFacesJobAsyncHandler; + typedef Outcome UpdateImageOutcome; + typedef std::future UpdateImageOutcomeCallable; + typedef std::function&)> UpdateImageAsyncHandler; + typedef Outcome ListVideoTasksOutcome; + typedef std::future ListVideoTasksOutcomeCallable; + typedef std::function&)> ListVideoTasksAsyncHandler; + typedef Outcome UpdateProjectOutcome; + typedef std::future UpdateProjectOutcomeCallable; + typedef std::function&)> UpdateProjectAsyncHandler; + typedef Outcome DeleteVideoOutcome; + typedef std::future DeleteVideoOutcomeCallable; + typedef std::function&)> DeleteVideoAsyncHandler; + typedef Outcome ListOfficeConversionTaskOutcome; + typedef std::future ListOfficeConversionTaskOutcomeCallable; + typedef std::function&)> ListOfficeConversionTaskAsyncHandler; + typedef Outcome UpdateSetOutcome; + typedef std::future UpdateSetOutcomeCallable; + typedef std::function&)> UpdateSetAsyncHandler; + + ImmClient(const Credentials &credentials, const ClientConfiguration &configuration); + ImmClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); + ImmClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); + ~ImmClient(); + ListPornBatchDetectJobsOutcome listPornBatchDetectJobs(const Model::ListPornBatchDetectJobsRequest &request)const; + void listPornBatchDetectJobsAsync(const Model::ListPornBatchDetectJobsRequest& request, const ListPornBatchDetectJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPornBatchDetectJobsOutcomeCallable listPornBatchDetectJobsCallable(const Model::ListPornBatchDetectJobsRequest& request) const; + DetectImageFacesOutcome detectImageFaces(const Model::DetectImageFacesRequest &request)const; + void detectImageFacesAsync(const Model::DetectImageFacesRequest& request, const DetectImageFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageFacesOutcomeCallable detectImageFacesCallable(const Model::DetectImageFacesRequest& request) const; + DetectImageTagsOutcome detectImageTags(const Model::DetectImageTagsRequest &request)const; + void detectImageTagsAsync(const Model::DetectImageTagsRequest& request, const DetectImageTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageTagsOutcomeCallable detectImageTagsCallable(const Model::DetectImageTagsRequest& request) const; + DeleteImageOutcome deleteImage(const Model::DeleteImageRequest &request)const; + void deleteImageAsync(const Model::DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteImageOutcomeCallable deleteImageCallable(const Model::DeleteImageRequest& request) const; + CreateTagJobOutcome createTagJob(const Model::CreateTagJobRequest &request)const; + void createTagJobAsync(const Model::CreateTagJobRequest& request, const CreateTagJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTagJobOutcomeCallable createTagJobCallable(const Model::CreateTagJobRequest& request) const; + IndexTagOutcome indexTag(const Model::IndexTagRequest &request)const; + void indexTagAsync(const Model::IndexTagRequest& request, const IndexTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + IndexTagOutcomeCallable indexTagCallable(const Model::IndexTagRequest& request) const; + ListProjectsOutcome listProjects(const Model::ListProjectsRequest &request)const; + void listProjectsAsync(const Model::ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListProjectsOutcomeCallable listProjectsCallable(const Model::ListProjectsRequest& request) const; + DeleteSetOutcome deleteSet(const Model::DeleteSetRequest &request)const; + void deleteSetAsync(const Model::DeleteSetRequest& request, const DeleteSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSetOutcomeCallable deleteSetCallable(const Model::DeleteSetRequest& request) const; + GetFaceSearchImageOutcome getFaceSearchImage(const Model::GetFaceSearchImageRequest &request)const; + void getFaceSearchImageAsync(const Model::GetFaceSearchImageRequest& request, const GetFaceSearchImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFaceSearchImageOutcomeCallable getFaceSearchImageCallable(const Model::GetFaceSearchImageRequest& request) const; + CreateVideoAnalyseTaskOutcome createVideoAnalyseTask(const Model::CreateVideoAnalyseTaskRequest &request)const; + void createVideoAnalyseTaskAsync(const Model::CreateVideoAnalyseTaskRequest& request, const CreateVideoAnalyseTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateVideoAnalyseTaskOutcomeCallable createVideoAnalyseTaskCallable(const Model::CreateVideoAnalyseTaskRequest& request) const; + CompareFaceOutcome compareFace(const Model::CompareFaceRequest &request)const; + void compareFaceAsync(const Model::CompareFaceRequest& request, const CompareFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CompareFaceOutcomeCallable compareFaceCallable(const Model::CompareFaceRequest& request) const; + DetectTagOutcome detectTag(const Model::DetectTagRequest &request)const; + void detectTagAsync(const Model::DetectTagRequest& request, const DetectTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectTagOutcomeCallable detectTagCallable(const Model::DetectTagRequest& request) const; + ListFaceSearchGroupUsersOutcome listFaceSearchGroupUsers(const Model::ListFaceSearchGroupUsersRequest &request)const; + void listFaceSearchGroupUsersAsync(const Model::ListFaceSearchGroupUsersRequest& request, const ListFaceSearchGroupUsersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFaceSearchGroupUsersOutcomeCallable listFaceSearchGroupUsersCallable(const Model::ListFaceSearchGroupUsersRequest& request) const; + ListFaceSearchGroupImagesOutcome listFaceSearchGroupImages(const Model::ListFaceSearchGroupImagesRequest &request)const; + void listFaceSearchGroupImagesAsync(const Model::ListFaceSearchGroupImagesRequest& request, const ListFaceSearchGroupImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFaceSearchGroupImagesOutcomeCallable listFaceSearchGroupImagesCallable(const Model::ListFaceSearchGroupImagesRequest& request) const; + CreateCADConversionTaskOutcome createCADConversionTask(const Model::CreateCADConversionTaskRequest &request)const; + void createCADConversionTaskAsync(const Model::CreateCADConversionTaskRequest& request, const CreateCADConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateCADConversionTaskOutcomeCallable createCADConversionTaskCallable(const Model::CreateCADConversionTaskRequest& request) const; + GetTagJobOutcome getTagJob(const Model::GetTagJobRequest &request)const; + void getTagJobAsync(const Model::GetTagJobRequest& request, const GetTagJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTagJobOutcomeCallable getTagJobCallable(const Model::GetTagJobRequest& request) const; + DeleteFaceJobOutcome deleteFaceJob(const Model::DeleteFaceJobRequest &request)const; + void deleteFaceJobAsync(const Model::DeleteFaceJobRequest& request, const DeleteFaceJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceJobOutcomeCallable deleteFaceJobCallable(const Model::DeleteFaceJobRequest& request) const; + CreateDocIndexTaskOutcome createDocIndexTask(const Model::CreateDocIndexTaskRequest &request)const; + void createDocIndexTaskAsync(const Model::CreateDocIndexTaskRequest& request, const CreateDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateDocIndexTaskOutcomeCallable createDocIndexTaskCallable(const Model::CreateDocIndexTaskRequest& request) const; + PutProjectOutcome putProject(const Model::PutProjectRequest &request)const; + void putProjectAsync(const Model::PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutProjectOutcomeCallable putProjectCallable(const Model::PutProjectRequest& request) const; + GetSetOutcome getSet(const Model::GetSetRequest &request)const; + void getSetAsync(const Model::GetSetRequest& request, const GetSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSetOutcomeCallable getSetCallable(const Model::GetSetRequest& request) const; + GetVideoTaskOutcome getVideoTask(const Model::GetVideoTaskRequest &request)const; + void getVideoTaskAsync(const Model::GetVideoTaskRequest& request, const GetVideoTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVideoTaskOutcomeCallable getVideoTaskCallable(const Model::GetVideoTaskRequest& request) const; + ListSetsOutcome listSets(const Model::ListSetsRequest &request)const; + void listSetsAsync(const Model::ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSetsOutcomeCallable listSetsCallable(const Model::ListSetsRequest& request) const; + SearchDocIndexOutcome searchDocIndex(const Model::SearchDocIndexRequest &request)const; + void searchDocIndexAsync(const Model::SearchDocIndexRequest& request, const SearchDocIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchDocIndexOutcomeCallable searchDocIndexCallable(const Model::SearchDocIndexRequest& request) const; + ListPhotoProcessTasksOutcome listPhotoProcessTasks(const Model::ListPhotoProcessTasksRequest &request)const; + void listPhotoProcessTasksAsync(const Model::ListPhotoProcessTasksRequest& request, const ListPhotoProcessTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListPhotoProcessTasksOutcomeCallable listPhotoProcessTasksCallable(const Model::ListPhotoProcessTasksRequest& request) const; + ListVideosOutcome listVideos(const Model::ListVideosRequest &request)const; + void listVideosAsync(const Model::ListVideosRequest& request, const ListVideosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideosOutcomeCallable listVideosCallable(const Model::ListVideosRequest& request) const; + CreatePornBatchDetectJobOutcome createPornBatchDetectJob(const Model::CreatePornBatchDetectJobRequest &request)const; + void createPornBatchDetectJobAsync(const Model::CreatePornBatchDetectJobRequest& request, const CreatePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreatePornBatchDetectJobOutcomeCallable createPornBatchDetectJobCallable(const Model::CreatePornBatchDetectJobRequest& request) const; + FindImagesOutcome findImages(const Model::FindImagesRequest &request)const; + void findImagesAsync(const Model::FindImagesRequest& request, const FindImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindImagesOutcomeCallable findImagesCallable(const Model::FindImagesRequest& request) const; + DeleteTagByNameOutcome deleteTagByName(const Model::DeleteTagByNameRequest &request)const; + void deleteTagByNameAsync(const Model::DeleteTagByNameRequest& request, const DeleteTagByNameAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagByNameOutcomeCallable deleteTagByNameCallable(const Model::DeleteTagByNameRequest& request) const; + DetectImageLogosOutcome detectImageLogos(const Model::DetectImageLogosRequest &request)const; + void detectImageLogosAsync(const Model::DetectImageLogosRequest& request, const DetectImageLogosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageLogosOutcomeCallable detectImageLogosCallable(const Model::DetectImageLogosRequest& request) const; + GetProjectOutcome getProject(const Model::GetProjectRequest &request)const; + void getProjectAsync(const Model::GetProjectRequest& request, const GetProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetProjectOutcomeCallable getProjectCallable(const Model::GetProjectRequest& request) const; + DeletePhotoProcessTaskOutcome deletePhotoProcessTask(const Model::DeletePhotoProcessTaskRequest &request)const; + void deletePhotoProcessTaskAsync(const Model::DeletePhotoProcessTaskRequest& request, const DeletePhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePhotoProcessTaskOutcomeCallable deletePhotoProcessTaskCallable(const Model::DeletePhotoProcessTaskRequest& request) const; + ListSetTagsOutcome listSetTags(const Model::ListSetTagsRequest &request)const; + void listSetTagsAsync(const Model::ListSetTagsRequest& request, const ListSetTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListSetTagsOutcomeCallable listSetTagsCallable(const Model::ListSetTagsRequest& request) const; + DeleteVideoTaskOutcome deleteVideoTask(const Model::DeleteVideoTaskRequest &request)const; + void deleteVideoTaskAsync(const Model::DeleteVideoTaskRequest& request, const DeleteVideoTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVideoTaskOutcomeCallable deleteVideoTaskCallable(const Model::DeleteVideoTaskRequest& request) const; + FindImagesByTagNamesOutcome findImagesByTagNames(const Model::FindImagesByTagNamesRequest &request)const; + void findImagesByTagNamesAsync(const Model::FindImagesByTagNamesRequest& request, const FindImagesByTagNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindImagesByTagNamesOutcomeCallable findImagesByTagNamesCallable(const Model::FindImagesByTagNamesRequest& request) const; + DeleteTagSetOutcome deleteTagSet(const Model::DeleteTagSetRequest &request)const; + void deleteTagSetAsync(const Model::DeleteTagSetRequest& request, const DeleteTagSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagSetOutcomeCallable deleteTagSetCallable(const Model::DeleteTagSetRequest& request) const; + DeleteProjectOutcome deleteProject(const Model::DeleteProjectRequest &request)const; + void deleteProjectAsync(const Model::DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteProjectOutcomeCallable deleteProjectCallable(const Model::DeleteProjectRequest& request) const; + UpdateDocIndexMetaOutcome updateDocIndexMeta(const Model::UpdateDocIndexMetaRequest &request)const; + void updateDocIndexMetaAsync(const Model::UpdateDocIndexMetaRequest& request, const UpdateDocIndexMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateDocIndexMetaOutcomeCallable updateDocIndexMetaCallable(const Model::UpdateDocIndexMetaRequest& request) const; + SearchFaceOutcome searchFace(const Model::SearchFaceRequest &request)const; + void searchFaceAsync(const Model::SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SearchFaceOutcomeCallable searchFaceCallable(const Model::SearchFaceRequest& request) const; + GetImageOutcome getImage(const Model::GetImageRequest &request)const; + void getImageAsync(const Model::GetImageRequest& request, const GetImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetImageOutcomeCallable getImageCallable(const Model::GetImageRequest& request) const; + DetectImageCelebrityOutcome detectImageCelebrity(const Model::DetectImageCelebrityRequest &request)const; + void detectImageCelebrityAsync(const Model::DetectImageCelebrityRequest& request, const DetectImageCelebrityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageCelebrityOutcomeCallable detectImageCelebrityCallable(const Model::DetectImageCelebrityRequest& request) const; + CreateSetOutcome createSet(const Model::CreateSetRequest &request)const; + void createSetAsync(const Model::CreateSetRequest& request, const CreateSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSetOutcomeCallable createSetCallable(const Model::CreateSetRequest& request) const; + DeletePornBatchDetectJobOutcome deletePornBatchDetectJob(const Model::DeletePornBatchDetectJobRequest &request)const; + void deletePornBatchDetectJobAsync(const Model::DeletePornBatchDetectJobRequest& request, const DeletePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeletePornBatchDetectJobOutcomeCallable deletePornBatchDetectJobCallable(const Model::DeletePornBatchDetectJobRequest& request) const; + ListFaceSearchGroupsOutcome listFaceSearchGroups(const Model::ListFaceSearchGroupsRequest &request)const; + void listFaceSearchGroupsAsync(const Model::ListFaceSearchGroupsRequest& request, const ListFaceSearchGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFaceSearchGroupsOutcomeCallable listFaceSearchGroupsCallable(const Model::ListFaceSearchGroupsRequest& request) const; + GetTagSetOutcome getTagSet(const Model::GetTagSetRequest &request)const; + void getTagSetAsync(const Model::GetTagSetRequest& request, const GetTagSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTagSetOutcomeCallable getTagSetCallable(const Model::GetTagSetRequest& request) const; + ConvertOfficeFormatOutcome convertOfficeFormat(const Model::ConvertOfficeFormatRequest &request)const; + void convertOfficeFormatAsync(const Model::ConvertOfficeFormatRequest& request, const ConvertOfficeFormatAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ConvertOfficeFormatOutcomeCallable convertOfficeFormatCallable(const Model::ConvertOfficeFormatRequest& request) const; + ListTagPhotosOutcome listTagPhotos(const Model::ListTagPhotosRequest &request)const; + void listTagPhotosAsync(const Model::ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagPhotosOutcomeCallable listTagPhotosCallable(const Model::ListTagPhotosRequest& request) const; + DeleteFaceSearchImageByIdOutcome deleteFaceSearchImageById(const Model::DeleteFaceSearchImageByIdRequest &request)const; + void deleteFaceSearchImageByIdAsync(const Model::DeleteFaceSearchImageByIdRequest& request, const DeleteFaceSearchImageByIdAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceSearchImageByIdOutcomeCallable deleteFaceSearchImageByIdCallable(const Model::DeleteFaceSearchImageByIdRequest& request) const; + IndexVideoOutcome indexVideo(const Model::IndexVideoRequest &request)const; + void indexVideoAsync(const Model::IndexVideoRequest& request, const IndexVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + IndexVideoOutcomeCallable indexVideoCallable(const Model::IndexVideoRequest& request) const; + DeleteDocIndexOutcome deleteDocIndex(const Model::DeleteDocIndexRequest &request)const; + void deleteDocIndexAsync(const Model::DeleteDocIndexRequest& request, const DeleteDocIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteDocIndexOutcomeCallable deleteDocIndexCallable(const Model::DeleteDocIndexRequest& request) const; + GetDocIndexTaskOutcome getDocIndexTask(const Model::GetDocIndexTaskRequest &request)const; + void getDocIndexTaskAsync(const Model::GetDocIndexTaskRequest& request, const GetDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDocIndexTaskOutcomeCallable getDocIndexTaskCallable(const Model::GetDocIndexTaskRequest& request) const; + GetImageJobOutcome getImageJob(const Model::GetImageJobRequest &request)const; + void getImageJobAsync(const Model::GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetImageJobOutcomeCallable getImageJobCallable(const Model::GetImageJobRequest& request) const; + ListVideoAudiosOutcome listVideoAudios(const Model::ListVideoAudiosRequest &request)const; + void listVideoAudiosAsync(const Model::ListVideoAudiosRequest& request, const ListVideoAudiosAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideoAudiosOutcomeCallable listVideoAudiosCallable(const Model::ListVideoAudiosRequest& request) const; + DeleteTagByUrlOutcome deleteTagByUrl(const Model::DeleteTagByUrlRequest &request)const; + void deleteTagByUrlAsync(const Model::DeleteTagByUrlRequest& request, const DeleteTagByUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagByUrlOutcomeCallable deleteTagByUrlCallable(const Model::DeleteTagByUrlRequest& request) const; + ListTagSetsOutcome listTagSets(const Model::ListTagSetsRequest &request)const; + void listTagSetsAsync(const Model::ListTagSetsRequest& request, const ListTagSetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagSetsOutcomeCallable listTagSetsCallable(const Model::ListTagSetsRequest& request) const; + ListTagNamesOutcome listTagNames(const Model::ListTagNamesRequest &request)const; + void listTagNamesAsync(const Model::ListTagNamesRequest& request, const ListTagNamesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagNamesOutcomeCallable listTagNamesCallable(const Model::ListTagNamesRequest& request) const; + CreateOfficeConversionTaskOutcome createOfficeConversionTask(const Model::CreateOfficeConversionTaskRequest &request)const; + void createOfficeConversionTaskAsync(const Model::CreateOfficeConversionTaskRequest& request, const CreateOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateOfficeConversionTaskOutcomeCallable createOfficeConversionTaskCallable(const Model::CreateOfficeConversionTaskRequest& request) const; + DetectQRCodesOutcome detectQRCodes(const Model::DetectQRCodesRequest &request)const; + void detectQRCodesAsync(const Model::DetectQRCodesRequest& request, const DetectQRCodesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectQRCodesOutcomeCallable detectQRCodesCallable(const Model::DetectQRCodesRequest& request) const; + GetFaceSearchGroupOutcome getFaceSearchGroup(const Model::GetFaceSearchGroupRequest &request)const; + void getFaceSearchGroupAsync(const Model::GetFaceSearchGroupRequest& request, const GetFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFaceSearchGroupOutcomeCallable getFaceSearchGroupCallable(const Model::GetFaceSearchGroupRequest& request) const; + GetVideoOutcome getVideo(const Model::GetVideoRequest &request)const; + void getVideoAsync(const Model::GetVideoRequest& request, const GetVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVideoOutcomeCallable getVideoCallable(const Model::GetVideoRequest& request) const; + ListImagesOutcome listImages(const Model::ListImagesRequest &request)const; + void listImagesAsync(const Model::ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListImagesOutcomeCallable listImagesCallable(const Model::ListImagesRequest& request) const; + CompareImageFacesOutcome compareImageFaces(const Model::CompareImageFacesRequest &request)const; + void compareImageFacesAsync(const Model::CompareImageFacesRequest& request, const CompareImageFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CompareImageFacesOutcomeCallable compareImageFacesCallable(const Model::CompareImageFacesRequest& request) const; + DeleteTagJobOutcome deleteTagJob(const Model::DeleteTagJobRequest &request)const; + void deleteTagJobAsync(const Model::DeleteTagJobRequest& request, const DeleteTagJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteTagJobOutcomeCallable deleteTagJobCallable(const Model::DeleteTagJobRequest& request) const; + DeleteOfficeConversionTaskOutcome deleteOfficeConversionTask(const Model::DeleteOfficeConversionTaskRequest &request)const; + void deleteOfficeConversionTaskAsync(const Model::DeleteOfficeConversionTaskRequest& request, const DeleteOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteOfficeConversionTaskOutcomeCallable deleteOfficeConversionTaskCallable(const Model::DeleteOfficeConversionTaskRequest& request) const; + PhotoProcessOutcome photoProcess(const Model::PhotoProcessRequest &request)const; + void photoProcessAsync(const Model::PhotoProcessRequest& request, const PhotoProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PhotoProcessOutcomeCallable photoProcessCallable(const Model::PhotoProcessRequest& request) const; + GetPhotoProcessTaskOutcome getPhotoProcessTask(const Model::GetPhotoProcessTaskRequest &request)const; + void getPhotoProcessTaskAsync(const Model::GetPhotoProcessTaskRequest& request, const GetPhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPhotoProcessTaskOutcomeCallable getPhotoProcessTaskCallable(const Model::GetPhotoProcessTaskRequest& request) const; + ListVideoFramesOutcome listVideoFrames(const Model::ListVideoFramesRequest &request)const; + void listVideoFramesAsync(const Model::ListVideoFramesRequest& request, const ListVideoFramesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideoFramesOutcomeCallable listVideoFramesCallable(const Model::ListVideoFramesRequest& request) const; + GetPornBatchDetectJobOutcome getPornBatchDetectJob(const Model::GetPornBatchDetectJobRequest &request)const; + void getPornBatchDetectJobAsync(const Model::GetPornBatchDetectJobRequest& request, const GetPornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetPornBatchDetectJobOutcomeCallable getPornBatchDetectJobCallable(const Model::GetPornBatchDetectJobRequest& request) const; + DetectLogoOutcome detectLogo(const Model::DetectLogoRequest &request)const; + void detectLogoAsync(const Model::DetectLogoRequest& request, const DetectLogoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectLogoOutcomeCallable detectLogoCallable(const Model::DetectLogoRequest& request) const; + DetectClothesOutcome detectClothes(const Model::DetectClothesRequest &request)const; + void detectClothesAsync(const Model::DetectClothesRequest& request, const DetectClothesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectClothesOutcomeCallable detectClothesCallable(const Model::DetectClothesRequest& request) const; + ListTagJobsOutcome listTagJobs(const Model::ListTagJobsRequest &request)const; + void listTagJobsAsync(const Model::ListTagJobsRequest& request, const ListTagJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagJobsOutcomeCallable listTagJobsCallable(const Model::ListTagJobsRequest& request) const; + DescribeRegionsOutcome describeRegions(const Model::DescribeRegionsRequest &request)const; + void describeRegionsAsync(const Model::DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeRegionsOutcomeCallable describeRegionsCallable(const Model::DescribeRegionsRequest& request) const; + DeleteFaceSearchUserOutcome deleteFaceSearchUser(const Model::DeleteFaceSearchUserRequest &request)const; + void deleteFaceSearchUserAsync(const Model::DeleteFaceSearchUserRequest& request, const DeleteFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceSearchUserOutcomeCallable deleteFaceSearchUserCallable(const Model::DeleteFaceSearchUserRequest& request) const; + GetOfficeConversionTaskOutcome getOfficeConversionTask(const Model::GetOfficeConversionTaskRequest &request)const; + void getOfficeConversionTaskAsync(const Model::GetOfficeConversionTaskRequest& request, const GetOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetOfficeConversionTaskOutcomeCallable getOfficeConversionTaskCallable(const Model::GetOfficeConversionTaskRequest& request) const; + CreateTagSetOutcome createTagSet(const Model::CreateTagSetRequest &request)const; + void createTagSetAsync(const Model::CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateTagSetOutcomeCallable createTagSetCallable(const Model::CreateTagSetRequest& request) const; + RegistFaceOutcome registFace(const Model::RegistFaceRequest &request)const; + void registFaceAsync(const Model::RegistFaceRequest& request, const RegistFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RegistFaceOutcomeCallable registFaceCallable(const Model::RegistFaceRequest& request) const; + FindSimilarFacesOutcome findSimilarFaces(const Model::FindSimilarFacesRequest &request)const; + void findSimilarFacesAsync(const Model::FindSimilarFacesRequest& request, const FindSimilarFacesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + FindSimilarFacesOutcomeCallable findSimilarFacesCallable(const Model::FindSimilarFacesRequest& request) const; + GetFaceSearchUserOutcome getFaceSearchUser(const Model::GetFaceSearchUserRequest &request)const; + void getFaceSearchUserAsync(const Model::GetFaceSearchUserRequest& request, const GetFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetFaceSearchUserOutcomeCallable getFaceSearchUserCallable(const Model::GetFaceSearchUserRequest& request) const; + DeleteImageJobOutcome deleteImageJob(const Model::DeleteImageJobRequest &request)const; + void deleteImageJobAsync(const Model::DeleteImageJobRequest& request, const DeleteImageJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteImageJobOutcomeCallable deleteImageJobCallable(const Model::DeleteImageJobRequest& request) const; + CreateFaceSetOutcome createFaceSet(const Model::CreateFaceSetRequest &request)const; + void createFaceSetAsync(const Model::CreateFaceSetRequest& request, const CreateFaceSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateFaceSetOutcomeCallable createFaceSetCallable(const Model::CreateFaceSetRequest& request) const; + DeleteFaceSearchGroupOutcome deleteFaceSearchGroup(const Model::DeleteFaceSearchGroupRequest &request)const; + void deleteFaceSearchGroupAsync(const Model::DeleteFaceSearchGroupRequest& request, const DeleteFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteFaceSearchGroupOutcomeCallable deleteFaceSearchGroupCallable(const Model::DeleteFaceSearchGroupRequest& request) const; + GetDocIndexOutcome getDocIndex(const Model::GetDocIndexRequest &request)const; + void getDocIndexAsync(const Model::GetDocIndexRequest& request, const GetDocIndexAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetDocIndexOutcomeCallable getDocIndexCallable(const Model::GetDocIndexRequest& request) const; + IndexImageOutcome indexImage(const Model::IndexImageRequest &request)const; + void indexImageAsync(const Model::IndexImageRequest& request, const IndexImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + IndexImageOutcomeCallable indexImageCallable(const Model::IndexImageRequest& request) const; + DetectImageTextsOutcome detectImageTexts(const Model::DetectImageTextsRequest &request)const; + void detectImageTextsAsync(const Model::DetectImageTextsRequest& request, const DetectImageTextsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageTextsOutcomeCallable detectImageTextsCallable(const Model::DetectImageTextsRequest& request) const; + ListImageJobsOutcome listImageJobs(const Model::ListImageJobsRequest &request)const; + void listImageJobsAsync(const Model::ListImageJobsRequest& request, const ListImageJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListImageJobsOutcomeCallable listImageJobsCallable(const Model::ListImageJobsRequest& request) const; + CreateGroupFacesJobOutcome createGroupFacesJob(const Model::CreateGroupFacesJobRequest &request)const; + void createGroupFacesJobAsync(const Model::CreateGroupFacesJobRequest& request, const CreateGroupFacesJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGroupFacesJobOutcomeCallable createGroupFacesJobCallable(const Model::CreateGroupFacesJobRequest& request) const; + UpdateImageOutcome updateImage(const Model::UpdateImageRequest &request)const; + void updateImageAsync(const Model::UpdateImageRequest& request, const UpdateImageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateImageOutcomeCallable updateImageCallable(const Model::UpdateImageRequest& request) const; + ListVideoTasksOutcome listVideoTasks(const Model::ListVideoTasksRequest &request)const; + void listVideoTasksAsync(const Model::ListVideoTasksRequest& request, const ListVideoTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListVideoTasksOutcomeCallable listVideoTasksCallable(const Model::ListVideoTasksRequest& request) const; + UpdateProjectOutcome updateProject(const Model::UpdateProjectRequest &request)const; + void updateProjectAsync(const Model::UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateProjectOutcomeCallable updateProjectCallable(const Model::UpdateProjectRequest& request) const; + DeleteVideoOutcome deleteVideo(const Model::DeleteVideoRequest &request)const; + void deleteVideoAsync(const Model::DeleteVideoRequest& request, const DeleteVideoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteVideoOutcomeCallable deleteVideoCallable(const Model::DeleteVideoRequest& request) const; + ListOfficeConversionTaskOutcome listOfficeConversionTask(const Model::ListOfficeConversionTaskRequest &request)const; + void listOfficeConversionTaskAsync(const Model::ListOfficeConversionTaskRequest& request, const ListOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListOfficeConversionTaskOutcomeCallable listOfficeConversionTaskCallable(const Model::ListOfficeConversionTaskRequest& request) const; + UpdateSetOutcome updateSet(const Model::UpdateSetRequest &request)const; + void updateSetAsync(const Model::UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSetOutcomeCallable updateSetCallable(const Model::UpdateSetRequest& request) const; + + private: + std::shared_ptr endpointProvider_; + }; + } +} + +#endif // !ALIBABACLOUD_IMM_IMMCLIENT_H_ diff --git a/imm/include/alibabacloud/imm/ImmExport.h b/imm/include/alibabacloud/imm/ImmExport.h new file mode 100755 index 000000000..5dcb8a34b --- /dev/null +++ b/imm/include/alibabacloud/imm/ImmExport.h @@ -0,0 +1,32 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_IMMEXPORT_H_ +#define ALIBABACLOUD_IMM_IMMEXPORT_H_ + +#include + +#if defined(ALIBABACLOUD_SHARED) +# if defined(ALIBABACLOUD_IMM_LIBRARY) +# define ALIBABACLOUD_IMM_EXPORT ALIBABACLOUD_DECL_EXPORT +# else +# define ALIBABACLOUD_IMM_EXPORT ALIBABACLOUD_DECL_IMPORT +# endif +#else +# define ALIBABACLOUD_IMM_EXPORT +#endif + +#endif // !ALIBABACLOUD_IMM_IMMEXPORT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CompareFaceRequest.h b/imm/include/alibabacloud/imm/model/CompareFaceRequest.h new file mode 100755 index 000000000..99c58e484 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CompareFaceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREFACEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_COMPAREFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CompareFaceRequest : public RpcServiceRequest + { + + public: + CompareFaceRequest(); + ~CompareFaceRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSrcUriB()const; + void setSrcUriB(const std::string& srcUriB); + std::string getSrcUriA()const; + void setSrcUriA(const std::string& srcUriA); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string srcUriB_; + std::string srcUriA_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_COMPAREFACEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CompareFaceResult.h b/imm/include/alibabacloud/imm/model/CompareFaceResult.h new file mode 100755 index 000000000..872af5473 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CompareFaceResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CompareFaceResult : public ServiceResult + { + public: + struct CompareResultItem + { + struct FaceA + { + std::string imageUri; + std::vector axis; + }; + struct FaceB + { + std::string imageUri; + std::vector axis1; + }; + float similarity; + FaceA faceA; + FaceB faceB; + }; + + + CompareFaceResult(); + explicit CompareFaceResult(const std::string &payload); + ~CompareFaceResult(); + std::vector getCompareResult()const; + + protected: + void parse(const std::string &payload); + private: + std::vector compareResult_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_COMPAREFACERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h b/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h new file mode 100755 index 000000000..c7ec75067 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CompareImageFacesRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CompareImageFacesRequest : public RpcServiceRequest + { + + public: + CompareImageFacesRequest(); + ~CompareImageFacesRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getImageUriB()const; + void setImageUriB(const std::string& imageUriB); + std::string getImageUriA()const; + void setImageUriA(const std::string& imageUriA); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getFaceIdA()const; + void setFaceIdA(const std::string& faceIdA); + std::string getFaceIdB()const; + void setFaceIdB(const std::string& faceIdB); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string imageUriB_; + std::string imageUriA_; + std::string project_; + std::string setId_; + std::string faceIdA_; + std::string faceIdB_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CompareImageFacesResult.h b/imm/include/alibabacloud/imm/model/CompareImageFacesResult.h new file mode 100755 index 000000000..e22f72f91 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CompareImageFacesResult.h @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CompareImageFacesResult : public ServiceResult + { + public: + struct FaceA + { + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + FaceBoundary faceBoundary; + }; + std::string faceId; + FaceAttributes faceAttributes; + }; + struct FaceB + { + struct FaceAttributes1 + { + struct FaceBoundary2 + { + int left; + int top; + int height; + int width; + }; + FaceBoundary2 faceBoundary2; + }; + std::string faceId; + FaceAttributes1 faceAttributes1; + }; + + + CompareImageFacesResult(); + explicit CompareImageFacesResult(const std::string &payload); + ~CompareImageFacesResult(); + float getSimilarity()const; + FaceA getFaceA()const; + std::string getSetId()const; + FaceB getFaceB()const; + + protected: + void parse(const std::string &payload); + private: + float similarity_; + FaceA faceA_; + std::string setId_; + FaceB faceB_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_COMPAREIMAGEFACESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h new file mode 100755 index 000000000..f5a0ab269 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatRequest.h @@ -0,0 +1,111 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ConvertOfficeFormatRequest : public RpcServiceRequest + { + + public: + ConvertOfficeFormatRequest(); + ~ConvertOfficeFormatRequest(); + + std::string getSrcType()const; + void setSrcType(const std::string& srcType); + std::string getModelId()const; + void setModelId(const std::string& modelId); + std::string getProject()const; + void setProject(const std::string& project); + long getMaxSheetRow()const; + void setMaxSheetRow(long maxSheetRow); + long getMaxSheetCount()const; + void setMaxSheetCount(long maxSheetCount); + long getEndPage()const; + void setEndPage(long endPage); + std::string getTgtFileSuffix()const; + void setTgtFileSuffix(const std::string& tgtFileSuffix); + bool getPdfVector()const; + void setPdfVector(bool pdfVector); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + bool getSheetOnePage()const; + void setSheetOnePage(bool sheetOnePage); + std::string getPassword()const; + void setPassword(const std::string& password); + long getStartPage()const; + void setStartPage(long startPage); + long getMaxSheetCol()const; + void setMaxSheetCol(long maxSheetCol); + std::string getTgtType()const; + void setTgtType(const std::string& tgtType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getFitToPagesWide()const; + void setFitToPagesWide(bool fitToPagesWide); + bool getHidecomments()const; + void setHidecomments(bool hidecomments); + std::string getTgtFilePrefix()const; + void setTgtFilePrefix(const std::string& tgtFilePrefix); + bool getFitToPagesTall()const; + void setFitToPagesTall(bool fitToPagesTall); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + std::string getTgtFilePages()const; + void setTgtFilePages(const std::string& tgtFilePages); + std::string getTgtUri()const; + void setTgtUri(const std::string& tgtUri); + + private: + std::string srcType_; + std::string modelId_; + std::string project_; + long maxSheetRow_; + long maxSheetCount_; + long endPage_; + std::string tgtFileSuffix_; + bool pdfVector_; + std::string accessKeyId_; + bool sheetOnePage_; + std::string password_; + long startPage_; + long maxSheetCol_; + std::string tgtType_; + std::string regionId_; + bool fitToPagesWide_; + bool hidecomments_; + std::string tgtFilePrefix_; + bool fitToPagesTall_; + std::string srcUri_; + std::string tgtFilePages_; + std::string tgtUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h new file mode 100755 index 000000000..aac5d2587 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ConvertOfficeFormatResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ConvertOfficeFormatResult : public ServiceResult + { + public: + + + ConvertOfficeFormatResult(); + explicit ConvertOfficeFormatResult(const std::string &payload); + ~ConvertOfficeFormatResult(); + int getPageCount()const; + + protected: + void parse(const std::string &payload); + private: + int pageCount_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CONVERTOFFICEFORMATRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateCADConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateCADConversionTaskRequest.h new file mode 100755 index 000000000..8b210f81d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateCADConversionTaskRequest.h @@ -0,0 +1,96 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateCADConversionTaskRequest : public RpcServiceRequest + { + + public: + CreateCADConversionTaskRequest(); + ~CreateCADConversionTaskRequest(); + + std::string getSrcType()const; + void setSrcType(const std::string& srcType); + int getBaseCol()const; + void setBaseCol(int baseCol); + std::string getNotifyTopicName()const; + void setNotifyTopicName(const std::string& notifyTopicName); + long getUnitWidth()const; + void setUnitWidth(long unitWidth); + int getZoomLevel()const; + void setZoomLevel(int zoomLevel); + int getBaseRow()const; + void setBaseRow(int baseRow); + std::string getModelId()const; + void setModelId(const std::string& modelId); + std::string getProject()const; + void setProject(const std::string& project); + int getZoomFactor()const; + void setZoomFactor(int zoomFactor); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTgtType()const; + void setTgtType(const std::string& tgtType); + long getUnitHeight()const; + void setUnitHeight(long unitHeight); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNotifyEndpoint()const; + void setNotifyEndpoint(const std::string& notifyEndpoint); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + bool getThumbnails()const; + void setThumbnails(bool thumbnails); + std::string getTgtUri()const; + void setTgtUri(const std::string& tgtUri); + + private: + std::string srcType_; + int baseCol_; + std::string notifyTopicName_; + long unitWidth_; + int zoomLevel_; + int baseRow_; + std::string modelId_; + std::string project_; + int zoomFactor_; + std::string accessKeyId_; + std::string tgtType_; + long unitHeight_; + std::string regionId_; + std::string notifyEndpoint_; + std::string srcUri_; + bool thumbnails_; + std::string tgtUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateCADConversionTaskResult.h b/imm/include/alibabacloud/imm/model/CreateCADConversionTaskResult.h new file mode 100755 index 000000000..2ee281162 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateCADConversionTaskResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateCADConversionTaskResult : public ServiceResult + { + public: + + + CreateCADConversionTaskResult(); + explicit CreateCADConversionTaskResult(const std::string &payload); + ~CreateCADConversionTaskResult(); + std::string getStatus()const; + std::string getTaskId()const; + int getPercent()const; + std::string getTgtLoc()const; + std::string getCreateTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string taskId_; + int percent_; + std::string tgtLoc_; + std::string createTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATECADCONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateDocIndexTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateDocIndexTaskRequest.h new file mode 100755 index 000000000..eb400ce23 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateDocIndexTaskRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateDocIndexTaskRequest : public RpcServiceRequest + { + + public: + CreateDocIndexTaskRequest(); + ~CreateDocIndexTaskRequest(); + + std::string getCustomKey1()const; + void setCustomKey1(const std::string& customKey1); + std::string getSet()const; + void setSet(const std::string& set); + std::string getCustomKey5()const; + void setCustomKey5(const std::string& customKey5); + std::string getCustomKey4()const; + void setCustomKey4(const std::string& customKey4); + std::string getCustomKey3()const; + void setCustomKey3(const std::string& customKey3); + std::string getCustomKey2()const; + void setCustomKey2(const std::string& customKey2); + std::string getProject()const; + void setProject(const std::string& project); + std::string getCustomKey6()const; + void setCustomKey6(const std::string& customKey6); + std::string getContentType()const; + void setContentType(const std::string& contentType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + std::string getUniqueId()const; + void setUniqueId(const std::string& uniqueId); + + private: + std::string customKey1_; + std::string set_; + std::string customKey5_; + std::string customKey4_; + std::string customKey3_; + std::string customKey2_; + std::string project_; + std::string customKey6_; + std::string contentType_; + std::string regionId_; + std::string name_; + std::string srcUri_; + std::string uniqueId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateDocIndexTaskResult.h b/imm/include/alibabacloud/imm/model/CreateDocIndexTaskResult.h new file mode 100755 index 000000000..50350130d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateDocIndexTaskResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateDocIndexTaskResult : public ServiceResult + { + public: + + + CreateDocIndexTaskResult(); + explicit CreateDocIndexTaskResult(const std::string &payload); + ~CreateDocIndexTaskResult(); + std::string getStatus()const; + std::string getTaskId()const; + std::string getCreateTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string taskId_; + std::string createTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEDOCINDEXTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateFaceSetRequest.h b/imm/include/alibabacloud/imm/model/CreateFaceSetRequest.h new file mode 100755 index 000000000..6ab1d8b0d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateFaceSetRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEFACESETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEFACESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateFaceSetRequest : public RpcServiceRequest + { + + public: + CreateFaceSetRequest(); + ~CreateFaceSetRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEFACESETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateFaceSetResult.h b/imm/include/alibabacloud/imm/model/CreateFaceSetResult.h new file mode 100755 index 000000000..e781a2ae1 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateFaceSetResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEFACESETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEFACESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateFaceSetResult : public ServiceResult + { + public: + + + CreateFaceSetResult(); + explicit CreateFaceSetResult(const std::string &payload); + ~CreateFaceSetResult(); + std::string getStatus()const; + long getPhotos()const; + std::string getModifyTime()const; + std::string getCreateTime()const; + std::string getSetId()const; + long getFaces()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long photos_; + std::string modifyTime_; + std::string createTime_; + std::string setId_; + long faces_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEFACESETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h new file mode 100755 index 000000000..214ea6983 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateGroupFacesJobRequest : public RpcServiceRequest + { + + public: + CreateGroupFacesJobRequest(); + ~CreateGroupFacesJobRequest(); + + std::string getNotifyTopicName()const; + void setNotifyTopicName(const std::string& notifyTopicName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNotifyEndpoint()const; + void setNotifyEndpoint(const std::string& notifyEndpoint); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string notifyTopicName_; + std::string regionId_; + std::string notifyEndpoint_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h new file mode 100755 index 000000000..5afeac895 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateGroupFacesJobResult.h @@ -0,0 +1,55 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateGroupFacesJobResult : public ServiceResult + { + public: + + + CreateGroupFacesJobResult(); + explicit CreateGroupFacesJobResult(const std::string &payload); + ~CreateGroupFacesJobResult(); + std::string getJobType()const; + std::string getSetId()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobType_; + std::string setId_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEGROUPFACESJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h new file mode 100755 index 000000000..ee3bce161 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateOfficeConversionTaskRequest : public RpcServiceRequest + { + + public: + CreateOfficeConversionTaskRequest(); + ~CreateOfficeConversionTaskRequest(); + + std::string getSrcType()const; + void setSrcType(const std::string& srcType); + std::string getProject()const; + void setProject(const std::string& project); + std::string getIdempotentToken()const; + void setIdempotentToken(const std::string& idempotentToken); + bool getPdfVector()const; + void setPdfVector(bool pdfVector); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getPassword()const; + void setPassword(const std::string& password); + long getStartPage()const; + void setStartPage(long startPage); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNotifyEndpoint()const; + void setNotifyEndpoint(const std::string& notifyEndpoint); + bool getFitToPagesWide()const; + void setFitToPagesWide(bool fitToPagesWide); + std::string getTgtFilePrefix()const; + void setTgtFilePrefix(const std::string& tgtFilePrefix); + std::string getNotifyTopicName()const; + void setNotifyTopicName(const std::string& notifyTopicName); + std::string getModelId()const; + void setModelId(const std::string& modelId); + int getDisplayDpi()const; + void setDisplayDpi(int displayDpi); + long getMaxSheetRow()const; + void setMaxSheetRow(long maxSheetRow); + long getMaxSheetCount()const; + void setMaxSheetCount(long maxSheetCount); + long getEndPage()const; + void setEndPage(long endPage); + std::string getTgtFileSuffix()const; + void setTgtFileSuffix(const std::string& tgtFileSuffix); + bool getSheetOnePage()const; + void setSheetOnePage(bool sheetOnePage); + long getMaxSheetCol()const; + void setMaxSheetCol(long maxSheetCol); + std::string getTgtType()const; + void setTgtType(const std::string& tgtType); + bool getHidecomments()const; + void setHidecomments(bool hidecomments); + bool getFitToPagesTall()const; + void setFitToPagesTall(bool fitToPagesTall); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + std::string getTgtFilePages()const; + void setTgtFilePages(const std::string& tgtFilePages); + std::string getTgtUri()const; + void setTgtUri(const std::string& tgtUri); + + private: + std::string srcType_; + std::string project_; + std::string idempotentToken_; + bool pdfVector_; + std::string accessKeyId_; + std::string password_; + long startPage_; + std::string regionId_; + std::string notifyEndpoint_; + bool fitToPagesWide_; + std::string tgtFilePrefix_; + std::string notifyTopicName_; + std::string modelId_; + int displayDpi_; + long maxSheetRow_; + long maxSheetCount_; + long endPage_; + std::string tgtFileSuffix_; + bool sheetOnePage_; + long maxSheetCol_; + std::string tgtType_; + bool hidecomments_; + bool fitToPagesTall_; + std::string srcUri_; + std::string tgtFilePages_; + std::string tgtUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h new file mode 100755 index 000000000..147a20397 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateOfficeConversionTaskResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateOfficeConversionTaskResult : public ServiceResult + { + public: + + + CreateOfficeConversionTaskResult(); + explicit CreateOfficeConversionTaskResult(const std::string &payload); + ~CreateOfficeConversionTaskResult(); + std::string getStatus()const; + std::string getTaskId()const; + int getPercent()const; + std::string getTgtLoc()const; + std::string getCreateTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string taskId_; + int percent_; + std::string tgtLoc_; + std::string createTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobRequest.h b/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobRequest.h new file mode 100755 index 000000000..19d3dd6f7 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreatePornBatchDetectJobRequest : public RpcServiceRequest + { + + public: + CreatePornBatchDetectJobRequest(); + ~CreatePornBatchDetectJobRequest(); + + std::string getNotifyTopicName()const; + void setNotifyTopicName(const std::string& notifyTopicName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNotifyEndpoint()const; + void setNotifyEndpoint(const std::string& notifyEndpoint); + std::string getProject()const; + void setProject(const std::string& project); + std::string getExternalID()const; + void setExternalID(const std::string& externalID); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTgtUri()const; + void setTgtUri(const std::string& tgtUri); + + private: + std::string notifyTopicName_; + std::string regionId_; + std::string notifyEndpoint_; + std::string project_; + std::string externalID_; + std::string srcUri_; + std::string accessKeyId_; + std::string tgtUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobResult.h b/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobResult.h new file mode 100755 index 000000000..53509428c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreatePornBatchDetectJobResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreatePornBatchDetectJobResult : public ServiceResult + { + public: + + + CreatePornBatchDetectJobResult(); + explicit CreatePornBatchDetectJobResult(const std::string &payload); + ~CreatePornBatchDetectJobResult(); + std::string getStatus()const; + int getPercent()const; + std::string getTgtLoc()const; + std::string getCreateTime()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + int percent_; + std::string tgtLoc_; + std::string createTime_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEPORNBATCHDETECTJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateSetRequest.h b/imm/include/alibabacloud/imm/model/CreateSetRequest.h new file mode 100755 index 000000000..387318768 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateSetRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateSetRequest : public RpcServiceRequest + { + + public: + CreateSetRequest(); + ~CreateSetRequest(); + + std::string getSetName()const; + void setSetName(const std::string& setName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string setName_; + std::string regionId_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATESETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateSetResult.h b/imm/include/alibabacloud/imm/model/CreateSetResult.h new file mode 100755 index 000000000..f3053d66a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateSetResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATESETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateSetResult : public ServiceResult + { + public: + + + CreateSetResult(); + explicit CreateSetResult(const std::string &payload); + ~CreateSetResult(); + std::string getModifyTime()const; + int getImageCount()const; + int getVideoCount()const; + std::string getCreateTime()const; + std::string getSetName()const; + std::string getSetId()const; + int getFaceCount()const; + int getVideoLength()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + int imageCount_; + int videoCount_; + std::string createTime_; + std::string setName_; + std::string setId_; + int faceCount_; + int videoLength_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATESETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateTagJobRequest.h b/imm/include/alibabacloud/imm/model/CreateTagJobRequest.h new file mode 100755 index 000000000..e014ed6ba --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateTagJobRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATETAGJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATETAGJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateTagJobRequest : public RpcServiceRequest + { + + public: + CreateTagJobRequest(); + ~CreateTagJobRequest(); + + std::string getNotifyTopicName()const; + void setNotifyTopicName(const std::string& notifyTopicName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNotifyEndpoint()const; + void setNotifyEndpoint(const std::string& notifyEndpoint); + std::string getProject()const; + void setProject(const std::string& project); + std::string getExternalID()const; + void setExternalID(const std::string& externalID); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string notifyTopicName_; + std::string regionId_; + std::string notifyEndpoint_; + std::string project_; + std::string externalID_; + std::string srcUri_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATETAGJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateTagJobResult.h b/imm/include/alibabacloud/imm/model/CreateTagJobResult.h new file mode 100755 index 000000000..fea8728bb --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateTagJobResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATETAGJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATETAGJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateTagJobResult : public ServiceResult + { + public: + + + CreateTagJobResult(); + explicit CreateTagJobResult(const std::string &payload); + ~CreateTagJobResult(); + std::string getStatus()const; + std::string getFinishTime()const; + int getPercent()const; + std::string getCreateTime()const; + std::string getSetId()const; + std::string getJobId()const; + std::string getSrcUri()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string finishTime_; + int percent_; + std::string createTime_; + std::string setId_; + std::string jobId_; + std::string srcUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATETAGJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateTagSetRequest.h b/imm/include/alibabacloud/imm/model/CreateTagSetRequest.h new file mode 100755 index 000000000..a89f03784 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateTagSetRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATETAGSETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATETAGSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateTagSetRequest : public RpcServiceRequest + { + + public: + CreateTagSetRequest(); + ~CreateTagSetRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATETAGSETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateTagSetResult.h b/imm/include/alibabacloud/imm/model/CreateTagSetResult.h new file mode 100755 index 000000000..250bcb20c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateTagSetResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATETAGSETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATETAGSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateTagSetResult : public ServiceResult + { + public: + + + CreateTagSetResult(); + explicit CreateTagSetResult(const std::string &payload); + ~CreateTagSetResult(); + std::string getStatus()const; + long getPhotos()const; + std::string getModifyTime()const; + std::string getCreateTime()const; + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long photos_; + std::string modifyTime_; + std::string createTime_; + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATETAGSETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h b/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h new file mode 100755 index 000000000..fa0e5c24b --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateVideoAnalyseTaskRequest : public RpcServiceRequest + { + + public: + CreateVideoAnalyseTaskRequest(); + ~CreateVideoAnalyseTaskRequest(); + + std::string getNotifyTopicName()const; + void setNotifyTopicName(const std::string& notifyTopicName); + std::string getGrabType()const; + void setGrabType(const std::string& grabType); + std::string getProject()const; + void setProject(const std::string& project); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getVideoUri()const; + void setVideoUri(const std::string& videoUri); + bool getSaveType()const; + void setSaveType(bool saveType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNotifyEndpoint()const; + void setNotifyEndpoint(const std::string& notifyEndpoint); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getTgtUri()const; + void setTgtUri(const std::string& tgtUri); + + private: + std::string notifyTopicName_; + std::string grabType_; + std::string project_; + std::string endTime_; + std::string startTime_; + std::string accessKeyId_; + std::string videoUri_; + bool saveType_; + std::string regionId_; + std::string notifyEndpoint_; + std::string interval_; + std::string tgtUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h b/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h new file mode 100755 index 000000000..4c935934d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/CreateVideoAnalyseTaskResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT CreateVideoAnalyseTaskResult : public ServiceResult + { + public: + + + CreateVideoAnalyseTaskResult(); + explicit CreateVideoAnalyseTaskResult(const std::string &payload); + ~CreateVideoAnalyseTaskResult(); + std::string getTaskId()const; + std::string getTaskType()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string taskType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_CREATEVIDEOANALYSETASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteDocIndexRequest.h b/imm/include/alibabacloud/imm/model/DeleteDocIndexRequest.h new file mode 100755 index 000000000..9e9bef017 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteDocIndexRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteDocIndexRequest : public RpcServiceRequest + { + + public: + DeleteDocIndexRequest(); + ~DeleteDocIndexRequest(); + + std::string getSet()const; + void setSet(const std::string& set); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getUniqueId()const; + void setUniqueId(const std::string& uniqueId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string set_; + std::string regionId_; + std::string project_; + std::string uniqueId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteDocIndexResult.h b/imm/include/alibabacloud/imm/model/DeleteDocIndexResult.h new file mode 100755 index 000000000..067b2ba43 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteDocIndexResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteDocIndexResult : public ServiceResult + { + public: + + + DeleteDocIndexResult(); + explicit DeleteDocIndexResult(const std::string &payload); + ~DeleteDocIndexResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEDOCINDEXRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceJobRequest.h b/imm/include/alibabacloud/imm/model/DeleteFaceJobRequest.h new file mode 100755 index 000000000..7b3c8a2cf --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteFaceJobRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceJobRequest : public RpcServiceRequest + { + + public: + DeleteFaceJobRequest(); + ~DeleteFaceJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getClearIndexData()const; + void setClearIndexData(const std::string& clearIndexData); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string jobId_; + std::string regionId_; + std::string project_; + std::string clearIndexData_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceJobResult.h b/imm/include/alibabacloud/imm/model/DeleteFaceJobResult.h new file mode 100755 index 000000000..02081186d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteFaceJobResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceJobResult : public ServiceResult + { + public: + + + DeleteFaceJobResult(); + explicit DeleteFaceJobResult(const std::string &payload); + ~DeleteFaceJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACEJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupRequest.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupRequest.h new file mode 100755 index 000000000..df3dab375 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchGroupRequest : public RpcServiceRequest + { + + public: + DeleteFaceSearchGroupRequest(); + ~DeleteFaceSearchGroupRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string groupName_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupResult.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupResult.h new file mode 100755 index 000000000..66277ffcb --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchGroupResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchGroupResult : public ServiceResult + { + public: + + + DeleteFaceSearchGroupResult(); + explicit DeleteFaceSearchGroupResult(const std::string &payload); + ~DeleteFaceSearchGroupResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHGROUPRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdRequest.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdRequest.h new file mode 100755 index 000000000..738de6cbf --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchImageByIdRequest : public RpcServiceRequest + { + + public: + DeleteFaceSearchImageByIdRequest(); + ~DeleteFaceSearchImageByIdRequest(); + + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getUser()const; + void setUser(const std::string& user); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string imageId_; + std::string regionId_; + std::string project_; + std::string srcUri_; + std::string groupName_; + std::string user_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdResult.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdResult.h new file mode 100755 index 000000000..941195218 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchImageByIdResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchImageByIdResult : public ServiceResult + { + public: + + + DeleteFaceSearchImageByIdResult(); + explicit DeleteFaceSearchImageByIdResult(const std::string &payload); + ~DeleteFaceSearchImageByIdResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHIMAGEBYIDRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserRequest.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserRequest.h new file mode 100755 index 000000000..33a8ea61a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchUserRequest : public RpcServiceRequest + { + + public: + DeleteFaceSearchUserRequest(); + ~DeleteFaceSearchUserRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getUser()const; + void setUser(const std::string& user); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string groupName_; + std::string user_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserResult.h b/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserResult.h new file mode 100755 index 000000000..aac4cd93b --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteFaceSearchUserResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteFaceSearchUserResult : public ServiceResult + { + public: + + + DeleteFaceSearchUserResult(); + explicit DeleteFaceSearchUserResult(const std::string &payload); + ~DeleteFaceSearchUserResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEFACESEARCHUSERRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteImageJobRequest.h b/imm/include/alibabacloud/imm/model/DeleteImageJobRequest.h new file mode 100755 index 000000000..7df1d5a2f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteImageJobRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteImageJobRequest : public RpcServiceRequest + { + + public: + DeleteImageJobRequest(); + ~DeleteImageJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getJobType()const; + void setJobType(const std::string& jobType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string jobId_; + std::string regionId_; + std::string project_; + std::string jobType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteImageJobResult.h b/imm/include/alibabacloud/imm/model/DeleteImageJobResult.h new file mode 100755 index 000000000..a00564224 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteImageJobResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteImageJobResult : public ServiceResult + { + public: + + + DeleteImageJobResult(); + explicit DeleteImageJobResult(const std::string &payload); + ~DeleteImageJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGEJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteImageRequest.h b/imm/include/alibabacloud/imm/model/DeleteImageRequest.h new file mode 100755 index 000000000..070bbe438 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteImageRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteImageRequest : public RpcServiceRequest + { + + public: + DeleteImageRequest(); + ~DeleteImageRequest(); + + std::string getImageUri()const; + void setImageUri(const std::string& imageUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string imageUri_; + std::string regionId_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteImageResult.h b/imm/include/alibabacloud/imm/model/DeleteImageResult.h new file mode 100755 index 000000000..9052196c2 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteImageResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteImageResult : public ServiceResult + { + public: + + + DeleteImageResult(); + explicit DeleteImageResult(const std::string &payload); + ~DeleteImageResult(); + std::string getSetId()const; + std::string getImageUri()const; + + protected: + void parse(const std::string &payload); + private: + std::string setId_; + std::string imageUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h new file mode 100755 index 000000000..02c7dcc5b --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteOfficeConversionTaskRequest : public RpcServiceRequest + { + + public: + DeleteOfficeConversionTaskRequest(); + ~DeleteOfficeConversionTaskRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h new file mode 100755 index 000000000..f3aba9cde --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteOfficeConversionTaskResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteOfficeConversionTaskResult : public ServiceResult + { + public: + + + DeleteOfficeConversionTaskResult(); + explicit DeleteOfficeConversionTaskResult(const std::string &payload); + ~DeleteOfficeConversionTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskRequest.h b/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskRequest.h new file mode 100755 index 000000000..348f30b8a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeletePhotoProcessTaskRequest : public RpcServiceRequest + { + + public: + DeletePhotoProcessTaskRequest(); + ~DeletePhotoProcessTaskRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskResult.h b/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskResult.h new file mode 100755 index 000000000..65e30f86b --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeletePhotoProcessTaskResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeletePhotoProcessTaskResult : public ServiceResult + { + public: + + + DeletePhotoProcessTaskResult(); + explicit DeletePhotoProcessTaskResult(const std::string &payload); + ~DeletePhotoProcessTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEPHOTOPROCESSTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h b/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h new file mode 100755 index 000000000..c51718c08 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeletePornBatchDetectJobRequest : public RpcServiceRequest + { + + public: + DeletePornBatchDetectJobRequest(); + ~DeletePornBatchDetectJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string jobId_; + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobResult.h b/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobResult.h new file mode 100755 index 000000000..4359ce5f5 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeletePornBatchDetectJobResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeletePornBatchDetectJobResult : public ServiceResult + { + public: + + + DeletePornBatchDetectJobResult(); + explicit DeletePornBatchDetectJobResult(const std::string &payload); + ~DeletePornBatchDetectJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEPORNBATCHDETECTJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h b/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h new file mode 100755 index 000000000..efbc16621 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteProjectRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPROJECTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteProjectRequest : public RpcServiceRequest + { + + public: + DeleteProjectRequest(); + ~DeleteProjectRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteProjectResult.h b/imm/include/alibabacloud/imm/model/DeleteProjectResult.h new file mode 100755 index 000000000..05f009852 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteProjectResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEPROJECTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteProjectResult : public ServiceResult + { + public: + + + DeleteProjectResult(); + explicit DeleteProjectResult(const std::string &payload); + ~DeleteProjectResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEPROJECTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteSetRequest.h b/imm/include/alibabacloud/imm/model/DeleteSetRequest.h new file mode 100755 index 000000000..7263e8574 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteSetRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteSetRequest : public RpcServiceRequest + { + + public: + DeleteSetRequest(); + ~DeleteSetRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETESETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteSetResult.h b/imm/include/alibabacloud/imm/model/DeleteSetResult.h new file mode 100755 index 000000000..9273b1661 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteSetResult.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteSetResult : public ServiceResult + { + public: + + + DeleteSetResult(); + explicit DeleteSetResult(const std::string &payload); + ~DeleteSetResult(); + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETESETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagByNameRequest.h b/imm/include/alibabacloud/imm/model/DeleteTagByNameRequest.h new file mode 100755 index 000000000..ef541f85c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteTagByNameRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagByNameRequest : public RpcServiceRequest + { + + public: + DeleteTagByNameRequest(); + ~DeleteTagByNameRequest(); + + std::string getTagName()const; + void setTagName(const std::string& tagName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string tagName_; + std::string regionId_; + std::string project_; + std::string setId_; + std::string srcUri_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagByNameResult.h b/imm/include/alibabacloud/imm/model/DeleteTagByNameResult.h new file mode 100755 index 000000000..55d335c50 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteTagByNameResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagByNameResult : public ServiceResult + { + public: + + + DeleteTagByNameResult(); + explicit DeleteTagByNameResult(const std::string &payload); + ~DeleteTagByNameResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGBYNAMERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagByUrlRequest.h b/imm/include/alibabacloud/imm/model/DeleteTagByUrlRequest.h new file mode 100755 index 000000000..eebf919db --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteTagByUrlRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagByUrlRequest : public RpcServiceRequest + { + + public: + DeleteTagByUrlRequest(); + ~DeleteTagByUrlRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string setId_; + std::string srcUri_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagByUrlResult.h b/imm/include/alibabacloud/imm/model/DeleteTagByUrlResult.h new file mode 100755 index 000000000..6c931cf5c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteTagByUrlResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagByUrlResult : public ServiceResult + { + public: + + + DeleteTagByUrlResult(); + explicit DeleteTagByUrlResult(const std::string &payload); + ~DeleteTagByUrlResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGBYURLRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagJobRequest.h b/imm/include/alibabacloud/imm/model/DeleteTagJobRequest.h new file mode 100755 index 000000000..8c6832a4e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteTagJobRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagJobRequest : public RpcServiceRequest + { + + public: + DeleteTagJobRequest(); + ~DeleteTagJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getClearIndexData()const; + void setClearIndexData(const std::string& clearIndexData); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string jobId_; + std::string regionId_; + std::string project_; + std::string clearIndexData_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagJobResult.h b/imm/include/alibabacloud/imm/model/DeleteTagJobResult.h new file mode 100755 index 000000000..d99e871e1 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteTagJobResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagJobResult : public ServiceResult + { + public: + + + DeleteTagJobResult(); + explicit DeleteTagJobResult(const std::string &payload); + ~DeleteTagJobResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagSetRequest.h b/imm/include/alibabacloud/imm/model/DeleteTagSetRequest.h new file mode 100755 index 000000000..8c09d8a4d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteTagSetRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGSETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagSetRequest : public RpcServiceRequest + { + + public: + DeleteTagSetRequest(); + ~DeleteTagSetRequest(); + + std::string getLazyMode()const; + void setLazyMode(const std::string& lazyMode); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getCheckEmpty()const; + void setCheckEmpty(const std::string& checkEmpty); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string lazyMode_; + std::string regionId_; + std::string project_; + std::string setId_; + std::string checkEmpty_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGSETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteTagSetResult.h b/imm/include/alibabacloud/imm/model/DeleteTagSetResult.h new file mode 100755 index 000000000..c69e2637b --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteTagSetResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteTagSetResult : public ServiceResult + { + public: + + + DeleteTagSetResult(); + explicit DeleteTagSetResult(const std::string &payload); + ~DeleteTagSetResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETETAGSETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h b/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h new file mode 100755 index 000000000..84ed17e77 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteVideoRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEOREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteVideoRequest : public RpcServiceRequest + { + + public: + DeleteVideoRequest(); + ~DeleteVideoRequest(); + + std::string getVideoUri()const; + void setVideoUri(const std::string& videoUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + bool getResources()const; + void setResources(bool resources); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string videoUri_; + std::string regionId_; + std::string project_; + std::string setId_; + bool resources_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEOREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoResult.h b/imm/include/alibabacloud/imm/model/DeleteVideoResult.h new file mode 100755 index 000000000..f1df303de --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteVideoResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteVideoResult : public ServiceResult + { + public: + + + DeleteVideoResult(); + explicit DeleteVideoResult(const std::string &payload); + ~DeleteVideoResult(); + std::string getVideoUri()const; + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::string videoUri_; + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEORESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h b/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h new file mode 100755 index 000000000..aca3d2d80 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteVideoTaskRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteVideoTaskRequest : public RpcServiceRequest + { + + public: + DeleteVideoTaskRequest(); + ~DeleteVideoTaskRequest(); + + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string taskType_; + std::string regionId_; + std::string project_; + std::string taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h b/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h new file mode 100755 index 000000000..535bc5d91 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DeleteVideoTaskResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DeleteVideoTaskResult : public ServiceResult + { + public: + + + DeleteVideoTaskResult(); + explicit DeleteVideoTaskResult(const std::string &payload); + ~DeleteVideoTaskResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DELETEVIDEOTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DescribeRegionsRequest.h b/imm/include/alibabacloud/imm/model/DescribeRegionsRequest.h new file mode 100755 index 000000000..f7b04ca93 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DescribeRegionsRequest.h @@ -0,0 +1,51 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DescribeRegionsRequest : public RpcServiceRequest + { + + public: + DescribeRegionsRequest(); + ~DescribeRegionsRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DescribeRegionsResult.h b/imm/include/alibabacloud/imm/model/DescribeRegionsResult.h new file mode 100755 index 000000000..fe82d30d9 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DescribeRegionsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DescribeRegionsResult : public ServiceResult + { + public: + struct Regions + { + struct RegionItem + { + std::vector projectTypes; + std::string regionId; + }; + std::vector region; + }; + + + DescribeRegionsResult(); + explicit DescribeRegionsResult(const std::string &payload); + ~DescribeRegionsResult(); + Regions getRegions()const; + + protected: + void parse(const std::string &payload); + private: + Regions regions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DESCRIBEREGIONSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectClothesRequest.h b/imm/include/alibabacloud/imm/model/DetectClothesRequest.h new file mode 100755 index 000000000..1da6d5387 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectClothesRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectClothesRequest : public RpcServiceRequest + { + + public: + DetectClothesRequest(); + ~DetectClothesRequest(); + + std::string getSrcUris()const; + void setSrcUris(const std::string& srcUris); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string srcUris_; + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectClothesResult.h b/imm/include/alibabacloud/imm/model/DetectClothesResult.h new file mode 100755 index 000000000..34bd661aa --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectClothesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectClothesResult : public ServiceResult + { + public: + struct SuccessDetailsItem + { + struct ClothesBoxDetailItem + { + std::string type; + float score; + std::string pUID; + std::vector box; + }; + std::string getImageTime; + std::vector clothesBoxDetail; + std::string detectTime; + std::string time; + std::string srcUri; + }; + struct FailDetailsItem + { + std::string reason; + std::string srcUri; + }; + + + DetectClothesResult(); + explicit DetectClothesResult(const std::string &payload); + ~DetectClothesResult(); + std::vector getSuccessDetails()const; + std::vector getSrcUris()const; + std::vector getFailDetails()const; + + protected: + void parse(const std::string &payload); + private: + std::vector successDetails_; + std::vector srcUris_; + std::vector failDetails_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTCLOTHESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageCelebrityRequest.h b/imm/include/alibabacloud/imm/model/DetectImageCelebrityRequest.h new file mode 100755 index 000000000..bf46ae280 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageCelebrityRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageCelebrityRequest : public RpcServiceRequest + { + + public: + DetectImageCelebrityRequest(); + ~DetectImageCelebrityRequest(); + + std::string getImageUri()const; + void setImageUri(const std::string& imageUri); + std::string getLibrary()const; + void setLibrary(const std::string& library); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string imageUri_; + std::string library_; + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageCelebrityResult.h b/imm/include/alibabacloud/imm/model/DetectImageCelebrityResult.h new file mode 100755 index 000000000..8f25d7e6f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageCelebrityResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageCelebrityResult : public ServiceResult + { + public: + struct CelebrityItem + { + struct CelebrityBoundary + { + int left; + int top; + int height; + int width; + }; + std::string celebrityName; + CelebrityBoundary celebrityBoundary; + std::string celebrityGender; + std::string celebrityLibraryName; + float celebrityConfidence; + }; + + + DetectImageCelebrityResult(); + explicit DetectImageCelebrityResult(const std::string &payload); + ~DetectImageCelebrityResult(); + std::vector getCelebrity()const; + std::string getImageUri()const; + + protected: + void parse(const std::string &payload); + private: + std::vector celebrity_; + std::string imageUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGECELEBRITYRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h b/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h new file mode 100755 index 000000000..01baba117 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageFacesRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageFacesRequest : public RpcServiceRequest + { + + public: + DetectImageFacesRequest(); + ~DetectImageFacesRequest(); + + std::string getImageUri()const; + void setImageUri(const std::string& imageUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string imageUri_; + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h b/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h new file mode 100755 index 000000000..480da655e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageFacesResult.h @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageFacesResult : public ServiceResult + { + public: + struct FacesItem + { + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + FaceBoundary faceBoundary; + std::string beard; + float beardConfidence; + HeadPose headPose; + std::string race; + float raceConfidence; + std::string glasses; + std::string mask; + float maskConfidence; + float glassesConfidence; + }; + struct EmotionDetails + { + float cALM; + float sCARED; + float hAPPY; + float sAD; + float sURPRISED; + float aNGRY; + float dISGUSTED; + }; + std::string faceId; + float attractiveConfidence; + FaceAttributes faceAttributes; + float genderConfidence; + float emotionConfidence; + std::string gender; + EmotionDetails emotionDetails; + float faceConfidence; + float attractive; + float faceQuality; + std::string emotion; + int age; + float ageConfidence; + }; + + + DetectImageFacesResult(); + explicit DetectImageFacesResult(const std::string &payload); + ~DetectImageFacesResult(); + std::string getImageUri()const; + std::vector getFaces()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageUri_; + std::vector faces_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGEFACESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageLogosRequest.h b/imm/include/alibabacloud/imm/model/DetectImageLogosRequest.h new file mode 100755 index 000000000..054752a6f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageLogosRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageLogosRequest : public RpcServiceRequest + { + + public: + DetectImageLogosRequest(); + ~DetectImageLogosRequest(); + + std::string getImageUri()const; + void setImageUri(const std::string& imageUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string imageUri_; + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageLogosResult.h b/imm/include/alibabacloud/imm/model/DetectImageLogosResult.h new file mode 100755 index 000000000..9d6a6133e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageLogosResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageLogosResult : public ServiceResult + { + public: + struct LogosItem + { + struct LogoBoundary + { + int left; + int top; + int height; + int width; + }; + LogoBoundary logoBoundary; + std::string logoName; + float logoConfidence; + }; + + + DetectImageLogosResult(); + explicit DetectImageLogosResult(const std::string &payload); + ~DetectImageLogosResult(); + std::vector getLogos()const; + std::string getImageUri()const; + + protected: + void parse(const std::string &payload); + private: + std::vector logos_; + std::string imageUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGELOGOSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h b/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h new file mode 100755 index 000000000..b7e182cf7 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageTagsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageTagsRequest : public RpcServiceRequest + { + + public: + DetectImageTagsRequest(); + ~DetectImageTagsRequest(); + + std::string getImageUri()const; + void setImageUri(const std::string& imageUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string imageUri_; + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h b/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h new file mode 100755 index 000000000..395b0525a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageTagsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageTagsResult : public ServiceResult + { + public: + struct TagsItem + { + std::string tagName; + float tagConfidence; + std::string tagEnName; + int tagLevel; + std::string parentTagEnName; + std::string parentTagName; + }; + + + DetectImageTagsResult(); + explicit DetectImageTagsResult(const std::string &payload); + ~DetectImageTagsResult(); + std::string getImageUri()const; + std::vector getTags()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageUri_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETAGSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageTextsRequest.h b/imm/include/alibabacloud/imm/model/DetectImageTextsRequest.h new file mode 100755 index 000000000..c0e373e6f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageTextsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageTextsRequest : public RpcServiceRequest + { + + public: + DetectImageTextsRequest(); + ~DetectImageTextsRequest(); + + std::string getImageUri()const; + void setImageUri(const std::string& imageUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string imageUri_; + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectImageTextsResult.h b/imm/include/alibabacloud/imm/model/DetectImageTextsResult.h new file mode 100755 index 000000000..db13cb7d5 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectImageTextsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectImageTextsResult : public ServiceResult + { + public: + struct OCRItem + { + struct OCRBoundary + { + int left; + int top; + int height; + int width; + }; + OCRBoundary oCRBoundary; + float oCRConfidence; + std::string oCRContents; + }; + + + DetectImageTextsResult(); + explicit DetectImageTextsResult(const std::string &payload); + ~DetectImageTextsResult(); + std::string getImageUri()const; + std::vector getOCR()const; + + protected: + void parse(const std::string &payload); + private: + std::string imageUri_; + std::vector oCR_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTIMAGETEXTSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectLogoRequest.h b/imm/include/alibabacloud/imm/model/DetectLogoRequest.h new file mode 100755 index 000000000..e63141097 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectLogoRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTLOGOREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTLOGOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectLogoRequest : public RpcServiceRequest + { + + public: + DetectLogoRequest(); + ~DetectLogoRequest(); + + std::string getSrcUris()const; + void setSrcUris(const std::string& srcUris); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string srcUris_; + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTLOGOREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectLogoResult.h b/imm/include/alibabacloud/imm/model/DetectLogoResult.h new file mode 100755 index 000000000..c3758b91c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectLogoResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTLOGORESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTLOGORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectLogoResult : public ServiceResult + { + public: + struct SuccessDetailsItem + { + struct LogoBoxDetailItem + { + std::string type; + float score; + std::string pUID; + std::vector box; + }; + std::string getImageTime; + std::string detectTime; + std::string time; + std::vector logoBoxDetail; + std::string srcUri; + }; + struct FailDetailsItem + { + std::string reason; + std::string srcUri; + }; + + + DetectLogoResult(); + explicit DetectLogoResult(const std::string &payload); + ~DetectLogoResult(); + std::vector getSuccessDetails()const; + std::vector getSrcUris()const; + std::vector getFailDetails()const; + + protected: + void parse(const std::string &payload); + private: + std::vector successDetails_; + std::vector srcUris_; + std::vector failDetails_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTLOGORESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h b/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h new file mode 100755 index 000000000..c19483fd0 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectQRCodesRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectQRCodesRequest : public RpcServiceRequest + { + + public: + DetectQRCodesRequest(); + ~DetectQRCodesRequest(); + + std::string getSrcUris()const; + void setSrcUris(const std::string& srcUris); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string srcUris_; + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTQRCODESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h b/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h new file mode 100755 index 000000000..77f0d6a29 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectQRCodesResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTQRCODESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTQRCODESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectQRCodesResult : public ServiceResult + { + public: + struct SuccessDetailsItem + { + struct QRCodesItem + { + struct QRCodesRectangle + { + std::string left; + std::string top; + std::string height; + std::string width; + }; + QRCodesRectangle qRCodesRectangle; + std::string content; + }; + std::vector qRCodes; + std::string srcUri; + }; + struct FailDetailsItem + { + std::string errorCode; + std::string errorMessage; + std::string srcUri; + }; + + + DetectQRCodesResult(); + explicit DetectQRCodesResult(const std::string &payload); + ~DetectQRCodesResult(); + std::vector getSuccessDetails()const; + std::vector getFailDetails()const; + + protected: + void parse(const std::string &payload); + private: + std::vector successDetails_; + std::vector failDetails_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTQRCODESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectTagRequest.h b/imm/include/alibabacloud/imm/model/DetectTagRequest.h new file mode 100755 index 000000000..d27bed59c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectTagRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTTAGREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTTAGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectTagRequest : public RpcServiceRequest + { + + public: + DetectTagRequest(); + ~DetectTagRequest(); + + std::string getSrcUris()const; + void setSrcUris(const std::string& srcUris); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getModelId()const; + void setModelId(const std::string& modelId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string srcUris_; + std::string regionId_; + std::string modelId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTTAGREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/DetectTagResult.h b/imm/include/alibabacloud/imm/model/DetectTagResult.h new file mode 100755 index 000000000..67928d645 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/DetectTagResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_DETECTTAGRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_DETECTTAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT DetectTagResult : public ServiceResult + { + public: + struct SuccessDetailsItem + { + struct TagsItem + { + std::string parentTagId; + std::string tagName; + std::string tagId; + std::string tagScore; + std::string tagLevel; + std::string parentTagName; + }; + std::vector tags; + std::string srcUri; + }; + struct FailDetailsItem + { + std::string reason; + std::string srcUri; + }; + + + DetectTagResult(); + explicit DetectTagResult(const std::string &payload); + ~DetectTagResult(); + std::vector getSuccessDetails()const; + std::string getSuccessNum()const; + std::vector getFailDetails()const; + + protected: + void parse(const std::string &payload); + private: + std::vector successDetails_; + std::string successNum_; + std::vector failDetails_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_DETECTTAGRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindImagesByTagNamesRequest.h b/imm/include/alibabacloud/imm/model/FindImagesByTagNamesRequest.h new file mode 100755 index 000000000..a6f700f39 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/FindImagesByTagNamesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindImagesByTagNamesRequest : public RpcServiceRequest + { + + public: + FindImagesByTagNamesRequest(); + ~FindImagesByTagNamesRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + int getLimit()const; + void setLimit(int limit); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getTagNames()const; + void setTagNames(const std::string& tagNames); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string marker_; + int limit_; + std::string project_; + std::string setId_; + std::string tagNames_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindImagesByTagNamesResult.h b/imm/include/alibabacloud/imm/model/FindImagesByTagNamesResult.h new file mode 100755 index 000000000..6b3e67333 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/FindImagesByTagNamesResult.h @@ -0,0 +1,179 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindImagesByTagNamesResult : public ServiceResult + { + public: + struct Frames + { + struct FacesItem + { + struct EmotionDetails + { + float cALM; + float sCARED; + float hAPPY; + float sAD; + float sURPRISED; + float aNGRY; + float dISGUSTED; + }; + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + FaceBoundary faceBoundary; + std::string beard; + float beardConfidence; + HeadPose headPose; + float raceConfidence; + std::string race; + std::string glasses; + float maskConfidence; + std::string mask; + float glassesConfidence; + }; + EmotionDetails emotionDetails; + float faceConfidence; + std::string faceId; + float attractive; + float faceQuality; + FaceAttributes faceAttributes; + float genderConfidence; + float emotionConfidence; + std::string gender; + std::string emotion; + int age; + std::string groupId; + }; + struct TagsItem + { + float tagConfidence; + std::string tagName; + int tagLevel; + std::string parentTagName; + }; + struct OCRItem + { + struct OCRBoundary + { + int left; + int left1; + int height; + int width; + }; + OCRBoundary oCRBoundary; + float oCRConfidence; + std::string oCRContents; + }; + struct CelebrityItem + { + struct CelebrityBoundary + { + int left; + int top; + int height; + int width; + }; + std::string celebrityName; + CelebrityBoundary celebrityBoundary; + std::string celebrityGender; + std::string celebrityLibraryName; + float celebrityConfidence; + }; + std::string modifyTime; + std::string sourceType; + std::string sourceUri; + std::string facesFailReason; + std::string remarksA; + std::string remarksB; + std::string imageFormat; + std::string tagsFailReason; + std::string facesModifyTime; + std::string exif; + std::string remarksC; + std::string remarksD; + int imageWidth; + std::vector celebrity; + std::string sourcePosition; + std::vector faces; + std::vector tags; + std::string facesStatus; + std::string createTime; + std::string tagsModifyTime; + std::string externalId; + std::string imageUri; + std::string orientation; + std::string oCRStatus; + std::string oCRModifyTime; + std::string imageTime; + std::string celebrityModifyTime; + int imageHeight; + std::string tagsStatus; + std::string oCRFailReason; + std::string celebrityFailReason; + std::string celebrityStatus; + std::vector oCR; + int fileSize; + std::string location; + }; + + + FindImagesByTagNamesResult(); + explicit FindImagesByTagNamesResult(const std::string &payload); + ~FindImagesByTagNamesResult(); + std::vector getImages()const; + std::string getSetId()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + std::string setId_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_FINDIMAGESBYTAGNAMESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindImagesRequest.h b/imm/include/alibabacloud/imm/model/FindImagesRequest.h new file mode 100755 index 000000000..065046d3f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/FindImagesRequest.h @@ -0,0 +1,123 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindImagesRequest : public RpcServiceRequest + { + + public: + FindImagesRequest(); + ~FindImagesRequest(); + + std::string getGender()const; + void setGender(const std::string& gender); + std::string getProject()const; + void setProject(const std::string& project); + std::string getExternalId()const; + void setExternalId(const std::string& externalId); + std::string getImageSizeRange()const; + void setImageSizeRange(const std::string& imageSizeRange); + std::string getRemarksBPrefix()const; + void setRemarksBPrefix(const std::string& remarksBPrefix); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getLocationBoundary()const; + void setLocationBoundary(const std::string& locationBoundary); + std::string getImageTimeRange()const; + void setImageTimeRange(const std::string& imageTimeRange); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getOCRContentsMatch()const; + void setOCRContentsMatch(const std::string& oCRContentsMatch); + int getLimit()const; + void setLimit(int limit); + std::string getRemarksDPrefix()const; + void setRemarksDPrefix(const std::string& remarksDPrefix); + std::string getSourceType()const; + void setSourceType(const std::string& sourceType); + std::string getAgeRange()const; + void setAgeRange(const std::string& ageRange); + std::string getOrder()const; + void setOrder(const std::string& order); + std::string getRemarksAPrefix()const; + void setRemarksAPrefix(const std::string& remarksAPrefix); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getOrderBy()const; + void setOrderBy(const std::string& orderBy); + std::string getTagNames()const; + void setTagNames(const std::string& tagNames); + std::string getSourceUriPrefix()const; + void setSourceUriPrefix(const std::string& sourceUriPrefix); + std::string getEmotion()const; + void setEmotion(const std::string& emotion); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getRemarksCPrefix()const; + void setRemarksCPrefix(const std::string& remarksCPrefix); + std::string getCreateTimeRange()const; + void setCreateTimeRange(const std::string& createTimeRange); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getModifyTimeRange()const; + void setModifyTimeRange(const std::string& modifyTimeRange); + + private: + std::string gender_; + std::string project_; + std::string externalId_; + std::string imageSizeRange_; + std::string remarksBPrefix_; + std::string accessKeyId_; + std::string locationBoundary_; + std::string imageTimeRange_; + std::string regionId_; + std::string oCRContentsMatch_; + int limit_; + std::string remarksDPrefix_; + std::string sourceType_; + std::string ageRange_; + std::string order_; + std::string remarksAPrefix_; + std::string groupId_; + std::string orderBy_; + std::string tagNames_; + std::string sourceUriPrefix_; + std::string emotion_; + std::string marker_; + std::string remarksCPrefix_; + std::string createTimeRange_; + std::string setId_; + std::string modifyTimeRange_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_FINDIMAGESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindImagesResult.h b/imm/include/alibabacloud/imm/model/FindImagesResult.h new file mode 100755 index 000000000..a1f9ac85c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/FindImagesResult.h @@ -0,0 +1,179 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDIMAGESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindImagesResult : public ServiceResult + { + public: + struct ImagesItem + { + struct FacesItem + { + struct EmotionDetails + { + float cALM; + float sCARED; + float hAPPY; + float sAD; + float sURPRISED; + float aNGRY; + float dISGUSTED; + }; + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + FaceBoundary faceBoundary; + std::string beard; + float beardConfidence; + HeadPose headPose; + float raceConfidence; + std::string race; + std::string glasses; + float maskConfidence; + std::string mask; + float glassesConfidence; + }; + EmotionDetails emotionDetails; + float faceConfidence; + std::string faceId; + float attractive; + float faceQuality; + FaceAttributes faceAttributes; + float genderConfidence; + float emotionConfidence; + std::string gender; + std::string emotion; + int age; + std::string groupId; + }; + struct TagsItem + { + float tagConfidence; + std::string tagName; + int tagLevel; + std::string parentTagName; + }; + struct OCRItem + { + struct OCRBoundary + { + int left; + int left1; + int height; + int width; + }; + OCRBoundary oCRBoundary; + float oCRConfidence; + std::string oCRContents; + }; + struct CelebrityItem + { + struct CelebrityBoundary + { + int left; + int top; + int height; + int width; + }; + std::string celebrityName; + CelebrityBoundary celebrityBoundary; + std::string celebrityGender; + std::string celebrityLibraryName; + float celebrityConfidence; + }; + std::string modifyTime; + std::string sourceType; + std::string sourceUri; + std::string facesFailReason; + std::string remarksA; + std::string remarksB; + std::string imageFormat; + std::string tagsFailReason; + std::string facesModifyTime; + std::string exif; + std::string remarksC; + std::string remarksD; + int imageWidth; + std::vector celebrity; + std::string sourcePosition; + std::vector faces; + std::vector tags; + std::string facesStatus; + std::string createTime; + std::string tagsModifyTime; + std::string externalId; + std::string imageUri; + std::string orientation; + std::string oCRStatus; + std::string oCRModifyTime; + std::string imageTime; + std::string celebrityModifyTime; + int imageHeight; + std::string tagsStatus; + std::string oCRFailReason; + std::string celebrityFailReason; + std::string celebrityStatus; + std::vector oCR; + int fileSize; + std::string location; + }; + + + FindImagesResult(); + explicit FindImagesResult(const std::string &payload); + ~FindImagesResult(); + std::vector getImages()const; + std::string getSetId()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + std::string setId_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_FINDIMAGESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h b/imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h new file mode 100755 index 000000000..b066063cd --- /dev/null +++ b/imm/include/alibabacloud/imm/model/FindSimilarFacesRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindSimilarFacesRequest : public RpcServiceRequest + { + + public: + FindSimilarFacesRequest(); + ~FindSimilarFacesRequest(); + + std::string getImageUri()const; + void setImageUri(const std::string& imageUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + float getMinSimilarity()const; + void setMinSimilarity(float minSimilarity); + int getLimit()const; + void setLimit(int limit); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getFaceId()const; + void setFaceId(const std::string& faceId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string imageUri_; + std::string regionId_; + float minSimilarity_; + int limit_; + std::string project_; + std::string setId_; + std::string faceId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h b/imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h new file mode 100755 index 000000000..511da7d1d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/FindSimilarFacesResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT FindSimilarFacesResult : public ServiceResult + { + public: + struct FacesItem + { + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + FaceBoundary faceBoundary; + }; + std::string faceId; + FaceAttributes faceAttributes; + float similarity; + std::string imageUri; + }; + + + FindSimilarFacesResult(); + explicit FindSimilarFacesResult(const std::string &payload); + ~FindSimilarFacesResult(); + std::vector getFaces()const; + + protected: + void parse(const std::string &payload); + private: + std::vector faces_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_FINDSIMILARFACESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetDocIndexRequest.h b/imm/include/alibabacloud/imm/model/GetDocIndexRequest.h new file mode 100755 index 000000000..7a290974e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetDocIndexRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetDocIndexRequest : public RpcServiceRequest + { + + public: + GetDocIndexRequest(); + ~GetDocIndexRequest(); + + std::string getSet()const; + void setSet(const std::string& set); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getUniqueId()const; + void setUniqueId(const std::string& uniqueId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string set_; + std::string regionId_; + std::string project_; + std::string uniqueId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetDocIndexResult.h b/imm/include/alibabacloud/imm/model/GetDocIndexResult.h new file mode 100755 index 000000000..260beeeb0 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetDocIndexResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetDocIndexResult : public ServiceResult + { + public: + + + GetDocIndexResult(); + explicit GetDocIndexResult(const std::string &payload); + ~GetDocIndexResult(); + std::string getCustomKey4()const; + std::string getUniqueId()const; + std::string getCustomKey5()const; + std::string getCustomKey2()const; + std::string getCustomKey3()const; + std::string getContentType()const; + long getPageNum()const; + std::string getCustomKey1()const; + long getSize()const; + std::string getIndexModifiedTime()const; + std::string getIndexCreatedTime()const; + std::string getCustomKey6()const; + std::string getName()const; + std::string getLastModified()const; + std::string getSrcUri()const; + + protected: + void parse(const std::string &payload); + private: + std::string customKey4_; + std::string uniqueId_; + std::string customKey5_; + std::string customKey2_; + std::string customKey3_; + std::string contentType_; + long pageNum_; + std::string customKey1_; + long size_; + std::string indexModifiedTime_; + std::string indexCreatedTime_; + std::string customKey6_; + std::string name_; + std::string lastModified_; + std::string srcUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetDocIndexTaskRequest.h b/imm/include/alibabacloud/imm/model/GetDocIndexTaskRequest.h new file mode 100755 index 000000000..cb9b6a2d9 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetDocIndexTaskRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetDocIndexTaskRequest : public RpcServiceRequest + { + + public: + GetDocIndexTaskRequest(); + ~GetDocIndexTaskRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetDocIndexTaskResult.h b/imm/include/alibabacloud/imm/model/GetDocIndexTaskResult.h new file mode 100755 index 000000000..5afdd0a2a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetDocIndexTaskResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetDocIndexTaskResult : public ServiceResult + { + public: + struct FailDetail + { + std::string code; + }; + + + GetDocIndexTaskResult(); + explicit GetDocIndexTaskResult(const std::string &payload); + ~GetDocIndexTaskResult(); + std::string getStatus()const; + FailDetail getFailDetail()const; + std::string getTaskId()const; + std::string getFinishTime()const; + std::string getCreateTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + FailDetail failDetail_; + std::string taskId_; + std::string finishTime_; + std::string createTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETDOCINDEXTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchGroupRequest.h b/imm/include/alibabacloud/imm/model/GetFaceSearchGroupRequest.h new file mode 100755 index 000000000..e0fa55b93 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchGroupRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchGroupRequest : public RpcServiceRequest + { + + public: + GetFaceSearchGroupRequest(); + ~GetFaceSearchGroupRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string groupName_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchGroupResult.h b/imm/include/alibabacloud/imm/model/GetFaceSearchGroupResult.h new file mode 100755 index 000000000..a4cb07929 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchGroupResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchGroupResult : public ServiceResult + { + public: + + + GetFaceSearchGroupResult(); + explicit GetFaceSearchGroupResult(const std::string &payload); + ~GetFaceSearchGroupResult(); + std::string getGroupName()const; + std::string getStatus()const; + std::string getModifyTime()const; + std::string getCreateTime()const; + int getCount()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupName_; + std::string status_; + std::string modifyTime_; + std::string createTime_; + int count_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHGROUPRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchImageRequest.h b/imm/include/alibabacloud/imm/model/GetFaceSearchImageRequest.h new file mode 100755 index 000000000..d2a116c8a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchImageRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchImageRequest : public RpcServiceRequest + { + + public: + GetFaceSearchImageRequest(); + ~GetFaceSearchImageRequest(); + + std::string getImageId()const; + void setImageId(const std::string& imageId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getUser()const; + void setUser(const std::string& user); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string imageId_; + std::string regionId_; + std::string project_; + std::string srcUri_; + std::string groupName_; + std::string user_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchImageResult.h b/imm/include/alibabacloud/imm/model/GetFaceSearchImageResult.h new file mode 100755 index 000000000..db8c62530 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchImageResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchImageResult : public ServiceResult + { + public: + + + GetFaceSearchImageResult(); + explicit GetFaceSearchImageResult(const std::string &payload); + ~GetFaceSearchImageResult(); + std::string getGroupName()const; + std::string getFaceId()const; + std::string getUser()const; + std::string getGender()const; + std::string getImageUri()const; + float getYaw()const; + std::string getGroupId()const; + float getQuality()const; + float getPitch()const; + int getGlasses()const; + std::string getImageId()const; + int getHat()const; + float getRoll()const; + std::vector getAxis()const; + int getAge()const; + std::string getImageMd5()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupName_; + std::string faceId_; + std::string user_; + std::string gender_; + std::string imageUri_; + float yaw_; + std::string groupId_; + float quality_; + float pitch_; + int glasses_; + std::string imageId_; + int hat_; + float roll_; + std::vector axis_; + int age_; + std::string imageMd5_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchUserRequest.h b/imm/include/alibabacloud/imm/model/GetFaceSearchUserRequest.h new file mode 100755 index 000000000..f2285fc9f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchUserRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchUserRequest : public RpcServiceRequest + { + + public: + GetFaceSearchUserRequest(); + ~GetFaceSearchUserRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getUser()const; + void setUser(const std::string& user); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string groupName_; + std::string user_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetFaceSearchUserResult.h b/imm/include/alibabacloud/imm/model/GetFaceSearchUserResult.h new file mode 100755 index 000000000..bd56e442c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetFaceSearchUserResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetFaceSearchUserResult : public ServiceResult + { + public: + + + GetFaceSearchUserResult(); + explicit GetFaceSearchUserResult(const std::string &payload); + ~GetFaceSearchUserResult(); + std::string getGroupName()const; + std::string getStatus()const; + std::string getModifyTime()const; + std::string getUser()const; + std::string getCreateTime()const; + int getCount()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupName_; + std::string status_; + std::string modifyTime_; + std::string user_; + std::string createTime_; + int count_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETFACESEARCHUSERRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageJobRequest.h b/imm/include/alibabacloud/imm/model/GetImageJobRequest.h new file mode 100755 index 000000000..258426cbb --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetImageJobRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetImageJobRequest : public RpcServiceRequest + { + + public: + GetImageJobRequest(); + ~GetImageJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getJobType()const; + void setJobType(const std::string& jobType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string jobId_; + std::string regionId_; + std::string project_; + std::string jobType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageJobResult.h b/imm/include/alibabacloud/imm/model/GetImageJobResult.h new file mode 100755 index 000000000..8b2daefce --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetImageJobResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetImageJobResult : public ServiceResult + { + public: + + + GetImageJobResult(); + explicit GetImageJobResult(const std::string &payload); + ~GetImageJobResult(); + std::string getStatus()const; + std::string getNotifyEndpoint()const; + int getProgress()const; + std::string getJobType()const; + std::string getParameters()const; + std::string getEndTime()const; + std::string getStartTime()const; + std::string getNotifyTopicName()const; + std::string getErrorMessage()const; + std::string getJobId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string notifyEndpoint_; + int progress_; + std::string jobType_; + std::string parameters_; + std::string endTime_; + std::string startTime_; + std::string notifyTopicName_; + std::string errorMessage_; + std::string jobId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageRequest.h b/imm/include/alibabacloud/imm/model/GetImageRequest.h new file mode 100755 index 000000000..77af069db --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetImageRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetImageRequest : public RpcServiceRequest + { + + public: + GetImageRequest(); + ~GetImageRequest(); + + std::string getImageUri()const; + void setImageUri(const std::string& imageUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string imageUri_; + std::string regionId_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetImageResult.h b/imm/include/alibabacloud/imm/model/GetImageResult.h new file mode 100755 index 000000000..b208fc2d7 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetImageResult.h @@ -0,0 +1,206 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetImageResult : public ServiceResult + { + public: + struct FacesItem + { + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + FaceBoundary faceBoundary; + std::string beard; + float beardConfidence; + HeadPose headPose; + std::string race; + float raceConfidence; + std::string glasses; + std::string mask; + float maskConfidence; + float glassesConfidence; + }; + struct EmotionDetails + { + float cALM; + float sCARED; + float hAPPY; + float sAD; + float sURPRISED; + float aNGRY; + float dISGUSTED; + }; + EmotionDetails emotionDetails; + std::string faceId; + float faceConfidence; + float attractive; + float faceQuality; + FaceAttributes faceAttributes; + float genderConfidence; + std::string gender; + std::string emotion; + std::string age; + std::string groupId; + }; + struct OCRItem + { + struct OCRBoundary + { + int left; + int top; + int height; + int width; + }; + OCRBoundary oCRBoundary; + float oCRConfidence; + std::string oCRContents; + }; + struct TagsItem + { + std::string tagName; + float tagConfidence; + int tagLevel; + std::string parentTagName; + }; + struct CelebrityItem + { + struct CelebrityBoundary + { + int left; + int top; + int height; + int width; + }; + std::string celebrityName; + CelebrityBoundary celebrityBoundary; + std::string celebrityGender; + std::string celebrityLibraryName; + float celebrityConfidence; + }; + + + GetImageResult(); + explicit GetImageResult(const std::string &payload); + ~GetImageResult(); + std::string getModifyTime()const; + std::string getSourceType()const; + std::string getSourceUri()const; + std::string getFacesFailReason()const; + std::string getRemarksA()const; + std::string getRemarksB()const; + std::string getImageFormat()const; + std::string getTagsFailReason()const; + std::string getExif()const; + std::string getFacesModifyTime()const; + std::string getRemarksC()const; + std::string getRemarksD()const; + int getImageWidth()const; + std::vector getCelebrity()const; + std::string getSourcePosition()const; + std::vector getFaces()const; + std::vector getTags()const; + std::string getFacesStatus()const; + std::string getCreateTime()const; + std::string getTagsModifyTime()const; + std::string getExternalId()const; + std::string getImageUri()const; + std::string getOrientation()const; + std::string getOCRStatus()const; + std::string getOCRModifyTime()const; + std::string getImageTime()const; + std::string getCelebrityModifyTime()const; + int getImageHeight()const; + std::string getTagsStatus()const; + std::string getOCRFailReason()const; + std::string getCelebrityFailReason()const; + std::string getSetId()const; + std::string getCelebrityStatus()const; + std::vector getOCR()const; + int getFileSize()const; + std::string getLocation()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + std::string sourceType_; + std::string sourceUri_; + std::string facesFailReason_; + std::string remarksA_; + std::string remarksB_; + std::string imageFormat_; + std::string tagsFailReason_; + std::string exif_; + std::string facesModifyTime_; + std::string remarksC_; + std::string remarksD_; + int imageWidth_; + std::vector celebrity_; + std::string sourcePosition_; + std::vector faces_; + std::vector tags_; + std::string facesStatus_; + std::string createTime_; + std::string tagsModifyTime_; + std::string externalId_; + std::string imageUri_; + std::string orientation_; + std::string oCRStatus_; + std::string oCRModifyTime_; + std::string imageTime_; + std::string celebrityModifyTime_; + int imageHeight_; + std::string tagsStatus_; + std::string oCRFailReason_; + std::string celebrityFailReason_; + std::string setId_; + std::string celebrityStatus_; + std::vector oCR_; + int fileSize_; + std::string location_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h new file mode 100755 index 000000000..9558cc2b2 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetOfficeConversionTaskRequest : public RpcServiceRequest + { + + public: + GetOfficeConversionTaskRequest(); + ~GetOfficeConversionTaskRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h new file mode 100755 index 000000000..36f913c1c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetOfficeConversionTaskResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetOfficeConversionTaskResult : public ServiceResult + { + public: + struct FailDetail + { + std::string code; + }; + + + GetOfficeConversionTaskResult(); + explicit GetOfficeConversionTaskResult(const std::string &payload); + ~GetOfficeConversionTaskResult(); + std::string getStatus()const; + FailDetail getFailDetail()const; + std::string getTgtType()const; + std::string getTaskId()const; + int getPercent()const; + std::string getExternalID()const; + std::string getCreateTime()const; + std::string getImageSpec()const; + std::string getNotifyEndpoint()const; + std::string getTgtUri()const; + int getPageCount()const; + std::string getFinishTime()const; + std::string getNotifyTopicName()const; + std::string getSrcUri()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + FailDetail failDetail_; + std::string tgtType_; + std::string taskId_; + int percent_; + std::string externalID_; + std::string createTime_; + std::string imageSpec_; + std::string notifyEndpoint_; + std::string tgtUri_; + int pageCount_; + std::string finishTime_; + std::string notifyTopicName_; + std::string srcUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskRequest.h b/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskRequest.h new file mode 100755 index 000000000..bc195d182 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetPhotoProcessTaskRequest : public RpcServiceRequest + { + + public: + GetPhotoProcessTaskRequest(); + ~GetPhotoProcessTaskRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskResult.h b/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskResult.h new file mode 100755 index 000000000..b62c69f39 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetPhotoProcessTaskResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetPhotoProcessTaskResult : public ServiceResult + { + public: + + + GetPhotoProcessTaskResult(); + explicit GetPhotoProcessTaskResult(const std::string &payload); + ~GetPhotoProcessTaskResult(); + std::string getStatus()const; + std::string getNotifyEndpoint()const; + std::string getTaskId()const; + std::string getTgtUri()const; + std::string getFinishTime()const; + int getPercent()const; + std::string getExternalID()const; + std::string getCreateTime()const; + std::string getStyle()const; + std::string getNotifyTopicName()const; + std::string getSrcUri()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string notifyEndpoint_; + std::string taskId_; + std::string tgtUri_; + std::string finishTime_; + int percent_; + std::string externalID_; + std::string createTime_; + std::string style_; + std::string notifyTopicName_; + std::string srcUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETPHOTOPROCESSTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobRequest.h b/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobRequest.h new file mode 100755 index 000000000..d79e5bed9 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetPornBatchDetectJobRequest : public RpcServiceRequest + { + + public: + GetPornBatchDetectJobRequest(); + ~GetPornBatchDetectJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string jobId_; + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobResult.h b/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobResult.h new file mode 100755 index 000000000..2d04d788f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetPornBatchDetectJobResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetPornBatchDetectJobResult : public ServiceResult + { + public: + + + GetPornBatchDetectJobResult(); + explicit GetPornBatchDetectJobResult(const std::string &payload); + ~GetPornBatchDetectJobResult(); + std::string getStatus()const; + std::string getNotifyEndpoint()const; + std::string getTgtUri()const; + std::string getFinishTime()const; + int getPercent()const; + std::string getExternalID()const; + std::string getCreateTime()const; + std::string getNotifyTopicName()const; + std::string getJobId()const; + std::string getSrcUri()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string notifyEndpoint_; + std::string tgtUri_; + std::string finishTime_; + int percent_; + std::string externalID_; + std::string createTime_; + std::string notifyTopicName_; + std::string jobId_; + std::string srcUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETPORNBATCHDETECTJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetProjectRequest.h b/imm/include/alibabacloud/imm/model/GetProjectRequest.h new file mode 100755 index 000000000..da79c5ef4 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetProjectRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPROJECTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetProjectRequest : public RpcServiceRequest + { + + public: + GetProjectRequest(); + ~GetProjectRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETPROJECTREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetProjectResult.h b/imm/include/alibabacloud/imm/model/GetProjectResult.h new file mode 100755 index 000000000..6dc4e7145 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetProjectResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETPROJECTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetProjectResult : public ServiceResult + { + public: + + + GetProjectResult(); + explicit GetProjectResult(const std::string &payload); + ~GetProjectResult(); + std::string getProject()const; + std::string getModifyTime()const; + std::string getType()const; + int getCU()const; + std::string getServiceRole()const; + std::string getEndpoint()const; + std::string getCreateTime()const; + std::string getBillingType()const; + + protected: + void parse(const std::string &payload); + private: + std::string project_; + std::string modifyTime_; + std::string type_; + int cU_; + std::string serviceRole_; + std::string endpoint_; + std::string createTime_; + std::string billingType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETPROJECTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetSetRequest.h b/imm/include/alibabacloud/imm/model/GetSetRequest.h new file mode 100755 index 000000000..a9e15f249 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetSetRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetSetRequest : public RpcServiceRequest + { + + public: + GetSetRequest(); + ~GetSetRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETSETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetSetResult.h b/imm/include/alibabacloud/imm/model/GetSetResult.h new file mode 100755 index 000000000..5fc18864d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetSetResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetSetResult : public ServiceResult + { + public: + + + GetSetResult(); + explicit GetSetResult(const std::string &payload); + ~GetSetResult(); + long getModifyTime()const; + int getImageCount()const; + int getVideoCount()const; + long getCreateTime()const; + std::string getSetName()const; + std::string getSetId()const; + int getFaceCount()const; + int getVideoLength()const; + + protected: + void parse(const std::string &payload); + private: + long modifyTime_; + int imageCount_; + int videoCount_; + long createTime_; + std::string setName_; + std::string setId_; + int faceCount_; + int videoLength_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETSETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetTagJobRequest.h b/imm/include/alibabacloud/imm/model/GetTagJobRequest.h new file mode 100755 index 000000000..cc24f8f4f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetTagJobRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETTAGJOBREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETTAGJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetTagJobRequest : public RpcServiceRequest + { + + public: + GetTagJobRequest(); + ~GetTagJobRequest(); + + std::string getJobId()const; + void setJobId(const std::string& jobId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string jobId_; + std::string regionId_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETTAGJOBREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetTagJobResult.h b/imm/include/alibabacloud/imm/model/GetTagJobResult.h new file mode 100755 index 000000000..56b5ddde4 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetTagJobResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETTAGJOBRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETTAGJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetTagJobResult : public ServiceResult + { + public: + + + GetTagJobResult(); + explicit GetTagJobResult(const std::string &payload); + ~GetTagJobResult(); + std::string getStatus()const; + std::string getFinishTime()const; + int getPercent()const; + std::string getCreateTime()const; + std::string getSetId()const; + std::string getJobId()const; + std::string getSrcUri()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string finishTime_; + int percent_; + std::string createTime_; + std::string setId_; + std::string jobId_; + std::string srcUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETTAGJOBRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetTagSetRequest.h b/imm/include/alibabacloud/imm/model/GetTagSetRequest.h new file mode 100755 index 000000000..4eab9b640 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetTagSetRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETTAGSETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETTAGSETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetTagSetRequest : public RpcServiceRequest + { + + public: + GetTagSetRequest(); + ~GetTagSetRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETTAGSETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetTagSetResult.h b/imm/include/alibabacloud/imm/model/GetTagSetResult.h new file mode 100755 index 000000000..610f368a3 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetTagSetResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETTAGSETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETTAGSETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetTagSetResult : public ServiceResult + { + public: + + + GetTagSetResult(); + explicit GetTagSetResult(const std::string &payload); + ~GetTagSetResult(); + std::string getStatus()const; + long getPhotos()const; + std::string getModifyTime()const; + std::string getCreateTime()const; + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + long photos_; + std::string modifyTime_; + std::string createTime_; + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETTAGSETRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetVideoRequest.h b/imm/include/alibabacloud/imm/model/GetVideoRequest.h new file mode 100755 index 000000000..8fdc32844 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetVideoRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEOREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetVideoRequest : public RpcServiceRequest + { + + public: + GetVideoRequest(); + ~GetVideoRequest(); + + std::string getVideoUri()const; + void setVideoUri(const std::string& videoUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string videoUri_; + std::string regionId_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEOREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetVideoResult.h b/imm/include/alibabacloud/imm/model/GetVideoResult.h new file mode 100755 index 000000000..737e3111e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetVideoResult.h @@ -0,0 +1,129 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEORESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetVideoResult : public ServiceResult + { + public: + struct CelebrityItem + { + std::string celebrityName; + int celebrityNum; + std::string celebrityLibraryName; + }; + struct VideoTagsItem + { + std::string videoTagEnName; + std::string videoTagName; + float videoTagConfidence; + }; + struct PersonsItem + { + std::string personId; + float genderConfidence; + std::string gender; + int age; + float ageConfidence; + }; + + + GetVideoResult(); + explicit GetVideoResult(const std::string &payload); + ~GetVideoResult(); + std::string getModifyTime()const; + std::string getProcessStatus()const; + int getVideoWidth()const; + std::string getSourceType()const; + std::string getSourceUri()const; + std::string getRemarksA()const; + std::string getRemarksB()const; + std::string getRemarksC()const; + std::string getRemarksD()const; + int getVideoHeight()const; + std::vector getPersons()const; + std::vector getCelebrity()const; + std::string getSourcePosition()const; + std::string getVideoTagsFailReason()const; + std::string getVideoTagsModifyTime()const; + int getVideoFrames()const; + std::string getProcessModifyTime()const; + std::string getProcessFailReason()const; + std::string getCreateTime()const; + std::string getExternalId()const; + std::string getVideoUri()const; + std::string getVideoFormat()const; + std::vector getVideoTags()const; + std::string getCelebrityModifyTime()const; + float getVideoDuration()const; + std::string getCelebrityFailReason()const; + std::string getSetId()const; + std::string getCelebrityStatus()const; + std::string getVideoTagsStatus()const; + int getFileSize()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + std::string processStatus_; + int videoWidth_; + std::string sourceType_; + std::string sourceUri_; + std::string remarksA_; + std::string remarksB_; + std::string remarksC_; + std::string remarksD_; + int videoHeight_; + std::vector persons_; + std::vector celebrity_; + std::string sourcePosition_; + std::string videoTagsFailReason_; + std::string videoTagsModifyTime_; + int videoFrames_; + std::string processModifyTime_; + std::string processFailReason_; + std::string createTime_; + std::string externalId_; + std::string videoUri_; + std::string videoFormat_; + std::vector videoTags_; + std::string celebrityModifyTime_; + float videoDuration_; + std::string celebrityFailReason_; + std::string setId_; + std::string celebrityStatus_; + std::string videoTagsStatus_; + int fileSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEORESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h b/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h new file mode 100755 index 000000000..b610028ce --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetVideoTaskRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetVideoTaskRequest : public RpcServiceRequest + { + + public: + GetVideoTaskRequest(); + ~GetVideoTaskRequest(); + + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string taskType_; + std::string regionId_; + std::string project_; + std::string taskId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h b/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h new file mode 100755 index 000000000..0b26ea4ca --- /dev/null +++ b/imm/include/alibabacloud/imm/model/GetVideoTaskResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT GetVideoTaskResult : public ServiceResult + { + public: + + + GetVideoTaskResult(); + explicit GetVideoTaskResult(const std::string &payload); + ~GetVideoTaskResult(); + std::string getStatus()const; + std::string getNotifyEndpoint()const; + int getProgress()const; + std::string getTaskId()const; + std::string getParameters()const; + std::string getEndTime()const; + std::string getTaskType()const; + std::string getStartTime()const; + std::string getNotifyTopicName()const; + std::string getErrorMessage()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string notifyEndpoint_; + int progress_; + std::string taskId_; + std::string parameters_; + std::string endTime_; + std::string taskType_; + std::string startTime_; + std::string notifyTopicName_; + std::string errorMessage_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_GETVIDEOTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexImageRequest.h b/imm/include/alibabacloud/imm/model/IndexImageRequest.h new file mode 100755 index 000000000..1dec884c1 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/IndexImageRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexImageRequest : public RpcServiceRequest + { + + public: + IndexImageRequest(); + ~IndexImageRequest(); + + std::string getRemarksB()const; + void setRemarksB(const std::string& remarksB); + std::string getProject()const; + void setProject(const std::string& project); + std::string getRemarksA()const; + void setRemarksA(const std::string& remarksA); + std::string getExternalId()const; + void setExternalId(const std::string& externalId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getImageUri()const; + void setImageUri(const std::string& imageUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSourceUri()const; + void setSourceUri(const std::string& sourceUri); + std::string getSourcePosition()const; + void setSourcePosition(const std::string& sourcePosition); + std::string getRemarksD()const; + void setRemarksD(const std::string& remarksD); + std::string getRemarksC()const; + void setRemarksC(const std::string& remarksC); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getSourceType()const; + void setSourceType(const std::string& sourceType); + + private: + std::string remarksB_; + std::string project_; + std::string remarksA_; + std::string externalId_; + std::string accessKeyId_; + std::string imageUri_; + std::string regionId_; + std::string sourceUri_; + std::string sourcePosition_; + std::string remarksD_; + std::string remarksC_; + std::string setId_; + std::string sourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXIMAGEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexImageResult.h b/imm/include/alibabacloud/imm/model/IndexImageResult.h new file mode 100755 index 000000000..71893be79 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/IndexImageResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexImageResult : public ServiceResult + { + public: + + + IndexImageResult(); + explicit IndexImageResult(const std::string &payload); + ~IndexImageResult(); + std::string getModifyTime()const; + std::string getRemarksC()const; + std::string getRemarksD()const; + std::string getCreateTime()const; + std::string getExternalId()const; + std::string getSetId()const; + std::string getImageUri()const; + std::string getRemarksA()const; + std::string getRemarksB()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + std::string remarksC_; + std::string remarksD_; + std::string createTime_; + std::string externalId_; + std::string setId_; + std::string imageUri_; + std::string remarksA_; + std::string remarksB_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexTagRequest.h b/imm/include/alibabacloud/imm/model/IndexTagRequest.h new file mode 100755 index 000000000..efd8398b4 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/IndexTagRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXTAGREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXTAGREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexTagRequest : public RpcServiceRequest + { + + public: + IndexTagRequest(); + ~IndexTagRequest(); + + std::string getSrcUris()const; + void setSrcUris(const std::string& srcUris); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getModelId()const; + void setModelId(const std::string& modelId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getForce()const; + void setForce(const std::string& force); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string srcUris_; + std::string regionId_; + std::string modelId_; + std::string project_; + std::string setId_; + std::string force_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXTAGREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexTagResult.h b/imm/include/alibabacloud/imm/model/IndexTagResult.h new file mode 100755 index 000000000..5a96d6ea5 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/IndexTagResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXTAGRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXTAGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexTagResult : public ServiceResult + { + public: + struct FailDetailsItem + { + std::string reason; + std::string srcUri; + }; + struct SuccessDetailsItem + { + struct TagsItem + { + std::string parentTagId; + std::string tagName; + std::string tagId; + std::string tagScore; + std::string tagLevel; + std::string parentTagName; + }; + std::vector tags; + std::string srcUri; + }; + + + IndexTagResult(); + explicit IndexTagResult(const std::string &payload); + ~IndexTagResult(); + std::vector getSuccessDetails()const; + std::string getSuccessIndexNum()const; + std::vector getFailDetails()const; + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector successDetails_; + std::string successIndexNum_; + std::vector failDetails_; + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXTAGRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexVideoRequest.h b/imm/include/alibabacloud/imm/model/IndexVideoRequest.h new file mode 100755 index 000000000..4b3259f06 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/IndexVideoRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXVIDEOREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXVIDEOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexVideoRequest : public RpcServiceRequest + { + + public: + IndexVideoRequest(); + ~IndexVideoRequest(); + + std::string getGrabType()const; + void setGrabType(const std::string& grabType); + std::string getRemarksB()const; + void setRemarksB(const std::string& remarksB); + std::string getProject()const; + void setProject(const std::string& project); + std::string getRemarksA()const; + void setRemarksA(const std::string& remarksA); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getExternalId()const; + void setExternalId(const std::string& externalId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getVideoUri()const; + void setVideoUri(const std::string& videoUri); + bool getSaveType()const; + void setSaveType(bool saveType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getRemarksD()const; + void setRemarksD(const std::string& remarksD); + std::string getRemarksC()const; + void setRemarksC(const std::string& remarksC); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getTgtUri()const; + void setTgtUri(const std::string& tgtUri); + + private: + std::string grabType_; + std::string remarksB_; + std::string project_; + std::string remarksA_; + std::string endTime_; + std::string externalId_; + std::string startTime_; + std::string accessKeyId_; + std::string videoUri_; + bool saveType_; + std::string regionId_; + std::string remarksD_; + std::string remarksC_; + std::string setId_; + std::string interval_; + std::string tgtUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXVIDEOREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/IndexVideoResult.h b/imm/include/alibabacloud/imm/model/IndexVideoResult.h new file mode 100755 index 000000000..2cbaaf6c5 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/IndexVideoResult.h @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_INDEXVIDEORESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_INDEXVIDEORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT IndexVideoResult : public ServiceResult + { + public: + + + IndexVideoResult(); + explicit IndexVideoResult(const std::string &payload); + ~IndexVideoResult(); + std::string getModifyTime()const; + std::string getEndTime()const; + bool getSaveType()const; + std::string getCreateTime()const; + std::string getExternalId()const; + std::string getStartTime()const; + std::string getVideoUri()const; + std::string getGrabType()const; + std::string getRemarksA()const; + std::string getRemarksB()const; + std::string getRemarksC()const; + std::string getTgtUri()const; + std::string getRemarksD()const; + std::string getSetId()const; + float getInterval()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + std::string endTime_; + bool saveType_; + std::string createTime_; + std::string externalId_; + std::string startTime_; + std::string videoUri_; + std::string grabType_; + std::string remarksA_; + std::string remarksB_; + std::string remarksC_; + std::string tgtUri_; + std::string remarksD_; + std::string setId_; + float interval_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_INDEXVIDEORESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesRequest.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesRequest.h new file mode 100755 index 000000000..7ca0c1c1c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupImagesRequest : public RpcServiceRequest + { + + public: + ListFaceSearchGroupImagesRequest(); + ~ListFaceSearchGroupImagesRequest(); + + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getUser()const; + void setUser(const std::string& user); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int maxKeys_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string groupName_; + std::string user_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesResult.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesResult.h new file mode 100755 index 000000000..c531a8852 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupImagesResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupImagesResult : public ServiceResult + { + public: + struct ImagesItem + { + std::string faceId; + std::string user; + std::string gender; + std::string imageUri; + float yaw; + float quality; + std::string imageId; + int glasses; + float pitch; + int hat; + float roll; + std::string imageMd5; + int age; + std::vector axis; + }; + + + ListFaceSearchGroupImagesResult(); + explicit ListFaceSearchGroupImagesResult(const std::string &payload); + ~ListFaceSearchGroupImagesResult(); + std::string getGroupName()const; + std::vector getImages()const; + std::string getNextMarker()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupName_; + std::vector images_; + std::string nextMarker_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPIMAGESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersRequest.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersRequest.h new file mode 100755 index 000000000..e53026c49 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupUsersRequest : public RpcServiceRequest + { + + public: + ListFaceSearchGroupUsersRequest(); + ~ListFaceSearchGroupUsersRequest(); + + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int maxKeys_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string groupName_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersResult.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersResult.h new file mode 100755 index 000000000..9ff2982ec --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupUsersResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupUsersResult : public ServiceResult + { + public: + struct UsersItem + { + std::string status; + std::string modifyTime; + std::string user; + std::string createTime; + std::string count; + }; + + + ListFaceSearchGroupUsersResult(); + explicit ListFaceSearchGroupUsersResult(const std::string &payload); + ~ListFaceSearchGroupUsersResult(); + std::string getGroupName()const; + std::vector getUsers()const; + std::string getNextMarker()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupName_; + std::vector users_; + std::string nextMarker_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPUSERSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsRequest.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsRequest.h new file mode 100755 index 000000000..dcc47631a --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupsRequest : public RpcServiceRequest + { + + public: + ListFaceSearchGroupsRequest(); + ~ListFaceSearchGroupsRequest(); + + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int maxKeys_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsResult.h b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsResult.h new file mode 100755 index 000000000..6c70511a0 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListFaceSearchGroupsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListFaceSearchGroupsResult : public ServiceResult + { + public: + struct GroupsItem + { + std::string groupName; + std::string status; + std::string modifyTime; + std::string createTime; + std::string count; + std::string groupId; + }; + + + ListFaceSearchGroupsResult(); + explicit ListFaceSearchGroupsResult(const std::string &payload); + ~ListFaceSearchGroupsResult(); + std::vector getGroups()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector groups_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTFACESEARCHGROUPSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListImageJobsRequest.h b/imm/include/alibabacloud/imm/model/ListImageJobsRequest.h new file mode 100755 index 000000000..5462a0b4f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListImageJobsRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListImageJobsRequest : public RpcServiceRequest + { + + public: + ListImageJobsRequest(); + ~ListImageJobsRequest(); + + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getJobType()const; + void setJobType(const std::string& jobType); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int maxKeys_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string jobType_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListImageJobsResult.h b/imm/include/alibabacloud/imm/model/ListImageJobsResult.h new file mode 100755 index 000000000..79c938eff --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListImageJobsResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListImageJobsResult : public ServiceResult + { + public: + struct JobsItem + { + std::string status; + std::string notifyEndpoint; + int progress; + std::string jobType; + std::string parameters; + std::string endTime; + std::string startTime; + std::string notifyTopicName; + std::string errorMessage; + std::string jobId; + std::string result; + }; + + + ListImageJobsResult(); + explicit ListImageJobsResult(const std::string &payload); + ~ListImageJobsResult(); + std::vector getJobs()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector jobs_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGEJOBSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListImagesRequest.h b/imm/include/alibabacloud/imm/model/ListImagesRequest.h new file mode 100755 index 000000000..0cbbaf10d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListImagesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTIMAGESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListImagesRequest : public RpcServiceRequest + { + + public: + ListImagesRequest(); + ~ListImagesRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + int getLimit()const; + void setLimit(int limit); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getCreateTimeStart()const; + void setCreateTimeStart(const std::string& createTimeStart); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string marker_; + int limit_; + std::string project_; + std::string setId_; + std::string createTimeStart_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListImagesResult.h b/imm/include/alibabacloud/imm/model/ListImagesResult.h new file mode 100755 index 000000000..535a6f64d --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListImagesResult.h @@ -0,0 +1,179 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTIMAGESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTIMAGESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListImagesResult : public ServiceResult + { + public: + struct ImagesItem + { + struct FacesItem + { + struct EmotionDetails + { + float cALM; + float sCARED; + float hAPPY; + float sAD; + float sURPRISED; + float aNGRY; + float dISGUSTED; + }; + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + FaceBoundary faceBoundary; + std::string beard; + float beardConfidence; + HeadPose headPose; + float raceConfidence; + std::string race; + std::string glasses; + float maskConfidence; + std::string mask; + float glassesConfidence; + }; + EmotionDetails emotionDetails; + float faceConfidence; + std::string faceId; + float attractive; + float faceQuality; + FaceAttributes faceAttributes; + float genderConfidence; + float emotionConfidence; + std::string gender; + std::string emotion; + int age; + std::string groupId; + }; + struct TagsItem + { + float tagConfidence; + std::string tagName; + int tagLevel; + std::string parentTagName; + }; + struct OCRItem + { + struct OCRBoundary + { + int left; + int left1; + int height; + int width; + }; + OCRBoundary oCRBoundary; + float oCRConfidence; + std::string oCRContents; + }; + struct CelebrityItem + { + struct CelebrityBoundary + { + int left; + int top; + int height; + int width; + }; + std::string celebrityName; + CelebrityBoundary celebrityBoundary; + std::string celebrityGender; + std::string celebrityLibraryName; + float celebrityConfidence; + }; + std::string modifyTime; + std::string sourceType; + std::string sourceUri; + std::string facesFailReason; + std::string remarksA; + std::string remarksB; + std::string imageFormat; + std::string tagsFailReason; + std::string facesModifyTime; + std::string exif; + std::string remarksC; + std::string remarksD; + int imageWidth; + std::vector celebrity; + std::string sourcePosition; + std::vector faces; + std::vector tags; + std::string facesStatus; + std::string createTime; + std::string tagsModifyTime; + std::string externalId; + std::string imageUri; + std::string orientation; + std::string oCRStatus; + std::string oCRModifyTime; + std::string imageTime; + std::string celebrityModifyTime; + int imageHeight; + std::string tagsStatus; + std::string oCRFailReason; + std::string celebrityFailReason; + std::string celebrityStatus; + std::vector oCR; + int fileSize; + std::string location; + }; + + + ListImagesResult(); + explicit ListImagesResult(const std::string &payload); + ~ListImagesResult(); + std::vector getImages()const; + std::string getSetId()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector images_; + std::string setId_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTIMAGESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h new file mode 100755 index 000000000..f8f409cc0 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListOfficeConversionTaskRequest : public RpcServiceRequest + { + + public: + ListOfficeConversionTaskRequest(); + ~ListOfficeConversionTaskRequest(); + + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int maxKeys_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h new file mode 100755 index 000000000..e63a0872f --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListOfficeConversionTaskResult.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListOfficeConversionTaskResult : public ServiceResult + { + public: + struct TasksItem + { + std::string status; + std::string tgtType; + std::string taskId; + int percent; + std::string externalID; + std::string createTime; + std::string imageSpec; + std::string notifyEndpoint; + std::string tgtUri; + int pageCount; + std::string finishTime; + std::string notifyTopicName; + std::string srcUri; + }; + + + ListOfficeConversionTaskResult(); + explicit ListOfficeConversionTaskResult(const std::string &payload); + ~ListOfficeConversionTaskResult(); + std::vector getTasks()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tasks_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTOFFICECONVERSIONTASKRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksRequest.h b/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksRequest.h new file mode 100755 index 000000000..cc303e1cf --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListPhotoProcessTasksRequest : public RpcServiceRequest + { + + public: + ListPhotoProcessTasksRequest(); + ~ListPhotoProcessTasksRequest(); + + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int maxKeys_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksResult.h b/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksResult.h new file mode 100755 index 000000000..50e0498bb --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListPhotoProcessTasksResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListPhotoProcessTasksResult : public ServiceResult + { + public: + struct TasksItem + { + std::string status; + std::string notifyEndpoint; + std::string taskId; + std::string tgtUri; + std::string finishTime; + int percent; + std::string externalID; + std::string createTime; + std::string style; + std::string notifyTopicName; + std::string srcUri; + }; + + + ListPhotoProcessTasksResult(); + explicit ListPhotoProcessTasksResult(const std::string &payload); + ~ListPhotoProcessTasksResult(); + std::vector getTasks()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tasks_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTPHOTOPROCESSTASKSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsRequest.h b/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsRequest.h new file mode 100755 index 000000000..5b45d7e63 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListPornBatchDetectJobsRequest : public RpcServiceRequest + { + + public: + ListPornBatchDetectJobsRequest(); + ~ListPornBatchDetectJobsRequest(); + + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int maxKeys_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsResult.h b/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsResult.h new file mode 100755 index 000000000..68bed0c05 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListPornBatchDetectJobsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListPornBatchDetectJobsResult : public ServiceResult + { + public: + struct JobsItem + { + std::string status; + std::string notifyEndpoint; + std::string tgtUri; + std::string finishTime; + int percent; + std::string externalID; + std::string createTime; + int notifyTopicName; + std::string jobId; + std::string srcUri; + }; + + + ListPornBatchDetectJobsResult(); + explicit ListPornBatchDetectJobsResult(const std::string &payload); + ~ListPornBatchDetectJobsResult(); + std::vector getJobs()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector jobs_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTPORNBATCHDETECTJOBSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListProjectsRequest.h b/imm/include/alibabacloud/imm/model/ListProjectsRequest.h new file mode 100755 index 000000000..d9abc5a2e --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListProjectsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPROJECTSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListProjectsRequest : public RpcServiceRequest + { + + public: + ListProjectsRequest(); + ~ListProjectsRequest(); + + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int maxKeys_; + std::string regionId_; + std::string marker_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTPROJECTSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListProjectsResult.h b/imm/include/alibabacloud/imm/model/ListProjectsResult.h new file mode 100755 index 000000000..c0fe76634 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListProjectsResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTPROJECTSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTPROJECTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListProjectsResult : public ServiceResult + { + public: + struct ProjectsItem + { + std::string project; + std::string modifyTime; + int cU; + std::string type; + std::string serviceRole; + std::string endpoint; + std::string createTime; + std::string billingType; + }; + + + ListProjectsResult(); + explicit ListProjectsResult(const std::string &payload); + ~ListProjectsResult(); + std::vector getProjects()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector projects_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTPROJECTSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h b/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h new file mode 100755 index 000000000..cdaf8b857 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListSetTagsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListSetTagsRequest : public RpcServiceRequest + { + + public: + ListSetTagsRequest(); + ~ListSetTagsRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETTAGSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListSetTagsResult.h b/imm/include/alibabacloud/imm/model/ListSetTagsResult.h new file mode 100755 index 000000000..7c3909aa2 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListSetTagsResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListSetTagsResult : public ServiceResult + { + public: + struct TagsItem + { + int tagCount; + std::string tagName; + }; + + + ListSetTagsResult(); + explicit ListSetTagsResult(const std::string &payload); + ~ListSetTagsResult(); + std::string getSetId()const; + std::vector getTags()const; + + protected: + void parse(const std::string &payload); + private: + std::string setId_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETTAGSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListSetsRequest.h b/imm/include/alibabacloud/imm/model/ListSetsRequest.h new file mode 100755 index 000000000..0ecbe2ab1 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListSetsRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListSetsRequest : public RpcServiceRequest + { + + public: + ListSetsRequest(); + ~ListSetsRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string marker_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListSetsResult.h b/imm/include/alibabacloud/imm/model/ListSetsResult.h new file mode 100755 index 000000000..e5a539468 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListSetsResult.h @@ -0,0 +1,64 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListSetsResult : public ServiceResult + { + public: + struct SetsItem + { + std::string modifyTime; + int imageCount; + int videoCount; + std::string createTime; + std::string setName; + std::string setId; + int faceCount; + int videoLength; + }; + + + ListSetsResult(); + explicit ListSetsResult(const std::string &payload); + ~ListSetsResult(); + std::vector getSets()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector sets_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTSETSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagJobsRequest.h b/imm/include/alibabacloud/imm/model/ListTagJobsRequest.h new file mode 100755 index 000000000..ad644e989 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListTagJobsRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagJobsRequest : public RpcServiceRequest + { + + public: + ListTagJobsRequest(); + ~ListTagJobsRequest(); + + std::string getCondition()const; + void setCondition(const std::string& condition); + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string condition_; + int maxKeys_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagJobsResult.h b/imm/include/alibabacloud/imm/model/ListTagJobsResult.h new file mode 100755 index 000000000..59c8b0f97 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListTagJobsResult.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagJobsResult : public ServiceResult + { + public: + struct JobsItem + { + std::string status; + std::string finishTime; + int percent; + std::string createTime; + std::string setId; + std::string jobId; + std::string srcUri; + }; + + + ListTagJobsResult(); + explicit ListTagJobsResult(const std::string &payload); + ~ListTagJobsResult(); + std::vector getJobs()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector jobs_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGJOBSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagNamesRequest.h b/imm/include/alibabacloud/imm/model/ListTagNamesRequest.h new file mode 100755 index 000000000..cc9df2b02 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListTagNamesRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagNamesRequest : public RpcServiceRequest + { + + public: + ListTagNamesRequest(); + ~ListTagNamesRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string marker_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagNamesResult.h b/imm/include/alibabacloud/imm/model/ListTagNamesResult.h new file mode 100755 index 000000000..60b3a8764 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListTagNamesResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagNamesResult : public ServiceResult + { + public: + struct TagsItem + { + std::string tagName; + int num; + }; + + + ListTagNamesResult(); + explicit ListTagNamesResult(const std::string &payload); + ~ListTagNamesResult(); + std::string getNextMarker()const; + std::vector getTags()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextMarker_; + std::vector tags_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGNAMESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagPhotosRequest.h b/imm/include/alibabacloud/imm/model/ListTagPhotosRequest.h new file mode 100755 index 000000000..8e80cb2c9 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListTagPhotosRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagPhotosRequest : public RpcServiceRequest + { + + public: + ListTagPhotosRequest(); + ~ListTagPhotosRequest(); + + std::string getTagName()const; + void setTagName(const std::string& tagName); + std::string getMaxKeys()const; + void setMaxKeys(const std::string& maxKeys); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string tagName_; + std::string maxKeys_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagPhotosResult.h b/imm/include/alibabacloud/imm/model/ListTagPhotosResult.h new file mode 100755 index 000000000..1763d2ccb --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListTagPhotosResult.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagPhotosResult : public ServiceResult + { + public: + struct PhotosItem + { + float tagScore; + std::string srcUri; + }; + + + ListTagPhotosResult(); + explicit ListTagPhotosResult(const std::string &payload); + ~ListTagPhotosResult(); + std::vector getPhotos()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector photos_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGPHOTOSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagSetsRequest.h b/imm/include/alibabacloud/imm/model/ListTagSetsRequest.h new file mode 100755 index 000000000..052119d68 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListTagSetsRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGSETSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGSETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagSetsRequest : public RpcServiceRequest + { + + public: + ListTagSetsRequest(); + ~ListTagSetsRequest(); + + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int maxKeys_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGSETSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListTagSetsResult.h b/imm/include/alibabacloud/imm/model/ListTagSetsResult.h new file mode 100755 index 000000000..57677d578 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListTagSetsResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTTAGSETSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTTAGSETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListTagSetsResult : public ServiceResult + { + public: + struct SetsItem + { + std::string status; + long photos; + std::string modifyTime; + std::string createTime; + std::string setId; + }; + + + ListTagSetsResult(); + explicit ListTagSetsResult(const std::string &payload); + ~ListTagSetsResult(); + std::vector getSets()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector sets_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTTAGSETSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h b/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h new file mode 100755 index 000000000..bc080c7b6 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoAudiosRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoAudiosRequest : public RpcServiceRequest + { + + public: + ListVideoAudiosRequest(); + ~ListVideoAudiosRequest(); + + std::string getVideoUri()const; + void setVideoUri(const std::string& videoUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string videoUri_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h b/imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h new file mode 100755 index 000000000..773a08ca1 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoAudiosResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoAudiosResult : public ServiceResult + { + public: + struct AudiosItem + { + struct AudioTextsItem + { + float endTime; + float confidence; + float silenceDuration; + float beginTime; + std::string text; + std::string library; + int channelId; + std::string person; + int speechRate; + float emotionValue; + }; + std::string modifyTime; + std::string processModifyTime; + std::string processStatus; + std::string processFailReason; + std::string sourceType; + std::string sourceUri; + std::string createTime; + std::string externalId; + std::string remarksA; + std::string remarksB; + std::string remarksC; + std::string audioUri; + std::string remarksD; + std::string sourcePosition; + std::vector audioTexts; + std::string audioTextsStatus; + std::string audioFormat; + int audioRate; + std::string audioTextsModifyTime; + float audioDuration; + int fileSize; + std::string audioTextsFailReason; + }; + + + ListVideoAudiosResult(); + explicit ListVideoAudiosResult(const std::string &payload); + ~ListVideoAudiosResult(); + std::vector getAudios()const; + std::string getVideoUri()const; + std::string getSetId()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector audios_; + std::string videoUri_; + std::string setId_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOAUDIOSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h b/imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h new file mode 100755 index 000000000..5e9637180 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoFramesRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoFramesRequest : public RpcServiceRequest + { + + public: + ListVideoFramesRequest(); + ~ListVideoFramesRequest(); + + std::string getVideoUri()const; + void setVideoUri(const std::string& videoUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string videoUri_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoFramesResult.h b/imm/include/alibabacloud/imm/model/ListVideoFramesResult.h new file mode 100755 index 000000000..de7d1ac09 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoFramesResult.h @@ -0,0 +1,181 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoFramesResult : public ServiceResult + { + public: + struct FramesItem + { + struct FacesItem + { + struct EmotionDetails + { + float cALM; + float sCARED; + float hAPPY; + float sAD; + float sURPRISED; + float aNGRY; + float dISGUSTED; + }; + struct FaceAttributes + { + struct FaceBoundary + { + int left; + int top; + int height; + int width; + }; + struct HeadPose + { + float pitch; + float roll; + float yaw; + }; + FaceBoundary faceBoundary; + std::string beard; + float beardConfidence; + HeadPose headPose; + float raceConfidence; + std::string race; + std::string glasses; + float maskConfidence; + std::string mask; + float glassesConfidence; + }; + EmotionDetails emotionDetails; + float faceConfidence; + std::string faceId; + float attractive; + float faceQuality; + FaceAttributes faceAttributes; + float genderConfidence; + float emotionConfidence; + std::string gender; + std::string emotion; + int age; + std::string groupId; + }; + struct TagsItem + { + float tagConfidence; + std::string tagName; + int tagLevel; + std::string parentTagName; + }; + struct OCRItem + { + struct OCRBoundary + { + int left; + int left1; + int height; + int width; + }; + OCRBoundary oCRBoundary; + float oCRConfidence; + std::string oCRContents; + }; + struct CelebrityItem + { + struct CelebrityBoundary + { + int left; + int top; + int height; + int width; + }; + std::string celebrityName; + CelebrityBoundary celebrityBoundary; + std::string celebrityGender; + std::string celebrityLibraryName; + float celebrityConfidence; + }; + std::string modifyTime; + std::string sourceType; + std::string sourceUri; + std::string facesFailReason; + std::string remarksA; + std::string remarksB; + std::string imageFormat; + std::string tagsFailReason; + std::string facesModifyTime; + std::string exif; + std::string remarksC; + std::string remarksD; + int imageWidth; + std::vector celebrity; + std::string sourcePosition; + std::vector faces; + std::vector tags; + std::string facesStatus; + std::string createTime; + std::string tagsModifyTime; + std::string externalId; + std::string imageUri; + std::string orientation; + std::string oCRStatus; + std::string oCRModifyTime; + std::string imageTime; + std::string celebrityModifyTime; + int imageHeight; + std::string tagsStatus; + std::string oCRFailReason; + std::string celebrityFailReason; + std::string celebrityStatus; + std::vector oCR; + int fileSize; + std::string location; + }; + + + ListVideoFramesResult(); + explicit ListVideoFramesResult(const std::string &payload); + ~ListVideoFramesResult(); + std::vector getFrames()const; + std::string getVideoUri()const; + std::string getSetId()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector frames_; + std::string videoUri_; + std::string setId_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOFRAMESRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h b/imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h new file mode 100755 index 000000000..c9bfebb55 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoTasksRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoTasksRequest : public RpcServiceRequest + { + + public: + ListVideoTasksRequest(); + ~ListVideoTasksRequest(); + + int getMaxKeys()const; + void setMaxKeys(int maxKeys); + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int maxKeys_; + std::string taskType_; + std::string regionId_; + std::string marker_; + std::string project_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h b/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h new file mode 100755 index 000000000..2e0924c36 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideoTasksResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideoTasksResult : public ServiceResult + { + public: + struct TasksItem + { + std::string status; + std::string notifyEndpoint; + int progress; + std::string taskId; + std::string parameters; + std::string endTime; + std::string taskType; + std::string startTime; + std::string notifyTopicName; + std::string errorMessage; + std::string result; + }; + + + ListVideoTasksResult(); + explicit ListVideoTasksResult(const std::string &payload); + ~ListVideoTasksResult(); + std::vector getTasks()const; + std::string getNextMarker()const; + + protected: + void parse(const std::string &payload); + private: + std::vector tasks_; + std::string nextMarker_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOTASKSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideosRequest.h b/imm/include/alibabacloud/imm/model/ListVideosRequest.h new file mode 100755 index 000000000..c60402af6 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideosRequest.h @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideosRequest : public RpcServiceRequest + { + + public: + ListVideosRequest(); + ~ListVideosRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getMarker()const; + void setMarker(const std::string& marker); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getCreateTimeStart()const; + void setCreateTimeStart(const std::string& createTimeStart); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + std::string marker_; + std::string project_; + std::string setId_; + std::string createTimeStart_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/ListVideosResult.h b/imm/include/alibabacloud/imm/model/ListVideosResult.h new file mode 100755 index 000000000..6c3590d63 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/ListVideosResult.h @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_LISTVIDEOSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_LISTVIDEOSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT ListVideosResult : public ServiceResult + { + public: + struct VideosItem + { + struct VideoTagsItem + { + std::string videoTagEnName; + std::string videoTagName; + float videoTagConfidence; + }; + struct CelebrityItem + { + std::string celebrityName; + int celebrityNum; + std::string celebrityLibraryName; + }; + struct PersonsItem + { + std::string personId; + float genderConfidence; + std::string gender; + int age; + float ageConfidence; + }; + std::string modifyTime; + std::string processStatus; + int videoWidth; + std::string sourceType; + std::string sourceUri; + std::string remarksA; + std::string remarksB; + std::string remarksC; + std::string remarksD; + int videoHeight; + std::vector persons; + std::vector celebrity; + std::string sourcePosition; + std::string videoTagsFailReason; + std::string videoTagsModifyTime; + int videoFrames; + std::string processModifyTime; + std::string processFailReason; + std::string createTime; + std::string externalId; + std::string videoUri; + std::string videoFormat; + std::vector videoTags; + std::string celebrityModifyTime; + float videoDuration; + std::string celebrityFailReason; + std::string celebrityStatus; + std::string videoTagsStatus; + int fileSize; + }; + + + ListVideosResult(); + explicit ListVideosResult(const std::string &payload); + ~ListVideosResult(); + std::string getSetId()const; + std::string getNextMarker()const; + std::vector getVideos()const; + + protected: + void parse(const std::string &payload); + private: + std::string setId_; + std::string nextMarker_; + std::vector videos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_LISTVIDEOSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/PhotoProcessRequest.h b/imm/include/alibabacloud/imm/model/PhotoProcessRequest.h new file mode 100755 index 000000000..77b920dd9 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/PhotoProcessRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT PhotoProcessRequest : public RpcServiceRequest + { + + public: + PhotoProcessRequest(); + ~PhotoProcessRequest(); + + std::string getNotifyTopicName()const; + void setNotifyTopicName(const std::string& notifyTopicName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNotifyEndpoint()const; + void setNotifyEndpoint(const std::string& notifyEndpoint); + std::string getProject()const; + void setProject(const std::string& project); + std::string getExternalID()const; + void setExternalID(const std::string& externalID); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + std::string getStyle()const; + void setStyle(const std::string& style); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getTgtUri()const; + void setTgtUri(const std::string& tgtUri); + + private: + std::string notifyTopicName_; + std::string regionId_; + std::string notifyEndpoint_; + std::string project_; + std::string externalID_; + std::string srcUri_; + std::string style_; + std::string accessKeyId_; + std::string tgtUri_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/PhotoProcessResult.h b/imm/include/alibabacloud/imm/model/PhotoProcessResult.h new file mode 100755 index 000000000..b85cba7b7 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/PhotoProcessResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT PhotoProcessResult : public ServiceResult + { + public: + + + PhotoProcessResult(); + explicit PhotoProcessResult(const std::string &payload); + ~PhotoProcessResult(); + std::string getStatus()const; + std::string getTaskId()const; + int getPercent()const; + std::string getTgtLoc()const; + std::string getCreateTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string taskId_; + int percent_; + std::string tgtLoc_; + std::string createTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_PHOTOPROCESSRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/PutProjectRequest.h b/imm/include/alibabacloud/imm/model/PutProjectRequest.h new file mode 100755 index 000000000..b458c0fa4 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/PutProjectRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT PutProjectRequest : public RpcServiceRequest + { + + public: + PutProjectRequest(); + ~PutProjectRequest(); + + int getCU()const; + void setCU(int cU); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getServiceRole()const; + void setServiceRole(const std::string& serviceRole); + std::string getProject()const; + void setProject(const std::string& project); + std::string getBillingType()const; + void setBillingType(const std::string& billingType); + std::string getType()const; + void setType(const std::string& type); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + int cU_; + std::string regionId_; + std::string serviceRole_; + std::string project_; + std::string billingType_; + std::string type_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_PUTPROJECTREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/PutProjectResult.h b/imm/include/alibabacloud/imm/model/PutProjectResult.h new file mode 100755 index 000000000..e8ab795ff --- /dev/null +++ b/imm/include/alibabacloud/imm/model/PutProjectResult.h @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_PUTPROJECTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_PUTPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT PutProjectResult : public ServiceResult + { + public: + + + PutProjectResult(); + explicit PutProjectResult(const std::string &payload); + ~PutProjectResult(); + std::string getProject()const; + std::string getModifyTime()const; + int getCU()const; + std::string getType()const; + std::string getServiceRole()const; + std::string getEndpoint()const; + std::string getCreateTime()const; + std::string getBillingType()const; + + protected: + void parse(const std::string &payload); + private: + std::string project_; + std::string modifyTime_; + int cU_; + std::string type_; + std::string serviceRole_; + std::string endpoint_; + std::string createTime_; + std::string billingType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_PUTPROJECTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/RegistFaceRequest.h b/imm/include/alibabacloud/imm/model/RegistFaceRequest.h new file mode 100755 index 000000000..bb9e51445 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/RegistFaceRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_REGISTFACEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_REGISTFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT RegistFaceRequest : public RpcServiceRequest + { + + public: + RegistFaceRequest(); + ~RegistFaceRequest(); + + bool getChooseBiggestFace()const; + void setChooseBiggestFace(bool chooseBiggestFace); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + bool getIsQualityLimit()const; + void setIsQualityLimit(bool isQualityLimit); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + std::string getRegisterCheckLevel()const; + void setRegisterCheckLevel(const std::string& registerCheckLevel); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getUser()const; + void setUser(const std::string& user); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + bool chooseBiggestFace_; + std::string regionId_; + bool isQualityLimit_; + std::string project_; + std::string srcUri_; + std::string registerCheckLevel_; + std::string groupName_; + std::string user_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_REGISTFACEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/RegistFaceResult.h b/imm/include/alibabacloud/imm/model/RegistFaceResult.h new file mode 100755 index 000000000..3630d5c1b --- /dev/null +++ b/imm/include/alibabacloud/imm/model/RegistFaceResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_REGISTFACERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_REGISTFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT RegistFaceResult : public ServiceResult + { + public: + + + RegistFaceResult(); + explicit RegistFaceResult(const std::string &payload); + ~RegistFaceResult(); + std::string getGroupName()const; + std::string getFaceId()const; + std::string getUser()const; + std::string getGender()const; + std::string getImageUri()const; + float getYaw()const; + std::string getGroupId()const; + float getQuality()const; + std::string getImageId()const; + int getGlasses()const; + float getPitch()const; + int getHat()const; + float getRoll()const; + std::vector getAxis()const; + std::string getImageMd5()const; + int getAge()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupName_; + std::string faceId_; + std::string user_; + std::string gender_; + std::string imageUri_; + float yaw_; + std::string groupId_; + float quality_; + std::string imageId_; + int glasses_; + float pitch_; + int hat_; + float roll_; + std::vector axis_; + std::string imageMd5_; + int age_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_REGISTFACERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/SearchDocIndexRequest.h b/imm/include/alibabacloud/imm/model/SearchDocIndexRequest.h new file mode 100755 index 000000000..85c5ae9e8 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/SearchDocIndexRequest.h @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT SearchDocIndexRequest : public RpcServiceRequest + { + + public: + SearchDocIndexRequest(); + ~SearchDocIndexRequest(); + + int getModifiedTimeEnd()const; + void setModifiedTimeEnd(int modifiedTimeEnd); + std::string getCustomKey1()const; + void setCustomKey1(const std::string& customKey1); + std::string getSet()const; + void setSet(const std::string& set); + int getSizeLimitEnd()const; + void setSizeLimitEnd(int sizeLimitEnd); + std::string getCustomKey5()const; + void setCustomKey5(const std::string& customKey5); + int getOffset()const; + void setOffset(int offset); + std::string getCustomKey4()const; + void setCustomKey4(const std::string& customKey4); + std::string getCustomKey3()const; + void setCustomKey3(const std::string& customKey3); + std::string getCustomKey2()const; + void setCustomKey2(const std::string& customKey2); + std::string getProject()const; + void setProject(const std::string& project); + int getModifiedTimeStart()const; + void setModifiedTimeStart(int modifiedTimeStart); + int getPageNumLimitStart()const; + void setPageNumLimitStart(int pageNumLimitStart); + std::string getCustomKey6()const; + void setCustomKey6(const std::string& customKey6); + std::string getContent()const; + void setContent(const std::string& content); + int getPageNumLimitEnd()const; + void setPageNumLimitEnd(int pageNumLimitEnd); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getContentType()const; + void setContentType(const std::string& contentType); + int getSizeLimitStart()const; + void setSizeLimitStart(int sizeLimitStart); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + int getLimit()const; + void setLimit(int limit); + + private: + int modifiedTimeEnd_; + std::string customKey1_; + std::string set_; + int sizeLimitEnd_; + std::string customKey5_; + int offset_; + std::string customKey4_; + std::string customKey3_; + std::string customKey2_; + std::string project_; + int modifiedTimeStart_; + int pageNumLimitStart_; + std::string customKey6_; + std::string content_; + int pageNumLimitEnd_; + std::string accessKeyId_; + std::string contentType_; + int sizeLimitStart_; + std::string regionId_; + std::string name_; + int limit_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/SearchDocIndexResult.h b/imm/include/alibabacloud/imm/model/SearchDocIndexResult.h new file mode 100755 index 000000000..99cd931d3 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/SearchDocIndexResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT SearchDocIndexResult : public ServiceResult + { + public: + struct DocInfosItem + { + std::string customKey4; + std::string uniqueId; + std::string customKey5; + std::string customKey2; + std::string customKey3; + std::string contentType; + int pageNum; + std::string customKey1; + int size; + std::string customKey6; + std::string name; + std::string lastModified; + std::string srcUri; + }; + + + SearchDocIndexResult(); + explicit SearchDocIndexResult(const std::string &payload); + ~SearchDocIndexResult(); + std::vector getDocInfos()const; + + protected: + void parse(const std::string &payload); + private: + std::vector docInfos_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_SEARCHDOCINDEXRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/SearchFaceRequest.h b/imm/include/alibabacloud/imm/model/SearchFaceRequest.h new file mode 100755 index 000000000..d0c9184fa --- /dev/null +++ b/imm/include/alibabacloud/imm/model/SearchFaceRequest.h @@ -0,0 +1,69 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHFACEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_SEARCHFACEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT SearchFaceRequest : public RpcServiceRequest + { + + public: + SearchFaceRequest(); + ~SearchFaceRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + int getResultNum()const; + void setResultNum(int resultNum); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSearchThresholdLevel()const; + void setSearchThresholdLevel(const std::string& searchThresholdLevel); + std::string getSrcUri()const; + void setSrcUri(const std::string& srcUri); + bool getIsThreshold()const; + void setIsThreshold(bool isThreshold); + std::string getGroupName()const; + void setGroupName(const std::string& groupName); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string regionId_; + int resultNum_; + std::string project_; + std::string searchThresholdLevel_; + std::string srcUri_; + bool isThreshold_; + std::string groupName_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_SEARCHFACEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/SearchFaceResult.h b/imm/include/alibabacloud/imm/model/SearchFaceResult.h new file mode 100755 index 000000000..a29629eba --- /dev/null +++ b/imm/include/alibabacloud/imm/model/SearchFaceResult.h @@ -0,0 +1,74 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_SEARCHFACERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_SEARCHFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT SearchFaceResult : public ServiceResult + { + public: + struct ResultFacesItem + { + float score; + std::string user; + std::string imageId; + int glasses; + int hat; + std::string imageUri; + std::vector axis1; + std::string groupId; + }; + + + SearchFaceResult(); + explicit SearchFaceResult(const std::string &payload); + ~SearchFaceResult(); + std::string getGroupName()const; + float getScore()const; + std::vector getResultFaces()const; + int getGlasses()const; + int getHat()const; + std::string getImageUri()const; + std::vector getAxis()const; + + protected: + void parse(const std::string &payload); + private: + std::string groupName_; + float score_; + std::vector resultFaces_; + int glasses_; + int hat_; + std::string imageUri_; + std::vector axis_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_SEARCHFACERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h b/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h new file mode 100755 index 000000000..77bd47b20 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETAREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETAREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateDocIndexMetaRequest : public RpcServiceRequest + { + + public: + UpdateDocIndexMetaRequest(); + ~UpdateDocIndexMetaRequest(); + + std::string getCustomKey1()const; + void setCustomKey1(const std::string& customKey1); + std::string getSet()const; + void setSet(const std::string& set); + std::string getCustomKey5()const; + void setCustomKey5(const std::string& customKey5); + std::string getCustomKey4()const; + void setCustomKey4(const std::string& customKey4); + std::string getCustomKey3()const; + void setCustomKey3(const std::string& customKey3); + std::string getCustomKey2()const; + void setCustomKey2(const std::string& customKey2); + std::string getProject()const; + void setProject(const std::string& project); + std::string getCustomKey6()const; + void setCustomKey6(const std::string& customKey6); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getName()const; + void setName(const std::string& name); + std::string getUniqueId()const; + void setUniqueId(const std::string& uniqueId); + + private: + std::string customKey1_; + std::string set_; + std::string customKey5_; + std::string customKey4_; + std::string customKey3_; + std::string customKey2_; + std::string project_; + std::string customKey6_; + std::string accessKeyId_; + std::string regionId_; + std::string name_; + std::string uniqueId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETAREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaResult.h b/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaResult.h new file mode 100755 index 000000000..ac37d53b7 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateDocIndexMetaResult.h @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETARESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETARESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateDocIndexMetaResult : public ServiceResult + { + public: + + + UpdateDocIndexMetaResult(); + explicit UpdateDocIndexMetaResult(const std::string &payload); + ~UpdateDocIndexMetaResult(); + std::string getIndexModifiedTime()const; + std::string getIndexCreatedTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string indexModifiedTime_; + std::string indexCreatedTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEDOCINDEXMETARESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateImageRequest.h b/imm/include/alibabacloud/imm/model/UpdateImageRequest.h new file mode 100755 index 000000000..108b5c31c --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateImageRequest.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEIMAGEREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEIMAGEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateImageRequest : public RpcServiceRequest + { + + public: + UpdateImageRequest(); + ~UpdateImageRequest(); + + std::string getRemarksB()const; + void setRemarksB(const std::string& remarksB); + std::string getProject()const; + void setProject(const std::string& project); + std::string getRemarksA()const; + void setRemarksA(const std::string& remarksA); + std::string getExternalId()const; + void setExternalId(const std::string& externalId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + std::string getImageUri()const; + void setImageUri(const std::string& imageUri); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getSourceUri()const; + void setSourceUri(const std::string& sourceUri); + std::string getSourcePosition()const; + void setSourcePosition(const std::string& sourcePosition); + std::string getRemarksD()const; + void setRemarksD(const std::string& remarksD); + std::string getRemarksC()const; + void setRemarksC(const std::string& remarksC); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getSourceType()const; + void setSourceType(const std::string& sourceType); + + private: + std::string remarksB_; + std::string project_; + std::string remarksA_; + std::string externalId_; + std::string accessKeyId_; + std::string imageUri_; + std::string regionId_; + std::string sourceUri_; + std::string sourcePosition_; + std::string remarksD_; + std::string remarksC_; + std::string setId_; + std::string sourceType_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEIMAGEREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateImageResult.h b/imm/include/alibabacloud/imm/model/UpdateImageResult.h new file mode 100755 index 000000000..6ba23ed11 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateImageResult.h @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEIMAGERESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEIMAGERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateImageResult : public ServiceResult + { + public: + + + UpdateImageResult(); + explicit UpdateImageResult(const std::string &payload); + ~UpdateImageResult(); + std::string getModifyTime()const; + std::string getRemarksC()const; + std::string getRemarksD()const; + std::string getCreateTime()const; + std::string getExternalId()const; + std::string getSetId()const; + std::string getImageUri()const; + std::string getRemarksA()const; + std::string getRemarksB()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + std::string remarksC_; + std::string remarksD_; + std::string createTime_; + std::string externalId_; + std::string setId_; + std::string imageUri_; + std::string remarksA_; + std::string remarksB_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEIMAGERESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h b/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h new file mode 100755 index 000000000..e847cb003 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateProjectRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateProjectRequest : public RpcServiceRequest + { + + public: + UpdateProjectRequest(); + ~UpdateProjectRequest(); + + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNewServiceRole()const; + void setNewServiceRole(const std::string& newServiceRole); + std::string getProject()const; + void setProject(const std::string& project); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + int getNewCU()const; + void setNewCU(int newCU); + + private: + std::string regionId_; + std::string newServiceRole_; + std::string project_; + std::string accessKeyId_; + int newCU_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateProjectResult.h b/imm/include/alibabacloud/imm/model/UpdateProjectResult.h new file mode 100755 index 000000000..d79f007b8 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateProjectResult.h @@ -0,0 +1,61 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateProjectResult : public ServiceResult + { + public: + + + UpdateProjectResult(); + explicit UpdateProjectResult(const std::string &payload); + ~UpdateProjectResult(); + std::string getProject()const; + std::string getModifyTime()const; + int getCU()const; + std::string getType()const; + std::string getServiceRole()const; + std::string getCreateTime()const; + + protected: + void parse(const std::string &payload); + private: + std::string project_; + std::string modifyTime_; + int cU_; + std::string type_; + std::string serviceRole_; + std::string createTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATEPROJECTRESULT_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateSetRequest.h b/imm/include/alibabacloud/imm/model/UpdateSetRequest.h new file mode 100755 index 000000000..822e804d7 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateSetRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATESETREQUEST_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATESETREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateSetRequest : public RpcServiceRequest + { + + public: + UpdateSetRequest(); + ~UpdateSetRequest(); + + std::string getSetName()const; + void setSetName(const std::string& setName); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getProject()const; + void setProject(const std::string& project); + std::string getSetId()const; + void setSetId(const std::string& setId); + std::string getAccessKeyId()const; + void setAccessKeyId(const std::string& accessKeyId); + + private: + std::string setName_; + std::string regionId_; + std::string project_; + std::string setId_; + std::string accessKeyId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATESETREQUEST_H_ \ No newline at end of file diff --git a/imm/include/alibabacloud/imm/model/UpdateSetResult.h b/imm/include/alibabacloud/imm/model/UpdateSetResult.h new file mode 100755 index 000000000..ca4cd5646 --- /dev/null +++ b/imm/include/alibabacloud/imm/model/UpdateSetResult.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_IMM_MODEL_UPDATESETRESULT_H_ +#define ALIBABACLOUD_IMM_MODEL_UPDATESETRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Imm + { + namespace Model + { + class ALIBABACLOUD_IMM_EXPORT UpdateSetResult : public ServiceResult + { + public: + + + UpdateSetResult(); + explicit UpdateSetResult(const std::string &payload); + ~UpdateSetResult(); + std::string getModifyTime()const; + std::string getCreateTime()const; + std::string getSetName()const; + std::string getSetId()const; + + protected: + void parse(const std::string &payload); + private: + std::string modifyTime_; + std::string createTime_; + std::string setName_; + std::string setId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_IMM_MODEL_UPDATESETRESULT_H_ \ No newline at end of file diff --git a/imm/src/ImmClient.cc b/imm/src/ImmClient.cc new file mode 100755 index 000000000..e7af1984b --- /dev/null +++ b/imm/src/ImmClient.cc @@ -0,0 +1,3329 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud; +using namespace AlibabaCloud::Location; +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +namespace +{ + const std::string SERVICE_NAME = "imm"; +} + +ImmClient::ImmClient(const Credentials &credentials, const ClientConfiguration &configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) +{ + auto locationClient = std::make_shared(credentials, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "imm"); +} + +ImmClient::ImmClient(const std::shared_ptr& credentialsProvider, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration) +{ + auto locationClient = std::make_shared(credentialsProvider, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "imm"); +} + +ImmClient::ImmClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) : + RpcServiceClient(SERVICE_NAME, std::make_shared(accessKeyId, accessKeySecret), configuration) +{ + auto locationClient = std::make_shared(accessKeyId, accessKeySecret, configuration); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "imm"); +} + +ImmClient::~ImmClient() +{} + +ImmClient::ListPornBatchDetectJobsOutcome ImmClient::listPornBatchDetectJobs(const ListPornBatchDetectJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPornBatchDetectJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPornBatchDetectJobsOutcome(ListPornBatchDetectJobsResult(outcome.result())); + else + return ListPornBatchDetectJobsOutcome(outcome.error()); +} + +void ImmClient::listPornBatchDetectJobsAsync(const ListPornBatchDetectJobsRequest& request, const ListPornBatchDetectJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPornBatchDetectJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListPornBatchDetectJobsOutcomeCallable ImmClient::listPornBatchDetectJobsCallable(const ListPornBatchDetectJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPornBatchDetectJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectImageFacesOutcome ImmClient::detectImageFaces(const DetectImageFacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageFacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageFacesOutcome(DetectImageFacesResult(outcome.result())); + else + return DetectImageFacesOutcome(outcome.error()); +} + +void ImmClient::detectImageFacesAsync(const DetectImageFacesRequest& request, const DetectImageFacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageFaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageFacesOutcomeCallable ImmClient::detectImageFacesCallable(const DetectImageFacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageFaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectImageTagsOutcome ImmClient::detectImageTags(const DetectImageTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageTagsOutcome(DetectImageTagsResult(outcome.result())); + else + return DetectImageTagsOutcome(outcome.error()); +} + +void ImmClient::detectImageTagsAsync(const DetectImageTagsRequest& request, const DetectImageTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageTagsOutcomeCallable ImmClient::detectImageTagsCallable(const DetectImageTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteImageOutcome ImmClient::deleteImage(const DeleteImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteImageOutcome(DeleteImageResult(outcome.result())); + else + return DeleteImageOutcome(outcome.error()); +} + +void ImmClient::deleteImageAsync(const DeleteImageRequest& request, const DeleteImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteImageOutcomeCallable ImmClient::deleteImageCallable(const DeleteImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateTagJobOutcome ImmClient::createTagJob(const CreateTagJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTagJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTagJobOutcome(CreateTagJobResult(outcome.result())); + else + return CreateTagJobOutcome(outcome.error()); +} + +void ImmClient::createTagJobAsync(const CreateTagJobRequest& request, const CreateTagJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTagJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateTagJobOutcomeCallable ImmClient::createTagJobCallable(const CreateTagJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTagJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::IndexTagOutcome ImmClient::indexTag(const IndexTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return IndexTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return IndexTagOutcome(IndexTagResult(outcome.result())); + else + return IndexTagOutcome(outcome.error()); +} + +void ImmClient::indexTagAsync(const IndexTagRequest& request, const IndexTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, indexTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::IndexTagOutcomeCallable ImmClient::indexTagCallable(const IndexTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->indexTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListProjectsOutcome ImmClient::listProjects(const ListProjectsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListProjectsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListProjectsOutcome(ListProjectsResult(outcome.result())); + else + return ListProjectsOutcome(outcome.error()); +} + +void ImmClient::listProjectsAsync(const ListProjectsRequest& request, const ListProjectsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listProjects(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListProjectsOutcomeCallable ImmClient::listProjectsCallable(const ListProjectsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listProjects(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteSetOutcome ImmClient::deleteSet(const DeleteSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSetOutcome(DeleteSetResult(outcome.result())); + else + return DeleteSetOutcome(outcome.error()); +} + +void ImmClient::deleteSetAsync(const DeleteSetRequest& request, const DeleteSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteSetOutcomeCallable ImmClient::deleteSetCallable(const DeleteSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetFaceSearchImageOutcome ImmClient::getFaceSearchImage(const GetFaceSearchImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFaceSearchImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFaceSearchImageOutcome(GetFaceSearchImageResult(outcome.result())); + else + return GetFaceSearchImageOutcome(outcome.error()); +} + +void ImmClient::getFaceSearchImageAsync(const GetFaceSearchImageRequest& request, const GetFaceSearchImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFaceSearchImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetFaceSearchImageOutcomeCallable ImmClient::getFaceSearchImageCallable(const GetFaceSearchImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFaceSearchImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateVideoAnalyseTaskOutcome ImmClient::createVideoAnalyseTask(const CreateVideoAnalyseTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateVideoAnalyseTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateVideoAnalyseTaskOutcome(CreateVideoAnalyseTaskResult(outcome.result())); + else + return CreateVideoAnalyseTaskOutcome(outcome.error()); +} + +void ImmClient::createVideoAnalyseTaskAsync(const CreateVideoAnalyseTaskRequest& request, const CreateVideoAnalyseTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createVideoAnalyseTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateVideoAnalyseTaskOutcomeCallable ImmClient::createVideoAnalyseTaskCallable(const CreateVideoAnalyseTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createVideoAnalyseTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CompareFaceOutcome ImmClient::compareFace(const CompareFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CompareFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CompareFaceOutcome(CompareFaceResult(outcome.result())); + else + return CompareFaceOutcome(outcome.error()); +} + +void ImmClient::compareFaceAsync(const CompareFaceRequest& request, const CompareFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, compareFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CompareFaceOutcomeCallable ImmClient::compareFaceCallable(const CompareFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->compareFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectTagOutcome ImmClient::detectTag(const DetectTagRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectTagOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectTagOutcome(DetectTagResult(outcome.result())); + else + return DetectTagOutcome(outcome.error()); +} + +void ImmClient::detectTagAsync(const DetectTagRequest& request, const DetectTagAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectTag(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectTagOutcomeCallable ImmClient::detectTagCallable(const DetectTagRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectTag(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListFaceSearchGroupUsersOutcome ImmClient::listFaceSearchGroupUsers(const ListFaceSearchGroupUsersRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFaceSearchGroupUsersOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFaceSearchGroupUsersOutcome(ListFaceSearchGroupUsersResult(outcome.result())); + else + return ListFaceSearchGroupUsersOutcome(outcome.error()); +} + +void ImmClient::listFaceSearchGroupUsersAsync(const ListFaceSearchGroupUsersRequest& request, const ListFaceSearchGroupUsersAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFaceSearchGroupUsers(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListFaceSearchGroupUsersOutcomeCallable ImmClient::listFaceSearchGroupUsersCallable(const ListFaceSearchGroupUsersRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFaceSearchGroupUsers(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListFaceSearchGroupImagesOutcome ImmClient::listFaceSearchGroupImages(const ListFaceSearchGroupImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFaceSearchGroupImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFaceSearchGroupImagesOutcome(ListFaceSearchGroupImagesResult(outcome.result())); + else + return ListFaceSearchGroupImagesOutcome(outcome.error()); +} + +void ImmClient::listFaceSearchGroupImagesAsync(const ListFaceSearchGroupImagesRequest& request, const ListFaceSearchGroupImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFaceSearchGroupImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListFaceSearchGroupImagesOutcomeCallable ImmClient::listFaceSearchGroupImagesCallable(const ListFaceSearchGroupImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFaceSearchGroupImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateCADConversionTaskOutcome ImmClient::createCADConversionTask(const CreateCADConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateCADConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateCADConversionTaskOutcome(CreateCADConversionTaskResult(outcome.result())); + else + return CreateCADConversionTaskOutcome(outcome.error()); +} + +void ImmClient::createCADConversionTaskAsync(const CreateCADConversionTaskRequest& request, const CreateCADConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createCADConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateCADConversionTaskOutcomeCallable ImmClient::createCADConversionTaskCallable(const CreateCADConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createCADConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetTagJobOutcome ImmClient::getTagJob(const GetTagJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTagJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTagJobOutcome(GetTagJobResult(outcome.result())); + else + return GetTagJobOutcome(outcome.error()); +} + +void ImmClient::getTagJobAsync(const GetTagJobRequest& request, const GetTagJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTagJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetTagJobOutcomeCallable ImmClient::getTagJobCallable(const GetTagJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTagJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteFaceJobOutcome ImmClient::deleteFaceJob(const DeleteFaceJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceJobOutcome(DeleteFaceJobResult(outcome.result())); + else + return DeleteFaceJobOutcome(outcome.error()); +} + +void ImmClient::deleteFaceJobAsync(const DeleteFaceJobRequest& request, const DeleteFaceJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteFaceJobOutcomeCallable ImmClient::deleteFaceJobCallable(const DeleteFaceJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateDocIndexTaskOutcome ImmClient::createDocIndexTask(const CreateDocIndexTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateDocIndexTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateDocIndexTaskOutcome(CreateDocIndexTaskResult(outcome.result())); + else + return CreateDocIndexTaskOutcome(outcome.error()); +} + +void ImmClient::createDocIndexTaskAsync(const CreateDocIndexTaskRequest& request, const CreateDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createDocIndexTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateDocIndexTaskOutcomeCallable ImmClient::createDocIndexTaskCallable(const CreateDocIndexTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createDocIndexTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::PutProjectOutcome ImmClient::putProject(const PutProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PutProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PutProjectOutcome(PutProjectResult(outcome.result())); + else + return PutProjectOutcome(outcome.error()); +} + +void ImmClient::putProjectAsync(const PutProjectRequest& request, const PutProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, putProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::PutProjectOutcomeCallable ImmClient::putProjectCallable(const PutProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->putProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetSetOutcome ImmClient::getSet(const GetSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSetOutcome(GetSetResult(outcome.result())); + else + return GetSetOutcome(outcome.error()); +} + +void ImmClient::getSetAsync(const GetSetRequest& request, const GetSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetSetOutcomeCallable ImmClient::getSetCallable(const GetSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetVideoTaskOutcome ImmClient::getVideoTask(const GetVideoTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVideoTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVideoTaskOutcome(GetVideoTaskResult(outcome.result())); + else + return GetVideoTaskOutcome(outcome.error()); +} + +void ImmClient::getVideoTaskAsync(const GetVideoTaskRequest& request, const GetVideoTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVideoTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetVideoTaskOutcomeCallable ImmClient::getVideoTaskCallable(const GetVideoTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVideoTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListSetsOutcome ImmClient::listSets(const ListSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSetsOutcome(ListSetsResult(outcome.result())); + else + return ListSetsOutcome(outcome.error()); +} + +void ImmClient::listSetsAsync(const ListSetsRequest& request, const ListSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListSetsOutcomeCallable ImmClient::listSetsCallable(const ListSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::SearchDocIndexOutcome ImmClient::searchDocIndex(const SearchDocIndexRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchDocIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchDocIndexOutcome(SearchDocIndexResult(outcome.result())); + else + return SearchDocIndexOutcome(outcome.error()); +} + +void ImmClient::searchDocIndexAsync(const SearchDocIndexRequest& request, const SearchDocIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchDocIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::SearchDocIndexOutcomeCallable ImmClient::searchDocIndexCallable(const SearchDocIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchDocIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListPhotoProcessTasksOutcome ImmClient::listPhotoProcessTasks(const ListPhotoProcessTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListPhotoProcessTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListPhotoProcessTasksOutcome(ListPhotoProcessTasksResult(outcome.result())); + else + return ListPhotoProcessTasksOutcome(outcome.error()); +} + +void ImmClient::listPhotoProcessTasksAsync(const ListPhotoProcessTasksRequest& request, const ListPhotoProcessTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listPhotoProcessTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListPhotoProcessTasksOutcomeCallable ImmClient::listPhotoProcessTasksCallable(const ListPhotoProcessTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listPhotoProcessTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListVideosOutcome ImmClient::listVideos(const ListVideosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideosOutcome(ListVideosResult(outcome.result())); + else + return ListVideosOutcome(outcome.error()); +} + +void ImmClient::listVideosAsync(const ListVideosRequest& request, const ListVideosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideosOutcomeCallable ImmClient::listVideosCallable(const ListVideosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreatePornBatchDetectJobOutcome ImmClient::createPornBatchDetectJob(const CreatePornBatchDetectJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreatePornBatchDetectJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreatePornBatchDetectJobOutcome(CreatePornBatchDetectJobResult(outcome.result())); + else + return CreatePornBatchDetectJobOutcome(outcome.error()); +} + +void ImmClient::createPornBatchDetectJobAsync(const CreatePornBatchDetectJobRequest& request, const CreatePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createPornBatchDetectJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreatePornBatchDetectJobOutcomeCallable ImmClient::createPornBatchDetectJobCallable(const CreatePornBatchDetectJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createPornBatchDetectJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::FindImagesOutcome ImmClient::findImages(const FindImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindImagesOutcome(FindImagesResult(outcome.result())); + else + return FindImagesOutcome(outcome.error()); +} + +void ImmClient::findImagesAsync(const FindImagesRequest& request, const FindImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::FindImagesOutcomeCallable ImmClient::findImagesCallable(const FindImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteTagByNameOutcome ImmClient::deleteTagByName(const DeleteTagByNameRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagByNameOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagByNameOutcome(DeleteTagByNameResult(outcome.result())); + else + return DeleteTagByNameOutcome(outcome.error()); +} + +void ImmClient::deleteTagByNameAsync(const DeleteTagByNameRequest& request, const DeleteTagByNameAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTagByName(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteTagByNameOutcomeCallable ImmClient::deleteTagByNameCallable(const DeleteTagByNameRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTagByName(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectImageLogosOutcome ImmClient::detectImageLogos(const DetectImageLogosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageLogosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageLogosOutcome(DetectImageLogosResult(outcome.result())); + else + return DetectImageLogosOutcome(outcome.error()); +} + +void ImmClient::detectImageLogosAsync(const DetectImageLogosRequest& request, const DetectImageLogosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageLogos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageLogosOutcomeCallable ImmClient::detectImageLogosCallable(const DetectImageLogosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageLogos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetProjectOutcome ImmClient::getProject(const GetProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetProjectOutcome(GetProjectResult(outcome.result())); + else + return GetProjectOutcome(outcome.error()); +} + +void ImmClient::getProjectAsync(const GetProjectRequest& request, const GetProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetProjectOutcomeCallable ImmClient::getProjectCallable(const GetProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeletePhotoProcessTaskOutcome ImmClient::deletePhotoProcessTask(const DeletePhotoProcessTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePhotoProcessTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePhotoProcessTaskOutcome(DeletePhotoProcessTaskResult(outcome.result())); + else + return DeletePhotoProcessTaskOutcome(outcome.error()); +} + +void ImmClient::deletePhotoProcessTaskAsync(const DeletePhotoProcessTaskRequest& request, const DeletePhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePhotoProcessTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeletePhotoProcessTaskOutcomeCallable ImmClient::deletePhotoProcessTaskCallable(const DeletePhotoProcessTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePhotoProcessTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListSetTagsOutcome ImmClient::listSetTags(const ListSetTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListSetTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListSetTagsOutcome(ListSetTagsResult(outcome.result())); + else + return ListSetTagsOutcome(outcome.error()); +} + +void ImmClient::listSetTagsAsync(const ListSetTagsRequest& request, const ListSetTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listSetTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListSetTagsOutcomeCallable ImmClient::listSetTagsCallable(const ListSetTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listSetTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteVideoTaskOutcome ImmClient::deleteVideoTask(const DeleteVideoTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVideoTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVideoTaskOutcome(DeleteVideoTaskResult(outcome.result())); + else + return DeleteVideoTaskOutcome(outcome.error()); +} + +void ImmClient::deleteVideoTaskAsync(const DeleteVideoTaskRequest& request, const DeleteVideoTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVideoTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteVideoTaskOutcomeCallable ImmClient::deleteVideoTaskCallable(const DeleteVideoTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVideoTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::FindImagesByTagNamesOutcome ImmClient::findImagesByTagNames(const FindImagesByTagNamesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindImagesByTagNamesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindImagesByTagNamesOutcome(FindImagesByTagNamesResult(outcome.result())); + else + return FindImagesByTagNamesOutcome(outcome.error()); +} + +void ImmClient::findImagesByTagNamesAsync(const FindImagesByTagNamesRequest& request, const FindImagesByTagNamesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findImagesByTagNames(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::FindImagesByTagNamesOutcomeCallable ImmClient::findImagesByTagNamesCallable(const FindImagesByTagNamesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findImagesByTagNames(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteTagSetOutcome ImmClient::deleteTagSet(const DeleteTagSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagSetOutcome(DeleteTagSetResult(outcome.result())); + else + return DeleteTagSetOutcome(outcome.error()); +} + +void ImmClient::deleteTagSetAsync(const DeleteTagSetRequest& request, const DeleteTagSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTagSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteTagSetOutcomeCallable ImmClient::deleteTagSetCallable(const DeleteTagSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTagSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteProjectOutcome ImmClient::deleteProject(const DeleteProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteProjectOutcome(DeleteProjectResult(outcome.result())); + else + return DeleteProjectOutcome(outcome.error()); +} + +void ImmClient::deleteProjectAsync(const DeleteProjectRequest& request, const DeleteProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteProjectOutcomeCallable ImmClient::deleteProjectCallable(const DeleteProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateDocIndexMetaOutcome ImmClient::updateDocIndexMeta(const UpdateDocIndexMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateDocIndexMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateDocIndexMetaOutcome(UpdateDocIndexMetaResult(outcome.result())); + else + return UpdateDocIndexMetaOutcome(outcome.error()); +} + +void ImmClient::updateDocIndexMetaAsync(const UpdateDocIndexMetaRequest& request, const UpdateDocIndexMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateDocIndexMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateDocIndexMetaOutcomeCallable ImmClient::updateDocIndexMetaCallable(const UpdateDocIndexMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateDocIndexMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::SearchFaceOutcome ImmClient::searchFace(const SearchFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SearchFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SearchFaceOutcome(SearchFaceResult(outcome.result())); + else + return SearchFaceOutcome(outcome.error()); +} + +void ImmClient::searchFaceAsync(const SearchFaceRequest& request, const SearchFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, searchFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::SearchFaceOutcomeCallable ImmClient::searchFaceCallable(const SearchFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->searchFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetImageOutcome ImmClient::getImage(const GetImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetImageOutcome(GetImageResult(outcome.result())); + else + return GetImageOutcome(outcome.error()); +} + +void ImmClient::getImageAsync(const GetImageRequest& request, const GetImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetImageOutcomeCallable ImmClient::getImageCallable(const GetImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectImageCelebrityOutcome ImmClient::detectImageCelebrity(const DetectImageCelebrityRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageCelebrityOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageCelebrityOutcome(DetectImageCelebrityResult(outcome.result())); + else + return DetectImageCelebrityOutcome(outcome.error()); +} + +void ImmClient::detectImageCelebrityAsync(const DetectImageCelebrityRequest& request, const DetectImageCelebrityAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageCelebrity(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageCelebrityOutcomeCallable ImmClient::detectImageCelebrityCallable(const DetectImageCelebrityRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageCelebrity(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateSetOutcome ImmClient::createSet(const CreateSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSetOutcome(CreateSetResult(outcome.result())); + else + return CreateSetOutcome(outcome.error()); +} + +void ImmClient::createSetAsync(const CreateSetRequest& request, const CreateSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateSetOutcomeCallable ImmClient::createSetCallable(const CreateSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeletePornBatchDetectJobOutcome ImmClient::deletePornBatchDetectJob(const DeletePornBatchDetectJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeletePornBatchDetectJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeletePornBatchDetectJobOutcome(DeletePornBatchDetectJobResult(outcome.result())); + else + return DeletePornBatchDetectJobOutcome(outcome.error()); +} + +void ImmClient::deletePornBatchDetectJobAsync(const DeletePornBatchDetectJobRequest& request, const DeletePornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deletePornBatchDetectJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeletePornBatchDetectJobOutcomeCallable ImmClient::deletePornBatchDetectJobCallable(const DeletePornBatchDetectJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deletePornBatchDetectJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListFaceSearchGroupsOutcome ImmClient::listFaceSearchGroups(const ListFaceSearchGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFaceSearchGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFaceSearchGroupsOutcome(ListFaceSearchGroupsResult(outcome.result())); + else + return ListFaceSearchGroupsOutcome(outcome.error()); +} + +void ImmClient::listFaceSearchGroupsAsync(const ListFaceSearchGroupsRequest& request, const ListFaceSearchGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFaceSearchGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListFaceSearchGroupsOutcomeCallable ImmClient::listFaceSearchGroupsCallable(const ListFaceSearchGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFaceSearchGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetTagSetOutcome ImmClient::getTagSet(const GetTagSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTagSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTagSetOutcome(GetTagSetResult(outcome.result())); + else + return GetTagSetOutcome(outcome.error()); +} + +void ImmClient::getTagSetAsync(const GetTagSetRequest& request, const GetTagSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTagSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetTagSetOutcomeCallable ImmClient::getTagSetCallable(const GetTagSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTagSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ConvertOfficeFormatOutcome ImmClient::convertOfficeFormat(const ConvertOfficeFormatRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ConvertOfficeFormatOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ConvertOfficeFormatOutcome(ConvertOfficeFormatResult(outcome.result())); + else + return ConvertOfficeFormatOutcome(outcome.error()); +} + +void ImmClient::convertOfficeFormatAsync(const ConvertOfficeFormatRequest& request, const ConvertOfficeFormatAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, convertOfficeFormat(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ConvertOfficeFormatOutcomeCallable ImmClient::convertOfficeFormatCallable(const ConvertOfficeFormatRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->convertOfficeFormat(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListTagPhotosOutcome ImmClient::listTagPhotos(const ListTagPhotosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagPhotosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagPhotosOutcome(ListTagPhotosResult(outcome.result())); + else + return ListTagPhotosOutcome(outcome.error()); +} + +void ImmClient::listTagPhotosAsync(const ListTagPhotosRequest& request, const ListTagPhotosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagPhotos(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListTagPhotosOutcomeCallable ImmClient::listTagPhotosCallable(const ListTagPhotosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagPhotos(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteFaceSearchImageByIdOutcome ImmClient::deleteFaceSearchImageById(const DeleteFaceSearchImageByIdRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceSearchImageByIdOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceSearchImageByIdOutcome(DeleteFaceSearchImageByIdResult(outcome.result())); + else + return DeleteFaceSearchImageByIdOutcome(outcome.error()); +} + +void ImmClient::deleteFaceSearchImageByIdAsync(const DeleteFaceSearchImageByIdRequest& request, const DeleteFaceSearchImageByIdAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceSearchImageById(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteFaceSearchImageByIdOutcomeCallable ImmClient::deleteFaceSearchImageByIdCallable(const DeleteFaceSearchImageByIdRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceSearchImageById(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::IndexVideoOutcome ImmClient::indexVideo(const IndexVideoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return IndexVideoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return IndexVideoOutcome(IndexVideoResult(outcome.result())); + else + return IndexVideoOutcome(outcome.error()); +} + +void ImmClient::indexVideoAsync(const IndexVideoRequest& request, const IndexVideoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, indexVideo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::IndexVideoOutcomeCallable ImmClient::indexVideoCallable(const IndexVideoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->indexVideo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteDocIndexOutcome ImmClient::deleteDocIndex(const DeleteDocIndexRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteDocIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteDocIndexOutcome(DeleteDocIndexResult(outcome.result())); + else + return DeleteDocIndexOutcome(outcome.error()); +} + +void ImmClient::deleteDocIndexAsync(const DeleteDocIndexRequest& request, const DeleteDocIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteDocIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteDocIndexOutcomeCallable ImmClient::deleteDocIndexCallable(const DeleteDocIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteDocIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetDocIndexTaskOutcome ImmClient::getDocIndexTask(const GetDocIndexTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDocIndexTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDocIndexTaskOutcome(GetDocIndexTaskResult(outcome.result())); + else + return GetDocIndexTaskOutcome(outcome.error()); +} + +void ImmClient::getDocIndexTaskAsync(const GetDocIndexTaskRequest& request, const GetDocIndexTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDocIndexTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetDocIndexTaskOutcomeCallable ImmClient::getDocIndexTaskCallable(const GetDocIndexTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDocIndexTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetImageJobOutcome ImmClient::getImageJob(const GetImageJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetImageJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetImageJobOutcome(GetImageJobResult(outcome.result())); + else + return GetImageJobOutcome(outcome.error()); +} + +void ImmClient::getImageJobAsync(const GetImageJobRequest& request, const GetImageJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getImageJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetImageJobOutcomeCallable ImmClient::getImageJobCallable(const GetImageJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getImageJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListVideoAudiosOutcome ImmClient::listVideoAudios(const ListVideoAudiosRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideoAudiosOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideoAudiosOutcome(ListVideoAudiosResult(outcome.result())); + else + return ListVideoAudiosOutcome(outcome.error()); +} + +void ImmClient::listVideoAudiosAsync(const ListVideoAudiosRequest& request, const ListVideoAudiosAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideoAudios(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideoAudiosOutcomeCallable ImmClient::listVideoAudiosCallable(const ListVideoAudiosRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideoAudios(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteTagByUrlOutcome ImmClient::deleteTagByUrl(const DeleteTagByUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagByUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagByUrlOutcome(DeleteTagByUrlResult(outcome.result())); + else + return DeleteTagByUrlOutcome(outcome.error()); +} + +void ImmClient::deleteTagByUrlAsync(const DeleteTagByUrlRequest& request, const DeleteTagByUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTagByUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteTagByUrlOutcomeCallable ImmClient::deleteTagByUrlCallable(const DeleteTagByUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTagByUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListTagSetsOutcome ImmClient::listTagSets(const ListTagSetsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagSetsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagSetsOutcome(ListTagSetsResult(outcome.result())); + else + return ListTagSetsOutcome(outcome.error()); +} + +void ImmClient::listTagSetsAsync(const ListTagSetsRequest& request, const ListTagSetsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagSets(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListTagSetsOutcomeCallable ImmClient::listTagSetsCallable(const ListTagSetsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagSets(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListTagNamesOutcome ImmClient::listTagNames(const ListTagNamesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagNamesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagNamesOutcome(ListTagNamesResult(outcome.result())); + else + return ListTagNamesOutcome(outcome.error()); +} + +void ImmClient::listTagNamesAsync(const ListTagNamesRequest& request, const ListTagNamesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagNames(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListTagNamesOutcomeCallable ImmClient::listTagNamesCallable(const ListTagNamesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagNames(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateOfficeConversionTaskOutcome ImmClient::createOfficeConversionTask(const CreateOfficeConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateOfficeConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateOfficeConversionTaskOutcome(CreateOfficeConversionTaskResult(outcome.result())); + else + return CreateOfficeConversionTaskOutcome(outcome.error()); +} + +void ImmClient::createOfficeConversionTaskAsync(const CreateOfficeConversionTaskRequest& request, const CreateOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createOfficeConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateOfficeConversionTaskOutcomeCallable ImmClient::createOfficeConversionTaskCallable(const CreateOfficeConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createOfficeConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectQRCodesOutcome ImmClient::detectQRCodes(const DetectQRCodesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectQRCodesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectQRCodesOutcome(DetectQRCodesResult(outcome.result())); + else + return DetectQRCodesOutcome(outcome.error()); +} + +void ImmClient::detectQRCodesAsync(const DetectQRCodesRequest& request, const DetectQRCodesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectQRCodes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectQRCodesOutcomeCallable ImmClient::detectQRCodesCallable(const DetectQRCodesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectQRCodes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetFaceSearchGroupOutcome ImmClient::getFaceSearchGroup(const GetFaceSearchGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFaceSearchGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFaceSearchGroupOutcome(GetFaceSearchGroupResult(outcome.result())); + else + return GetFaceSearchGroupOutcome(outcome.error()); +} + +void ImmClient::getFaceSearchGroupAsync(const GetFaceSearchGroupRequest& request, const GetFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFaceSearchGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetFaceSearchGroupOutcomeCallable ImmClient::getFaceSearchGroupCallable(const GetFaceSearchGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFaceSearchGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetVideoOutcome ImmClient::getVideo(const GetVideoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVideoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVideoOutcome(GetVideoResult(outcome.result())); + else + return GetVideoOutcome(outcome.error()); +} + +void ImmClient::getVideoAsync(const GetVideoRequest& request, const GetVideoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVideo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetVideoOutcomeCallable ImmClient::getVideoCallable(const GetVideoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVideo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListImagesOutcome ImmClient::listImages(const ListImagesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListImagesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListImagesOutcome(ListImagesResult(outcome.result())); + else + return ListImagesOutcome(outcome.error()); +} + +void ImmClient::listImagesAsync(const ListImagesRequest& request, const ListImagesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listImages(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListImagesOutcomeCallable ImmClient::listImagesCallable(const ListImagesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listImages(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CompareImageFacesOutcome ImmClient::compareImageFaces(const CompareImageFacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CompareImageFacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CompareImageFacesOutcome(CompareImageFacesResult(outcome.result())); + else + return CompareImageFacesOutcome(outcome.error()); +} + +void ImmClient::compareImageFacesAsync(const CompareImageFacesRequest& request, const CompareImageFacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, compareImageFaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CompareImageFacesOutcomeCallable ImmClient::compareImageFacesCallable(const CompareImageFacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->compareImageFaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteTagJobOutcome ImmClient::deleteTagJob(const DeleteTagJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteTagJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteTagJobOutcome(DeleteTagJobResult(outcome.result())); + else + return DeleteTagJobOutcome(outcome.error()); +} + +void ImmClient::deleteTagJobAsync(const DeleteTagJobRequest& request, const DeleteTagJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteTagJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteTagJobOutcomeCallable ImmClient::deleteTagJobCallable(const DeleteTagJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteTagJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteOfficeConversionTaskOutcome ImmClient::deleteOfficeConversionTask(const DeleteOfficeConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteOfficeConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteOfficeConversionTaskOutcome(DeleteOfficeConversionTaskResult(outcome.result())); + else + return DeleteOfficeConversionTaskOutcome(outcome.error()); +} + +void ImmClient::deleteOfficeConversionTaskAsync(const DeleteOfficeConversionTaskRequest& request, const DeleteOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteOfficeConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteOfficeConversionTaskOutcomeCallable ImmClient::deleteOfficeConversionTaskCallable(const DeleteOfficeConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteOfficeConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::PhotoProcessOutcome ImmClient::photoProcess(const PhotoProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return PhotoProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return PhotoProcessOutcome(PhotoProcessResult(outcome.result())); + else + return PhotoProcessOutcome(outcome.error()); +} + +void ImmClient::photoProcessAsync(const PhotoProcessRequest& request, const PhotoProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, photoProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::PhotoProcessOutcomeCallable ImmClient::photoProcessCallable(const PhotoProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->photoProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetPhotoProcessTaskOutcome ImmClient::getPhotoProcessTask(const GetPhotoProcessTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPhotoProcessTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPhotoProcessTaskOutcome(GetPhotoProcessTaskResult(outcome.result())); + else + return GetPhotoProcessTaskOutcome(outcome.error()); +} + +void ImmClient::getPhotoProcessTaskAsync(const GetPhotoProcessTaskRequest& request, const GetPhotoProcessTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPhotoProcessTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetPhotoProcessTaskOutcomeCallable ImmClient::getPhotoProcessTaskCallable(const GetPhotoProcessTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPhotoProcessTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListVideoFramesOutcome ImmClient::listVideoFrames(const ListVideoFramesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideoFramesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideoFramesOutcome(ListVideoFramesResult(outcome.result())); + else + return ListVideoFramesOutcome(outcome.error()); +} + +void ImmClient::listVideoFramesAsync(const ListVideoFramesRequest& request, const ListVideoFramesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideoFrames(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideoFramesOutcomeCallable ImmClient::listVideoFramesCallable(const ListVideoFramesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideoFrames(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetPornBatchDetectJobOutcome ImmClient::getPornBatchDetectJob(const GetPornBatchDetectJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetPornBatchDetectJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetPornBatchDetectJobOutcome(GetPornBatchDetectJobResult(outcome.result())); + else + return GetPornBatchDetectJobOutcome(outcome.error()); +} + +void ImmClient::getPornBatchDetectJobAsync(const GetPornBatchDetectJobRequest& request, const GetPornBatchDetectJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getPornBatchDetectJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetPornBatchDetectJobOutcomeCallable ImmClient::getPornBatchDetectJobCallable(const GetPornBatchDetectJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getPornBatchDetectJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectLogoOutcome ImmClient::detectLogo(const DetectLogoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectLogoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectLogoOutcome(DetectLogoResult(outcome.result())); + else + return DetectLogoOutcome(outcome.error()); +} + +void ImmClient::detectLogoAsync(const DetectLogoRequest& request, const DetectLogoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectLogo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectLogoOutcomeCallable ImmClient::detectLogoCallable(const DetectLogoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectLogo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectClothesOutcome ImmClient::detectClothes(const DetectClothesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectClothesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectClothesOutcome(DetectClothesResult(outcome.result())); + else + return DetectClothesOutcome(outcome.error()); +} + +void ImmClient::detectClothesAsync(const DetectClothesRequest& request, const DetectClothesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectClothes(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectClothesOutcomeCallable ImmClient::detectClothesCallable(const DetectClothesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectClothes(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListTagJobsOutcome ImmClient::listTagJobs(const ListTagJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagJobsOutcome(ListTagJobsResult(outcome.result())); + else + return ListTagJobsOutcome(outcome.error()); +} + +void ImmClient::listTagJobsAsync(const ListTagJobsRequest& request, const ListTagJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListTagJobsOutcomeCallable ImmClient::listTagJobsCallable(const ListTagJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DescribeRegionsOutcome ImmClient::describeRegions(const DescribeRegionsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeRegionsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeRegionsOutcome(DescribeRegionsResult(outcome.result())); + else + return DescribeRegionsOutcome(outcome.error()); +} + +void ImmClient::describeRegionsAsync(const DescribeRegionsRequest& request, const DescribeRegionsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeRegions(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DescribeRegionsOutcomeCallable ImmClient::describeRegionsCallable(const DescribeRegionsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeRegions(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteFaceSearchUserOutcome ImmClient::deleteFaceSearchUser(const DeleteFaceSearchUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceSearchUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceSearchUserOutcome(DeleteFaceSearchUserResult(outcome.result())); + else + return DeleteFaceSearchUserOutcome(outcome.error()); +} + +void ImmClient::deleteFaceSearchUserAsync(const DeleteFaceSearchUserRequest& request, const DeleteFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceSearchUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteFaceSearchUserOutcomeCallable ImmClient::deleteFaceSearchUserCallable(const DeleteFaceSearchUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceSearchUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetOfficeConversionTaskOutcome ImmClient::getOfficeConversionTask(const GetOfficeConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetOfficeConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetOfficeConversionTaskOutcome(GetOfficeConversionTaskResult(outcome.result())); + else + return GetOfficeConversionTaskOutcome(outcome.error()); +} + +void ImmClient::getOfficeConversionTaskAsync(const GetOfficeConversionTaskRequest& request, const GetOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getOfficeConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetOfficeConversionTaskOutcomeCallable ImmClient::getOfficeConversionTaskCallable(const GetOfficeConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getOfficeConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateTagSetOutcome ImmClient::createTagSet(const CreateTagSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateTagSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateTagSetOutcome(CreateTagSetResult(outcome.result())); + else + return CreateTagSetOutcome(outcome.error()); +} + +void ImmClient::createTagSetAsync(const CreateTagSetRequest& request, const CreateTagSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createTagSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateTagSetOutcomeCallable ImmClient::createTagSetCallable(const CreateTagSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createTagSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::RegistFaceOutcome ImmClient::registFace(const RegistFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RegistFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RegistFaceOutcome(RegistFaceResult(outcome.result())); + else + return RegistFaceOutcome(outcome.error()); +} + +void ImmClient::registFaceAsync(const RegistFaceRequest& request, const RegistFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, registFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::RegistFaceOutcomeCallable ImmClient::registFaceCallable(const RegistFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->registFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::FindSimilarFacesOutcome ImmClient::findSimilarFaces(const FindSimilarFacesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return FindSimilarFacesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return FindSimilarFacesOutcome(FindSimilarFacesResult(outcome.result())); + else + return FindSimilarFacesOutcome(outcome.error()); +} + +void ImmClient::findSimilarFacesAsync(const FindSimilarFacesRequest& request, const FindSimilarFacesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, findSimilarFaces(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::FindSimilarFacesOutcomeCallable ImmClient::findSimilarFacesCallable(const FindSimilarFacesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->findSimilarFaces(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetFaceSearchUserOutcome ImmClient::getFaceSearchUser(const GetFaceSearchUserRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetFaceSearchUserOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetFaceSearchUserOutcome(GetFaceSearchUserResult(outcome.result())); + else + return GetFaceSearchUserOutcome(outcome.error()); +} + +void ImmClient::getFaceSearchUserAsync(const GetFaceSearchUserRequest& request, const GetFaceSearchUserAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getFaceSearchUser(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetFaceSearchUserOutcomeCallable ImmClient::getFaceSearchUserCallable(const GetFaceSearchUserRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getFaceSearchUser(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteImageJobOutcome ImmClient::deleteImageJob(const DeleteImageJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteImageJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteImageJobOutcome(DeleteImageJobResult(outcome.result())); + else + return DeleteImageJobOutcome(outcome.error()); +} + +void ImmClient::deleteImageJobAsync(const DeleteImageJobRequest& request, const DeleteImageJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteImageJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteImageJobOutcomeCallable ImmClient::deleteImageJobCallable(const DeleteImageJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteImageJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateFaceSetOutcome ImmClient::createFaceSet(const CreateFaceSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateFaceSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateFaceSetOutcome(CreateFaceSetResult(outcome.result())); + else + return CreateFaceSetOutcome(outcome.error()); +} + +void ImmClient::createFaceSetAsync(const CreateFaceSetRequest& request, const CreateFaceSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createFaceSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateFaceSetOutcomeCallable ImmClient::createFaceSetCallable(const CreateFaceSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createFaceSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteFaceSearchGroupOutcome ImmClient::deleteFaceSearchGroup(const DeleteFaceSearchGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteFaceSearchGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteFaceSearchGroupOutcome(DeleteFaceSearchGroupResult(outcome.result())); + else + return DeleteFaceSearchGroupOutcome(outcome.error()); +} + +void ImmClient::deleteFaceSearchGroupAsync(const DeleteFaceSearchGroupRequest& request, const DeleteFaceSearchGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteFaceSearchGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteFaceSearchGroupOutcomeCallable ImmClient::deleteFaceSearchGroupCallable(const DeleteFaceSearchGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteFaceSearchGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::GetDocIndexOutcome ImmClient::getDocIndex(const GetDocIndexRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetDocIndexOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetDocIndexOutcome(GetDocIndexResult(outcome.result())); + else + return GetDocIndexOutcome(outcome.error()); +} + +void ImmClient::getDocIndexAsync(const GetDocIndexRequest& request, const GetDocIndexAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getDocIndex(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::GetDocIndexOutcomeCallable ImmClient::getDocIndexCallable(const GetDocIndexRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getDocIndex(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::IndexImageOutcome ImmClient::indexImage(const IndexImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return IndexImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return IndexImageOutcome(IndexImageResult(outcome.result())); + else + return IndexImageOutcome(outcome.error()); +} + +void ImmClient::indexImageAsync(const IndexImageRequest& request, const IndexImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, indexImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::IndexImageOutcomeCallable ImmClient::indexImageCallable(const IndexImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->indexImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DetectImageTextsOutcome ImmClient::detectImageTexts(const DetectImageTextsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageTextsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageTextsOutcome(DetectImageTextsResult(outcome.result())); + else + return DetectImageTextsOutcome(outcome.error()); +} + +void ImmClient::detectImageTextsAsync(const DetectImageTextsRequest& request, const DetectImageTextsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageTexts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DetectImageTextsOutcomeCallable ImmClient::detectImageTextsCallable(const DetectImageTextsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageTexts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListImageJobsOutcome ImmClient::listImageJobs(const ListImageJobsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListImageJobsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListImageJobsOutcome(ListImageJobsResult(outcome.result())); + else + return ListImageJobsOutcome(outcome.error()); +} + +void ImmClient::listImageJobsAsync(const ListImageJobsRequest& request, const ListImageJobsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listImageJobs(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListImageJobsOutcomeCallable ImmClient::listImageJobsCallable(const ListImageJobsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listImageJobs(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::CreateGroupFacesJobOutcome ImmClient::createGroupFacesJob(const CreateGroupFacesJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateGroupFacesJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateGroupFacesJobOutcome(CreateGroupFacesJobResult(outcome.result())); + else + return CreateGroupFacesJobOutcome(outcome.error()); +} + +void ImmClient::createGroupFacesJobAsync(const CreateGroupFacesJobRequest& request, const CreateGroupFacesJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createGroupFacesJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::CreateGroupFacesJobOutcomeCallable ImmClient::createGroupFacesJobCallable(const CreateGroupFacesJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createGroupFacesJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateImageOutcome ImmClient::updateImage(const UpdateImageRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateImageOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateImageOutcome(UpdateImageResult(outcome.result())); + else + return UpdateImageOutcome(outcome.error()); +} + +void ImmClient::updateImageAsync(const UpdateImageRequest& request, const UpdateImageAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateImage(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateImageOutcomeCallable ImmClient::updateImageCallable(const UpdateImageRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateImage(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListVideoTasksOutcome ImmClient::listVideoTasks(const ListVideoTasksRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListVideoTasksOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListVideoTasksOutcome(ListVideoTasksResult(outcome.result())); + else + return ListVideoTasksOutcome(outcome.error()); +} + +void ImmClient::listVideoTasksAsync(const ListVideoTasksRequest& request, const ListVideoTasksAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listVideoTasks(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListVideoTasksOutcomeCallable ImmClient::listVideoTasksCallable(const ListVideoTasksRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listVideoTasks(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateProjectOutcome ImmClient::updateProject(const UpdateProjectRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateProjectOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateProjectOutcome(UpdateProjectResult(outcome.result())); + else + return UpdateProjectOutcome(outcome.error()); +} + +void ImmClient::updateProjectAsync(const UpdateProjectRequest& request, const UpdateProjectAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateProject(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateProjectOutcomeCallable ImmClient::updateProjectCallable(const UpdateProjectRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateProject(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::DeleteVideoOutcome ImmClient::deleteVideo(const DeleteVideoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteVideoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteVideoOutcome(DeleteVideoResult(outcome.result())); + else + return DeleteVideoOutcome(outcome.error()); +} + +void ImmClient::deleteVideoAsync(const DeleteVideoRequest& request, const DeleteVideoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteVideo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::DeleteVideoOutcomeCallable ImmClient::deleteVideoCallable(const DeleteVideoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteVideo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::ListOfficeConversionTaskOutcome ImmClient::listOfficeConversionTask(const ListOfficeConversionTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListOfficeConversionTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListOfficeConversionTaskOutcome(ListOfficeConversionTaskResult(outcome.result())); + else + return ListOfficeConversionTaskOutcome(outcome.error()); +} + +void ImmClient::listOfficeConversionTaskAsync(const ListOfficeConversionTaskRequest& request, const ListOfficeConversionTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listOfficeConversionTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::ListOfficeConversionTaskOutcomeCallable ImmClient::listOfficeConversionTaskCallable(const ListOfficeConversionTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listOfficeConversionTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +ImmClient::UpdateSetOutcome ImmClient::updateSet(const UpdateSetRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSetOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSetOutcome(UpdateSetResult(outcome.result())); + else + return UpdateSetOutcome(outcome.error()); +} + +void ImmClient::updateSetAsync(const UpdateSetRequest& request, const UpdateSetAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSet(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +ImmClient::UpdateSetOutcomeCallable ImmClient::updateSetCallable(const UpdateSetRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSet(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + diff --git a/imm/src/model/CompareFaceRequest.cc b/imm/src/model/CompareFaceRequest.cc new file mode 100755 index 000000000..8ab25c754 --- /dev/null +++ b/imm/src/model/CompareFaceRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CompareFaceResult.cc b/imm/src/model/CompareFaceResult.cc new file mode 100755 index 000000000..9e504e46e --- /dev/null +++ b/imm/src/model/CompareFaceResult.cc @@ -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 +#include + +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::getCompareResult()const +{ + return compareResult_; +} + diff --git a/imm/src/model/CompareImageFacesRequest.cc b/imm/src/model/CompareImageFacesRequest.cc new file mode 100755 index 000000000..f2bd78cae --- /dev/null +++ b/imm/src/model/CompareImageFacesRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CompareImageFacesResult.cc b/imm/src/model/CompareImageFacesResult.cc new file mode 100755 index 000000000..80f1d10a2 --- /dev/null +++ b/imm/src/model/CompareImageFacesResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/ConvertOfficeFormatRequest.cc b/imm/src/model/ConvertOfficeFormatRequest.cc new file mode 100755 index 000000000..d3c266c7d --- /dev/null +++ b/imm/src/model/ConvertOfficeFormatRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/ConvertOfficeFormatResult.cc b/imm/src/model/ConvertOfficeFormatResult.cc new file mode 100755 index 000000000..25d09cfe3 --- /dev/null +++ b/imm/src/model/ConvertOfficeFormatResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/CreateCADConversionTaskRequest.cc b/imm/src/model/CreateCADConversionTaskRequest.cc new file mode 100755 index 000000000..3214373b5 --- /dev/null +++ b/imm/src/model/CreateCADConversionTaskRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CreateCADConversionTaskResult.cc b/imm/src/model/CreateCADConversionTaskResult.cc new file mode 100755 index 000000000..6fc1ca791 --- /dev/null +++ b/imm/src/model/CreateCADConversionTaskResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/CreateDocIndexTaskRequest.cc b/imm/src/model/CreateDocIndexTaskRequest.cc new file mode 100755 index 000000000..0fb96713a --- /dev/null +++ b/imm/src/model/CreateDocIndexTaskRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CreateDocIndexTaskResult.cc b/imm/src/model/CreateDocIndexTaskResult.cc new file mode 100755 index 000000000..35009c70b --- /dev/null +++ b/imm/src/model/CreateDocIndexTaskResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/CreateFaceSetRequest.cc b/imm/src/model/CreateFaceSetRequest.cc new file mode 100755 index 000000000..549d4f50b --- /dev/null +++ b/imm/src/model/CreateFaceSetRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CreateFaceSetResult.cc b/imm/src/model/CreateFaceSetResult.cc new file mode 100755 index 000000000..9e964ea50 --- /dev/null +++ b/imm/src/model/CreateFaceSetResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/CreateGroupFacesJobRequest.cc b/imm/src/model/CreateGroupFacesJobRequest.cc new file mode 100755 index 000000000..044ecf8b1 --- /dev/null +++ b/imm/src/model/CreateGroupFacesJobRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CreateGroupFacesJobResult.cc b/imm/src/model/CreateGroupFacesJobResult.cc new file mode 100755 index 000000000..b930ad5bd --- /dev/null +++ b/imm/src/model/CreateGroupFacesJobResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/CreateOfficeConversionTaskRequest.cc b/imm/src/model/CreateOfficeConversionTaskRequest.cc new file mode 100755 index 000000000..2bf7cb22e --- /dev/null +++ b/imm/src/model/CreateOfficeConversionTaskRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CreateOfficeConversionTaskResult.cc b/imm/src/model/CreateOfficeConversionTaskResult.cc new file mode 100755 index 000000000..a361c5280 --- /dev/null +++ b/imm/src/model/CreateOfficeConversionTaskResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/CreatePornBatchDetectJobRequest.cc b/imm/src/model/CreatePornBatchDetectJobRequest.cc new file mode 100755 index 000000000..290162397 --- /dev/null +++ b/imm/src/model/CreatePornBatchDetectJobRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CreatePornBatchDetectJobResult.cc b/imm/src/model/CreatePornBatchDetectJobResult.cc new file mode 100755 index 000000000..aace79c81 --- /dev/null +++ b/imm/src/model/CreatePornBatchDetectJobResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/CreateSetRequest.cc b/imm/src/model/CreateSetRequest.cc new file mode 100755 index 000000000..34164a6e0 --- /dev/null +++ b/imm/src/model/CreateSetRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CreateSetResult.cc b/imm/src/model/CreateSetResult.cc new file mode 100755 index 000000000..b904dfaec --- /dev/null +++ b/imm/src/model/CreateSetResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/CreateTagJobRequest.cc b/imm/src/model/CreateTagJobRequest.cc new file mode 100755 index 000000000..f8aff41ab --- /dev/null +++ b/imm/src/model/CreateTagJobRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CreateTagJobResult.cc b/imm/src/model/CreateTagJobResult.cc new file mode 100755 index 000000000..dafd418a6 --- /dev/null +++ b/imm/src/model/CreateTagJobResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/CreateTagSetRequest.cc b/imm/src/model/CreateTagSetRequest.cc new file mode 100755 index 000000000..9bba72d4d --- /dev/null +++ b/imm/src/model/CreateTagSetRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CreateTagSetResult.cc b/imm/src/model/CreateTagSetResult.cc new file mode 100755 index 000000000..8f93bf7c4 --- /dev/null +++ b/imm/src/model/CreateTagSetResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/CreateVideoAnalyseTaskRequest.cc b/imm/src/model/CreateVideoAnalyseTaskRequest.cc new file mode 100755 index 000000000..ac9dd9720 --- /dev/null +++ b/imm/src/model/CreateVideoAnalyseTaskRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/CreateVideoAnalyseTaskResult.cc b/imm/src/model/CreateVideoAnalyseTaskResult.cc new file mode 100755 index 000000000..18ce56b52 --- /dev/null +++ b/imm/src/model/CreateVideoAnalyseTaskResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/DeleteDocIndexRequest.cc b/imm/src/model/DeleteDocIndexRequest.cc new file mode 100755 index 000000000..0f60acd82 --- /dev/null +++ b/imm/src/model/DeleteDocIndexRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteDocIndexResult.cc b/imm/src/model/DeleteDocIndexResult.cc new file mode 100755 index 000000000..ec2df0012 --- /dev/null +++ b/imm/src/model/DeleteDocIndexResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteFaceJobRequest.cc b/imm/src/model/DeleteFaceJobRequest.cc new file mode 100755 index 000000000..5b2026609 --- /dev/null +++ b/imm/src/model/DeleteFaceJobRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteFaceJobResult.cc b/imm/src/model/DeleteFaceJobResult.cc new file mode 100755 index 000000000..c5bf71bdf --- /dev/null +++ b/imm/src/model/DeleteFaceJobResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteFaceSearchGroupRequest.cc b/imm/src/model/DeleteFaceSearchGroupRequest.cc new file mode 100755 index 000000000..0a06539e4 --- /dev/null +++ b/imm/src/model/DeleteFaceSearchGroupRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteFaceSearchGroupResult.cc b/imm/src/model/DeleteFaceSearchGroupResult.cc new file mode 100755 index 000000000..0fb359551 --- /dev/null +++ b/imm/src/model/DeleteFaceSearchGroupResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteFaceSearchImageByIdRequest.cc b/imm/src/model/DeleteFaceSearchImageByIdRequest.cc new file mode 100755 index 000000000..cb99364fc --- /dev/null +++ b/imm/src/model/DeleteFaceSearchImageByIdRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteFaceSearchImageByIdResult.cc b/imm/src/model/DeleteFaceSearchImageByIdResult.cc new file mode 100755 index 000000000..f1108406f --- /dev/null +++ b/imm/src/model/DeleteFaceSearchImageByIdResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteFaceSearchUserRequest.cc b/imm/src/model/DeleteFaceSearchUserRequest.cc new file mode 100755 index 000000000..cdb01e077 --- /dev/null +++ b/imm/src/model/DeleteFaceSearchUserRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteFaceSearchUserResult.cc b/imm/src/model/DeleteFaceSearchUserResult.cc new file mode 100755 index 000000000..e9cdd08e5 --- /dev/null +++ b/imm/src/model/DeleteFaceSearchUserResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteImageJobRequest.cc b/imm/src/model/DeleteImageJobRequest.cc new file mode 100755 index 000000000..a11169bbb --- /dev/null +++ b/imm/src/model/DeleteImageJobRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteImageJobResult.cc b/imm/src/model/DeleteImageJobResult.cc new file mode 100755 index 000000000..8cc5781ee --- /dev/null +++ b/imm/src/model/DeleteImageJobResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteImageRequest.cc b/imm/src/model/DeleteImageRequest.cc new file mode 100755 index 000000000..b4b68be8c --- /dev/null +++ b/imm/src/model/DeleteImageRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteImageResult.cc b/imm/src/model/DeleteImageResult.cc new file mode 100755 index 000000000..3c9a754a3 --- /dev/null +++ b/imm/src/model/DeleteImageResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/DeleteOfficeConversionTaskRequest.cc b/imm/src/model/DeleteOfficeConversionTaskRequest.cc new file mode 100755 index 000000000..877e4f01b --- /dev/null +++ b/imm/src/model/DeleteOfficeConversionTaskRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteOfficeConversionTaskResult.cc b/imm/src/model/DeleteOfficeConversionTaskResult.cc new file mode 100755 index 000000000..6de84a3e9 --- /dev/null +++ b/imm/src/model/DeleteOfficeConversionTaskResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeletePhotoProcessTaskRequest.cc b/imm/src/model/DeletePhotoProcessTaskRequest.cc new file mode 100755 index 000000000..f5a4bb814 --- /dev/null +++ b/imm/src/model/DeletePhotoProcessTaskRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeletePhotoProcessTaskResult.cc b/imm/src/model/DeletePhotoProcessTaskResult.cc new file mode 100755 index 000000000..6a11154ff --- /dev/null +++ b/imm/src/model/DeletePhotoProcessTaskResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeletePornBatchDetectJobRequest.cc b/imm/src/model/DeletePornBatchDetectJobRequest.cc new file mode 100755 index 000000000..3a34638c7 --- /dev/null +++ b/imm/src/model/DeletePornBatchDetectJobRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeletePornBatchDetectJobResult.cc b/imm/src/model/DeletePornBatchDetectJobResult.cc new file mode 100755 index 000000000..a4b451623 --- /dev/null +++ b/imm/src/model/DeletePornBatchDetectJobResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteProjectRequest.cc b/imm/src/model/DeleteProjectRequest.cc new file mode 100755 index 000000000..566193c91 --- /dev/null +++ b/imm/src/model/DeleteProjectRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteProjectResult.cc b/imm/src/model/DeleteProjectResult.cc new file mode 100755 index 000000000..50536ad74 --- /dev/null +++ b/imm/src/model/DeleteProjectResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteSetRequest.cc b/imm/src/model/DeleteSetRequest.cc new file mode 100755 index 000000000..bcc580046 --- /dev/null +++ b/imm/src/model/DeleteSetRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteSetResult.cc b/imm/src/model/DeleteSetResult.cc new file mode 100755 index 000000000..bc84c4d0b --- /dev/null +++ b/imm/src/model/DeleteSetResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/DeleteTagByNameRequest.cc b/imm/src/model/DeleteTagByNameRequest.cc new file mode 100755 index 000000000..8b89f497b --- /dev/null +++ b/imm/src/model/DeleteTagByNameRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteTagByNameResult.cc b/imm/src/model/DeleteTagByNameResult.cc new file mode 100755 index 000000000..237ff71b8 --- /dev/null +++ b/imm/src/model/DeleteTagByNameResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteTagByUrlRequest.cc b/imm/src/model/DeleteTagByUrlRequest.cc new file mode 100755 index 000000000..231e00c4b --- /dev/null +++ b/imm/src/model/DeleteTagByUrlRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteTagByUrlResult.cc b/imm/src/model/DeleteTagByUrlResult.cc new file mode 100755 index 000000000..8d1d5a2c7 --- /dev/null +++ b/imm/src/model/DeleteTagByUrlResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteTagJobRequest.cc b/imm/src/model/DeleteTagJobRequest.cc new file mode 100755 index 000000000..1b1f33b52 --- /dev/null +++ b/imm/src/model/DeleteTagJobRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteTagJobResult.cc b/imm/src/model/DeleteTagJobResult.cc new file mode 100755 index 000000000..e7a78da1e --- /dev/null +++ b/imm/src/model/DeleteTagJobResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteTagSetRequest.cc b/imm/src/model/DeleteTagSetRequest.cc new file mode 100755 index 000000000..7a8b73cc1 --- /dev/null +++ b/imm/src/model/DeleteTagSetRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteTagSetResult.cc b/imm/src/model/DeleteTagSetResult.cc new file mode 100755 index 000000000..88a7de64b --- /dev/null +++ b/imm/src/model/DeleteTagSetResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DeleteVideoRequest.cc b/imm/src/model/DeleteVideoRequest.cc new file mode 100755 index 000000000..b8f1c896d --- /dev/null +++ b/imm/src/model/DeleteVideoRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteVideoResult.cc b/imm/src/model/DeleteVideoResult.cc new file mode 100755 index 000000000..fd2a0474d --- /dev/null +++ b/imm/src/model/DeleteVideoResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/DeleteVideoTaskRequest.cc b/imm/src/model/DeleteVideoTaskRequest.cc new file mode 100755 index 000000000..c68f8d50e --- /dev/null +++ b/imm/src/model/DeleteVideoTaskRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DeleteVideoTaskResult.cc b/imm/src/model/DeleteVideoTaskResult.cc new file mode 100755 index 000000000..7341b65a2 --- /dev/null +++ b/imm/src/model/DeleteVideoTaskResult.cc @@ -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 +#include + +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()); + +} + diff --git a/imm/src/model/DescribeRegionsRequest.cc b/imm/src/model/DescribeRegionsRequest.cc new file mode 100755 index 000000000..c14979b34 --- /dev/null +++ b/imm/src/model/DescribeRegionsRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DescribeRegionsResult.cc b/imm/src/model/DescribeRegionsResult.cc new file mode 100755 index 000000000..a984356c3 --- /dev/null +++ b/imm/src/model/DescribeRegionsResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/DetectClothesRequest.cc b/imm/src/model/DetectClothesRequest.cc new file mode 100755 index 000000000..9794d919d --- /dev/null +++ b/imm/src/model/DetectClothesRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DetectClothesResult.cc b/imm/src/model/DetectClothesResult.cc new file mode 100755 index 000000000..8aa6a1c95 --- /dev/null +++ b/imm/src/model/DetectClothesResult.cc @@ -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 +#include + +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::getSuccessDetails()const +{ + return successDetails_; +} + +std::vector DetectClothesResult::getSrcUris()const +{ + return srcUris_; +} + +std::vector DetectClothesResult::getFailDetails()const +{ + return failDetails_; +} + diff --git a/imm/src/model/DetectImageCelebrityRequest.cc b/imm/src/model/DetectImageCelebrityRequest.cc new file mode 100755 index 000000000..52c56287e --- /dev/null +++ b/imm/src/model/DetectImageCelebrityRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DetectImageCelebrityResult.cc b/imm/src/model/DetectImageCelebrityResult.cc new file mode 100755 index 000000000..d87f73cba --- /dev/null +++ b/imm/src/model/DetectImageCelebrityResult.cc @@ -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 +#include + +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::getCelebrity()const +{ + return celebrity_; +} + +std::string DetectImageCelebrityResult::getImageUri()const +{ + return imageUri_; +} + diff --git a/imm/src/model/DetectImageFacesRequest.cc b/imm/src/model/DetectImageFacesRequest.cc new file mode 100755 index 000000000..8ba59b1ca --- /dev/null +++ b/imm/src/model/DetectImageFacesRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DetectImageFacesResult.cc b/imm/src/model/DetectImageFacesResult.cc new file mode 100755 index 000000000..1362fa866 --- /dev/null +++ b/imm/src/model/DetectImageFacesResult.cc @@ -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 +#include + +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::getFaces()const +{ + return faces_; +} + diff --git a/imm/src/model/DetectImageLogosRequest.cc b/imm/src/model/DetectImageLogosRequest.cc new file mode 100755 index 000000000..be8e53c2b --- /dev/null +++ b/imm/src/model/DetectImageLogosRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DetectImageLogosResult.cc b/imm/src/model/DetectImageLogosResult.cc new file mode 100755 index 000000000..082703b3b --- /dev/null +++ b/imm/src/model/DetectImageLogosResult.cc @@ -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 +#include + +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::getLogos()const +{ + return logos_; +} + +std::string DetectImageLogosResult::getImageUri()const +{ + return imageUri_; +} + diff --git a/imm/src/model/DetectImageTagsRequest.cc b/imm/src/model/DetectImageTagsRequest.cc new file mode 100755 index 000000000..971cd3b97 --- /dev/null +++ b/imm/src/model/DetectImageTagsRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DetectImageTagsResult.cc b/imm/src/model/DetectImageTagsResult.cc new file mode 100755 index 000000000..79df5e474 --- /dev/null +++ b/imm/src/model/DetectImageTagsResult.cc @@ -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 +#include + +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::getTags()const +{ + return tags_; +} + diff --git a/imm/src/model/DetectImageTextsRequest.cc b/imm/src/model/DetectImageTextsRequest.cc new file mode 100755 index 000000000..c40d083ff --- /dev/null +++ b/imm/src/model/DetectImageTextsRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DetectImageTextsResult.cc b/imm/src/model/DetectImageTextsResult.cc new file mode 100755 index 000000000..cd83ec92c --- /dev/null +++ b/imm/src/model/DetectImageTextsResult.cc @@ -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 +#include + +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::getOCR()const +{ + return oCR_; +} + diff --git a/imm/src/model/DetectLogoRequest.cc b/imm/src/model/DetectLogoRequest.cc new file mode 100755 index 000000000..638147109 --- /dev/null +++ b/imm/src/model/DetectLogoRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DetectLogoResult.cc b/imm/src/model/DetectLogoResult.cc new file mode 100755 index 000000000..525d1d57f --- /dev/null +++ b/imm/src/model/DetectLogoResult.cc @@ -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 +#include + +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::getSuccessDetails()const +{ + return successDetails_; +} + +std::vector DetectLogoResult::getSrcUris()const +{ + return srcUris_; +} + +std::vector DetectLogoResult::getFailDetails()const +{ + return failDetails_; +} + diff --git a/imm/src/model/DetectQRCodesRequest.cc b/imm/src/model/DetectQRCodesRequest.cc new file mode 100755 index 000000000..4cff4febb --- /dev/null +++ b/imm/src/model/DetectQRCodesRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DetectQRCodesResult.cc b/imm/src/model/DetectQRCodesResult.cc new file mode 100755 index 000000000..dbad8bff2 --- /dev/null +++ b/imm/src/model/DetectQRCodesResult.cc @@ -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 +#include + +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::getSuccessDetails()const +{ + return successDetails_; +} + +std::vector DetectQRCodesResult::getFailDetails()const +{ + return failDetails_; +} + diff --git a/imm/src/model/DetectTagRequest.cc b/imm/src/model/DetectTagRequest.cc new file mode 100755 index 000000000..058b426aa --- /dev/null +++ b/imm/src/model/DetectTagRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/DetectTagResult.cc b/imm/src/model/DetectTagResult.cc new file mode 100755 index 000000000..faa42353a --- /dev/null +++ b/imm/src/model/DetectTagResult.cc @@ -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 +#include + +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::getSuccessDetails()const +{ + return successDetails_; +} + +std::string DetectTagResult::getSuccessNum()const +{ + return successNum_; +} + +std::vector DetectTagResult::getFailDetails()const +{ + return failDetails_; +} + diff --git a/imm/src/model/FindImagesByTagNamesRequest.cc b/imm/src/model/FindImagesByTagNamesRequest.cc new file mode 100755 index 000000000..cc1b35b45 --- /dev/null +++ b/imm/src/model/FindImagesByTagNamesRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/FindImagesByTagNamesResult.cc b/imm/src/model/FindImagesByTagNamesResult.cc new file mode 100755 index 000000000..3082be45d --- /dev/null +++ b/imm/src/model/FindImagesByTagNamesResult.cc @@ -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 +#include + +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::getImages()const +{ + return images_; +} + +std::string FindImagesByTagNamesResult::getSetId()const +{ + return setId_; +} + +std::string FindImagesByTagNamesResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/FindImagesRequest.cc b/imm/src/model/FindImagesRequest.cc new file mode 100755 index 000000000..7dd85bb92 --- /dev/null +++ b/imm/src/model/FindImagesRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/FindImagesResult.cc b/imm/src/model/FindImagesResult.cc new file mode 100755 index 000000000..348f45e7a --- /dev/null +++ b/imm/src/model/FindImagesResult.cc @@ -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 +#include + +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::getImages()const +{ + return images_; +} + +std::string FindImagesResult::getSetId()const +{ + return setId_; +} + +std::string FindImagesResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/FindSimilarFacesRequest.cc b/imm/src/model/FindSimilarFacesRequest.cc new file mode 100755 index 000000000..3d663ff4f --- /dev/null +++ b/imm/src/model/FindSimilarFacesRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/FindSimilarFacesResult.cc b/imm/src/model/FindSimilarFacesResult.cc new file mode 100755 index 000000000..1eededf31 --- /dev/null +++ b/imm/src/model/FindSimilarFacesResult.cc @@ -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 +#include + +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::getFaces()const +{ + return faces_; +} + diff --git a/imm/src/model/GetDocIndexRequest.cc b/imm/src/model/GetDocIndexRequest.cc new file mode 100755 index 000000000..808306e91 --- /dev/null +++ b/imm/src/model/GetDocIndexRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/GetDocIndexResult.cc b/imm/src/model/GetDocIndexResult.cc new file mode 100755 index 000000000..c8ada2b1e --- /dev/null +++ b/imm/src/model/GetDocIndexResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/GetDocIndexTaskRequest.cc b/imm/src/model/GetDocIndexTaskRequest.cc new file mode 100755 index 000000000..eaff95643 --- /dev/null +++ b/imm/src/model/GetDocIndexTaskRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/GetDocIndexTaskResult.cc b/imm/src/model/GetDocIndexTaskResult.cc new file mode 100755 index 000000000..b79b4f750 --- /dev/null +++ b/imm/src/model/GetDocIndexTaskResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/GetFaceSearchGroupRequest.cc b/imm/src/model/GetFaceSearchGroupRequest.cc new file mode 100755 index 000000000..ad38af2a6 --- /dev/null +++ b/imm/src/model/GetFaceSearchGroupRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/GetFaceSearchGroupResult.cc b/imm/src/model/GetFaceSearchGroupResult.cc new file mode 100755 index 000000000..7607d408b --- /dev/null +++ b/imm/src/model/GetFaceSearchGroupResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/GetFaceSearchImageRequest.cc b/imm/src/model/GetFaceSearchImageRequest.cc new file mode 100755 index 000000000..c2785930d --- /dev/null +++ b/imm/src/model/GetFaceSearchImageRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/GetFaceSearchImageResult.cc b/imm/src/model/GetFaceSearchImageResult.cc new file mode 100755 index 000000000..7b042423f --- /dev/null +++ b/imm/src/model/GetFaceSearchImageResult.cc @@ -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 +#include + +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 GetFaceSearchImageResult::getAxis()const +{ + return axis_; +} + +int GetFaceSearchImageResult::getAge()const +{ + return age_; +} + +std::string GetFaceSearchImageResult::getImageMd5()const +{ + return imageMd5_; +} + diff --git a/imm/src/model/GetFaceSearchUserRequest.cc b/imm/src/model/GetFaceSearchUserRequest.cc new file mode 100755 index 000000000..d183760f7 --- /dev/null +++ b/imm/src/model/GetFaceSearchUserRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/GetFaceSearchUserResult.cc b/imm/src/model/GetFaceSearchUserResult.cc new file mode 100755 index 000000000..b7a704a9e --- /dev/null +++ b/imm/src/model/GetFaceSearchUserResult.cc @@ -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 +#include + +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_; +} + diff --git a/imm/src/model/GetImageJobRequest.cc b/imm/src/model/GetImageJobRequest.cc new file mode 100755 index 000000000..156eb366e --- /dev/null +++ b/imm/src/model/GetImageJobRequest.cc @@ -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 + +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); +} + diff --git a/imm/src/model/GetImageJobResult.cc b/imm/src/model/GetImageJobResult.cc new file mode 100755 index 000000000..284f57716 --- /dev/null +++ b/imm/src/model/GetImageJobResult.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetImageJobResult::GetImageJobResult() : + ServiceResult() +{} + +GetImageJobResult::GetImageJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetImageJobResult::~GetImageJobResult() +{} + +void GetImageJobResult::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["JobType"].isNull()) + jobType_ = value["JobType"].asString(); + if(!value["Parameters"].isNull()) + parameters_ = value["Parameters"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["NotifyEndpoint"].isNull()) + notifyEndpoint_ = value["NotifyEndpoint"].asString(); + if(!value["NotifyTopicName"].isNull()) + notifyTopicName_ = value["NotifyTopicName"].asString(); + if(!value["Progress"].isNull()) + progress_ = std::stoi(value["Progress"].asString()); + +} + +std::string GetImageJobResult::getStatus()const +{ + return status_; +} + +std::string GetImageJobResult::getNotifyEndpoint()const +{ + return notifyEndpoint_; +} + +int GetImageJobResult::getProgress()const +{ + return progress_; +} + +std::string GetImageJobResult::getJobType()const +{ + return jobType_; +} + +std::string GetImageJobResult::getParameters()const +{ + return parameters_; +} + +std::string GetImageJobResult::getEndTime()const +{ + return endTime_; +} + +std::string GetImageJobResult::getStartTime()const +{ + return startTime_; +} + +std::string GetImageJobResult::getNotifyTopicName()const +{ + return notifyTopicName_; +} + +std::string GetImageJobResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetImageJobResult::getJobId()const +{ + return jobId_; +} + +std::string GetImageJobResult::getResult()const +{ + return result_; +} + diff --git a/imm/src/model/GetImageRequest.cc b/imm/src/model/GetImageRequest.cc new file mode 100755 index 000000000..ac8866480 --- /dev/null +++ b/imm/src/model/GetImageRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::GetImageRequest; + +GetImageRequest::GetImageRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetImage") +{} + +GetImageRequest::~GetImageRequest() +{} + +std::string GetImageRequest::getImageUri()const +{ + return imageUri_; +} + +void GetImageRequest::setImageUri(const std::string& imageUri) +{ + imageUri_ = imageUri; + setParameter("ImageUri", imageUri); +} + +std::string GetImageRequest::getRegionId()const +{ + return regionId_; +} + +void GetImageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetImageRequest::getProject()const +{ + return project_; +} + +void GetImageRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string GetImageRequest::getSetId()const +{ + return setId_; +} + +void GetImageRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string GetImageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetImageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/GetImageResult.cc b/imm/src/model/GetImageResult.cc new file mode 100755 index 000000000..99ae355e7 --- /dev/null +++ b/imm/src/model/GetImageResult.cc @@ -0,0 +1,417 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetImageResult::GetImageResult() : + ServiceResult() +{} + +GetImageResult::GetImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetImageResult::~GetImageResult() +{} + +void GetImageResult::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 = 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["GroupId"].isNull()) + facesObject.groupId = value["GroupId"].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); + } + 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); + } + 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(); + tags_.push_back(tagsObject); + } + 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["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); + if(!value["RemarksA"].isNull()) + remarksA_ = value["RemarksA"].asString(); + if(!value["RemarksB"].isNull()) + remarksB_ = value["RemarksB"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["ImageWidth"].isNull()) + imageWidth_ = std::stoi(value["ImageWidth"].asString()); + if(!value["ImageHeight"].isNull()) + imageHeight_ = std::stoi(value["ImageHeight"].asString()); + if(!value["ImageFormat"].isNull()) + imageFormat_ = value["ImageFormat"].asString(); + if(!value["Exif"].isNull()) + exif_ = value["Exif"].asString(); + if(!value["FileSize"].isNull()) + fileSize_ = std::stoi(value["FileSize"].asString()); + if(!value["ImageTime"].isNull()) + imageTime_ = value["ImageTime"].asString(); + if(!value["Orientation"].isNull()) + orientation_ = value["Orientation"].asString(); + if(!value["SourceType"].isNull()) + sourceType_ = value["SourceType"].asString(); + if(!value["SourceUri"].isNull()) + sourceUri_ = value["SourceUri"].asString(); + if(!value["SourcePosition"].isNull()) + sourcePosition_ = value["SourcePosition"].asString(); + if(!value["FacesStatus"].isNull()) + facesStatus_ = value["FacesStatus"].asString(); + if(!value["FacesModifyTime"].isNull()) + facesModifyTime_ = value["FacesModifyTime"].asString(); + if(!value["Location"].isNull()) + location_ = value["Location"].asString(); + if(!value["OCRStatus"].isNull()) + oCRStatus_ = value["OCRStatus"].asString(); + if(!value["OCRModifyTime"].isNull()) + oCRModifyTime_ = value["OCRModifyTime"].asString(); + if(!value["OCRFailReason"].isNull()) + oCRFailReason_ = value["OCRFailReason"].asString(); + if(!value["FacesFailReason"].isNull()) + facesFailReason_ = value["FacesFailReason"].asString(); + if(!value["TagsFailReason"].isNull()) + tagsFailReason_ = value["TagsFailReason"].asString(); + if(!value["TagsModifyTime"].isNull()) + tagsModifyTime_ = value["TagsModifyTime"].asString(); + if(!value["CelebrityStatus"].isNull()) + celebrityStatus_ = value["CelebrityStatus"].asString(); + if(!value["CelebrityModifyTime"].isNull()) + celebrityModifyTime_ = value["CelebrityModifyTime"].asString(); + if(!value["CelebrityFailReason"].isNull()) + celebrityFailReason_ = value["CelebrityFailReason"].asString(); + if(!value["TagsStatus"].isNull()) + tagsStatus_ = value["TagsStatus"].asString(); + if(!value["RemarksC"].isNull()) + remarksC_ = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + remarksD_ = value["RemarksD"].asString(); + if(!value["ExternalId"].isNull()) + externalId_ = value["ExternalId"].asString(); + +} + +std::string GetImageResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string GetImageResult::getSourceType()const +{ + return sourceType_; +} + +std::string GetImageResult::getSourceUri()const +{ + return sourceUri_; +} + +std::string GetImageResult::getFacesFailReason()const +{ + return facesFailReason_; +} + +std::string GetImageResult::getRemarksA()const +{ + return remarksA_; +} + +std::string GetImageResult::getRemarksB()const +{ + return remarksB_; +} + +std::string GetImageResult::getImageFormat()const +{ + return imageFormat_; +} + +std::string GetImageResult::getTagsFailReason()const +{ + return tagsFailReason_; +} + +std::string GetImageResult::getExif()const +{ + return exif_; +} + +std::string GetImageResult::getFacesModifyTime()const +{ + return facesModifyTime_; +} + +std::string GetImageResult::getRemarksC()const +{ + return remarksC_; +} + +std::string GetImageResult::getRemarksD()const +{ + return remarksD_; +} + +int GetImageResult::getImageWidth()const +{ + return imageWidth_; +} + +std::vector GetImageResult::getCelebrity()const +{ + return celebrity_; +} + +std::string GetImageResult::getSourcePosition()const +{ + return sourcePosition_; +} + +std::vector GetImageResult::getFaces()const +{ + return faces_; +} + +std::vector GetImageResult::getTags()const +{ + return tags_; +} + +std::string GetImageResult::getFacesStatus()const +{ + return facesStatus_; +} + +std::string GetImageResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetImageResult::getTagsModifyTime()const +{ + return tagsModifyTime_; +} + +std::string GetImageResult::getExternalId()const +{ + return externalId_; +} + +std::string GetImageResult::getImageUri()const +{ + return imageUri_; +} + +std::string GetImageResult::getOrientation()const +{ + return orientation_; +} + +std::string GetImageResult::getOCRStatus()const +{ + return oCRStatus_; +} + +std::string GetImageResult::getOCRModifyTime()const +{ + return oCRModifyTime_; +} + +std::string GetImageResult::getImageTime()const +{ + return imageTime_; +} + +std::string GetImageResult::getCelebrityModifyTime()const +{ + return celebrityModifyTime_; +} + +int GetImageResult::getImageHeight()const +{ + return imageHeight_; +} + +std::string GetImageResult::getTagsStatus()const +{ + return tagsStatus_; +} + +std::string GetImageResult::getOCRFailReason()const +{ + return oCRFailReason_; +} + +std::string GetImageResult::getCelebrityFailReason()const +{ + return celebrityFailReason_; +} + +std::string GetImageResult::getSetId()const +{ + return setId_; +} + +std::string GetImageResult::getCelebrityStatus()const +{ + return celebrityStatus_; +} + +std::vector GetImageResult::getOCR()const +{ + return oCR_; +} + +int GetImageResult::getFileSize()const +{ + return fileSize_; +} + +std::string GetImageResult::getLocation()const +{ + return location_; +} + diff --git a/imm/src/model/GetOfficeConversionTaskRequest.cc b/imm/src/model/GetOfficeConversionTaskRequest.cc new file mode 100755 index 000000000..33f81180a --- /dev/null +++ b/imm/src/model/GetOfficeConversionTaskRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::GetOfficeConversionTaskRequest; + +GetOfficeConversionTaskRequest::GetOfficeConversionTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetOfficeConversionTask") +{} + +GetOfficeConversionTaskRequest::~GetOfficeConversionTaskRequest() +{} + +std::string GetOfficeConversionTaskRequest::getRegionId()const +{ + return regionId_; +} + +void GetOfficeConversionTaskRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetOfficeConversionTaskRequest::getProject()const +{ + return project_; +} + +void GetOfficeConversionTaskRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string GetOfficeConversionTaskRequest::getTaskId()const +{ + return taskId_; +} + +void GetOfficeConversionTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + +std::string GetOfficeConversionTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetOfficeConversionTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/GetOfficeConversionTaskResult.cc b/imm/src/model/GetOfficeConversionTaskResult.cc new file mode 100755 index 000000000..5156e1c8f --- /dev/null +++ b/imm/src/model/GetOfficeConversionTaskResult.cc @@ -0,0 +1,144 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetOfficeConversionTaskResult::GetOfficeConversionTaskResult() : + ServiceResult() +{} + +GetOfficeConversionTaskResult::GetOfficeConversionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetOfficeConversionTaskResult::~GetOfficeConversionTaskResult() +{} + +void GetOfficeConversionTaskResult::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["TgtType"].isNull()) + tgtType_ = value["TgtType"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Percent"].isNull()) + percent_ = std::stoi(value["Percent"].asString()); + if(!value["PageCount"].isNull()) + pageCount_ = std::stoi(value["PageCount"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["TgtUri"].isNull()) + tgtUri_ = value["TgtUri"].asString(); + if(!value["ImageSpec"].isNull()) + imageSpec_ = value["ImageSpec"].asString(); + if(!value["NotifyTopicName"].isNull()) + notifyTopicName_ = value["NotifyTopicName"].asString(); + if(!value["NotifyEndpoint"].isNull()) + notifyEndpoint_ = value["NotifyEndpoint"].asString(); + if(!value["ExternalID"].isNull()) + externalID_ = value["ExternalID"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["FinishTime"].isNull()) + finishTime_ = value["FinishTime"].asString(); + if(!value["SrcUri"].isNull()) + srcUri_ = value["SrcUri"].asString(); + +} + +std::string GetOfficeConversionTaskResult::getStatus()const +{ + return status_; +} + +GetOfficeConversionTaskResult::FailDetail GetOfficeConversionTaskResult::getFailDetail()const +{ + return failDetail_; +} + +std::string GetOfficeConversionTaskResult::getTgtType()const +{ + return tgtType_; +} + +std::string GetOfficeConversionTaskResult::getTaskId()const +{ + return taskId_; +} + +int GetOfficeConversionTaskResult::getPercent()const +{ + return percent_; +} + +std::string GetOfficeConversionTaskResult::getExternalID()const +{ + return externalID_; +} + +std::string GetOfficeConversionTaskResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetOfficeConversionTaskResult::getImageSpec()const +{ + return imageSpec_; +} + +std::string GetOfficeConversionTaskResult::getNotifyEndpoint()const +{ + return notifyEndpoint_; +} + +std::string GetOfficeConversionTaskResult::getTgtUri()const +{ + return tgtUri_; +} + +int GetOfficeConversionTaskResult::getPageCount()const +{ + return pageCount_; +} + +std::string GetOfficeConversionTaskResult::getFinishTime()const +{ + return finishTime_; +} + +std::string GetOfficeConversionTaskResult::getNotifyTopicName()const +{ + return notifyTopicName_; +} + +std::string GetOfficeConversionTaskResult::getSrcUri()const +{ + return srcUri_; +} + diff --git a/imm/src/model/GetPhotoProcessTaskRequest.cc b/imm/src/model/GetPhotoProcessTaskRequest.cc new file mode 100755 index 000000000..5d75ca804 --- /dev/null +++ b/imm/src/model/GetPhotoProcessTaskRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::GetPhotoProcessTaskRequest; + +GetPhotoProcessTaskRequest::GetPhotoProcessTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetPhotoProcessTask") +{} + +GetPhotoProcessTaskRequest::~GetPhotoProcessTaskRequest() +{} + +std::string GetPhotoProcessTaskRequest::getRegionId()const +{ + return regionId_; +} + +void GetPhotoProcessTaskRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetPhotoProcessTaskRequest::getProject()const +{ + return project_; +} + +void GetPhotoProcessTaskRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string GetPhotoProcessTaskRequest::getTaskId()const +{ + return taskId_; +} + +void GetPhotoProcessTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + +std::string GetPhotoProcessTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetPhotoProcessTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/GetPhotoProcessTaskResult.cc b/imm/src/model/GetPhotoProcessTaskResult.cc new file mode 100755 index 000000000..29d94fa95 --- /dev/null +++ b/imm/src/model/GetPhotoProcessTaskResult.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetPhotoProcessTaskResult::GetPhotoProcessTaskResult() : + ServiceResult() +{} + +GetPhotoProcessTaskResult::GetPhotoProcessTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPhotoProcessTaskResult::~GetPhotoProcessTaskResult() +{} + +void GetPhotoProcessTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["SrcUri"].isNull()) + srcUri_ = value["SrcUri"].asString(); + if(!value["TgtUri"].isNull()) + tgtUri_ = value["TgtUri"].asString(); + if(!value["Style"].isNull()) + style_ = value["Style"].asString(); + if(!value["NotifyTopicName"].isNull()) + notifyTopicName_ = value["NotifyTopicName"].asString(); + if(!value["NotifyEndpoint"].isNull()) + notifyEndpoint_ = value["NotifyEndpoint"].asString(); + if(!value["ExternalID"].isNull()) + externalID_ = value["ExternalID"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["FinishTime"].isNull()) + finishTime_ = value["FinishTime"].asString(); + if(!value["Percent"].isNull()) + percent_ = std::stoi(value["Percent"].asString()); + +} + +std::string GetPhotoProcessTaskResult::getStatus()const +{ + return status_; +} + +std::string GetPhotoProcessTaskResult::getNotifyEndpoint()const +{ + return notifyEndpoint_; +} + +std::string GetPhotoProcessTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string GetPhotoProcessTaskResult::getTgtUri()const +{ + return tgtUri_; +} + +std::string GetPhotoProcessTaskResult::getFinishTime()const +{ + return finishTime_; +} + +int GetPhotoProcessTaskResult::getPercent()const +{ + return percent_; +} + +std::string GetPhotoProcessTaskResult::getExternalID()const +{ + return externalID_; +} + +std::string GetPhotoProcessTaskResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetPhotoProcessTaskResult::getStyle()const +{ + return style_; +} + +std::string GetPhotoProcessTaskResult::getNotifyTopicName()const +{ + return notifyTopicName_; +} + +std::string GetPhotoProcessTaskResult::getSrcUri()const +{ + return srcUri_; +} + diff --git a/imm/src/model/GetPornBatchDetectJobRequest.cc b/imm/src/model/GetPornBatchDetectJobRequest.cc new file mode 100755 index 000000000..f5386b871 --- /dev/null +++ b/imm/src/model/GetPornBatchDetectJobRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::GetPornBatchDetectJobRequest; + +GetPornBatchDetectJobRequest::GetPornBatchDetectJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetPornBatchDetectJob") +{} + +GetPornBatchDetectJobRequest::~GetPornBatchDetectJobRequest() +{} + +std::string GetPornBatchDetectJobRequest::getJobId()const +{ + return jobId_; +} + +void GetPornBatchDetectJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string GetPornBatchDetectJobRequest::getRegionId()const +{ + return regionId_; +} + +void GetPornBatchDetectJobRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetPornBatchDetectJobRequest::getProject()const +{ + return project_; +} + +void GetPornBatchDetectJobRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string GetPornBatchDetectJobRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetPornBatchDetectJobRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/GetPornBatchDetectJobResult.cc b/imm/src/model/GetPornBatchDetectJobResult.cc new file mode 100755 index 000000000..8c560a5b3 --- /dev/null +++ b/imm/src/model/GetPornBatchDetectJobResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetPornBatchDetectJobResult::GetPornBatchDetectJobResult() : + ServiceResult() +{} + +GetPornBatchDetectJobResult::GetPornBatchDetectJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetPornBatchDetectJobResult::~GetPornBatchDetectJobResult() +{} + +void GetPornBatchDetectJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + if(!value["SrcUri"].isNull()) + srcUri_ = value["SrcUri"].asString(); + if(!value["TgtUri"].isNull()) + tgtUri_ = value["TgtUri"].asString(); + if(!value["NotifyTopicName"].isNull()) + notifyTopicName_ = value["NotifyTopicName"].asString(); + if(!value["NotifyEndpoint"].isNull()) + notifyEndpoint_ = value["NotifyEndpoint"].asString(); + if(!value["ExternalID"].isNull()) + externalID_ = value["ExternalID"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["FinishTime"].isNull()) + finishTime_ = value["FinishTime"].asString(); + if(!value["Percent"].isNull()) + percent_ = std::stoi(value["Percent"].asString()); + +} + +std::string GetPornBatchDetectJobResult::getStatus()const +{ + return status_; +} + +std::string GetPornBatchDetectJobResult::getNotifyEndpoint()const +{ + return notifyEndpoint_; +} + +std::string GetPornBatchDetectJobResult::getTgtUri()const +{ + return tgtUri_; +} + +std::string GetPornBatchDetectJobResult::getFinishTime()const +{ + return finishTime_; +} + +int GetPornBatchDetectJobResult::getPercent()const +{ + return percent_; +} + +std::string GetPornBatchDetectJobResult::getExternalID()const +{ + return externalID_; +} + +std::string GetPornBatchDetectJobResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetPornBatchDetectJobResult::getNotifyTopicName()const +{ + return notifyTopicName_; +} + +std::string GetPornBatchDetectJobResult::getJobId()const +{ + return jobId_; +} + +std::string GetPornBatchDetectJobResult::getSrcUri()const +{ + return srcUri_; +} + diff --git a/imm/src/model/GetProjectRequest.cc b/imm/src/model/GetProjectRequest.cc new file mode 100755 index 000000000..e190b8a8b --- /dev/null +++ b/imm/src/model/GetProjectRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::GetProjectRequest; + +GetProjectRequest::GetProjectRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetProject") +{} + +GetProjectRequest::~GetProjectRequest() +{} + +std::string GetProjectRequest::getRegionId()const +{ + return regionId_; +} + +void GetProjectRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetProjectRequest::getProject()const +{ + return project_; +} + +void GetProjectRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string GetProjectRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetProjectRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/GetProjectResult.cc b/imm/src/model/GetProjectResult.cc new file mode 100755 index 000000000..36cb9791d --- /dev/null +++ b/imm/src/model/GetProjectResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetProjectResult::GetProjectResult() : + ServiceResult() +{} + +GetProjectResult::GetProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetProjectResult::~GetProjectResult() +{} + +void GetProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Project"].isNull()) + project_ = value["Project"].asString(); + if(!value["ServiceRole"].isNull()) + serviceRole_ = value["ServiceRole"].asString(); + if(!value["Endpoint"].isNull()) + endpoint_ = value["Endpoint"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["CU"].isNull()) + cU_ = std::stoi(value["CU"].asString()); + if(!value["BillingType"].isNull()) + billingType_ = value["BillingType"].asString(); + +} + +std::string GetProjectResult::getProject()const +{ + return project_; +} + +std::string GetProjectResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string GetProjectResult::getType()const +{ + return type_; +} + +int GetProjectResult::getCU()const +{ + return cU_; +} + +std::string GetProjectResult::getServiceRole()const +{ + return serviceRole_; +} + +std::string GetProjectResult::getEndpoint()const +{ + return endpoint_; +} + +std::string GetProjectResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetProjectResult::getBillingType()const +{ + return billingType_; +} + diff --git a/imm/src/model/GetSetRequest.cc b/imm/src/model/GetSetRequest.cc new file mode 100755 index 000000000..33f5e724e --- /dev/null +++ b/imm/src/model/GetSetRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::GetSetRequest; + +GetSetRequest::GetSetRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetSet") +{} + +GetSetRequest::~GetSetRequest() +{} + +std::string GetSetRequest::getRegionId()const +{ + return regionId_; +} + +void GetSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetSetRequest::getProject()const +{ + return project_; +} + +void GetSetRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string GetSetRequest::getSetId()const +{ + return setId_; +} + +void GetSetRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string GetSetRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetSetRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/GetSetResult.cc b/imm/src/model/GetSetResult.cc new file mode 100755 index 000000000..e98a24a4a --- /dev/null +++ b/imm/src/model/GetSetResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetSetResult::GetSetResult() : + ServiceResult() +{} + +GetSetResult::GetSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSetResult::~GetSetResult() +{} + +void GetSetResult::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_ = std::stol(value["CreateTime"].asString()); + if(!value["ModifyTime"].isNull()) + modifyTime_ = std::stol(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()); + +} + +long GetSetResult::getModifyTime()const +{ + return modifyTime_; +} + +int GetSetResult::getImageCount()const +{ + return imageCount_; +} + +int GetSetResult::getVideoCount()const +{ + return videoCount_; +} + +long GetSetResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetSetResult::getSetName()const +{ + return setName_; +} + +std::string GetSetResult::getSetId()const +{ + return setId_; +} + +int GetSetResult::getFaceCount()const +{ + return faceCount_; +} + +int GetSetResult::getVideoLength()const +{ + return videoLength_; +} + diff --git a/imm/src/model/GetTagJobRequest.cc b/imm/src/model/GetTagJobRequest.cc new file mode 100755 index 000000000..1f7bf72fe --- /dev/null +++ b/imm/src/model/GetTagJobRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::GetTagJobRequest; + +GetTagJobRequest::GetTagJobRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetTagJob") +{} + +GetTagJobRequest::~GetTagJobRequest() +{} + +std::string GetTagJobRequest::getJobId()const +{ + return jobId_; +} + +void GetTagJobRequest::setJobId(const std::string& jobId) +{ + jobId_ = jobId; + setParameter("JobId", jobId); +} + +std::string GetTagJobRequest::getRegionId()const +{ + return regionId_; +} + +void GetTagJobRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetTagJobRequest::getProject()const +{ + return project_; +} + +void GetTagJobRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string GetTagJobRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetTagJobRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/GetTagJobResult.cc b/imm/src/model/GetTagJobResult.cc new file mode 100755 index 000000000..4cb57604c --- /dev/null +++ b/imm/src/model/GetTagJobResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetTagJobResult::GetTagJobResult() : + ServiceResult() +{} + +GetTagJobResult::GetTagJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTagJobResult::~GetTagJobResult() +{} + +void GetTagJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["SrcUri"].isNull()) + srcUri_ = value["SrcUri"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Percent"].isNull()) + percent_ = std::stoi(value["Percent"].asString()); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["FinishTime"].isNull()) + finishTime_ = value["FinishTime"].asString(); + +} + +std::string GetTagJobResult::getStatus()const +{ + return status_; +} + +std::string GetTagJobResult::getFinishTime()const +{ + return finishTime_; +} + +int GetTagJobResult::getPercent()const +{ + return percent_; +} + +std::string GetTagJobResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetTagJobResult::getSetId()const +{ + return setId_; +} + +std::string GetTagJobResult::getJobId()const +{ + return jobId_; +} + +std::string GetTagJobResult::getSrcUri()const +{ + return srcUri_; +} + diff --git a/imm/src/model/GetTagSetRequest.cc b/imm/src/model/GetTagSetRequest.cc new file mode 100755 index 000000000..67df87be4 --- /dev/null +++ b/imm/src/model/GetTagSetRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::GetTagSetRequest; + +GetTagSetRequest::GetTagSetRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetTagSet") +{} + +GetTagSetRequest::~GetTagSetRequest() +{} + +std::string GetTagSetRequest::getRegionId()const +{ + return regionId_; +} + +void GetTagSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetTagSetRequest::getProject()const +{ + return project_; +} + +void GetTagSetRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string GetTagSetRequest::getSetId()const +{ + return setId_; +} + +void GetTagSetRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string GetTagSetRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetTagSetRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/GetTagSetResult.cc b/imm/src/model/GetTagSetResult.cc new file mode 100755 index 000000000..e8f616f5c --- /dev/null +++ b/imm/src/model/GetTagSetResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetTagSetResult::GetTagSetResult() : + ServiceResult() +{} + +GetTagSetResult::GetTagSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTagSetResult::~GetTagSetResult() +{} + +void GetTagSetResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["Photos"].isNull()) + photos_ = std::stol(value["Photos"].asString()); + +} + +std::string GetTagSetResult::getStatus()const +{ + return status_; +} + +long GetTagSetResult::getPhotos()const +{ + return photos_; +} + +std::string GetTagSetResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string GetTagSetResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetTagSetResult::getSetId()const +{ + return setId_; +} + diff --git a/imm/src/model/GetVideoRequest.cc b/imm/src/model/GetVideoRequest.cc new file mode 100755 index 000000000..788219545 --- /dev/null +++ b/imm/src/model/GetVideoRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::GetVideoRequest; + +GetVideoRequest::GetVideoRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetVideo") +{} + +GetVideoRequest::~GetVideoRequest() +{} + +std::string GetVideoRequest::getVideoUri()const +{ + return videoUri_; +} + +void GetVideoRequest::setVideoUri(const std::string& videoUri) +{ + videoUri_ = videoUri; + setParameter("VideoUri", videoUri); +} + +std::string GetVideoRequest::getRegionId()const +{ + return regionId_; +} + +void GetVideoRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetVideoRequest::getProject()const +{ + return project_; +} + +void GetVideoRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string GetVideoRequest::getSetId()const +{ + return setId_; +} + +void GetVideoRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string GetVideoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetVideoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/GetVideoResult.cc b/imm/src/model/GetVideoResult.cc new file mode 100755 index 000000000..0562a6fcb --- /dev/null +++ b/imm/src/model/GetVideoResult.cc @@ -0,0 +1,289 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetVideoResult::GetVideoResult() : + ServiceResult() +{} + +GetVideoResult::GetVideoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVideoResult::~GetVideoResult() +{} + +void GetVideoResult::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["CelebrityNum"].isNull()) + celebrityObject.celebrityNum = std::stoi(value["CelebrityNum"].asString()); + if(!value["CelebrityLibraryName"].isNull()) + celebrityObject.celebrityLibraryName = value["CelebrityLibraryName"].asString(); + celebrity_.push_back(celebrityObject); + } + auto allVideoTags = value["VideoTags"]["VideoTagsItem"]; + for (auto value : allVideoTags) + { + VideoTagsItem videoTagsObject; + if(!value["VideoTagName"].isNull()) + videoTagsObject.videoTagName = value["VideoTagName"].asString(); + if(!value["VideoTagEnName"].isNull()) + videoTagsObject.videoTagEnName = value["VideoTagEnName"].asString(); + if(!value["VideoTagConfidence"].isNull()) + videoTagsObject.videoTagConfidence = std::stof(value["VideoTagConfidence"].asString()); + videoTags_.push_back(videoTagsObject); + } + auto allPersons = value["Persons"]["PersonsItem"]; + for (auto value : allPersons) + { + PersonsItem personsObject; + if(!value["PersonId"].isNull()) + personsObject.personId = value["PersonId"].asString(); + if(!value["Age"].isNull()) + personsObject.age = std::stoi(value["Age"].asString()); + if(!value["AgeConfidence"].isNull()) + personsObject.ageConfidence = std::stof(value["AgeConfidence"].asString()); + if(!value["Gender"].isNull()) + personsObject.gender = value["Gender"].asString(); + if(!value["GenderConfidence"].isNull()) + personsObject.genderConfidence = std::stof(value["GenderConfidence"].asString()); + persons_.push_back(personsObject); + } + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["VideoUri"].isNull()) + videoUri_ = value["VideoUri"].asString(); + if(!value["RemarksA"].isNull()) + remarksA_ = value["RemarksA"].asString(); + if(!value["RemarksB"].isNull()) + remarksB_ = value["RemarksB"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["VideoWidth"].isNull()) + videoWidth_ = std::stoi(value["VideoWidth"].asString()); + if(!value["VideoHeight"].isNull()) + videoHeight_ = std::stoi(value["VideoHeight"].asString()); + if(!value["VideoFormat"].isNull()) + videoFormat_ = value["VideoFormat"].asString(); + if(!value["VideoDuration"].isNull()) + videoDuration_ = std::stof(value["VideoDuration"].asString()); + if(!value["FileSize"].isNull()) + fileSize_ = std::stoi(value["FileSize"].asString()); + if(!value["VideoFrames"].isNull()) + videoFrames_ = std::stoi(value["VideoFrames"].asString()); + if(!value["SourceType"].isNull()) + sourceType_ = value["SourceType"].asString(); + if(!value["SourceUri"].isNull()) + sourceUri_ = value["SourceUri"].asString(); + if(!value["SourcePosition"].isNull()) + sourcePosition_ = value["SourcePosition"].asString(); + if(!value["ProcessStatus"].isNull()) + processStatus_ = value["ProcessStatus"].asString(); + if(!value["ProcessModifyTime"].isNull()) + processModifyTime_ = value["ProcessModifyTime"].asString(); + if(!value["VideoTagsStatus"].isNull()) + videoTagsStatus_ = value["VideoTagsStatus"].asString(); + if(!value["VideoTagsModifyTime"].isNull()) + videoTagsModifyTime_ = value["VideoTagsModifyTime"].asString(); + if(!value["CelebrityStatus"].isNull()) + celebrityStatus_ = value["CelebrityStatus"].asString(); + if(!value["CelebrityModifyTime"].isNull()) + celebrityModifyTime_ = value["CelebrityModifyTime"].asString(); + if(!value["ProcessFailReason"].isNull()) + processFailReason_ = value["ProcessFailReason"].asString(); + if(!value["VideoTagsFailReason"].isNull()) + videoTagsFailReason_ = value["VideoTagsFailReason"].asString(); + if(!value["CelebrityFailReason"].isNull()) + celebrityFailReason_ = value["CelebrityFailReason"].asString(); + if(!value["RemarksC"].isNull()) + remarksC_ = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + remarksD_ = value["RemarksD"].asString(); + if(!value["ExternalId"].isNull()) + externalId_ = value["ExternalId"].asString(); + +} + +std::string GetVideoResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string GetVideoResult::getProcessStatus()const +{ + return processStatus_; +} + +int GetVideoResult::getVideoWidth()const +{ + return videoWidth_; +} + +std::string GetVideoResult::getSourceType()const +{ + return sourceType_; +} + +std::string GetVideoResult::getSourceUri()const +{ + return sourceUri_; +} + +std::string GetVideoResult::getRemarksA()const +{ + return remarksA_; +} + +std::string GetVideoResult::getRemarksB()const +{ + return remarksB_; +} + +std::string GetVideoResult::getRemarksC()const +{ + return remarksC_; +} + +std::string GetVideoResult::getRemarksD()const +{ + return remarksD_; +} + +int GetVideoResult::getVideoHeight()const +{ + return videoHeight_; +} + +std::vector GetVideoResult::getPersons()const +{ + return persons_; +} + +std::vector GetVideoResult::getCelebrity()const +{ + return celebrity_; +} + +std::string GetVideoResult::getSourcePosition()const +{ + return sourcePosition_; +} + +std::string GetVideoResult::getVideoTagsFailReason()const +{ + return videoTagsFailReason_; +} + +std::string GetVideoResult::getVideoTagsModifyTime()const +{ + return videoTagsModifyTime_; +} + +int GetVideoResult::getVideoFrames()const +{ + return videoFrames_; +} + +std::string GetVideoResult::getProcessModifyTime()const +{ + return processModifyTime_; +} + +std::string GetVideoResult::getProcessFailReason()const +{ + return processFailReason_; +} + +std::string GetVideoResult::getCreateTime()const +{ + return createTime_; +} + +std::string GetVideoResult::getExternalId()const +{ + return externalId_; +} + +std::string GetVideoResult::getVideoUri()const +{ + return videoUri_; +} + +std::string GetVideoResult::getVideoFormat()const +{ + return videoFormat_; +} + +std::vector GetVideoResult::getVideoTags()const +{ + return videoTags_; +} + +std::string GetVideoResult::getCelebrityModifyTime()const +{ + return celebrityModifyTime_; +} + +float GetVideoResult::getVideoDuration()const +{ + return videoDuration_; +} + +std::string GetVideoResult::getCelebrityFailReason()const +{ + return celebrityFailReason_; +} + +std::string GetVideoResult::getSetId()const +{ + return setId_; +} + +std::string GetVideoResult::getCelebrityStatus()const +{ + return celebrityStatus_; +} + +std::string GetVideoResult::getVideoTagsStatus()const +{ + return videoTagsStatus_; +} + +int GetVideoResult::getFileSize()const +{ + return fileSize_; +} + diff --git a/imm/src/model/GetVideoTaskRequest.cc b/imm/src/model/GetVideoTaskRequest.cc new file mode 100755 index 000000000..9dad1d5cb --- /dev/null +++ b/imm/src/model/GetVideoTaskRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::GetVideoTaskRequest; + +GetVideoTaskRequest::GetVideoTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "GetVideoTask") +{} + +GetVideoTaskRequest::~GetVideoTaskRequest() +{} + +std::string GetVideoTaskRequest::getTaskType()const +{ + return taskType_; +} + +void GetVideoTaskRequest::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; + setParameter("TaskType", taskType); +} + +std::string GetVideoTaskRequest::getRegionId()const +{ + return regionId_; +} + +void GetVideoTaskRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string GetVideoTaskRequest::getProject()const +{ + return project_; +} + +void GetVideoTaskRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string GetVideoTaskRequest::getTaskId()const +{ + return taskId_; +} + +void GetVideoTaskRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + +std::string GetVideoTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void GetVideoTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/GetVideoTaskResult.cc b/imm/src/model/GetVideoTaskResult.cc new file mode 100755 index 000000000..4049f592c --- /dev/null +++ b/imm/src/model/GetVideoTaskResult.cc @@ -0,0 +1,122 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +GetVideoTaskResult::GetVideoTaskResult() : + ServiceResult() +{} + +GetVideoTaskResult::GetVideoTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVideoTaskResult::~GetVideoTaskResult() +{} + +void GetVideoTaskResult::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(); + if(!value["Parameters"].isNull()) + parameters_ = value["Parameters"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["ErrorMessage"].isNull()) + errorMessage_ = value["ErrorMessage"].asString(); + if(!value["NotifyEndpoint"].isNull()) + notifyEndpoint_ = value["NotifyEndpoint"].asString(); + if(!value["NotifyTopicName"].isNull()) + notifyTopicName_ = value["NotifyTopicName"].asString(); + if(!value["Progress"].isNull()) + progress_ = std::stoi(value["Progress"].asString()); + +} + +std::string GetVideoTaskResult::getStatus()const +{ + return status_; +} + +std::string GetVideoTaskResult::getNotifyEndpoint()const +{ + return notifyEndpoint_; +} + +int GetVideoTaskResult::getProgress()const +{ + return progress_; +} + +std::string GetVideoTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string GetVideoTaskResult::getParameters()const +{ + return parameters_; +} + +std::string GetVideoTaskResult::getEndTime()const +{ + return endTime_; +} + +std::string GetVideoTaskResult::getTaskType()const +{ + return taskType_; +} + +std::string GetVideoTaskResult::getStartTime()const +{ + return startTime_; +} + +std::string GetVideoTaskResult::getNotifyTopicName()const +{ + return notifyTopicName_; +} + +std::string GetVideoTaskResult::getErrorMessage()const +{ + return errorMessage_; +} + +std::string GetVideoTaskResult::getResult()const +{ + return result_; +} + diff --git a/imm/src/model/IndexImageRequest.cc b/imm/src/model/IndexImageRequest.cc new file mode 100755 index 000000000..db16d6b83 --- /dev/null +++ b/imm/src/model/IndexImageRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::IndexImageRequest; + +IndexImageRequest::IndexImageRequest() : + RpcServiceRequest("imm", "2017-09-06", "IndexImage") +{} + +IndexImageRequest::~IndexImageRequest() +{} + +std::string IndexImageRequest::getRemarksB()const +{ + return remarksB_; +} + +void IndexImageRequest::setRemarksB(const std::string& remarksB) +{ + remarksB_ = remarksB; + setParameter("RemarksB", remarksB); +} + +std::string IndexImageRequest::getProject()const +{ + return project_; +} + +void IndexImageRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string IndexImageRequest::getRemarksA()const +{ + return remarksA_; +} + +void IndexImageRequest::setRemarksA(const std::string& remarksA) +{ + remarksA_ = remarksA; + setParameter("RemarksA", remarksA); +} + +std::string IndexImageRequest::getExternalId()const +{ + return externalId_; +} + +void IndexImageRequest::setExternalId(const std::string& externalId) +{ + externalId_ = externalId; + setParameter("ExternalId", externalId); +} + +std::string IndexImageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void IndexImageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string IndexImageRequest::getImageUri()const +{ + return imageUri_; +} + +void IndexImageRequest::setImageUri(const std::string& imageUri) +{ + imageUri_ = imageUri; + setParameter("ImageUri", imageUri); +} + +std::string IndexImageRequest::getRegionId()const +{ + return regionId_; +} + +void IndexImageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string IndexImageRequest::getSourceUri()const +{ + return sourceUri_; +} + +void IndexImageRequest::setSourceUri(const std::string& sourceUri) +{ + sourceUri_ = sourceUri; + setParameter("SourceUri", sourceUri); +} + +std::string IndexImageRequest::getSourcePosition()const +{ + return sourcePosition_; +} + +void IndexImageRequest::setSourcePosition(const std::string& sourcePosition) +{ + sourcePosition_ = sourcePosition; + setParameter("SourcePosition", sourcePosition); +} + +std::string IndexImageRequest::getRemarksD()const +{ + return remarksD_; +} + +void IndexImageRequest::setRemarksD(const std::string& remarksD) +{ + remarksD_ = remarksD; + setParameter("RemarksD", remarksD); +} + +std::string IndexImageRequest::getRemarksC()const +{ + return remarksC_; +} + +void IndexImageRequest::setRemarksC(const std::string& remarksC) +{ + remarksC_ = remarksC; + setParameter("RemarksC", remarksC); +} + +std::string IndexImageRequest::getSetId()const +{ + return setId_; +} + +void IndexImageRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string IndexImageRequest::getSourceType()const +{ + return sourceType_; +} + +void IndexImageRequest::setSourceType(const std::string& sourceType) +{ + sourceType_ = sourceType; + setParameter("SourceType", sourceType); +} + diff --git a/imm/src/model/IndexImageResult.cc b/imm/src/model/IndexImageResult.cc new file mode 100755 index 000000000..03d1b631c --- /dev/null +++ b/imm/src/model/IndexImageResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +IndexImageResult::IndexImageResult() : + ServiceResult() +{} + +IndexImageResult::IndexImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IndexImageResult::~IndexImageResult() +{} + +void IndexImageResult::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(); + if(!value["RemarksA"].isNull()) + remarksA_ = value["RemarksA"].asString(); + if(!value["RemarksB"].isNull()) + remarksB_ = value["RemarksB"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["RemarksC"].isNull()) + remarksC_ = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + remarksD_ = value["RemarksD"].asString(); + if(!value["ExternalId"].isNull()) + externalId_ = value["ExternalId"].asString(); + +} + +std::string IndexImageResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string IndexImageResult::getRemarksC()const +{ + return remarksC_; +} + +std::string IndexImageResult::getRemarksD()const +{ + return remarksD_; +} + +std::string IndexImageResult::getCreateTime()const +{ + return createTime_; +} + +std::string IndexImageResult::getExternalId()const +{ + return externalId_; +} + +std::string IndexImageResult::getSetId()const +{ + return setId_; +} + +std::string IndexImageResult::getImageUri()const +{ + return imageUri_; +} + +std::string IndexImageResult::getRemarksA()const +{ + return remarksA_; +} + +std::string IndexImageResult::getRemarksB()const +{ + return remarksB_; +} + diff --git a/imm/src/model/IndexTagRequest.cc b/imm/src/model/IndexTagRequest.cc new file mode 100755 index 000000000..41eed35fe --- /dev/null +++ b/imm/src/model/IndexTagRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::IndexTagRequest; + +IndexTagRequest::IndexTagRequest() : + RpcServiceRequest("imm", "2017-09-06", "IndexTag") +{} + +IndexTagRequest::~IndexTagRequest() +{} + +std::string IndexTagRequest::getSrcUris()const +{ + return srcUris_; +} + +void IndexTagRequest::setSrcUris(const std::string& srcUris) +{ + srcUris_ = srcUris; + setParameter("SrcUris", srcUris); +} + +std::string IndexTagRequest::getRegionId()const +{ + return regionId_; +} + +void IndexTagRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string IndexTagRequest::getModelId()const +{ + return modelId_; +} + +void IndexTagRequest::setModelId(const std::string& modelId) +{ + modelId_ = modelId; + setParameter("ModelId", modelId); +} + +std::string IndexTagRequest::getProject()const +{ + return project_; +} + +void IndexTagRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string IndexTagRequest::getSetId()const +{ + return setId_; +} + +void IndexTagRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string IndexTagRequest::getForce()const +{ + return force_; +} + +void IndexTagRequest::setForce(const std::string& force) +{ + force_ = force; + setParameter("Force", force); +} + +std::string IndexTagRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void IndexTagRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/IndexTagResult.cc b/imm/src/model/IndexTagResult.cc new file mode 100755 index 000000000..aec664302 --- /dev/null +++ b/imm/src/model/IndexTagResult.cc @@ -0,0 +1,105 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +IndexTagResult::IndexTagResult() : + ServiceResult() +{} + +IndexTagResult::IndexTagResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IndexTagResult::~IndexTagResult() +{} + +void IndexTagResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto 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 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); + } + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["SuccessIndexNum"].isNull()) + successIndexNum_ = value["SuccessIndexNum"].asString(); + +} + +std::vector IndexTagResult::getSuccessDetails()const +{ + return successDetails_; +} + +std::string IndexTagResult::getSuccessIndexNum()const +{ + return successIndexNum_; +} + +std::vector IndexTagResult::getFailDetails()const +{ + return failDetails_; +} + +std::string IndexTagResult::getSetId()const +{ + return setId_; +} + diff --git a/imm/src/model/IndexVideoRequest.cc b/imm/src/model/IndexVideoRequest.cc new file mode 100755 index 000000000..e29822f04 --- /dev/null +++ b/imm/src/model/IndexVideoRequest.cc @@ -0,0 +1,203 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Imm::Model::IndexVideoRequest; + +IndexVideoRequest::IndexVideoRequest() : + RpcServiceRequest("imm", "2017-09-06", "IndexVideo") +{} + +IndexVideoRequest::~IndexVideoRequest() +{} + +std::string IndexVideoRequest::getGrabType()const +{ + return grabType_; +} + +void IndexVideoRequest::setGrabType(const std::string& grabType) +{ + grabType_ = grabType; + setParameter("GrabType", grabType); +} + +std::string IndexVideoRequest::getRemarksB()const +{ + return remarksB_; +} + +void IndexVideoRequest::setRemarksB(const std::string& remarksB) +{ + remarksB_ = remarksB; + setParameter("RemarksB", remarksB); +} + +std::string IndexVideoRequest::getProject()const +{ + return project_; +} + +void IndexVideoRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string IndexVideoRequest::getRemarksA()const +{ + return remarksA_; +} + +void IndexVideoRequest::setRemarksA(const std::string& remarksA) +{ + remarksA_ = remarksA; + setParameter("RemarksA", remarksA); +} + +std::string IndexVideoRequest::getEndTime()const +{ + return endTime_; +} + +void IndexVideoRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setParameter("EndTime", endTime); +} + +std::string IndexVideoRequest::getExternalId()const +{ + return externalId_; +} + +void IndexVideoRequest::setExternalId(const std::string& externalId) +{ + externalId_ = externalId; + setParameter("ExternalId", externalId); +} + +std::string IndexVideoRequest::getStartTime()const +{ + return startTime_; +} + +void IndexVideoRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setParameter("StartTime", startTime); +} + +std::string IndexVideoRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void IndexVideoRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string IndexVideoRequest::getVideoUri()const +{ + return videoUri_; +} + +void IndexVideoRequest::setVideoUri(const std::string& videoUri) +{ + videoUri_ = videoUri; + setParameter("VideoUri", videoUri); +} + +bool IndexVideoRequest::getSaveType()const +{ + return saveType_; +} + +void IndexVideoRequest::setSaveType(bool saveType) +{ + saveType_ = saveType; + setParameter("SaveType", saveType ? "true" : "false"); +} + +std::string IndexVideoRequest::getRegionId()const +{ + return regionId_; +} + +void IndexVideoRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string IndexVideoRequest::getRemarksD()const +{ + return remarksD_; +} + +void IndexVideoRequest::setRemarksD(const std::string& remarksD) +{ + remarksD_ = remarksD; + setParameter("RemarksD", remarksD); +} + +std::string IndexVideoRequest::getRemarksC()const +{ + return remarksC_; +} + +void IndexVideoRequest::setRemarksC(const std::string& remarksC) +{ + remarksC_ = remarksC; + setParameter("RemarksC", remarksC); +} + +std::string IndexVideoRequest::getSetId()const +{ + return setId_; +} + +void IndexVideoRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string IndexVideoRequest::getInterval()const +{ + return interval_; +} + +void IndexVideoRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setParameter("Interval", interval); +} + +std::string IndexVideoRequest::getTgtUri()const +{ + return tgtUri_; +} + +void IndexVideoRequest::setTgtUri(const std::string& tgtUri) +{ + tgtUri_ = tgtUri; + setParameter("TgtUri", tgtUri); +} + diff --git a/imm/src/model/IndexVideoResult.cc b/imm/src/model/IndexVideoResult.cc new file mode 100755 index 000000000..85d6809cf --- /dev/null +++ b/imm/src/model/IndexVideoResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +IndexVideoResult::IndexVideoResult() : + ServiceResult() +{} + +IndexVideoResult::IndexVideoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +IndexVideoResult::~IndexVideoResult() +{} + +void IndexVideoResult::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(); + if(!value["RemarksA"].isNull()) + remarksA_ = value["RemarksA"].asString(); + if(!value["RemarksB"].isNull()) + remarksB_ = value["RemarksB"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["Interval"].isNull()) + interval_ = std::stof(value["Interval"].asString()); + if(!value["GrabType"].isNull()) + grabType_ = value["GrabType"].asString(); + if(!value["StartTime"].isNull()) + startTime_ = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + endTime_ = value["EndTime"].asString(); + if(!value["SaveType"].isNull()) + saveType_ = value["SaveType"].asString() == "true"; + if(!value["TgtUri"].isNull()) + tgtUri_ = value["TgtUri"].asString(); + if(!value["RemarksC"].isNull()) + remarksC_ = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + remarksD_ = value["RemarksD"].asString(); + if(!value["ExternalId"].isNull()) + externalId_ = value["ExternalId"].asString(); + +} + +std::string IndexVideoResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string IndexVideoResult::getEndTime()const +{ + return endTime_; +} + +bool IndexVideoResult::getSaveType()const +{ + return saveType_; +} + +std::string IndexVideoResult::getCreateTime()const +{ + return createTime_; +} + +std::string IndexVideoResult::getExternalId()const +{ + return externalId_; +} + +std::string IndexVideoResult::getStartTime()const +{ + return startTime_; +} + +std::string IndexVideoResult::getVideoUri()const +{ + return videoUri_; +} + +std::string IndexVideoResult::getGrabType()const +{ + return grabType_; +} + +std::string IndexVideoResult::getRemarksA()const +{ + return remarksA_; +} + +std::string IndexVideoResult::getRemarksB()const +{ + return remarksB_; +} + +std::string IndexVideoResult::getRemarksC()const +{ + return remarksC_; +} + +std::string IndexVideoResult::getTgtUri()const +{ + return tgtUri_; +} + +std::string IndexVideoResult::getRemarksD()const +{ + return remarksD_; +} + +std::string IndexVideoResult::getSetId()const +{ + return setId_; +} + +float IndexVideoResult::getInterval()const +{ + return interval_; +} + diff --git a/imm/src/model/ListFaceSearchGroupImagesRequest.cc b/imm/src/model/ListFaceSearchGroupImagesRequest.cc new file mode 100755 index 000000000..9627c4157 --- /dev/null +++ b/imm/src/model/ListFaceSearchGroupImagesRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListFaceSearchGroupImagesRequest; + +ListFaceSearchGroupImagesRequest::ListFaceSearchGroupImagesRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroupImages") +{} + +ListFaceSearchGroupImagesRequest::~ListFaceSearchGroupImagesRequest() +{} + +int ListFaceSearchGroupImagesRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListFaceSearchGroupImagesRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListFaceSearchGroupImagesRequest::getRegionId()const +{ + return regionId_; +} + +void ListFaceSearchGroupImagesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListFaceSearchGroupImagesRequest::getMarker()const +{ + return marker_; +} + +void ListFaceSearchGroupImagesRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListFaceSearchGroupImagesRequest::getProject()const +{ + return project_; +} + +void ListFaceSearchGroupImagesRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListFaceSearchGroupImagesRequest::getGroupName()const +{ + return groupName_; +} + +void ListFaceSearchGroupImagesRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + +std::string ListFaceSearchGroupImagesRequest::getUser()const +{ + return user_; +} + +void ListFaceSearchGroupImagesRequest::setUser(const std::string& user) +{ + user_ = user; + setParameter("User", user); +} + +std::string ListFaceSearchGroupImagesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListFaceSearchGroupImagesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListFaceSearchGroupImagesResult.cc b/imm/src/model/ListFaceSearchGroupImagesResult.cc new file mode 100755 index 000000000..578f56598 --- /dev/null +++ b/imm/src/model/ListFaceSearchGroupImagesResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListFaceSearchGroupImagesResult::ListFaceSearchGroupImagesResult() : + ServiceResult() +{} + +ListFaceSearchGroupImagesResult::ListFaceSearchGroupImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFaceSearchGroupImagesResult::~ListFaceSearchGroupImagesResult() +{} + +void ListFaceSearchGroupImagesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allImages = value["Images"]["ImagesItem"]; + for (auto value : allImages) + { + ImagesItem imagesObject; + if(!value["User"].isNull()) + imagesObject.user = value["User"].asString(); + if(!value["ImageId"].isNull()) + imagesObject.imageId = value["ImageId"].asString(); + if(!value["ImageUri"].isNull()) + imagesObject.imageUri = value["ImageUri"].asString(); + if(!value["ImageMd5"].isNull()) + imagesObject.imageMd5 = value["ImageMd5"].asString(); + if(!value["Roll"].isNull()) + imagesObject.roll = std::stof(value["Roll"].asString()); + if(!value["FaceId"].isNull()) + imagesObject.faceId = value["FaceId"].asString(); + if(!value["Yaw"].isNull()) + imagesObject.yaw = std::stof(value["Yaw"].asString()); + if(!value["Quality"].isNull()) + imagesObject.quality = std::stof(value["Quality"].asString()); + if(!value["Glasses"].isNull()) + imagesObject.glasses = std::stoi(value["Glasses"].asString()); + if(!value["Hat"].isNull()) + imagesObject.hat = std::stoi(value["Hat"].asString()); + if(!value["Pitch"].isNull()) + imagesObject.pitch = std::stof(value["Pitch"].asString()); + if(!value["Age"].isNull()) + imagesObject.age = std::stoi(value["Age"].asString()); + if(!value["Gender"].isNull()) + imagesObject.gender = value["Gender"].asString(); + auto allAxis = value["Axis"]["Axis"]; + for (auto value : allAxis) + imagesObject.axis.push_back(value.asString()); + images_.push_back(imagesObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + if(!value["GroupName"].isNull()) + groupName_ = value["GroupName"].asString(); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + +} + +std::string ListFaceSearchGroupImagesResult::getGroupName()const +{ + return groupName_; +} + +std::vector ListFaceSearchGroupImagesResult::getImages()const +{ + return images_; +} + +std::string ListFaceSearchGroupImagesResult::getNextMarker()const +{ + return nextMarker_; +} + +std::string ListFaceSearchGroupImagesResult::getGroupId()const +{ + return groupId_; +} + diff --git a/imm/src/model/ListFaceSearchGroupUsersRequest.cc b/imm/src/model/ListFaceSearchGroupUsersRequest.cc new file mode 100755 index 000000000..0ab2c5c61 --- /dev/null +++ b/imm/src/model/ListFaceSearchGroupUsersRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListFaceSearchGroupUsersRequest; + +ListFaceSearchGroupUsersRequest::ListFaceSearchGroupUsersRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroupUsers") +{} + +ListFaceSearchGroupUsersRequest::~ListFaceSearchGroupUsersRequest() +{} + +int ListFaceSearchGroupUsersRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListFaceSearchGroupUsersRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListFaceSearchGroupUsersRequest::getRegionId()const +{ + return regionId_; +} + +void ListFaceSearchGroupUsersRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListFaceSearchGroupUsersRequest::getMarker()const +{ + return marker_; +} + +void ListFaceSearchGroupUsersRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListFaceSearchGroupUsersRequest::getProject()const +{ + return project_; +} + +void ListFaceSearchGroupUsersRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListFaceSearchGroupUsersRequest::getGroupName()const +{ + return groupName_; +} + +void ListFaceSearchGroupUsersRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + +std::string ListFaceSearchGroupUsersRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListFaceSearchGroupUsersRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListFaceSearchGroupUsersResult.cc b/imm/src/model/ListFaceSearchGroupUsersResult.cc new file mode 100755 index 000000000..7ec1fbf02 --- /dev/null +++ b/imm/src/model/ListFaceSearchGroupUsersResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListFaceSearchGroupUsersResult::ListFaceSearchGroupUsersResult() : + ServiceResult() +{} + +ListFaceSearchGroupUsersResult::ListFaceSearchGroupUsersResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFaceSearchGroupUsersResult::~ListFaceSearchGroupUsersResult() +{} + +void ListFaceSearchGroupUsersResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allUsers = value["Users"]["UsersItem"]; + for (auto value : allUsers) + { + UsersItem usersObject; + if(!value["User"].isNull()) + usersObject.user = value["User"].asString(); + if(!value["Count"].isNull()) + usersObject.count = value["Count"].asString(); + if(!value["Status"].isNull()) + usersObject.status = value["Status"].asString(); + if(!value["CreateTime"].isNull()) + usersObject.createTime = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + usersObject.modifyTime = value["ModifyTime"].asString(); + users_.push_back(usersObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + if(!value["GroupName"].isNull()) + groupName_ = value["GroupName"].asString(); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + +} + +std::string ListFaceSearchGroupUsersResult::getGroupName()const +{ + return groupName_; +} + +std::vector ListFaceSearchGroupUsersResult::getUsers()const +{ + return users_; +} + +std::string ListFaceSearchGroupUsersResult::getNextMarker()const +{ + return nextMarker_; +} + +std::string ListFaceSearchGroupUsersResult::getGroupId()const +{ + return groupId_; +} + diff --git a/imm/src/model/ListFaceSearchGroupsRequest.cc b/imm/src/model/ListFaceSearchGroupsRequest.cc new file mode 100755 index 000000000..6ca35ae1c --- /dev/null +++ b/imm/src/model/ListFaceSearchGroupsRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListFaceSearchGroupsRequest; + +ListFaceSearchGroupsRequest::ListFaceSearchGroupsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListFaceSearchGroups") +{} + +ListFaceSearchGroupsRequest::~ListFaceSearchGroupsRequest() +{} + +int ListFaceSearchGroupsRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListFaceSearchGroupsRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListFaceSearchGroupsRequest::getRegionId()const +{ + return regionId_; +} + +void ListFaceSearchGroupsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListFaceSearchGroupsRequest::getMarker()const +{ + return marker_; +} + +void ListFaceSearchGroupsRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListFaceSearchGroupsRequest::getProject()const +{ + return project_; +} + +void ListFaceSearchGroupsRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListFaceSearchGroupsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListFaceSearchGroupsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListFaceSearchGroupsResult.cc b/imm/src/model/ListFaceSearchGroupsResult.cc new file mode 100755 index 000000000..2f8976029 --- /dev/null +++ b/imm/src/model/ListFaceSearchGroupsResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListFaceSearchGroupsResult::ListFaceSearchGroupsResult() : + ServiceResult() +{} + +ListFaceSearchGroupsResult::ListFaceSearchGroupsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFaceSearchGroupsResult::~ListFaceSearchGroupsResult() +{} + +void ListFaceSearchGroupsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allGroups = value["Groups"]["GroupsItem"]; + for (auto value : allGroups) + { + GroupsItem groupsObject; + if(!value["GroupName"].isNull()) + groupsObject.groupName = value["GroupName"].asString(); + if(!value["Count"].isNull()) + groupsObject.count = value["Count"].asString(); + if(!value["Status"].isNull()) + groupsObject.status = value["Status"].asString(); + if(!value["CreateTime"].isNull()) + groupsObject.createTime = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + groupsObject.modifyTime = value["ModifyTime"].asString(); + if(!value["GroupId"].isNull()) + groupsObject.groupId = value["GroupId"].asString(); + groups_.push_back(groupsObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListFaceSearchGroupsResult::getGroups()const +{ + return groups_; +} + +std::string ListFaceSearchGroupsResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListImageJobsRequest.cc b/imm/src/model/ListImageJobsRequest.cc new file mode 100755 index 000000000..1695f7a9f --- /dev/null +++ b/imm/src/model/ListImageJobsRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListImageJobsRequest; + +ListImageJobsRequest::ListImageJobsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListImageJobs") +{} + +ListImageJobsRequest::~ListImageJobsRequest() +{} + +int ListImageJobsRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListImageJobsRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListImageJobsRequest::getRegionId()const +{ + return regionId_; +} + +void ListImageJobsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListImageJobsRequest::getMarker()const +{ + return marker_; +} + +void ListImageJobsRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListImageJobsRequest::getProject()const +{ + return project_; +} + +void ListImageJobsRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListImageJobsRequest::getJobType()const +{ + return jobType_; +} + +void ListImageJobsRequest::setJobType(const std::string& jobType) +{ + jobType_ = jobType; + setParameter("JobType", jobType); +} + +std::string ListImageJobsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListImageJobsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListImageJobsResult.cc b/imm/src/model/ListImageJobsResult.cc new file mode 100755 index 000000000..dd9941a55 --- /dev/null +++ b/imm/src/model/ListImageJobsResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListImageJobsResult::ListImageJobsResult() : + ServiceResult() +{} + +ListImageJobsResult::ListImageJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListImageJobsResult::~ListImageJobsResult() +{} + +void ListImageJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allJobs = value["Jobs"]["JobsItem"]; + for (auto value : allJobs) + { + JobsItem jobsObject; + if(!value["Status"].isNull()) + jobsObject.status = value["Status"].asString(); + if(!value["JobId"].isNull()) + jobsObject.jobId = value["JobId"].asString(); + if(!value["JobType"].isNull()) + jobsObject.jobType = value["JobType"].asString(); + if(!value["Parameters"].isNull()) + jobsObject.parameters = value["Parameters"].asString(); + if(!value["Result"].isNull()) + jobsObject.result = value["Result"].asString(); + if(!value["StartTime"].isNull()) + jobsObject.startTime = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + jobsObject.endTime = value["EndTime"].asString(); + if(!value["ErrorMessage"].isNull()) + jobsObject.errorMessage = value["ErrorMessage"].asString(); + if(!value["NotifyEndpoint"].isNull()) + jobsObject.notifyEndpoint = value["NotifyEndpoint"].asString(); + if(!value["NotifyTopicName"].isNull()) + jobsObject.notifyTopicName = value["NotifyTopicName"].asString(); + if(!value["Progress"].isNull()) + jobsObject.progress = std::stoi(value["Progress"].asString()); + jobs_.push_back(jobsObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListImageJobsResult::getJobs()const +{ + return jobs_; +} + +std::string ListImageJobsResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListImagesRequest.cc b/imm/src/model/ListImagesRequest.cc new file mode 100755 index 000000000..00176f829 --- /dev/null +++ b/imm/src/model/ListImagesRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListImagesRequest; + +ListImagesRequest::ListImagesRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListImages") +{} + +ListImagesRequest::~ListImagesRequest() +{} + +std::string ListImagesRequest::getRegionId()const +{ + return regionId_; +} + +void ListImagesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListImagesRequest::getMarker()const +{ + return marker_; +} + +void ListImagesRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +int ListImagesRequest::getLimit()const +{ + return limit_; +} + +void ListImagesRequest::setLimit(int limit) +{ + limit_ = limit; + setParameter("Limit", std::to_string(limit)); +} + +std::string ListImagesRequest::getProject()const +{ + return project_; +} + +void ListImagesRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListImagesRequest::getSetId()const +{ + return setId_; +} + +void ListImagesRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string ListImagesRequest::getCreateTimeStart()const +{ + return createTimeStart_; +} + +void ListImagesRequest::setCreateTimeStart(const std::string& createTimeStart) +{ + createTimeStart_ = createTimeStart; + setParameter("CreateTimeStart", createTimeStart); +} + +std::string ListImagesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListImagesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListImagesResult.cc b/imm/src/model/ListImagesResult.cc new file mode 100755 index 000000000..7abb31400 --- /dev/null +++ b/imm/src/model/ListImagesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListImagesResult::ListImagesResult() : + ServiceResult() +{} + +ListImagesResult::ListImagesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListImagesResult::~ListImagesResult() +{} + +void ListImagesResult::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 ListImagesResult::getImages()const +{ + return images_; +} + +std::string ListImagesResult::getSetId()const +{ + return setId_; +} + +std::string ListImagesResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListOfficeConversionTaskRequest.cc b/imm/src/model/ListOfficeConversionTaskRequest.cc new file mode 100755 index 000000000..205c0debc --- /dev/null +++ b/imm/src/model/ListOfficeConversionTaskRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListOfficeConversionTaskRequest; + +ListOfficeConversionTaskRequest::ListOfficeConversionTaskRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListOfficeConversionTask") +{} + +ListOfficeConversionTaskRequest::~ListOfficeConversionTaskRequest() +{} + +int ListOfficeConversionTaskRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListOfficeConversionTaskRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListOfficeConversionTaskRequest::getRegionId()const +{ + return regionId_; +} + +void ListOfficeConversionTaskRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListOfficeConversionTaskRequest::getMarker()const +{ + return marker_; +} + +void ListOfficeConversionTaskRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListOfficeConversionTaskRequest::getProject()const +{ + return project_; +} + +void ListOfficeConversionTaskRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListOfficeConversionTaskRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListOfficeConversionTaskRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListOfficeConversionTaskResult.cc b/imm/src/model/ListOfficeConversionTaskResult.cc new file mode 100755 index 000000000..606620b7d --- /dev/null +++ b/imm/src/model/ListOfficeConversionTaskResult.cc @@ -0,0 +1,89 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListOfficeConversionTaskResult::ListOfficeConversionTaskResult() : + ServiceResult() +{} + +ListOfficeConversionTaskResult::ListOfficeConversionTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListOfficeConversionTaskResult::~ListOfficeConversionTaskResult() +{} + +void ListOfficeConversionTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTasks = value["Tasks"]["TasksItem"]; + for (auto value : allTasks) + { + TasksItem tasksObject; + if(!value["TaskId"].isNull()) + tasksObject.taskId = value["TaskId"].asString(); + if(!value["Status"].isNull()) + tasksObject.status = value["Status"].asString(); + if(!value["Percent"].isNull()) + tasksObject.percent = std::stoi(value["Percent"].asString()); + if(!value["PageCount"].isNull()) + tasksObject.pageCount = std::stoi(value["PageCount"].asString()); + if(!value["SrcUri"].isNull()) + tasksObject.srcUri = value["SrcUri"].asString(); + if(!value["TgtType"].isNull()) + tasksObject.tgtType = value["TgtType"].asString(); + if(!value["TgtUri"].isNull()) + tasksObject.tgtUri = value["TgtUri"].asString(); + if(!value["ImageSpec"].isNull()) + tasksObject.imageSpec = value["ImageSpec"].asString(); + if(!value["NotifyTopicName"].isNull()) + tasksObject.notifyTopicName = value["NotifyTopicName"].asString(); + if(!value["NotifyEndpoint"].isNull()) + tasksObject.notifyEndpoint = value["NotifyEndpoint"].asString(); + if(!value["ExternalID"].isNull()) + tasksObject.externalID = value["ExternalID"].asString(); + if(!value["CreateTime"].isNull()) + tasksObject.createTime = value["CreateTime"].asString(); + if(!value["FinishTime"].isNull()) + tasksObject.finishTime = value["FinishTime"].asString(); + tasks_.push_back(tasksObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListOfficeConversionTaskResult::getTasks()const +{ + return tasks_; +} + +std::string ListOfficeConversionTaskResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListPhotoProcessTasksRequest.cc b/imm/src/model/ListPhotoProcessTasksRequest.cc new file mode 100755 index 000000000..d4401f00d --- /dev/null +++ b/imm/src/model/ListPhotoProcessTasksRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListPhotoProcessTasksRequest; + +ListPhotoProcessTasksRequest::ListPhotoProcessTasksRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListPhotoProcessTasks") +{} + +ListPhotoProcessTasksRequest::~ListPhotoProcessTasksRequest() +{} + +int ListPhotoProcessTasksRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListPhotoProcessTasksRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListPhotoProcessTasksRequest::getRegionId()const +{ + return regionId_; +} + +void ListPhotoProcessTasksRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListPhotoProcessTasksRequest::getMarker()const +{ + return marker_; +} + +void ListPhotoProcessTasksRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListPhotoProcessTasksRequest::getProject()const +{ + return project_; +} + +void ListPhotoProcessTasksRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListPhotoProcessTasksRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListPhotoProcessTasksRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListPhotoProcessTasksResult.cc b/imm/src/model/ListPhotoProcessTasksResult.cc new file mode 100755 index 000000000..4ae6ecc5b --- /dev/null +++ b/imm/src/model/ListPhotoProcessTasksResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListPhotoProcessTasksResult::ListPhotoProcessTasksResult() : + ServiceResult() +{} + +ListPhotoProcessTasksResult::ListPhotoProcessTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPhotoProcessTasksResult::~ListPhotoProcessTasksResult() +{} + +void ListPhotoProcessTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTasks = value["Tasks"]["TasksItem"]; + for (auto value : allTasks) + { + TasksItem tasksObject; + if(!value["TaskId"].isNull()) + tasksObject.taskId = value["TaskId"].asString(); + if(!value["Status"].isNull()) + tasksObject.status = value["Status"].asString(); + if(!value["SrcUri"].isNull()) + tasksObject.srcUri = value["SrcUri"].asString(); + if(!value["TgtUri"].isNull()) + tasksObject.tgtUri = value["TgtUri"].asString(); + if(!value["Style"].isNull()) + tasksObject.style = value["Style"].asString(); + if(!value["NotifyTopicName"].isNull()) + tasksObject.notifyTopicName = value["NotifyTopicName"].asString(); + if(!value["NotifyEndpoint"].isNull()) + tasksObject.notifyEndpoint = value["NotifyEndpoint"].asString(); + if(!value["ExternalID"].isNull()) + tasksObject.externalID = value["ExternalID"].asString(); + if(!value["CreateTime"].isNull()) + tasksObject.createTime = value["CreateTime"].asString(); + if(!value["FinishTime"].isNull()) + tasksObject.finishTime = value["FinishTime"].asString(); + if(!value["Percent"].isNull()) + tasksObject.percent = std::stoi(value["Percent"].asString()); + tasks_.push_back(tasksObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListPhotoProcessTasksResult::getTasks()const +{ + return tasks_; +} + +std::string ListPhotoProcessTasksResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListPornBatchDetectJobsRequest.cc b/imm/src/model/ListPornBatchDetectJobsRequest.cc new file mode 100755 index 000000000..02841cef6 --- /dev/null +++ b/imm/src/model/ListPornBatchDetectJobsRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListPornBatchDetectJobsRequest; + +ListPornBatchDetectJobsRequest::ListPornBatchDetectJobsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListPornBatchDetectJobs") +{} + +ListPornBatchDetectJobsRequest::~ListPornBatchDetectJobsRequest() +{} + +int ListPornBatchDetectJobsRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListPornBatchDetectJobsRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListPornBatchDetectJobsRequest::getRegionId()const +{ + return regionId_; +} + +void ListPornBatchDetectJobsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListPornBatchDetectJobsRequest::getMarker()const +{ + return marker_; +} + +void ListPornBatchDetectJobsRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListPornBatchDetectJobsRequest::getProject()const +{ + return project_; +} + +void ListPornBatchDetectJobsRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListPornBatchDetectJobsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListPornBatchDetectJobsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListPornBatchDetectJobsResult.cc b/imm/src/model/ListPornBatchDetectJobsResult.cc new file mode 100755 index 000000000..cb3d3f440 --- /dev/null +++ b/imm/src/model/ListPornBatchDetectJobsResult.cc @@ -0,0 +1,83 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListPornBatchDetectJobsResult::ListPornBatchDetectJobsResult() : + ServiceResult() +{} + +ListPornBatchDetectJobsResult::ListPornBatchDetectJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListPornBatchDetectJobsResult::~ListPornBatchDetectJobsResult() +{} + +void ListPornBatchDetectJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allJobs = value["Jobs"]["JobsItem"]; + for (auto value : allJobs) + { + JobsItem jobsObject; + if(!value["JobId"].isNull()) + jobsObject.jobId = value["JobId"].asString(); + if(!value["SrcUri"].isNull()) + jobsObject.srcUri = value["SrcUri"].asString(); + if(!value["Status"].isNull()) + jobsObject.status = value["Status"].asString(); + if(!value["TgtUri"].isNull()) + jobsObject.tgtUri = value["TgtUri"].asString(); + if(!value["NotifyTopicName"].isNull()) + jobsObject.notifyTopicName = std::stoi(value["NotifyTopicName"].asString()); + if(!value["NotifyEndpoint"].isNull()) + jobsObject.notifyEndpoint = value["NotifyEndpoint"].asString(); + if(!value["ExternalID"].isNull()) + jobsObject.externalID = value["ExternalID"].asString(); + if(!value["CreateTime"].isNull()) + jobsObject.createTime = value["CreateTime"].asString(); + if(!value["FinishTime"].isNull()) + jobsObject.finishTime = value["FinishTime"].asString(); + if(!value["Percent"].isNull()) + jobsObject.percent = std::stoi(value["Percent"].asString()); + jobs_.push_back(jobsObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListPornBatchDetectJobsResult::getJobs()const +{ + return jobs_; +} + +std::string ListPornBatchDetectJobsResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListProjectsRequest.cc b/imm/src/model/ListProjectsRequest.cc new file mode 100755 index 000000000..915efe128 --- /dev/null +++ b/imm/src/model/ListProjectsRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListProjectsRequest; + +ListProjectsRequest::ListProjectsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListProjects") +{} + +ListProjectsRequest::~ListProjectsRequest() +{} + +int ListProjectsRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListProjectsRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListProjectsRequest::getRegionId()const +{ + return regionId_; +} + +void ListProjectsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListProjectsRequest::getMarker()const +{ + return marker_; +} + +void ListProjectsRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListProjectsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListProjectsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListProjectsResult.cc b/imm/src/model/ListProjectsResult.cc new file mode 100755 index 000000000..dd8f086f9 --- /dev/null +++ b/imm/src/model/ListProjectsResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListProjectsResult::ListProjectsResult() : + ServiceResult() +{} + +ListProjectsResult::ListProjectsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListProjectsResult::~ListProjectsResult() +{} + +void ListProjectsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allProjects = value["Projects"]["ProjectsItem"]; + for (auto value : allProjects) + { + ProjectsItem projectsObject; + if(!value["Project"].isNull()) + projectsObject.project = value["Project"].asString(); + if(!value["Endpoint"].isNull()) + projectsObject.endpoint = value["Endpoint"].asString(); + if(!value["ServiceRole"].isNull()) + projectsObject.serviceRole = value["ServiceRole"].asString(); + if(!value["CreateTime"].isNull()) + projectsObject.createTime = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + projectsObject.modifyTime = value["ModifyTime"].asString(); + if(!value["CU"].isNull()) + projectsObject.cU = std::stoi(value["CU"].asString()); + if(!value["Type"].isNull()) + projectsObject.type = value["Type"].asString(); + if(!value["BillingType"].isNull()) + projectsObject.billingType = value["BillingType"].asString(); + projects_.push_back(projectsObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListProjectsResult::getProjects()const +{ + return projects_; +} + +std::string ListProjectsResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListSetTagsRequest.cc b/imm/src/model/ListSetTagsRequest.cc new file mode 100755 index 000000000..e2c25834f --- /dev/null +++ b/imm/src/model/ListSetTagsRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListSetTagsRequest; + +ListSetTagsRequest::ListSetTagsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListSetTags") +{} + +ListSetTagsRequest::~ListSetTagsRequest() +{} + +std::string ListSetTagsRequest::getRegionId()const +{ + return regionId_; +} + +void ListSetTagsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListSetTagsRequest::getProject()const +{ + return project_; +} + +void ListSetTagsRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListSetTagsRequest::getSetId()const +{ + return setId_; +} + +void ListSetTagsRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string ListSetTagsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListSetTagsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListSetTagsResult.cc b/imm/src/model/ListSetTagsResult.cc new file mode 100755 index 000000000..b8bd8a9cf --- /dev/null +++ b/imm/src/model/ListSetTagsResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListSetTagsResult::ListSetTagsResult() : + ServiceResult() +{} + +ListSetTagsResult::ListSetTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSetTagsResult::~ListSetTagsResult() +{} + +void ListSetTagsResult::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["TagCount"].isNull()) + tagsObject.tagCount = std::stoi(value["TagCount"].asString()); + tags_.push_back(tagsObject); + } + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + +} + +std::string ListSetTagsResult::getSetId()const +{ + return setId_; +} + +std::vector ListSetTagsResult::getTags()const +{ + return tags_; +} + diff --git a/imm/src/model/ListSetsRequest.cc b/imm/src/model/ListSetsRequest.cc new file mode 100755 index 000000000..9c853334c --- /dev/null +++ b/imm/src/model/ListSetsRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListSetsRequest; + +ListSetsRequest::ListSetsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListSets") +{} + +ListSetsRequest::~ListSetsRequest() +{} + +std::string ListSetsRequest::getRegionId()const +{ + return regionId_; +} + +void ListSetsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListSetsRequest::getMarker()const +{ + return marker_; +} + +void ListSetsRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListSetsRequest::getProject()const +{ + return project_; +} + +void ListSetsRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListSetsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListSetsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListSetsResult.cc b/imm/src/model/ListSetsResult.cc new file mode 100755 index 000000000..08c01e6e3 --- /dev/null +++ b/imm/src/model/ListSetsResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListSetsResult::ListSetsResult() : + ServiceResult() +{} + +ListSetsResult::ListSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListSetsResult::~ListSetsResult() +{} + +void ListSetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSets = value["Sets"]["SetsItem"]; + for (auto value : allSets) + { + SetsItem setsObject; + if(!value["SetId"].isNull()) + setsObject.setId = value["SetId"].asString(); + if(!value["SetName"].isNull()) + setsObject.setName = value["SetName"].asString(); + if(!value["CreateTime"].isNull()) + setsObject.createTime = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + setsObject.modifyTime = value["ModifyTime"].asString(); + if(!value["FaceCount"].isNull()) + setsObject.faceCount = std::stoi(value["FaceCount"].asString()); + if(!value["ImageCount"].isNull()) + setsObject.imageCount = std::stoi(value["ImageCount"].asString()); + if(!value["VideoCount"].isNull()) + setsObject.videoCount = std::stoi(value["VideoCount"].asString()); + if(!value["VideoLength"].isNull()) + setsObject.videoLength = std::stoi(value["VideoLength"].asString()); + sets_.push_back(setsObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListSetsResult::getSets()const +{ + return sets_; +} + +std::string ListSetsResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListTagJobsRequest.cc b/imm/src/model/ListTagJobsRequest.cc new file mode 100755 index 000000000..62b3bf69f --- /dev/null +++ b/imm/src/model/ListTagJobsRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListTagJobsRequest; + +ListTagJobsRequest::ListTagJobsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListTagJobs") +{} + +ListTagJobsRequest::~ListTagJobsRequest() +{} + +std::string ListTagJobsRequest::getCondition()const +{ + return condition_; +} + +void ListTagJobsRequest::setCondition(const std::string& condition) +{ + condition_ = condition; + setParameter("Condition", condition); +} + +int ListTagJobsRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListTagJobsRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListTagJobsRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagJobsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListTagJobsRequest::getMarker()const +{ + return marker_; +} + +void ListTagJobsRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListTagJobsRequest::getProject()const +{ + return project_; +} + +void ListTagJobsRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListTagJobsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListTagJobsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListTagJobsResult.cc b/imm/src/model/ListTagJobsResult.cc new file mode 100755 index 000000000..a12de7883 --- /dev/null +++ b/imm/src/model/ListTagJobsResult.cc @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListTagJobsResult::ListTagJobsResult() : + ServiceResult() +{} + +ListTagJobsResult::ListTagJobsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagJobsResult::~ListTagJobsResult() +{} + +void ListTagJobsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allJobs = value["Jobs"]["JobsItem"]; + for (auto value : allJobs) + { + JobsItem jobsObject; + if(!value["JobId"].isNull()) + jobsObject.jobId = value["JobId"].asString(); + if(!value["SetId"].isNull()) + jobsObject.setId = value["SetId"].asString(); + if(!value["SrcUri"].isNull()) + jobsObject.srcUri = value["SrcUri"].asString(); + if(!value["Status"].isNull()) + jobsObject.status = value["Status"].asString(); + if(!value["Percent"].isNull()) + jobsObject.percent = std::stoi(value["Percent"].asString()); + if(!value["CreateTime"].isNull()) + jobsObject.createTime = value["CreateTime"].asString(); + if(!value["FinishTime"].isNull()) + jobsObject.finishTime = value["FinishTime"].asString(); + jobs_.push_back(jobsObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListTagJobsResult::getJobs()const +{ + return jobs_; +} + +std::string ListTagJobsResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListTagNamesRequest.cc b/imm/src/model/ListTagNamesRequest.cc new file mode 100755 index 000000000..d6ec5c79f --- /dev/null +++ b/imm/src/model/ListTagNamesRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListTagNamesRequest; + +ListTagNamesRequest::ListTagNamesRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListTagNames") +{} + +ListTagNamesRequest::~ListTagNamesRequest() +{} + +std::string ListTagNamesRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagNamesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListTagNamesRequest::getMarker()const +{ + return marker_; +} + +void ListTagNamesRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListTagNamesRequest::getProject()const +{ + return project_; +} + +void ListTagNamesRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListTagNamesRequest::getSetId()const +{ + return setId_; +} + +void ListTagNamesRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string ListTagNamesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListTagNamesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListTagNamesResult.cc b/imm/src/model/ListTagNamesResult.cc new file mode 100755 index 000000000..8b42e01f3 --- /dev/null +++ b/imm/src/model/ListTagNamesResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListTagNamesResult::ListTagNamesResult() : + ServiceResult() +{} + +ListTagNamesResult::ListTagNamesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagNamesResult::~ListTagNamesResult() +{} + +void ListTagNamesResult::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["Num"].isNull()) + tagsObject.num = std::stoi(value["Num"].asString()); + tags_.push_back(tagsObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::string ListTagNamesResult::getNextMarker()const +{ + return nextMarker_; +} + +std::vector ListTagNamesResult::getTags()const +{ + return tags_; +} + diff --git a/imm/src/model/ListTagPhotosRequest.cc b/imm/src/model/ListTagPhotosRequest.cc new file mode 100755 index 000000000..92bbaaea9 --- /dev/null +++ b/imm/src/model/ListTagPhotosRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListTagPhotosRequest; + +ListTagPhotosRequest::ListTagPhotosRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListTagPhotos") +{} + +ListTagPhotosRequest::~ListTagPhotosRequest() +{} + +std::string ListTagPhotosRequest::getTagName()const +{ + return tagName_; +} + +void ListTagPhotosRequest::setTagName(const std::string& tagName) +{ + tagName_ = tagName; + setParameter("TagName", tagName); +} + +std::string ListTagPhotosRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListTagPhotosRequest::setMaxKeys(const std::string& maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", maxKeys); +} + +std::string ListTagPhotosRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagPhotosRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListTagPhotosRequest::getMarker()const +{ + return marker_; +} + +void ListTagPhotosRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListTagPhotosRequest::getProject()const +{ + return project_; +} + +void ListTagPhotosRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListTagPhotosRequest::getSetId()const +{ + return setId_; +} + +void ListTagPhotosRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string ListTagPhotosRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListTagPhotosRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListTagPhotosResult.cc b/imm/src/model/ListTagPhotosResult.cc new file mode 100755 index 000000000..29abbcb4e --- /dev/null +++ b/imm/src/model/ListTagPhotosResult.cc @@ -0,0 +1,67 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListTagPhotosResult::ListTagPhotosResult() : + ServiceResult() +{} + +ListTagPhotosResult::ListTagPhotosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagPhotosResult::~ListTagPhotosResult() +{} + +void ListTagPhotosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allPhotos = value["Photos"]["PhotosItem"]; + for (auto value : allPhotos) + { + PhotosItem photosObject; + if(!value["SrcUri"].isNull()) + photosObject.srcUri = value["SrcUri"].asString(); + if(!value["TagScore"].isNull()) + photosObject.tagScore = std::stof(value["TagScore"].asString()); + photos_.push_back(photosObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListTagPhotosResult::getPhotos()const +{ + return photos_; +} + +std::string ListTagPhotosResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListTagSetsRequest.cc b/imm/src/model/ListTagSetsRequest.cc new file mode 100755 index 000000000..dc2a07ece --- /dev/null +++ b/imm/src/model/ListTagSetsRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListTagSetsRequest; + +ListTagSetsRequest::ListTagSetsRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListTagSets") +{} + +ListTagSetsRequest::~ListTagSetsRequest() +{} + +int ListTagSetsRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListTagSetsRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListTagSetsRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagSetsRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListTagSetsRequest::getMarker()const +{ + return marker_; +} + +void ListTagSetsRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListTagSetsRequest::getProject()const +{ + return project_; +} + +void ListTagSetsRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListTagSetsRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListTagSetsRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListTagSetsResult.cc b/imm/src/model/ListTagSetsResult.cc new file mode 100755 index 000000000..ddb445029 --- /dev/null +++ b/imm/src/model/ListTagSetsResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListTagSetsResult::ListTagSetsResult() : + ServiceResult() +{} + +ListTagSetsResult::ListTagSetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagSetsResult::~ListTagSetsResult() +{} + +void ListTagSetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allSets = value["Sets"]["SetsItem"]; + for (auto value : allSets) + { + SetsItem setsObject; + if(!value["SetId"].isNull()) + setsObject.setId = value["SetId"].asString(); + if(!value["Status"].isNull()) + setsObject.status = value["Status"].asString(); + if(!value["Photos"].isNull()) + setsObject.photos = std::stol(value["Photos"].asString()); + if(!value["CreateTime"].isNull()) + setsObject.createTime = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + setsObject.modifyTime = value["ModifyTime"].asString(); + sets_.push_back(setsObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListTagSetsResult::getSets()const +{ + return sets_; +} + +std::string ListTagSetsResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListVideoAudiosRequest.cc b/imm/src/model/ListVideoAudiosRequest.cc new file mode 100755 index 000000000..81a183d93 --- /dev/null +++ b/imm/src/model/ListVideoAudiosRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListVideoAudiosRequest; + +ListVideoAudiosRequest::ListVideoAudiosRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListVideoAudios") +{} + +ListVideoAudiosRequest::~ListVideoAudiosRequest() +{} + +std::string ListVideoAudiosRequest::getVideoUri()const +{ + return videoUri_; +} + +void ListVideoAudiosRequest::setVideoUri(const std::string& videoUri) +{ + videoUri_ = videoUri; + setParameter("VideoUri", videoUri); +} + +std::string ListVideoAudiosRequest::getRegionId()const +{ + return regionId_; +} + +void ListVideoAudiosRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListVideoAudiosRequest::getMarker()const +{ + return marker_; +} + +void ListVideoAudiosRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListVideoAudiosRequest::getProject()const +{ + return project_; +} + +void ListVideoAudiosRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListVideoAudiosRequest::getSetId()const +{ + return setId_; +} + +void ListVideoAudiosRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string ListVideoAudiosRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListVideoAudiosRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListVideoAudiosResult.cc b/imm/src/model/ListVideoAudiosResult.cc new file mode 100755 index 000000000..bbf2f352e --- /dev/null +++ b/imm/src/model/ListVideoAudiosResult.cc @@ -0,0 +1,145 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideoAudiosResult::ListVideoAudiosResult() : + ServiceResult() +{} + +ListVideoAudiosResult::ListVideoAudiosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideoAudiosResult::~ListVideoAudiosResult() +{} + +void ListVideoAudiosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAudios = value["Audios"]["AudiosItem"]; + for (auto value : allAudios) + { + AudiosItem audiosObject; + if(!value["AudioDuration"].isNull()) + audiosObject.audioDuration = std::stof(value["AudioDuration"].asString()); + if(!value["AudioUri"].isNull()) + audiosObject.audioUri = value["AudioUri"].asString(); + if(!value["AudioRate"].isNull()) + audiosObject.audioRate = std::stoi(value["AudioRate"].asString()); + if(!value["SourceType"].isNull()) + audiosObject.sourceType = value["SourceType"].asString(); + if(!value["ModifyTime"].isNull()) + audiosObject.modifyTime = value["ModifyTime"].asString(); + if(!value["FileSize"].isNull()) + audiosObject.fileSize = std::stoi(value["FileSize"].asString()); + if(!value["SourceUri"].isNull()) + audiosObject.sourceUri = value["SourceUri"].asString(); + if(!value["CreateTime"].isNull()) + audiosObject.createTime = value["CreateTime"].asString(); + if(!value["RemarksA"].isNull()) + audiosObject.remarksA = value["RemarksA"].asString(); + if(!value["RemarksB"].isNull()) + audiosObject.remarksB = value["RemarksB"].asString(); + if(!value["AudioTextsStatus"].isNull()) + audiosObject.audioTextsStatus = value["AudioTextsStatus"].asString(); + if(!value["AudioTextsModifyTime"].isNull()) + audiosObject.audioTextsModifyTime = value["AudioTextsModifyTime"].asString(); + if(!value["ProcessModifyTime"].isNull()) + audiosObject.processModifyTime = value["ProcessModifyTime"].asString(); + if(!value["ProcessStatus"].isNull()) + audiosObject.processStatus = value["ProcessStatus"].asString(); + if(!value["SourcePosition"].isNull()) + audiosObject.sourcePosition = value["SourcePosition"].asString(); + if(!value["AudioFormat"].isNull()) + audiosObject.audioFormat = value["AudioFormat"].asString(); + if(!value["AudioTextsFailReason"].isNull()) + audiosObject.audioTextsFailReason = value["AudioTextsFailReason"].asString(); + if(!value["ProcessFailReason"].isNull()) + audiosObject.processFailReason = value["ProcessFailReason"].asString(); + if(!value["RemarksC"].isNull()) + audiosObject.remarksC = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + audiosObject.remarksD = value["RemarksD"].asString(); + if(!value["ExternalId"].isNull()) + audiosObject.externalId = value["ExternalId"].asString(); + auto allAudioTexts = value["AudioTexts"]["AudioTextsItem"]; + for (auto value : allAudioTexts) + { + AudiosItem::AudioTextsItem audioTextsObject; + if(!value["Text"].isNull()) + audioTextsObject.text = value["Text"].asString(); + if(!value["BeginTime"].isNull()) + audioTextsObject.beginTime = std::stof(value["BeginTime"].asString()); + if(!value["EndTime"].isNull()) + audioTextsObject.endTime = std::stof(value["EndTime"].asString()); + if(!value["SilenceDuration"].isNull()) + audioTextsObject.silenceDuration = std::stof(value["SilenceDuration"].asString()); + if(!value["EmotionValue"].isNull()) + audioTextsObject.emotionValue = std::stof(value["EmotionValue"].asString()); + if(!value["ChannelId"].isNull()) + audioTextsObject.channelId = std::stoi(value["ChannelId"].asString()); + if(!value["SpeechRate"].isNull()) + audioTextsObject.speechRate = std::stoi(value["SpeechRate"].asString()); + if(!value["Confidence"].isNull()) + audioTextsObject.confidence = std::stof(value["Confidence"].asString()); + if(!value["Person"].isNull()) + audioTextsObject.person = value["Person"].asString(); + if(!value["Library"].isNull()) + audioTextsObject.library = value["Library"].asString(); + audiosObject.audioTexts.push_back(audioTextsObject); + } + audios_.push_back(audiosObject); + } + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["VideoUri"].isNull()) + videoUri_ = value["VideoUri"].asString(); + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListVideoAudiosResult::getAudios()const +{ + return audios_; +} + +std::string ListVideoAudiosResult::getVideoUri()const +{ + return videoUri_; +} + +std::string ListVideoAudiosResult::getSetId()const +{ + return setId_; +} + +std::string ListVideoAudiosResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListVideoFramesRequest.cc b/imm/src/model/ListVideoFramesRequest.cc new file mode 100755 index 000000000..b56d40f3f --- /dev/null +++ b/imm/src/model/ListVideoFramesRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListVideoFramesRequest; + +ListVideoFramesRequest::ListVideoFramesRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListVideoFrames") +{} + +ListVideoFramesRequest::~ListVideoFramesRequest() +{} + +std::string ListVideoFramesRequest::getVideoUri()const +{ + return videoUri_; +} + +void ListVideoFramesRequest::setVideoUri(const std::string& videoUri) +{ + videoUri_ = videoUri; + setParameter("VideoUri", videoUri); +} + +std::string ListVideoFramesRequest::getRegionId()const +{ + return regionId_; +} + +void ListVideoFramesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListVideoFramesRequest::getMarker()const +{ + return marker_; +} + +void ListVideoFramesRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListVideoFramesRequest::getProject()const +{ + return project_; +} + +void ListVideoFramesRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListVideoFramesRequest::getSetId()const +{ + return setId_; +} + +void ListVideoFramesRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string ListVideoFramesRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListVideoFramesRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListVideoFramesResult.cc b/imm/src/model/ListVideoFramesResult.cc new file mode 100755 index 000000000..df951e70e --- /dev/null +++ b/imm/src/model/ListVideoFramesResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideoFramesResult::ListVideoFramesResult() : + ServiceResult() +{} + +ListVideoFramesResult::ListVideoFramesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideoFramesResult::~ListVideoFramesResult() +{} + +void ListVideoFramesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allFrames = value["Frames"]["FramesItem"]; + for (auto value : allFrames) + { + FramesItem framesObject; + if(!value["FacesModifyTime"].isNull()) + framesObject.facesModifyTime = value["FacesModifyTime"].asString(); + if(!value["OCRModifyTime"].isNull()) + framesObject.oCRModifyTime = value["OCRModifyTime"].asString(); + if(!value["OCRStatus"].isNull()) + framesObject.oCRStatus = value["OCRStatus"].asString(); + if(!value["SourcePosition"].isNull()) + framesObject.sourcePosition = value["SourcePosition"].asString(); + if(!value["Exif"].isNull()) + framesObject.exif = value["Exif"].asString(); + if(!value["ImageUri"].isNull()) + framesObject.imageUri = value["ImageUri"].asString(); + if(!value["ImageWidth"].isNull()) + framesObject.imageWidth = std::stoi(value["ImageWidth"].asString()); + if(!value["ImageFormat"].isNull()) + framesObject.imageFormat = value["ImageFormat"].asString(); + if(!value["SourceType"].isNull()) + framesObject.sourceType = value["SourceType"].asString(); + if(!value["ModifyTime"].isNull()) + framesObject.modifyTime = value["ModifyTime"].asString(); + if(!value["FileSize"].isNull()) + framesObject.fileSize = std::stoi(value["FileSize"].asString()); + if(!value["SourceUri"].isNull()) + framesObject.sourceUri = value["SourceUri"].asString(); + if(!value["CreateTime"].isNull()) + framesObject.createTime = value["CreateTime"].asString(); + if(!value["FacesStatus"].isNull()) + framesObject.facesStatus = value["FacesStatus"].asString(); + if(!value["RemarksA"].isNull()) + framesObject.remarksA = value["RemarksA"].asString(); + if(!value["ImageHeight"].isNull()) + framesObject.imageHeight = std::stoi(value["ImageHeight"].asString()); + if(!value["RemarksB"].isNull()) + framesObject.remarksB = value["RemarksB"].asString(); + if(!value["ImageTime"].isNull()) + framesObject.imageTime = value["ImageTime"].asString(); + if(!value["Orientation"].isNull()) + framesObject.orientation = value["Orientation"].asString(); + if(!value["Location"].isNull()) + framesObject.location = value["Location"].asString(); + if(!value["OCRFailReason"].isNull()) + framesObject.oCRFailReason = value["OCRFailReason"].asString(); + if(!value["FacesFailReason"].isNull()) + framesObject.facesFailReason = value["FacesFailReason"].asString(); + if(!value["TagsFailReason"].isNull()) + framesObject.tagsFailReason = value["TagsFailReason"].asString(); + if(!value["TagsModifyTime"].isNull()) + framesObject.tagsModifyTime = value["TagsModifyTime"].asString(); + if(!value["CelebrityStatus"].isNull()) + framesObject.celebrityStatus = value["CelebrityStatus"].asString(); + if(!value["CelebrityModifyTime"].isNull()) + framesObject.celebrityModifyTime = value["CelebrityModifyTime"].asString(); + if(!value["CelebrityFailReason"].isNull()) + framesObject.celebrityFailReason = value["CelebrityFailReason"].asString(); + if(!value["TagsStatus"].isNull()) + framesObject.tagsStatus = value["TagsStatus"].asString(); + if(!value["RemarksC"].isNull()) + framesObject.remarksC = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + framesObject.remarksD = value["RemarksD"].asString(); + if(!value["ExternalId"].isNull()) + framesObject.externalId = value["ExternalId"].asString(); + auto allFaces = value["Faces"]["FacesItem"]; + for (auto value : allFaces) + { + FramesItem::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()); + framesObject.faces.push_back(facesObject); + } + auto allTags = value["Tags"]["TagsItem"]; + for (auto value : allTags) + { + FramesItem::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(); + framesObject.tags.push_back(tagsObject); + } + auto allOCR = value["OCR"]["OCRItem"]; + for (auto value : allOCR) + { + FramesItem::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()); + framesObject.oCR.push_back(oCRObject); + } + auto allCelebrity = value["Celebrity"]["CelebrityItem"]; + for (auto value : allCelebrity) + { + FramesItem::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()); + framesObject.celebrity.push_back(celebrityObject); + } + frames_.push_back(framesObject); + } + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["VideoUri"].isNull()) + videoUri_ = value["VideoUri"].asString(); + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListVideoFramesResult::getFrames()const +{ + return frames_; +} + +std::string ListVideoFramesResult::getVideoUri()const +{ + return videoUri_; +} + +std::string ListVideoFramesResult::getSetId()const +{ + return setId_; +} + +std::string ListVideoFramesResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListVideoTasksRequest.cc b/imm/src/model/ListVideoTasksRequest.cc new file mode 100755 index 000000000..23ae11bf4 --- /dev/null +++ b/imm/src/model/ListVideoTasksRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListVideoTasksRequest; + +ListVideoTasksRequest::ListVideoTasksRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListVideoTasks") +{} + +ListVideoTasksRequest::~ListVideoTasksRequest() +{} + +int ListVideoTasksRequest::getMaxKeys()const +{ + return maxKeys_; +} + +void ListVideoTasksRequest::setMaxKeys(int maxKeys) +{ + maxKeys_ = maxKeys; + setParameter("MaxKeys", std::to_string(maxKeys)); +} + +std::string ListVideoTasksRequest::getTaskType()const +{ + return taskType_; +} + +void ListVideoTasksRequest::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; + setParameter("TaskType", taskType); +} + +std::string ListVideoTasksRequest::getRegionId()const +{ + return regionId_; +} + +void ListVideoTasksRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListVideoTasksRequest::getMarker()const +{ + return marker_; +} + +void ListVideoTasksRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListVideoTasksRequest::getProject()const +{ + return project_; +} + +void ListVideoTasksRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListVideoTasksRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListVideoTasksRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListVideoTasksResult.cc b/imm/src/model/ListVideoTasksResult.cc new file mode 100755 index 000000000..5955aee85 --- /dev/null +++ b/imm/src/model/ListVideoTasksResult.cc @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideoTasksResult::ListVideoTasksResult() : + ServiceResult() +{} + +ListVideoTasksResult::ListVideoTasksResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideoTasksResult::~ListVideoTasksResult() +{} + +void ListVideoTasksResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allTasks = value["Tasks"]["TasksItem"]; + for (auto value : allTasks) + { + TasksItem tasksObject; + if(!value["Status"].isNull()) + tasksObject.status = value["Status"].asString(); + if(!value["TaskId"].isNull()) + tasksObject.taskId = value["TaskId"].asString(); + if(!value["TaskType"].isNull()) + tasksObject.taskType = value["TaskType"].asString(); + if(!value["Parameters"].isNull()) + tasksObject.parameters = value["Parameters"].asString(); + if(!value["Result"].isNull()) + tasksObject.result = value["Result"].asString(); + if(!value["StartTime"].isNull()) + tasksObject.startTime = value["StartTime"].asString(); + if(!value["EndTime"].isNull()) + tasksObject.endTime = value["EndTime"].asString(); + if(!value["ErrorMessage"].isNull()) + tasksObject.errorMessage = value["ErrorMessage"].asString(); + if(!value["NotifyEndpoint"].isNull()) + tasksObject.notifyEndpoint = value["NotifyEndpoint"].asString(); + if(!value["NotifyTopicName"].isNull()) + tasksObject.notifyTopicName = value["NotifyTopicName"].asString(); + if(!value["Progress"].isNull()) + tasksObject.progress = std::stoi(value["Progress"].asString()); + tasks_.push_back(tasksObject); + } + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::vector ListVideoTasksResult::getTasks()const +{ + return tasks_; +} + +std::string ListVideoTasksResult::getNextMarker()const +{ + return nextMarker_; +} + diff --git a/imm/src/model/ListVideosRequest.cc b/imm/src/model/ListVideosRequest.cc new file mode 100755 index 000000000..1c21c97f5 --- /dev/null +++ b/imm/src/model/ListVideosRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::ListVideosRequest; + +ListVideosRequest::ListVideosRequest() : + RpcServiceRequest("imm", "2017-09-06", "ListVideos") +{} + +ListVideosRequest::~ListVideosRequest() +{} + +std::string ListVideosRequest::getRegionId()const +{ + return regionId_; +} + +void ListVideosRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListVideosRequest::getMarker()const +{ + return marker_; +} + +void ListVideosRequest::setMarker(const std::string& marker) +{ + marker_ = marker; + setParameter("Marker", marker); +} + +std::string ListVideosRequest::getProject()const +{ + return project_; +} + +void ListVideosRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string ListVideosRequest::getSetId()const +{ + return setId_; +} + +void ListVideosRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string ListVideosRequest::getCreateTimeStart()const +{ + return createTimeStart_; +} + +void ListVideosRequest::setCreateTimeStart(const std::string& createTimeStart) +{ + createTimeStart_ = createTimeStart; + setParameter("CreateTimeStart", createTimeStart); +} + +std::string ListVideosRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void ListVideosRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/ListVideosResult.cc b/imm/src/model/ListVideosResult.cc new file mode 100755 index 000000000..8068867d4 --- /dev/null +++ b/imm/src/model/ListVideosResult.cc @@ -0,0 +1,162 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +ListVideosResult::ListVideosResult() : + ServiceResult() +{} + +ListVideosResult::ListVideosResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListVideosResult::~ListVideosResult() +{} + +void ListVideosResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allVideos = value["Videos"]["VideosItem"]; + for (auto value : allVideos) + { + VideosItem videosObject; + if(!value["VideoUri"].isNull()) + videosObject.videoUri = value["VideoUri"].asString(); + if(!value["RemarksA"].isNull()) + videosObject.remarksA = value["RemarksA"].asString(); + if(!value["RemarksB"].isNull()) + videosObject.remarksB = value["RemarksB"].asString(); + if(!value["CreateTime"].isNull()) + videosObject.createTime = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + videosObject.modifyTime = value["ModifyTime"].asString(); + if(!value["VideoWidth"].isNull()) + videosObject.videoWidth = std::stoi(value["VideoWidth"].asString()); + if(!value["VideoHeight"].isNull()) + videosObject.videoHeight = std::stoi(value["VideoHeight"].asString()); + if(!value["VideoFormat"].isNull()) + videosObject.videoFormat = value["VideoFormat"].asString(); + if(!value["VideoDuration"].isNull()) + videosObject.videoDuration = std::stof(value["VideoDuration"].asString()); + if(!value["FileSize"].isNull()) + videosObject.fileSize = std::stoi(value["FileSize"].asString()); + if(!value["VideoFrames"].isNull()) + videosObject.videoFrames = std::stoi(value["VideoFrames"].asString()); + if(!value["SourceType"].isNull()) + videosObject.sourceType = value["SourceType"].asString(); + if(!value["SourceUri"].isNull()) + videosObject.sourceUri = value["SourceUri"].asString(); + if(!value["SourcePosition"].isNull()) + videosObject.sourcePosition = value["SourcePosition"].asString(); + if(!value["ProcessStatus"].isNull()) + videosObject.processStatus = value["ProcessStatus"].asString(); + if(!value["ProcessModifyTime"].isNull()) + videosObject.processModifyTime = value["ProcessModifyTime"].asString(); + if(!value["VideoTagsStatus"].isNull()) + videosObject.videoTagsStatus = value["VideoTagsStatus"].asString(); + if(!value["VideoTagsModifyTime"].isNull()) + videosObject.videoTagsModifyTime = value["VideoTagsModifyTime"].asString(); + if(!value["CelebrityStatus"].isNull()) + videosObject.celebrityStatus = value["CelebrityStatus"].asString(); + if(!value["CelebrityModifyTime"].isNull()) + videosObject.celebrityModifyTime = value["CelebrityModifyTime"].asString(); + if(!value["CelebrityFailReason"].isNull()) + videosObject.celebrityFailReason = value["CelebrityFailReason"].asString(); + if(!value["VideoTagsFailReason"].isNull()) + videosObject.videoTagsFailReason = value["VideoTagsFailReason"].asString(); + if(!value["ProcessFailReason"].isNull()) + videosObject.processFailReason = value["ProcessFailReason"].asString(); + if(!value["RemarksC"].isNull()) + videosObject.remarksC = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + videosObject.remarksD = value["RemarksD"].asString(); + if(!value["ExternalId"].isNull()) + videosObject.externalId = value["ExternalId"].asString(); + auto allVideoTags = value["VideoTags"]["VideoTagsItem"]; + for (auto value : allVideoTags) + { + VideosItem::VideoTagsItem videoTagsObject; + if(!value["VideoTagName"].isNull()) + videoTagsObject.videoTagName = value["VideoTagName"].asString(); + if(!value["VideoTagEnName"].isNull()) + videoTagsObject.videoTagEnName = value["VideoTagEnName"].asString(); + if(!value["VideoTagConfidence"].isNull()) + videoTagsObject.videoTagConfidence = std::stof(value["VideoTagConfidence"].asString()); + videosObject.videoTags.push_back(videoTagsObject); + } + auto allCelebrity = value["Celebrity"]["CelebrityItem"]; + for (auto value : allCelebrity) + { + VideosItem::CelebrityItem celebrityObject; + if(!value["CelebrityName"].isNull()) + celebrityObject.celebrityName = value["CelebrityName"].asString(); + if(!value["CelebrityNum"].isNull()) + celebrityObject.celebrityNum = std::stoi(value["CelebrityNum"].asString()); + if(!value["CelebrityLibraryName"].isNull()) + celebrityObject.celebrityLibraryName = value["CelebrityLibraryName"].asString(); + videosObject.celebrity.push_back(celebrityObject); + } + auto allPersons = value["Persons"]["PersonsItem"]; + for (auto value : allPersons) + { + VideosItem::PersonsItem personsObject; + if(!value["PersonId"].isNull()) + personsObject.personId = value["PersonId"].asString(); + if(!value["Age"].isNull()) + personsObject.age = std::stoi(value["Age"].asString()); + if(!value["AgeConfidence"].isNull()) + personsObject.ageConfidence = std::stof(value["AgeConfidence"].asString()); + if(!value["Gender"].isNull()) + personsObject.gender = value["Gender"].asString(); + if(!value["GenderConfidence"].isNull()) + personsObject.genderConfidence = std::stof(value["GenderConfidence"].asString()); + videosObject.persons.push_back(personsObject); + } + videos_.push_back(videosObject); + } + if(!value["SetId"].isNull()) + setId_ = value["SetId"].asString(); + if(!value["NextMarker"].isNull()) + nextMarker_ = value["NextMarker"].asString(); + +} + +std::string ListVideosResult::getSetId()const +{ + return setId_; +} + +std::string ListVideosResult::getNextMarker()const +{ + return nextMarker_; +} + +std::vector ListVideosResult::getVideos()const +{ + return videos_; +} + diff --git a/imm/src/model/PhotoProcessRequest.cc b/imm/src/model/PhotoProcessRequest.cc new file mode 100755 index 000000000..8ca62379d --- /dev/null +++ b/imm/src/model/PhotoProcessRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Imm::Model::PhotoProcessRequest; + +PhotoProcessRequest::PhotoProcessRequest() : + RpcServiceRequest("imm", "2017-09-06", "PhotoProcess") +{} + +PhotoProcessRequest::~PhotoProcessRequest() +{} + +std::string PhotoProcessRequest::getNotifyTopicName()const +{ + return notifyTopicName_; +} + +void PhotoProcessRequest::setNotifyTopicName(const std::string& notifyTopicName) +{ + notifyTopicName_ = notifyTopicName; + setParameter("NotifyTopicName", notifyTopicName); +} + +std::string PhotoProcessRequest::getRegionId()const +{ + return regionId_; +} + +void PhotoProcessRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string PhotoProcessRequest::getNotifyEndpoint()const +{ + return notifyEndpoint_; +} + +void PhotoProcessRequest::setNotifyEndpoint(const std::string& notifyEndpoint) +{ + notifyEndpoint_ = notifyEndpoint; + setParameter("NotifyEndpoint", notifyEndpoint); +} + +std::string PhotoProcessRequest::getProject()const +{ + return project_; +} + +void PhotoProcessRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string PhotoProcessRequest::getExternalID()const +{ + return externalID_; +} + +void PhotoProcessRequest::setExternalID(const std::string& externalID) +{ + externalID_ = externalID; + setParameter("ExternalID", externalID); +} + +std::string PhotoProcessRequest::getSrcUri()const +{ + return srcUri_; +} + +void PhotoProcessRequest::setSrcUri(const std::string& srcUri) +{ + srcUri_ = srcUri; + setParameter("SrcUri", srcUri); +} + +std::string PhotoProcessRequest::getStyle()const +{ + return style_; +} + +void PhotoProcessRequest::setStyle(const std::string& style) +{ + style_ = style; + setParameter("Style", style); +} + +std::string PhotoProcessRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PhotoProcessRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string PhotoProcessRequest::getTgtUri()const +{ + return tgtUri_; +} + +void PhotoProcessRequest::setTgtUri(const std::string& tgtUri) +{ + tgtUri_ = tgtUri; + setParameter("TgtUri", tgtUri); +} + diff --git a/imm/src/model/PhotoProcessResult.cc b/imm/src/model/PhotoProcessResult.cc new file mode 100755 index 000000000..6bc778d73 --- /dev/null +++ b/imm/src/model/PhotoProcessResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +PhotoProcessResult::PhotoProcessResult() : + ServiceResult() +{} + +PhotoProcessResult::PhotoProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PhotoProcessResult::~PhotoProcessResult() +{} + +void PhotoProcessResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + if(!value["TgtLoc"].isNull()) + tgtLoc_ = value["TgtLoc"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["Percent"].isNull()) + percent_ = std::stoi(value["Percent"].asString()); + +} + +std::string PhotoProcessResult::getStatus()const +{ + return status_; +} + +std::string PhotoProcessResult::getTaskId()const +{ + return taskId_; +} + +int PhotoProcessResult::getPercent()const +{ + return percent_; +} + +std::string PhotoProcessResult::getTgtLoc()const +{ + return tgtLoc_; +} + +std::string PhotoProcessResult::getCreateTime()const +{ + return createTime_; +} + diff --git a/imm/src/model/PutProjectRequest.cc b/imm/src/model/PutProjectRequest.cc new file mode 100755 index 000000000..4dd6c7099 --- /dev/null +++ b/imm/src/model/PutProjectRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::PutProjectRequest; + +PutProjectRequest::PutProjectRequest() : + RpcServiceRequest("imm", "2017-09-06", "PutProject") +{} + +PutProjectRequest::~PutProjectRequest() +{} + +int PutProjectRequest::getCU()const +{ + return cU_; +} + +void PutProjectRequest::setCU(int cU) +{ + cU_ = cU; + setParameter("CU", std::to_string(cU)); +} + +std::string PutProjectRequest::getRegionId()const +{ + return regionId_; +} + +void PutProjectRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string PutProjectRequest::getServiceRole()const +{ + return serviceRole_; +} + +void PutProjectRequest::setServiceRole(const std::string& serviceRole) +{ + serviceRole_ = serviceRole; + setParameter("ServiceRole", serviceRole); +} + +std::string PutProjectRequest::getProject()const +{ + return project_; +} + +void PutProjectRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string PutProjectRequest::getBillingType()const +{ + return billingType_; +} + +void PutProjectRequest::setBillingType(const std::string& billingType) +{ + billingType_ = billingType; + setParameter("BillingType", billingType); +} + +std::string PutProjectRequest::getType()const +{ + return type_; +} + +void PutProjectRequest::setType(const std::string& type) +{ + type_ = type; + setParameter("Type", type); +} + +std::string PutProjectRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void PutProjectRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/PutProjectResult.cc b/imm/src/model/PutProjectResult.cc new file mode 100755 index 000000000..de68ce706 --- /dev/null +++ b/imm/src/model/PutProjectResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +PutProjectResult::PutProjectResult() : + ServiceResult() +{} + +PutProjectResult::PutProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutProjectResult::~PutProjectResult() +{} + +void PutProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Project"].isNull()) + project_ = value["Project"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["ServiceRole"].isNull()) + serviceRole_ = value["ServiceRole"].asString(); + if(!value["CU"].isNull()) + cU_ = std::stoi(value["CU"].asString()); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + if(!value["Endpoint"].isNull()) + endpoint_ = value["Endpoint"].asString(); + if(!value["BillingType"].isNull()) + billingType_ = value["BillingType"].asString(); + +} + +std::string PutProjectResult::getProject()const +{ + return project_; +} + +std::string PutProjectResult::getModifyTime()const +{ + return modifyTime_; +} + +int PutProjectResult::getCU()const +{ + return cU_; +} + +std::string PutProjectResult::getType()const +{ + return type_; +} + +std::string PutProjectResult::getServiceRole()const +{ + return serviceRole_; +} + +std::string PutProjectResult::getEndpoint()const +{ + return endpoint_; +} + +std::string PutProjectResult::getCreateTime()const +{ + return createTime_; +} + +std::string PutProjectResult::getBillingType()const +{ + return billingType_; +} + diff --git a/imm/src/model/RegistFaceRequest.cc b/imm/src/model/RegistFaceRequest.cc new file mode 100755 index 000000000..272c064e7 --- /dev/null +++ b/imm/src/model/RegistFaceRequest.cc @@ -0,0 +1,126 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Imm::Model::RegistFaceRequest; + +RegistFaceRequest::RegistFaceRequest() : + RpcServiceRequest("imm", "2017-09-06", "RegistFace") +{} + +RegistFaceRequest::~RegistFaceRequest() +{} + +bool RegistFaceRequest::getChooseBiggestFace()const +{ + return chooseBiggestFace_; +} + +void RegistFaceRequest::setChooseBiggestFace(bool chooseBiggestFace) +{ + chooseBiggestFace_ = chooseBiggestFace; + setParameter("ChooseBiggestFace", chooseBiggestFace ? "true" : "false"); +} + +std::string RegistFaceRequest::getRegionId()const +{ + return regionId_; +} + +void RegistFaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +bool RegistFaceRequest::getIsQualityLimit()const +{ + return isQualityLimit_; +} + +void RegistFaceRequest::setIsQualityLimit(bool isQualityLimit) +{ + isQualityLimit_ = isQualityLimit; + setParameter("IsQualityLimit", isQualityLimit ? "true" : "false"); +} + +std::string RegistFaceRequest::getProject()const +{ + return project_; +} + +void RegistFaceRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string RegistFaceRequest::getSrcUri()const +{ + return srcUri_; +} + +void RegistFaceRequest::setSrcUri(const std::string& srcUri) +{ + srcUri_ = srcUri; + setParameter("SrcUri", srcUri); +} + +std::string RegistFaceRequest::getRegisterCheckLevel()const +{ + return registerCheckLevel_; +} + +void RegistFaceRequest::setRegisterCheckLevel(const std::string& registerCheckLevel) +{ + registerCheckLevel_ = registerCheckLevel; + setParameter("RegisterCheckLevel", registerCheckLevel); +} + +std::string RegistFaceRequest::getGroupName()const +{ + return groupName_; +} + +void RegistFaceRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + +std::string RegistFaceRequest::getUser()const +{ + return user_; +} + +void RegistFaceRequest::setUser(const std::string& user) +{ + user_ = user; + setParameter("User", user); +} + +std::string RegistFaceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void RegistFaceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/RegistFaceResult.cc b/imm/src/model/RegistFaceResult.cc new file mode 100755 index 000000000..a3424763f --- /dev/null +++ b/imm/src/model/RegistFaceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +RegistFaceResult::RegistFaceResult() : + ServiceResult() +{} + +RegistFaceResult::RegistFaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RegistFaceResult::~RegistFaceResult() +{} + +void RegistFaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allAxis = value["Axis"]["Axis"]; + for (const auto &item : allAxis) + axis_.push_back(item.asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); + if(!value["ImageMd5"].isNull()) + imageMd5_ = value["ImageMd5"].asString(); + if(!value["ImageId"].isNull()) + imageId_ = value["ImageId"].asString(); + if(!value["GroupName"].isNull()) + groupName_ = value["GroupName"].asString(); + if(!value["User"].isNull()) + user_ = value["User"].asString(); + if(!value["Roll"].isNull()) + roll_ = std::stof(value["Roll"].asString()); + if(!value["FaceId"].isNull()) + faceId_ = value["FaceId"].asString(); + if(!value["Yaw"].isNull()) + yaw_ = std::stof(value["Yaw"].asString()); + if(!value["Quality"].isNull()) + quality_ = std::stof(value["Quality"].asString()); + if(!value["Glasses"].isNull()) + glasses_ = std::stoi(value["Glasses"].asString()); + if(!value["Hat"].isNull()) + hat_ = std::stoi(value["Hat"].asString()); + if(!value["Pitch"].isNull()) + pitch_ = std::stof(value["Pitch"].asString()); + if(!value["Age"].isNull()) + age_ = std::stoi(value["Age"].asString()); + if(!value["Gender"].isNull()) + gender_ = value["Gender"].asString(); + +} + +std::string RegistFaceResult::getGroupName()const +{ + return groupName_; +} + +std::string RegistFaceResult::getFaceId()const +{ + return faceId_; +} + +std::string RegistFaceResult::getUser()const +{ + return user_; +} + +std::string RegistFaceResult::getGender()const +{ + return gender_; +} + +std::string RegistFaceResult::getImageUri()const +{ + return imageUri_; +} + +float RegistFaceResult::getYaw()const +{ + return yaw_; +} + +std::string RegistFaceResult::getGroupId()const +{ + return groupId_; +} + +float RegistFaceResult::getQuality()const +{ + return quality_; +} + +std::string RegistFaceResult::getImageId()const +{ + return imageId_; +} + +int RegistFaceResult::getGlasses()const +{ + return glasses_; +} + +float RegistFaceResult::getPitch()const +{ + return pitch_; +} + +int RegistFaceResult::getHat()const +{ + return hat_; +} + +float RegistFaceResult::getRoll()const +{ + return roll_; +} + +std::vector RegistFaceResult::getAxis()const +{ + return axis_; +} + +std::string RegistFaceResult::getImageMd5()const +{ + return imageMd5_; +} + +int RegistFaceResult::getAge()const +{ + return age_; +} + diff --git a/imm/src/model/SearchDocIndexRequest.cc b/imm/src/model/SearchDocIndexRequest.cc new file mode 100755 index 000000000..a4ef8ddfb --- /dev/null +++ b/imm/src/model/SearchDocIndexRequest.cc @@ -0,0 +1,258 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Imm::Model::SearchDocIndexRequest; + +SearchDocIndexRequest::SearchDocIndexRequest() : + RpcServiceRequest("imm", "2017-09-06", "SearchDocIndex") +{} + +SearchDocIndexRequest::~SearchDocIndexRequest() +{} + +int SearchDocIndexRequest::getModifiedTimeEnd()const +{ + return modifiedTimeEnd_; +} + +void SearchDocIndexRequest::setModifiedTimeEnd(int modifiedTimeEnd) +{ + modifiedTimeEnd_ = modifiedTimeEnd; + setParameter("ModifiedTimeEnd", std::to_string(modifiedTimeEnd)); +} + +std::string SearchDocIndexRequest::getCustomKey1()const +{ + return customKey1_; +} + +void SearchDocIndexRequest::setCustomKey1(const std::string& customKey1) +{ + customKey1_ = customKey1; + setParameter("CustomKey1", customKey1); +} + +std::string SearchDocIndexRequest::getSet()const +{ + return set_; +} + +void SearchDocIndexRequest::setSet(const std::string& set) +{ + set_ = set; + setParameter("Set", set); +} + +int SearchDocIndexRequest::getSizeLimitEnd()const +{ + return sizeLimitEnd_; +} + +void SearchDocIndexRequest::setSizeLimitEnd(int sizeLimitEnd) +{ + sizeLimitEnd_ = sizeLimitEnd; + setParameter("SizeLimitEnd", std::to_string(sizeLimitEnd)); +} + +std::string SearchDocIndexRequest::getCustomKey5()const +{ + return customKey5_; +} + +void SearchDocIndexRequest::setCustomKey5(const std::string& customKey5) +{ + customKey5_ = customKey5; + setParameter("CustomKey5", customKey5); +} + +int SearchDocIndexRequest::getOffset()const +{ + return offset_; +} + +void SearchDocIndexRequest::setOffset(int offset) +{ + offset_ = offset; + setParameter("Offset", std::to_string(offset)); +} + +std::string SearchDocIndexRequest::getCustomKey4()const +{ + return customKey4_; +} + +void SearchDocIndexRequest::setCustomKey4(const std::string& customKey4) +{ + customKey4_ = customKey4; + setParameter("CustomKey4", customKey4); +} + +std::string SearchDocIndexRequest::getCustomKey3()const +{ + return customKey3_; +} + +void SearchDocIndexRequest::setCustomKey3(const std::string& customKey3) +{ + customKey3_ = customKey3; + setParameter("CustomKey3", customKey3); +} + +std::string SearchDocIndexRequest::getCustomKey2()const +{ + return customKey2_; +} + +void SearchDocIndexRequest::setCustomKey2(const std::string& customKey2) +{ + customKey2_ = customKey2; + setParameter("CustomKey2", customKey2); +} + +std::string SearchDocIndexRequest::getProject()const +{ + return project_; +} + +void SearchDocIndexRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +int SearchDocIndexRequest::getModifiedTimeStart()const +{ + return modifiedTimeStart_; +} + +void SearchDocIndexRequest::setModifiedTimeStart(int modifiedTimeStart) +{ + modifiedTimeStart_ = modifiedTimeStart; + setParameter("ModifiedTimeStart", std::to_string(modifiedTimeStart)); +} + +int SearchDocIndexRequest::getPageNumLimitStart()const +{ + return pageNumLimitStart_; +} + +void SearchDocIndexRequest::setPageNumLimitStart(int pageNumLimitStart) +{ + pageNumLimitStart_ = pageNumLimitStart; + setParameter("PageNumLimitStart", std::to_string(pageNumLimitStart)); +} + +std::string SearchDocIndexRequest::getCustomKey6()const +{ + return customKey6_; +} + +void SearchDocIndexRequest::setCustomKey6(const std::string& customKey6) +{ + customKey6_ = customKey6; + setParameter("CustomKey6", customKey6); +} + +std::string SearchDocIndexRequest::getContent()const +{ + return content_; +} + +void SearchDocIndexRequest::setContent(const std::string& content) +{ + content_ = content; + setParameter("Content", content); +} + +int SearchDocIndexRequest::getPageNumLimitEnd()const +{ + return pageNumLimitEnd_; +} + +void SearchDocIndexRequest::setPageNumLimitEnd(int pageNumLimitEnd) +{ + pageNumLimitEnd_ = pageNumLimitEnd; + setParameter("PageNumLimitEnd", std::to_string(pageNumLimitEnd)); +} + +std::string SearchDocIndexRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SearchDocIndexRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string SearchDocIndexRequest::getContentType()const +{ + return contentType_; +} + +void SearchDocIndexRequest::setContentType(const std::string& contentType) +{ + contentType_ = contentType; + setParameter("ContentType", contentType); +} + +int SearchDocIndexRequest::getSizeLimitStart()const +{ + return sizeLimitStart_; +} + +void SearchDocIndexRequest::setSizeLimitStart(int sizeLimitStart) +{ + sizeLimitStart_ = sizeLimitStart; + setParameter("SizeLimitStart", std::to_string(sizeLimitStart)); +} + +std::string SearchDocIndexRequest::getRegionId()const +{ + return regionId_; +} + +void SearchDocIndexRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string SearchDocIndexRequest::getName()const +{ + return name_; +} + +void SearchDocIndexRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +int SearchDocIndexRequest::getLimit()const +{ + return limit_; +} + +void SearchDocIndexRequest::setLimit(int limit) +{ + limit_ = limit; + setParameter("Limit", std::to_string(limit)); +} + diff --git a/imm/src/model/SearchDocIndexResult.cc b/imm/src/model/SearchDocIndexResult.cc new file mode 100755 index 000000000..ee8a8e5f1 --- /dev/null +++ b/imm/src/model/SearchDocIndexResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +SearchDocIndexResult::SearchDocIndexResult() : + ServiceResult() +{} + +SearchDocIndexResult::SearchDocIndexResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchDocIndexResult::~SearchDocIndexResult() +{} + +void SearchDocIndexResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allDocInfos = value["DocInfos"]["DocInfosItem"]; + for (auto value : allDocInfos) + { + DocInfosItem docInfosObject; + if(!value["UniqueId"].isNull()) + docInfosObject.uniqueId = value["UniqueId"].asString(); + if(!value["SrcUri"].isNull()) + docInfosObject.srcUri = value["SrcUri"].asString(); + if(!value["Name"].isNull()) + docInfosObject.name = value["Name"].asString(); + if(!value["ContentType"].isNull()) + docInfosObject.contentType = value["ContentType"].asString(); + if(!value["LastModified"].isNull()) + docInfosObject.lastModified = value["LastModified"].asString(); + if(!value["Size"].isNull()) + docInfosObject.size = std::stoi(value["Size"].asString()); + if(!value["PageNum"].isNull()) + docInfosObject.pageNum = std::stoi(value["PageNum"].asString()); + if(!value["CustomKey1"].isNull()) + docInfosObject.customKey1 = value["CustomKey1"].asString(); + if(!value["CustomKey2"].isNull()) + docInfosObject.customKey2 = value["CustomKey2"].asString(); + if(!value["CustomKey3"].isNull()) + docInfosObject.customKey3 = value["CustomKey3"].asString(); + if(!value["CustomKey4"].isNull()) + docInfosObject.customKey4 = value["CustomKey4"].asString(); + if(!value["CustomKey5"].isNull()) + docInfosObject.customKey5 = value["CustomKey5"].asString(); + if(!value["CustomKey6"].isNull()) + docInfosObject.customKey6 = value["CustomKey6"].asString(); + docInfos_.push_back(docInfosObject); + } + +} + +std::vector SearchDocIndexResult::getDocInfos()const +{ + return docInfos_; +} + diff --git a/imm/src/model/SearchFaceRequest.cc b/imm/src/model/SearchFaceRequest.cc new file mode 100755 index 000000000..fe6ecd013 --- /dev/null +++ b/imm/src/model/SearchFaceRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::SearchFaceRequest; + +SearchFaceRequest::SearchFaceRequest() : + RpcServiceRequest("imm", "2017-09-06", "SearchFace") +{} + +SearchFaceRequest::~SearchFaceRequest() +{} + +std::string SearchFaceRequest::getRegionId()const +{ + return regionId_; +} + +void SearchFaceRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +int SearchFaceRequest::getResultNum()const +{ + return resultNum_; +} + +void SearchFaceRequest::setResultNum(int resultNum) +{ + resultNum_ = resultNum; + setParameter("ResultNum", std::to_string(resultNum)); +} + +std::string SearchFaceRequest::getProject()const +{ + return project_; +} + +void SearchFaceRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string SearchFaceRequest::getSearchThresholdLevel()const +{ + return searchThresholdLevel_; +} + +void SearchFaceRequest::setSearchThresholdLevel(const std::string& searchThresholdLevel) +{ + searchThresholdLevel_ = searchThresholdLevel; + setParameter("SearchThresholdLevel", searchThresholdLevel); +} + +std::string SearchFaceRequest::getSrcUri()const +{ + return srcUri_; +} + +void SearchFaceRequest::setSrcUri(const std::string& srcUri) +{ + srcUri_ = srcUri; + setParameter("SrcUri", srcUri); +} + +bool SearchFaceRequest::getIsThreshold()const +{ + return isThreshold_; +} + +void SearchFaceRequest::setIsThreshold(bool isThreshold) +{ + isThreshold_ = isThreshold; + setParameter("IsThreshold", isThreshold ? "true" : "false"); +} + +std::string SearchFaceRequest::getGroupName()const +{ + return groupName_; +} + +void SearchFaceRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setParameter("GroupName", groupName); +} + +std::string SearchFaceRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void SearchFaceRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/SearchFaceResult.cc b/imm/src/model/SearchFaceResult.cc new file mode 100755 index 000000000..3f62c253a --- /dev/null +++ b/imm/src/model/SearchFaceResult.cc @@ -0,0 +1,116 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +SearchFaceResult::SearchFaceResult() : + ServiceResult() +{} + +SearchFaceResult::SearchFaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SearchFaceResult::~SearchFaceResult() +{} + +void SearchFaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + auto allResultFaces = value["ResultFaces"]["ResultFacesItem"]; + for (auto value : allResultFaces) + { + ResultFacesItem resultFacesObject; + if(!value["GroupId"].isNull()) + resultFacesObject.groupId = value["GroupId"].asString(); + if(!value["User"].isNull()) + resultFacesObject.user = value["User"].asString(); + if(!value["ImageId"].isNull()) + resultFacesObject.imageId = value["ImageId"].asString(); + if(!value["Score"].isNull()) + resultFacesObject.score = std::stof(value["Score"].asString()); + if(!value["ImageUri"].isNull()) + resultFacesObject.imageUri = value["ImageUri"].asString(); + if(!value["Glasses"].isNull()) + resultFacesObject.glasses = std::stoi(value["Glasses"].asString()); + if(!value["Hat"].isNull()) + resultFacesObject.hat = std::stoi(value["Hat"].asString()); + auto allAxis1 = value["Axis"]["Axis"]; + for (auto value : allAxis1) + resultFacesObject.axis1.push_back(value.asString()); + resultFaces_.push_back(resultFacesObject); + } + auto allAxis = value["Axis"]["Axis"]; + for (const auto &item : allAxis) + axis_.push_back(item.asString()); + if(!value["ImageUri"].isNull()) + imageUri_ = value["ImageUri"].asString(); + if(!value["GroupName"].isNull()) + groupName_ = value["GroupName"].asString(); + if(!value["Glasses"].isNull()) + glasses_ = std::stoi(value["Glasses"].asString()); + if(!value["Hat"].isNull()) + hat_ = std::stoi(value["Hat"].asString()); + if(!value["Score"].isNull()) + score_ = std::stof(value["Score"].asString()); + +} + +std::string SearchFaceResult::getGroupName()const +{ + return groupName_; +} + +float SearchFaceResult::getScore()const +{ + return score_; +} + +std::vector SearchFaceResult::getResultFaces()const +{ + return resultFaces_; +} + +int SearchFaceResult::getGlasses()const +{ + return glasses_; +} + +int SearchFaceResult::getHat()const +{ + return hat_; +} + +std::string SearchFaceResult::getImageUri()const +{ + return imageUri_; +} + +std::vector SearchFaceResult::getAxis()const +{ + return axis_; +} + diff --git a/imm/src/model/UpdateDocIndexMetaRequest.cc b/imm/src/model/UpdateDocIndexMetaRequest.cc new file mode 100755 index 000000000..7e1e6f25e --- /dev/null +++ b/imm/src/model/UpdateDocIndexMetaRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::UpdateDocIndexMetaRequest; + +UpdateDocIndexMetaRequest::UpdateDocIndexMetaRequest() : + RpcServiceRequest("imm", "2017-09-06", "UpdateDocIndexMeta") +{} + +UpdateDocIndexMetaRequest::~UpdateDocIndexMetaRequest() +{} + +std::string UpdateDocIndexMetaRequest::getCustomKey1()const +{ + return customKey1_; +} + +void UpdateDocIndexMetaRequest::setCustomKey1(const std::string& customKey1) +{ + customKey1_ = customKey1; + setParameter("CustomKey1", customKey1); +} + +std::string UpdateDocIndexMetaRequest::getSet()const +{ + return set_; +} + +void UpdateDocIndexMetaRequest::setSet(const std::string& set) +{ + set_ = set; + setParameter("Set", set); +} + +std::string UpdateDocIndexMetaRequest::getCustomKey5()const +{ + return customKey5_; +} + +void UpdateDocIndexMetaRequest::setCustomKey5(const std::string& customKey5) +{ + customKey5_ = customKey5; + setParameter("CustomKey5", customKey5); +} + +std::string UpdateDocIndexMetaRequest::getCustomKey4()const +{ + return customKey4_; +} + +void UpdateDocIndexMetaRequest::setCustomKey4(const std::string& customKey4) +{ + customKey4_ = customKey4; + setParameter("CustomKey4", customKey4); +} + +std::string UpdateDocIndexMetaRequest::getCustomKey3()const +{ + return customKey3_; +} + +void UpdateDocIndexMetaRequest::setCustomKey3(const std::string& customKey3) +{ + customKey3_ = customKey3; + setParameter("CustomKey3", customKey3); +} + +std::string UpdateDocIndexMetaRequest::getCustomKey2()const +{ + return customKey2_; +} + +void UpdateDocIndexMetaRequest::setCustomKey2(const std::string& customKey2) +{ + customKey2_ = customKey2; + setParameter("CustomKey2", customKey2); +} + +std::string UpdateDocIndexMetaRequest::getProject()const +{ + return project_; +} + +void UpdateDocIndexMetaRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string UpdateDocIndexMetaRequest::getCustomKey6()const +{ + return customKey6_; +} + +void UpdateDocIndexMetaRequest::setCustomKey6(const std::string& customKey6) +{ + customKey6_ = customKey6; + setParameter("CustomKey6", customKey6); +} + +std::string UpdateDocIndexMetaRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateDocIndexMetaRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string UpdateDocIndexMetaRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateDocIndexMetaRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateDocIndexMetaRequest::getName()const +{ + return name_; +} + +void UpdateDocIndexMetaRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string UpdateDocIndexMetaRequest::getUniqueId()const +{ + return uniqueId_; +} + +void UpdateDocIndexMetaRequest::setUniqueId(const std::string& uniqueId) +{ + uniqueId_ = uniqueId; + setParameter("UniqueId", uniqueId); +} + diff --git a/imm/src/model/UpdateDocIndexMetaResult.cc b/imm/src/model/UpdateDocIndexMetaResult.cc new file mode 100755 index 000000000..0584a929f --- /dev/null +++ b/imm/src/model/UpdateDocIndexMetaResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateDocIndexMetaResult::UpdateDocIndexMetaResult() : + ServiceResult() +{} + +UpdateDocIndexMetaResult::UpdateDocIndexMetaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateDocIndexMetaResult::~UpdateDocIndexMetaResult() +{} + +void UpdateDocIndexMetaResult::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(); + +} + +std::string UpdateDocIndexMetaResult::getIndexModifiedTime()const +{ + return indexModifiedTime_; +} + +std::string UpdateDocIndexMetaResult::getIndexCreatedTime()const +{ + return indexCreatedTime_; +} + diff --git a/imm/src/model/UpdateImageRequest.cc b/imm/src/model/UpdateImageRequest.cc new file mode 100755 index 000000000..44b628b08 --- /dev/null +++ b/imm/src/model/UpdateImageRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::UpdateImageRequest; + +UpdateImageRequest::UpdateImageRequest() : + RpcServiceRequest("imm", "2017-09-06", "UpdateImage") +{} + +UpdateImageRequest::~UpdateImageRequest() +{} + +std::string UpdateImageRequest::getRemarksB()const +{ + return remarksB_; +} + +void UpdateImageRequest::setRemarksB(const std::string& remarksB) +{ + remarksB_ = remarksB; + setParameter("RemarksB", remarksB); +} + +std::string UpdateImageRequest::getProject()const +{ + return project_; +} + +void UpdateImageRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string UpdateImageRequest::getRemarksA()const +{ + return remarksA_; +} + +void UpdateImageRequest::setRemarksA(const std::string& remarksA) +{ + remarksA_ = remarksA; + setParameter("RemarksA", remarksA); +} + +std::string UpdateImageRequest::getExternalId()const +{ + return externalId_; +} + +void UpdateImageRequest::setExternalId(const std::string& externalId) +{ + externalId_ = externalId; + setParameter("ExternalId", externalId); +} + +std::string UpdateImageRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateImageRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +std::string UpdateImageRequest::getImageUri()const +{ + return imageUri_; +} + +void UpdateImageRequest::setImageUri(const std::string& imageUri) +{ + imageUri_ = imageUri; + setParameter("ImageUri", imageUri); +} + +std::string UpdateImageRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateImageRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateImageRequest::getSourceUri()const +{ + return sourceUri_; +} + +void UpdateImageRequest::setSourceUri(const std::string& sourceUri) +{ + sourceUri_ = sourceUri; + setParameter("SourceUri", sourceUri); +} + +std::string UpdateImageRequest::getSourcePosition()const +{ + return sourcePosition_; +} + +void UpdateImageRequest::setSourcePosition(const std::string& sourcePosition) +{ + sourcePosition_ = sourcePosition; + setParameter("SourcePosition", sourcePosition); +} + +std::string UpdateImageRequest::getRemarksD()const +{ + return remarksD_; +} + +void UpdateImageRequest::setRemarksD(const std::string& remarksD) +{ + remarksD_ = remarksD; + setParameter("RemarksD", remarksD); +} + +std::string UpdateImageRequest::getRemarksC()const +{ + return remarksC_; +} + +void UpdateImageRequest::setRemarksC(const std::string& remarksC) +{ + remarksC_ = remarksC; + setParameter("RemarksC", remarksC); +} + +std::string UpdateImageRequest::getSetId()const +{ + return setId_; +} + +void UpdateImageRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string UpdateImageRequest::getSourceType()const +{ + return sourceType_; +} + +void UpdateImageRequest::setSourceType(const std::string& sourceType) +{ + sourceType_ = sourceType; + setParameter("SourceType", sourceType); +} + diff --git a/imm/src/model/UpdateImageResult.cc b/imm/src/model/UpdateImageResult.cc new file mode 100755 index 000000000..2b43d423d --- /dev/null +++ b/imm/src/model/UpdateImageResult.cc @@ -0,0 +1,108 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateImageResult::UpdateImageResult() : + ServiceResult() +{} + +UpdateImageResult::UpdateImageResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateImageResult::~UpdateImageResult() +{} + +void UpdateImageResult::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(); + if(!value["RemarksA"].isNull()) + remarksA_ = value["RemarksA"].asString(); + if(!value["RemarksB"].isNull()) + remarksB_ = value["RemarksB"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["RemarksC"].isNull()) + remarksC_ = value["RemarksC"].asString(); + if(!value["RemarksD"].isNull()) + remarksD_ = value["RemarksD"].asString(); + if(!value["ExternalId"].isNull()) + externalId_ = value["ExternalId"].asString(); + +} + +std::string UpdateImageResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string UpdateImageResult::getRemarksC()const +{ + return remarksC_; +} + +std::string UpdateImageResult::getRemarksD()const +{ + return remarksD_; +} + +std::string UpdateImageResult::getCreateTime()const +{ + return createTime_; +} + +std::string UpdateImageResult::getExternalId()const +{ + return externalId_; +} + +std::string UpdateImageResult::getSetId()const +{ + return setId_; +} + +std::string UpdateImageResult::getImageUri()const +{ + return imageUri_; +} + +std::string UpdateImageResult::getRemarksA()const +{ + return remarksA_; +} + +std::string UpdateImageResult::getRemarksB()const +{ + return remarksB_; +} + diff --git a/imm/src/model/UpdateProjectRequest.cc b/imm/src/model/UpdateProjectRequest.cc new file mode 100755 index 000000000..e96c1bdac --- /dev/null +++ b/imm/src/model/UpdateProjectRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::UpdateProjectRequest; + +UpdateProjectRequest::UpdateProjectRequest() : + RpcServiceRequest("imm", "2017-09-06", "UpdateProject") +{} + +UpdateProjectRequest::~UpdateProjectRequest() +{} + +std::string UpdateProjectRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateProjectRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateProjectRequest::getNewServiceRole()const +{ + return newServiceRole_; +} + +void UpdateProjectRequest::setNewServiceRole(const std::string& newServiceRole) +{ + newServiceRole_ = newServiceRole; + setParameter("NewServiceRole", newServiceRole); +} + +std::string UpdateProjectRequest::getProject()const +{ + return project_; +} + +void UpdateProjectRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string UpdateProjectRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateProjectRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + +int UpdateProjectRequest::getNewCU()const +{ + return newCU_; +} + +void UpdateProjectRequest::setNewCU(int newCU) +{ + newCU_ = newCU; + setParameter("NewCU", std::to_string(newCU)); +} + diff --git a/imm/src/model/UpdateProjectResult.cc b/imm/src/model/UpdateProjectResult.cc new file mode 100755 index 000000000..3d68b6cb5 --- /dev/null +++ b/imm/src/model/UpdateProjectResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateProjectResult::UpdateProjectResult() : + ServiceResult() +{} + +UpdateProjectResult::UpdateProjectResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateProjectResult::~UpdateProjectResult() +{} + +void UpdateProjectResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + + setRequestId(value["RequestId"].asString()); + if(!value["Project"].isNull()) + project_ = value["Project"].asString(); + if(!value["CreateTime"].isNull()) + createTime_ = value["CreateTime"].asString(); + if(!value["ModifyTime"].isNull()) + modifyTime_ = value["ModifyTime"].asString(); + if(!value["ServiceRole"].isNull()) + serviceRole_ = value["ServiceRole"].asString(); + if(!value["CU"].isNull()) + cU_ = std::stoi(value["CU"].asString()); + if(!value["Type"].isNull()) + type_ = value["Type"].asString(); + +} + +std::string UpdateProjectResult::getProject()const +{ + return project_; +} + +std::string UpdateProjectResult::getModifyTime()const +{ + return modifyTime_; +} + +int UpdateProjectResult::getCU()const +{ + return cU_; +} + +std::string UpdateProjectResult::getType()const +{ + return type_; +} + +std::string UpdateProjectResult::getServiceRole()const +{ + return serviceRole_; +} + +std::string UpdateProjectResult::getCreateTime()const +{ + return createTime_; +} + diff --git a/imm/src/model/UpdateSetRequest.cc b/imm/src/model/UpdateSetRequest.cc new file mode 100755 index 000000000..3effcb6ce --- /dev/null +++ b/imm/src/model/UpdateSetRequest.cc @@ -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 + +using AlibabaCloud::Imm::Model::UpdateSetRequest; + +UpdateSetRequest::UpdateSetRequest() : + RpcServiceRequest("imm", "2017-09-06", "UpdateSet") +{} + +UpdateSetRequest::~UpdateSetRequest() +{} + +std::string UpdateSetRequest::getSetName()const +{ + return setName_; +} + +void UpdateSetRequest::setSetName(const std::string& setName) +{ + setName_ = setName; + setParameter("SetName", setName); +} + +std::string UpdateSetRequest::getRegionId()const +{ + return regionId_; +} + +void UpdateSetRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string UpdateSetRequest::getProject()const +{ + return project_; +} + +void UpdateSetRequest::setProject(const std::string& project) +{ + project_ = project; + setParameter("Project", project); +} + +std::string UpdateSetRequest::getSetId()const +{ + return setId_; +} + +void UpdateSetRequest::setSetId(const std::string& setId) +{ + setId_ = setId; + setParameter("SetId", setId); +} + +std::string UpdateSetRequest::getAccessKeyId()const +{ + return accessKeyId_; +} + +void UpdateSetRequest::setAccessKeyId(const std::string& accessKeyId) +{ + accessKeyId_ = accessKeyId; + setParameter("AccessKeyId", accessKeyId); +} + diff --git a/imm/src/model/UpdateSetResult.cc b/imm/src/model/UpdateSetResult.cc new file mode 100755 index 000000000..4d68406b5 --- /dev/null +++ b/imm/src/model/UpdateSetResult.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Imm; +using namespace AlibabaCloud::Imm::Model; + +UpdateSetResult::UpdateSetResult() : + ServiceResult() +{} + +UpdateSetResult::UpdateSetResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSetResult::~UpdateSetResult() +{} + +void UpdateSetResult::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(); + +} + +std::string UpdateSetResult::getModifyTime()const +{ + return modifyTime_; +} + +std::string UpdateSetResult::getCreateTime()const +{ + return createTime_; +} + +std::string UpdateSetResult::getSetName()const +{ + return setName_; +} + +std::string UpdateSetResult::getSetId()const +{ + return setId_; +} +