diff --git a/CHANGELOG b/CHANGELOG index 811462242..bcf5f52d8 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-09-01 Version: 1.36.867 +- SubmitURLUploadJob, support S3 Storage. + 2021-09-01 Version: 1.36.866 - SDK updated. diff --git a/VERSION b/VERSION index e88686ea4..e18d73e64 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.866 \ No newline at end of file +1.36.867 \ No newline at end of file diff --git a/mts/CMakeLists.txt b/mts/CMakeLists.txt index 0d9871773..6bd6c6376 100644 --- a/mts/CMakeLists.txt +++ b/mts/CMakeLists.txt @@ -43,6 +43,8 @@ set(mts_public_header_model include/alibabacloud/mts/model/AddPipelineResult.h include/alibabacloud/mts/model/AddPornPipelineRequest.h include/alibabacloud/mts/model/AddPornPipelineResult.h + include/alibabacloud/mts/model/AddSmarttagTemplateRequest.h + include/alibabacloud/mts/model/AddSmarttagTemplateResult.h include/alibabacloud/mts/model/AddTemplateRequest.h include/alibabacloud/mts/model/AddTemplateResult.h include/alibabacloud/mts/model/AddTerrorismPipelineRequest.h @@ -61,6 +63,8 @@ set(mts_public_header_model include/alibabacloud/mts/model/CheckResourceResult.h include/alibabacloud/mts/model/CreateFpShotDBRequest.h include/alibabacloud/mts/model/CreateFpShotDBResult.h + include/alibabacloud/mts/model/CreateInferenceServerRequest.h + include/alibabacloud/mts/model/CreateInferenceServerResult.h include/alibabacloud/mts/model/CreateMcuTemplateRequest.h include/alibabacloud/mts/model/CreateMcuTemplateResult.h include/alibabacloud/mts/model/CreateSessionRequest.h @@ -85,12 +89,18 @@ set(mts_public_header_model include/alibabacloud/mts/model/DeleteMediaWorkflowResult.h include/alibabacloud/mts/model/DeletePipelineRequest.h include/alibabacloud/mts/model/DeletePipelineResult.h + include/alibabacloud/mts/model/DeleteSmarttagTemplateRequest.h + include/alibabacloud/mts/model/DeleteSmarttagTemplateResult.h include/alibabacloud/mts/model/DeleteTemplateRequest.h include/alibabacloud/mts/model/DeleteTemplateResult.h include/alibabacloud/mts/model/DeleteWaterMarkTemplateRequest.h include/alibabacloud/mts/model/DeleteWaterMarkTemplateResult.h include/alibabacloud/mts/model/DescribeMtsUserResourcePackageRequest.h include/alibabacloud/mts/model/DescribeMtsUserResourcePackageResult.h + include/alibabacloud/mts/model/DetectImageSyncRequest.h + include/alibabacloud/mts/model/DetectImageSyncResult.h + include/alibabacloud/mts/model/GetJobInfoRequest.h + include/alibabacloud/mts/model/GetJobInfoResult.h include/alibabacloud/mts/model/GetLicenseRequest.h include/alibabacloud/mts/model/GetLicenseResult.h include/alibabacloud/mts/model/GetPackageRequest.h @@ -105,10 +115,16 @@ set(mts_public_header_model include/alibabacloud/mts/model/ListCensorPipelineResult.h include/alibabacloud/mts/model/ListCoverPipelineRequest.h include/alibabacloud/mts/model/ListCoverPipelineResult.h + include/alibabacloud/mts/model/ListCustomPersonsRequest.h + include/alibabacloud/mts/model/ListCustomPersonsResult.h include/alibabacloud/mts/model/ListFpShotDBRequest.h include/alibabacloud/mts/model/ListFpShotDBResult.h + include/alibabacloud/mts/model/ListFpShotFilesRequest.h + include/alibabacloud/mts/model/ListFpShotFilesResult.h include/alibabacloud/mts/model/ListFpShotNotaryRequest.h include/alibabacloud/mts/model/ListFpShotNotaryResult.h + include/alibabacloud/mts/model/ListInferenceJobRequest.h + include/alibabacloud/mts/model/ListInferenceJobResult.h include/alibabacloud/mts/model/ListJobRequest.h include/alibabacloud/mts/model/ListJobResult.h include/alibabacloud/mts/model/ListMediaRequest.h @@ -153,14 +169,26 @@ set(mts_public_header_model include/alibabacloud/mts/model/QueryFacerecogJobListResult.h include/alibabacloud/mts/model/QueryFpCompareJobListRequest.h include/alibabacloud/mts/model/QueryFpCompareJobListResult.h + include/alibabacloud/mts/model/QueryFpDBDeleteJobListRequest.h + include/alibabacloud/mts/model/QueryFpDBDeleteJobListResult.h + include/alibabacloud/mts/model/QueryFpFileDeleteJobListRequest.h + include/alibabacloud/mts/model/QueryFpFileDeleteJobListResult.h include/alibabacloud/mts/model/QueryFpImportResultRequest.h include/alibabacloud/mts/model/QueryFpImportResultResult.h include/alibabacloud/mts/model/QueryFpShotJobListRequest.h include/alibabacloud/mts/model/QueryFpShotJobListResult.h + include/alibabacloud/mts/model/QueryIProductionJobRequest.h + include/alibabacloud/mts/model/QueryIProductionJobResult.h include/alibabacloud/mts/model/QueryIProductionJobListRequest.h include/alibabacloud/mts/model/QueryIProductionJobListResult.h include/alibabacloud/mts/model/QueryImageSearchJobListRequest.h include/alibabacloud/mts/model/QueryImageSearchJobListResult.h + include/alibabacloud/mts/model/QueryInferenceJobRequest.h + include/alibabacloud/mts/model/QueryInferenceJobResult.h + include/alibabacloud/mts/model/QueryInferenceServerRequest.h + include/alibabacloud/mts/model/QueryInferenceServerResult.h + include/alibabacloud/mts/model/QueryInnerJobRequest.h + include/alibabacloud/mts/model/QueryInnerJobResult.h include/alibabacloud/mts/model/QueryJobListRequest.h include/alibabacloud/mts/model/QueryJobListResult.h include/alibabacloud/mts/model/QueryMCJobListRequest.h @@ -197,6 +225,8 @@ set(mts_public_header_model include/alibabacloud/mts/model/QueryPornPipelineListResult.h include/alibabacloud/mts/model/QuerySmarttagJobRequest.h include/alibabacloud/mts/model/QuerySmarttagJobResult.h + include/alibabacloud/mts/model/QuerySmarttagTemplateListRequest.h + include/alibabacloud/mts/model/QuerySmarttagTemplateListResult.h include/alibabacloud/mts/model/QuerySnapshotJobListRequest.h include/alibabacloud/mts/model/QuerySnapshotJobListResult.h include/alibabacloud/mts/model/QuerySubtitleJobListRequest.h @@ -213,6 +243,8 @@ set(mts_public_header_model include/alibabacloud/mts/model/QueryVideoGifJobListResult.h include/alibabacloud/mts/model/QueryVideoPoseJobListRequest.h include/alibabacloud/mts/model/QueryVideoPoseJobListResult.h + include/alibabacloud/mts/model/QueryVideoQualityJobRequest.h + include/alibabacloud/mts/model/QueryVideoQualityJobResult.h include/alibabacloud/mts/model/QueryVideoSplitJobListRequest.h include/alibabacloud/mts/model/QueryVideoSplitJobListResult.h include/alibabacloud/mts/model/QueryVideoSummaryJobListRequest.h @@ -221,6 +253,8 @@ set(mts_public_header_model include/alibabacloud/mts/model/QueryWaterMarkTemplateListResult.h include/alibabacloud/mts/model/RefreshCdnDomainConfigsCacheRequest.h include/alibabacloud/mts/model/RefreshCdnDomainConfigsCacheResult.h + include/alibabacloud/mts/model/RegisterCustomFaceRequest.h + include/alibabacloud/mts/model/RegisterCustomFaceResult.h include/alibabacloud/mts/model/RegisterMediaDetailPersonRequest.h include/alibabacloud/mts/model/RegisterMediaDetailPersonResult.h include/alibabacloud/mts/model/RegisterMediaDetailScenarioRequest.h @@ -257,6 +291,8 @@ set(mts_public_header_model include/alibabacloud/mts/model/SearchWaterMarkTemplateResult.h include/alibabacloud/mts/model/SetAuthConfigRequest.h include/alibabacloud/mts/model/SetAuthConfigResult.h + include/alibabacloud/mts/model/StopIProductionJobRequest.h + include/alibabacloud/mts/model/StopIProductionJobResult.h include/alibabacloud/mts/model/SubmitAnalysisJobRequest.h include/alibabacloud/mts/model/SubmitAnalysisJobResult.h include/alibabacloud/mts/model/SubmitAnnotationJobRequest.h @@ -275,6 +311,10 @@ set(mts_public_header_model include/alibabacloud/mts/model/SubmitFacerecogJobResult.h include/alibabacloud/mts/model/SubmitFpCompareJobRequest.h include/alibabacloud/mts/model/SubmitFpCompareJobResult.h + include/alibabacloud/mts/model/SubmitFpDBDeleteJobRequest.h + include/alibabacloud/mts/model/SubmitFpDBDeleteJobResult.h + include/alibabacloud/mts/model/SubmitFpFileDeleteJobRequest.h + include/alibabacloud/mts/model/SubmitFpFileDeleteJobResult.h include/alibabacloud/mts/model/SubmitFpShotJobRequest.h include/alibabacloud/mts/model/SubmitFpShotJobResult.h include/alibabacloud/mts/model/SubmitIProductionJobRequest.h @@ -283,6 +323,10 @@ set(mts_public_header_model include/alibabacloud/mts/model/SubmitImageQualityJobResult.h include/alibabacloud/mts/model/SubmitImageSearchJobRequest.h include/alibabacloud/mts/model/SubmitImageSearchJobResult.h + include/alibabacloud/mts/model/SubmitInferenceJobRequest.h + include/alibabacloud/mts/model/SubmitInferenceJobResult.h + include/alibabacloud/mts/model/SubmitInnerJobRequest.h + include/alibabacloud/mts/model/SubmitInnerJobResult.h include/alibabacloud/mts/model/SubmitJobsRequest.h include/alibabacloud/mts/model/SubmitJobsResult.h include/alibabacloud/mts/model/SubmitMCJobRequest.h @@ -309,18 +353,26 @@ set(mts_public_header_model include/alibabacloud/mts/model/SubmitTagJobResult.h include/alibabacloud/mts/model/SubmitTerrorismJobRequest.h include/alibabacloud/mts/model/SubmitTerrorismJobResult.h + include/alibabacloud/mts/model/SubmitURLUploadJobRequest.h + include/alibabacloud/mts/model/SubmitURLUploadJobResult.h include/alibabacloud/mts/model/SubmitVideoGifJobRequest.h include/alibabacloud/mts/model/SubmitVideoGifJobResult.h include/alibabacloud/mts/model/SubmitVideoPoseJobRequest.h include/alibabacloud/mts/model/SubmitVideoPoseJobResult.h + include/alibabacloud/mts/model/SubmitVideoQualityJobRequest.h + include/alibabacloud/mts/model/SubmitVideoQualityJobResult.h include/alibabacloud/mts/model/SubmitVideoSplitJobRequest.h include/alibabacloud/mts/model/SubmitVideoSplitJobResult.h include/alibabacloud/mts/model/SubmitVideoSummaryJobRequest.h include/alibabacloud/mts/model/SubmitVideoSummaryJobResult.h + include/alibabacloud/mts/model/TagCustomPersonRequest.h + include/alibabacloud/mts/model/TagCustomPersonResult.h include/alibabacloud/mts/model/UnbindInputBucketRequest.h include/alibabacloud/mts/model/UnbindInputBucketResult.h include/alibabacloud/mts/model/UnbindOutputBucketRequest.h include/alibabacloud/mts/model/UnbindOutputBucketResult.h + include/alibabacloud/mts/model/UnregisterCustomFaceRequest.h + include/alibabacloud/mts/model/UnregisterCustomFaceResult.h include/alibabacloud/mts/model/UpdateAsrPipelineRequest.h include/alibabacloud/mts/model/UpdateAsrPipelineResult.h include/alibabacloud/mts/model/UpdateCategoryNameRequest.h @@ -349,6 +401,8 @@ set(mts_public_header_model include/alibabacloud/mts/model/UpdatePipelineResult.h include/alibabacloud/mts/model/UpdatePornPipelineRequest.h include/alibabacloud/mts/model/UpdatePornPipelineResult.h + include/alibabacloud/mts/model/UpdateSmarttagTemplateRequest.h + include/alibabacloud/mts/model/UpdateSmarttagTemplateResult.h include/alibabacloud/mts/model/UpdateTemplateRequest.h include/alibabacloud/mts/model/UpdateTemplateResult.h include/alibabacloud/mts/model/UpdateTerrorismPipelineRequest.h @@ -380,6 +434,8 @@ set(mts_src src/model/AddPipelineResult.cc src/model/AddPornPipelineRequest.cc src/model/AddPornPipelineResult.cc + src/model/AddSmarttagTemplateRequest.cc + src/model/AddSmarttagTemplateResult.cc src/model/AddTemplateRequest.cc src/model/AddTemplateResult.cc src/model/AddTerrorismPipelineRequest.cc @@ -398,6 +454,8 @@ set(mts_src src/model/CheckResourceResult.cc src/model/CreateFpShotDBRequest.cc src/model/CreateFpShotDBResult.cc + src/model/CreateInferenceServerRequest.cc + src/model/CreateInferenceServerResult.cc src/model/CreateMcuTemplateRequest.cc src/model/CreateMcuTemplateResult.cc src/model/CreateSessionRequest.cc @@ -422,12 +480,18 @@ set(mts_src src/model/DeleteMediaWorkflowResult.cc src/model/DeletePipelineRequest.cc src/model/DeletePipelineResult.cc + src/model/DeleteSmarttagTemplateRequest.cc + src/model/DeleteSmarttagTemplateResult.cc src/model/DeleteTemplateRequest.cc src/model/DeleteTemplateResult.cc src/model/DeleteWaterMarkTemplateRequest.cc src/model/DeleteWaterMarkTemplateResult.cc src/model/DescribeMtsUserResourcePackageRequest.cc src/model/DescribeMtsUserResourcePackageResult.cc + src/model/DetectImageSyncRequest.cc + src/model/DetectImageSyncResult.cc + src/model/GetJobInfoRequest.cc + src/model/GetJobInfoResult.cc src/model/GetLicenseRequest.cc src/model/GetLicenseResult.cc src/model/GetPackageRequest.cc @@ -442,10 +506,16 @@ set(mts_src src/model/ListCensorPipelineResult.cc src/model/ListCoverPipelineRequest.cc src/model/ListCoverPipelineResult.cc + src/model/ListCustomPersonsRequest.cc + src/model/ListCustomPersonsResult.cc src/model/ListFpShotDBRequest.cc src/model/ListFpShotDBResult.cc + src/model/ListFpShotFilesRequest.cc + src/model/ListFpShotFilesResult.cc src/model/ListFpShotNotaryRequest.cc src/model/ListFpShotNotaryResult.cc + src/model/ListInferenceJobRequest.cc + src/model/ListInferenceJobResult.cc src/model/ListJobRequest.cc src/model/ListJobResult.cc src/model/ListMediaRequest.cc @@ -490,14 +560,26 @@ set(mts_src src/model/QueryFacerecogJobListResult.cc src/model/QueryFpCompareJobListRequest.cc src/model/QueryFpCompareJobListResult.cc + src/model/QueryFpDBDeleteJobListRequest.cc + src/model/QueryFpDBDeleteJobListResult.cc + src/model/QueryFpFileDeleteJobListRequest.cc + src/model/QueryFpFileDeleteJobListResult.cc src/model/QueryFpImportResultRequest.cc src/model/QueryFpImportResultResult.cc src/model/QueryFpShotJobListRequest.cc src/model/QueryFpShotJobListResult.cc + src/model/QueryIProductionJobRequest.cc + src/model/QueryIProductionJobResult.cc src/model/QueryIProductionJobListRequest.cc src/model/QueryIProductionJobListResult.cc src/model/QueryImageSearchJobListRequest.cc src/model/QueryImageSearchJobListResult.cc + src/model/QueryInferenceJobRequest.cc + src/model/QueryInferenceJobResult.cc + src/model/QueryInferenceServerRequest.cc + src/model/QueryInferenceServerResult.cc + src/model/QueryInnerJobRequest.cc + src/model/QueryInnerJobResult.cc src/model/QueryJobListRequest.cc src/model/QueryJobListResult.cc src/model/QueryMCJobListRequest.cc @@ -534,6 +616,8 @@ set(mts_src src/model/QueryPornPipelineListResult.cc src/model/QuerySmarttagJobRequest.cc src/model/QuerySmarttagJobResult.cc + src/model/QuerySmarttagTemplateListRequest.cc + src/model/QuerySmarttagTemplateListResult.cc src/model/QuerySnapshotJobListRequest.cc src/model/QuerySnapshotJobListResult.cc src/model/QuerySubtitleJobListRequest.cc @@ -550,6 +634,8 @@ set(mts_src src/model/QueryVideoGifJobListResult.cc src/model/QueryVideoPoseJobListRequest.cc src/model/QueryVideoPoseJobListResult.cc + src/model/QueryVideoQualityJobRequest.cc + src/model/QueryVideoQualityJobResult.cc src/model/QueryVideoSplitJobListRequest.cc src/model/QueryVideoSplitJobListResult.cc src/model/QueryVideoSummaryJobListRequest.cc @@ -558,6 +644,8 @@ set(mts_src src/model/QueryWaterMarkTemplateListResult.cc src/model/RefreshCdnDomainConfigsCacheRequest.cc src/model/RefreshCdnDomainConfigsCacheResult.cc + src/model/RegisterCustomFaceRequest.cc + src/model/RegisterCustomFaceResult.cc src/model/RegisterMediaDetailPersonRequest.cc src/model/RegisterMediaDetailPersonResult.cc src/model/RegisterMediaDetailScenarioRequest.cc @@ -594,6 +682,8 @@ set(mts_src src/model/SearchWaterMarkTemplateResult.cc src/model/SetAuthConfigRequest.cc src/model/SetAuthConfigResult.cc + src/model/StopIProductionJobRequest.cc + src/model/StopIProductionJobResult.cc src/model/SubmitAnalysisJobRequest.cc src/model/SubmitAnalysisJobResult.cc src/model/SubmitAnnotationJobRequest.cc @@ -612,6 +702,10 @@ set(mts_src src/model/SubmitFacerecogJobResult.cc src/model/SubmitFpCompareJobRequest.cc src/model/SubmitFpCompareJobResult.cc + src/model/SubmitFpDBDeleteJobRequest.cc + src/model/SubmitFpDBDeleteJobResult.cc + src/model/SubmitFpFileDeleteJobRequest.cc + src/model/SubmitFpFileDeleteJobResult.cc src/model/SubmitFpShotJobRequest.cc src/model/SubmitFpShotJobResult.cc src/model/SubmitIProductionJobRequest.cc @@ -620,6 +714,10 @@ set(mts_src src/model/SubmitImageQualityJobResult.cc src/model/SubmitImageSearchJobRequest.cc src/model/SubmitImageSearchJobResult.cc + src/model/SubmitInferenceJobRequest.cc + src/model/SubmitInferenceJobResult.cc + src/model/SubmitInnerJobRequest.cc + src/model/SubmitInnerJobResult.cc src/model/SubmitJobsRequest.cc src/model/SubmitJobsResult.cc src/model/SubmitMCJobRequest.cc @@ -646,18 +744,26 @@ set(mts_src src/model/SubmitTagJobResult.cc src/model/SubmitTerrorismJobRequest.cc src/model/SubmitTerrorismJobResult.cc + src/model/SubmitURLUploadJobRequest.cc + src/model/SubmitURLUploadJobResult.cc src/model/SubmitVideoGifJobRequest.cc src/model/SubmitVideoGifJobResult.cc src/model/SubmitVideoPoseJobRequest.cc src/model/SubmitVideoPoseJobResult.cc + src/model/SubmitVideoQualityJobRequest.cc + src/model/SubmitVideoQualityJobResult.cc src/model/SubmitVideoSplitJobRequest.cc src/model/SubmitVideoSplitJobResult.cc src/model/SubmitVideoSummaryJobRequest.cc src/model/SubmitVideoSummaryJobResult.cc + src/model/TagCustomPersonRequest.cc + src/model/TagCustomPersonResult.cc src/model/UnbindInputBucketRequest.cc src/model/UnbindInputBucketResult.cc src/model/UnbindOutputBucketRequest.cc src/model/UnbindOutputBucketResult.cc + src/model/UnregisterCustomFaceRequest.cc + src/model/UnregisterCustomFaceResult.cc src/model/UpdateAsrPipelineRequest.cc src/model/UpdateAsrPipelineResult.cc src/model/UpdateCategoryNameRequest.cc @@ -686,6 +792,8 @@ set(mts_src src/model/UpdatePipelineResult.cc src/model/UpdatePornPipelineRequest.cc src/model/UpdatePornPipelineResult.cc + src/model/UpdateSmarttagTemplateRequest.cc + src/model/UpdateSmarttagTemplateResult.cc src/model/UpdateTemplateRequest.cc src/model/UpdateTemplateResult.cc src/model/UpdateTerrorismPipelineRequest.cc diff --git a/mts/include/alibabacloud/mts/MtsClient.h b/mts/include/alibabacloud/mts/MtsClient.h index c0eb77546..0f06714a5 100644 --- a/mts/include/alibabacloud/mts/MtsClient.h +++ b/mts/include/alibabacloud/mts/MtsClient.h @@ -44,6 +44,8 @@ #include "model/AddPipelineResult.h" #include "model/AddPornPipelineRequest.h" #include "model/AddPornPipelineResult.h" +#include "model/AddSmarttagTemplateRequest.h" +#include "model/AddSmarttagTemplateResult.h" #include "model/AddTemplateRequest.h" #include "model/AddTemplateResult.h" #include "model/AddTerrorismPipelineRequest.h" @@ -62,6 +64,8 @@ #include "model/CheckResourceResult.h" #include "model/CreateFpShotDBRequest.h" #include "model/CreateFpShotDBResult.h" +#include "model/CreateInferenceServerRequest.h" +#include "model/CreateInferenceServerResult.h" #include "model/CreateMcuTemplateRequest.h" #include "model/CreateMcuTemplateResult.h" #include "model/CreateSessionRequest.h" @@ -86,12 +90,18 @@ #include "model/DeleteMediaWorkflowResult.h" #include "model/DeletePipelineRequest.h" #include "model/DeletePipelineResult.h" +#include "model/DeleteSmarttagTemplateRequest.h" +#include "model/DeleteSmarttagTemplateResult.h" #include "model/DeleteTemplateRequest.h" #include "model/DeleteTemplateResult.h" #include "model/DeleteWaterMarkTemplateRequest.h" #include "model/DeleteWaterMarkTemplateResult.h" #include "model/DescribeMtsUserResourcePackageRequest.h" #include "model/DescribeMtsUserResourcePackageResult.h" +#include "model/DetectImageSyncRequest.h" +#include "model/DetectImageSyncResult.h" +#include "model/GetJobInfoRequest.h" +#include "model/GetJobInfoResult.h" #include "model/GetLicenseRequest.h" #include "model/GetLicenseResult.h" #include "model/GetPackageRequest.h" @@ -106,10 +116,16 @@ #include "model/ListCensorPipelineResult.h" #include "model/ListCoverPipelineRequest.h" #include "model/ListCoverPipelineResult.h" +#include "model/ListCustomPersonsRequest.h" +#include "model/ListCustomPersonsResult.h" #include "model/ListFpShotDBRequest.h" #include "model/ListFpShotDBResult.h" +#include "model/ListFpShotFilesRequest.h" +#include "model/ListFpShotFilesResult.h" #include "model/ListFpShotNotaryRequest.h" #include "model/ListFpShotNotaryResult.h" +#include "model/ListInferenceJobRequest.h" +#include "model/ListInferenceJobResult.h" #include "model/ListJobRequest.h" #include "model/ListJobResult.h" #include "model/ListMediaRequest.h" @@ -154,14 +170,26 @@ #include "model/QueryFacerecogJobListResult.h" #include "model/QueryFpCompareJobListRequest.h" #include "model/QueryFpCompareJobListResult.h" +#include "model/QueryFpDBDeleteJobListRequest.h" +#include "model/QueryFpDBDeleteJobListResult.h" +#include "model/QueryFpFileDeleteJobListRequest.h" +#include "model/QueryFpFileDeleteJobListResult.h" #include "model/QueryFpImportResultRequest.h" #include "model/QueryFpImportResultResult.h" #include "model/QueryFpShotJobListRequest.h" #include "model/QueryFpShotJobListResult.h" +#include "model/QueryIProductionJobRequest.h" +#include "model/QueryIProductionJobResult.h" #include "model/QueryIProductionJobListRequest.h" #include "model/QueryIProductionJobListResult.h" #include "model/QueryImageSearchJobListRequest.h" #include "model/QueryImageSearchJobListResult.h" +#include "model/QueryInferenceJobRequest.h" +#include "model/QueryInferenceJobResult.h" +#include "model/QueryInferenceServerRequest.h" +#include "model/QueryInferenceServerResult.h" +#include "model/QueryInnerJobRequest.h" +#include "model/QueryInnerJobResult.h" #include "model/QueryJobListRequest.h" #include "model/QueryJobListResult.h" #include "model/QueryMCJobListRequest.h" @@ -198,6 +226,8 @@ #include "model/QueryPornPipelineListResult.h" #include "model/QuerySmarttagJobRequest.h" #include "model/QuerySmarttagJobResult.h" +#include "model/QuerySmarttagTemplateListRequest.h" +#include "model/QuerySmarttagTemplateListResult.h" #include "model/QuerySnapshotJobListRequest.h" #include "model/QuerySnapshotJobListResult.h" #include "model/QuerySubtitleJobListRequest.h" @@ -214,6 +244,8 @@ #include "model/QueryVideoGifJobListResult.h" #include "model/QueryVideoPoseJobListRequest.h" #include "model/QueryVideoPoseJobListResult.h" +#include "model/QueryVideoQualityJobRequest.h" +#include "model/QueryVideoQualityJobResult.h" #include "model/QueryVideoSplitJobListRequest.h" #include "model/QueryVideoSplitJobListResult.h" #include "model/QueryVideoSummaryJobListRequest.h" @@ -222,6 +254,8 @@ #include "model/QueryWaterMarkTemplateListResult.h" #include "model/RefreshCdnDomainConfigsCacheRequest.h" #include "model/RefreshCdnDomainConfigsCacheResult.h" +#include "model/RegisterCustomFaceRequest.h" +#include "model/RegisterCustomFaceResult.h" #include "model/RegisterMediaDetailPersonRequest.h" #include "model/RegisterMediaDetailPersonResult.h" #include "model/RegisterMediaDetailScenarioRequest.h" @@ -258,6 +292,8 @@ #include "model/SearchWaterMarkTemplateResult.h" #include "model/SetAuthConfigRequest.h" #include "model/SetAuthConfigResult.h" +#include "model/StopIProductionJobRequest.h" +#include "model/StopIProductionJobResult.h" #include "model/SubmitAnalysisJobRequest.h" #include "model/SubmitAnalysisJobResult.h" #include "model/SubmitAnnotationJobRequest.h" @@ -276,6 +312,10 @@ #include "model/SubmitFacerecogJobResult.h" #include "model/SubmitFpCompareJobRequest.h" #include "model/SubmitFpCompareJobResult.h" +#include "model/SubmitFpDBDeleteJobRequest.h" +#include "model/SubmitFpDBDeleteJobResult.h" +#include "model/SubmitFpFileDeleteJobRequest.h" +#include "model/SubmitFpFileDeleteJobResult.h" #include "model/SubmitFpShotJobRequest.h" #include "model/SubmitFpShotJobResult.h" #include "model/SubmitIProductionJobRequest.h" @@ -284,6 +324,10 @@ #include "model/SubmitImageQualityJobResult.h" #include "model/SubmitImageSearchJobRequest.h" #include "model/SubmitImageSearchJobResult.h" +#include "model/SubmitInferenceJobRequest.h" +#include "model/SubmitInferenceJobResult.h" +#include "model/SubmitInnerJobRequest.h" +#include "model/SubmitInnerJobResult.h" #include "model/SubmitJobsRequest.h" #include "model/SubmitJobsResult.h" #include "model/SubmitMCJobRequest.h" @@ -310,18 +354,26 @@ #include "model/SubmitTagJobResult.h" #include "model/SubmitTerrorismJobRequest.h" #include "model/SubmitTerrorismJobResult.h" +#include "model/SubmitURLUploadJobRequest.h" +#include "model/SubmitURLUploadJobResult.h" #include "model/SubmitVideoGifJobRequest.h" #include "model/SubmitVideoGifJobResult.h" #include "model/SubmitVideoPoseJobRequest.h" #include "model/SubmitVideoPoseJobResult.h" +#include "model/SubmitVideoQualityJobRequest.h" +#include "model/SubmitVideoQualityJobResult.h" #include "model/SubmitVideoSplitJobRequest.h" #include "model/SubmitVideoSplitJobResult.h" #include "model/SubmitVideoSummaryJobRequest.h" #include "model/SubmitVideoSummaryJobResult.h" +#include "model/TagCustomPersonRequest.h" +#include "model/TagCustomPersonResult.h" #include "model/UnbindInputBucketRequest.h" #include "model/UnbindInputBucketResult.h" #include "model/UnbindOutputBucketRequest.h" #include "model/UnbindOutputBucketResult.h" +#include "model/UnregisterCustomFaceRequest.h" +#include "model/UnregisterCustomFaceResult.h" #include "model/UpdateAsrPipelineRequest.h" #include "model/UpdateAsrPipelineResult.h" #include "model/UpdateCategoryNameRequest.h" @@ -350,6 +402,8 @@ #include "model/UpdatePipelineResult.h" #include "model/UpdatePornPipelineRequest.h" #include "model/UpdatePornPipelineResult.h" +#include "model/UpdateSmarttagTemplateRequest.h" +#include "model/UpdateSmarttagTemplateResult.h" #include "model/UpdateTemplateRequest.h" #include "model/UpdateTemplateResult.h" #include "model/UpdateTerrorismPipelineRequest.h" @@ -398,6 +452,9 @@ namespace AlibabaCloud typedef Outcome AddPornPipelineOutcome; typedef std::future AddPornPipelineOutcomeCallable; typedef std::function&)> AddPornPipelineAsyncHandler; + typedef Outcome AddSmarttagTemplateOutcome; + typedef std::future AddSmarttagTemplateOutcomeCallable; + typedef std::function&)> AddSmarttagTemplateAsyncHandler; typedef Outcome AddTemplateOutcome; typedef std::future AddTemplateOutcomeCallable; typedef std::function&)> AddTemplateAsyncHandler; @@ -425,6 +482,9 @@ namespace AlibabaCloud typedef Outcome CreateFpShotDBOutcome; typedef std::future CreateFpShotDBOutcomeCallable; typedef std::function&)> CreateFpShotDBAsyncHandler; + typedef Outcome CreateInferenceServerOutcome; + typedef std::future CreateInferenceServerOutcomeCallable; + typedef std::function&)> CreateInferenceServerAsyncHandler; typedef Outcome CreateMcuTemplateOutcome; typedef std::future CreateMcuTemplateOutcomeCallable; typedef std::function&)> CreateMcuTemplateAsyncHandler; @@ -461,6 +521,9 @@ namespace AlibabaCloud typedef Outcome DeletePipelineOutcome; typedef std::future DeletePipelineOutcomeCallable; typedef std::function&)> DeletePipelineAsyncHandler; + typedef Outcome DeleteSmarttagTemplateOutcome; + typedef std::future DeleteSmarttagTemplateOutcomeCallable; + typedef std::function&)> DeleteSmarttagTemplateAsyncHandler; typedef Outcome DeleteTemplateOutcome; typedef std::future DeleteTemplateOutcomeCallable; typedef std::function&)> DeleteTemplateAsyncHandler; @@ -470,6 +533,12 @@ namespace AlibabaCloud typedef Outcome DescribeMtsUserResourcePackageOutcome; typedef std::future DescribeMtsUserResourcePackageOutcomeCallable; typedef std::function&)> DescribeMtsUserResourcePackageAsyncHandler; + typedef Outcome DetectImageSyncOutcome; + typedef std::future DetectImageSyncOutcomeCallable; + typedef std::function&)> DetectImageSyncAsyncHandler; + typedef Outcome GetJobInfoOutcome; + typedef std::future GetJobInfoOutcomeCallable; + typedef std::function&)> GetJobInfoAsyncHandler; typedef Outcome GetLicenseOutcome; typedef std::future GetLicenseOutcomeCallable; typedef std::function&)> GetLicenseAsyncHandler; @@ -491,12 +560,21 @@ namespace AlibabaCloud typedef Outcome ListCoverPipelineOutcome; typedef std::future ListCoverPipelineOutcomeCallable; typedef std::function&)> ListCoverPipelineAsyncHandler; + typedef Outcome ListCustomPersonsOutcome; + typedef std::future ListCustomPersonsOutcomeCallable; + typedef std::function&)> ListCustomPersonsAsyncHandler; typedef Outcome ListFpShotDBOutcome; typedef std::future ListFpShotDBOutcomeCallable; typedef std::function&)> ListFpShotDBAsyncHandler; + typedef Outcome ListFpShotFilesOutcome; + typedef std::future ListFpShotFilesOutcomeCallable; + typedef std::function&)> ListFpShotFilesAsyncHandler; typedef Outcome ListFpShotNotaryOutcome; typedef std::future ListFpShotNotaryOutcomeCallable; typedef std::function&)> ListFpShotNotaryAsyncHandler; + typedef Outcome ListInferenceJobOutcome; + typedef std::future ListInferenceJobOutcomeCallable; + typedef std::function&)> ListInferenceJobAsyncHandler; typedef Outcome ListJobOutcome; typedef std::future ListJobOutcomeCallable; typedef std::function&)> ListJobAsyncHandler; @@ -563,18 +641,36 @@ namespace AlibabaCloud typedef Outcome QueryFpCompareJobListOutcome; typedef std::future QueryFpCompareJobListOutcomeCallable; typedef std::function&)> QueryFpCompareJobListAsyncHandler; + typedef Outcome QueryFpDBDeleteJobListOutcome; + typedef std::future QueryFpDBDeleteJobListOutcomeCallable; + typedef std::function&)> QueryFpDBDeleteJobListAsyncHandler; + typedef Outcome QueryFpFileDeleteJobListOutcome; + typedef std::future QueryFpFileDeleteJobListOutcomeCallable; + typedef std::function&)> QueryFpFileDeleteJobListAsyncHandler; typedef Outcome QueryFpImportResultOutcome; typedef std::future QueryFpImportResultOutcomeCallable; typedef std::function&)> QueryFpImportResultAsyncHandler; typedef Outcome QueryFpShotJobListOutcome; typedef std::future QueryFpShotJobListOutcomeCallable; typedef std::function&)> QueryFpShotJobListAsyncHandler; + typedef Outcome QueryIProductionJobOutcome; + typedef std::future QueryIProductionJobOutcomeCallable; + typedef std::function&)> QueryIProductionJobAsyncHandler; typedef Outcome QueryIProductionJobListOutcome; typedef std::future QueryIProductionJobListOutcomeCallable; typedef std::function&)> QueryIProductionJobListAsyncHandler; typedef Outcome QueryImageSearchJobListOutcome; typedef std::future QueryImageSearchJobListOutcomeCallable; typedef std::function&)> QueryImageSearchJobListAsyncHandler; + typedef Outcome QueryInferenceJobOutcome; + typedef std::future QueryInferenceJobOutcomeCallable; + typedef std::function&)> QueryInferenceJobAsyncHandler; + typedef Outcome QueryInferenceServerOutcome; + typedef std::future QueryInferenceServerOutcomeCallable; + typedef std::function&)> QueryInferenceServerAsyncHandler; + typedef Outcome QueryInnerJobOutcome; + typedef std::future QueryInnerJobOutcomeCallable; + typedef std::function&)> QueryInnerJobAsyncHandler; typedef Outcome QueryJobListOutcome; typedef std::future QueryJobListOutcomeCallable; typedef std::function&)> QueryJobListAsyncHandler; @@ -629,6 +725,9 @@ namespace AlibabaCloud typedef Outcome QuerySmarttagJobOutcome; typedef std::future QuerySmarttagJobOutcomeCallable; typedef std::function&)> QuerySmarttagJobAsyncHandler; + typedef Outcome QuerySmarttagTemplateListOutcome; + typedef std::future QuerySmarttagTemplateListOutcomeCallable; + typedef std::function&)> QuerySmarttagTemplateListAsyncHandler; typedef Outcome QuerySnapshotJobListOutcome; typedef std::future QuerySnapshotJobListOutcomeCallable; typedef std::function&)> QuerySnapshotJobListAsyncHandler; @@ -653,6 +752,9 @@ namespace AlibabaCloud typedef Outcome QueryVideoPoseJobListOutcome; typedef std::future QueryVideoPoseJobListOutcomeCallable; typedef std::function&)> QueryVideoPoseJobListAsyncHandler; + typedef Outcome QueryVideoQualityJobOutcome; + typedef std::future QueryVideoQualityJobOutcomeCallable; + typedef std::function&)> QueryVideoQualityJobAsyncHandler; typedef Outcome QueryVideoSplitJobListOutcome; typedef std::future QueryVideoSplitJobListOutcomeCallable; typedef std::function&)> QueryVideoSplitJobListAsyncHandler; @@ -665,6 +767,9 @@ namespace AlibabaCloud typedef Outcome RefreshCdnDomainConfigsCacheOutcome; typedef std::future RefreshCdnDomainConfigsCacheOutcomeCallable; typedef std::function&)> RefreshCdnDomainConfigsCacheAsyncHandler; + typedef Outcome RegisterCustomFaceOutcome; + typedef std::future RegisterCustomFaceOutcomeCallable; + typedef std::function&)> RegisterCustomFaceAsyncHandler; typedef Outcome RegisterMediaDetailPersonOutcome; typedef std::future RegisterMediaDetailPersonOutcomeCallable; typedef std::function&)> RegisterMediaDetailPersonAsyncHandler; @@ -719,6 +824,9 @@ namespace AlibabaCloud typedef Outcome SetAuthConfigOutcome; typedef std::future SetAuthConfigOutcomeCallable; typedef std::function&)> SetAuthConfigAsyncHandler; + typedef Outcome StopIProductionJobOutcome; + typedef std::future StopIProductionJobOutcomeCallable; + typedef std::function&)> StopIProductionJobAsyncHandler; typedef Outcome SubmitAnalysisJobOutcome; typedef std::future SubmitAnalysisJobOutcomeCallable; typedef std::function&)> SubmitAnalysisJobAsyncHandler; @@ -746,6 +854,12 @@ namespace AlibabaCloud typedef Outcome SubmitFpCompareJobOutcome; typedef std::future SubmitFpCompareJobOutcomeCallable; typedef std::function&)> SubmitFpCompareJobAsyncHandler; + typedef Outcome SubmitFpDBDeleteJobOutcome; + typedef std::future SubmitFpDBDeleteJobOutcomeCallable; + typedef std::function&)> SubmitFpDBDeleteJobAsyncHandler; + typedef Outcome SubmitFpFileDeleteJobOutcome; + typedef std::future SubmitFpFileDeleteJobOutcomeCallable; + typedef std::function&)> SubmitFpFileDeleteJobAsyncHandler; typedef Outcome SubmitFpShotJobOutcome; typedef std::future SubmitFpShotJobOutcomeCallable; typedef std::function&)> SubmitFpShotJobAsyncHandler; @@ -758,6 +872,12 @@ namespace AlibabaCloud typedef Outcome SubmitImageSearchJobOutcome; typedef std::future SubmitImageSearchJobOutcomeCallable; typedef std::function&)> SubmitImageSearchJobAsyncHandler; + typedef Outcome SubmitInferenceJobOutcome; + typedef std::future SubmitInferenceJobOutcomeCallable; + typedef std::function&)> SubmitInferenceJobAsyncHandler; + typedef Outcome SubmitInnerJobOutcome; + typedef std::future SubmitInnerJobOutcomeCallable; + typedef std::function&)> SubmitInnerJobAsyncHandler; typedef Outcome SubmitJobsOutcome; typedef std::future SubmitJobsOutcomeCallable; typedef std::function&)> SubmitJobsAsyncHandler; @@ -797,24 +917,36 @@ namespace AlibabaCloud typedef Outcome SubmitTerrorismJobOutcome; typedef std::future SubmitTerrorismJobOutcomeCallable; typedef std::function&)> SubmitTerrorismJobAsyncHandler; + typedef Outcome SubmitURLUploadJobOutcome; + typedef std::future SubmitURLUploadJobOutcomeCallable; + typedef std::function&)> SubmitURLUploadJobAsyncHandler; typedef Outcome SubmitVideoGifJobOutcome; typedef std::future SubmitVideoGifJobOutcomeCallable; typedef std::function&)> SubmitVideoGifJobAsyncHandler; typedef Outcome SubmitVideoPoseJobOutcome; typedef std::future SubmitVideoPoseJobOutcomeCallable; typedef std::function&)> SubmitVideoPoseJobAsyncHandler; + typedef Outcome SubmitVideoQualityJobOutcome; + typedef std::future SubmitVideoQualityJobOutcomeCallable; + typedef std::function&)> SubmitVideoQualityJobAsyncHandler; typedef Outcome SubmitVideoSplitJobOutcome; typedef std::future SubmitVideoSplitJobOutcomeCallable; typedef std::function&)> SubmitVideoSplitJobAsyncHandler; typedef Outcome SubmitVideoSummaryJobOutcome; typedef std::future SubmitVideoSummaryJobOutcomeCallable; typedef std::function&)> SubmitVideoSummaryJobAsyncHandler; + typedef Outcome TagCustomPersonOutcome; + typedef std::future TagCustomPersonOutcomeCallable; + typedef std::function&)> TagCustomPersonAsyncHandler; typedef Outcome UnbindInputBucketOutcome; typedef std::future UnbindInputBucketOutcomeCallable; typedef std::function&)> UnbindInputBucketAsyncHandler; typedef Outcome UnbindOutputBucketOutcome; typedef std::future UnbindOutputBucketOutcomeCallable; typedef std::function&)> UnbindOutputBucketAsyncHandler; + typedef Outcome UnregisterCustomFaceOutcome; + typedef std::future UnregisterCustomFaceOutcomeCallable; + typedef std::function&)> UnregisterCustomFaceAsyncHandler; typedef Outcome UpdateAsrPipelineOutcome; typedef std::future UpdateAsrPipelineOutcomeCallable; typedef std::function&)> UpdateAsrPipelineAsyncHandler; @@ -857,6 +989,9 @@ namespace AlibabaCloud typedef Outcome UpdatePornPipelineOutcome; typedef std::future UpdatePornPipelineOutcomeCallable; typedef std::function&)> UpdatePornPipelineAsyncHandler; + typedef Outcome UpdateSmarttagTemplateOutcome; + typedef std::future UpdateSmarttagTemplateOutcomeCallable; + typedef std::function&)> UpdateSmarttagTemplateAsyncHandler; typedef Outcome UpdateTemplateOutcome; typedef std::future UpdateTemplateOutcomeCallable; typedef std::function&)> UpdateTemplateAsyncHandler; @@ -904,6 +1039,9 @@ namespace AlibabaCloud AddPornPipelineOutcome addPornPipeline(const Model::AddPornPipelineRequest &request)const; void addPornPipelineAsync(const Model::AddPornPipelineRequest& request, const AddPornPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddPornPipelineOutcomeCallable addPornPipelineCallable(const Model::AddPornPipelineRequest& request) const; + AddSmarttagTemplateOutcome addSmarttagTemplate(const Model::AddSmarttagTemplateRequest &request)const; + void addSmarttagTemplateAsync(const Model::AddSmarttagTemplateRequest& request, const AddSmarttagTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddSmarttagTemplateOutcomeCallable addSmarttagTemplateCallable(const Model::AddSmarttagTemplateRequest& request) const; AddTemplateOutcome addTemplate(const Model::AddTemplateRequest &request)const; void addTemplateAsync(const Model::AddTemplateRequest& request, const AddTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AddTemplateOutcomeCallable addTemplateCallable(const Model::AddTemplateRequest& request) const; @@ -931,6 +1069,9 @@ namespace AlibabaCloud CreateFpShotDBOutcome createFpShotDB(const Model::CreateFpShotDBRequest &request)const; void createFpShotDBAsync(const Model::CreateFpShotDBRequest& request, const CreateFpShotDBAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateFpShotDBOutcomeCallable createFpShotDBCallable(const Model::CreateFpShotDBRequest& request) const; + CreateInferenceServerOutcome createInferenceServer(const Model::CreateInferenceServerRequest &request)const; + void createInferenceServerAsync(const Model::CreateInferenceServerRequest& request, const CreateInferenceServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateInferenceServerOutcomeCallable createInferenceServerCallable(const Model::CreateInferenceServerRequest& request) const; CreateMcuTemplateOutcome createMcuTemplate(const Model::CreateMcuTemplateRequest &request)const; void createMcuTemplateAsync(const Model::CreateMcuTemplateRequest& request, const CreateMcuTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateMcuTemplateOutcomeCallable createMcuTemplateCallable(const Model::CreateMcuTemplateRequest& request) const; @@ -967,6 +1108,9 @@ namespace AlibabaCloud DeletePipelineOutcome deletePipeline(const Model::DeletePipelineRequest &request)const; void deletePipelineAsync(const Model::DeletePipelineRequest& request, const DeletePipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeletePipelineOutcomeCallable deletePipelineCallable(const Model::DeletePipelineRequest& request) const; + DeleteSmarttagTemplateOutcome deleteSmarttagTemplate(const Model::DeleteSmarttagTemplateRequest &request)const; + void deleteSmarttagTemplateAsync(const Model::DeleteSmarttagTemplateRequest& request, const DeleteSmarttagTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSmarttagTemplateOutcomeCallable deleteSmarttagTemplateCallable(const Model::DeleteSmarttagTemplateRequest& request) const; DeleteTemplateOutcome deleteTemplate(const Model::DeleteTemplateRequest &request)const; void deleteTemplateAsync(const Model::DeleteTemplateRequest& request, const DeleteTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteTemplateOutcomeCallable deleteTemplateCallable(const Model::DeleteTemplateRequest& request) const; @@ -976,6 +1120,12 @@ namespace AlibabaCloud DescribeMtsUserResourcePackageOutcome describeMtsUserResourcePackage(const Model::DescribeMtsUserResourcePackageRequest &request)const; void describeMtsUserResourcePackageAsync(const Model::DescribeMtsUserResourcePackageRequest& request, const DescribeMtsUserResourcePackageAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMtsUserResourcePackageOutcomeCallable describeMtsUserResourcePackageCallable(const Model::DescribeMtsUserResourcePackageRequest& request) const; + DetectImageSyncOutcome detectImageSync(const Model::DetectImageSyncRequest &request)const; + void detectImageSyncAsync(const Model::DetectImageSyncRequest& request, const DetectImageSyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DetectImageSyncOutcomeCallable detectImageSyncCallable(const Model::DetectImageSyncRequest& request) const; + GetJobInfoOutcome getJobInfo(const Model::GetJobInfoRequest &request)const; + void getJobInfoAsync(const Model::GetJobInfoRequest& request, const GetJobInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetJobInfoOutcomeCallable getJobInfoCallable(const Model::GetJobInfoRequest& request) const; GetLicenseOutcome getLicense(const Model::GetLicenseRequest &request)const; void getLicenseAsync(const Model::GetLicenseRequest& request, const GetLicenseAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; GetLicenseOutcomeCallable getLicenseCallable(const Model::GetLicenseRequest& request) const; @@ -997,12 +1147,21 @@ namespace AlibabaCloud ListCoverPipelineOutcome listCoverPipeline(const Model::ListCoverPipelineRequest &request)const; void listCoverPipelineAsync(const Model::ListCoverPipelineRequest& request, const ListCoverPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListCoverPipelineOutcomeCallable listCoverPipelineCallable(const Model::ListCoverPipelineRequest& request) const; + ListCustomPersonsOutcome listCustomPersons(const Model::ListCustomPersonsRequest &request)const; + void listCustomPersonsAsync(const Model::ListCustomPersonsRequest& request, const ListCustomPersonsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListCustomPersonsOutcomeCallable listCustomPersonsCallable(const Model::ListCustomPersonsRequest& request) const; ListFpShotDBOutcome listFpShotDB(const Model::ListFpShotDBRequest &request)const; void listFpShotDBAsync(const Model::ListFpShotDBRequest& request, const ListFpShotDBAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFpShotDBOutcomeCallable listFpShotDBCallable(const Model::ListFpShotDBRequest& request) const; + ListFpShotFilesOutcome listFpShotFiles(const Model::ListFpShotFilesRequest &request)const; + void listFpShotFilesAsync(const Model::ListFpShotFilesRequest& request, const ListFpShotFilesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListFpShotFilesOutcomeCallable listFpShotFilesCallable(const Model::ListFpShotFilesRequest& request) const; ListFpShotNotaryOutcome listFpShotNotary(const Model::ListFpShotNotaryRequest &request)const; void listFpShotNotaryAsync(const Model::ListFpShotNotaryRequest& request, const ListFpShotNotaryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListFpShotNotaryOutcomeCallable listFpShotNotaryCallable(const Model::ListFpShotNotaryRequest& request) const; + ListInferenceJobOutcome listInferenceJob(const Model::ListInferenceJobRequest &request)const; + void listInferenceJobAsync(const Model::ListInferenceJobRequest& request, const ListInferenceJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListInferenceJobOutcomeCallable listInferenceJobCallable(const Model::ListInferenceJobRequest& request) const; ListJobOutcome listJob(const Model::ListJobRequest &request)const; void listJobAsync(const Model::ListJobRequest& request, const ListJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListJobOutcomeCallable listJobCallable(const Model::ListJobRequest& request) const; @@ -1069,18 +1228,36 @@ namespace AlibabaCloud QueryFpCompareJobListOutcome queryFpCompareJobList(const Model::QueryFpCompareJobListRequest &request)const; void queryFpCompareJobListAsync(const Model::QueryFpCompareJobListRequest& request, const QueryFpCompareJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryFpCompareJobListOutcomeCallable queryFpCompareJobListCallable(const Model::QueryFpCompareJobListRequest& request) const; + QueryFpDBDeleteJobListOutcome queryFpDBDeleteJobList(const Model::QueryFpDBDeleteJobListRequest &request)const; + void queryFpDBDeleteJobListAsync(const Model::QueryFpDBDeleteJobListRequest& request, const QueryFpDBDeleteJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryFpDBDeleteJobListOutcomeCallable queryFpDBDeleteJobListCallable(const Model::QueryFpDBDeleteJobListRequest& request) const; + QueryFpFileDeleteJobListOutcome queryFpFileDeleteJobList(const Model::QueryFpFileDeleteJobListRequest &request)const; + void queryFpFileDeleteJobListAsync(const Model::QueryFpFileDeleteJobListRequest& request, const QueryFpFileDeleteJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryFpFileDeleteJobListOutcomeCallable queryFpFileDeleteJobListCallable(const Model::QueryFpFileDeleteJobListRequest& request) const; QueryFpImportResultOutcome queryFpImportResult(const Model::QueryFpImportResultRequest &request)const; void queryFpImportResultAsync(const Model::QueryFpImportResultRequest& request, const QueryFpImportResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryFpImportResultOutcomeCallable queryFpImportResultCallable(const Model::QueryFpImportResultRequest& request) const; QueryFpShotJobListOutcome queryFpShotJobList(const Model::QueryFpShotJobListRequest &request)const; void queryFpShotJobListAsync(const Model::QueryFpShotJobListRequest& request, const QueryFpShotJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryFpShotJobListOutcomeCallable queryFpShotJobListCallable(const Model::QueryFpShotJobListRequest& request) const; + QueryIProductionJobOutcome queryIProductionJob(const Model::QueryIProductionJobRequest &request)const; + void queryIProductionJobAsync(const Model::QueryIProductionJobRequest& request, const QueryIProductionJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryIProductionJobOutcomeCallable queryIProductionJobCallable(const Model::QueryIProductionJobRequest& request) const; QueryIProductionJobListOutcome queryIProductionJobList(const Model::QueryIProductionJobListRequest &request)const; void queryIProductionJobListAsync(const Model::QueryIProductionJobListRequest& request, const QueryIProductionJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryIProductionJobListOutcomeCallable queryIProductionJobListCallable(const Model::QueryIProductionJobListRequest& request) const; QueryImageSearchJobListOutcome queryImageSearchJobList(const Model::QueryImageSearchJobListRequest &request)const; void queryImageSearchJobListAsync(const Model::QueryImageSearchJobListRequest& request, const QueryImageSearchJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryImageSearchJobListOutcomeCallable queryImageSearchJobListCallable(const Model::QueryImageSearchJobListRequest& request) const; + QueryInferenceJobOutcome queryInferenceJob(const Model::QueryInferenceJobRequest &request)const; + void queryInferenceJobAsync(const Model::QueryInferenceJobRequest& request, const QueryInferenceJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryInferenceJobOutcomeCallable queryInferenceJobCallable(const Model::QueryInferenceJobRequest& request) const; + QueryInferenceServerOutcome queryInferenceServer(const Model::QueryInferenceServerRequest &request)const; + void queryInferenceServerAsync(const Model::QueryInferenceServerRequest& request, const QueryInferenceServerAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryInferenceServerOutcomeCallable queryInferenceServerCallable(const Model::QueryInferenceServerRequest& request) const; + QueryInnerJobOutcome queryInnerJob(const Model::QueryInnerJobRequest &request)const; + void queryInnerJobAsync(const Model::QueryInnerJobRequest& request, const QueryInnerJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryInnerJobOutcomeCallable queryInnerJobCallable(const Model::QueryInnerJobRequest& request) const; QueryJobListOutcome queryJobList(const Model::QueryJobListRequest &request)const; void queryJobListAsync(const Model::QueryJobListRequest& request, const QueryJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryJobListOutcomeCallable queryJobListCallable(const Model::QueryJobListRequest& request) const; @@ -1135,6 +1312,9 @@ namespace AlibabaCloud QuerySmarttagJobOutcome querySmarttagJob(const Model::QuerySmarttagJobRequest &request)const; void querySmarttagJobAsync(const Model::QuerySmarttagJobRequest& request, const QuerySmarttagJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySmarttagJobOutcomeCallable querySmarttagJobCallable(const Model::QuerySmarttagJobRequest& request) const; + QuerySmarttagTemplateListOutcome querySmarttagTemplateList(const Model::QuerySmarttagTemplateListRequest &request)const; + void querySmarttagTemplateListAsync(const Model::QuerySmarttagTemplateListRequest& request, const QuerySmarttagTemplateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QuerySmarttagTemplateListOutcomeCallable querySmarttagTemplateListCallable(const Model::QuerySmarttagTemplateListRequest& request) const; QuerySnapshotJobListOutcome querySnapshotJobList(const Model::QuerySnapshotJobListRequest &request)const; void querySnapshotJobListAsync(const Model::QuerySnapshotJobListRequest& request, const QuerySnapshotJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QuerySnapshotJobListOutcomeCallable querySnapshotJobListCallable(const Model::QuerySnapshotJobListRequest& request) const; @@ -1159,6 +1339,9 @@ namespace AlibabaCloud QueryVideoPoseJobListOutcome queryVideoPoseJobList(const Model::QueryVideoPoseJobListRequest &request)const; void queryVideoPoseJobListAsync(const Model::QueryVideoPoseJobListRequest& request, const QueryVideoPoseJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryVideoPoseJobListOutcomeCallable queryVideoPoseJobListCallable(const Model::QueryVideoPoseJobListRequest& request) const; + QueryVideoQualityJobOutcome queryVideoQualityJob(const Model::QueryVideoQualityJobRequest &request)const; + void queryVideoQualityJobAsync(const Model::QueryVideoQualityJobRequest& request, const QueryVideoQualityJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryVideoQualityJobOutcomeCallable queryVideoQualityJobCallable(const Model::QueryVideoQualityJobRequest& request) const; QueryVideoSplitJobListOutcome queryVideoSplitJobList(const Model::QueryVideoSplitJobListRequest &request)const; void queryVideoSplitJobListAsync(const Model::QueryVideoSplitJobListRequest& request, const QueryVideoSplitJobListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryVideoSplitJobListOutcomeCallable queryVideoSplitJobListCallable(const Model::QueryVideoSplitJobListRequest& request) const; @@ -1171,6 +1354,9 @@ namespace AlibabaCloud RefreshCdnDomainConfigsCacheOutcome refreshCdnDomainConfigsCache(const Model::RefreshCdnDomainConfigsCacheRequest &request)const; void refreshCdnDomainConfigsCacheAsync(const Model::RefreshCdnDomainConfigsCacheRequest& request, const RefreshCdnDomainConfigsCacheAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RefreshCdnDomainConfigsCacheOutcomeCallable refreshCdnDomainConfigsCacheCallable(const Model::RefreshCdnDomainConfigsCacheRequest& request) const; + RegisterCustomFaceOutcome registerCustomFace(const Model::RegisterCustomFaceRequest &request)const; + void registerCustomFaceAsync(const Model::RegisterCustomFaceRequest& request, const RegisterCustomFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RegisterCustomFaceOutcomeCallable registerCustomFaceCallable(const Model::RegisterCustomFaceRequest& request) const; RegisterMediaDetailPersonOutcome registerMediaDetailPerson(const Model::RegisterMediaDetailPersonRequest &request)const; void registerMediaDetailPersonAsync(const Model::RegisterMediaDetailPersonRequest& request, const RegisterMediaDetailPersonAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RegisterMediaDetailPersonOutcomeCallable registerMediaDetailPersonCallable(const Model::RegisterMediaDetailPersonRequest& request) const; @@ -1225,6 +1411,9 @@ namespace AlibabaCloud SetAuthConfigOutcome setAuthConfig(const Model::SetAuthConfigRequest &request)const; void setAuthConfigAsync(const Model::SetAuthConfigRequest& request, const SetAuthConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SetAuthConfigOutcomeCallable setAuthConfigCallable(const Model::SetAuthConfigRequest& request) const; + StopIProductionJobOutcome stopIProductionJob(const Model::StopIProductionJobRequest &request)const; + void stopIProductionJobAsync(const Model::StopIProductionJobRequest& request, const StopIProductionJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + StopIProductionJobOutcomeCallable stopIProductionJobCallable(const Model::StopIProductionJobRequest& request) const; SubmitAnalysisJobOutcome submitAnalysisJob(const Model::SubmitAnalysisJobRequest &request)const; void submitAnalysisJobAsync(const Model::SubmitAnalysisJobRequest& request, const SubmitAnalysisJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitAnalysisJobOutcomeCallable submitAnalysisJobCallable(const Model::SubmitAnalysisJobRequest& request) const; @@ -1252,6 +1441,12 @@ namespace AlibabaCloud SubmitFpCompareJobOutcome submitFpCompareJob(const Model::SubmitFpCompareJobRequest &request)const; void submitFpCompareJobAsync(const Model::SubmitFpCompareJobRequest& request, const SubmitFpCompareJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitFpCompareJobOutcomeCallable submitFpCompareJobCallable(const Model::SubmitFpCompareJobRequest& request) const; + SubmitFpDBDeleteJobOutcome submitFpDBDeleteJob(const Model::SubmitFpDBDeleteJobRequest &request)const; + void submitFpDBDeleteJobAsync(const Model::SubmitFpDBDeleteJobRequest& request, const SubmitFpDBDeleteJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitFpDBDeleteJobOutcomeCallable submitFpDBDeleteJobCallable(const Model::SubmitFpDBDeleteJobRequest& request) const; + SubmitFpFileDeleteJobOutcome submitFpFileDeleteJob(const Model::SubmitFpFileDeleteJobRequest &request)const; + void submitFpFileDeleteJobAsync(const Model::SubmitFpFileDeleteJobRequest& request, const SubmitFpFileDeleteJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitFpFileDeleteJobOutcomeCallable submitFpFileDeleteJobCallable(const Model::SubmitFpFileDeleteJobRequest& request) const; SubmitFpShotJobOutcome submitFpShotJob(const Model::SubmitFpShotJobRequest &request)const; void submitFpShotJobAsync(const Model::SubmitFpShotJobRequest& request, const SubmitFpShotJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitFpShotJobOutcomeCallable submitFpShotJobCallable(const Model::SubmitFpShotJobRequest& request) const; @@ -1264,6 +1459,12 @@ namespace AlibabaCloud SubmitImageSearchJobOutcome submitImageSearchJob(const Model::SubmitImageSearchJobRequest &request)const; void submitImageSearchJobAsync(const Model::SubmitImageSearchJobRequest& request, const SubmitImageSearchJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitImageSearchJobOutcomeCallable submitImageSearchJobCallable(const Model::SubmitImageSearchJobRequest& request) const; + SubmitInferenceJobOutcome submitInferenceJob(const Model::SubmitInferenceJobRequest &request)const; + void submitInferenceJobAsync(const Model::SubmitInferenceJobRequest& request, const SubmitInferenceJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitInferenceJobOutcomeCallable submitInferenceJobCallable(const Model::SubmitInferenceJobRequest& request) const; + SubmitInnerJobOutcome submitInnerJob(const Model::SubmitInnerJobRequest &request)const; + void submitInnerJobAsync(const Model::SubmitInnerJobRequest& request, const SubmitInnerJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitInnerJobOutcomeCallable submitInnerJobCallable(const Model::SubmitInnerJobRequest& request) const; SubmitJobsOutcome submitJobs(const Model::SubmitJobsRequest &request)const; void submitJobsAsync(const Model::SubmitJobsRequest& request, const SubmitJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitJobsOutcomeCallable submitJobsCallable(const Model::SubmitJobsRequest& request) const; @@ -1303,24 +1504,36 @@ namespace AlibabaCloud SubmitTerrorismJobOutcome submitTerrorismJob(const Model::SubmitTerrorismJobRequest &request)const; void submitTerrorismJobAsync(const Model::SubmitTerrorismJobRequest& request, const SubmitTerrorismJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitTerrorismJobOutcomeCallable submitTerrorismJobCallable(const Model::SubmitTerrorismJobRequest& request) const; + SubmitURLUploadJobOutcome submitURLUploadJob(const Model::SubmitURLUploadJobRequest &request)const; + void submitURLUploadJobAsync(const Model::SubmitURLUploadJobRequest& request, const SubmitURLUploadJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitURLUploadJobOutcomeCallable submitURLUploadJobCallable(const Model::SubmitURLUploadJobRequest& request) const; SubmitVideoGifJobOutcome submitVideoGifJob(const Model::SubmitVideoGifJobRequest &request)const; void submitVideoGifJobAsync(const Model::SubmitVideoGifJobRequest& request, const SubmitVideoGifJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitVideoGifJobOutcomeCallable submitVideoGifJobCallable(const Model::SubmitVideoGifJobRequest& request) const; SubmitVideoPoseJobOutcome submitVideoPoseJob(const Model::SubmitVideoPoseJobRequest &request)const; void submitVideoPoseJobAsync(const Model::SubmitVideoPoseJobRequest& request, const SubmitVideoPoseJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitVideoPoseJobOutcomeCallable submitVideoPoseJobCallable(const Model::SubmitVideoPoseJobRequest& request) const; + SubmitVideoQualityJobOutcome submitVideoQualityJob(const Model::SubmitVideoQualityJobRequest &request)const; + void submitVideoQualityJobAsync(const Model::SubmitVideoQualityJobRequest& request, const SubmitVideoQualityJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SubmitVideoQualityJobOutcomeCallable submitVideoQualityJobCallable(const Model::SubmitVideoQualityJobRequest& request) const; SubmitVideoSplitJobOutcome submitVideoSplitJob(const Model::SubmitVideoSplitJobRequest &request)const; void submitVideoSplitJobAsync(const Model::SubmitVideoSplitJobRequest& request, const SubmitVideoSplitJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitVideoSplitJobOutcomeCallable submitVideoSplitJobCallable(const Model::SubmitVideoSplitJobRequest& request) const; SubmitVideoSummaryJobOutcome submitVideoSummaryJob(const Model::SubmitVideoSummaryJobRequest &request)const; void submitVideoSummaryJobAsync(const Model::SubmitVideoSummaryJobRequest& request, const SubmitVideoSummaryJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitVideoSummaryJobOutcomeCallable submitVideoSummaryJobCallable(const Model::SubmitVideoSummaryJobRequest& request) const; + TagCustomPersonOutcome tagCustomPerson(const Model::TagCustomPersonRequest &request)const; + void tagCustomPersonAsync(const Model::TagCustomPersonRequest& request, const TagCustomPersonAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagCustomPersonOutcomeCallable tagCustomPersonCallable(const Model::TagCustomPersonRequest& request) const; UnbindInputBucketOutcome unbindInputBucket(const Model::UnbindInputBucketRequest &request)const; void unbindInputBucketAsync(const Model::UnbindInputBucketRequest& request, const UnbindInputBucketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindInputBucketOutcomeCallable unbindInputBucketCallable(const Model::UnbindInputBucketRequest& request) const; UnbindOutputBucketOutcome unbindOutputBucket(const Model::UnbindOutputBucketRequest &request)const; void unbindOutputBucketAsync(const Model::UnbindOutputBucketRequest& request, const UnbindOutputBucketAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UnbindOutputBucketOutcomeCallable unbindOutputBucketCallable(const Model::UnbindOutputBucketRequest& request) const; + UnregisterCustomFaceOutcome unregisterCustomFace(const Model::UnregisterCustomFaceRequest &request)const; + void unregisterCustomFaceAsync(const Model::UnregisterCustomFaceRequest& request, const UnregisterCustomFaceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UnregisterCustomFaceOutcomeCallable unregisterCustomFaceCallable(const Model::UnregisterCustomFaceRequest& request) const; UpdateAsrPipelineOutcome updateAsrPipeline(const Model::UpdateAsrPipelineRequest &request)const; void updateAsrPipelineAsync(const Model::UpdateAsrPipelineRequest& request, const UpdateAsrPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateAsrPipelineOutcomeCallable updateAsrPipelineCallable(const Model::UpdateAsrPipelineRequest& request) const; @@ -1363,6 +1576,9 @@ namespace AlibabaCloud UpdatePornPipelineOutcome updatePornPipeline(const Model::UpdatePornPipelineRequest &request)const; void updatePornPipelineAsync(const Model::UpdatePornPipelineRequest& request, const UpdatePornPipelineAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdatePornPipelineOutcomeCallable updatePornPipelineCallable(const Model::UpdatePornPipelineRequest& request) const; + UpdateSmarttagTemplateOutcome updateSmarttagTemplate(const Model::UpdateSmarttagTemplateRequest &request)const; + void updateSmarttagTemplateAsync(const Model::UpdateSmarttagTemplateRequest& request, const UpdateSmarttagTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UpdateSmarttagTemplateOutcomeCallable updateSmarttagTemplateCallable(const Model::UpdateSmarttagTemplateRequest& request) const; UpdateTemplateOutcome updateTemplate(const Model::UpdateTemplateRequest &request)const; void updateTemplateAsync(const Model::UpdateTemplateRequest& request, const UpdateTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; UpdateTemplateOutcomeCallable updateTemplateCallable(const Model::UpdateTemplateRequest& request) const; diff --git a/mts/include/alibabacloud/mts/model/ActivateMediaWorkflowRequest.h b/mts/include/alibabacloud/mts/model/ActivateMediaWorkflowRequest.h index 1a44016cc..a32902221 100644 --- a/mts/include/alibabacloud/mts/model/ActivateMediaWorkflowRequest.h +++ b/mts/include/alibabacloud/mts/model/ActivateMediaWorkflowRequest.h @@ -1,63 +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_MTS_MODEL_ACTIVATEMEDIAWORKFLOWREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ACTIVATEMEDIAWORKFLOWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ActivateMediaWorkflowRequest : public RpcServiceRequest - { - - public: - ActivateMediaWorkflowRequest(); - ~ActivateMediaWorkflowRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMediaWorkflowId()const; - void setMediaWorkflowId(const std::string& mediaWorkflowId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string mediaWorkflowId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ACTIVATEMEDIAWORKFLOWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ACTIVATEMEDIAWORKFLOWREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ACTIVATEMEDIAWORKFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ActivateMediaWorkflowRequest : public RpcServiceRequest { +public: + ActivateMediaWorkflowRequest(); + ~ActivateMediaWorkflowRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMediaWorkflowId() const; + void setMediaWorkflowId(const std::string &mediaWorkflowId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string mediaWorkflowId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ACTIVATEMEDIAWORKFLOWREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddAsrPipelineRequest.h b/mts/include/alibabacloud/mts/model/AddAsrPipelineRequest.h index 5f8b5263f..7a9609f35 100644 --- a/mts/include/alibabacloud/mts/model/AddAsrPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/AddAsrPipelineRequest.h @@ -1,69 +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_MTS_MODEL_ADDASRPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDASRPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddAsrPipelineRequest : public RpcServiceRequest - { - - public: - AddAsrPipelineRequest(); - ~AddAsrPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - int priority_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDASRPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDASRPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDASRPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddAsrPipelineRequest : public RpcServiceRequest { +public: + AddAsrPipelineRequest(); + ~AddAsrPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + int priority_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDASRPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddAsrPipelineResult.h b/mts/include/alibabacloud/mts/model/AddAsrPipelineResult.h index d77a45734..12611bdfe 100644 --- a/mts/include/alibabacloud/mts/model/AddAsrPipelineResult.h +++ b/mts/include/alibabacloud/mts/model/AddAsrPipelineResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string topic; std::string queue; }; - int priority; std::string state; + int priority; NotifyConfig notifyConfig; std::string id; std::string name; diff --git a/mts/include/alibabacloud/mts/model/AddCategoryRequest.h b/mts/include/alibabacloud/mts/model/AddCategoryRequest.h index 8da69893c..f5b352af7 100644 --- a/mts/include/alibabacloud/mts/model/AddCategoryRequest.h +++ b/mts/include/alibabacloud/mts/model/AddCategoryRequest.h @@ -1,66 +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_MTS_MODEL_ADDCATEGORYREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDCATEGORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddCategoryRequest : public RpcServiceRequest - { - - public: - AddCategoryRequest(); - ~AddCategoryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getParentId()const; - void setParentId(long parentId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getCateName()const; - void setCateName(const std::string& cateName); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - long parentId_; - std::string accessKeyId_; - std::string cateName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDCATEGORYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDCATEGORYREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDCATEGORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddCategoryRequest : public RpcServiceRequest { +public: + AddCategoryRequest(); + ~AddCategoryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getParentId() const; + void setParentId(long parentId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCateName() const; + void setCateName(const std::string &cateName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + long parentId_; + std::string accessKeyId_; + std::string cateName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDCATEGORYREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddCategoryResult.h b/mts/include/alibabacloud/mts/model/AddCategoryResult.h index 1deaec59a..5c78cb748 100644 --- a/mts/include/alibabacloud/mts/model/AddCategoryResult.h +++ b/mts/include/alibabacloud/mts/model/AddCategoryResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string parentId; std::string level; - std::string cateId; std::string cateName; + std::string cateId; }; diff --git a/mts/include/alibabacloud/mts/model/AddCensorPipelineRequest.h b/mts/include/alibabacloud/mts/model/AddCensorPipelineRequest.h index b7b552f68..12c49f091 100644 --- a/mts/include/alibabacloud/mts/model/AddCensorPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/AddCensorPipelineRequest.h @@ -1,69 +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_MTS_MODEL_ADDCENSORPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDCENSORPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddCensorPipelineRequest : public RpcServiceRequest - { - - public: - AddCensorPipelineRequest(); - ~AddCensorPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - int priority_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDCENSORPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDCENSORPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDCENSORPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddCensorPipelineRequest : public RpcServiceRequest { +public: + AddCensorPipelineRequest(); + ~AddCensorPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + int priority_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDCENSORPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddCensorPipelineResult.h b/mts/include/alibabacloud/mts/model/AddCensorPipelineResult.h index 6fb2bfd2c..dfe3412ed 100644 --- a/mts/include/alibabacloud/mts/model/AddCensorPipelineResult.h +++ b/mts/include/alibabacloud/mts/model/AddCensorPipelineResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string topic; std::string queue; }; - int priority; std::string state; + int priority; NotifyConfig notifyConfig; std::string id; std::string name; diff --git a/mts/include/alibabacloud/mts/model/AddCoverPipelineRequest.h b/mts/include/alibabacloud/mts/model/AddCoverPipelineRequest.h index 222dd7475..ffc972a62 100644 --- a/mts/include/alibabacloud/mts/model/AddCoverPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/AddCoverPipelineRequest.h @@ -1,72 +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_MTS_MODEL_ADDCOVERPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDCOVERPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddCoverPipelineRequest : public RpcServiceRequest - { - - public: - AddCoverPipelineRequest(); - ~AddCoverPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRole()const; - void setRole(const std::string& role); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string role_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - std::string priority_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDCOVERPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDCOVERPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDCOVERPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddCoverPipelineRequest : public RpcServiceRequest { +public: + AddCoverPipelineRequest(); + ~AddCoverPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRole() const; + void setRole(const std::string &role); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPriority() const; + void setPriority(const std::string &priority); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string role_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + std::string priority_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDCOVERPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddCoverPipelineResult.h b/mts/include/alibabacloud/mts/model/AddCoverPipelineResult.h index 5143264c9..4ea7cc02d 100644 --- a/mts/include/alibabacloud/mts/model/AddCoverPipelineResult.h +++ b/mts/include/alibabacloud/mts/model/AddCoverPipelineResult.h @@ -40,8 +40,8 @@ namespace AlibabaCloud std::string queue; }; std::string role; - std::string priority; std::string state; + std::string priority; NotifyConfig notifyConfig; std::string id; std::string name; diff --git a/mts/include/alibabacloud/mts/model/AddMCTemplateRequest.h b/mts/include/alibabacloud/mts/model/AddMCTemplateRequest.h index e53d0c863..2a01c4585 100644 --- a/mts/include/alibabacloud/mts/model/AddMCTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/AddMCTemplateRequest.h @@ -1,93 +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. - */ - -#ifndef ALIBABACLOUD_MTS_MODEL_ADDMCTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDMCTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddMCTemplateRequest : public RpcServiceRequest - { - - public: - AddMCTemplateRequest(); - ~AddMCTemplateRequest(); - - std::string getPolitics()const; - void setPolitics(const std::string& politics); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAbuse()const; - void setAbuse(const std::string& abuse); - std::string getQrcode()const; - void setQrcode(const std::string& qrcode); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getPorn()const; - void setPorn(const std::string& porn); - std::string getTerrorism()const; - void setTerrorism(const std::string& terrorism); - std::string getLogo()const; - void setLogo(const std::string& logo); - std::string getLive()const; - void setLive(const std::string& live); - std::string getContraband()const; - void setContraband(const std::string& contraband); - std::string getAd()const; - void setAd(const std::string& ad); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getSpam()const; - void setSpam(const std::string& spam); - - private: - std::string politics_; - long resourceOwnerId_; - std::string abuse_; - std::string qrcode_; - std::string accessKeyId_; - std::string porn_; - std::string terrorism_; - std::string logo_; - std::string live_; - std::string contraband_; - std::string ad_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string spam_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDMCTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDMCTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDMCTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddMCTemplateRequest : public RpcServiceRequest { +public: + AddMCTemplateRequest(); + ~AddMCTemplateRequest(); + std::string getPolitics() const; + void setPolitics(const std::string &politics); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAbuse() const; + void setAbuse(const std::string &abuse); + std::string getQrcode() const; + void setQrcode(const std::string &qrcode); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPorn() const; + void setPorn(const std::string &porn); + std::string getTerrorism() const; + void setTerrorism(const std::string &terrorism); + std::string getLogo() const; + void setLogo(const std::string &logo); + std::string getLive() const; + void setLive(const std::string &live); + std::string getContraband() const; + void setContraband(const std::string &contraband); + std::string getAd() const; + void setAd(const std::string &ad); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + std::string getSpam() const; + void setSpam(const std::string &spam); + +private: + std::string politics_; + long resourceOwnerId_; + std::string abuse_; + std::string qrcode_; + std::string accessKeyId_; + std::string porn_; + std::string terrorism_; + std::string logo_; + std::string live_; + std::string contraband_; + std::string ad_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string spam_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDMCTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddMCTemplateResult.h b/mts/include/alibabacloud/mts/model/AddMCTemplateResult.h index 92a1f2c25..6e9cb8706 100644 --- a/mts/include/alibabacloud/mts/model/AddMCTemplateResult.h +++ b/mts/include/alibabacloud/mts/model/AddMCTemplateResult.h @@ -35,17 +35,17 @@ namespace AlibabaCloud struct _Template { std::string contraband; - std::string ad; std::string qrcode; - std::string terrorism; + std::string ad; std::string abuse; + std::string terrorism; std::string live; std::string politics; std::string porn; - std::string templateId; std::string spam; - std::string name; + std::string templateId; std::string logo; + std::string name; }; diff --git a/mts/include/alibabacloud/mts/model/AddMediaRequest.h b/mts/include/alibabacloud/mts/model/AddMediaRequest.h index 873b56b83..14bd63f3c 100644 --- a/mts/include/alibabacloud/mts/model/AddMediaRequest.h +++ b/mts/include/alibabacloud/mts/model/AddMediaRequest.h @@ -1,90 +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_MTS_MODEL_ADDMEDIAREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDMEDIAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddMediaRequest : public RpcServiceRequest - { - - public: - AddMediaRequest(); - ~AddMediaRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getTitle()const; - void setTitle(const std::string& title); - bool getInputUnbind()const; - void setInputUnbind(bool inputUnbind); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getCoverURL()const; - void setCoverURL(const std::string& coverURL); - long getCateId()const; - void setCateId(long cateId); - std::string getMediaWorkflowId()const; - void setMediaWorkflowId(const std::string& mediaWorkflowId); - std::string getMediaWorkflowUserData()const; - void setMediaWorkflowUserData(const std::string& mediaWorkflowUserData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOverrideParams()const; - void setOverrideParams(const std::string& overrideParams); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTags()const; - void setTags(const std::string& tags); - std::string getFileURL()const; - void setFileURL(const std::string& fileURL); - - private: - long resourceOwnerId_; - std::string description_; - std::string title_; - bool inputUnbind_; - std::string accessKeyId_; - std::string coverURL_; - long cateId_; - std::string mediaWorkflowId_; - std::string mediaWorkflowUserData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string overrideParams_; - long ownerId_; - std::string tags_; - std::string fileURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDMEDIAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDMEDIAREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDMEDIAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddMediaRequest : public RpcServiceRequest { +public: + AddMediaRequest(); + ~AddMediaRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getTitle() const; + void setTitle(const std::string &title); + bool getInputUnbind() const; + void setInputUnbind(bool inputUnbind); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCoverURL() const; + void setCoverURL(const std::string &coverURL); + long getCateId() const; + void setCateId(long cateId); + std::string getMediaWorkflowId() const; + void setMediaWorkflowId(const std::string &mediaWorkflowId); + std::string getMediaWorkflowUserData() const; + void setMediaWorkflowUserData(const std::string &mediaWorkflowUserData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOverrideParams() const; + void setOverrideParams(const std::string &overrideParams); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getFileURL() const; + void setFileURL(const std::string &fileURL); + +private: + long resourceOwnerId_; + std::string description_; + std::string title_; + bool inputUnbind_; + std::string accessKeyId_; + std::string coverURL_; + long cateId_; + std::string mediaWorkflowId_; + std::string mediaWorkflowUserData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string overrideParams_; + long ownerId_; + std::string tags_; + std::string fileURL_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDMEDIAREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddMediaResult.h b/mts/include/alibabacloud/mts/model/AddMediaResult.h index e5a9393c2..64c00a044 100644 --- a/mts/include/alibabacloud/mts/model/AddMediaResult.h +++ b/mts/include/alibabacloud/mts/model/AddMediaResult.h @@ -51,8 +51,8 @@ namespace AlibabaCloud std::string format; std::string mediaId; std::string creationTime; - std::string coverURL; std::string height; + std::string coverURL; File file; std::string width; std::vector runIdList; diff --git a/mts/include/alibabacloud/mts/model/AddMediaTagRequest.h b/mts/include/alibabacloud/mts/model/AddMediaTagRequest.h index bd1716845..c23ff0e78 100644 --- a/mts/include/alibabacloud/mts/model/AddMediaTagRequest.h +++ b/mts/include/alibabacloud/mts/model/AddMediaTagRequest.h @@ -1,66 +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_MTS_MODEL_ADDMEDIATAGREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDMEDIATAGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddMediaTagRequest : public RpcServiceRequest - { - - public: - AddMediaTagRequest(); - ~AddMediaTagRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getTag()const; - void setTag(const std::string& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getMediaId()const; - void setMediaId(const std::string& mediaId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string mediaId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDMEDIATAGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDMEDIATAGREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDMEDIATAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddMediaTagRequest : public RpcServiceRequest { +public: + AddMediaTagRequest(); + ~AddMediaTagRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTag() const; + void setTag(const std::string &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getMediaId() const; + void setMediaId(const std::string &mediaId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string mediaId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDMEDIATAGREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddMediaWorkflowRequest.h b/mts/include/alibabacloud/mts/model/AddMediaWorkflowRequest.h index 89c9cadc3..a22259537 100644 --- a/mts/include/alibabacloud/mts/model/AddMediaWorkflowRequest.h +++ b/mts/include/alibabacloud/mts/model/AddMediaWorkflowRequest.h @@ -1,69 +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_MTS_MODEL_ADDMEDIAWORKFLOWREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDMEDIAWORKFLOWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddMediaWorkflowRequest : public RpcServiceRequest - { - - public: - AddMediaWorkflowRequest(); - ~AddMediaWorkflowRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getTopology()const; - void setTopology(const std::string& topology); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTriggerMode()const; - void setTriggerMode(const std::string& triggerMode); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string topology_; - std::string ownerAccount_; - long ownerId_; - std::string triggerMode_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDMEDIAWORKFLOWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDMEDIAWORKFLOWREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDMEDIAWORKFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddMediaWorkflowRequest : public RpcServiceRequest { +public: + AddMediaWorkflowRequest(); + ~AddMediaWorkflowRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getTopology() const; + void setTopology(const std::string &topology); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTriggerMode() const; + void setTriggerMode(const std::string &triggerMode); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string topology_; + std::string ownerAccount_; + long ownerId_; + std::string triggerMode_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDMEDIAWORKFLOWREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddMediaWorkflowResult.h b/mts/include/alibabacloud/mts/model/AddMediaWorkflowResult.h index c48c4242e..6ba91faa7 100644 --- a/mts/include/alibabacloud/mts/model/AddMediaWorkflowResult.h +++ b/mts/include/alibabacloud/mts/model/AddMediaWorkflowResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string state; std::string mediaWorkflowId; std::string creationTime; - std::string topology; std::string triggerMode; + std::string topology; std::string name; }; diff --git a/mts/include/alibabacloud/mts/model/AddPipelineRequest.h b/mts/include/alibabacloud/mts/model/AddPipelineRequest.h index 4ee589191..29b689e90 100644 --- a/mts/include/alibabacloud/mts/model/AddPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/AddPipelineRequest.h @@ -1,75 +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_MTS_MODEL_ADDPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddPipelineRequest : public RpcServiceRequest - { - - public: - AddPipelineRequest(); - ~AddPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRole()const; - void setRole(const std::string& role); - std::string getSpeed()const; - void setSpeed(const std::string& speed); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - long getSpeedLevel()const; - void setSpeedLevel(long speedLevel); - - private: - long resourceOwnerId_; - std::string role_; - std::string speed_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - std::string name_; - long speedLevel_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddPipelineRequest : public RpcServiceRequest { +public: + AddPipelineRequest(); + ~AddPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRole() const; + void setRole(const std::string &role); + std::string getSpeed() const; + void setSpeed(const std::string &speed); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + long getSpeedLevel() const; + void setSpeedLevel(long speedLevel); + +private: + long resourceOwnerId_; + std::string role_; + std::string speed_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + std::string name_; + long speedLevel_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddPipelineResult.h b/mts/include/alibabacloud/mts/model/AddPipelineResult.h index ec29e4488..633e40d86 100644 --- a/mts/include/alibabacloud/mts/model/AddPipelineResult.h +++ b/mts/include/alibabacloud/mts/model/AddPipelineResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud struct NotifyConfig { std::string mqTag; - std::string topic; std::string mqTopic; + std::string topic; std::string queueName; }; std::string role; diff --git a/mts/include/alibabacloud/mts/model/AddPornPipelineRequest.h b/mts/include/alibabacloud/mts/model/AddPornPipelineRequest.h index e785f4920..106cc7170 100644 --- a/mts/include/alibabacloud/mts/model/AddPornPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/AddPornPipelineRequest.h @@ -1,69 +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_MTS_MODEL_ADDPORNPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDPORNPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddPornPipelineRequest : public RpcServiceRequest - { - - public: - AddPornPipelineRequest(); - ~AddPornPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - int priority_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDPORNPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDPORNPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDPORNPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddPornPipelineRequest : public RpcServiceRequest { +public: + AddPornPipelineRequest(); + ~AddPornPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + int priority_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDPORNPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddPornPipelineResult.h b/mts/include/alibabacloud/mts/model/AddPornPipelineResult.h index 9a3b50ef4..7cb074a2f 100644 --- a/mts/include/alibabacloud/mts/model/AddPornPipelineResult.h +++ b/mts/include/alibabacloud/mts/model/AddPornPipelineResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string topic; std::string queue; }; - int priority; std::string state; + int priority; NotifyConfig notifyConfig; std::string id; std::string name; diff --git a/mts/include/alibabacloud/mts/model/AddSmarttagTemplateRequest.h b/mts/include/alibabacloud/mts/model/AddSmarttagTemplateRequest.h new file mode 100644 index 000000000..a6d9abb1b --- /dev/null +++ b/mts/include/alibabacloud/mts/model/AddSmarttagTemplateRequest.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_MTS_MODEL_ADDSMARTTAGTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDSMARTTAGTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddSmarttagTemplateRequest : public RpcServiceRequest { +public: + AddSmarttagTemplateRequest(); + ~AddSmarttagTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getIndustry() const; + void setIndustry(const std::string &industry); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getScene() const; + void setScene(const std::string &scene); + std::string getTemplateName() const; + void setTemplateName(const std::string &templateName); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + std::string getFaceCategoryIds() const; + void setFaceCategoryIds(const std::string &faceCategoryIds); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAnalyseTypes() const; + void setAnalyseTypes(const std::string &analyseTypes); + +private: + long resourceOwnerId_; + std::string industry_; + std::string accessKeyId_; + std::string scene_; + std::string templateName_; + bool isDefault_; + std::string faceCategoryIds_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string analyseTypes_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDSMARTTAGTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddSmarttagTemplateResult.h b/mts/include/alibabacloud/mts/model/AddSmarttagTemplateResult.h new file mode 100644 index 000000000..46467ffa8 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/AddSmarttagTemplateResult.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_MTS_MODEL_ADDSMARTTAGTEMPLATERESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDSMARTTAGTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT AddSmarttagTemplateResult : public ServiceResult + { + public: + + + AddSmarttagTemplateResult(); + explicit AddSmarttagTemplateResult(const std::string &payload); + ~AddSmarttagTemplateResult(); + std::string getTemplateId()const; + + protected: + void parse(const std::string &payload); + private: + std::string templateId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_ADDSMARTTAGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/AddTemplateRequest.h b/mts/include/alibabacloud/mts/model/AddTemplateRequest.h index 8b0f2de2b..101402be9 100644 --- a/mts/include/alibabacloud/mts/model/AddTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/AddTemplateRequest.h @@ -1,78 +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_MTS_MODEL_ADDTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddTemplateRequest : public RpcServiceRequest - { - - public: - AddTemplateRequest(); - ~AddTemplateRequest(); - - std::string getContainer()const; - void setContainer(const std::string& container); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVideo()const; - void setVideo(const std::string& video); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getTransConfig()const; - void setTransConfig(const std::string& transConfig); - std::string getAudio()const; - void setAudio(const std::string& audio); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getMuxConfig()const; - void setMuxConfig(const std::string& muxConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string container_; - long resourceOwnerId_; - std::string video_; - std::string accessKeyId_; - std::string transConfig_; - std::string audio_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string muxConfig_; - long ownerId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddTemplateRequest : public RpcServiceRequest { +public: + AddTemplateRequest(); + ~AddTemplateRequest(); + std::string getContainer() const; + void setContainer(const std::string &container); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVideo() const; + void setVideo(const std::string &video); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTransConfig() const; + void setTransConfig(const std::string &transConfig); + std::string getAudio() const; + void setAudio(const std::string &audio); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getMuxConfig() const; + void setMuxConfig(const std::string &muxConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string container_; + long resourceOwnerId_; + std::string video_; + std::string accessKeyId_; + std::string transConfig_; + std::string audio_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string muxConfig_; + long ownerId_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddTemplateResult.h b/mts/include/alibabacloud/mts/model/AddTemplateResult.h index f4a3d2720..914150e34 100644 --- a/mts/include/alibabacloud/mts/model/AddTemplateResult.h +++ b/mts/include/alibabacloud/mts/model/AddTemplateResult.h @@ -34,10 +34,6 @@ namespace AlibabaCloud public: struct _Template { - struct Container - { - std::string format; - }; struct Video { struct BitrateBnd @@ -49,8 +45,8 @@ namespace AlibabaCloud std::string qscale; std::string scanMode; std::string preset; - std::string fps; std::string longShortMode; + std::string fps; std::string gop; std::string remove; BitrateBnd bitrateBnd; @@ -58,16 +54,48 @@ namespace AlibabaCloud std::string bitrate; std::string profile; std::string crop; + std::string pad; std::string codec; std::string maxrate; - std::string pad; - std::string crf; std::string maxFps; + std::string crf; std::string height; std::string degrain; std::string width; std::string resoPriority; }; + struct TransConfig + { + std::string isCheckAudioBitrate; + std::string adjDarMethod; + std::string isCheckAudioBitrateFail; + std::string isCheckVideoBitrateFail; + std::string isCheckReso; + std::string isCheckVideoBitrate; + std::string transMode; + std::string isCheckResoFail; + }; + struct MuxConfig + { + struct Webp + { + std::string loop; + }; + struct Gif + { + std::string finalDelay; + std::string loop; + std::string ditherMode; + std::string isCustomPalette; + }; + struct Segment + { + std::string duration; + }; + Webp webp; + Gif gif; + Segment segment; + }; struct Audio { struct Volume @@ -84,37 +112,9 @@ namespace AlibabaCloud std::string profile; std::string channels; }; - struct TransConfig + struct Container { - std::string isCheckAudioBitrate; - std::string adjDarMethod; - std::string isCheckAudioBitrateFail; - std::string isCheckVideoBitrateFail; - std::string isCheckReso; - std::string isCheckVideoBitrate; - std::string transMode; - std::string isCheckResoFail; - }; - struct MuxConfig - { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - std::string ditherMode; - std::string isCustomPalette; - }; - struct Webp - { - std::string loop; - }; - Gif gif; - Webp webp; - Segment segment; + std::string format; }; Container container; TransConfig transConfig; diff --git a/mts/include/alibabacloud/mts/model/AddTerrorismPipelineRequest.h b/mts/include/alibabacloud/mts/model/AddTerrorismPipelineRequest.h index 7b14596c1..7243d7b88 100644 --- a/mts/include/alibabacloud/mts/model/AddTerrorismPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/AddTerrorismPipelineRequest.h @@ -1,69 +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_MTS_MODEL_ADDTERRORISMPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDTERRORISMPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddTerrorismPipelineRequest : public RpcServiceRequest - { - - public: - AddTerrorismPipelineRequest(); - ~AddTerrorismPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - int priority_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDTERRORISMPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDTERRORISMPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDTERRORISMPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddTerrorismPipelineRequest : public RpcServiceRequest { +public: + AddTerrorismPipelineRequest(); + ~AddTerrorismPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + int priority_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDTERRORISMPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddTerrorismPipelineResult.h b/mts/include/alibabacloud/mts/model/AddTerrorismPipelineResult.h index 1b0562384..fcc3e1980 100644 --- a/mts/include/alibabacloud/mts/model/AddTerrorismPipelineResult.h +++ b/mts/include/alibabacloud/mts/model/AddTerrorismPipelineResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string topic; std::string queue; }; - int priority; std::string state; + int priority; NotifyConfig notifyConfig; std::string id; std::string name; diff --git a/mts/include/alibabacloud/mts/model/AddWaterMarkTemplateRequest.h b/mts/include/alibabacloud/mts/model/AddWaterMarkTemplateRequest.h index 90ede5e3e..882bef72c 100644 --- a/mts/include/alibabacloud/mts/model/AddWaterMarkTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/AddWaterMarkTemplateRequest.h @@ -1,66 +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_MTS_MODEL_ADDWATERMARKTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_ADDWATERMARKTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT AddWaterMarkTemplateRequest : public RpcServiceRequest - { - - public: - AddWaterMarkTemplateRequest(); - ~AddWaterMarkTemplateRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getConfig()const; - void setConfig(const std::string& config); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string config_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_ADDWATERMARKTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_ADDWATERMARKTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_ADDWATERMARKTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT AddWaterMarkTemplateRequest : public RpcServiceRequest { +public: + AddWaterMarkTemplateRequest(); + ~AddWaterMarkTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + std::string getConfig() const; + void setConfig(const std::string &config); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string config_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_ADDWATERMARKTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/AddWaterMarkTemplateResult.h b/mts/include/alibabacloud/mts/model/AddWaterMarkTemplateResult.h index 57e9079a6..fa4367ddd 100644 --- a/mts/include/alibabacloud/mts/model/AddWaterMarkTemplateResult.h +++ b/mts/include/alibabacloud/mts/model/AddWaterMarkTemplateResult.h @@ -34,11 +34,6 @@ namespace AlibabaCloud public: struct WaterMarkTemplate { - struct Timeline - { - std::string start; - std::string duration; - }; struct RatioRefer { std::string dx; @@ -46,8 +41,13 @@ namespace AlibabaCloud std::string height; std::string width; }; - Timeline timeline; + struct Timeline + { + std::string start; + std::string duration; + }; RatioRefer ratioRefer; + Timeline timeline; std::string type; std::string dx; std::string dy; diff --git a/mts/include/alibabacloud/mts/model/BindInputBucketRequest.h b/mts/include/alibabacloud/mts/model/BindInputBucketRequest.h index 654d39dcc..b15c5db22 100644 --- a/mts/include/alibabacloud/mts/model/BindInputBucketRequest.h +++ b/mts/include/alibabacloud/mts/model/BindInputBucketRequest.h @@ -1,66 +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_MTS_MODEL_BINDINPUTBUCKETREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_BINDINPUTBUCKETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT BindInputBucketRequest : public RpcServiceRequest - { - - public: - BindInputBucketRequest(); - ~BindInputBucketRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getBucket()const; - void setBucket(const std::string& bucket); - std::string getRoleArn()const; - void setRoleArn(const std::string& roleArn); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string bucket_; - std::string roleArn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_BINDINPUTBUCKETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_BINDINPUTBUCKETREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_BINDINPUTBUCKETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT BindInputBucketRequest : public RpcServiceRequest { +public: + BindInputBucketRequest(); + ~BindInputBucketRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getBucket() const; + void setBucket(const std::string &bucket); + std::string getRoleArn() const; + void setRoleArn(const std::string &roleArn); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string bucket_; + std::string roleArn_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_BINDINPUTBUCKETREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/BindOutputBucketRequest.h b/mts/include/alibabacloud/mts/model/BindOutputBucketRequest.h index 2cb8a3ed7..28582b5b9 100644 --- a/mts/include/alibabacloud/mts/model/BindOutputBucketRequest.h +++ b/mts/include/alibabacloud/mts/model/BindOutputBucketRequest.h @@ -1,66 +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_MTS_MODEL_BINDOUTPUTBUCKETREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_BINDOUTPUTBUCKETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT BindOutputBucketRequest : public RpcServiceRequest - { - - public: - BindOutputBucketRequest(); - ~BindOutputBucketRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getBucket()const; - void setBucket(const std::string& bucket); - std::string getRoleArn()const; - void setRoleArn(const std::string& roleArn); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string bucket_; - std::string roleArn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_BINDOUTPUTBUCKETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_BINDOUTPUTBUCKETREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_BINDOUTPUTBUCKETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT BindOutputBucketRequest : public RpcServiceRequest { +public: + BindOutputBucketRequest(); + ~BindOutputBucketRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getBucket() const; + void setBucket(const std::string &bucket); + std::string getRoleArn() const; + void setRoleArn(const std::string &roleArn); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string bucket_; + std::string roleArn_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_BINDOUTPUTBUCKETREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/CancelJobRequest.h b/mts/include/alibabacloud/mts/model/CancelJobRequest.h index eb2e062da..2f681081d 100644 --- a/mts/include/alibabacloud/mts/model/CancelJobRequest.h +++ b/mts/include/alibabacloud/mts/model/CancelJobRequest.h @@ -1,63 +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_MTS_MODEL_CANCELJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_CANCELJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT CancelJobRequest : public RpcServiceRequest - { - - public: - CancelJobRequest(); - ~CancelJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_CANCELJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_CANCELJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_CANCELJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT CancelJobRequest : public RpcServiceRequest { +public: + CancelJobRequest(); + ~CancelJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_CANCELJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/CategoryTreeRequest.h b/mts/include/alibabacloud/mts/model/CategoryTreeRequest.h index 59f0bbaab..3a88862ed 100644 --- a/mts/include/alibabacloud/mts/model/CategoryTreeRequest.h +++ b/mts/include/alibabacloud/mts/model/CategoryTreeRequest.h @@ -1,60 +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_MTS_MODEL_CATEGORYTREEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_CATEGORYTREEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT CategoryTreeRequest : public RpcServiceRequest - { - - public: - CategoryTreeRequest(); - ~CategoryTreeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_CATEGORYTREEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_CATEGORYTREEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_CATEGORYTREEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT CategoryTreeRequest : public RpcServiceRequest { +public: + CategoryTreeRequest(); + ~CategoryTreeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_CATEGORYTREEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/CheckResourceRequest.h b/mts/include/alibabacloud/mts/model/CheckResourceRequest.h index ff1d2d866..ed3261f66 100644 --- a/mts/include/alibabacloud/mts/model/CheckResourceRequest.h +++ b/mts/include/alibabacloud/mts/model/CheckResourceRequest.h @@ -1,87 +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_MTS_MODEL_CHECKRESOURCEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_CHECKRESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT CheckResourceRequest : public RpcServiceRequest - { - - public: - CheckResourceRequest(); - ~CheckResourceRequest(); - - std::string getCountry()const; - void setCountry(const std::string& country); - long getHid()const; - void setHid(long hid); - long getLevel()const; - void setLevel(long level); - std::string getInvoker()const; - void setInvoker(const std::string& invoker); - std::string getMessage()const; - void setMessage(const std::string& message); - std::string getUrl()const; - void setUrl(const std::string& url); - bool getSuccess()const; - void setSuccess(bool success); - bool getInterrupt()const; - void setInterrupt(bool interrupt); - std::string getGmtWakeup()const; - void setGmtWakeup(const std::string& gmtWakeup); - std::string getPk()const; - void setPk(const std::string& pk); - std::string getBid()const; - void setBid(const std::string& bid); - std::string getPrompt()const; - void setPrompt(const std::string& prompt); - std::string getTaskExtraData()const; - void setTaskExtraData(const std::string& taskExtraData); - std::string getTaskIdentifier()const; - void setTaskIdentifier(const std::string& taskIdentifier); - - private: - std::string country_; - long hid_; - long level_; - std::string invoker_; - std::string message_; - std::string url_; - bool success_; - bool interrupt_; - std::string gmtWakeup_; - std::string pk_; - std::string bid_; - std::string prompt_; - std::string taskExtraData_; - std::string taskIdentifier_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_CHECKRESOURCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_CHECKRESOURCEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_CHECKRESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT CheckResourceRequest : public RpcServiceRequest { +public: + CheckResourceRequest(); + ~CheckResourceRequest(); + std::string getCountry() const; + void setCountry(const std::string &country); + long getHid() const; + void setHid(long hid); + long getLevel() const; + void setLevel(long level); + std::string getInvoker() const; + void setInvoker(const std::string &invoker); + std::string getMessage() const; + void setMessage(const std::string &message); + std::string getUrl() const; + void setUrl(const std::string &url); + bool getSuccess() const; + void setSuccess(bool success); + bool getInterrupt() const; + void setInterrupt(bool interrupt); + std::string getGmtWakeup() const; + void setGmtWakeup(const std::string &gmtWakeup); + std::string getPk() const; + void setPk(const std::string &pk); + std::string getBid() const; + void setBid(const std::string &bid); + std::string getPrompt() const; + void setPrompt(const std::string &prompt); + std::string getTaskExtraData() const; + void setTaskExtraData(const std::string &taskExtraData); + std::string getTaskIdentifier() const; + void setTaskIdentifier(const std::string &taskIdentifier); + +private: + std::string country_; + long hid_; + long level_; + std::string invoker_; + std::string message_; + std::string url_; + bool success_; + bool interrupt_; + std::string gmtWakeup_; + std::string pk_; + std::string bid_; + std::string prompt_; + std::string taskExtraData_; + std::string taskIdentifier_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_CHECKRESOURCEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/CheckResourceResult.h b/mts/include/alibabacloud/mts/model/CheckResourceResult.h index 31451ad89..9a6bb13ce 100644 --- a/mts/include/alibabacloud/mts/model/CheckResourceResult.h +++ b/mts/include/alibabacloud/mts/model/CheckResourceResult.h @@ -39,16 +39,16 @@ namespace AlibabaCloud ~CheckResourceResult(); std::string getGmtWakeup()const; long getHid()const; - std::string getTaskIdentifier()const; std::string getMessage()const; - bool getInterrupt()const; + std::string getTaskIdentifier()const; bool getSuccess()const; std::string getUrl()const; + bool getInterrupt()const; std::string getInvoker()const; std::string getTaskExtraData()const; std::string getCountry()const; - long getLevel()const; std::string getPrompt()const; + long getLevel()const; std::string getPk()const; std::string getBid()const; @@ -57,16 +57,16 @@ namespace AlibabaCloud private: std::string gmtWakeup_; long hid_; - std::string taskIdentifier_; std::string message_; - bool interrupt_; + std::string taskIdentifier_; bool success_; std::string url_; + bool interrupt_; std::string invoker_; std::string taskExtraData_; std::string country_; - long level_; std::string prompt_; + long level_; std::string pk_; std::string bid_; diff --git a/mts/include/alibabacloud/mts/model/CreateFpShotDBRequest.h b/mts/include/alibabacloud/mts/model/CreateFpShotDBRequest.h index d76c0b94b..8a7ee7fcc 100644 --- a/mts/include/alibabacloud/mts/model/CreateFpShotDBRequest.h +++ b/mts/include/alibabacloud/mts/model/CreateFpShotDBRequest.h @@ -1,72 +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_MTS_MODEL_CREATEFPSHOTDBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_CREATEFPSHOTDBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT CreateFpShotDBRequest : public RpcServiceRequest - { - - public: - CreateFpShotDBRequest(); - ~CreateFpShotDBRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - int getModelId()const; - void setModelId(int modelId); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getConfig()const; - void setConfig(const std::string& config); - - private: - long resourceOwnerId_; - std::string description_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - int modelId_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string config_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_CREATEFPSHOTDBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_CREATEFPSHOTDBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_CREATEFPSHOTDBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT CreateFpShotDBRequest : public RpcServiceRequest { +public: + CreateFpShotDBRequest(); + ~CreateFpShotDBRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + int getModelId() const; + void setModelId(int modelId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + std::string getConfig() const; + void setConfig(const std::string &config); + +private: + long resourceOwnerId_; + std::string description_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + int modelId_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string config_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_CREATEFPSHOTDBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/CreateInferenceServerRequest.h b/mts/include/alibabacloud/mts/model/CreateInferenceServerRequest.h new file mode 100644 index 000000000..57b58efdf --- /dev/null +++ b/mts/include/alibabacloud/mts/model/CreateInferenceServerRequest.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_MTS_MODEL_CREATEINFERENCESERVERREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_CREATEINFERENCESERVERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT CreateInferenceServerRequest : public RpcServiceRequest { +public: + CreateInferenceServerRequest(); + ~CreateInferenceServerRequest(); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getModelType() const; + void setModelType(const std::string &modelType); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getTestId() const; + void setTestId(const std::string &testId); + std::string getModelPath() const; + void setModelPath(const std::string &modelPath); + +private: + std::string pipelineId_; + std::string userData_; + std::string modelType_; + std::string functionName_; + std::string testId_; + std::string modelPath_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_CREATEINFERENCESERVERREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/CreateInferenceServerResult.h b/mts/include/alibabacloud/mts/model/CreateInferenceServerResult.h new file mode 100644 index 000000000..a1b34cfed --- /dev/null +++ b/mts/include/alibabacloud/mts/model/CreateInferenceServerResult.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_MTS_MODEL_CREATEINFERENCESERVERRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_CREATEINFERENCESERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT CreateInferenceServerResult : public ServiceResult + { + public: + + + CreateInferenceServerResult(); + explicit CreateInferenceServerResult(const std::string &payload); + ~CreateInferenceServerResult(); + std::string getMessage()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_CREATEINFERENCESERVERRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/CreateMcuTemplateRequest.h b/mts/include/alibabacloud/mts/model/CreateMcuTemplateRequest.h index c1df4060e..feac04895 100644 --- a/mts/include/alibabacloud/mts/model/CreateMcuTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/CreateMcuTemplateRequest.h @@ -1,63 +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_MTS_MODEL_CREATEMCUTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_CREATEMCUTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT CreateMcuTemplateRequest : public RpcServiceRequest - { - - public: - CreateMcuTemplateRequest(); - ~CreateMcuTemplateRequest(); - - std::string get_Template()const; - void set_Template(const std::string& _template); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string _template_; - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_CREATEMCUTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_CREATEMCUTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_CREATEMCUTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT CreateMcuTemplateRequest : public RpcServiceRequest { +public: + CreateMcuTemplateRequest(); + ~CreateMcuTemplateRequest(); + std::string get_Template() const; + void set_Template(const std::string &_template); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string _template_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_CREATEMCUTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/CreateSessionRequest.h b/mts/include/alibabacloud/mts/model/CreateSessionRequest.h index 057dbffa8..0d9424972 100644 --- a/mts/include/alibabacloud/mts/model/CreateSessionRequest.h +++ b/mts/include/alibabacloud/mts/model/CreateSessionRequest.h @@ -1,69 +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_MTS_MODEL_CREATESESSIONREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_CREATESESSIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT CreateSessionRequest : public RpcServiceRequest - { - - public: - CreateSessionRequest(); - ~CreateSessionRequest(); - - std::string getResourceOwnerId()const; - void setResourceOwnerId(const std::string& resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - int getSessionTime()const; - void setSessionTime(int sessionTime); - std::string getEndUserId()const; - void setEndUserId(const std::string& endUserId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getMediaId()const; - void setMediaId(const std::string& mediaId); - - private: - std::string resourceOwnerId_; - std::string accessKeyId_; - int sessionTime_; - std::string endUserId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string ownerId_; - std::string mediaId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_CREATESESSIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_CREATESESSIONREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_CREATESESSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT CreateSessionRequest : public RpcServiceRequest { +public: + CreateSessionRequest(); + ~CreateSessionRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getSessionTime() const; + void setSessionTime(int sessionTime); + std::string getEndUserId() const; + void setEndUserId(const std::string &endUserId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getMediaId() const; + void setMediaId(const std::string &mediaId); + +private: + std::string resourceOwnerId_; + std::string accessKeyId_; + int sessionTime_; + std::string endUserId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string ownerId_; + std::string mediaId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_CREATESESSIONREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeactivateMediaWorkflowRequest.h b/mts/include/alibabacloud/mts/model/DeactivateMediaWorkflowRequest.h index 8fc1acce6..be585e92f 100644 --- a/mts/include/alibabacloud/mts/model/DeactivateMediaWorkflowRequest.h +++ b/mts/include/alibabacloud/mts/model/DeactivateMediaWorkflowRequest.h @@ -1,63 +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_MTS_MODEL_DEACTIVATEMEDIAWORKFLOWREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DEACTIVATEMEDIAWORKFLOWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DeactivateMediaWorkflowRequest : public RpcServiceRequest - { - - public: - DeactivateMediaWorkflowRequest(); - ~DeactivateMediaWorkflowRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMediaWorkflowId()const; - void setMediaWorkflowId(const std::string& mediaWorkflowId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string mediaWorkflowId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DEACTIVATEMEDIAWORKFLOWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DEACTIVATEMEDIAWORKFLOWREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DEACTIVATEMEDIAWORKFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeactivateMediaWorkflowRequest : public RpcServiceRequest { +public: + DeactivateMediaWorkflowRequest(); + ~DeactivateMediaWorkflowRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMediaWorkflowId() const; + void setMediaWorkflowId(const std::string &mediaWorkflowId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string mediaWorkflowId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DEACTIVATEMEDIAWORKFLOWREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DecryptKeyRequest.h b/mts/include/alibabacloud/mts/model/DecryptKeyRequest.h index 1b9b07c17..4a9a93573 100644 --- a/mts/include/alibabacloud/mts/model/DecryptKeyRequest.h +++ b/mts/include/alibabacloud/mts/model/DecryptKeyRequest.h @@ -1,66 +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_MTS_MODEL_DECRYPTKEYREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DECRYPTKEYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DecryptKeyRequest : public RpcServiceRequest - { - - public: - DecryptKeyRequest(); - ~DecryptKeyRequest(); - - std::string getResourceOwnerId()const; - void setResourceOwnerId(const std::string& resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getRand()const; - void setRand(const std::string& rand); - std::string getCiphertextBlob()const; - void setCiphertextBlob(const std::string& ciphertextBlob); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string resourceOwnerId_; - std::string accessKeyId_; - std::string rand_; - std::string ciphertextBlob_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DECRYPTKEYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DECRYPTKEYREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DECRYPTKEYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DecryptKeyRequest : public RpcServiceRequest { +public: + DecryptKeyRequest(); + ~DecryptKeyRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRand() const; + void setRand(const std::string &rand); + std::string getCiphertextBlob() const; + void setCiphertextBlob(const std::string &ciphertextBlob); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + +private: + std::string resourceOwnerId_; + std::string accessKeyId_; + std::string rand_; + std::string ciphertextBlob_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DECRYPTKEYREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeleteCategoryRequest.h b/mts/include/alibabacloud/mts/model/DeleteCategoryRequest.h index d28c1d80e..8c41ea06c 100644 --- a/mts/include/alibabacloud/mts/model/DeleteCategoryRequest.h +++ b/mts/include/alibabacloud/mts/model/DeleteCategoryRequest.h @@ -1,63 +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_MTS_MODEL_DELETECATEGORYREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DELETECATEGORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DeleteCategoryRequest : public RpcServiceRequest - { - - public: - DeleteCategoryRequest(); - ~DeleteCategoryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getCateId()const; - void setCateId(long cateId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - long cateId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DELETECATEGORYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DELETECATEGORYREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETECATEGORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeleteCategoryRequest : public RpcServiceRequest { +public: + DeleteCategoryRequest(); + ~DeleteCategoryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getCateId() const; + void setCateId(long cateId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + long cateId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DELETECATEGORYREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeleteMCTemplateRequest.h b/mts/include/alibabacloud/mts/model/DeleteMCTemplateRequest.h index a61b61816..e6b2bc00d 100644 --- a/mts/include/alibabacloud/mts/model/DeleteMCTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/DeleteMCTemplateRequest.h @@ -1,63 +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_MTS_MODEL_DELETEMCTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DELETEMCTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DeleteMCTemplateRequest : public RpcServiceRequest - { - - public: - DeleteMCTemplateRequest(); - ~DeleteMCTemplateRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string templateId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMCTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DELETEMCTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETEMCTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeleteMCTemplateRequest : public RpcServiceRequest { +public: + DeleteMCTemplateRequest(); + ~DeleteMCTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string templateId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMCTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeleteMcuJobRequest.h b/mts/include/alibabacloud/mts/model/DeleteMcuJobRequest.h index 8921ea4d0..b9cd079a9 100644 --- a/mts/include/alibabacloud/mts/model/DeleteMcuJobRequest.h +++ b/mts/include/alibabacloud/mts/model/DeleteMcuJobRequest.h @@ -1,63 +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_MTS_MODEL_DELETEMCUJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DELETEMCUJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DeleteMcuJobRequest : public RpcServiceRequest - { - - public: - DeleteMcuJobRequest(); - ~DeleteMcuJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMCUJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DELETEMCUJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETEMCUJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeleteMcuJobRequest : public RpcServiceRequest { +public: + DeleteMcuJobRequest(); + ~DeleteMcuJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMCUJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeleteMcuTemplateRequest.h b/mts/include/alibabacloud/mts/model/DeleteMcuTemplateRequest.h index db4a91818..c579569de 100644 --- a/mts/include/alibabacloud/mts/model/DeleteMcuTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/DeleteMcuTemplateRequest.h @@ -1,63 +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_MTS_MODEL_DELETEMCUTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DELETEMCUTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DeleteMcuTemplateRequest : public RpcServiceRequest - { - - public: - DeleteMcuTemplateRequest(); - ~DeleteMcuTemplateRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string templateId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMCUTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DELETEMCUTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETEMCUTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeleteMcuTemplateRequest : public RpcServiceRequest { +public: + DeleteMcuTemplateRequest(); + ~DeleteMcuTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string templateId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMCUTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeleteMediaRequest.h b/mts/include/alibabacloud/mts/model/DeleteMediaRequest.h index eae12df03..27d1d4796 100644 --- a/mts/include/alibabacloud/mts/model/DeleteMediaRequest.h +++ b/mts/include/alibabacloud/mts/model/DeleteMediaRequest.h @@ -1,63 +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_MTS_MODEL_DELETEMEDIAREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DELETEMEDIAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DeleteMediaRequest : public RpcServiceRequest - { - - public: - DeleteMediaRequest(); - ~DeleteMediaRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMediaIds()const; - void setMediaIds(const std::string& mediaIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string mediaIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMEDIAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DELETEMEDIAREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETEMEDIAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeleteMediaRequest : public RpcServiceRequest { +public: + DeleteMediaRequest(); + ~DeleteMediaRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMediaIds() const; + void setMediaIds(const std::string &mediaIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string mediaIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMEDIAREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeleteMediaTagRequest.h b/mts/include/alibabacloud/mts/model/DeleteMediaTagRequest.h index d83d08061..a7d138df8 100644 --- a/mts/include/alibabacloud/mts/model/DeleteMediaTagRequest.h +++ b/mts/include/alibabacloud/mts/model/DeleteMediaTagRequest.h @@ -1,66 +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_MTS_MODEL_DELETEMEDIATAGREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DELETEMEDIATAGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DeleteMediaTagRequest : public RpcServiceRequest - { - - public: - DeleteMediaTagRequest(); - ~DeleteMediaTagRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getTag()const; - void setTag(const std::string& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getMediaId()const; - void setMediaId(const std::string& mediaId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string mediaId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMEDIATAGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DELETEMEDIATAGREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETEMEDIATAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeleteMediaTagRequest : public RpcServiceRequest { +public: + DeleteMediaTagRequest(); + ~DeleteMediaTagRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTag() const; + void setTag(const std::string &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getMediaId() const; + void setMediaId(const std::string &mediaId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string mediaId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMEDIATAGREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeleteMediaWorkflowRequest.h b/mts/include/alibabacloud/mts/model/DeleteMediaWorkflowRequest.h index 76b83ac6c..36e3f69d8 100644 --- a/mts/include/alibabacloud/mts/model/DeleteMediaWorkflowRequest.h +++ b/mts/include/alibabacloud/mts/model/DeleteMediaWorkflowRequest.h @@ -1,63 +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_MTS_MODEL_DELETEMEDIAWORKFLOWREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DELETEMEDIAWORKFLOWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DeleteMediaWorkflowRequest : public RpcServiceRequest - { - - public: - DeleteMediaWorkflowRequest(); - ~DeleteMediaWorkflowRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMediaWorkflowId()const; - void setMediaWorkflowId(const std::string& mediaWorkflowId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string mediaWorkflowId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMEDIAWORKFLOWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DELETEMEDIAWORKFLOWREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETEMEDIAWORKFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeleteMediaWorkflowRequest : public RpcServiceRequest { +public: + DeleteMediaWorkflowRequest(); + ~DeleteMediaWorkflowRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMediaWorkflowId() const; + void setMediaWorkflowId(const std::string &mediaWorkflowId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string mediaWorkflowId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DELETEMEDIAWORKFLOWREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeletePipelineRequest.h b/mts/include/alibabacloud/mts/model/DeletePipelineRequest.h index 671461e90..0dabb8c03 100644 --- a/mts/include/alibabacloud/mts/model/DeletePipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/DeletePipelineRequest.h @@ -1,63 +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_MTS_MODEL_DELETEPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DELETEPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DeletePipelineRequest : public RpcServiceRequest - { - - public: - DeletePipelineRequest(); - ~DeletePipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string pipelineId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DELETEPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DELETEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETEPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeletePipelineRequest : public RpcServiceRequest { +public: + DeletePipelineRequest(); + ~DeletePipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string pipelineId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DELETEPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeleteSmarttagTemplateRequest.h b/mts/include/alibabacloud/mts/model/DeleteSmarttagTemplateRequest.h new file mode 100644 index 000000000..81b4f4760 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/DeleteSmarttagTemplateRequest.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_MTS_MODEL_DELETESMARTTAGTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETESMARTTAGTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeleteSmarttagTemplateRequest : public RpcServiceRequest { +public: + DeleteSmarttagTemplateRequest(); + ~DeleteSmarttagTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string templateId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DELETESMARTTAGTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeleteSmarttagTemplateResult.h b/mts/include/alibabacloud/mts/model/DeleteSmarttagTemplateResult.h new file mode 100644 index 000000000..dbd638921 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/DeleteSmarttagTemplateResult.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_MTS_MODEL_DELETESMARTTAGTEMPLATERESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETESMARTTAGTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT DeleteSmarttagTemplateResult : public ServiceResult + { + public: + + + DeleteSmarttagTemplateResult(); + explicit DeleteSmarttagTemplateResult(const std::string &payload); + ~DeleteSmarttagTemplateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_DELETESMARTTAGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/DeleteTemplateRequest.h b/mts/include/alibabacloud/mts/model/DeleteTemplateRequest.h index fee457600..8bc5d3e14 100644 --- a/mts/include/alibabacloud/mts/model/DeleteTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/DeleteTemplateRequest.h @@ -1,63 +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_MTS_MODEL_DELETETEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DELETETEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DeleteTemplateRequest : public RpcServiceRequest - { - - public: - DeleteTemplateRequest(); - ~DeleteTemplateRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string templateId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DELETETEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DELETETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETETEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeleteTemplateRequest : public RpcServiceRequest { +public: + DeleteTemplateRequest(); + ~DeleteTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string templateId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DELETETEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DeleteWaterMarkTemplateRequest.h b/mts/include/alibabacloud/mts/model/DeleteWaterMarkTemplateRequest.h index 8a5e2b6f4..1a4293d39 100644 --- a/mts/include/alibabacloud/mts/model/DeleteWaterMarkTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/DeleteWaterMarkTemplateRequest.h @@ -1,63 +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_MTS_MODEL_DELETEWATERMARKTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DELETEWATERMARKTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DeleteWaterMarkTemplateRequest : public RpcServiceRequest - { - - public: - DeleteWaterMarkTemplateRequest(); - ~DeleteWaterMarkTemplateRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getWaterMarkTemplateId()const; - void setWaterMarkTemplateId(const std::string& waterMarkTemplateId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string waterMarkTemplateId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DELETEWATERMARKTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DELETEWATERMARKTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DELETEWATERMARKTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DeleteWaterMarkTemplateRequest : public RpcServiceRequest { +public: + DeleteWaterMarkTemplateRequest(); + ~DeleteWaterMarkTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getWaterMarkTemplateId() const; + void setWaterMarkTemplateId(const std::string &waterMarkTemplateId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string waterMarkTemplateId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DELETEWATERMARKTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageRequest.h b/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageRequest.h index 19ef950c6..d9e19faa0 100644 --- a/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageRequest.h +++ b/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT DescribeMtsUserResourcePackageRequest : public RpcServiceRequest - { - - public: - DescribeMtsUserResourcePackageRequest(); - ~DescribeMtsUserResourcePackageRequest(); - - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSecurityToken()const; - void setSecurityToken(const std::string& securityToken); - std::string getShowLog()const; - void setShowLog(const std::string& showLog); - - private: - long ownerId_; - std::string securityToken_; - std::string showLog_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DescribeMtsUserResourcePackageRequest : public RpcServiceRequest { +public: + DescribeMtsUserResourcePackageRequest(); + ~DescribeMtsUserResourcePackageRequest(); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + std::string getShowLog() const; + void setShowLog(const std::string &showLog); + +private: + long ownerId_; + std::string securityToken_; + std::string showLog_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DESCRIBEMTSUSERRESOURCEPACKAGEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageResult.h b/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageResult.h index c852275f4..b694b324c 100644 --- a/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageResult.h +++ b/mts/include/alibabacloud/mts/model/DescribeMtsUserResourcePackageResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string status; std::string initCapacity; std::string instanceId; - std::string commodityCode; std::string displayName; + std::string commodityCode; std::string currCapacity; }; diff --git a/mts/include/alibabacloud/mts/model/DetectImageSyncRequest.h b/mts/include/alibabacloud/mts/model/DetectImageSyncRequest.h new file mode 100644 index 000000000..28fdf7278 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/DetectImageSyncRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_MTS_MODEL_DETECTIMAGESYNCREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_DETECTIMAGESYNCREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT DetectImageSyncRequest : public RpcServiceRequest { +public: + DetectImageSyncRequest(); + ~DetectImageSyncRequest(); + std::string getImage() const; + void setImage(const std::string &image); + +private: + std::string image_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_DETECTIMAGESYNCREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/DetectImageSyncResult.h b/mts/include/alibabacloud/mts/model/DetectImageSyncResult.h new file mode 100644 index 000000000..4a801d0d5 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/DetectImageSyncResult.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_MTS_MODEL_DETECTIMAGESYNCRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_DETECTIMAGESYNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT DetectImageSyncResult : public ServiceResult + { + public: + + + DetectImageSyncResult(); + explicit DetectImageSyncResult(const std::string &payload); + ~DetectImageSyncResult(); + std::string getStatus()const; + std::string getMessage()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string message_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_DETECTIMAGESYNCRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/GetJobInfoRequest.h b/mts/include/alibabacloud/mts/model/GetJobInfoRequest.h new file mode 100644 index 000000000..4886468fe --- /dev/null +++ b/mts/include/alibabacloud/mts/model/GetJobInfoRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_MTS_MODEL_GETJOBINFOREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_GETJOBINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT GetJobInfoRequest : public RpcServiceRequest { +public: + GetJobInfoRequest(); + ~GetJobInfoRequest(); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + std::string jobId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_GETJOBINFOREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/GetJobInfoResult.h b/mts/include/alibabacloud/mts/model/GetJobInfoResult.h new file mode 100644 index 000000000..1fca36b68 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/GetJobInfoResult.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_MTS_MODEL_GETJOBINFORESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_GETJOBINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT GetJobInfoResult : public ServiceResult + { + public: + struct MtsTransferJob + { + std::string jobType; + std::string modifiedTime; + std::string userData; + std::string extend; + std::string requestJson; + std::string state; + std::string createTime; + std::string errorCode; + std::string errorMessage; + std::string finishedTime; + std::string jobId; + }; + + + GetJobInfoResult(); + explicit GetJobInfoResult(const std::string &payload); + ~GetJobInfoResult(); + MtsTransferJob getMtsTransferJob()const; + + protected: + void parse(const std::string &payload); + private: + MtsTransferJob mtsTransferJob_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_GETJOBINFORESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/GetLicenseRequest.h b/mts/include/alibabacloud/mts/model/GetLicenseRequest.h index 71117f842..128ad0e4e 100644 --- a/mts/include/alibabacloud/mts/model/GetLicenseRequest.h +++ b/mts/include/alibabacloud/mts/model/GetLicenseRequest.h @@ -1,75 +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_MTS_MODEL_GETLICENSEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_GETLICENSEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT GetLicenseRequest : public RpcServiceRequest - { - - public: - GetLicenseRequest(); - ~GetLicenseRequest(); - - std::string getResourceOwnerId()const; - void setResourceOwnerId(const std::string& resourceOwnerId); - std::string getData()const; - void setData(const std::string& data); - std::string getType()const; - void setType(const std::string& type); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getMediaId()const; - void setMediaId(const std::string& mediaId); - std::string getHeader()const; - void setHeader(const std::string& header); - std::string getLicenseUrl()const; - void setLicenseUrl(const std::string& licenseUrl); - - private: - std::string resourceOwnerId_; - std::string data_; - std::string type_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string ownerId_; - std::string mediaId_; - std::string header_; - std::string licenseUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_GETLICENSEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_GETLICENSEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_GETLICENSEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT GetLicenseRequest : public RpcServiceRequest { +public: + GetLicenseRequest(); + ~GetLicenseRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getData() const; + void setData(const std::string &data); + std::string getType() const; + void setType(const std::string &type); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getMediaId() const; + void setMediaId(const std::string &mediaId); + std::string getHeader() const; + void setHeader(const std::string &header); + std::string getLicenseUrl() const; + void setLicenseUrl(const std::string &licenseUrl); + +private: + std::string resourceOwnerId_; + std::string data_; + std::string type_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string ownerId_; + std::string mediaId_; + std::string header_; + std::string licenseUrl_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_GETLICENSEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/GetPackageRequest.h b/mts/include/alibabacloud/mts/model/GetPackageRequest.h index 10c6b030f..9a1e9fdef 100644 --- a/mts/include/alibabacloud/mts/model/GetPackageRequest.h +++ b/mts/include/alibabacloud/mts/model/GetPackageRequest.h @@ -1,63 +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_MTS_MODEL_GETPACKAGEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_GETPACKAGEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT GetPackageRequest : public RpcServiceRequest - { - - public: - GetPackageRequest(); - ~GetPackageRequest(); - - std::string getResourceOwnerId()const; - void setResourceOwnerId(const std::string& resourceOwnerId); - std::string getData()const; - void setData(const std::string& data); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string resourceOwnerId_; - std::string data_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_GETPACKAGEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_GETPACKAGEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_GETPACKAGEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT GetPackageRequest : public RpcServiceRequest { +public: + GetPackageRequest(); + ~GetPackageRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getData() const; + void setData(const std::string &data); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string resourceOwnerId_; + std::string data_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_GETPACKAGEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListAllCategoryRequest.h b/mts/include/alibabacloud/mts/model/ListAllCategoryRequest.h index cca00c14f..bd1fd9f48 100644 --- a/mts/include/alibabacloud/mts/model/ListAllCategoryRequest.h +++ b/mts/include/alibabacloud/mts/model/ListAllCategoryRequest.h @@ -1,60 +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_MTS_MODEL_LISTALLCATEGORYREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTALLCATEGORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListAllCategoryRequest : public RpcServiceRequest - { - - public: - ListAllCategoryRequest(); - ~ListAllCategoryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTALLCATEGORYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTALLCATEGORYREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTALLCATEGORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListAllCategoryRequest : public RpcServiceRequest { +public: + ListAllCategoryRequest(); + ~ListAllCategoryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTALLCATEGORYREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListAllCategoryResult.h b/mts/include/alibabacloud/mts/model/ListAllCategoryResult.h index 4976d4636..a7d8b5f2e 100644 --- a/mts/include/alibabacloud/mts/model/ListAllCategoryResult.h +++ b/mts/include/alibabacloud/mts/model/ListAllCategoryResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string parentId; std::string level; - std::string cateId; std::string cateName; + std::string cateId; }; diff --git a/mts/include/alibabacloud/mts/model/ListAllMediaBucketRequest.h b/mts/include/alibabacloud/mts/model/ListAllMediaBucketRequest.h index c8ef18e4b..941a97b6c 100644 --- a/mts/include/alibabacloud/mts/model/ListAllMediaBucketRequest.h +++ b/mts/include/alibabacloud/mts/model/ListAllMediaBucketRequest.h @@ -1,66 +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_MTS_MODEL_LISTALLMEDIABUCKETREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTALLMEDIABUCKETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListAllMediaBucketRequest : public RpcServiceRequest - { - - public: - ListAllMediaBucketRequest(); - ~ListAllMediaBucketRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - int getMaximumPageSize()const; - void setMaximumPageSize(int maximumPageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string nextPageToken_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - int maximumPageSize_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTALLMEDIABUCKETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTALLMEDIABUCKETREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTALLMEDIABUCKETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListAllMediaBucketRequest : public RpcServiceRequest { +public: + ListAllMediaBucketRequest(); + ~ListAllMediaBucketRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + int getMaximumPageSize() const; + void setMaximumPageSize(int maximumPageSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string nextPageToken_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + int maximumPageSize_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTALLMEDIABUCKETREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListAsrPipelineRequest.h b/mts/include/alibabacloud/mts/model/ListAsrPipelineRequest.h index 1655e6211..99cd4b462 100644 --- a/mts/include/alibabacloud/mts/model/ListAsrPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/ListAsrPipelineRequest.h @@ -1,69 +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_MTS_MODEL_LISTASRPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTASRPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListAsrPipelineRequest : public RpcServiceRequest - { - - public: - ListAsrPipelineRequest(); - ~ListAsrPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string accessKeyId_; - long pageSize_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTASRPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTASRPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTASRPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListAsrPipelineRequest : public RpcServiceRequest { +public: + ListAsrPipelineRequest(); + ~ListAsrPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string accessKeyId_; + long pageSize_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTASRPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListCensorPipelineRequest.h b/mts/include/alibabacloud/mts/model/ListCensorPipelineRequest.h index dd3aee9cb..1c988642c 100644 --- a/mts/include/alibabacloud/mts/model/ListCensorPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/ListCensorPipelineRequest.h @@ -1,69 +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_MTS_MODEL_LISTCENSORPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTCENSORPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListCensorPipelineRequest : public RpcServiceRequest - { - - public: - ListCensorPipelineRequest(); - ~ListCensorPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string accessKeyId_; - long pageSize_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTCENSORPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTCENSORPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTCENSORPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListCensorPipelineRequest : public RpcServiceRequest { +public: + ListCensorPipelineRequest(); + ~ListCensorPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string accessKeyId_; + long pageSize_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTCENSORPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListCoverPipelineRequest.h b/mts/include/alibabacloud/mts/model/ListCoverPipelineRequest.h index 6b035531a..b71de5b4f 100644 --- a/mts/include/alibabacloud/mts/model/ListCoverPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/ListCoverPipelineRequest.h @@ -1,69 +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_MTS_MODEL_LISTCOVERPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTCOVERPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListCoverPipelineRequest : public RpcServiceRequest - { - - public: - ListCoverPipelineRequest(); - ~ListCoverPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string accessKeyId_; - long pageSize_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTCOVERPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTCOVERPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTCOVERPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListCoverPipelineRequest : public RpcServiceRequest { +public: + ListCoverPipelineRequest(); + ~ListCoverPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string accessKeyId_; + long pageSize_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTCOVERPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListCoverPipelineResult.h b/mts/include/alibabacloud/mts/model/ListCoverPipelineResult.h index a04abace9..85ef3db04 100644 --- a/mts/include/alibabacloud/mts/model/ListCoverPipelineResult.h +++ b/mts/include/alibabacloud/mts/model/ListCoverPipelineResult.h @@ -34,10 +34,10 @@ namespace AlibabaCloud public: struct Pipeline { - int quotaUsed; std::string role; - long userId; + int quotaUsed; std::string state; + long userId; std::string priority; std::string pipelineId; std::string notifyConfig; diff --git a/mts/include/alibabacloud/mts/model/ListCustomPersonsRequest.h b/mts/include/alibabacloud/mts/model/ListCustomPersonsRequest.h new file mode 100644 index 000000000..70f7a6f16 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/ListCustomPersonsRequest.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_MTS_MODEL_LISTCUSTOMPERSONSREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTCUSTOMPERSONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListCustomPersonsRequest : public RpcServiceRequest { +public: + ListCustomPersonsRequest(); + ~ListCustomPersonsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPersonId() const; + void setPersonId(const std::string &personId); + std::string getCategoryId() const; + void setCategoryId(const std::string &categoryId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string personId_; + std::string categoryId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTCUSTOMPERSONSREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListCustomPersonsResult.h b/mts/include/alibabacloud/mts/model/ListCustomPersonsResult.h new file mode 100644 index 000000000..edba0d658 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/ListCustomPersonsResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTCUSTOMPERSONSRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTCUSTOMPERSONSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT ListCustomPersonsResult : public ServiceResult + { + public: + struct Category + { + struct Person + { + struct Face + { + std::string faceId; + std::string imageUrl; + }; + std::string personName; + std::string personId; + std::string personDescription; + std::vector faces; + }; + std::string categoryId; + std::vector persons; + std::string categoryName; + std::string categoryDescription; + }; + + + ListCustomPersonsResult(); + explicit ListCustomPersonsResult(const std::string &payload); + ~ListCustomPersonsResult(); + std::vector getCategories()const; + + protected: + void parse(const std::string &payload); + private: + std::vector categories_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_LISTCUSTOMPERSONSRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/ListFpShotDBRequest.h b/mts/include/alibabacloud/mts/model/ListFpShotDBRequest.h index 33eacb384..ecb1b3fc0 100644 --- a/mts/include/alibabacloud/mts/model/ListFpShotDBRequest.h +++ b/mts/include/alibabacloud/mts/model/ListFpShotDBRequest.h @@ -1,63 +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_MTS_MODEL_LISTFPSHOTDBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTFPSHOTDBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListFpShotDBRequest : public RpcServiceRequest - { - - public: - ListFpShotDBRequest(); - ~ListFpShotDBRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getFpDBIds()const; - void setFpDBIds(const std::string& fpDBIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string fpDBIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTFPSHOTDBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTFPSHOTDBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTFPSHOTDBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListFpShotDBRequest : public RpcServiceRequest { +public: + ListFpShotDBRequest(); + ~ListFpShotDBRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getFpDBIds() const; + void setFpDBIds(const std::string &fpDBIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string fpDBIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTFPSHOTDBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListFpShotDBResult.h b/mts/include/alibabacloud/mts/model/ListFpShotDBResult.h index 1a5617f47..18a767e69 100644 --- a/mts/include/alibabacloud/mts/model/ListFpShotDBResult.h +++ b/mts/include/alibabacloud/mts/model/ListFpShotDBResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string status; std::string description; - std::string fpDBId; int modelId; + std::string fpDBId; std::string name; }; diff --git a/mts/include/alibabacloud/mts/model/ListFpShotFilesRequest.h b/mts/include/alibabacloud/mts/model/ListFpShotFilesRequest.h new file mode 100644 index 000000000..d40e8bfcb --- /dev/null +++ b/mts/include/alibabacloud/mts/model/ListFpShotFilesRequest.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_MTS_MODEL_LISTFPSHOTFILESREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTFPSHOTFILESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListFpShotFilesRequest : public RpcServiceRequest { +public: + ListFpShotFilesRequest(); + ~ListFpShotFilesRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFpDBId() const; + void setFpDBId(const std::string &fpDBId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string fpDBId_; + std::string nextPageToken_; + std::string accessKeyId_; + int pageSize_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTFPSHOTFILESREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListFpShotFilesResult.h b/mts/include/alibabacloud/mts/model/ListFpShotFilesResult.h new file mode 100644 index 000000000..386d63dba --- /dev/null +++ b/mts/include/alibabacloud/mts/model/ListFpShotFilesResult.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_MTS_MODEL_LISTFPSHOTFILESRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTFPSHOTFILESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT ListFpShotFilesResult : public ServiceResult + { + public: + struct FpShotFile + { + struct InputFile + { + std::string bucket; + std::string object; + std::string location; + }; + std::string primaryKey; + std::string fileId; + InputFile inputFile; + }; + + + ListFpShotFilesResult(); + explicit ListFpShotFilesResult(const std::string &payload); + ~ListFpShotFilesResult(); + std::string getNextPageToken()const; + std::vector getFpShotFileList()const; + + protected: + void parse(const std::string &payload); + private: + std::string nextPageToken_; + std::vector fpShotFileList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_LISTFPSHOTFILESRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/ListFpShotNotaryRequest.h b/mts/include/alibabacloud/mts/model/ListFpShotNotaryRequest.h index ca54079b8..821a87d88 100644 --- a/mts/include/alibabacloud/mts/model/ListFpShotNotaryRequest.h +++ b/mts/include/alibabacloud/mts/model/ListFpShotNotaryRequest.h @@ -1,75 +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_MTS_MODEL_LISTFPSHOTNOTARYREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTFPSHOTNOTARYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListFpShotNotaryRequest : public RpcServiceRequest - { - - public: - ListFpShotNotaryRequest(); - ~ListFpShotNotaryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getFpDBId()const; - void setFpDBId(const std::string& fpDBId); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getStartOfCreatedTimeRange()const; - void setStartOfCreatedTimeRange(const std::string& startOfCreatedTimeRange); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getEndOfCreatedTimeRange()const; - void setEndOfCreatedTimeRange(const std::string& endOfCreatedTimeRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getMaximumPageSize()const; - void setMaximumPageSize(long maximumPageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string fpDBId_; - std::string nextPageToken_; - std::string startOfCreatedTimeRange_; - std::string accessKeyId_; - std::string endOfCreatedTimeRange_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long maximumPageSize_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTFPSHOTNOTARYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTFPSHOTNOTARYREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTFPSHOTNOTARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListFpShotNotaryRequest : public RpcServiceRequest { +public: + ListFpShotNotaryRequest(); + ~ListFpShotNotaryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFpDBId() const; + void setFpDBId(const std::string &fpDBId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getStartOfCreatedTimeRange() const; + void setStartOfCreatedTimeRange(const std::string &startOfCreatedTimeRange); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getEndOfCreatedTimeRange() const; + void setEndOfCreatedTimeRange(const std::string &endOfCreatedTimeRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getMaximumPageSize() const; + void setMaximumPageSize(long maximumPageSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string fpDBId_; + std::string nextPageToken_; + std::string startOfCreatedTimeRange_; + std::string accessKeyId_; + std::string endOfCreatedTimeRange_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long maximumPageSize_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTFPSHOTNOTARYREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListFpShotNotaryResult.h b/mts/include/alibabacloud/mts/model/ListFpShotNotaryResult.h index 23cde14ca..8cb7ad8ca 100644 --- a/mts/include/alibabacloud/mts/model/ListFpShotNotaryResult.h +++ b/mts/include/alibabacloud/mts/model/ListFpShotNotaryResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string finishTime; std::string txHash; std::string creationTime; - std::string fpDBId; std::string jobId; + std::string fpDBId; std::string detail; std::string transactionId; }; diff --git a/mts/include/alibabacloud/mts/model/ListInferenceJobRequest.h b/mts/include/alibabacloud/mts/model/ListInferenceJobRequest.h new file mode 100644 index 000000000..cb8dd1dfa --- /dev/null +++ b/mts/include/alibabacloud/mts/model/ListInferenceJobRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_MTS_MODEL_LISTINFERENCEJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTINFERENCEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListInferenceJobRequest : public RpcServiceRequest { +public: + ListInferenceJobRequest(); + ~ListInferenceJobRequest(); + long getMaxPageSize() const; + void setMaxPageSize(long maxPageSize); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getServerName() const; + void setServerName(const std::string &serverName); + +private: + long maxPageSize_; + long pageNumber_; + std::string serverName_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTINFERENCEJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListInferenceJobResult.h b/mts/include/alibabacloud/mts/model/ListInferenceJobResult.h new file mode 100644 index 000000000..cb43a7f35 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/ListInferenceJobResult.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_MTS_MODEL_LISTINFERENCEJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTINFERENCEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT ListInferenceJobResult : public ServiceResult + { + public: + struct JobsItem + { + std::string status; + std::string message; + long userId; + long jobTime; + std::string jobId; + std::string jobParams; + std::string result; + }; + + + ListInferenceJobResult(); + explicit ListInferenceJobResult(const std::string &payload); + ~ListInferenceJobResult(); + std::string getMessage()const; + std::vector getJobs()const; + long getTotalSize()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector jobs_; + long totalSize_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_LISTINFERENCEJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/ListJobRequest.h b/mts/include/alibabacloud/mts/model/ListJobRequest.h index 8db351770..01533a20b 100644 --- a/mts/include/alibabacloud/mts/model/ListJobRequest.h +++ b/mts/include/alibabacloud/mts/model/ListJobRequest.h @@ -1,78 +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_MTS_MODEL_LISTJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListJobRequest : public RpcServiceRequest - { - - public: - ListJobRequest(); - ~ListJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getStartOfJobCreatedTimeRange()const; - void setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getState()const; - void setState(const std::string& state); - std::string getEndOfJobCreatedTimeRange()const; - void setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getMaximumPageSize()const; - void setMaximumPageSize(long maximumPageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - - private: - long resourceOwnerId_; - std::string nextPageToken_; - std::string startOfJobCreatedTimeRange_; - std::string accessKeyId_; - std::string state_; - std::string endOfJobCreatedTimeRange_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long maximumPageSize_; - long ownerId_; - std::string pipelineId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListJobRequest : public RpcServiceRequest { +public: + ListJobRequest(); + ~ListJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getStartOfJobCreatedTimeRange() const; + void setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getState() const; + void setState(const std::string &state); + std::string getEndOfJobCreatedTimeRange() const; + void setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getMaximumPageSize() const; + void setMaximumPageSize(long maximumPageSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + +private: + long resourceOwnerId_; + std::string nextPageToken_; + std::string startOfJobCreatedTimeRange_; + std::string accessKeyId_; + std::string state_; + std::string endOfJobCreatedTimeRange_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long maximumPageSize_; + long ownerId_; + std::string pipelineId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListJobResult.h b/mts/include/alibabacloud/mts/model/ListJobResult.h index 37e2bbdd2..cace9e151 100644 --- a/mts/include/alibabacloud/mts/model/ListJobResult.h +++ b/mts/include/alibabacloud/mts/model/ListJobResult.h @@ -34,14 +34,84 @@ namespace AlibabaCloud public: struct Job { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; struct Output { + struct Video + { + struct BitrateBnd + { + std::string min; + std::string max; + }; + std::string bufsize; + std::string qscale; + std::string scanMode; + std::string preset; + std::string fps; + std::string gop; + BitrateBnd bitrateBnd; + std::string pixFmt; + std::string bitrate; + std::string profile; + std::string crop; + std::string pad; + std::string codec; + std::string maxrate; + std::string maxFps; + std::string crf; + std::string height; + std::string degrain; + std::string width; + std::string resoPriority; + }; + struct TransConfig + { + std::string isCheckAudioBitrate; + std::string adjDarMethod; + std::string isCheckAudioBitrateFail; + std::string isCheckVideoBitrateFail; + std::string isCheckReso; + std::string isCheckVideoBitrate; + std::string transMode; + std::string isCheckResoFail; + }; + struct Encryption + { + std::string type; + std::string keyType; + std::string id; + std::string skipCnt; + std::string key; + std::string keyUri; + }; + struct M3U8NonStandardSupport + { + struct TS + { + bool sizeSupport; + bool md5Support; + }; + TS tS; + }; + struct Audio + { + struct Volume + { + std::string level; + std::string method; + }; + std::string codec; + std::string qscale; + Volume volume; + std::string samplerate; + std::string bitrate; + std::string profile; + std::string channels; + }; + struct SuperReso + { + std::string isHalfSample; + }; struct OutputFile { std::string bucket; @@ -49,14 +119,60 @@ namespace AlibabaCloud std::string roleArn; std::string location; }; - struct M3U8NonStandardSupport + struct Container { - struct TS + std::string format; + }; + struct Clip + { + struct TimeSpan { - bool md5Support; - bool sizeSupport; + std::string duration; + std::string seek; }; - TS tS; + TimeSpan timeSpan; + }; + struct MuxConfig + { + struct Webp + { + std::string loop; + }; + struct Gif + { + std::string finalDelay; + std::string loop; + std::string ditherMode; + std::string isCustomPalette; + }; + struct Segment + { + std::string duration; + }; + Webp webp; + Gif gif; + Segment segment; + }; + struct SubtitleConfig + { + struct ExtSubtitle + { + struct Input1 + { + std::string bucket; + std::string object; + std::string location; + }; + std::string charEnc; + Input1 input1; + std::string fontName; + }; + struct Subtitle + { + std::string map; + }; + std::vector extSubtitleList; + std::vector subtitleList; }; struct Properties { @@ -73,17 +189,17 @@ namespace AlibabaCloud std::string codecTag; std::string codecTimeBase; std::string sar; - std::string fps; std::string startTime; + std::string fps; std::string index; - std::string duration; std::string lang; + std::string duration; std::string pixFmt; NetworkCost networkCost; - std::string codecName; std::string bitrate; - std::string profile; + std::string codecName; std::string avgFPS; + std::string profile; std::string timebase; std::string codecTagString; std::string hasBFrames; @@ -91,8 +207,8 @@ namespace AlibabaCloud std::string codecLongName; std::string height; std::string level; - std::string width; std::string numFrames; + std::string width; }; struct AudioStream { @@ -101,12 +217,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -143,128 +259,6 @@ namespace AlibabaCloud Streams streams; std::string fileSize; }; - struct Clip - { - struct TimeSpan - { - std::string duration; - std::string seek; - }; - TimeSpan timeSpan; - }; - struct SuperReso - { - std::string isHalfSample; - }; - struct SubtitleConfig - { - struct Subtitle - { - std::string map; - }; - struct ExtSubtitle - { - struct Input1 - { - std::string bucket; - std::string object; - std::string location; - }; - std::string charEnc; - Input1 input1; - std::string fontName; - }; - std::vector extSubtitleList; - std::vector subtitleList; - }; - struct TransConfig - { - std::string isCheckAudioBitrate; - std::string adjDarMethod; - std::string isCheckAudioBitrateFail; - std::string isCheckVideoBitrateFail; - std::string isCheckReso; - std::string isCheckVideoBitrate; - std::string transMode; - std::string isCheckResoFail; - }; - struct MuxConfig - { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - std::string ditherMode; - std::string isCustomPalette; - }; - struct Webp - { - std::string loop; - }; - Gif gif; - Webp webp; - Segment segment; - }; - struct Audio - { - struct Volume - { - std::string level; - std::string method; - }; - std::string codec; - std::string qscale; - Volume volume; - std::string samplerate; - std::string bitrate; - std::string profile; - std::string channels; - }; - struct Video - { - struct BitrateBnd - { - std::string min; - std::string max; - }; - std::string bufsize; - std::string qscale; - std::string scanMode; - std::string preset; - std::string fps; - std::string gop; - BitrateBnd bitrateBnd; - std::string pixFmt; - std::string bitrate; - std::string profile; - std::string crop; - std::string codec; - std::string maxrate; - std::string pad; - std::string crf; - std::string maxFps; - std::string height; - std::string degrain; - std::string width; - std::string resoPriority; - }; - struct Container - { - std::string format; - }; - struct Encryption - { - std::string type; - std::string keyType; - std::string id; - std::string skipCnt; - std::string key; - std::string keyUri; - }; struct WaterMark { struct InputFile @@ -284,11 +278,25 @@ namespace AlibabaCloud }; struct Merge { - std::string mergeURL; std::string start; + std::string mergeURL; std::string duration; std::string roleArn; }; + struct OutSubtitle + { + struct OutSubtitleFile + { + std::string bucket; + std::string object; + std::string roleArn; + std::string location; + }; + std::string message; + OutSubtitleFile outSubtitleFile; + std::string map; + bool success; + }; struct Opening { std::string start; @@ -306,32 +314,18 @@ namespace AlibabaCloud std::string width; bool isMergeAudio; }; - struct OutSubtitle - { - struct OutSubtitleFile - { - std::string bucket; - std::string object; - std::string roleArn; - std::string location; - }; - std::string message; - OutSubtitleFile outSubtitleFile; - std::string map; - bool success; - }; std::string rotate; std::string userData; Encryption encryption; Properties properties; - Clip clip; SuperReso superReso; + Clip clip; std::vector waterMarkList; Container container; TransConfig transConfig; std::string waterMarkConfigUrl; - SubtitleConfig subtitleConfig; MuxConfig muxConfig; + SubtitleConfig subtitleConfig; std::vector openingList; std::string templateId; OutputFile outputFile; @@ -347,6 +341,12 @@ namespace AlibabaCloud Audio audio; std::vector mergeList; }; + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; struct MNSMessageResult { std::string errorCode; @@ -354,8 +354,8 @@ namespace AlibabaCloud std::string messageId; }; Input input; - std::string message; std::string finishTime; + std::string message; long percent; std::string state; Output output; diff --git a/mts/include/alibabacloud/mts/model/ListMediaRequest.h b/mts/include/alibabacloud/mts/model/ListMediaRequest.h index 0fe34d663..e9117f200 100644 --- a/mts/include/alibabacloud/mts/model/ListMediaRequest.h +++ b/mts/include/alibabacloud/mts/model/ListMediaRequest.h @@ -1,72 +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_MTS_MODEL_LISTMEDIAREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTMEDIAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListMediaRequest : public RpcServiceRequest - { - - public: - ListMediaRequest(); - ~ListMediaRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getFrom()const; - void setFrom(const std::string& from); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getMaximumPageSize()const; - void setMaximumPageSize(long maximumPageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTo()const; - void setTo(const std::string& to); - - private: - long resourceOwnerId_; - std::string nextPageToken_; - std::string accessKeyId_; - std::string from_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long maximumPageSize_; - long ownerId_; - std::string to_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTMEDIAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTMEDIAREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTMEDIAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListMediaRequest : public RpcServiceRequest { +public: + ListMediaRequest(); + ~ListMediaRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getFrom() const; + void setFrom(const std::string &from); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getMaximumPageSize() const; + void setMaximumPageSize(long maximumPageSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTo() const; + void setTo(const std::string &to); + +private: + long resourceOwnerId_; + std::string nextPageToken_; + std::string accessKeyId_; + std::string from_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long maximumPageSize_; + long ownerId_; + std::string to_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTMEDIAREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListMediaResult.h b/mts/include/alibabacloud/mts/model/ListMediaResult.h index a9ea72c8c..029cde49f 100644 --- a/mts/include/alibabacloud/mts/model/ListMediaResult.h +++ b/mts/include/alibabacloud/mts/model/ListMediaResult.h @@ -51,8 +51,8 @@ namespace AlibabaCloud std::string format; std::string mediaId; std::string creationTime; - std::string coverURL; std::string height; + std::string coverURL; File file; std::string width; std::vector runIdList; diff --git a/mts/include/alibabacloud/mts/model/ListMediaWorkflowExecutionsRequest.h b/mts/include/alibabacloud/mts/model/ListMediaWorkflowExecutionsRequest.h index 077780706..8aecda98f 100644 --- a/mts/include/alibabacloud/mts/model/ListMediaWorkflowExecutionsRequest.h +++ b/mts/include/alibabacloud/mts/model/ListMediaWorkflowExecutionsRequest.h @@ -1,75 +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_MTS_MODEL_LISTMEDIAWORKFLOWEXECUTIONSREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTMEDIAWORKFLOWEXECUTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListMediaWorkflowExecutionsRequest : public RpcServiceRequest - { - - public: - ListMediaWorkflowExecutionsRequest(); - ~ListMediaWorkflowExecutionsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMediaWorkflowId()const; - void setMediaWorkflowId(const std::string& mediaWorkflowId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getMaximumPageSize()const; - void setMaximumPageSize(long maximumPageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getMediaWorkflowName()const; - void setMediaWorkflowName(const std::string& mediaWorkflowName); - std::string getInputFileURL()const; - void setInputFileURL(const std::string& inputFileURL); - - private: - long resourceOwnerId_; - std::string nextPageToken_; - std::string accessKeyId_; - std::string mediaWorkflowId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long maximumPageSize_; - long ownerId_; - std::string mediaWorkflowName_; - std::string inputFileURL_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTMEDIAWORKFLOWEXECUTIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTMEDIAWORKFLOWEXECUTIONSREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTMEDIAWORKFLOWEXECUTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListMediaWorkflowExecutionsRequest : public RpcServiceRequest { +public: + ListMediaWorkflowExecutionsRequest(); + ~ListMediaWorkflowExecutionsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMediaWorkflowId() const; + void setMediaWorkflowId(const std::string &mediaWorkflowId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getMaximumPageSize() const; + void setMaximumPageSize(long maximumPageSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getMediaWorkflowName() const; + void setMediaWorkflowName(const std::string &mediaWorkflowName); + std::string getInputFileURL() const; + void setInputFileURL(const std::string &inputFileURL); + +private: + long resourceOwnerId_; + std::string nextPageToken_; + std::string accessKeyId_; + std::string mediaWorkflowId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long maximumPageSize_; + long ownerId_; + std::string mediaWorkflowName_; + std::string inputFileURL_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTMEDIAWORKFLOWEXECUTIONSREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListMediaWorkflowExecutionsResult.h b/mts/include/alibabacloud/mts/model/ListMediaWorkflowExecutionsResult.h index dd1e7a063..b497757ee 100644 --- a/mts/include/alibabacloud/mts/model/ListMediaWorkflowExecutionsResult.h +++ b/mts/include/alibabacloud/mts/model/ListMediaWorkflowExecutionsResult.h @@ -54,8 +54,8 @@ namespace AlibabaCloud std::string messageId; }; std::string type; - std::string message; std::string endTime; + std::string message; std::string state; MNSMessageResult mNSMessageResult; std::string startTime; diff --git a/mts/include/alibabacloud/mts/model/ListPornPipelineRequest.h b/mts/include/alibabacloud/mts/model/ListPornPipelineRequest.h index f5a8c4304..e4f4bbd37 100644 --- a/mts/include/alibabacloud/mts/model/ListPornPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/ListPornPipelineRequest.h @@ -1,69 +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_MTS_MODEL_LISTPORNPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTPORNPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListPornPipelineRequest : public RpcServiceRequest - { - - public: - ListPornPipelineRequest(); - ~ListPornPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string accessKeyId_; - long pageSize_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTPORNPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTPORNPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTPORNPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListPornPipelineRequest : public RpcServiceRequest { +public: + ListPornPipelineRequest(); + ~ListPornPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string accessKeyId_; + long pageSize_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTPORNPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ListTerrorismPipelineRequest.h b/mts/include/alibabacloud/mts/model/ListTerrorismPipelineRequest.h index ec0cf1754..ca00ec93c 100644 --- a/mts/include/alibabacloud/mts/model/ListTerrorismPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/ListTerrorismPipelineRequest.h @@ -1,69 +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_MTS_MODEL_LISTTERRORISMPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LISTTERRORISMPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ListTerrorismPipelineRequest : public RpcServiceRequest - { - - public: - ListTerrorismPipelineRequest(); - ~ListTerrorismPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string accessKeyId_; - long pageSize_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LISTTERRORISMPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LISTTERRORISMPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LISTTERRORISMPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ListTerrorismPipelineRequest : public RpcServiceRequest { +public: + ListTerrorismPipelineRequest(); + ~ListTerrorismPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string accessKeyId_; + long pageSize_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LISTTERRORISMPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/LogicalDeleteResourceRequest.h b/mts/include/alibabacloud/mts/model/LogicalDeleteResourceRequest.h index dc565aeab..1b00fac1d 100644 --- a/mts/include/alibabacloud/mts/model/LogicalDeleteResourceRequest.h +++ b/mts/include/alibabacloud/mts/model/LogicalDeleteResourceRequest.h @@ -1,78 +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_MTS_MODEL_LOGICALDELETERESOURCEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_LOGICALDELETERESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT LogicalDeleteResourceRequest : public RpcServiceRequest - { - - public: - LogicalDeleteResourceRequest(); - ~LogicalDeleteResourceRequest(); - - std::string getCountry()const; - void setCountry(const std::string& country); - long getHid()const; - void setHid(long hid); - std::string getInvoker()const; - void setInvoker(const std::string& invoker); - std::string getMessage()const; - void setMessage(const std::string& message); - bool getSuccess()const; - void setSuccess(bool success); - bool getInterrupt()const; - void setInterrupt(bool interrupt); - std::string getGmtWakeup()const; - void setGmtWakeup(const std::string& gmtWakeup); - std::string getPk()const; - void setPk(const std::string& pk); - std::string getBid()const; - void setBid(const std::string& bid); - std::string getTaskExtraData()const; - void setTaskExtraData(const std::string& taskExtraData); - std::string getTaskIdentifier()const; - void setTaskIdentifier(const std::string& taskIdentifier); - - private: - std::string country_; - long hid_; - std::string invoker_; - std::string message_; - bool success_; - bool interrupt_; - std::string gmtWakeup_; - std::string pk_; - std::string bid_; - std::string taskExtraData_; - std::string taskIdentifier_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_LOGICALDELETERESOURCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_LOGICALDELETERESOURCEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_LOGICALDELETERESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT LogicalDeleteResourceRequest : public RpcServiceRequest { +public: + LogicalDeleteResourceRequest(); + ~LogicalDeleteResourceRequest(); + std::string getCountry() const; + void setCountry(const std::string &country); + long getHid() const; + void setHid(long hid); + std::string getInvoker() const; + void setInvoker(const std::string &invoker); + std::string getMessage() const; + void setMessage(const std::string &message); + bool getSuccess() const; + void setSuccess(bool success); + bool getInterrupt() const; + void setInterrupt(bool interrupt); + std::string getGmtWakeup() const; + void setGmtWakeup(const std::string &gmtWakeup); + std::string getPk() const; + void setPk(const std::string &pk); + std::string getBid() const; + void setBid(const std::string &bid); + std::string getTaskExtraData() const; + void setTaskExtraData(const std::string &taskExtraData); + std::string getTaskIdentifier() const; + void setTaskIdentifier(const std::string &taskIdentifier); + +private: + std::string country_; + long hid_; + std::string invoker_; + std::string message_; + bool success_; + bool interrupt_; + std::string gmtWakeup_; + std::string pk_; + std::string bid_; + std::string taskExtraData_; + std::string taskIdentifier_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_LOGICALDELETERESOURCEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/LogicalDeleteResourceResult.h b/mts/include/alibabacloud/mts/model/LogicalDeleteResourceResult.h index 86d3cb713..70b13e58e 100644 --- a/mts/include/alibabacloud/mts/model/LogicalDeleteResourceResult.h +++ b/mts/include/alibabacloud/mts/model/LogicalDeleteResourceResult.h @@ -40,14 +40,14 @@ namespace AlibabaCloud std::string getGmtWakeup()const; long getHid()const; std::string getInvoker()const; - std::string getTaskIdentifier()const; std::string getMessage()const; + std::string getTaskIdentifier()const; std::string getTaskExtraData()const; std::string getCountry()const; std::string getPk()const; std::string getBid()const; - bool getInterrupt()const; bool getSuccess()const; + bool getInterrupt()const; protected: void parse(const std::string &payload); @@ -55,14 +55,14 @@ namespace AlibabaCloud std::string gmtWakeup_; long hid_; std::string invoker_; - std::string taskIdentifier_; std::string message_; + std::string taskIdentifier_; std::string taskExtraData_; std::string country_; std::string pk_; std::string bid_; - bool interrupt_; bool success_; + bool interrupt_; }; } diff --git a/mts/include/alibabacloud/mts/model/PhysicalDeleteResourceRequest.h b/mts/include/alibabacloud/mts/model/PhysicalDeleteResourceRequest.h index 70c7f2770..e0a65aab6 100644 --- a/mts/include/alibabacloud/mts/model/PhysicalDeleteResourceRequest.h +++ b/mts/include/alibabacloud/mts/model/PhysicalDeleteResourceRequest.h @@ -1,78 +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_MTS_MODEL_PHYSICALDELETERESOURCEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_PHYSICALDELETERESOURCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT PhysicalDeleteResourceRequest : public RpcServiceRequest - { - - public: - PhysicalDeleteResourceRequest(); - ~PhysicalDeleteResourceRequest(); - - std::string getCountry()const; - void setCountry(const std::string& country); - long getHid()const; - void setHid(long hid); - std::string getInvoker()const; - void setInvoker(const std::string& invoker); - std::string getMessage()const; - void setMessage(const std::string& message); - bool getSuccess()const; - void setSuccess(bool success); - bool getInterrupt()const; - void setInterrupt(bool interrupt); - std::string getGmtWakeup()const; - void setGmtWakeup(const std::string& gmtWakeup); - std::string getPk()const; - void setPk(const std::string& pk); - std::string getBid()const; - void setBid(const std::string& bid); - std::string getTaskExtraData()const; - void setTaskExtraData(const std::string& taskExtraData); - std::string getTaskIdentifier()const; - void setTaskIdentifier(const std::string& taskIdentifier); - - private: - std::string country_; - long hid_; - std::string invoker_; - std::string message_; - bool success_; - bool interrupt_; - std::string gmtWakeup_; - std::string pk_; - std::string bid_; - std::string taskExtraData_; - std::string taskIdentifier_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_PHYSICALDELETERESOURCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_PHYSICALDELETERESOURCEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_PHYSICALDELETERESOURCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT PhysicalDeleteResourceRequest : public RpcServiceRequest { +public: + PhysicalDeleteResourceRequest(); + ~PhysicalDeleteResourceRequest(); + std::string getCountry() const; + void setCountry(const std::string &country); + long getHid() const; + void setHid(long hid); + std::string getInvoker() const; + void setInvoker(const std::string &invoker); + std::string getMessage() const; + void setMessage(const std::string &message); + bool getSuccess() const; + void setSuccess(bool success); + bool getInterrupt() const; + void setInterrupt(bool interrupt); + std::string getGmtWakeup() const; + void setGmtWakeup(const std::string &gmtWakeup); + std::string getPk() const; + void setPk(const std::string &pk); + std::string getBid() const; + void setBid(const std::string &bid); + std::string getTaskExtraData() const; + void setTaskExtraData(const std::string &taskExtraData); + std::string getTaskIdentifier() const; + void setTaskIdentifier(const std::string &taskIdentifier); + +private: + std::string country_; + long hid_; + std::string invoker_; + std::string message_; + bool success_; + bool interrupt_; + std::string gmtWakeup_; + std::string pk_; + std::string bid_; + std::string taskExtraData_; + std::string taskIdentifier_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_PHYSICALDELETERESOURCEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/PhysicalDeleteResourceResult.h b/mts/include/alibabacloud/mts/model/PhysicalDeleteResourceResult.h index 4de601e6b..d7488c235 100644 --- a/mts/include/alibabacloud/mts/model/PhysicalDeleteResourceResult.h +++ b/mts/include/alibabacloud/mts/model/PhysicalDeleteResourceResult.h @@ -40,14 +40,14 @@ namespace AlibabaCloud std::string getGmtWakeup()const; long getHid()const; std::string getInvoker()const; - std::string getTaskIdentifier()const; std::string getMessage()const; + std::string getTaskIdentifier()const; std::string getTaskExtraData()const; std::string getCountry()const; std::string getPk()const; std::string getBid()const; - bool getInterrupt()const; bool getSuccess()const; + bool getInterrupt()const; protected: void parse(const std::string &payload); @@ -55,14 +55,14 @@ namespace AlibabaCloud std::string gmtWakeup_; long hid_; std::string invoker_; - std::string taskIdentifier_; std::string message_; + std::string taskIdentifier_; std::string taskExtraData_; std::string country_; std::string pk_; std::string bid_; - bool interrupt_; bool success_; + bool interrupt_; }; } diff --git a/mts/include/alibabacloud/mts/model/PlayInfoRequest.h b/mts/include/alibabacloud/mts/model/PlayInfoRequest.h index 60a3fb8bd..d853160e0 100644 --- a/mts/include/alibabacloud/mts/model/PlayInfoRequest.h +++ b/mts/include/alibabacloud/mts/model/PlayInfoRequest.h @@ -1,84 +1,78 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_MTS_MODEL_PLAYINFOREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_PLAYINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT PlayInfoRequest : public RpcServiceRequest - { - - public: - PlayInfoRequest(); - ~PlayInfoRequest(); - - std::string getResourceOwnerId()const; - void setResourceOwnerId(const std::string& resourceOwnerId); - std::string getFormats()const; - void setFormats(const std::string& formats); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getRand()const; - void setRand(const std::string& rand); - long getAuthTimeout()const; - void setAuthTimeout(long authTimeout); - std::string getPlayDomain()const; - void setPlayDomain(const std::string& playDomain); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getHlsUriToken()const; - void setHlsUriToken(const std::string& hlsUriToken); - std::string getTerminal()const; - void setTerminal(const std::string& terminal); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getMediaId()const; - void setMediaId(const std::string& mediaId); - std::string getAuthInfo()const; - void setAuthInfo(const std::string& authInfo); - - private: - std::string resourceOwnerId_; - std::string formats_; - std::string accessKeyId_; - std::string rand_; - long authTimeout_; - std::string playDomain_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string hlsUriToken_; - std::string terminal_; - std::string ownerId_; - std::string mediaId_; - std::string authInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_PLAYINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_PLAYINFOREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_PLAYINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT PlayInfoRequest : public RpcServiceRequest { +public: + PlayInfoRequest(); + ~PlayInfoRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getFormats() const; + void setFormats(const std::string &formats); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getRand() const; + void setRand(const std::string &rand); + long getAuthTimeout() const; + void setAuthTimeout(long authTimeout); + std::string getPlayDomain() const; + void setPlayDomain(const std::string &playDomain); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getHlsUriToken() const; + void setHlsUriToken(const std::string &hlsUriToken); + std::string getTerminal() const; + void setTerminal(const std::string &terminal); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getMediaId() const; + void setMediaId(const std::string &mediaId); + std::string getAuthInfo() const; + void setAuthInfo(const std::string &authInfo); + +private: + std::string resourceOwnerId_; + std::string formats_; + std::string accessKeyId_; + std::string rand_; + long authTimeout_; + std::string playDomain_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string hlsUriToken_; + std::string terminal_; + std::string ownerId_; + std::string mediaId_; + std::string authInfo_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_PLAYINFOREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/PlayInfoResult.h b/mts/include/alibabacloud/mts/model/PlayInfoResult.h index 55af95066..78b6b36e9 100644 --- a/mts/include/alibabacloud/mts/model/PlayInfoResult.h +++ b/mts/include/alibabacloud/mts/model/PlayInfoResult.h @@ -36,11 +36,11 @@ namespace AlibabaCloud { std::string encryptionType; std::string rand; - std::string activityName; std::string downloadType; + std::string activityName; std::string size; - std::string fps; std::string definition; + std::string fps; std::string duration; std::string encryption; std::string bitrate; diff --git a/mts/include/alibabacloud/mts/model/PlayerAuthRequest.h b/mts/include/alibabacloud/mts/model/PlayerAuthRequest.h index 6b5d9fa41..b0a67fabf 100644 --- a/mts/include/alibabacloud/mts/model/PlayerAuthRequest.h +++ b/mts/include/alibabacloud/mts/model/PlayerAuthRequest.h @@ -1,60 +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_MTS_MODEL_PLAYERAUTHREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_PLAYERAUTHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT PlayerAuthRequest : public RpcServiceRequest - { - - public: - PlayerAuthRequest(); - ~PlayerAuthRequest(); - - std::string getResourceOwnerId()const; - void setResourceOwnerId(const std::string& resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_PLAYERAUTHREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_PLAYERAUTHREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_PLAYERAUTHREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT PlayerAuthRequest : public RpcServiceRequest { +public: + PlayerAuthRequest(); + ~PlayerAuthRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_PLAYERAUTHREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryAnalysisJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryAnalysisJobListRequest.h index 59d96c5c0..3f47fbe38 100644 --- a/mts/include/alibabacloud/mts/model/QueryAnalysisJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryAnalysisJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYANALYSISJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYANALYSISJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryAnalysisJobListRequest : public RpcServiceRequest - { - - public: - QueryAnalysisJobListRequest(); - ~QueryAnalysisJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getAnalysisJobIds()const; - void setAnalysisJobIds(const std::string& analysisJobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string analysisJobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYANALYSISJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYANALYSISJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYANALYSISJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryAnalysisJobListRequest : public RpcServiceRequest { +public: + QueryAnalysisJobListRequest(); + ~QueryAnalysisJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getAnalysisJobIds() const; + void setAnalysisJobIds(const std::string &analysisJobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string analysisJobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYANALYSISJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryAnalysisJobListResult.h b/mts/include/alibabacloud/mts/model/QueryAnalysisJobListResult.h index 2e514870a..291172b03 100644 --- a/mts/include/alibabacloud/mts/model/QueryAnalysisJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryAnalysisJobListResult.h @@ -34,12 +34,6 @@ namespace AlibabaCloud public: struct AnalysisJob { - struct InputFile - { - std::string bucket; - std::string object; - std::string location; - }; struct AnalysisConfig { struct QualityControl @@ -69,12 +63,14 @@ namespace AlibabaCloud std::string errorMessage; std::string messageId; }; + struct InputFile + { + std::string bucket; + std::string object; + std::string location; + }; struct _Template { - struct Container - { - std::string format; - }; struct Video { struct BitrateBnd @@ -99,6 +95,24 @@ namespace AlibabaCloud std::string degrain; std::string width; }; + struct TransConfig + { + std::string transMode; + }; + struct MuxConfig + { + struct Gif + { + std::string finalDelay; + std::string loop; + }; + struct Segment + { + std::string duration; + }; + Gif gif; + Segment segment; + }; struct Audio { std::string codec; @@ -108,23 +122,9 @@ namespace AlibabaCloud std::string profile; std::string channels; }; - struct TransConfig + struct Container { - std::string transMode; - }; - struct MuxConfig - { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - }; - Gif gif; - Segment segment; + std::string format; }; Container container; TransConfig transConfig; @@ -137,8 +137,8 @@ namespace AlibabaCloud }; std::vector templateList; std::string message; - std::string userData; long percent; + std::string userData; std::string priority; std::string code; InputFile inputFile; diff --git a/mts/include/alibabacloud/mts/model/QueryAnnotationJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryAnnotationJobListRequest.h index 9238482bb..09e9fd08b 100644 --- a/mts/include/alibabacloud/mts/model/QueryAnnotationJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryAnnotationJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYANNOTATIONJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYANNOTATIONJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryAnnotationJobListRequest : public RpcServiceRequest - { - - public: - QueryAnnotationJobListRequest(); - ~QueryAnnotationJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAnnotationJobIds()const; - void setAnnotationJobIds(const std::string& annotationJobIds); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string annotationJobIds_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYANNOTATIONJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYANNOTATIONJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYANNOTATIONJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryAnnotationJobListRequest : public RpcServiceRequest { +public: + QueryAnnotationJobListRequest(); + ~QueryAnnotationJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAnnotationJobIds() const; + void setAnnotationJobIds(const std::string &annotationJobIds); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string annotationJobIds_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYANNOTATIONJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryAsrJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryAsrJobListRequest.h index eb3eb7984..d054aba4c 100644 --- a/mts/include/alibabacloud/mts/model/QueryAsrJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryAsrJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYASRJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYASRJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryAsrJobListRequest : public RpcServiceRequest - { - - public: - QueryAsrJobListRequest(); - ~QueryAsrJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYASRJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYASRJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYASRJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryAsrJobListRequest : public RpcServiceRequest { +public: + QueryAsrJobListRequest(); + ~QueryAsrJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYASRJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryAsrJobListResult.h b/mts/include/alibabacloud/mts/model/QueryAsrJobListResult.h index 683c052b5..39b4cee31 100644 --- a/mts/include/alibabacloud/mts/model/QueryAsrJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryAsrJobListResult.h @@ -34,16 +34,16 @@ namespace AlibabaCloud public: struct Job { + struct AsrConfig + { + std::string scene; + }; struct Input { std::string bucket; std::string object; std::string location; }; - struct AsrConfig - { - std::string scene; - }; struct AsrResult { struct AsrText diff --git a/mts/include/alibabacloud/mts/model/QueryAsrPipelineListRequest.h b/mts/include/alibabacloud/mts/model/QueryAsrPipelineListRequest.h index 9a213ab7c..7113295c8 100644 --- a/mts/include/alibabacloud/mts/model/QueryAsrPipelineListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryAsrPipelineListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYASRPIPELINELISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYASRPIPELINELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryAsrPipelineListRequest : public RpcServiceRequest - { - - public: - QueryAsrPipelineListRequest(); - ~QueryAsrPipelineListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getPipelineIds()const; - void setPipelineIds(const std::string& pipelineIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string pipelineIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYASRPIPELINELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYASRPIPELINELISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYASRPIPELINELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryAsrPipelineListRequest : public RpcServiceRequest { +public: + QueryAsrPipelineListRequest(); + ~QueryAsrPipelineListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPipelineIds() const; + void setPipelineIds(const std::string &pipelineIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string pipelineIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYASRPIPELINELISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryAuthConfigRequest.h b/mts/include/alibabacloud/mts/model/QueryAuthConfigRequest.h index aaf81b35e..cbf3ead2c 100644 --- a/mts/include/alibabacloud/mts/model/QueryAuthConfigRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryAuthConfigRequest.h @@ -1,60 +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_MTS_MODEL_QUERYAUTHCONFIGREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYAUTHCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryAuthConfigRequest : public RpcServiceRequest - { - - public: - QueryAuthConfigRequest(); - ~QueryAuthConfigRequest(); - - std::string getResourceOwnerId()const; - void setResourceOwnerId(const std::string& resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYAUTHCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYAUTHCONFIGREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYAUTHCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryAuthConfigRequest : public RpcServiceRequest { +public: + QueryAuthConfigRequest(); + ~QueryAuthConfigRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYAUTHCONFIGREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryCensorJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryCensorJobListRequest.h index 22ebff439..8fe1089b1 100644 --- a/mts/include/alibabacloud/mts/model/QueryCensorJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryCensorJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYCENSORJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYCENSORJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryCensorJobListRequest : public RpcServiceRequest - { - - public: - QueryCensorJobListRequest(); - ~QueryCensorJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYCENSORJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYCENSORJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYCENSORJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryCensorJobListRequest : public RpcServiceRequest { +public: + QueryCensorJobListRequest(); + ~QueryCensorJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYCENSORJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryCensorJobListResult.h b/mts/include/alibabacloud/mts/model/QueryCensorJobListResult.h index 4c3b863a0..5cc8d023d 100644 --- a/mts/include/alibabacloud/mts/model/QueryCensorJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryCensorJobListResult.h @@ -34,6 +34,28 @@ namespace AlibabaCloud public: struct CensorJob { + struct CensorTerrorismResult + { + struct Top + { + std::string score; + std::string label; + std::string index; + std::string object; + std::string timestamp; + }; + struct Counter + { + std::string label; + int count; + }; + std::vector terrorismCounterList; + std::string suggestion; + std::string maxScore; + std::string averageScore; + std::string label; + std::vector terrorismTopList; + }; struct Input { std::string bucket; @@ -55,28 +77,6 @@ namespace AlibabaCloud std::string interval; }; struct CensorPornResult - { - struct Counter - { - std::string label; - int count; - }; - struct Top - { - std::string score; - std::string label; - std::string index; - std::string object; - std::string timestamp; - }; - std::string suggestion; - std::string maxScore; - std::string averageScore; - std::vector pornCounterList; - std::vector pornTopList; - std::string label; - }; - struct CensorTerrorismResult { struct Counter1 { @@ -91,12 +91,12 @@ namespace AlibabaCloud std::string object; std::string timestamp; }; - std::vector terrorismCounterList; std::string suggestion; std::string maxScore; std::string averageScore; + std::vector pornCounterList; + std::vector pornTopList; std::string label; - std::vector terrorismTopList; }; struct ImageCensorResult { @@ -108,8 +108,8 @@ namespace AlibabaCloud CensorTerrorismResult censorTerrorismResult; std::vector imageCensorResults; std::string message; - std::string userData; std::string descCensorResult; + std::string userData; CensorPornResult censorPornResult; std::string code; Input input; diff --git a/mts/include/alibabacloud/mts/model/QueryCensorPipelineListRequest.h b/mts/include/alibabacloud/mts/model/QueryCensorPipelineListRequest.h index 045e500b8..1ef370176 100644 --- a/mts/include/alibabacloud/mts/model/QueryCensorPipelineListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryCensorPipelineListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYCENSORPIPELINELISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYCENSORPIPELINELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryCensorPipelineListRequest : public RpcServiceRequest - { - - public: - QueryCensorPipelineListRequest(); - ~QueryCensorPipelineListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getPipelineIds()const; - void setPipelineIds(const std::string& pipelineIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string pipelineIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYCENSORPIPELINELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYCENSORPIPELINELISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYCENSORPIPELINELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryCensorPipelineListRequest : public RpcServiceRequest { +public: + QueryCensorPipelineListRequest(); + ~QueryCensorPipelineListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPipelineIds() const; + void setPipelineIds(const std::string &pipelineIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string pipelineIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYCENSORPIPELINELISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryComplexJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryComplexJobListRequest.h index 5ba44b094..4e2c06cea 100644 --- a/mts/include/alibabacloud/mts/model/QueryComplexJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryComplexJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYCOMPLEXJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYCOMPLEXJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryComplexJobListRequest : public RpcServiceRequest - { - - public: - QueryComplexJobListRequest(); - ~QueryComplexJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYCOMPLEXJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYCOMPLEXJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYCOMPLEXJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryComplexJobListRequest : public RpcServiceRequest { +public: + QueryComplexJobListRequest(); + ~QueryComplexJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYCOMPLEXJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryComplexJobListResult.h b/mts/include/alibabacloud/mts/model/QueryComplexJobListResult.h index f697f8875..4407109a3 100644 --- a/mts/include/alibabacloud/mts/model/QueryComplexJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryComplexJobListResult.h @@ -36,6 +36,82 @@ namespace AlibabaCloud { struct TranscodeOutput { + struct Video + { + struct BitrateBnd + { + std::string min; + std::string max; + }; + std::string bufsize; + std::string qscale; + std::string scanMode; + std::string preset; + std::string fps; + std::string gop; + BitrateBnd bitrateBnd; + std::string pixFmt; + std::string bitrate; + std::string profile; + std::string crop; + std::string pad; + std::string codec; + std::string maxrate; + std::string maxFps; + std::string crf; + std::string height; + std::string degrain; + std::string width; + }; + struct TransConfig + { + std::string isCheckAudioBitrate; + std::string adjDarMethod; + std::string isCheckAudioBitrateFail; + std::string isCheckVideoBitrateFail; + std::string isCheckReso; + std::string duration; + std::string isCheckVideoBitrate; + std::string transMode; + std::string isCheckResoFail; + }; + struct Encryption + { + std::string type; + std::string keyType; + std::string id; + std::string skipCnt; + std::string key; + std::string keyUri; + }; + struct M3U8NonStandardSupport + { + struct TS + { + bool sizeSupport; + bool md5Support; + }; + TS tS; + }; + struct Audio + { + struct Volume + { + std::string level; + std::string method; + }; + std::string codec; + std::string qscale; + Volume volume; + std::string samplerate; + std::string bitrate; + std::string profile; + std::string channels; + }; + struct SuperReso + { + std::string isHalfSample; + }; struct DigiWaterMark { struct InputFile3 @@ -55,14 +131,55 @@ namespace AlibabaCloud std::string roleArn; std::string location; }; - struct M3U8NonStandardSupport + struct Container { - struct TS + std::string format; + }; + struct Clip4 + { + struct TimeSpan { - bool md5Support; - bool sizeSupport; + std::string duration; + std::string seek; }; - TS tS; + TimeSpan timeSpan; + }; + struct MuxConfig + { + struct Gif + { + std::string finalDelay; + std::string loop; + std::string ditherMode; + std::string isCustomPalette; + }; + struct Segment + { + std::string duration; + }; + Gif gif; + Segment segment; + }; + struct SubtitleConfig + { + struct ExtSubtitle + { + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; + std::string charEnc; + Input input; + std::string fontName; + }; + struct Subtitle + { + std::string map; + }; + std::vector extSubtitleList; + std::vector subtitleList; }; struct Properties { @@ -79,17 +196,17 @@ namespace AlibabaCloud std::string codecTag; std::string codecTimeBase; std::string sar; - std::string fps; std::string startTime; + std::string fps; std::string index; - std::string duration; std::string lang; + std::string duration; std::string pixFmt; NetworkCost networkCost; - std::string codecName; std::string bitrate; - std::string profile; + std::string codecName; std::string avgFPS; + std::string profile; std::string timebase; std::string codecTagString; std::string hasBFrames; @@ -97,8 +214,8 @@ namespace AlibabaCloud std::string codecLongName; std::string height; std::string level; - std::string width; std::string numFrames; + std::string width; }; struct AudioStream { @@ -107,12 +224,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -149,123 +266,6 @@ namespace AlibabaCloud Streams streams; std::string fileSize; }; - struct Clip4 - { - struct TimeSpan - { - std::string duration; - std::string seek; - }; - TimeSpan timeSpan; - }; - struct SuperReso - { - std::string isHalfSample; - }; - struct SubtitleConfig - { - struct Subtitle - { - std::string map; - }; - struct ExtSubtitle - { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; - std::string charEnc; - Input input; - std::string fontName; - }; - std::vector extSubtitleList; - std::vector subtitleList; - }; - struct TransConfig - { - std::string isCheckAudioBitrate; - std::string adjDarMethod; - std::string isCheckAudioBitrateFail; - std::string isCheckVideoBitrateFail; - std::string isCheckReso; - std::string duration; - std::string isCheckVideoBitrate; - std::string transMode; - std::string isCheckResoFail; - }; - struct MuxConfig - { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - std::string ditherMode; - std::string isCustomPalette; - }; - Gif gif; - Segment segment; - }; - struct Audio - { - struct Volume - { - std::string level; - std::string method; - }; - std::string codec; - std::string qscale; - Volume volume; - std::string samplerate; - std::string bitrate; - std::string profile; - std::string channels; - }; - struct Video - { - struct BitrateBnd - { - std::string min; - std::string max; - }; - std::string bufsize; - std::string qscale; - std::string scanMode; - std::string preset; - std::string fps; - std::string gop; - BitrateBnd bitrateBnd; - std::string pixFmt; - std::string bitrate; - std::string profile; - std::string crop; - std::string codec; - std::string maxrate; - std::string pad; - std::string crf; - std::string maxFps; - std::string height; - std::string degrain; - std::string width; - }; - struct Container - { - std::string format; - }; - struct Encryption - { - std::string type; - std::string keyType; - std::string id; - std::string skipCnt; - std::string key; - std::string keyUri; - }; struct WaterMark { struct InputFile2 @@ -285,8 +285,8 @@ namespace AlibabaCloud }; struct Merge { - std::string mergeURL; std::string start; + std::string mergeURL; std::string duration; std::string roleArn; }; @@ -310,8 +310,8 @@ namespace AlibabaCloud std::string videoStreamMap; std::string audioStreamMap; Audio audio; - SubtitleConfig subtitleConfig; MuxConfig muxConfig; + SubtitleConfig subtitleConfig; std::string templateId; std::vector mergeList; }; @@ -321,27 +321,6 @@ namespace AlibabaCloud std::string errorMessage; std::string messageId; }; - struct InputsItem - { - struct EditingInput - { - struct InputFile - { - std::string bucket; - std::string object; - std::string location; - }; - struct InputConfig - { - std::string deinterlaceMethod; - std::string isNormalSar; - }; - InputConfig inputConfig; - std::string id; - InputFile inputFile; - }; - std::vector editingInputs; - }; struct ComplexEditingConfigsItem { struct Editing @@ -350,6 +329,12 @@ namespace AlibabaCloud { struct TimelineConfig { + struct TimelineConfigAudio + { + std::string channelLayout; + std::string samplerate; + std::string channels; + }; struct TimelineConfigVideo { std::string renderRatio; @@ -361,12 +346,6 @@ namespace AlibabaCloud std::string isOneTrackData; std::string width; }; - struct TimelineConfigAudio - { - std::string channelLayout; - std::string samplerate; - std::string channels; - }; TimelineConfigVideo timelineConfigVideo; TimelineConfigAudio timelineConfigAudio; }; @@ -405,8 +384,8 @@ namespace AlibabaCloud }; std::string type; std::string in; - std::string sourceType; std::string sourceID; + std::string sourceType; std::vector effects; std::string id; std::string sourceStrmMap; @@ -417,8 +396,29 @@ namespace AlibabaCloud }; Editing editing; }; - std::string message; + struct InputsItem + { + struct EditingInput + { + struct InputFile + { + std::string bucket; + std::string object; + std::string location; + }; + struct InputConfig + { + std::string deinterlaceMethod; + std::string isNormalSar; + }; + InputConfig inputConfig; + std::string id; + InputFile inputFile; + }; + std::vector editingInputs; + }; std::string finishTime; + std::string message; long percent; std::string state; MNSMessageResult mNSMessageResult; diff --git a/mts/include/alibabacloud/mts/model/QueryCoverJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryCoverJobListRequest.h index f308e2dfa..6eee6720e 100644 --- a/mts/include/alibabacloud/mts/model/QueryCoverJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryCoverJobListRequest.h @@ -1,81 +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_MTS_MODEL_QUERYCOVERJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYCOVERJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryCoverJobListRequest : public RpcServiceRequest - { - - public: - QueryCoverJobListRequest(); - ~QueryCoverJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getStartOfJobCreatedTimeRange()const; - void setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getCoverJobIds()const; - void setCoverJobIds(const std::string& coverJobIds); - std::string getState()const; - void setState(const std::string& state); - std::string getEndOfJobCreatedTimeRange()const; - void setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getMaximumPageSize()const; - void setMaximumPageSize(long maximumPageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - - private: - long resourceOwnerId_; - std::string nextPageToken_; - std::string startOfJobCreatedTimeRange_; - std::string accessKeyId_; - std::string coverJobIds_; - std::string state_; - std::string endOfJobCreatedTimeRange_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long maximumPageSize_; - long ownerId_; - std::string pipelineId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYCOVERJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYCOVERJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYCOVERJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryCoverJobListRequest : public RpcServiceRequest { +public: + QueryCoverJobListRequest(); + ~QueryCoverJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getStartOfJobCreatedTimeRange() const; + void setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCoverJobIds() const; + void setCoverJobIds(const std::string &coverJobIds); + std::string getState() const; + void setState(const std::string &state); + std::string getEndOfJobCreatedTimeRange() const; + void setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getMaximumPageSize() const; + void setMaximumPageSize(long maximumPageSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + +private: + long resourceOwnerId_; + std::string nextPageToken_; + std::string startOfJobCreatedTimeRange_; + std::string accessKeyId_; + std::string coverJobIds_; + std::string state_; + std::string endOfJobCreatedTimeRange_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long maximumPageSize_; + long ownerId_; + std::string pipelineId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYCOVERJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryCoverPipelineListRequest.h b/mts/include/alibabacloud/mts/model/QueryCoverPipelineListRequest.h index 5611629a0..b09c538eb 100644 --- a/mts/include/alibabacloud/mts/model/QueryCoverPipelineListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryCoverPipelineListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYCOVERPIPELINELISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYCOVERPIPELINELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryCoverPipelineListRequest : public RpcServiceRequest - { - - public: - QueryCoverPipelineListRequest(); - ~QueryCoverPipelineListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getPipelineIds()const; - void setPipelineIds(const std::string& pipelineIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string pipelineIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYCOVERPIPELINELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYCOVERPIPELINELISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYCOVERPIPELINELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryCoverPipelineListRequest : public RpcServiceRequest { +public: + QueryCoverPipelineListRequest(); + ~QueryCoverPipelineListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPipelineIds() const; + void setPipelineIds(const std::string &pipelineIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string pipelineIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYCOVERPIPELINELISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryEditingJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryEditingJobListRequest.h index 0f6412815..446f1f26b 100644 --- a/mts/include/alibabacloud/mts/model/QueryEditingJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryEditingJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYEDITINGJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYEDITINGJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryEditingJobListRequest : public RpcServiceRequest - { - - public: - QueryEditingJobListRequest(); - ~QueryEditingJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYEDITINGJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYEDITINGJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYEDITINGJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryEditingJobListRequest : public RpcServiceRequest { +public: + QueryEditingJobListRequest(); + ~QueryEditingJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYEDITINGJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryEditingJobListResult.h b/mts/include/alibabacloud/mts/model/QueryEditingJobListResult.h index e223347b7..76da69bb4 100644 --- a/mts/include/alibabacloud/mts/model/QueryEditingJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryEditingJobListResult.h @@ -36,6 +36,82 @@ namespace AlibabaCloud { struct EditingConfig { + struct Video + { + struct BitrateBnd + { + std::string min; + std::string max; + }; + std::string bufsize; + std::string qscale; + std::string scanMode; + std::string preset; + std::string fps; + std::string gop; + BitrateBnd bitrateBnd; + std::string pixFmt; + std::string bitrate; + std::string profile; + std::string crop; + std::string pad; + std::string codec; + std::string maxrate; + std::string maxFps; + std::string crf; + std::string height; + std::string degrain; + std::string width; + }; + struct TransConfig + { + std::string isCheckAudioBitrate; + std::string adjDarMethod; + std::string isCheckAudioBitrateFail; + std::string isCheckVideoBitrateFail; + std::string isCheckReso; + std::string duration; + std::string isCheckVideoBitrate; + std::string transMode; + std::string isCheckResoFail; + }; + struct Encryption + { + std::string type; + std::string keyType; + std::string id; + std::string skipCnt; + std::string key; + std::string keyUri; + }; + struct M3U8NonStandardSupport + { + struct TS + { + bool sizeSupport; + bool md5Support; + }; + TS tS; + }; + struct Audio + { + struct Volume + { + std::string level; + std::string method; + }; + std::string codec; + std::string qscale; + Volume volume; + std::string samplerate; + std::string bitrate; + std::string profile; + std::string channels; + }; + struct SuperReso + { + std::string isHalfSample; + }; struct DigiWaterMark { struct InputFile2 @@ -55,14 +131,126 @@ namespace AlibabaCloud std::string roleArn; std::string location; }; - struct M3U8NonStandardSupport + struct Editing { - struct TS + struct Timeline { - bool md5Support; - bool sizeSupport; + struct TimelineConfig + { + struct TimelineConfigAudio + { + std::string channelLayout; + std::string samplerate; + std::string channels; + }; + struct TimelineConfigVideo + { + std::string renderRatio; + std::string reclosePrec; + std::string fps; + std::string isGpuData; + std::string height; + std::string bgColor; + std::string isOneTrackData; + std::string width; + }; + TimelineConfigVideo timelineConfigVideo; + TimelineConfigAudio timelineConfigAudio; + }; + struct Track + { + struct Clip3 + { + struct ClipsConfig + { + struct ClipsConfigVideo + { + std::string t; + std::string l; + }; + ClipsConfigVideo clipsConfigVideo; + }; + std::string clipID; + std::string in; + ClipsConfig clipsConfig; + std::string out; + }; + std::string order; + std::vector clips; + std::string type; + std::string id; + }; + std::vector trackList; + TimelineConfig timelineConfig; }; - TS tS; + struct Clip + { + struct Effect + { + std::string effect; + std::string effectConfig; + }; + std::string type; + std::string in; + std::string sourceID; + std::string sourceType; + std::vector effects; + std::string id; + std::string sourceStrmMap; + std::string out; + }; + Timeline timeline; + std::vector clipList; + }; + struct Container + { + std::string format; + }; + struct Clip4 + { + struct TimeSpan + { + std::string duration; + std::string seek; + }; + TimeSpan timeSpan; + }; + struct MuxConfig + { + struct Gif + { + std::string finalDelay; + std::string loop; + std::string ditherMode; + std::string isCustomPalette; + }; + struct Segment + { + std::string duration; + }; + Gif gif; + Segment segment; + }; + struct SubtitleConfig + { + struct ExtSubtitle + { + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; + std::string charEnc; + Input input; + std::string fontName; + }; + struct Subtitle + { + std::string map; + }; + std::vector extSubtitleList; + std::vector subtitleList; }; struct Properties { @@ -79,17 +267,17 @@ namespace AlibabaCloud std::string codecTag; std::string codecTimeBase; std::string sar; - std::string fps; std::string startTime; + std::string fps; std::string index; - std::string duration; std::string lang; + std::string duration; std::string pixFmt; NetworkCost networkCost; - std::string codecName; std::string bitrate; - std::string profile; + std::string codecName; std::string avgFPS; + std::string profile; std::string timebase; std::string codecTagString; std::string hasBFrames; @@ -97,8 +285,8 @@ namespace AlibabaCloud std::string codecLongName; std::string height; std::string level; - std::string width; std::string numFrames; + std::string width; }; struct AudioStream { @@ -107,12 +295,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -149,194 +337,6 @@ namespace AlibabaCloud Streams streams; std::string fileSize; }; - struct Clip - { - struct TimeSpan - { - std::string duration; - std::string seek; - }; - TimeSpan timeSpan; - }; - struct SuperReso - { - std::string isHalfSample; - }; - struct SubtitleConfig - { - struct Subtitle - { - std::string map; - }; - struct ExtSubtitle - { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; - std::string charEnc; - Input input; - std::string fontName; - }; - std::vector extSubtitleList; - std::vector subtitleList; - }; - struct TransConfig - { - std::string isCheckAudioBitrate; - std::string adjDarMethod; - std::string isCheckAudioBitrateFail; - std::string isCheckVideoBitrateFail; - std::string isCheckReso; - std::string duration; - std::string isCheckVideoBitrate; - std::string transMode; - std::string isCheckResoFail; - }; - struct MuxConfig - { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - std::string ditherMode; - std::string isCustomPalette; - }; - Gif gif; - Segment segment; - }; - struct Audio - { - struct Volume - { - std::string level; - std::string method; - }; - std::string codec; - std::string qscale; - Volume volume; - std::string samplerate; - std::string bitrate; - std::string profile; - std::string channels; - }; - struct Video - { - struct BitrateBnd - { - std::string min; - std::string max; - }; - std::string bufsize; - std::string qscale; - std::string scanMode; - std::string preset; - std::string fps; - std::string gop; - BitrateBnd bitrateBnd; - std::string pixFmt; - std::string bitrate; - std::string profile; - std::string crop; - std::string codec; - std::string maxrate; - std::string pad; - std::string crf; - std::string maxFps; - std::string height; - std::string degrain; - std::string width; - }; - struct Container - { - std::string format; - }; - struct Encryption - { - std::string type; - std::string keyType; - std::string id; - std::string skipCnt; - std::string key; - std::string keyUri; - }; - struct Editing - { - struct Timeline - { - struct TimelineConfig - { - struct TimelineConfigVideo - { - std::string renderRatio; - std::string reclosePrec; - std::string fps; - std::string isGpuData; - std::string height; - std::string bgColor; - std::string isOneTrackData; - std::string width; - }; - struct TimelineConfigAudio - { - std::string channelLayout; - std::string samplerate; - std::string channels; - }; - TimelineConfigVideo timelineConfigVideo; - TimelineConfigAudio timelineConfigAudio; - }; - struct Track - { - struct Clip4 - { - struct ClipsConfig - { - struct ClipsConfigVideo - { - std::string t; - std::string l; - }; - ClipsConfigVideo clipsConfigVideo; - }; - std::string clipID; - std::string in; - ClipsConfig clipsConfig; - std::string out; - }; - std::string order; - std::vector clips; - std::string type; - std::string id; - }; - std::vector trackList; - TimelineConfig timelineConfig; - }; - struct Clip3 - { - struct Effect - { - std::string effect; - std::string effectConfig; - }; - std::string type; - std::string in; - std::string sourceType; - std::string sourceID; - std::vector effects; - std::string id; - std::string sourceStrmMap; - std::string out; - }; - Timeline timeline; - std::vector clipList; - }; struct WaterMark { struct InputFile1 @@ -356,8 +356,8 @@ namespace AlibabaCloud }; struct Merge { - std::string mergeURL; std::string start; + std::string mergeURL; std::string duration; std::string roleArn; }; @@ -367,16 +367,16 @@ namespace AlibabaCloud Editing editing; Encryption encryption; Properties properties; - Clip clip; SuperReso superReso; std::vector waterMarkList; Container container; TransConfig transConfig; std::string waterMarkConfigUrl; - SubtitleConfig subtitleConfig; MuxConfig muxConfig; + SubtitleConfig subtitleConfig; std::string templateId; OutputFile outputFile; + Clip4 clip4; std::string priority; std::string mergeConfigUrl; std::string deWatermark; @@ -411,8 +411,8 @@ namespace AlibabaCloud InputFile inputFile; }; std::vector editingInputs; - std::string message; std::string finishTime; + std::string message; long percent; std::string state; MNSMessageResult mNSMessageResult; diff --git a/mts/include/alibabacloud/mts/model/QueryFacerecogJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryFacerecogJobListRequest.h index cf6d40655..2686bf13d 100644 --- a/mts/include/alibabacloud/mts/model/QueryFacerecogJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryFacerecogJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYFACERECOGJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYFACERECOGJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryFacerecogJobListRequest : public RpcServiceRequest - { - - public: - QueryFacerecogJobListRequest(); - ~QueryFacerecogJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getFacerecogJobIds()const; - void setFacerecogJobIds(const std::string& facerecogJobIds); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string facerecogJobIds_; - long ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFACERECOGJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYFACERECOGJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYFACERECOGJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryFacerecogJobListRequest : public RpcServiceRequest { +public: + QueryFacerecogJobListRequest(); + ~QueryFacerecogJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getFacerecogJobIds() const; + void setFacerecogJobIds(const std::string &facerecogJobIds); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string facerecogJobIds_; + long ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFACERECOGJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryFacerecogJobListResult.h b/mts/include/alibabacloud/mts/model/QueryFacerecogJobListResult.h index 70af46033..6d59754f9 100644 --- a/mts/include/alibabacloud/mts/model/QueryFacerecogJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryFacerecogJobListResult.h @@ -34,12 +34,6 @@ namespace AlibabaCloud public: struct FacerecogJob { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; struct VideoFacerecogResult { struct Facerecog @@ -55,6 +49,12 @@ namespace AlibabaCloud }; std::vector facerecogs; }; + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; Input input; VideoFacerecogResult videoFacerecogResult; std::string message; diff --git a/mts/include/alibabacloud/mts/model/QueryFpCompareJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryFpCompareJobListRequest.h index 0412c762b..1637b1370 100644 --- a/mts/include/alibabacloud/mts/model/QueryFpCompareJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryFpCompareJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYFPCOMPAREJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYFPCOMPAREJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryFpCompareJobListRequest : public RpcServiceRequest - { - - public: - QueryFpCompareJobListRequest(); - ~QueryFpCompareJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPCOMPAREJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYFPCOMPAREJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYFPCOMPAREJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryFpCompareJobListRequest : public RpcServiceRequest { +public: + QueryFpCompareJobListRequest(); + ~QueryFpCompareJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPCOMPAREJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryFpCompareJobListResult.h b/mts/include/alibabacloud/mts/model/QueryFpCompareJobListResult.h index 1945885aa..c2c8deab5 100644 --- a/mts/include/alibabacloud/mts/model/QueryFpCompareJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryFpCompareJobListResult.h @@ -54,13 +54,13 @@ namespace AlibabaCloud std::string object; std::string location; }; - struct QueryMediaFrames + struct MatchedFramesDescFile { std::string bucket; std::string object; std::string location; }; - struct MatchedFramesDescFile + struct QueryMediaFrames { std::string bucket; std::string object; @@ -72,28 +72,28 @@ namespace AlibabaCloud }; struct FpCompareResult { - struct MasterMediaInfo - { - std::string audioBitRate; - std::string audioSampleRate; - std::string fpNum; - std::string totalVideoFrame; - std::string audioChannels; - std::string fps; - std::string duration; - std::string height; - std::string width; - }; struct QueryMediaInfo { - std::string audioBitRate; std::string audioSampleRate; + std::string audioBitRate; std::string fpNum; std::string totalVideoFrame; std::string audioChannels; std::string fps; - std::string duration; std::string height; + std::string duration; + std::string width; + }; + struct MasterMediaInfo + { + std::string audioSampleRate; + std::string audioBitRate; + std::string fpNum; + std::string totalVideoFrame; + std::string audioChannels; + std::string fps; + std::string height; + std::string duration; std::string width; }; struct MediaMatchSegment @@ -105,8 +105,8 @@ namespace AlibabaCloud std::string totalMatchFrameNum; std::string queryStartFrame; std::string queryEndTime; - std::string masterEndFrame; std::string masterEndTime; + std::string masterEndFrame; std::string queryStartTime; }; MasterMediaInfo masterMediaInfo; diff --git a/mts/include/alibabacloud/mts/model/QueryFpDBDeleteJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryFpDBDeleteJobListRequest.h new file mode 100644 index 000000000..68685b503 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryFpDBDeleteJobListRequest.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_MTS_MODEL_QUERYFPDBDELETEJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYFPDBDELETEJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryFpDBDeleteJobListRequest : public RpcServiceRequest { +public: + QueryFpDBDeleteJobListRequest(); + ~QueryFpDBDeleteJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPDBDELETEJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryFpDBDeleteJobListResult.h b/mts/include/alibabacloud/mts/model/QueryFpDBDeleteJobListResult.h new file mode 100644 index 000000000..54c0e4127 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryFpDBDeleteJobListResult.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_MTS_MODEL_QUERYFPDBDELETEJOBLISTRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYFPDBDELETEJOBLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QueryFpDBDeleteJobListResult : public ServiceResult + { + public: + struct FpDBDeleteJob + { + std::string status; + std::string finishTime; + std::string message; + std::string userData; + std::string creationTime; + std::string pipelineId; + std::string id; + std::string code; + std::string delType; + std::string fpDBId; + }; + + + QueryFpDBDeleteJobListResult(); + explicit QueryFpDBDeleteJobListResult(const std::string &payload); + ~QueryFpDBDeleteJobListResult(); + std::vector getFpDBDeleteJobList()const; + std::vector getNonExistIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector fpDBDeleteJobList_; + std::vector nonExistIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPDBDELETEJOBLISTRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QueryFpFileDeleteJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryFpFileDeleteJobListRequest.h new file mode 100644 index 000000000..43579c567 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryFpFileDeleteJobListRequest.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_MTS_MODEL_QUERYFPFILEDELETEJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYFPFILEDELETEJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryFpFileDeleteJobListRequest : public RpcServiceRequest { +public: + QueryFpFileDeleteJobListRequest(); + ~QueryFpFileDeleteJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPFILEDELETEJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryFpFileDeleteJobListResult.h b/mts/include/alibabacloud/mts/model/QueryFpFileDeleteJobListResult.h new file mode 100644 index 000000000..c0a7f30a8 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryFpFileDeleteJobListResult.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_MTS_MODEL_QUERYFPFILEDELETEJOBLISTRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYFPFILEDELETEJOBLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QueryFpFileDeleteJobListResult : public ServiceResult + { + public: + struct FpFileDeleteJob + { + std::string status; + std::string finishTime; + std::string message; + std::string userData; + std::string creationTime; + std::string pipelineId; + std::string id; + std::string code; + std::string fileIds; + std::string fpDBId; + }; + + + QueryFpFileDeleteJobListResult(); + explicit QueryFpFileDeleteJobListResult(const std::string &payload); + ~QueryFpFileDeleteJobListResult(); + std::vector getFpFileDeleteJobList()const; + std::vector getNonExistIds()const; + + protected: + void parse(const std::string &payload); + private: + std::vector fpFileDeleteJobList_; + std::vector nonExistIds_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPFILEDELETEJOBLISTRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QueryFpImportResultRequest.h b/mts/include/alibabacloud/mts/model/QueryFpImportResultRequest.h index 9be51cacc..d1aa76dec 100644 --- a/mts/include/alibabacloud/mts/model/QueryFpImportResultRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryFpImportResultRequest.h @@ -1,72 +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_MTS_MODEL_QUERYFPIMPORTRESULTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYFPIMPORTRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryFpImportResultRequest : public RpcServiceRequest - { - - public: - QueryFpImportResultRequest(); - ~QueryFpImportResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getStartTime()const; - void setStartTime(long startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getPageSize()const; - void setPageSize(long pageSize); - long getPageIndex()const; - void setPageIndex(long pageIndex); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getEndTime()const; - void setEndTime(long endTime); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - long startTime_; - std::string accessKeyId_; - long pageSize_; - long pageIndex_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long endTime_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPIMPORTRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYFPIMPORTRESULTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYFPIMPORTRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryFpImportResultRequest : public RpcServiceRequest { +public: + QueryFpImportResultRequest(); + ~QueryFpImportResultRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getStartTime() const; + void setStartTime(long startTime); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getPageSize() const; + void setPageSize(long pageSize); + long getPageIndex() const; + void setPageIndex(long pageIndex); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getEndTime() const; + void setEndTime(long endTime); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + long startTime_; + std::string accessKeyId_; + long pageSize_; + long pageIndex_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long endTime_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPIMPORTRESULTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryFpShotJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryFpShotJobListRequest.h index bf9363838..79f3e775f 100644 --- a/mts/include/alibabacloud/mts/model/QueryFpShotJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryFpShotJobListRequest.h @@ -1,84 +1,78 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_MTS_MODEL_QUERYFPSHOTJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYFPSHOTJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryFpShotJobListRequest : public RpcServiceRequest - { - - public: - QueryFpShotJobListRequest(); - ~QueryFpShotJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getStartOfJobCreatedTimeRange()const; - void setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getState()const; - void setState(const std::string& state); - std::string getEndOfJobCreatedTimeRange()const; - void setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getMaximumPageSize()const; - void setMaximumPageSize(long maximumPageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getPrimaryKeyList()const; - void setPrimaryKeyList(const std::string& primaryKeyList); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string nextPageToken_; - std::string startOfJobCreatedTimeRange_; - std::string accessKeyId_; - std::string state_; - std::string endOfJobCreatedTimeRange_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long maximumPageSize_; - long ownerId_; - std::string pipelineId_; - std::string primaryKeyList_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPSHOTJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYFPSHOTJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYFPSHOTJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryFpShotJobListRequest : public RpcServiceRequest { +public: + QueryFpShotJobListRequest(); + ~QueryFpShotJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getStartOfJobCreatedTimeRange() const; + void setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getState() const; + void setState(const std::string &state); + std::string getEndOfJobCreatedTimeRange() const; + void setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getMaximumPageSize() const; + void setMaximumPageSize(long maximumPageSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getPrimaryKeyList() const; + void setPrimaryKeyList(const std::string &primaryKeyList); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string nextPageToken_; + std::string startOfJobCreatedTimeRange_; + std::string accessKeyId_; + std::string state_; + std::string endOfJobCreatedTimeRange_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long maximumPageSize_; + long ownerId_; + std::string pipelineId_; + std::string primaryKeyList_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYFPSHOTJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryFpShotJobListResult.h b/mts/include/alibabacloud/mts/model/QueryFpShotJobListResult.h index 0c62e06df..57c7fd8fa 100644 --- a/mts/include/alibabacloud/mts/model/QueryFpShotJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryFpShotJobListResult.h @@ -34,31 +34,18 @@ namespace AlibabaCloud public: struct FpShotJob { - struct InputFile - { - std::string bucket; - std::string object; - std::string location; - }; - struct FpShotConfig - { - std::string saveType; - std::string primaryKey; - std::string notary; - std::string fpDBId; - }; struct FpShotResult { struct FpShot { struct FpShotSlice { - struct Input + struct Duplication { std::string start; std::string duration; }; - struct Duplication + struct Input { std::string start; std::string duration; @@ -74,6 +61,19 @@ namespace AlibabaCloud std::vector audioFpShots; std::vector fpShots; }; + struct FpShotConfig + { + std::string saveType; + std::string primaryKey; + std::string notary; + std::string fpDBId; + }; + struct InputFile + { + std::string bucket; + std::string object; + std::string location; + }; std::string message; std::string userData; std::string txHash; diff --git a/mts/include/alibabacloud/mts/model/QueryIProductionJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryIProductionJobListRequest.h index 66926bc11..b6d502931 100644 --- a/mts/include/alibabacloud/mts/model/QueryIProductionJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryIProductionJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYIPRODUCTIONJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYIPRODUCTIONJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryIProductionJobListRequest : public RpcServiceRequest - { - - public: - QueryIProductionJobListRequest(); - ~QueryIProductionJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getIProductionJobIds()const; - void setIProductionJobIds(const std::string& iProductionJobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string iProductionJobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYIPRODUCTIONJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYIPRODUCTIONJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYIPRODUCTIONJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryIProductionJobListRequest : public RpcServiceRequest { +public: + QueryIProductionJobListRequest(); + ~QueryIProductionJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getIProductionJobIds() const; + void setIProductionJobIds(const std::string &iProductionJobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string iProductionJobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYIPRODUCTIONJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryIProductionJobRequest.h b/mts/include/alibabacloud/mts/model/QueryIProductionJobRequest.h new file mode 100644 index 000000000..28579fd80 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryIProductionJobRequest.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_MTS_MODEL_QUERYIPRODUCTIONJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYIPRODUCTIONJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryIProductionJobRequest : public RpcServiceRequest { +public: + QueryIProductionJobRequest(); + ~QueryIProductionJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYIPRODUCTIONJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryIProductionJobResult.h b/mts/include/alibabacloud/mts/model/QueryIProductionJobResult.h new file mode 100644 index 000000000..3d6103a6c --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryIProductionJobResult.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_MTS_MODEL_QUERYIPRODUCTIONJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYIPRODUCTIONJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QueryIProductionJobResult : public ServiceResult + { + public: + + + QueryIProductionJobResult(); + explicit QueryIProductionJobResult(const std::string &payload); + ~QueryIProductionJobResult(); + std::string getFunctionName()const; + std::string getInput()const; + std::string getUserData()const; + std::string getState()const; + std::string getOutput()const; + std::string getPipelineId()const; + std::string getJobParams()const; + std::string getJobId()const; + std::string getResult()const; + + protected: + void parse(const std::string &payload); + private: + std::string functionName_; + std::string input_; + std::string userData_; + std::string state_; + std::string output_; + std::string pipelineId_; + std::string jobParams_; + std::string jobId_; + std::string result_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYIPRODUCTIONJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QueryImageSearchJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryImageSearchJobListRequest.h index e474320db..2cd82f0a6 100644 --- a/mts/include/alibabacloud/mts/model/QueryImageSearchJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryImageSearchJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYIMAGESEARCHJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYIMAGESEARCHJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryImageSearchJobListRequest : public RpcServiceRequest - { - - public: - QueryImageSearchJobListRequest(); - ~QueryImageSearchJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYIMAGESEARCHJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYIMAGESEARCHJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYIMAGESEARCHJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryImageSearchJobListRequest : public RpcServiceRequest { +public: + QueryImageSearchJobListRequest(); + ~QueryImageSearchJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYIMAGESEARCHJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryImageSearchJobListResult.h b/mts/include/alibabacloud/mts/model/QueryImageSearchJobListResult.h index 9865a0563..19ecb020c 100644 --- a/mts/include/alibabacloud/mts/model/QueryImageSearchJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryImageSearchJobListResult.h @@ -34,18 +34,6 @@ namespace AlibabaCloud public: struct ImageSearchJob { - struct InputVideo - { - std::string bucket; - std::string object; - std::string location; - }; - struct InputImage - { - std::string bucket; - std::string object; - std::string location; - }; struct Result { struct ImageSearchShotsItem @@ -56,8 +44,20 @@ namespace AlibabaCloud }; std::vector imageSearchShots; }; - std::string message; + struct InputImage + { + std::string bucket; + std::string object; + std::string location; + }; + struct InputVideo + { + std::string bucket; + std::string object; + std::string location; + }; std::string finishTime; + std::string message; InputVideo inputVideo; std::string userData; std::string state; diff --git a/mts/include/alibabacloud/mts/model/QueryInferenceJobRequest.h b/mts/include/alibabacloud/mts/model/QueryInferenceJobRequest.h new file mode 100644 index 000000000..c4b6870be --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryInferenceJobRequest.h @@ -0,0 +1,42 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_MTS_MODEL_QUERYINFERENCEJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYINFERENCEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryInferenceJobRequest : public RpcServiceRequest { +public: + QueryInferenceJobRequest(); + ~QueryInferenceJobRequest(); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + std::string jobId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYINFERENCEJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryInferenceJobResult.h b/mts/include/alibabacloud/mts/model/QueryInferenceJobResult.h new file mode 100644 index 000000000..cfa1c8212 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryInferenceJobResult.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_MTS_MODEL_QUERYINFERENCEJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYINFERENCEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QueryInferenceJobResult : public ServiceResult + { + public: + struct Job + { + std::string status; + std::string message; + long userId; + long jobTime; + std::string jobId; + std::string jobParams; + std::string result; + }; + + + QueryInferenceJobResult(); + explicit QueryInferenceJobResult(const std::string &payload); + ~QueryInferenceJobResult(); + std::string getMessage()const; + Job getJob()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Job job_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYINFERENCEJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QueryInferenceServerRequest.h b/mts/include/alibabacloud/mts/model/QueryInferenceServerRequest.h new file mode 100644 index 000000000..885132f47 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryInferenceServerRequest.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_MTS_MODEL_QUERYINFERENCESERVERREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYINFERENCESERVERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryInferenceServerRequest : public RpcServiceRequest { +public: + QueryInferenceServerRequest(); + ~QueryInferenceServerRequest(); + long getCreateTime() const; + void setCreateTime(long createTime); + long getMaxPageSize() const; + void setMaxPageSize(long maxPageSize); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getModelType() const; + void setModelType(const std::string &modelType); + +private: + long createTime_; + long maxPageSize_; + long pageNumber_; + std::string modelType_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYINFERENCESERVERREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryInferenceServerResult.h b/mts/include/alibabacloud/mts/model/QueryInferenceServerResult.h new file mode 100644 index 000000000..ded7eec85 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryInferenceServerResult.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_MTS_MODEL_QUERYINFERENCESERVERRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYINFERENCESERVERRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QueryInferenceServerResult : public ServiceResult + { + public: + struct FunctionsItem + { + std::string functionName; + std::string testId; + long userId; + std::string modelPath; + long createTime; + std::string modelType; + std::string pipelineId; + }; + + + QueryInferenceServerResult(); + explicit QueryInferenceServerResult(const std::string &payload); + ~QueryInferenceServerResult(); + std::string getMessage()const; + std::vector getFunctions()const; + long getTotalSize()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector functions_; + long totalSize_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYINFERENCESERVERRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QueryInnerJobRequest.h b/mts/include/alibabacloud/mts/model/QueryInnerJobRequest.h new file mode 100644 index 000000000..f16de58a8 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryInnerJobRequest.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_MTS_MODEL_QUERYINNERJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYINNERJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryInnerJobRequest : public RpcServiceRequest { +public: + QueryInnerJobRequest(); + ~QueryInnerJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYINNERJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryInnerJobResult.h b/mts/include/alibabacloud/mts/model/QueryInnerJobResult.h new file mode 100644 index 000000000..33fbe9afb --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryInnerJobResult.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_MTS_MODEL_QUERYINNERJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYINNERJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QueryInnerJobResult : public ServiceResult + { + public: + struct Video + { + int index; + std::string code; + int result; + }; + struct Result + { + int index; + std::string code; + int result; + }; + + + QueryInnerJobResult(); + explicit QueryInnerJobResult(const std::string &payload); + ~QueryInnerJobResult(); + std::string getStatus()const; + std::string getSuggestion()const; + Video getVideo()const; + std::vector getImage()const; + + protected: + void parse(const std::string &payload); + private: + std::string status_; + std::string suggestion_; + Video video_; + std::vector image_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYINNERJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QueryJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryJobListRequest.h index 7c41fa9ba..17a695163 100644 --- a/mts/include/alibabacloud/mts/model/QueryJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryJobListRequest : public RpcServiceRequest - { - - public: - QueryJobListRequest(); - ~QueryJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryJobListRequest : public RpcServiceRequest { +public: + QueryJobListRequest(); + ~QueryJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryJobListResult.h b/mts/include/alibabacloud/mts/model/QueryJobListResult.h index 3ecec755d..7658a356d 100644 --- a/mts/include/alibabacloud/mts/model/QueryJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryJobListResult.h @@ -34,14 +34,84 @@ namespace AlibabaCloud public: struct Job { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; struct Output { + struct Video + { + struct BitrateBnd + { + std::string min; + std::string max; + }; + std::string bufsize; + std::string qscale; + std::string scanMode; + std::string preset; + std::string fps; + std::string gop; + BitrateBnd bitrateBnd; + std::string pixFmt; + std::string bitrate; + std::string profile; + std::string crop; + std::string pad; + std::string codec; + std::string maxrate; + std::string maxFps; + std::string crf; + std::string height; + std::string degrain; + std::string width; + std::string resoPriority; + }; + struct TransConfig + { + std::string isCheckAudioBitrate; + std::string adjDarMethod; + std::string isCheckAudioBitrateFail; + std::string isCheckVideoBitrateFail; + std::string isCheckReso; + std::string isCheckVideoBitrate; + std::string transMode; + std::string isCheckResoFail; + }; + struct Encryption + { + std::string type; + std::string keyType; + std::string id; + std::string skipCnt; + std::string key; + std::string keyUri; + }; + struct M3U8NonStandardSupport + { + struct TS + { + bool sizeSupport; + bool md5Support; + }; + TS tS; + }; + struct Audio + { + struct Volume + { + std::string level; + std::string method; + }; + std::string codec; + std::string qscale; + Volume volume; + std::string samplerate; + std::string bitrate; + std::string profile; + std::string channels; + }; + struct SuperReso + { + std::string isHalfSample; + }; struct OutputFile { std::string bucket; @@ -49,14 +119,60 @@ namespace AlibabaCloud std::string roleArn; std::string location; }; - struct M3U8NonStandardSupport + struct Container { - struct TS + std::string format; + }; + struct Clip + { + struct TimeSpan { - bool md5Support; - bool sizeSupport; + std::string duration; + std::string seek; }; - TS tS; + TimeSpan timeSpan; + }; + struct MuxConfig + { + struct Webp + { + std::string loop; + }; + struct Gif + { + std::string finalDelay; + std::string loop; + std::string ditherMode; + std::string isCustomPalette; + }; + struct Segment + { + std::string duration; + }; + Webp webp; + Gif gif; + Segment segment; + }; + struct SubtitleConfig + { + struct ExtSubtitle + { + struct Input1 + { + std::string bucket; + std::string object; + std::string location; + }; + std::string charEnc; + Input1 input1; + std::string fontName; + }; + struct Subtitle + { + std::string map; + }; + std::vector extSubtitleList; + std::vector subtitleList; }; struct Properties { @@ -73,17 +189,17 @@ namespace AlibabaCloud std::string codecTag; std::string codecTimeBase; std::string sar; - std::string fps; std::string startTime; + std::string fps; std::string index; - std::string duration; std::string lang; + std::string duration; std::string pixFmt; NetworkCost networkCost; - std::string codecName; std::string bitrate; - std::string profile; + std::string codecName; std::string avgFPS; + std::string profile; std::string timebase; std::string codecTagString; std::string hasBFrames; @@ -91,8 +207,8 @@ namespace AlibabaCloud std::string codecLongName; std::string height; std::string level; - std::string width; std::string numFrames; + std::string width; }; struct AudioStream { @@ -101,12 +217,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -148,128 +264,6 @@ namespace AlibabaCloud Streams streams; std::string fileSize; }; - struct Clip - { - struct TimeSpan - { - std::string duration; - std::string seek; - }; - TimeSpan timeSpan; - }; - struct SuperReso - { - std::string isHalfSample; - }; - struct SubtitleConfig - { - struct Subtitle - { - std::string map; - }; - struct ExtSubtitle - { - struct Input1 - { - std::string bucket; - std::string object; - std::string location; - }; - std::string charEnc; - Input1 input1; - std::string fontName; - }; - std::vector extSubtitleList; - std::vector subtitleList; - }; - struct TransConfig - { - std::string isCheckAudioBitrate; - std::string adjDarMethod; - std::string isCheckAudioBitrateFail; - std::string isCheckVideoBitrateFail; - std::string isCheckReso; - std::string isCheckVideoBitrate; - std::string transMode; - std::string isCheckResoFail; - }; - struct MuxConfig - { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - std::string ditherMode; - std::string isCustomPalette; - }; - struct Webp - { - std::string loop; - }; - Gif gif; - Webp webp; - Segment segment; - }; - struct Audio - { - struct Volume - { - std::string level; - std::string method; - }; - std::string codec; - std::string qscale; - Volume volume; - std::string samplerate; - std::string bitrate; - std::string profile; - std::string channels; - }; - struct Video - { - struct BitrateBnd - { - std::string min; - std::string max; - }; - std::string bufsize; - std::string qscale; - std::string scanMode; - std::string preset; - std::string fps; - std::string gop; - BitrateBnd bitrateBnd; - std::string pixFmt; - std::string bitrate; - std::string profile; - std::string crop; - std::string codec; - std::string maxrate; - std::string pad; - std::string crf; - std::string maxFps; - std::string height; - std::string degrain; - std::string width; - std::string resoPriority; - }; - struct Container - { - std::string format; - }; - struct Encryption - { - std::string type; - std::string keyType; - std::string id; - std::string skipCnt; - std::string key; - std::string keyUri; - }; struct WaterMark { struct InputFile @@ -289,11 +283,25 @@ namespace AlibabaCloud }; struct Merge { - std::string mergeURL; std::string start; + std::string mergeURL; std::string duration; std::string roleArn; }; + struct OutSubtitle + { + struct OutSubtitleFile + { + std::string bucket; + std::string object; + std::string roleArn; + std::string location; + }; + std::string message; + OutSubtitleFile outSubtitleFile; + std::string map; + bool success; + }; struct Opening { std::string start; @@ -311,32 +319,18 @@ namespace AlibabaCloud std::string width; bool isMergeAudio; }; - struct OutSubtitle - { - struct OutSubtitleFile - { - std::string bucket; - std::string object; - std::string roleArn; - std::string location; - }; - std::string message; - OutSubtitleFile outSubtitleFile; - std::string map; - bool success; - }; std::string rotate; std::string userData; Encryption encryption; Properties properties; - Clip clip; SuperReso superReso; + Clip clip; std::vector waterMarkList; Container container; TransConfig transConfig; std::string waterMarkConfigUrl; - SubtitleConfig subtitleConfig; MuxConfig muxConfig; + SubtitleConfig subtitleConfig; std::vector openingList; std::string templateId; OutputFile outputFile; @@ -352,6 +346,12 @@ namespace AlibabaCloud Audio audio; std::vector mergeList; }; + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; struct MNSMessageResult { std::string errorCode; @@ -359,8 +359,8 @@ namespace AlibabaCloud std::string messageId; }; Input input; - std::string message; std::string finishTime; + std::string message; long percent; std::string state; Output output; diff --git a/mts/include/alibabacloud/mts/model/QueryMCJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryMCJobListRequest.h index c0b33b043..fe1984fcc 100644 --- a/mts/include/alibabacloud/mts/model/QueryMCJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMCJobListRequest.h @@ -1,81 +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_MTS_MODEL_QUERYMCJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMCJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMCJobListRequest : public RpcServiceRequest - { - - public: - QueryMCJobListRequest(); - ~QueryMCJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getStartOfJobCreatedTimeRange()const; - void setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getState()const; - void setState(const std::string& state); - std::string getEndOfJobCreatedTimeRange()const; - void setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getMaximumPageSize()const; - void setMaximumPageSize(long maximumPageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string nextPageToken_; - std::string startOfJobCreatedTimeRange_; - std::string accessKeyId_; - std::string state_; - std::string endOfJobCreatedTimeRange_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long maximumPageSize_; - long ownerId_; - std::string pipelineId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMCJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMCJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMCJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMCJobListRequest : public RpcServiceRequest { +public: + QueryMCJobListRequest(); + ~QueryMCJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getStartOfJobCreatedTimeRange() const; + void setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getState() const; + void setState(const std::string &state); + std::string getEndOfJobCreatedTimeRange() const; + void setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getMaximumPageSize() const; + void setMaximumPageSize(long maximumPageSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string nextPageToken_; + std::string startOfJobCreatedTimeRange_; + std::string accessKeyId_; + std::string state_; + std::string endOfJobCreatedTimeRange_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long maximumPageSize_; + long ownerId_; + std::string pipelineId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMCJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMCJobListResult.h b/mts/include/alibabacloud/mts/model/QueryMCJobListResult.h index b4b9e4d23..f966bdb6e 100644 --- a/mts/include/alibabacloud/mts/model/QueryMCJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMCJobListResult.h @@ -38,6 +38,12 @@ namespace AlibabaCloud { struct PornResult { + struct PornText + { + std::string suggestion; + std::string score; + std::string text; + }; struct PornVideo { std::string suggestion; @@ -54,12 +60,6 @@ namespace AlibabaCloud std::string text; std::string object; }; - struct PornText - { - std::string suggestion; - std::string score; - std::string text; - }; struct PornImage { std::string suggestion; @@ -72,8 +72,8 @@ namespace AlibabaCloud std::string suggestion; std::string score; std::string time; - std::string object; std::string text; + std::string object; }; std::vector pornImages; std::vector pornAudios; @@ -81,111 +81,13 @@ namespace AlibabaCloud std::vector pornTexts; std::vector pornOcrs; }; - struct TerrorismResult - { - struct TerrorismVideo - { - std::string suggestion; - std::string score; - std::string time; - std::string object; - }; - struct TerrorismAudio - { - std::string suggestion; - std::string score; - std::string endTime; - std::string startTime; - std::string text; - std::string object; - }; - struct TerrorismText - { - std::string suggestion; - std::string score; - std::string text; - }; - struct TerrorismImage - { - std::string suggestion; - std::string score; - std::string text; - std::string url; - }; - struct TerrorismOcr - { - std::string suggestion; - std::string score; - std::string time; - std::string object; - std::string text; - }; - std::vector terrorismAudios; - std::vector terrorismTexts; - std::vector terrorismImages; - std::vector terrorismOcrs; - std::vector terrorismVideos; - }; - struct PoliticsResult - { - struct PoliticsVideo - { - std::string suggestion; - std::string score; - std::string time; - std::string object; - }; - struct PoliticsAudio - { - std::string suggestion; - std::string score; - std::string endTime; - std::string startTime; - std::string text; - std::string object; - }; - struct PoliticsText - { - std::string suggestion; - std::string score; - std::string text; - }; - struct PoliticsImage - { - std::string suggestion; - std::string score; - std::string text; - std::string url; - }; - struct PoliticsOcr - { - std::string suggestion; - std::string score; - std::string time; - std::string object; - std::string text; - }; - std::vector politicsTexts; - std::vector politicsVideos; - std::vector politicsAudios; - std::vector politicsOcrs; - std::vector politicsImages; - }; struct AdResult { - struct AdVideo + struct AdOcr { std::string suggestion; std::string score; std::string time; - std::string object; - }; - struct AdAudio - { - std::string suggestion; - std::string score; - std::string endTime; - std::string startTime; std::string text; std::string object; }; @@ -202,67 +104,30 @@ namespace AlibabaCloud std::string text; std::string url; }; - struct AdOcr + struct AdAudio + { + std::string suggestion; + std::string score; + std::string endTime; + std::string startTime; + std::string text; + std::string object; + }; + struct AdVideo { std::string suggestion; std::string score; std::string time; std::string object; - std::string text; }; std::vector adImages; std::vector adAudios; - std::vector adVideos; std::vector adOcrs; + std::vector adVideos; std::vector adTexts; }; - struct QrcodeResult - { - struct QrcodeVideo - { - std::string suggestion; - std::string score; - std::string time; - std::string object; - }; - struct QrcodeImage - { - std::string suggestion; - std::string score; - std::string text; - std::string url; - }; - std::vector qrcodeVideos; - std::vector qrcodeImages; - }; - struct LiveResult - { - struct LiveVideo - { - std::string suggestion; - std::string score; - std::string time; - std::string object; - }; - struct LiveImage - { - std::string suggestion; - std::string score; - std::string text; - std::string url; - }; - std::vector liveVideos; - std::vector liveImages; - }; struct LogoResult { - struct LogoVideo - { - std::string suggestion; - std::string score; - std::string time; - std::string object; - }; struct LogoImage { std::string suggestion; @@ -270,11 +135,109 @@ namespace AlibabaCloud std::string text; std::string url; }; + struct LogoVideo + { + std::string suggestion; + std::string score; + std::string time; + std::string object; + }; std::vector logoImages; std::vector logoVideos; }; + struct QrcodeResult + { + struct QrcodeImage + { + std::string suggestion; + std::string score; + std::string text; + std::string url; + }; + struct QrcodeVideo + { + std::string suggestion; + std::string score; + std::string time; + std::string object; + }; + std::vector qrcodeVideos; + std::vector qrcodeImages; + }; + struct PoliticsResult + { + struct PoliticsOcr + { + std::string suggestion; + std::string score; + std::string time; + std::string text; + std::string object; + }; + struct PoliticsVideo + { + std::string suggestion; + std::string score; + std::string time; + std::string object; + }; + struct PoliticsImage + { + std::string suggestion; + std::string score; + std::string text; + std::string url; + }; + struct PoliticsText + { + std::string suggestion; + std::string score; + std::string text; + }; + struct PoliticsAudio + { + std::string suggestion; + std::string score; + std::string endTime; + std::string startTime; + std::string text; + std::string object; + }; + std::vector politicsTexts; + std::vector politicsVideos; + std::vector politicsOcrs; + std::vector politicsAudios; + std::vector politicsImages; + }; + struct LiveResult + { + struct LiveImage + { + std::string suggestion; + std::string score; + std::string text; + std::string url; + }; + struct LiveVideo + { + std::string suggestion; + std::string score; + std::string time; + std::string object; + }; + std::vector liveVideos; + std::vector liveImages; + }; struct AbuseResult { + struct AbuseOcr + { + std::string suggestion; + std::string score; + std::string time; + std::string text; + std::string object; + }; struct AbuseAudio { std::string suggestion; @@ -290,17 +253,38 @@ namespace AlibabaCloud std::string score; std::string text; }; - struct AbuseOcr + std::vector abuseOcrs; + std::vector abuseTexts; + std::vector abuseAudios; + }; + struct SpamResult + { + struct SpamText + { + std::string suggestion; + std::string score; + std::string text; + }; + struct SpamAudio + { + std::string suggestion; + std::string score; + std::string endTime; + std::string startTime; + std::string text; + std::string object; + }; + struct SpamOcr { std::string suggestion; std::string score; std::string time; - std::string object; std::string text; + std::string object; }; - std::vector abuseOcrs; - std::vector abuseTexts; - std::vector abuseAudios; + std::vector spamTexts; + std::vector spamAudios; + std::vector spamOcrs; }; struct ContrabandResult { @@ -313,27 +297,35 @@ namespace AlibabaCloud std::string text; std::string object; }; + struct ContrabandOcr + { + std::string suggestion; + std::string score; + std::string time; + std::string text; + std::string object; + }; struct ContrabandText { std::string suggestion; std::string score; std::string text; }; - struct ContrabandOcr + std::vector contrabandOcrs; + std::vector contrabandTexts; + std::vector contrabandAudios; + }; + struct TerrorismResult + { + struct TerrorismOcr { std::string suggestion; std::string score; std::string time; - std::string object; std::string text; + std::string object; }; - std::vector contrabandTexts; - std::vector contrabandOcrs; - std::vector contrabandAudios; - }; - struct SpamResult - { - struct SpamAudio + struct TerrorismAudio { std::string suggestion; std::string score; @@ -342,23 +334,31 @@ namespace AlibabaCloud std::string text; std::string object; }; - struct SpamText - { - std::string suggestion; - std::string score; - std::string text; - }; - struct SpamOcr + struct TerrorismVideo { std::string suggestion; std::string score; std::string time; std::string object; + }; + struct TerrorismText + { + std::string suggestion; + std::string score; std::string text; }; - std::vector spamAudios; - std::vector spamTexts; - std::vector spamOcrs; + struct TerrorismImage + { + std::string suggestion; + std::string score; + std::string text; + std::string url; + }; + std::vector terrorismAudios; + std::vector terrorismTexts; + std::vector terrorismImages; + std::vector terrorismOcrs; + std::vector terrorismVideos; }; LogoResult logoResult; std::string suggestion; @@ -366,15 +366,15 @@ namespace AlibabaCloud PoliticsResult politicsResult; QrcodeResult qrcodeResult; AbuseResult abuseResult; - TerrorismResult terrorismResult; LiveResult liveResult; + TerrorismResult terrorismResult; SpamResult spamResult; PornResult pornResult; AdResult adResult; ContrabandResult contrabandResult; }; - std::string message; std::string resultOutputFile; + std::string message; std::string userData; std::string state; std::string creationTime; diff --git a/mts/include/alibabacloud/mts/model/QueryMCTemplateListRequest.h b/mts/include/alibabacloud/mts/model/QueryMCTemplateListRequest.h index 099108658..5f0432277 100644 --- a/mts/include/alibabacloud/mts/model/QueryMCTemplateListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMCTemplateListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYMCTEMPLATELISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMCTEMPLATELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMCTemplateListRequest : public RpcServiceRequest - { - - public: - QueryMCTemplateListRequest(); - ~QueryMCTemplateListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getTemplateIds()const; - void setTemplateIds(const std::string& templateIds); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string templateIds_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMCTEMPLATELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMCTEMPLATELISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMCTEMPLATELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMCTemplateListRequest : public RpcServiceRequest { +public: + QueryMCTemplateListRequest(); + ~QueryMCTemplateListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTemplateIds() const; + void setTemplateIds(const std::string &templateIds); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string templateIds_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMCTEMPLATELISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMCTemplateListResult.h b/mts/include/alibabacloud/mts/model/QueryMCTemplateListResult.h index b603b5115..d32f99134 100644 --- a/mts/include/alibabacloud/mts/model/QueryMCTemplateListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMCTemplateListResult.h @@ -34,14 +34,14 @@ namespace AlibabaCloud public: struct _Template { - std::string ad; std::string qrcode; - std::string terrorism; + std::string ad; std::string abuse; + std::string terrorism; std::string live; std::string spam; - std::string name; std::string logo; + std::string name; std::string contraband; std::string state; std::string politics; diff --git a/mts/include/alibabacloud/mts/model/QueryMcuJobRequest.h b/mts/include/alibabacloud/mts/model/QueryMcuJobRequest.h index 78838eef8..e91af465a 100644 --- a/mts/include/alibabacloud/mts/model/QueryMcuJobRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMcuJobRequest.h @@ -1,63 +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_MTS_MODEL_QUERYMCUJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMCUJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMcuJobRequest : public RpcServiceRequest - { - - public: - QueryMcuJobRequest(); - ~QueryMcuJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMCUJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMCUJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMCUJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMcuJobRequest : public RpcServiceRequest { +public: + QueryMcuJobRequest(); + ~QueryMcuJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMCUJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMcuJobResult.h b/mts/include/alibabacloud/mts/model/QueryMcuJobResult.h index 057bc7df6..296429b52 100644 --- a/mts/include/alibabacloud/mts/model/QueryMcuJobResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMcuJobResult.h @@ -34,6 +34,16 @@ namespace AlibabaCloud public: struct Job { + struct CategoryResult + { + struct Category + { + std::string score; + std::string label; + }; + std::string details; + std::vector categories; + }; struct Input { std::string bucket; @@ -53,23 +63,6 @@ namespace AlibabaCloud std::vector asrTextList; std::string duration; }; - struct CategoryResult - { - struct Category - { - std::string score; - std::string label; - }; - std::string details; - std::vector categories; - }; - struct Ocr - { - std::string ocrText; - std::string imageId; - std::string imageUrl; - std::string time; - }; struct Tag { struct FrameTagInfo @@ -83,6 +76,19 @@ namespace AlibabaCloud std::string time; std::vector frameTagInfos; }; + struct Ocr + { + std::string ocrText; + std::string imageId; + std::string imageUrl; + std::string time; + }; + struct SubTask + { + std::string type; + std::string message; + std::string code; + }; struct Face { struct Celebrity @@ -96,12 +102,6 @@ namespace AlibabaCloud std::string imageUrl; std::string time; }; - struct SubTask - { - std::string type; - std::string message; - std::string code; - }; std::vector ocrResult; Input input; std::string _template; diff --git a/mts/include/alibabacloud/mts/model/QueryMcuTemplateRequest.h b/mts/include/alibabacloud/mts/model/QueryMcuTemplateRequest.h index f1d6b9c65..3df2dfeb8 100644 --- a/mts/include/alibabacloud/mts/model/QueryMcuTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMcuTemplateRequest.h @@ -1,63 +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_MTS_MODEL_QUERYMCUTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMCUTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMcuTemplateRequest : public RpcServiceRequest - { - - public: - QueryMcuTemplateRequest(); - ~QueryMcuTemplateRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string templateId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMCUTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMCUTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMCUTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMcuTemplateRequest : public RpcServiceRequest { +public: + QueryMcuTemplateRequest(); + ~QueryMcuTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string templateId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMCUTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailRequest.h b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailRequest.h index bbc524676..3d804de15 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailRequest.h @@ -1,69 +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_MTS_MODEL_QUERYMEDIACENSORJOBDETAILREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBDETAILREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMediaCensorJobDetailRequest : public RpcServiceRequest - { - - public: - QueryMediaCensorJobDetailRequest(); - ~QueryMediaCensorJobDetailRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getMaximumPageSize()const; - void setMaximumPageSize(long maximumPageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string nextPageToken_; - std::string accessKeyId_; - std::string jobId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long maximumPageSize_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBDETAILREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBDETAILREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBDETAILREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMediaCensorJobDetailRequest : public RpcServiceRequest { +public: + QueryMediaCensorJobDetailRequest(); + ~QueryMediaCensorJobDetailRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getMaximumPageSize() const; + void setMaximumPageSize(long maximumPageSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string nextPageToken_; + std::string accessKeyId_; + std::string jobId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long maximumPageSize_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBDETAILREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailResult.h b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailResult.h index 65b5d00cf..97007e2e4 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobDetailResult.h @@ -41,12 +41,11 @@ namespace AlibabaCloud std::string label; std::string scene; }; - struct DescCensorResult + struct Input { - std::string suggestion; - std::string rate; - std::string label; - std::string scene; + std::string bucket; + std::string object; + std::string location; }; struct BarrageCensorResult { @@ -55,11 +54,12 @@ namespace AlibabaCloud std::string label; std::string scene; }; - struct Input + struct DescCensorResult { - std::string bucket; - std::string object; - std::string location; + std::string suggestion; + std::string rate; + std::string label; + std::string scene; }; struct VideoCensorConfig { @@ -75,27 +75,27 @@ namespace AlibabaCloud }; struct VensorCensorResult { - struct CensorResult - { - std::string suggestion; - std::string rate; - std::string label; - std::string scene; - }; struct VideoTimeline { - struct CensorResult2 + struct CensorResult { std::string suggestion; std::string rate; std::string label; std::string scene; }; - std::vector censorResults1; + std::vector censorResults1; std::string object; std::string timestamp; }; - std::vector censorResults; + struct CensorResult2 + { + std::string suggestion; + std::string rate; + std::string label; + std::string scene; + }; + std::vector censorResults; std::string nextPageToken; std::vector videoTimelines; }; diff --git a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListRequest.h index a51b7dff2..a13d09006 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListRequest.h @@ -1,81 +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_MTS_MODEL_QUERYMEDIACENSORJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMediaCensorJobListRequest : public RpcServiceRequest - { - - public: - QueryMediaCensorJobListRequest(); - ~QueryMediaCensorJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getStartOfJobCreatedTimeRange()const; - void setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getState()const; - void setState(const std::string& state); - std::string getEndOfJobCreatedTimeRange()const; - void setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getMaximumPageSize()const; - void setMaximumPageSize(long maximumPageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - - private: - long resourceOwnerId_; - std::string nextPageToken_; - std::string startOfJobCreatedTimeRange_; - std::string accessKeyId_; - std::string jobId_; - std::string state_; - std::string endOfJobCreatedTimeRange_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long maximumPageSize_; - long ownerId_; - std::string pipelineId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMediaCensorJobListRequest : public RpcServiceRequest { +public: + QueryMediaCensorJobListRequest(); + ~QueryMediaCensorJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getStartOfJobCreatedTimeRange() const; + void setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getState() const; + void setState(const std::string &state); + std::string getEndOfJobCreatedTimeRange() const; + void setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getMaximumPageSize() const; + void setMaximumPageSize(long maximumPageSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + +private: + long resourceOwnerId_; + std::string nextPageToken_; + std::string startOfJobCreatedTimeRange_; + std::string accessKeyId_; + std::string jobId_; + std::string state_; + std::string endOfJobCreatedTimeRange_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long maximumPageSize_; + long ownerId_; + std::string pipelineId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIACENSORJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListResult.h b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListResult.h index 09286f301..ccea1ab23 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaCensorJobListResult.h @@ -41,12 +41,11 @@ namespace AlibabaCloud std::string label; std::string scene; }; - struct DescCensorResult + struct Input { - std::string suggestion; - std::string rate; - std::string label; - std::string scene; + std::string bucket; + std::string object; + std::string location; }; struct BarrageCensorResult { @@ -55,11 +54,12 @@ namespace AlibabaCloud std::string label; std::string scene; }; - struct Input + struct DescCensorResult { - std::string bucket; - std::string object; - std::string location; + std::string suggestion; + std::string rate; + std::string label; + std::string scene; }; struct VideoCensorConfig { @@ -75,27 +75,27 @@ namespace AlibabaCloud }; struct VensorCensorResult { - struct CensorResult - { - std::string suggestion; - std::string rate; - std::string label; - std::string scene; - }; struct VideoTimeline { - struct CensorResult2 + struct CensorResult { std::string suggestion; std::string rate; std::string label; std::string scene; }; - std::vector censorResults1; + std::vector censorResults1; std::string object; std::string timestamp; }; - std::vector censorResults; + struct CensorResult2 + { + std::string suggestion; + std::string rate; + std::string label; + std::string scene; + }; + std::vector censorResults; std::string nextPageToken; std::vector videoTimelines; }; diff --git a/mts/include/alibabacloud/mts/model/QueryMediaDetailJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryMediaDetailJobListRequest.h index 04d9cb3fd..d1c1346db 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaDetailJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaDetailJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYMEDIADETAILJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIADETAILJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMediaDetailJobListRequest : public RpcServiceRequest - { - - public: - QueryMediaDetailJobListRequest(); - ~QueryMediaDetailJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIADETAILJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMEDIADETAILJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIADETAILJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMediaDetailJobListRequest : public RpcServiceRequest { +public: + QueryMediaDetailJobListRequest(); + ~QueryMediaDetailJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIADETAILJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMediaDetailJobListResult.h b/mts/include/alibabacloud/mts/model/QueryMediaDetailJobListResult.h index 6c2d47265..2b7a21b4b 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaDetailJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaDetailJobListResult.h @@ -34,34 +34,10 @@ namespace AlibabaCloud public: struct Job { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; - struct MediaDetailConfig - { - struct OutputFile - { - std::string bucket; - std::string object; - std::string location; - }; - OutputFile outputFile; - std::string detailType; - std::string scenario; - }; struct MediaDetailResult { struct MediaDetailRecgResult { - struct Celebrity - { - std::string score; - std::string target; - std::string name; - }; struct Sensitive { std::string score; @@ -74,19 +50,13 @@ namespace AlibabaCloud std::string target; std::string name; }; - struct FrameTagInfo - { - std::string score; - std::string category; - std::string tag; - }; struct Custom { struct Clip { std::string maxScore; - std::string startTarget; std::string endTime; + std::string startTarget; std::string startTime; std::string endTarget; std::string minScore; @@ -95,6 +65,18 @@ namespace AlibabaCloud std::vector clips; std::string name; }; + struct FrameTagInfo + { + std::string score; + std::string category; + std::string tag; + }; + struct Celebrity + { + std::string score; + std::string target; + std::string name; + }; std::vector politicians; std::vector customs; std::string ocrText; @@ -109,6 +91,24 @@ namespace AlibabaCloud std::vector mediaDetailRecgResults; std::vector tags; }; + struct MediaDetailConfig + { + struct OutputFile + { + std::string bucket; + std::string object; + std::string location; + }; + OutputFile outputFile; + std::string detailType; + std::string scenario; + }; + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; MediaDetailConfig mediaDetailConfig; Input input; std::string message; diff --git a/mts/include/alibabacloud/mts/model/QueryMediaFpDeleteJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryMediaFpDeleteJobListRequest.h index 30f311175..05788048f 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaFpDeleteJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaFpDeleteJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYMEDIAFPDELETEJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIAFPDELETEJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMediaFpDeleteJobListRequest : public RpcServiceRequest - { - - public: - QueryMediaFpDeleteJobListRequest(); - ~QueryMediaFpDeleteJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIAFPDELETEJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMEDIAFPDELETEJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIAFPDELETEJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMediaFpDeleteJobListRequest : public RpcServiceRequest { +public: + QueryMediaFpDeleteJobListRequest(); + ~QueryMediaFpDeleteJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIAFPDELETEJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMediaFpDeleteJobListResult.h b/mts/include/alibabacloud/mts/model/QueryMediaFpDeleteJobListResult.h index 7ad1cd4ab..450727abc 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaFpDeleteJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaFpDeleteJobListResult.h @@ -34,13 +34,13 @@ namespace AlibabaCloud public: struct MediaFpDeleteJob { - std::string message; std::string finishTime; + std::string message; std::string userData; std::string state; std::string creationTime; - std::string pipelineId; std::string primaryKey; + std::string pipelineId; std::string id; std::string code; std::string fpDBId; diff --git a/mts/include/alibabacloud/mts/model/QueryMediaInfoJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryMediaInfoJobListRequest.h index e48c818b8..2e98612e3 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaInfoJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaInfoJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYMEDIAINFOJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIAINFOJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMediaInfoJobListRequest : public RpcServiceRequest - { - - public: - QueryMediaInfoJobListRequest(); - ~QueryMediaInfoJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMediaInfoJobIds()const; - void setMediaInfoJobIds(const std::string& mediaInfoJobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string mediaInfoJobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIAINFOJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMEDIAINFOJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIAINFOJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMediaInfoJobListRequest : public RpcServiceRequest { +public: + QueryMediaInfoJobListRequest(); + ~QueryMediaInfoJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMediaInfoJobIds() const; + void setMediaInfoJobIds(const std::string &mediaInfoJobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string mediaInfoJobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIAINFOJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMediaInfoJobListResult.h b/mts/include/alibabacloud/mts/model/QueryMediaInfoJobListResult.h index 909abda3c..b9b852232 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaInfoJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaInfoJobListResult.h @@ -40,6 +40,12 @@ namespace AlibabaCloud std::string object; std::string location; }; + struct MNSMessageResult + { + std::string errorCode; + std::string errorMessage; + std::string messageId; + }; struct Properties { struct Streams @@ -52,30 +58,33 @@ namespace AlibabaCloud std::string preloadTime; std::string costBandwidth; }; - std::string codecTag; std::string codecTimeBase; std::string rotate; std::string sar; std::string fps; - std::string startTime; std::string index; - std::string duration; - std::string lang; + std::string colorRange; std::string pixFmt; NetworkCost networkCost; std::string codecName; - std::string bitrate; - std::string profile; std::string avgFPS; + std::string profile; + std::string colorPrimaries; + std::string height; + std::string width; + std::string numFrames; + std::string colorTransfer; + std::string codecTag; + std::string startTime; + std::string lang; + std::string duration; + std::string bitrate; std::string timebase; std::string codecTagString; std::string hasBFrames; std::string dar; std::string codecLongName; - std::string height; std::string level; - std::string width; - std::string numFrames; }; struct AudioStream { @@ -84,12 +93,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -98,15 +107,15 @@ namespace AlibabaCloud }; struct SubtitleStream { - std::string codecTag; std::string timebase; + std::string codecTag; std::string codecTagString; std::string codecTimeBase; std::string codecLongName; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string codecName; }; std::vector videoStreamList; @@ -134,17 +143,11 @@ namespace AlibabaCloud Streams streams; std::string fileSize; }; - struct MNSMessageResult - { - std::string errorCode; - std::string errorMessage; - std::string messageId; - }; Input input; std::string message; std::string userData; - bool async; std::string state; + bool async; MNSMessageResult mNSMessageResult; std::string creationTime; std::string pipelineId; diff --git a/mts/include/alibabacloud/mts/model/QueryMediaListByURLRequest.h b/mts/include/alibabacloud/mts/model/QueryMediaListByURLRequest.h index 96d30deea..32221b5df 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaListByURLRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaListByURLRequest.h @@ -1,75 +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_MTS_MODEL_QUERYMEDIALISTBYURLREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIALISTBYURLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMediaListByURLRequest : public RpcServiceRequest - { - - public: - QueryMediaListByURLRequest(); - ~QueryMediaListByURLRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getIncludeSummaryList()const; - void setIncludeSummaryList(bool includeSummaryList); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getFileURLs()const; - void setFileURLs(const std::string& fileURLs); - bool getIncludePlayList()const; - void setIncludePlayList(bool includePlayList); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - bool getIncludeSnapshotList()const; - void setIncludeSnapshotList(bool includeSnapshotList); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getIncludeMediaInfo()const; - void setIncludeMediaInfo(bool includeMediaInfo); - - private: - long resourceOwnerId_; - bool includeSummaryList_; - std::string accessKeyId_; - std::string fileURLs_; - bool includePlayList_; - std::string resourceOwnerAccount_; - bool includeSnapshotList_; - std::string ownerAccount_; - long ownerId_; - bool includeMediaInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIALISTBYURLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMEDIALISTBYURLREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIALISTBYURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMediaListByURLRequest : public RpcServiceRequest { +public: + QueryMediaListByURLRequest(); + ~QueryMediaListByURLRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getIncludeSummaryList() const; + void setIncludeSummaryList(bool includeSummaryList); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getFileURLs() const; + void setFileURLs(const std::string &fileURLs); + bool getIncludePlayList() const; + void setIncludePlayList(bool includePlayList); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + bool getIncludeSnapshotList() const; + void setIncludeSnapshotList(bool includeSnapshotList); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getIncludeMediaInfo() const; + void setIncludeMediaInfo(bool includeMediaInfo); + +private: + long resourceOwnerId_; + bool includeSummaryList_; + std::string accessKeyId_; + std::string fileURLs_; + bool includePlayList_; + std::string resourceOwnerAccount_; + bool includeSnapshotList_; + std::string ownerAccount_; + long ownerId_; + bool includeMediaInfo_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIALISTBYURLREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMediaListByURLResult.h b/mts/include/alibabacloud/mts/model/QueryMediaListByURLResult.h index db7974f8c..a86c30712 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaListByURLResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaListByURLResult.h @@ -55,17 +55,17 @@ namespace AlibabaCloud std::string codecTimeBase; std::string rotate; std::string sar; - std::string fps; std::string startTime; + std::string fps; std::string index; - std::string duration; std::string lang; + std::string duration; std::string pixFmt; NetworkCost networkCost; - std::string codecName; std::string bitrate; - std::string profile; + std::string codecName; std::string avgFPS; + std::string profile; std::string timebase; std::string codecTagString; std::string hasBFrames; @@ -83,12 +83,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -130,15 +130,15 @@ namespace AlibabaCloud std::string size; std::string mediaWorkflowId; std::string fps; - std::string duration; std::string height; + std::string duration; std::string encryption; - std::string mediaWorkflowName; std::string bitrate; std::string width; + std::string mediaWorkflowName; File1 file1; }; - struct Snapshot + struct Summary { struct File2 { @@ -148,11 +148,10 @@ namespace AlibabaCloud std::string type; std::string activityName; std::string mediaWorkflowId; - std::string count; File2 file2; std::string mediaWorkflowName; }; - struct Summary + struct Snapshot { struct File3 { @@ -162,6 +161,7 @@ namespace AlibabaCloud std::string type; std::string activityName; std::string mediaWorkflowId; + std::string count; File3 file3; std::string mediaWorkflowName; }; @@ -181,8 +181,8 @@ namespace AlibabaCloud std::string format; std::string mediaId; std::string creationTime; - std::string coverURL; std::string height; + std::string coverURL; File file; std::string width; std::vector runIdList; diff --git a/mts/include/alibabacloud/mts/model/QueryMediaListRequest.h b/mts/include/alibabacloud/mts/model/QueryMediaListRequest.h index 623a5649e..fe4c94c20 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaListRequest.h @@ -1,75 +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_MTS_MODEL_QUERYMEDIALISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIALISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMediaListRequest : public RpcServiceRequest - { - - public: - QueryMediaListRequest(); - ~QueryMediaListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - bool getIncludeSummaryList()const; - void setIncludeSummaryList(bool includeSummaryList); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMediaIds()const; - void setMediaIds(const std::string& mediaIds); - bool getIncludePlayList()const; - void setIncludePlayList(bool includePlayList); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - bool getIncludeSnapshotList()const; - void setIncludeSnapshotList(bool includeSnapshotList); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - bool getIncludeMediaInfo()const; - void setIncludeMediaInfo(bool includeMediaInfo); - - private: - long resourceOwnerId_; - bool includeSummaryList_; - std::string accessKeyId_; - std::string mediaIds_; - bool includePlayList_; - std::string resourceOwnerAccount_; - bool includeSnapshotList_; - std::string ownerAccount_; - long ownerId_; - bool includeMediaInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIALISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMEDIALISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIALISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMediaListRequest : public RpcServiceRequest { +public: + QueryMediaListRequest(); + ~QueryMediaListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + bool getIncludeSummaryList() const; + void setIncludeSummaryList(bool includeSummaryList); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMediaIds() const; + void setMediaIds(const std::string &mediaIds); + bool getIncludePlayList() const; + void setIncludePlayList(bool includePlayList); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + bool getIncludeSnapshotList() const; + void setIncludeSnapshotList(bool includeSnapshotList); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + bool getIncludeMediaInfo() const; + void setIncludeMediaInfo(bool includeMediaInfo); + +private: + long resourceOwnerId_; + bool includeSummaryList_; + std::string accessKeyId_; + std::string mediaIds_; + bool includePlayList_; + std::string resourceOwnerAccount_; + bool includeSnapshotList_; + std::string ownerAccount_; + long ownerId_; + bool includeMediaInfo_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIALISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMediaListResult.h b/mts/include/alibabacloud/mts/model/QueryMediaListResult.h index f3d490ec1..03e3c6681 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaListResult.h @@ -55,17 +55,17 @@ namespace AlibabaCloud std::string codecTimeBase; std::string rotate; std::string sar; - std::string fps; std::string startTime; + std::string fps; std::string index; - std::string duration; std::string lang; + std::string duration; std::string pixFmt; NetworkCost networkCost; - std::string codecName; std::string bitrate; - std::string profile; + std::string codecName; std::string avgFPS; + std::string profile; std::string timebase; std::string codecTagString; std::string hasBFrames; @@ -83,12 +83,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -130,15 +130,15 @@ namespace AlibabaCloud std::string size; std::string mediaWorkflowId; std::string fps; - std::string duration; std::string height; + std::string duration; std::string encryption; - std::string mediaWorkflowName; std::string bitrate; std::string width; + std::string mediaWorkflowName; File1 file1; }; - struct Snapshot + struct Summary { struct File2 { @@ -148,11 +148,10 @@ namespace AlibabaCloud std::string type; std::string activityName; std::string mediaWorkflowId; - std::string count; File2 file2; std::string mediaWorkflowName; }; - struct Summary + struct Snapshot { struct File3 { @@ -162,6 +161,7 @@ namespace AlibabaCloud std::string type; std::string activityName; std::string mediaWorkflowId; + std::string count; File3 file3; std::string mediaWorkflowName; }; @@ -181,8 +181,8 @@ namespace AlibabaCloud std::string format; std::string mediaId; std::string creationTime; - std::string coverURL; std::string height; + std::string coverURL; File file; std::string width; std::vector runIdList; diff --git a/mts/include/alibabacloud/mts/model/QueryMediaWorkflowExecutionListRequest.h b/mts/include/alibabacloud/mts/model/QueryMediaWorkflowExecutionListRequest.h index 2c6c39016..4af7dca63 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaWorkflowExecutionListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaWorkflowExecutionListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYMEDIAWORKFLOWEXECUTIONLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIAWORKFLOWEXECUTIONLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMediaWorkflowExecutionListRequest : public RpcServiceRequest - { - - public: - QueryMediaWorkflowExecutionListRequest(); - ~QueryMediaWorkflowExecutionListRequest(); - - std::string getRunIds()const; - void setRunIds(const std::string& runIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string runIds_; - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIAWORKFLOWEXECUTIONLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMEDIAWORKFLOWEXECUTIONLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIAWORKFLOWEXECUTIONLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMediaWorkflowExecutionListRequest : public RpcServiceRequest { +public: + QueryMediaWorkflowExecutionListRequest(); + ~QueryMediaWorkflowExecutionListRequest(); + std::string getRunIds() const; + void setRunIds(const std::string &runIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string runIds_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIAWORKFLOWEXECUTIONLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMediaWorkflowExecutionListResult.h b/mts/include/alibabacloud/mts/model/QueryMediaWorkflowExecutionListResult.h index 3e54302e2..16068e9b7 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaWorkflowExecutionListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaWorkflowExecutionListResult.h @@ -54,8 +54,8 @@ namespace AlibabaCloud std::string messageId; }; std::string type; - std::string message; std::string endTime; + std::string message; std::string state; MNSMessageResult mNSMessageResult; std::string startTime; diff --git a/mts/include/alibabacloud/mts/model/QueryMediaWorkflowListRequest.h b/mts/include/alibabacloud/mts/model/QueryMediaWorkflowListRequest.h index 119ebafaf..561ff834e 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaWorkflowListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaWorkflowListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYMEDIAWORKFLOWLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIAWORKFLOWLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryMediaWorkflowListRequest : public RpcServiceRequest - { - - public: - QueryMediaWorkflowListRequest(); - ~QueryMediaWorkflowListRequest(); - - std::string getMediaWorkflowIds()const; - void setMediaWorkflowIds(const std::string& mediaWorkflowIds); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string mediaWorkflowIds_; - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIAWORKFLOWLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYMEDIAWORKFLOWLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYMEDIAWORKFLOWLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryMediaWorkflowListRequest : public RpcServiceRequest { +public: + QueryMediaWorkflowListRequest(); + ~QueryMediaWorkflowListRequest(); + std::string getMediaWorkflowIds() const; + void setMediaWorkflowIds(const std::string &mediaWorkflowIds); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string mediaWorkflowIds_; + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYMEDIAWORKFLOWLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryMediaWorkflowListResult.h b/mts/include/alibabacloud/mts/model/QueryMediaWorkflowListResult.h index 05d737258..e5f991370 100644 --- a/mts/include/alibabacloud/mts/model/QueryMediaWorkflowListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryMediaWorkflowListResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string state; std::string mediaWorkflowId; std::string creationTime; - std::string topology; std::string triggerMode; + std::string topology; std::string name; }; diff --git a/mts/include/alibabacloud/mts/model/QueryPipelineListRequest.h b/mts/include/alibabacloud/mts/model/QueryPipelineListRequest.h index bc425469d..a017a320e 100644 --- a/mts/include/alibabacloud/mts/model/QueryPipelineListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryPipelineListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYPIPELINELISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYPIPELINELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryPipelineListRequest : public RpcServiceRequest - { - - public: - QueryPipelineListRequest(); - ~QueryPipelineListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getPipelineIds()const; - void setPipelineIds(const std::string& pipelineIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string pipelineIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYPIPELINELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYPIPELINELISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYPIPELINELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryPipelineListRequest : public RpcServiceRequest { +public: + QueryPipelineListRequest(); + ~QueryPipelineListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPipelineIds() const; + void setPipelineIds(const std::string &pipelineIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string pipelineIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYPIPELINELISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryPipelineListResult.h b/mts/include/alibabacloud/mts/model/QueryPipelineListResult.h index b61f106d9..b3efb6cde 100644 --- a/mts/include/alibabacloud/mts/model/QueryPipelineListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryPipelineListResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud struct NotifyConfig { std::string mqTag; - std::string topic; std::string mqTopic; + std::string topic; std::string queueName; }; std::string role; diff --git a/mts/include/alibabacloud/mts/model/QueryPornJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryPornJobListRequest.h index a4faf8dc0..dea7220b5 100644 --- a/mts/include/alibabacloud/mts/model/QueryPornJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryPornJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYPORNJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYPORNJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryPornJobListRequest : public RpcServiceRequest - { - - public: - QueryPornJobListRequest(); - ~QueryPornJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYPORNJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYPORNJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYPORNJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryPornJobListRequest : public RpcServiceRequest { +public: + QueryPornJobListRequest(); + ~QueryPornJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYPORNJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryPornJobListResult.h b/mts/include/alibabacloud/mts/model/QueryPornJobListResult.h index 76e664870..88f8e75a2 100644 --- a/mts/include/alibabacloud/mts/model/QueryPornJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryPornJobListResult.h @@ -34,12 +34,6 @@ namespace AlibabaCloud public: struct PornJob { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; struct PornConfig { struct OutputFile @@ -74,6 +68,12 @@ namespace AlibabaCloud std::vector pornTopList; std::string label; }; + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; Input input; std::string message; std::string userData; diff --git a/mts/include/alibabacloud/mts/model/QueryPornPipelineListRequest.h b/mts/include/alibabacloud/mts/model/QueryPornPipelineListRequest.h index 929357041..a0933e96f 100644 --- a/mts/include/alibabacloud/mts/model/QueryPornPipelineListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryPornPipelineListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYPORNPIPELINELISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYPORNPIPELINELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryPornPipelineListRequest : public RpcServiceRequest - { - - public: - QueryPornPipelineListRequest(); - ~QueryPornPipelineListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getPipelineIds()const; - void setPipelineIds(const std::string& pipelineIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string pipelineIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYPORNPIPELINELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYPORNPIPELINELISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYPORNPIPELINELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryPornPipelineListRequest : public RpcServiceRequest { +public: + QueryPornPipelineListRequest(); + ~QueryPornPipelineListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPipelineIds() const; + void setPipelineIds(const std::string &pipelineIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string pipelineIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYPORNPIPELINELISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QuerySmarttagJobRequest.h b/mts/include/alibabacloud/mts/model/QuerySmarttagJobRequest.h index 587d00a6c..e5b6ab895 100644 --- a/mts/include/alibabacloud/mts/model/QuerySmarttagJobRequest.h +++ b/mts/include/alibabacloud/mts/model/QuerySmarttagJobRequest.h @@ -1,63 +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_MTS_MODEL_QUERYSMARTTAGJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYSMARTTAGJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QuerySmarttagJobRequest : public RpcServiceRequest - { - - public: - QuerySmarttagJobRequest(); - ~QuerySmarttagJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYSMARTTAGJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYSMARTTAGJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYSMARTTAGJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QuerySmarttagJobRequest : public RpcServiceRequest { +public: + QuerySmarttagJobRequest(); + ~QuerySmarttagJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYSMARTTAGJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QuerySmarttagTemplateListRequest.h b/mts/include/alibabacloud/mts/model/QuerySmarttagTemplateListRequest.h new file mode 100644 index 000000000..921651ece --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QuerySmarttagTemplateListRequest.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_MTS_MODEL_QUERYSMARTTAGTEMPLATELISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYSMARTTAGTEMPLATELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QuerySmarttagTemplateListRequest : public RpcServiceRequest { +public: + QuerySmarttagTemplateListRequest(); + ~QuerySmarttagTemplateListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string templateId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYSMARTTAGTEMPLATELISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QuerySmarttagTemplateListResult.h b/mts/include/alibabacloud/mts/model/QuerySmarttagTemplateListResult.h new file mode 100644 index 000000000..b91db622f --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QuerySmarttagTemplateListResult.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_MTS_MODEL_QUERYSMARTTAGTEMPLATELISTRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYSMARTTAGTEMPLATELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QuerySmarttagTemplateListResult : public ServiceResult + { + public: + struct _Template + { + std::string industry; + bool isDefault; + std::string faceCategoryIds; + std::string analyseTypes; + std::string templateName; + std::string scene; + std::string templateId; + }; + + + QuerySmarttagTemplateListResult(); + explicit QuerySmarttagTemplateListResult(const std::string &payload); + ~QuerySmarttagTemplateListResult(); + std::vector<_Template> getTemplates()const; + + protected: + void parse(const std::string &payload); + private: + std::vector<_Template> templates_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYSMARTTAGTEMPLATELISTRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QuerySnapshotJobListRequest.h b/mts/include/alibabacloud/mts/model/QuerySnapshotJobListRequest.h index 2d0a8c092..f590b3c1c 100644 --- a/mts/include/alibabacloud/mts/model/QuerySnapshotJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QuerySnapshotJobListRequest.h @@ -1,81 +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_MTS_MODEL_QUERYSNAPSHOTJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYSNAPSHOTJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QuerySnapshotJobListRequest : public RpcServiceRequest - { - - public: - QuerySnapshotJobListRequest(); - ~QuerySnapshotJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getNextPageToken()const; - void setNextPageToken(const std::string& nextPageToken); - std::string getStartOfJobCreatedTimeRange()const; - void setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getState()const; - void setState(const std::string& state); - std::string getEndOfJobCreatedTimeRange()const; - void setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getSnapshotJobIds()const; - void setSnapshotJobIds(const std::string& snapshotJobIds); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getMaximumPageSize()const; - void setMaximumPageSize(long maximumPageSize); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - - private: - long resourceOwnerId_; - std::string nextPageToken_; - std::string startOfJobCreatedTimeRange_; - std::string accessKeyId_; - std::string state_; - std::string endOfJobCreatedTimeRange_; - std::string resourceOwnerAccount_; - std::string snapshotJobIds_; - std::string ownerAccount_; - long maximumPageSize_; - long ownerId_; - std::string pipelineId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYSNAPSHOTJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYSNAPSHOTJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYSNAPSHOTJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QuerySnapshotJobListRequest : public RpcServiceRequest { +public: + QuerySnapshotJobListRequest(); + ~QuerySnapshotJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getNextPageToken() const; + void setNextPageToken(const std::string &nextPageToken); + std::string getStartOfJobCreatedTimeRange() const; + void setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getState() const; + void setState(const std::string &state); + std::string getEndOfJobCreatedTimeRange() const; + void setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getSnapshotJobIds() const; + void setSnapshotJobIds(const std::string &snapshotJobIds); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getMaximumPageSize() const; + void setMaximumPageSize(long maximumPageSize); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + +private: + long resourceOwnerId_; + std::string nextPageToken_; + std::string startOfJobCreatedTimeRange_; + std::string accessKeyId_; + std::string state_; + std::string endOfJobCreatedTimeRange_; + std::string resourceOwnerAccount_; + std::string snapshotJobIds_; + std::string ownerAccount_; + long maximumPageSize_; + long ownerId_; + std::string pipelineId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYSNAPSHOTJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QuerySnapshotJobListResult.h b/mts/include/alibabacloud/mts/model/QuerySnapshotJobListResult.h index 8cc282a0e..c0ba9047c 100644 --- a/mts/include/alibabacloud/mts/model/QuerySnapshotJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QuerySnapshotJobListResult.h @@ -34,15 +34,20 @@ namespace AlibabaCloud public: struct SnapshotJob { - struct Input - { - std::string bucket; - std::string object; - std::string roleArn; - std::string location; - }; struct SnapshotConfig { + struct TileOut + { + std::string cellWidth; + std::string color; + std::string padding; + std::string columns; + std::string cellHeight; + std::string cellSelStep; + std::string margin; + std::string isKeepCellPic; + std::string lines; + }; struct OutputFile { std::string bucket; @@ -57,22 +62,10 @@ namespace AlibabaCloud std::string roleArn; std::string location; }; - struct TileOut - { - std::string cellWidth; - std::string color; - std::string columns; - std::string padding; - std::string cellHeight; - std::string cellSelStep; - std::string lines; - std::string margin; - std::string isKeepCellPic; - }; OutputFile outputFile; TileOutputFile tileOutputFile; - std::string num; std::string frameType; + std::string num; TileOut tileOut; std::string time; std::string height; @@ -85,6 +78,13 @@ namespace AlibabaCloud std::string errorMessage; std::string messageId; }; + struct Input + { + std::string bucket; + std::string object; + std::string roleArn; + std::string location; + }; SnapshotConfig snapshotConfig; Input input; std::string message; @@ -93,8 +93,8 @@ namespace AlibabaCloud MNSMessageResult mNSMessageResult; std::string creationTime; std::string pipelineId; - std::string id; std::string count; + std::string id; std::string code; std::string tileCount; }; diff --git a/mts/include/alibabacloud/mts/model/QuerySubtitleJobListRequest.h b/mts/include/alibabacloud/mts/model/QuerySubtitleJobListRequest.h index f1621a6d8..079a2fb4a 100644 --- a/mts/include/alibabacloud/mts/model/QuerySubtitleJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QuerySubtitleJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYSUBTITLEJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYSUBTITLEJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QuerySubtitleJobListRequest : public RpcServiceRequest - { - - public: - QuerySubtitleJobListRequest(); - ~QuerySubtitleJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYSUBTITLEJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYSUBTITLEJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYSUBTITLEJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QuerySubtitleJobListRequest : public RpcServiceRequest { +public: + QuerySubtitleJobListRequest(); + ~QuerySubtitleJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYSUBTITLEJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryTagJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryTagJobListRequest.h index 3a0f1faec..ddffa5597 100644 --- a/mts/include/alibabacloud/mts/model/QueryTagJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryTagJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYTAGJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYTAGJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryTagJobListRequest : public RpcServiceRequest - { - - public: - QueryTagJobListRequest(); - ~QueryTagJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getTagJobIds()const; - void setTagJobIds(const std::string& tagJobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string tagJobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYTAGJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYTAGJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYTAGJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryTagJobListRequest : public RpcServiceRequest { +public: + QueryTagJobListRequest(); + ~QueryTagJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTagJobIds() const; + void setTagJobIds(const std::string &tagJobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string tagJobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYTAGJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryTagJobListResult.h b/mts/include/alibabacloud/mts/model/QueryTagJobListResult.h index f47ac1c14..d7b00224c 100644 --- a/mts/include/alibabacloud/mts/model/QueryTagJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryTagJobListResult.h @@ -34,12 +34,6 @@ namespace AlibabaCloud public: struct TagJob { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; struct VideoTagResult { struct TagAnResult @@ -62,6 +56,12 @@ namespace AlibabaCloud std::vector tagAnResults; std::vector tagFrResults; }; + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; Input input; std::string message; std::string userData; diff --git a/mts/include/alibabacloud/mts/model/QueryTemplateListRequest.h b/mts/include/alibabacloud/mts/model/QueryTemplateListRequest.h index 5eeff5f96..bde7efea7 100644 --- a/mts/include/alibabacloud/mts/model/QueryTemplateListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryTemplateListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYTEMPLATELISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYTEMPLATELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryTemplateListRequest : public RpcServiceRequest - { - - public: - QueryTemplateListRequest(); - ~QueryTemplateListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getTemplateIds()const; - void setTemplateIds(const std::string& templateIds); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - long resourceOwnerId_; - std::string templateIds_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYTEMPLATELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYTEMPLATELISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYTEMPLATELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryTemplateListRequest : public RpcServiceRequest { +public: + QueryTemplateListRequest(); + ~QueryTemplateListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTemplateIds() const; + void setTemplateIds(const std::string &templateIds); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + long resourceOwnerId_; + std::string templateIds_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYTEMPLATELISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryTemplateListResult.h b/mts/include/alibabacloud/mts/model/QueryTemplateListResult.h index 55fe15d44..cb99148a6 100644 --- a/mts/include/alibabacloud/mts/model/QueryTemplateListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryTemplateListResult.h @@ -34,10 +34,6 @@ namespace AlibabaCloud public: struct _Template { - struct Container - { - std::string format; - }; struct Video { struct BitrateBnd @@ -49,8 +45,8 @@ namespace AlibabaCloud std::string qscale; std::string scanMode; std::string preset; - std::string fps; std::string longShortMode; + std::string fps; std::string gop; std::string remove; BitrateBnd bitrateBnd; @@ -58,26 +54,16 @@ namespace AlibabaCloud std::string bitrate; std::string profile; std::string crop; + std::string pad; std::string codec; std::string maxrate; - std::string pad; - std::string crf; std::string maxFps; + std::string crf; std::string height; std::string degrain; std::string width; std::string resoPriority; }; - struct Audio - { - std::string codec; - std::string qscale; - std::string remove; - std::string samplerate; - std::string bitrate; - std::string profile; - std::string channels; - }; struct TransConfig { std::string isCheckAudioBitrate; @@ -91,25 +77,39 @@ namespace AlibabaCloud }; struct MuxConfig { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - std::string ditherMode; - std::string isCustomPalette; - }; struct Webp { std::string loop; }; - Gif gif; + struct Gif + { + std::string finalDelay; + std::string loop; + std::string ditherMode; + std::string isCustomPalette; + }; + struct Segment + { + std::string duration; + }; Webp webp; + Gif gif; Segment segment; }; + struct Audio + { + std::string codec; + std::string qscale; + std::string remove; + std::string samplerate; + std::string bitrate; + std::string profile; + std::string channels; + }; + struct Container + { + std::string format; + }; Container container; TransConfig transConfig; Video video; diff --git a/mts/include/alibabacloud/mts/model/QueryTerrorismJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryTerrorismJobListRequest.h index 9b4561409..e81eaee65 100644 --- a/mts/include/alibabacloud/mts/model/QueryTerrorismJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryTerrorismJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYTERRORISMJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryTerrorismJobListRequest : public RpcServiceRequest - { - - public: - QueryTerrorismJobListRequest(); - ~QueryTerrorismJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryTerrorismJobListRequest : public RpcServiceRequest { +public: + QueryTerrorismJobListRequest(); + ~QueryTerrorismJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryTerrorismJobListResult.h b/mts/include/alibabacloud/mts/model/QueryTerrorismJobListResult.h index 50a5adeb4..ea3d29a63 100644 --- a/mts/include/alibabacloud/mts/model/QueryTerrorismJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryTerrorismJobListResult.h @@ -34,11 +34,27 @@ namespace AlibabaCloud public: struct TerrorismJob { - struct Input + struct CensorTerrorismResult { - std::string bucket; - std::string object; - std::string location; + struct Top + { + std::string score; + std::string label; + std::string index; + std::string object; + std::string timestamp; + }; + struct Counter + { + std::string label; + int count; + }; + std::vector terrorismCounterList; + std::string suggestion; + std::string maxScore; + std::string averageScore; + std::string label; + std::vector terrorismTopList; }; struct TerrorismConfig { @@ -52,30 +68,14 @@ namespace AlibabaCloud std::string bizType; std::string interval; }; - struct CensorTerrorismResult + struct Input { - struct Counter - { - std::string label; - int count; - }; - struct Top - { - std::string score; - std::string label; - std::string index; - std::string object; - std::string timestamp; - }; - std::vector terrorismCounterList; - std::string suggestion; - std::string maxScore; - std::string averageScore; - std::string label; - std::vector terrorismTopList; + std::string bucket; + std::string object; + std::string location; }; - Input input; CensorTerrorismResult censorTerrorismResult; + Input input; std::string message; std::string userData; std::string state; diff --git a/mts/include/alibabacloud/mts/model/QueryTerrorismPipelineListRequest.h b/mts/include/alibabacloud/mts/model/QueryTerrorismPipelineListRequest.h index ec8f8d89a..2b6cf56bd 100644 --- a/mts/include/alibabacloud/mts/model/QueryTerrorismPipelineListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryTerrorismPipelineListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYTERRORISMPIPELINELISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMPIPELINELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryTerrorismPipelineListRequest : public RpcServiceRequest - { - - public: - QueryTerrorismPipelineListRequest(); - ~QueryTerrorismPipelineListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getPipelineIds()const; - void setPipelineIds(const std::string& pipelineIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string pipelineIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMPIPELINELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMPIPELINELISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMPIPELINELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryTerrorismPipelineListRequest : public RpcServiceRequest { +public: + QueryTerrorismPipelineListRequest(); + ~QueryTerrorismPipelineListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPipelineIds() const; + void setPipelineIds(const std::string &pipelineIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string pipelineIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYTERRORISMPIPELINELISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryVideoGifJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryVideoGifJobListRequest.h index e4c1ec97c..99a2ce3ba 100644 --- a/mts/include/alibabacloud/mts/model/QueryVideoGifJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryVideoGifJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYVIDEOGIFJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYVIDEOGIFJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryVideoGifJobListRequest : public RpcServiceRequest - { - - public: - QueryVideoGifJobListRequest(); - ~QueryVideoGifJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYVIDEOGIFJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYVIDEOGIFJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYVIDEOGIFJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryVideoGifJobListRequest : public RpcServiceRequest { +public: + QueryVideoGifJobListRequest(); + ~QueryVideoGifJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYVIDEOGIFJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryVideoGifJobListResult.h b/mts/include/alibabacloud/mts/model/QueryVideoGifJobListResult.h index be1f8dc28..96ca0673f 100644 --- a/mts/include/alibabacloud/mts/model/QueryVideoGifJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryVideoGifJobListResult.h @@ -34,12 +34,6 @@ namespace AlibabaCloud public: struct Job { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; struct VideoGifResult { struct OutputFile @@ -50,6 +44,12 @@ namespace AlibabaCloud }; OutputFile outputFile; }; + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; Input input; std::string message; std::string userData; diff --git a/mts/include/alibabacloud/mts/model/QueryVideoPoseJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryVideoPoseJobListRequest.h index f2bcc532c..624c8cea2 100644 --- a/mts/include/alibabacloud/mts/model/QueryVideoPoseJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryVideoPoseJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYVIDEOPOSEJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYVIDEOPOSEJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryVideoPoseJobListRequest : public RpcServiceRequest - { - - public: - QueryVideoPoseJobListRequest(); - ~QueryVideoPoseJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYVIDEOPOSEJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYVIDEOPOSEJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYVIDEOPOSEJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryVideoPoseJobListRequest : public RpcServiceRequest { +public: + QueryVideoPoseJobListRequest(); + ~QueryVideoPoseJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYVIDEOPOSEJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryVideoPoseJobListResult.h b/mts/include/alibabacloud/mts/model/QueryVideoPoseJobListResult.h index fb9917e5f..d15aba8e8 100644 --- a/mts/include/alibabacloud/mts/model/QueryVideoPoseJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryVideoPoseJobListResult.h @@ -34,23 +34,16 @@ namespace AlibabaCloud public: struct Job { - struct Input - { - std::string bucket; - std::string object; - std::string roleArn; - std::string location; - }; struct OutputConfig { - struct VideoFile + struct DataFile { std::string bucket; std::string object; std::string roleArn; std::string location; }; - struct DataFile + struct VideoFile { std::string bucket; std::string object; @@ -60,6 +53,19 @@ namespace AlibabaCloud DataFile dataFile; VideoFile videoFile; }; + struct MNSMessageResult + { + std::string errorCode; + std::string errorMessage; + std::string messageId; + }; + struct Input + { + std::string bucket; + std::string object; + std::string roleArn; + std::string location; + }; struct Properties { struct Streams @@ -76,17 +82,17 @@ namespace AlibabaCloud std::string codecTimeBase; std::string rotate; std::string sar; - std::string fps; std::string startTime; + std::string fps; std::string index; - std::string duration; std::string lang; + std::string duration; std::string pixFmt; NetworkCost networkCost; - std::string codecName; std::string bitrate; - std::string profile; + std::string codecName; std::string avgFPS; + std::string profile; std::string timebase; std::string codecTagString; std::string hasBFrames; @@ -104,12 +110,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -118,15 +124,15 @@ namespace AlibabaCloud }; struct SubtitleStream { - std::string codecTag; std::string timebase; + std::string codecTag; std::string codecTagString; std::string codecTimeBase; std::string codecLongName; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string codecName; }; std::vector videoStreamList; @@ -154,12 +160,6 @@ namespace AlibabaCloud Streams streams; std::string fileSize; }; - struct MNSMessageResult - { - std::string errorCode; - std::string errorMessage; - std::string messageId; - }; Input input; OutputConfig outputConfig; std::string userData; diff --git a/mts/include/alibabacloud/mts/model/QueryVideoQualityJobRequest.h b/mts/include/alibabacloud/mts/model/QueryVideoQualityJobRequest.h new file mode 100644 index 000000000..ccffc1b60 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryVideoQualityJobRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYVIDEOQUALITYJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYVIDEOQUALITYJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryVideoQualityJobRequest : public RpcServiceRequest { +public: + QueryVideoQualityJobRequest(); + ~QueryVideoQualityJobRequest(); + long getUserId() const; + void setUserId(long userId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + long userId_; + std::string jobId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYVIDEOQUALITYJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryVideoQualityJobResult.h b/mts/include/alibabacloud/mts/model/QueryVideoQualityJobResult.h new file mode 100644 index 000000000..68c03f9d0 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/QueryVideoQualityJobResult.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_MTS_MODEL_QUERYVIDEOQUALITYJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYVIDEOQUALITYJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT QueryVideoQualityJobResult : public ServiceResult + { + public: + struct Job + { + std::string status; + std::string message; + long userId; + std::string output; + std::string videoQualityResults; + std::string jobId; + }; + + + QueryVideoQualityJobResult(); + explicit QueryVideoQualityJobResult(const std::string &payload); + ~QueryVideoQualityJobResult(); + std::string getMessage()const; + Job getJob()const; + std::string getCode()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Job job_; + std::string code_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYVIDEOQUALITYJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/QueryVideoSplitJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryVideoSplitJobListRequest.h index 2e32dc9a2..881f1192b 100644 --- a/mts/include/alibabacloud/mts/model/QueryVideoSplitJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryVideoSplitJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYVIDEOSPLITJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYVIDEOSPLITJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryVideoSplitJobListRequest : public RpcServiceRequest - { - - public: - QueryVideoSplitJobListRequest(); - ~QueryVideoSplitJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYVIDEOSPLITJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYVIDEOSPLITJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYVIDEOSPLITJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryVideoSplitJobListRequest : public RpcServiceRequest { +public: + QueryVideoSplitJobListRequest(); + ~QueryVideoSplitJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYVIDEOSPLITJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryVideoSplitJobListResult.h b/mts/include/alibabacloud/mts/model/QueryVideoSplitJobListResult.h index d3879499e..3945ac0f2 100644 --- a/mts/include/alibabacloud/mts/model/QueryVideoSplitJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryVideoSplitJobListResult.h @@ -34,12 +34,6 @@ namespace AlibabaCloud public: struct Job { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; struct VideoSplitResult { struct VideoSplit @@ -50,6 +44,12 @@ namespace AlibabaCloud }; std::vector videoSplitList; }; + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; Input input; std::string message; std::string userData; diff --git a/mts/include/alibabacloud/mts/model/QueryVideoSummaryJobListRequest.h b/mts/include/alibabacloud/mts/model/QueryVideoSummaryJobListRequest.h index d98ed1fa5..1830d3620 100644 --- a/mts/include/alibabacloud/mts/model/QueryVideoSummaryJobListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryVideoSummaryJobListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYVIDEOSUMMARYJOBLISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYVIDEOSUMMARYJOBLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryVideoSummaryJobListRequest : public RpcServiceRequest - { - - public: - QueryVideoSummaryJobListRequest(); - ~QueryVideoSummaryJobListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobIds()const; - void setJobIds(const std::string& jobIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string jobIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYVIDEOSUMMARYJOBLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYVIDEOSUMMARYJOBLISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYVIDEOSUMMARYJOBLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryVideoSummaryJobListRequest : public RpcServiceRequest { +public: + QueryVideoSummaryJobListRequest(); + ~QueryVideoSummaryJobListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobIds() const; + void setJobIds(const std::string &jobIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYVIDEOSUMMARYJOBLISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryVideoSummaryJobListResult.h b/mts/include/alibabacloud/mts/model/QueryVideoSummaryJobListResult.h index 2bc7ee7af..4d2bf2bcc 100644 --- a/mts/include/alibabacloud/mts/model/QueryVideoSummaryJobListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryVideoSummaryJobListResult.h @@ -34,12 +34,6 @@ namespace AlibabaCloud public: struct Job { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; struct VideoSummaryResult { struct OutputFile @@ -56,6 +50,12 @@ namespace AlibabaCloud OutputFile outputFile; std::vector videoSummaryList; }; + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; Input input; std::string message; VideoSummaryResult videoSummaryResult; diff --git a/mts/include/alibabacloud/mts/model/QueryWaterMarkTemplateListRequest.h b/mts/include/alibabacloud/mts/model/QueryWaterMarkTemplateListRequest.h index 1e2a9de59..a39294034 100644 --- a/mts/include/alibabacloud/mts/model/QueryWaterMarkTemplateListRequest.h +++ b/mts/include/alibabacloud/mts/model/QueryWaterMarkTemplateListRequest.h @@ -1,63 +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_MTS_MODEL_QUERYWATERMARKTEMPLATELISTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_QUERYWATERMARKTEMPLATELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT QueryWaterMarkTemplateListRequest : public RpcServiceRequest - { - - public: - QueryWaterMarkTemplateListRequest(); - ~QueryWaterMarkTemplateListRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getWaterMarkTemplateIds()const; - void setWaterMarkTemplateIds(const std::string& waterMarkTemplateIds); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string waterMarkTemplateIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_QUERYWATERMARKTEMPLATELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_QUERYWATERMARKTEMPLATELISTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_QUERYWATERMARKTEMPLATELISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT QueryWaterMarkTemplateListRequest : public RpcServiceRequest { +public: + QueryWaterMarkTemplateListRequest(); + ~QueryWaterMarkTemplateListRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getWaterMarkTemplateIds() const; + void setWaterMarkTemplateIds(const std::string &waterMarkTemplateIds); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string waterMarkTemplateIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_QUERYWATERMARKTEMPLATELISTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/QueryWaterMarkTemplateListResult.h b/mts/include/alibabacloud/mts/model/QueryWaterMarkTemplateListResult.h index c45cf06e9..fa901601b 100644 --- a/mts/include/alibabacloud/mts/model/QueryWaterMarkTemplateListResult.h +++ b/mts/include/alibabacloud/mts/model/QueryWaterMarkTemplateListResult.h @@ -34,11 +34,6 @@ namespace AlibabaCloud public: struct WaterMarkTemplate { - struct Timeline - { - std::string start; - std::string duration; - }; struct RatioRefer { std::string dx; @@ -46,8 +41,13 @@ namespace AlibabaCloud std::string height; std::string width; }; - Timeline timeline; + struct Timeline + { + std::string start; + std::string duration; + }; RatioRefer ratioRefer; + Timeline timeline; std::string type; std::string dx; std::string dy; diff --git a/mts/include/alibabacloud/mts/model/RefreshCdnDomainConfigsCacheRequest.h b/mts/include/alibabacloud/mts/model/RefreshCdnDomainConfigsCacheRequest.h index a64dae819..7bdce07c7 100644 --- a/mts/include/alibabacloud/mts/model/RefreshCdnDomainConfigsCacheRequest.h +++ b/mts/include/alibabacloud/mts/model/RefreshCdnDomainConfigsCacheRequest.h @@ -1,63 +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_MTS_MODEL_REFRESHCDNDOMAINCONFIGSCACHEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REFRESHCDNDOMAINCONFIGSCACHEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT RefreshCdnDomainConfigsCacheRequest : public RpcServiceRequest - { - - public: - RefreshCdnDomainConfigsCacheRequest(); - ~RefreshCdnDomainConfigsCacheRequest(); - - std::string getResourceOwnerId()const; - void setResourceOwnerId(const std::string& resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getDomains()const; - void setDomains(const std::string& domains); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - - private: - std::string resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string domains_; - std::string ownerId_; - std::string accessKeyId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REFRESHCDNDOMAINCONFIGSCACHEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REFRESHCDNDOMAINCONFIGSCACHEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REFRESHCDNDOMAINCONFIGSCACHEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT RefreshCdnDomainConfigsCacheRequest : public RpcServiceRequest { +public: + RefreshCdnDomainConfigsCacheRequest(); + ~RefreshCdnDomainConfigsCacheRequest(); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getDomains() const; + void setDomains(const std::string &domains); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + +private: + std::string resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string domains_; + std::string ownerId_; + std::string accessKeyId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REFRESHCDNDOMAINCONFIGSCACHEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/RegisterCustomFaceRequest.h b/mts/include/alibabacloud/mts/model/RegisterCustomFaceRequest.h new file mode 100644 index 000000000..b0f1d08ab --- /dev/null +++ b/mts/include/alibabacloud/mts/model/RegisterCustomFaceRequest.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_MTS_MODEL_REGISTERCUSTOMFACEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REGISTERCUSTOMFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT RegisterCustomFaceRequest : public RpcServiceRequest { +public: + RegisterCustomFaceRequest(); + ~RegisterCustomFaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPersonId() const; + void setPersonId(const std::string &personId); + std::string getCategoryId() const; + void setCategoryId(const std::string &categoryId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getImageUrl() const; + void setImageUrl(const std::string &imageUrl); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string personId_; + std::string categoryId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string imageUrl_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REGISTERCUSTOMFACEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/RegisterCustomFaceResult.h b/mts/include/alibabacloud/mts/model/RegisterCustomFaceResult.h new file mode 100644 index 000000000..14dcd625c --- /dev/null +++ b/mts/include/alibabacloud/mts/model/RegisterCustomFaceResult.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_MTS_MODEL_REGISTERCUSTOMFACERESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_REGISTERCUSTOMFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT RegisterCustomFaceResult : public ServiceResult + { + public: + + + RegisterCustomFaceResult(); + explicit RegisterCustomFaceResult(const std::string &payload); + ~RegisterCustomFaceResult(); + std::string getFaceId()const; + + protected: + void parse(const std::string &payload); + private: + std::string faceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_REGISTERCUSTOMFACERESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/RegisterMediaDetailPersonRequest.h b/mts/include/alibabacloud/mts/model/RegisterMediaDetailPersonRequest.h index d59ef814b..0be05fd0b 100644 --- a/mts/include/alibabacloud/mts/model/RegisterMediaDetailPersonRequest.h +++ b/mts/include/alibabacloud/mts/model/RegisterMediaDetailPersonRequest.h @@ -1,72 +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_MTS_MODEL_REGISTERMEDIADETAILPERSONREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REGISTERMEDIADETAILPERSONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT RegisterMediaDetailPersonRequest : public RpcServiceRequest - { - - public: - RegisterMediaDetailPersonRequest(); - ~RegisterMediaDetailPersonRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getPersonLib()const; - void setPersonLib(const std::string& personLib); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getPersonName()const; - void setPersonName(const std::string& personName); - std::string getImages()const; - void setImages(const std::string& images); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getCategory()const; - void setCategory(const std::string& category); - - private: - long resourceOwnerId_; - std::string personLib_; - std::string accessKeyId_; - std::string personName_; - std::string images_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string category_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REGISTERMEDIADETAILPERSONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REGISTERMEDIADETAILPERSONREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REGISTERMEDIADETAILPERSONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT RegisterMediaDetailPersonRequest : public RpcServiceRequest { +public: + RegisterMediaDetailPersonRequest(); + ~RegisterMediaDetailPersonRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPersonLib() const; + void setPersonLib(const std::string &personLib); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPersonName() const; + void setPersonName(const std::string &personName); + std::string getImages() const; + void setImages(const std::string &images); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCategory() const; + void setCategory(const std::string &category); + +private: + long resourceOwnerId_; + std::string personLib_; + std::string accessKeyId_; + std::string personName_; + std::string images_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string category_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REGISTERMEDIADETAILPERSONREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/RegisterMediaDetailScenarioRequest.h b/mts/include/alibabacloud/mts/model/RegisterMediaDetailScenarioRequest.h index 3e0c537ad..10b3d67b0 100644 --- a/mts/include/alibabacloud/mts/model/RegisterMediaDetailScenarioRequest.h +++ b/mts/include/alibabacloud/mts/model/RegisterMediaDetailScenarioRequest.h @@ -1,69 +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_MTS_MODEL_REGISTERMEDIADETAILSCENARIOREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REGISTERMEDIADETAILSCENARIOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT RegisterMediaDetailScenarioRequest : public RpcServiceRequest - { - - public: - RegisterMediaDetailScenarioRequest(); - ~RegisterMediaDetailScenarioRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getScenario()const; - void setScenario(const std::string& scenario); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string description_; - std::string accessKeyId_; - std::string jobId_; - std::string scenario_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REGISTERMEDIADETAILSCENARIOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REGISTERMEDIADETAILSCENARIOREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REGISTERMEDIADETAILSCENARIOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT RegisterMediaDetailScenarioRequest : public RpcServiceRequest { +public: + RegisterMediaDetailScenarioRequest(); + ~RegisterMediaDetailScenarioRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getScenario() const; + void setScenario(const std::string &scenario); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string description_; + std::string accessKeyId_; + std::string jobId_; + std::string scenario_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REGISTERMEDIADETAILSCENARIOREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ReportAnnotationJobResultRequest.h b/mts/include/alibabacloud/mts/model/ReportAnnotationJobResultRequest.h index 77821eb61..091adee06 100644 --- a/mts/include/alibabacloud/mts/model/ReportAnnotationJobResultRequest.h +++ b/mts/include/alibabacloud/mts/model/ReportAnnotationJobResultRequest.h @@ -1,69 +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_MTS_MODEL_REPORTANNOTATIONJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REPORTANNOTATIONJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ReportAnnotationJobResultRequest : public RpcServiceRequest - { - - public: - ReportAnnotationJobResultRequest(); - ~ReportAnnotationJobResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getDetails()const; - void setDetails(const std::string& details); - std::string getAnnotation()const; - void setAnnotation(const std::string& annotation); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string jobId_; - std::string details_; - std::string annotation_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REPORTANNOTATIONJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REPORTANNOTATIONJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REPORTANNOTATIONJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ReportAnnotationJobResultRequest : public RpcServiceRequest { +public: + ReportAnnotationJobResultRequest(); + ~ReportAnnotationJobResultRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getDetails() const; + void setDetails(const std::string &details); + std::string getAnnotation() const; + void setAnnotation(const std::string &annotation); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string jobId_; + std::string details_; + std::string annotation_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REPORTANNOTATIONJOBRESULTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ReportCensorJobResultRequest.h b/mts/include/alibabacloud/mts/model/ReportCensorJobResultRequest.h index a0fbe6328..562cce56b 100644 --- a/mts/include/alibabacloud/mts/model/ReportCensorJobResultRequest.h +++ b/mts/include/alibabacloud/mts/model/ReportCensorJobResultRequest.h @@ -1,69 +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_MTS_MODEL_REPORTCENSORJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REPORTCENSORJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ReportCensorJobResultRequest : public RpcServiceRequest - { - - public: - ReportCensorJobResultRequest(); - ~ReportCensorJobResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getLabel()const; - void setLabel(const std::string& label); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDetail()const; - void setDetail(const std::string& detail); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string jobId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string label_; - long ownerId_; - std::string detail_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REPORTCENSORJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REPORTCENSORJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REPORTCENSORJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ReportCensorJobResultRequest : public RpcServiceRequest { +public: + ReportCensorJobResultRequest(); + ~ReportCensorJobResultRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getLabel() const; + void setLabel(const std::string &label); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDetail() const; + void setDetail(const std::string &detail); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string jobId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string label_; + long ownerId_; + std::string detail_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REPORTCENSORJOBRESULTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ReportCoverJobResultRequest.h b/mts/include/alibabacloud/mts/model/ReportCoverJobResultRequest.h index 32d518a86..89816833e 100644 --- a/mts/include/alibabacloud/mts/model/ReportCoverJobResultRequest.h +++ b/mts/include/alibabacloud/mts/model/ReportCoverJobResultRequest.h @@ -1,66 +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_MTS_MODEL_REPORTCOVERJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REPORTCOVERJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ReportCoverJobResultRequest : public RpcServiceRequest - { - - public: - ReportCoverJobResultRequest(); - ~ReportCoverJobResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResult()const; - void setResult(const std::string& result); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string result_; - std::string jobId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REPORTCOVERJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REPORTCOVERJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REPORTCOVERJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ReportCoverJobResultRequest : public RpcServiceRequest { +public: + ReportCoverJobResultRequest(); + ~ReportCoverJobResultRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResult() const; + void setResult(const std::string &result); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string result_; + std::string jobId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REPORTCOVERJOBRESULTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ReportFacerecogJobResultRequest.h b/mts/include/alibabacloud/mts/model/ReportFacerecogJobResultRequest.h index 18ff95772..fef3929f6 100644 --- a/mts/include/alibabacloud/mts/model/ReportFacerecogJobResultRequest.h +++ b/mts/include/alibabacloud/mts/model/ReportFacerecogJobResultRequest.h @@ -1,69 +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_MTS_MODEL_REPORTFACERECOGJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REPORTFACERECOGJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ReportFacerecogJobResultRequest : public RpcServiceRequest - { - - public: - ReportFacerecogJobResultRequest(); - ~ReportFacerecogJobResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getFacerecog()const; - void setFacerecog(const std::string& facerecog); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getDetails()const; - void setDetails(const std::string& details); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string facerecog_; - std::string accessKeyId_; - std::string jobId_; - std::string details_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REPORTFACERECOGJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REPORTFACERECOGJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REPORTFACERECOGJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ReportFacerecogJobResultRequest : public RpcServiceRequest { +public: + ReportFacerecogJobResultRequest(); + ~ReportFacerecogJobResultRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFacerecog() const; + void setFacerecog(const std::string &facerecog); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getDetails() const; + void setDetails(const std::string &details); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string facerecog_; + std::string accessKeyId_; + std::string jobId_; + std::string details_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REPORTFACERECOGJOBRESULTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ReportFpShotJobResultRequest.h b/mts/include/alibabacloud/mts/model/ReportFpShotJobResultRequest.h index 54e533296..2a2934f02 100644 --- a/mts/include/alibabacloud/mts/model/ReportFpShotJobResultRequest.h +++ b/mts/include/alibabacloud/mts/model/ReportFpShotJobResultRequest.h @@ -1,69 +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_MTS_MODEL_REPORTFPSHOTJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REPORTFPSHOTJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ReportFpShotJobResultRequest : public RpcServiceRequest - { - - public: - ReportFpShotJobResultRequest(); - ~ReportFpShotJobResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResult()const; - void setResult(const std::string& result); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getDetails()const; - void setDetails(const std::string& details); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string result_; - std::string jobId_; - std::string details_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REPORTFPSHOTJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REPORTFPSHOTJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REPORTFPSHOTJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ReportFpShotJobResultRequest : public RpcServiceRequest { +public: + ReportFpShotJobResultRequest(); + ~ReportFpShotJobResultRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResult() const; + void setResult(const std::string &result); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getDetails() const; + void setDetails(const std::string &details); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string result_; + std::string jobId_; + std::string details_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REPORTFPSHOTJOBRESULTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ReportMediaDetailJobResultRequest.h b/mts/include/alibabacloud/mts/model/ReportMediaDetailJobResultRequest.h index 837563b02..7e4cb8341 100644 --- a/mts/include/alibabacloud/mts/model/ReportMediaDetailJobResultRequest.h +++ b/mts/include/alibabacloud/mts/model/ReportMediaDetailJobResultRequest.h @@ -1,69 +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_MTS_MODEL_REPORTMEDIADETAILJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REPORTMEDIADETAILJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ReportMediaDetailJobResultRequest : public RpcServiceRequest - { - - public: - ReportMediaDetailJobResultRequest(); - ~ReportMediaDetailJobResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getTag()const; - void setTag(const std::string& tag); - std::string getResults()const; - void setResults(const std::string& results); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string jobId_; - std::string tag_; - std::string results_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REPORTMEDIADETAILJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REPORTMEDIADETAILJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REPORTMEDIADETAILJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ReportMediaDetailJobResultRequest : public RpcServiceRequest { +public: + ReportMediaDetailJobResultRequest(); + ~ReportMediaDetailJobResultRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getTag() const; + void setTag(const std::string &tag); + std::string getResults() const; + void setResults(const std::string &results); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string jobId_; + std::string tag_; + std::string results_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REPORTMEDIADETAILJOBRESULTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ReportPornJobResultRequest.h b/mts/include/alibabacloud/mts/model/ReportPornJobResultRequest.h index 82a417133..07951242e 100644 --- a/mts/include/alibabacloud/mts/model/ReportPornJobResultRequest.h +++ b/mts/include/alibabacloud/mts/model/ReportPornJobResultRequest.h @@ -1,69 +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_MTS_MODEL_REPORTPORNJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REPORTPORNJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ReportPornJobResultRequest : public RpcServiceRequest - { - - public: - ReportPornJobResultRequest(); - ~ReportPornJobResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getLabel()const; - void setLabel(const std::string& label); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDetail()const; - void setDetail(const std::string& detail); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string jobId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string label_; - long ownerId_; - std::string detail_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REPORTPORNJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REPORTPORNJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REPORTPORNJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ReportPornJobResultRequest : public RpcServiceRequest { +public: + ReportPornJobResultRequest(); + ~ReportPornJobResultRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getLabel() const; + void setLabel(const std::string &label); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDetail() const; + void setDetail(const std::string &detail); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string jobId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string label_; + long ownerId_; + std::string detail_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REPORTPORNJOBRESULTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ReportTagJobResultRequest.h b/mts/include/alibabacloud/mts/model/ReportTagJobResultRequest.h index efd246521..c7133b72b 100644 --- a/mts/include/alibabacloud/mts/model/ReportTagJobResultRequest.h +++ b/mts/include/alibabacloud/mts/model/ReportTagJobResultRequest.h @@ -1,69 +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_MTS_MODEL_REPORTTAGJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REPORTTAGJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ReportTagJobResultRequest : public RpcServiceRequest - { - - public: - ReportTagJobResultRequest(); - ~ReportTagJobResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResult()const; - void setResult(const std::string& result); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getTag()const; - void setTag(const std::string& tag); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string result_; - std::string jobId_; - std::string tag_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REPORTTAGJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REPORTTAGJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REPORTTAGJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ReportTagJobResultRequest : public RpcServiceRequest { +public: + ReportTagJobResultRequest(); + ~ReportTagJobResultRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResult() const; + void setResult(const std::string &result); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getTag() const; + void setTag(const std::string &tag); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string result_; + std::string jobId_; + std::string tag_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REPORTTAGJOBRESULTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ReportTerrorismJobResultRequest.h b/mts/include/alibabacloud/mts/model/ReportTerrorismJobResultRequest.h index d6c6a4a2b..46922b5c2 100644 --- a/mts/include/alibabacloud/mts/model/ReportTerrorismJobResultRequest.h +++ b/mts/include/alibabacloud/mts/model/ReportTerrorismJobResultRequest.h @@ -1,69 +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_MTS_MODEL_REPORTTERRORISMJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REPORTTERRORISMJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ReportTerrorismJobResultRequest : public RpcServiceRequest - { - - public: - ReportTerrorismJobResultRequest(); - ~ReportTerrorismJobResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getLabel()const; - void setLabel(const std::string& label); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getDetail()const; - void setDetail(const std::string& detail); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string jobId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string label_; - long ownerId_; - std::string detail_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REPORTTERRORISMJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REPORTTERRORISMJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REPORTTERRORISMJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ReportTerrorismJobResultRequest : public RpcServiceRequest { +public: + ReportTerrorismJobResultRequest(); + ~ReportTerrorismJobResultRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getLabel() const; + void setLabel(const std::string &label); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getDetail() const; + void setDetail(const std::string &detail); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string jobId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string label_; + long ownerId_; + std::string detail_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REPORTTERRORISMJOBRESULTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/ReportVideoSplitJobResultRequest.h b/mts/include/alibabacloud/mts/model/ReportVideoSplitJobResultRequest.h index 44a48a144..d0da0fa28 100644 --- a/mts/include/alibabacloud/mts/model/ReportVideoSplitJobResultRequest.h +++ b/mts/include/alibabacloud/mts/model/ReportVideoSplitJobResultRequest.h @@ -1,69 +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_MTS_MODEL_REPORTVIDEOSPLITJOBRESULTREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_REPORTVIDEOSPLITJOBRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT ReportVideoSplitJobResultRequest : public RpcServiceRequest - { - - public: - ReportVideoSplitJobResultRequest(); - ~ReportVideoSplitJobResultRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResult()const; - void setResult(const std::string& result); - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getDetails()const; - void setDetails(const std::string& details); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string result_; - std::string jobId_; - std::string details_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_REPORTVIDEOSPLITJOBRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_REPORTVIDEOSPLITJOBRESULTREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_REPORTVIDEOSPLITJOBRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT ReportVideoSplitJobResultRequest : public RpcServiceRequest { +public: + ReportVideoSplitJobResultRequest(); + ~ReportVideoSplitJobResultRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResult() const; + void setResult(const std::string &result); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getDetails() const; + void setDetails(const std::string &details); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string result_; + std::string jobId_; + std::string details_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_REPORTVIDEOSPLITJOBRESULTREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SearchMediaRequest.h b/mts/include/alibabacloud/mts/model/SearchMediaRequest.h index 60ce01d86..d7c477239 100644 --- a/mts/include/alibabacloud/mts/model/SearchMediaRequest.h +++ b/mts/include/alibabacloud/mts/model/SearchMediaRequest.h @@ -1,90 +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_MTS_MODEL_SEARCHMEDIAREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SEARCHMEDIAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SearchMediaRequest : public RpcServiceRequest - { - - public: - SearchMediaRequest(); - ~SearchMediaRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getTitle()const; - void setTitle(const std::string& title); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getCateId()const; - void setCateId(const std::string& cateId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getFrom()const; - void setFrom(const std::string& from); - std::string getTag()const; - void setTag(const std::string& tag); - std::string getKeyWord()const; - void setKeyWord(const std::string& keyWord); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getSortBy()const; - void setSortBy(const std::string& sortBy); - std::string getTo()const; - void setTo(const std::string& to); - - private: - long resourceOwnerId_; - std::string description_; - std::string title_; - long pageNumber_; - std::string accessKeyId_; - std::string cateId_; - long pageSize_; - std::string from_; - std::string tag_; - std::string keyWord_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string sortBy_; - std::string to_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SEARCHMEDIAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SEARCHMEDIAREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SEARCHMEDIAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SearchMediaRequest : public RpcServiceRequest { +public: + SearchMediaRequest(); + ~SearchMediaRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getTitle() const; + void setTitle(const std::string &title); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCateId() const; + void setCateId(const std::string &cateId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getFrom() const; + void setFrom(const std::string &from); + std::string getTag() const; + void setTag(const std::string &tag); + std::string getKeyWord() const; + void setKeyWord(const std::string &keyWord); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getSortBy() const; + void setSortBy(const std::string &sortBy); + std::string getTo() const; + void setTo(const std::string &to); + +private: + long resourceOwnerId_; + std::string description_; + std::string title_; + long pageNumber_; + std::string accessKeyId_; + std::string cateId_; + long pageSize_; + std::string from_; + std::string tag_; + std::string keyWord_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string sortBy_; + std::string to_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SEARCHMEDIAREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SearchMediaResult.h b/mts/include/alibabacloud/mts/model/SearchMediaResult.h index 30deef26c..abd8882c7 100644 --- a/mts/include/alibabacloud/mts/model/SearchMediaResult.h +++ b/mts/include/alibabacloud/mts/model/SearchMediaResult.h @@ -50,8 +50,8 @@ namespace AlibabaCloud std::string format; std::string mediaId; std::string creationTime; - std::string coverURL; std::string height; + std::string coverURL; File file; std::string width; std::vector runIdList; diff --git a/mts/include/alibabacloud/mts/model/SearchMediaWorkflowRequest.h b/mts/include/alibabacloud/mts/model/SearchMediaWorkflowRequest.h index 1ee97d3d1..9f46ed36c 100644 --- a/mts/include/alibabacloud/mts/model/SearchMediaWorkflowRequest.h +++ b/mts/include/alibabacloud/mts/model/SearchMediaWorkflowRequest.h @@ -1,69 +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_MTS_MODEL_SEARCHMEDIAWORKFLOWREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SEARCHMEDIAWORKFLOWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SearchMediaWorkflowRequest : public RpcServiceRequest - { - - public: - SearchMediaWorkflowRequest(); - ~SearchMediaWorkflowRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getStateList()const; - void setStateList(const std::string& stateList); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string accessKeyId_; - long pageSize_; - std::string stateList_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SEARCHMEDIAWORKFLOWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SEARCHMEDIAWORKFLOWREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SEARCHMEDIAWORKFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SearchMediaWorkflowRequest : public RpcServiceRequest { +public: + SearchMediaWorkflowRequest(); + ~SearchMediaWorkflowRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getStateList() const; + void setStateList(const std::string &stateList); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string accessKeyId_; + long pageSize_; + std::string stateList_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SEARCHMEDIAWORKFLOWREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SearchMediaWorkflowResult.h b/mts/include/alibabacloud/mts/model/SearchMediaWorkflowResult.h index ca46cce07..c6423d371 100644 --- a/mts/include/alibabacloud/mts/model/SearchMediaWorkflowResult.h +++ b/mts/include/alibabacloud/mts/model/SearchMediaWorkflowResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string state; std::string mediaWorkflowId; std::string creationTime; - std::string topology; std::string triggerMode; + std::string topology; std::string name; }; diff --git a/mts/include/alibabacloud/mts/model/SearchPipelineRequest.h b/mts/include/alibabacloud/mts/model/SearchPipelineRequest.h index 1b128c618..38c3f0f97 100644 --- a/mts/include/alibabacloud/mts/model/SearchPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/SearchPipelineRequest.h @@ -1,69 +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_MTS_MODEL_SEARCHPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SEARCHPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SearchPipelineRequest : public RpcServiceRequest - { - - public: - SearchPipelineRequest(); - ~SearchPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string accessKeyId_; - long pageSize_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SEARCHPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SEARCHPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SEARCHPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SearchPipelineRequest : public RpcServiceRequest { +public: + SearchPipelineRequest(); + ~SearchPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string accessKeyId_; + long pageSize_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SEARCHPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SearchPipelineResult.h b/mts/include/alibabacloud/mts/model/SearchPipelineResult.h index 9695f03c7..751f11a4c 100644 --- a/mts/include/alibabacloud/mts/model/SearchPipelineResult.h +++ b/mts/include/alibabacloud/mts/model/SearchPipelineResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud struct NotifyConfig { std::string mqTag; - std::string topic; std::string mqTopic; + std::string topic; std::string queueName; }; std::string role; diff --git a/mts/include/alibabacloud/mts/model/SearchTemplateRequest.h b/mts/include/alibabacloud/mts/model/SearchTemplateRequest.h index 278883ff4..7ed1ec891 100644 --- a/mts/include/alibabacloud/mts/model/SearchTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/SearchTemplateRequest.h @@ -1,69 +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_MTS_MODEL_SEARCHTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SEARCHTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SearchTemplateRequest : public RpcServiceRequest - { - - public: - SearchTemplateRequest(); - ~SearchTemplateRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string accessKeyId_; - long pageSize_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SEARCHTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SEARCHTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SEARCHTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SearchTemplateRequest : public RpcServiceRequest { +public: + SearchTemplateRequest(); + ~SearchTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string accessKeyId_; + long pageSize_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SEARCHTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SearchTemplateResult.h b/mts/include/alibabacloud/mts/model/SearchTemplateResult.h index 006848f16..1f06dede9 100644 --- a/mts/include/alibabacloud/mts/model/SearchTemplateResult.h +++ b/mts/include/alibabacloud/mts/model/SearchTemplateResult.h @@ -34,10 +34,6 @@ namespace AlibabaCloud public: struct _Template { - struct Container - { - std::string format; - }; struct Video { struct BitrateBnd @@ -49,8 +45,8 @@ namespace AlibabaCloud std::string qscale; std::string scanMode; std::string preset; - std::string fps; std::string longShortMode; + std::string fps; std::string gop; std::string remove; BitrateBnd bitrateBnd; @@ -58,25 +54,15 @@ namespace AlibabaCloud std::string bitrate; std::string profile; std::string crop; + std::string pad; std::string codec; std::string maxrate; - std::string pad; - std::string crf; std::string maxFps; + std::string crf; std::string height; std::string degrain; std::string width; }; - struct Audio - { - std::string codec; - std::string qscale; - std::string remove; - std::string samplerate; - std::string bitrate; - std::string profile; - std::string channels; - }; struct TransConfig { std::string isCheckAudioBitrate; @@ -90,20 +76,34 @@ namespace AlibabaCloud }; struct MuxConfig { + struct Gif + { + std::string finalDelay; + std::string loop; + std::string ditherMode; + std::string isCustomPalette; + }; struct Segment { std::string duration; }; - struct Gif - { - std::string loop; - std::string finalDelay; - std::string ditherMode; - std::string isCustomPalette; - }; Gif gif; Segment segment; }; + struct Audio + { + std::string codec; + std::string qscale; + std::string remove; + std::string samplerate; + std::string bitrate; + std::string profile; + std::string channels; + }; + struct Container + { + std::string format; + }; Container container; TransConfig transConfig; Video video; diff --git a/mts/include/alibabacloud/mts/model/SearchWaterMarkTemplateRequest.h b/mts/include/alibabacloud/mts/model/SearchWaterMarkTemplateRequest.h index a011dce18..87973d902 100644 --- a/mts/include/alibabacloud/mts/model/SearchWaterMarkTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/SearchWaterMarkTemplateRequest.h @@ -1,69 +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_MTS_MODEL_SEARCHWATERMARKTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SEARCHWATERMARKTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SearchWaterMarkTemplateRequest : public RpcServiceRequest - { - - public: - SearchWaterMarkTemplateRequest(); - ~SearchWaterMarkTemplateRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - long getPageNumber()const; - void setPageNumber(long pageNumber); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getPageSize()const; - void setPageSize(long pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - long pageNumber_; - std::string accessKeyId_; - long pageSize_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SEARCHWATERMARKTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SEARCHWATERMARKTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SEARCHWATERMARKTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SearchWaterMarkTemplateRequest : public RpcServiceRequest { +public: + SearchWaterMarkTemplateRequest(); + ~SearchWaterMarkTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + long getPageNumber() const; + void setPageNumber(long pageNumber); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getPageSize() const; + void setPageSize(long pageSize); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + long pageNumber_; + std::string accessKeyId_; + long pageSize_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SEARCHWATERMARKTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SearchWaterMarkTemplateResult.h b/mts/include/alibabacloud/mts/model/SearchWaterMarkTemplateResult.h index 2a8cf19f7..631e3309b 100644 --- a/mts/include/alibabacloud/mts/model/SearchWaterMarkTemplateResult.h +++ b/mts/include/alibabacloud/mts/model/SearchWaterMarkTemplateResult.h @@ -34,11 +34,6 @@ namespace AlibabaCloud public: struct WaterMarkTemplate { - struct Timeline - { - std::string start; - std::string duration; - }; struct RatioRefer { std::string dx; @@ -46,8 +41,13 @@ namespace AlibabaCloud std::string height; std::string width; }; - Timeline timeline; + struct Timeline + { + std::string start; + std::string duration; + }; RatioRefer ratioRefer; + Timeline timeline; std::string type; std::string dx; std::string dy; diff --git a/mts/include/alibabacloud/mts/model/SetAuthConfigRequest.h b/mts/include/alibabacloud/mts/model/SetAuthConfigRequest.h index 26bfd44f3..077fd2933 100644 --- a/mts/include/alibabacloud/mts/model/SetAuthConfigRequest.h +++ b/mts/include/alibabacloud/mts/model/SetAuthConfigRequest.h @@ -1,66 +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_MTS_MODEL_SETAUTHCONFIGREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SETAUTHCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SetAuthConfigRequest : public RpcServiceRequest - { - - public: - SetAuthConfigRequest(); - ~SetAuthConfigRequest(); - - std::string getKey1()const; - void setKey1(const std::string& key1); - std::string getKey2()const; - void setKey2(const std::string& key2); - std::string getResourceOwnerId()const; - void setResourceOwnerId(const std::string& resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getOwnerId()const; - void setOwnerId(const std::string& ownerId); - - private: - std::string key1_; - std::string key2_; - std::string resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SETAUTHCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SETAUTHCONFIGREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SETAUTHCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SetAuthConfigRequest : public RpcServiceRequest { +public: + SetAuthConfigRequest(); + ~SetAuthConfigRequest(); + std::string getKey1() const; + void setKey1(const std::string &key1); + std::string getKey2() const; + void setKey2(const std::string &key2); + std::string getResourceOwnerId() const; + void setResourceOwnerId(const std::string &resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getOwnerId() const; + void setOwnerId(const std::string &ownerId); + +private: + std::string key1_; + std::string key2_; + std::string resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SETAUTHCONFIGREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/StopIProductionJobRequest.h b/mts/include/alibabacloud/mts/model/StopIProductionJobRequest.h new file mode 100644 index 000000000..1242e8f84 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/StopIProductionJobRequest.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_MTS_MODEL_STOPIPRODUCTIONJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_STOPIPRODUCTIONJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT StopIProductionJobRequest : public RpcServiceRequest { +public: + StopIProductionJobRequest(); + ~StopIProductionJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getJobId() const; + void setJobId(const std::string &jobId); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string jobId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_STOPIPRODUCTIONJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/StopIProductionJobResult.h b/mts/include/alibabacloud/mts/model/StopIProductionJobResult.h new file mode 100644 index 000000000..31ae4a2b0 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/StopIProductionJobResult.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_MTS_MODEL_STOPIPRODUCTIONJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_STOPIPRODUCTIONJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT StopIProductionJobResult : public ServiceResult + { + public: + + + StopIProductionJobResult(); + explicit StopIProductionJobResult(const std::string &payload); + ~StopIProductionJobResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_STOPIPRODUCTIONJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/SubmitAnalysisJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitAnalysisJobRequest.h index 0663304f8..7e2ae482d 100644 --- a/mts/include/alibabacloud/mts/model/SubmitAnalysisJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitAnalysisJobRequest.h @@ -1,75 +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_MTS_MODEL_SUBMITANALYSISJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITANALYSISJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitAnalysisJobRequest : public RpcServiceRequest - { - - public: - SubmitAnalysisJobRequest(); - ~SubmitAnalysisJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAnalysisConfig()const; - void setAnalysisConfig(const std::string& analysisConfig); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string analysisConfig_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string priority_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITANALYSISJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITANALYSISJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITANALYSISJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitAnalysisJobRequest : public RpcServiceRequest { +public: + SubmitAnalysisJobRequest(); + ~SubmitAnalysisJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAnalysisConfig() const; + void setAnalysisConfig(const std::string &analysisConfig); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPriority() const; + void setPriority(const std::string &priority); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string analysisConfig_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string priority_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITANALYSISJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitAnalysisJobResult.h b/mts/include/alibabacloud/mts/model/SubmitAnalysisJobResult.h index 9236fef00..3a126ece3 100644 --- a/mts/include/alibabacloud/mts/model/SubmitAnalysisJobResult.h +++ b/mts/include/alibabacloud/mts/model/SubmitAnalysisJobResult.h @@ -34,12 +34,6 @@ namespace AlibabaCloud public: struct AnalysisJob { - struct InputFile - { - std::string bucket; - std::string object; - std::string location; - }; struct AnalysisConfig { struct QualityControl @@ -69,12 +63,14 @@ namespace AlibabaCloud std::string errorMessage; std::string messageId; }; + struct InputFile + { + std::string bucket; + std::string object; + std::string location; + }; struct _Template { - struct Container - { - std::string format; - }; struct Video { struct BitrateBnd @@ -99,6 +95,24 @@ namespace AlibabaCloud std::string degrain; std::string width; }; + struct TransConfig + { + std::string transMode; + }; + struct MuxConfig + { + struct Gif + { + std::string finalDelay; + std::string loop; + }; + struct Segment + { + std::string duration; + }; + Gif gif; + Segment segment; + }; struct Audio { std::string codec; @@ -108,23 +122,9 @@ namespace AlibabaCloud std::string profile; std::string channels; }; - struct TransConfig + struct Container { - std::string transMode; - }; - struct MuxConfig - { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - }; - Gif gif; - Segment segment; + std::string format; }; Container container; TransConfig transConfig; @@ -137,8 +137,8 @@ namespace AlibabaCloud }; std::vector<_Template> templateList; std::string message; - std::string userData; long percent; + std::string userData; std::string priority; std::string code; InputFile inputFile; diff --git a/mts/include/alibabacloud/mts/model/SubmitAnnotationJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitAnnotationJobRequest.h index e5ba58151..63ddba049 100644 --- a/mts/include/alibabacloud/mts/model/SubmitAnnotationJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitAnnotationJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITANNOTATIONJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITANNOTATIONJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitAnnotationJobRequest : public RpcServiceRequest - { - - public: - SubmitAnnotationJobRequest(); - ~SubmitAnnotationJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAnnotationConfig()const; - void setAnnotationConfig(const std::string& annotationConfig); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string annotationConfig_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITANNOTATIONJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITANNOTATIONJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITANNOTATIONJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitAnnotationJobRequest : public RpcServiceRequest { +public: + SubmitAnnotationJobRequest(); + ~SubmitAnnotationJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAnnotationConfig() const; + void setAnnotationConfig(const std::string &annotationConfig); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string annotationConfig_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITANNOTATIONJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitAsrJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitAsrJobRequest.h index 4eefa231e..80b89c459 100644 --- a/mts/include/alibabacloud/mts/model/SubmitAsrJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitAsrJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITASRJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITASRJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitAsrJobRequest : public RpcServiceRequest - { - - public: - SubmitAsrJobRequest(); - ~SubmitAsrJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getAsrConfig()const; - void setAsrConfig(const std::string& asrConfig); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string asrConfig_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITASRJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITASRJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITASRJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitAsrJobRequest : public RpcServiceRequest { +public: + SubmitAsrJobRequest(); + ~SubmitAsrJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getAsrConfig() const; + void setAsrConfig(const std::string &asrConfig); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string asrConfig_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITASRJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsRequest.h b/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsRequest.h index 1505f02f9..4d258aa89 100644 --- a/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITBEAUTIFYJOBSREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITBEAUTIFYJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitBeautifyJobsRequest : public RpcServiceRequest - { - - public: - SubmitBeautifyJobsRequest(); - ~SubmitBeautifyJobsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getBeautifyConfig()const; - void setBeautifyConfig(const std::string& beautifyConfig); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - bool getAsync()const; - void setAsync(bool async); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string beautifyConfig_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - bool async_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITBEAUTIFYJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITBEAUTIFYJOBSREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITBEAUTIFYJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitBeautifyJobsRequest : public RpcServiceRequest { +public: + SubmitBeautifyJobsRequest(); + ~SubmitBeautifyJobsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getBeautifyConfig() const; + void setBeautifyConfig(const std::string &beautifyConfig); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + bool getAsync() const; + void setAsync(bool async); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string beautifyConfig_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + bool async_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITBEAUTIFYJOBSREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsResult.h b/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsResult.h index 2724d9cd7..972c23cbd 100644 --- a/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsResult.h +++ b/mts/include/alibabacloud/mts/model/SubmitBeautifyJobsResult.h @@ -34,13 +34,6 @@ namespace AlibabaCloud public: struct Job { - struct Input - { - std::string bucket; - std::string object; - std::string roleArn; - std::string location; - }; struct BeautifyConfig { struct OutputFile @@ -52,6 +45,13 @@ namespace AlibabaCloud }; OutputFile outputFile; }; + struct Input + { + std::string bucket; + std::string object; + std::string roleArn; + std::string location; + }; struct MNSMessageResult { std::string errorCode; diff --git a/mts/include/alibabacloud/mts/model/SubmitComplexJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitComplexJobRequest.h index 22b28b197..82a8d3dfc 100644 --- a/mts/include/alibabacloud/mts/model/SubmitComplexJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitComplexJobRequest.h @@ -1,81 +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_MTS_MODEL_SUBMITCOMPLEXJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITCOMPLEXJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitComplexJobRequest : public RpcServiceRequest - { - - public: - SubmitComplexJobRequest(); - ~SubmitComplexJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getTranscodeOutput()const; - void setTranscodeOutput(const std::string& transcodeOutput); - std::string getInputs()const; - void setInputs(const std::string& inputs); - std::string getOutputLocation()const; - void setOutputLocation(const std::string& outputLocation); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getOutputBucket()const; - void setOutputBucket(const std::string& outputBucket); - std::string getComplexConfigs()const; - void setComplexConfigs(const std::string& complexConfigs); - - private: - long resourceOwnerId_; - std::string transcodeOutput_; - std::string inputs_; - std::string outputLocation_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string outputBucket_; - std::string complexConfigs_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITCOMPLEXJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITCOMPLEXJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITCOMPLEXJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitComplexJobRequest : public RpcServiceRequest { +public: + SubmitComplexJobRequest(); + ~SubmitComplexJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTranscodeOutput() const; + void setTranscodeOutput(const std::string &transcodeOutput); + std::string getInputs() const; + void setInputs(const std::string &inputs); + std::string getOutputLocation() const; + void setOutputLocation(const std::string &outputLocation); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getOutputBucket() const; + void setOutputBucket(const std::string &outputBucket); + std::string getComplexConfigs() const; + void setComplexConfigs(const std::string &complexConfigs); + +private: + long resourceOwnerId_; + std::string transcodeOutput_; + std::string inputs_; + std::string outputLocation_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string outputBucket_; + std::string complexConfigs_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITCOMPLEXJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitComplexJobResult.h b/mts/include/alibabacloud/mts/model/SubmitComplexJobResult.h index 8c742f0f0..f0a949069 100644 --- a/mts/include/alibabacloud/mts/model/SubmitComplexJobResult.h +++ b/mts/include/alibabacloud/mts/model/SubmitComplexJobResult.h @@ -36,6 +36,82 @@ namespace AlibabaCloud { struct TranscodeOutput { + struct Video + { + struct BitrateBnd + { + std::string min; + std::string max; + }; + std::string bufsize; + std::string qscale; + std::string scanMode; + std::string preset; + std::string fps; + std::string gop; + BitrateBnd bitrateBnd; + std::string pixFmt; + std::string bitrate; + std::string profile; + std::string crop; + std::string pad; + std::string codec; + std::string maxrate; + std::string maxFps; + std::string crf; + std::string height; + std::string degrain; + std::string width; + }; + struct TransConfig + { + std::string isCheckAudioBitrate; + std::string adjDarMethod; + std::string isCheckAudioBitrateFail; + std::string isCheckVideoBitrateFail; + std::string isCheckReso; + std::string duration; + std::string isCheckVideoBitrate; + std::string transMode; + std::string isCheckResoFail; + }; + struct Encryption + { + std::string type; + std::string keyType; + std::string id; + std::string skipCnt; + std::string key; + std::string keyUri; + }; + struct M3U8NonStandardSupport + { + struct TS + { + bool sizeSupport; + bool md5Support; + }; + TS tS; + }; + struct Audio + { + struct Volume + { + std::string level; + std::string method; + }; + std::string codec; + std::string qscale; + Volume volume; + std::string samplerate; + std::string bitrate; + std::string profile; + std::string channels; + }; + struct SuperReso + { + std::string isHalfSample; + }; struct DigiWaterMark { struct InputFile3 @@ -55,14 +131,55 @@ namespace AlibabaCloud std::string roleArn; std::string location; }; - struct M3U8NonStandardSupport + struct Container { - struct TS + std::string format; + }; + struct Clip4 + { + struct TimeSpan { - bool md5Support; - bool sizeSupport; + std::string duration; + std::string seek; }; - TS tS; + TimeSpan timeSpan; + }; + struct MuxConfig + { + struct Gif + { + std::string finalDelay; + std::string loop; + std::string ditherMode; + std::string isCustomPalette; + }; + struct Segment + { + std::string duration; + }; + Gif gif; + Segment segment; + }; + struct SubtitleConfig + { + struct ExtSubtitle + { + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; + std::string charEnc; + Input input; + std::string fontName; + }; + struct Subtitle + { + std::string map; + }; + std::vector extSubtitleList; + std::vector subtitleList; }; struct Properties { @@ -79,17 +196,17 @@ namespace AlibabaCloud std::string codecTag; std::string codecTimeBase; std::string sar; - std::string fps; std::string startTime; + std::string fps; std::string index; - std::string duration; std::string lang; + std::string duration; std::string pixFmt; NetworkCost networkCost; - std::string codecName; std::string bitrate; - std::string profile; + std::string codecName; std::string avgFPS; + std::string profile; std::string timebase; std::string codecTagString; std::string hasBFrames; @@ -97,8 +214,8 @@ namespace AlibabaCloud std::string codecLongName; std::string height; std::string level; - std::string width; std::string numFrames; + std::string width; }; struct AudioStream { @@ -107,12 +224,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -149,123 +266,6 @@ namespace AlibabaCloud Streams streams; std::string fileSize; }; - struct Clip4 - { - struct TimeSpan - { - std::string duration; - std::string seek; - }; - TimeSpan timeSpan; - }; - struct SuperReso - { - std::string isHalfSample; - }; - struct SubtitleConfig - { - struct Subtitle - { - std::string map; - }; - struct ExtSubtitle - { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; - std::string charEnc; - Input input; - std::string fontName; - }; - std::vector extSubtitleList; - std::vector subtitleList; - }; - struct TransConfig - { - std::string isCheckAudioBitrate; - std::string adjDarMethod; - std::string isCheckAudioBitrateFail; - std::string isCheckVideoBitrateFail; - std::string isCheckReso; - std::string duration; - std::string isCheckVideoBitrate; - std::string transMode; - std::string isCheckResoFail; - }; - struct MuxConfig - { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - std::string ditherMode; - std::string isCustomPalette; - }; - Gif gif; - Segment segment; - }; - struct Audio - { - struct Volume - { - std::string level; - std::string method; - }; - std::string codec; - std::string qscale; - Volume volume; - std::string samplerate; - std::string bitrate; - std::string profile; - std::string channels; - }; - struct Video - { - struct BitrateBnd - { - std::string min; - std::string max; - }; - std::string bufsize; - std::string qscale; - std::string scanMode; - std::string preset; - std::string fps; - std::string gop; - BitrateBnd bitrateBnd; - std::string pixFmt; - std::string bitrate; - std::string profile; - std::string crop; - std::string codec; - std::string maxrate; - std::string pad; - std::string crf; - std::string maxFps; - std::string height; - std::string degrain; - std::string width; - }; - struct Container - { - std::string format; - }; - struct Encryption - { - std::string type; - std::string keyType; - std::string id; - std::string skipCnt; - std::string key; - std::string keyUri; - }; struct WaterMark { struct InputFile2 @@ -285,8 +285,8 @@ namespace AlibabaCloud }; struct Merge { - std::string mergeURL; std::string start; + std::string mergeURL; std::string duration; std::string roleArn; }; @@ -310,8 +310,8 @@ namespace AlibabaCloud std::string videoStreamMap; std::string audioStreamMap; Audio audio; - SubtitleConfig subtitleConfig; MuxConfig muxConfig; + SubtitleConfig subtitleConfig; std::string templateId; std::vector mergeList; }; @@ -321,27 +321,6 @@ namespace AlibabaCloud std::string errorMessage; std::string messageId; }; - struct InputsItem - { - struct EditingInput - { - struct InputFile - { - std::string bucket; - std::string object; - std::string location; - }; - struct InputConfig - { - std::string deinterlaceMethod; - std::string isNormalSar; - }; - InputConfig inputConfig; - std::string id; - InputFile inputFile; - }; - std::vector editingInputs; - }; struct ComplexEditingConfigsItem { struct Editing @@ -350,6 +329,12 @@ namespace AlibabaCloud { struct TimelineConfig { + struct TimelineConfigAudio + { + std::string channelLayout; + std::string samplerate; + std::string channels; + }; struct TimelineConfigVideo { std::string renderRatio; @@ -361,12 +346,6 @@ namespace AlibabaCloud std::string isOneTrackData; std::string width; }; - struct TimelineConfigAudio - { - std::string channelLayout; - std::string samplerate; - std::string channels; - }; TimelineConfigVideo timelineConfigVideo; TimelineConfigAudio timelineConfigAudio; }; @@ -405,8 +384,8 @@ namespace AlibabaCloud }; std::string type; std::string in; - std::string sourceType; std::string sourceID; + std::string sourceType; std::vector effects; std::string id; std::string sourceStrmMap; @@ -417,8 +396,29 @@ namespace AlibabaCloud }; Editing editing; }; - std::string message; + struct InputsItem + { + struct EditingInput + { + struct InputFile + { + std::string bucket; + std::string object; + std::string location; + }; + struct InputConfig + { + std::string deinterlaceMethod; + std::string isNormalSar; + }; + InputConfig inputConfig; + std::string id; + InputFile inputFile; + }; + std::vector editingInputs; + }; std::string finishTime; + std::string message; long percent; std::string state; MNSMessageResult mNSMessageResult; diff --git a/mts/include/alibabacloud/mts/model/SubmitCoverJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitCoverJobRequest.h index 03e07b047..6d5a940eb 100644 --- a/mts/include/alibabacloud/mts/model/SubmitCoverJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitCoverJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITCOVERJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITCOVERJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitCoverJobRequest : public RpcServiceRequest - { - - public: - SubmitCoverJobRequest(); - ~SubmitCoverJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getCoverConfig()const; - void setCoverConfig(const std::string& coverConfig); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string coverConfig_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITCOVERJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITCOVERJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITCOVERJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitCoverJobRequest : public RpcServiceRequest { +public: + SubmitCoverJobRequest(); + ~SubmitCoverJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getCoverConfig() const; + void setCoverConfig(const std::string &coverConfig); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string coverConfig_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITCOVERJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitEditingJobsRequest.h b/mts/include/alibabacloud/mts/model/SubmitEditingJobsRequest.h index 9c387f62e..069d9dc53 100644 --- a/mts/include/alibabacloud/mts/model/SubmitEditingJobsRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitEditingJobsRequest.h @@ -1,75 +1,78 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_MTS_MODEL_SUBMITEDITINGJOBSREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITEDITINGJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitEditingJobsRequest : public RpcServiceRequest - { - - public: - SubmitEditingJobsRequest(); - ~SubmitEditingJobsRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getOutputLocation()const; - void setOutputLocation(const std::string& outputLocation); - std::string getEditingInputs()const; - void setEditingInputs(const std::string& editingInputs); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getEditingJobOutputs()const; - void setEditingJobOutputs(const std::string& editingJobOutputs); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getOutputBucket()const; - void setOutputBucket(const std::string& outputBucket); - - private: - long resourceOwnerId_; - std::string outputLocation_; - std::string editingInputs_; - std::string accessKeyId_; - std::string editingJobOutputs_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string outputBucket_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITEDITINGJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITEDITINGJOBSREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITEDITINGJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitEditingJobsRequest : public RpcServiceRequest { +public: + SubmitEditingJobsRequest(); + ~SubmitEditingJobsRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getOutputLocation() const; + void setOutputLocation(const std::string &outputLocation); + std::string getEditingInputs() const; + void setEditingInputs(const std::string &editingInputs); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getEditingJobURL() const; + void setEditingJobURL(const std::string &editingJobURL); + long getEditingJobOssFileUid() const; + void setEditingJobOssFileUid(long editingJobOssFileUid); + std::string getEditingJobOutputs() const; + void setEditingJobOutputs(const std::string &editingJobOutputs); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getOutputBucket() const; + void setOutputBucket(const std::string &outputBucket); + std::string getEditingJobOssFileRoleArn() const; + void setEditingJobOssFileRoleArn(const std::string &editingJobOssFileRoleArn); + +private: + long resourceOwnerId_; + std::string outputLocation_; + std::string editingInputs_; + std::string accessKeyId_; + std::string editingJobURL_; + long editingJobOssFileUid_; + std::string editingJobOutputs_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string outputBucket_; + std::string editingJobOssFileRoleArn_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITEDITINGJOBSREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitEditingJobsResult.h b/mts/include/alibabacloud/mts/model/SubmitEditingJobsResult.h index 30e3d47bc..62b2d1697 100644 --- a/mts/include/alibabacloud/mts/model/SubmitEditingJobsResult.h +++ b/mts/include/alibabacloud/mts/model/SubmitEditingJobsResult.h @@ -38,6 +38,82 @@ namespace AlibabaCloud { struct EditingConfig { + struct Video + { + struct BitrateBnd + { + std::string min; + std::string max; + }; + std::string bufsize; + std::string qscale; + std::string scanMode; + std::string preset; + std::string fps; + std::string gop; + BitrateBnd bitrateBnd; + std::string pixFmt; + std::string bitrate; + std::string profile; + std::string crop; + std::string pad; + std::string codec; + std::string maxrate; + std::string maxFps; + std::string crf; + std::string height; + std::string degrain; + std::string width; + }; + struct TransConfig + { + std::string isCheckAudioBitrate; + std::string adjDarMethod; + std::string isCheckAudioBitrateFail; + std::string isCheckVideoBitrateFail; + std::string isCheckReso; + std::string duration; + std::string isCheckVideoBitrate; + std::string transMode; + std::string isCheckResoFail; + }; + struct Encryption + { + std::string type; + std::string keyType; + std::string id; + std::string skipCnt; + std::string key; + std::string keyUri; + }; + struct M3U8NonStandardSupport + { + struct TS + { + bool sizeSupport; + bool md5Support; + }; + TS tS; + }; + struct Audio + { + struct Volume + { + std::string level; + std::string method; + }; + std::string codec; + std::string qscale; + Volume volume; + std::string samplerate; + std::string bitrate; + std::string profile; + std::string channels; + }; + struct SuperReso + { + std::string isHalfSample; + }; struct DigiWaterMark { struct InputFile2 @@ -57,14 +133,126 @@ namespace AlibabaCloud std::string roleArn; std::string location; }; - struct M3U8NonStandardSupport + struct Editing { - struct TS + struct Timeline { - bool md5Support; - bool sizeSupport; + struct TimelineConfig + { + struct TimelineConfigAudio + { + std::string channelLayout; + std::string samplerate; + std::string channels; + }; + struct TimelineConfigVideo + { + std::string renderRatio; + std::string reclosePrec; + std::string fps; + std::string isGpuData; + std::string height; + std::string bgColor; + std::string isOneTrackData; + std::string width; + }; + TimelineConfigVideo timelineConfigVideo; + TimelineConfigAudio timelineConfigAudio; + }; + struct Track + { + struct Clip3 + { + struct ClipsConfig + { + struct ClipsConfigVideo + { + std::string t; + std::string l; + }; + ClipsConfigVideo clipsConfigVideo; + }; + std::string clipID; + std::string in; + ClipsConfig clipsConfig; + std::string out; + }; + std::string order; + std::vector clips; + std::string type; + std::string id; + }; + std::vector trackList; + TimelineConfig timelineConfig; }; - TS tS; + struct Clip + { + struct Effect + { + std::string effect; + std::string effectConfig; + }; + std::string type; + std::string in; + std::string sourceID; + std::string sourceType; + std::vector effects; + std::string id; + std::string sourceStrmMap; + std::string out; + }; + Timeline timeline; + std::vector clipList; + }; + struct Container + { + std::string format; + }; + struct Clip4 + { + struct TimeSpan + { + std::string duration; + std::string seek; + }; + TimeSpan timeSpan; + }; + struct MuxConfig + { + struct Gif + { + std::string finalDelay; + std::string loop; + std::string ditherMode; + std::string isCustomPalette; + }; + struct Segment + { + std::string duration; + }; + Gif gif; + Segment segment; + }; + struct SubtitleConfig + { + struct ExtSubtitle + { + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; + std::string charEnc; + Input input; + std::string fontName; + }; + struct Subtitle + { + std::string map; + }; + std::vector extSubtitleList; + std::vector subtitleList; }; struct Properties { @@ -81,17 +269,17 @@ namespace AlibabaCloud std::string codecTag; std::string codecTimeBase; std::string sar; - std::string fps; std::string startTime; + std::string fps; std::string index; - std::string duration; std::string lang; + std::string duration; std::string pixFmt; NetworkCost networkCost; - std::string codecName; std::string bitrate; - std::string profile; + std::string codecName; std::string avgFPS; + std::string profile; std::string timebase; std::string codecTagString; std::string hasBFrames; @@ -99,8 +287,8 @@ namespace AlibabaCloud std::string codecLongName; std::string height; std::string level; - std::string width; std::string numFrames; + std::string width; }; struct AudioStream { @@ -109,12 +297,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -151,194 +339,6 @@ namespace AlibabaCloud Streams streams; std::string fileSize; }; - struct Clip - { - struct TimeSpan - { - std::string duration; - std::string seek; - }; - TimeSpan timeSpan; - }; - struct SuperReso - { - std::string isHalfSample; - }; - struct SubtitleConfig - { - struct Subtitle - { - std::string map; - }; - struct ExtSubtitle - { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; - std::string charEnc; - Input input; - std::string fontName; - }; - std::vector extSubtitleList; - std::vector subtitleList; - }; - struct TransConfig - { - std::string isCheckAudioBitrate; - std::string adjDarMethod; - std::string isCheckAudioBitrateFail; - std::string isCheckVideoBitrateFail; - std::string isCheckReso; - std::string duration; - std::string isCheckVideoBitrate; - std::string transMode; - std::string isCheckResoFail; - }; - struct MuxConfig - { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - std::string ditherMode; - std::string isCustomPalette; - }; - Gif gif; - Segment segment; - }; - struct Audio - { - struct Volume - { - std::string level; - std::string method; - }; - std::string codec; - std::string qscale; - Volume volume; - std::string samplerate; - std::string bitrate; - std::string profile; - std::string channels; - }; - struct Video - { - struct BitrateBnd - { - std::string min; - std::string max; - }; - std::string bufsize; - std::string qscale; - std::string scanMode; - std::string preset; - std::string fps; - std::string gop; - BitrateBnd bitrateBnd; - std::string pixFmt; - std::string bitrate; - std::string profile; - std::string crop; - std::string codec; - std::string maxrate; - std::string pad; - std::string crf; - std::string maxFps; - std::string height; - std::string degrain; - std::string width; - }; - struct Container - { - std::string format; - }; - struct Encryption - { - std::string type; - std::string keyType; - std::string id; - std::string skipCnt; - std::string key; - std::string keyUri; - }; - struct Editing - { - struct Timeline - { - struct TimelineConfig - { - struct TimelineConfigVideo - { - std::string renderRatio; - std::string reclosePrec; - std::string fps; - std::string isGpuData; - std::string height; - std::string bgColor; - std::string isOneTrackData; - std::string width; - }; - struct TimelineConfigAudio - { - std::string channelLayout; - std::string samplerate; - std::string channels; - }; - TimelineConfigVideo timelineConfigVideo; - TimelineConfigAudio timelineConfigAudio; - }; - struct Track - { - struct Clip4 - { - struct ClipsConfig - { - struct ClipsConfigVideo - { - std::string t; - std::string l; - }; - ClipsConfigVideo clipsConfigVideo; - }; - std::string clipID; - std::string in; - ClipsConfig clipsConfig; - std::string out; - }; - std::string order; - std::vector clips; - std::string type; - std::string id; - }; - std::vector trackList; - TimelineConfig timelineConfig; - }; - struct Clip3 - { - struct Effect - { - std::string effect; - std::string effectConfig; - }; - std::string type; - std::string in; - std::string sourceType; - std::string sourceID; - std::vector effects; - std::string id; - std::string sourceStrmMap; - std::string out; - }; - Timeline timeline; - std::vector clipList; - }; struct WaterMark { struct InputFile1 @@ -358,8 +358,8 @@ namespace AlibabaCloud }; struct Merge { - std::string mergeURL; std::string start; + std::string mergeURL; std::string duration; std::string roleArn; }; @@ -369,16 +369,16 @@ namespace AlibabaCloud Editing editing; Encryption encryption; Properties properties; - Clip clip; SuperReso superReso; std::vector waterMarkList; Container container; TransConfig transConfig; std::string waterMarkConfigUrl; - SubtitleConfig subtitleConfig; MuxConfig muxConfig; + SubtitleConfig subtitleConfig; std::string templateId; OutputFile outputFile; + Clip4 clip4; std::string priority; std::string mergeConfigUrl; std::string deWatermark; @@ -413,8 +413,8 @@ namespace AlibabaCloud InputFile inputFile; }; std::vector editingInputs; - std::string message; std::string finishTime; + std::string message; long percent; std::string state; MNSMessageResult mNSMessageResult; diff --git a/mts/include/alibabacloud/mts/model/SubmitFacerecogJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitFacerecogJobRequest.h index 5cb8b22e2..a9be5dead 100644 --- a/mts/include/alibabacloud/mts/model/SubmitFacerecogJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitFacerecogJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITFACERECOGJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITFACERECOGJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitFacerecogJobRequest : public RpcServiceRequest - { - - public: - SubmitFacerecogJobRequest(); - ~SubmitFacerecogJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getFacerecogConfig()const; - void setFacerecogConfig(const std::string& facerecogConfig); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string facerecogConfig_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFACERECOGJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITFACERECOGJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITFACERECOGJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitFacerecogJobRequest : public RpcServiceRequest { +public: + SubmitFacerecogJobRequest(); + ~SubmitFacerecogJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getFacerecogConfig() const; + void setFacerecogConfig(const std::string &facerecogConfig); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string facerecogConfig_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFACERECOGJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitFpCompareJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitFpCompareJobRequest.h index 5312b1598..9b197c29b 100644 --- a/mts/include/alibabacloud/mts/model/SubmitFpCompareJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitFpCompareJobRequest.h @@ -1,78 +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_MTS_MODEL_SUBMITFPCOMPAREJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITFPCOMPAREJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitFpCompareJobRequest : public RpcServiceRequest - { - - public: - SubmitFpCompareJobRequest(); - ~SubmitFpCompareJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getFpDBId()const; - void setFpDBId(const std::string& fpDBId); - std::string getMasterMedia()const; - void setMasterMedia(const std::string& masterMedia); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getQueryMedia()const; - void setQueryMedia(const std::string& queryMedia); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getMatchedFrameStorage()const; - void setMatchedFrameStorage(const std::string& matchedFrameStorage); - - private: - long resourceOwnerId_; - std::string fpDBId_; - std::string masterMedia_; - std::string accessKeyId_; - std::string userData_; - std::string queryMedia_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string matchedFrameStorage_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFPCOMPAREJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITFPCOMPAREJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITFPCOMPAREJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitFpCompareJobRequest : public RpcServiceRequest { +public: + SubmitFpCompareJobRequest(); + ~SubmitFpCompareJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFpDBId() const; + void setFpDBId(const std::string &fpDBId); + std::string getMasterMedia() const; + void setMasterMedia(const std::string &masterMedia); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getQueryMedia() const; + void setQueryMedia(const std::string &queryMedia); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getMatchedFrameStorage() const; + void setMatchedFrameStorage(const std::string &matchedFrameStorage); + +private: + long resourceOwnerId_; + std::string fpDBId_; + std::string masterMedia_; + std::string accessKeyId_; + std::string userData_; + std::string queryMedia_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string matchedFrameStorage_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFPCOMPAREJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitFpDBDeleteJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitFpDBDeleteJobRequest.h new file mode 100644 index 000000000..f0ea50193 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitFpDBDeleteJobRequest.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_MTS_MODEL_SUBMITFPDBDELETEJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITFPDBDELETEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitFpDBDeleteJobRequest : public RpcServiceRequest { +public: + SubmitFpDBDeleteJobRequest(); + ~SubmitFpDBDeleteJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFpDBId() const; + void setFpDBId(const std::string &fpDBId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getDelType() const; + void setDelType(const std::string &delType); + +private: + long resourceOwnerId_; + std::string fpDBId_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string delType_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFPDBDELETEJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitFpDBDeleteJobResult.h b/mts/include/alibabacloud/mts/model/SubmitFpDBDeleteJobResult.h new file mode 100644 index 000000000..dd255690a --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitFpDBDeleteJobResult.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_MTS_MODEL_SUBMITFPDBDELETEJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITFPDBDELETEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT SubmitFpDBDeleteJobResult : public ServiceResult + { + public: + + + SubmitFpDBDeleteJobResult(); + explicit SubmitFpDBDeleteJobResult(const std::string &payload); + ~SubmitFpDBDeleteJobResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFPDBDELETEJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/SubmitFpFileDeleteJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitFpFileDeleteJobRequest.h new file mode 100644 index 000000000..902aec101 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitFpFileDeleteJobRequest.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_MTS_MODEL_SUBMITFPFILEDELETEJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITFPFILEDELETEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitFpFileDeleteJobRequest : public RpcServiceRequest { +public: + SubmitFpFileDeleteJobRequest(); + ~SubmitFpFileDeleteJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFpDBId() const; + void setFpDBId(const std::string &fpDBId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getFileIds() const; + void setFileIds(const std::string &fileIds); + +private: + long resourceOwnerId_; + std::string fpDBId_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string fileIds_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFPFILEDELETEJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitFpFileDeleteJobResult.h b/mts/include/alibabacloud/mts/model/SubmitFpFileDeleteJobResult.h new file mode 100644 index 000000000..b5a4d9456 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitFpFileDeleteJobResult.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_MTS_MODEL_SUBMITFPFILEDELETEJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITFPFILEDELETEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT SubmitFpFileDeleteJobResult : public ServiceResult + { + public: + + + SubmitFpFileDeleteJobResult(); + explicit SubmitFpFileDeleteJobResult(const std::string &payload); + ~SubmitFpFileDeleteJobResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFPFILEDELETEJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/SubmitFpShotJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitFpShotJobRequest.h index ccd105767..8f62f96bc 100644 --- a/mts/include/alibabacloud/mts/model/SubmitFpShotJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitFpShotJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITFPSHOTJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITFPSHOTJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitFpShotJobRequest : public RpcServiceRequest - { - - public: - SubmitFpShotJobRequest(); - ~SubmitFpShotJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getFpShotConfig()const; - void setFpShotConfig(const std::string& fpShotConfig); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string fpShotConfig_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFPSHOTJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITFPSHOTJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITFPSHOTJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitFpShotJobRequest : public RpcServiceRequest { +public: + SubmitFpShotJobRequest(); + ~SubmitFpShotJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getFpShotConfig() const; + void setFpShotConfig(const std::string &fpShotConfig); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string fpShotConfig_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITFPSHOTJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitIProductionJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitIProductionJobRequest.h index f93eb5a2b..a2fd2963d 100644 --- a/mts/include/alibabacloud/mts/model/SubmitIProductionJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitIProductionJobRequest.h @@ -1,81 +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_MTS_MODEL_SUBMITIPRODUCTIONJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITIPRODUCTIONJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitIProductionJobRequest : public RpcServiceRequest - { - - public: - SubmitIProductionJobRequest(); - ~SubmitIProductionJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getJobParams()const; - void setJobParams(const std::string& jobParams); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getFunctionName()const; - void setFunctionName(const std::string& functionName); - std::string getNotifyUrl()const; - void setNotifyUrl(const std::string& notifyUrl); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getModelId()const; - void setModelId(const std::string& modelId); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getScheduleParams()const; - void setScheduleParams(const std::string& scheduleParams); - - private: - long resourceOwnerId_; - std::string jobParams_; - std::string accessKeyId_; - std::string userData_; - std::string functionName_; - std::string notifyUrl_; - std::string resourceOwnerAccount_; - std::string modelId_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string scheduleParams_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITIPRODUCTIONJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITIPRODUCTIONJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITIPRODUCTIONJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitIProductionJobRequest : public RpcServiceRequest { +public: + SubmitIProductionJobRequest(); + ~SubmitIProductionJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getJobParams() const; + void setJobParams(const std::string &jobParams); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getOutput() const; + void setOutput(const std::string &output); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getFunctionName() const; + void setFunctionName(const std::string &functionName); + std::string getNotifyUrl() const; + void setNotifyUrl(const std::string ¬ifyUrl); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getModelId() const; + void setModelId(const std::string &modelId); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + std::string getScheduleParams() const; + void setScheduleParams(const std::string &scheduleParams); + +private: + long resourceOwnerId_; + std::string jobParams_; + std::string accessKeyId_; + std::string output_; + std::string userData_; + std::string functionName_; + std::string notifyUrl_; + std::string resourceOwnerAccount_; + std::string modelId_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; + std::string scheduleParams_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITIPRODUCTIONJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitIProductionJobResult.h b/mts/include/alibabacloud/mts/model/SubmitIProductionJobResult.h index b98448a13..cb418426a 100644 --- a/mts/include/alibabacloud/mts/model/SubmitIProductionJobResult.h +++ b/mts/include/alibabacloud/mts/model/SubmitIProductionJobResult.h @@ -38,11 +38,13 @@ namespace AlibabaCloud explicit SubmitIProductionJobResult(const std::string &payload); ~SubmitIProductionJobResult(); std::string getJobId()const; + std::string getResult()const; protected: void parse(const std::string &payload); private: std::string jobId_; + std::string result_; }; } diff --git a/mts/include/alibabacloud/mts/model/SubmitImageQualityJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitImageQualityJobRequest.h index cb84db215..7431b4b3e 100644 --- a/mts/include/alibabacloud/mts/model/SubmitImageQualityJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitImageQualityJobRequest.h @@ -1,69 +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_MTS_MODEL_SUBMITIMAGEQUALITYJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITIMAGEQUALITYJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitImageQualityJobRequest : public RpcServiceRequest - { - - public: - SubmitImageQualityJobRequest(); - ~SubmitImageQualityJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITIMAGEQUALITYJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITIMAGEQUALITYJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITIMAGEQUALITYJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitImageQualityJobRequest : public RpcServiceRequest { +public: + SubmitImageQualityJobRequest(); + ~SubmitImageQualityJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITIMAGEQUALITYJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitImageQualityJobResult.h b/mts/include/alibabacloud/mts/model/SubmitImageQualityJobResult.h index f85810465..f174bc1d0 100644 --- a/mts/include/alibabacloud/mts/model/SubmitImageQualityJobResult.h +++ b/mts/include/alibabacloud/mts/model/SubmitImageQualityJobResult.h @@ -34,6 +34,12 @@ namespace AlibabaCloud public: struct ImageQualityJob { + struct Result + { + std::string score; + std::string message; + std::string code; + }; struct Input { std::string bucket; @@ -41,12 +47,6 @@ namespace AlibabaCloud std::string url; std::string location; }; - struct Result - { - std::string score; - std::string message; - std::string code; - }; Input input; std::string userData; std::string state; diff --git a/mts/include/alibabacloud/mts/model/SubmitImageSearchJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitImageSearchJobRequest.h index 607e98333..f07580c6e 100644 --- a/mts/include/alibabacloud/mts/model/SubmitImageSearchJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitImageSearchJobRequest.h @@ -1,78 +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_MTS_MODEL_SUBMITIMAGESEARCHJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITIMAGESEARCHJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitImageSearchJobRequest : public RpcServiceRequest - { - - public: - SubmitImageSearchJobRequest(); - ~SubmitImageSearchJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getFpDBId()const; - void setFpDBId(const std::string& fpDBId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getInputVideo()const; - void setInputVideo(const std::string& inputVideo); - std::string getInputImage()const; - void setInputImage(const std::string& inputImage); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getConfig()const; - void setConfig(const std::string& config); - - private: - long resourceOwnerId_; - std::string fpDBId_; - std::string accessKeyId_; - std::string userData_; - std::string inputVideo_; - std::string inputImage_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string config_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITIMAGESEARCHJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITIMAGESEARCHJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITIMAGESEARCHJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitImageSearchJobRequest : public RpcServiceRequest { +public: + SubmitImageSearchJobRequest(); + ~SubmitImageSearchJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFpDBId() const; + void setFpDBId(const std::string &fpDBId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getInputVideo() const; + void setInputVideo(const std::string &inputVideo); + std::string getInputImage() const; + void setInputImage(const std::string &inputImage); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getConfig() const; + void setConfig(const std::string &config); + +private: + long resourceOwnerId_; + std::string fpDBId_; + std::string accessKeyId_; + std::string userData_; + std::string inputVideo_; + std::string inputImage_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string config_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITIMAGESEARCHJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitInferenceJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitInferenceJobRequest.h new file mode 100644 index 000000000..47d780b1f --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitInferenceJobRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT 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_MTS_MODEL_SUBMITINFERENCEJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITINFERENCEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitInferenceJobRequest : public RpcServiceRequest { +public: + SubmitInferenceJobRequest(); + ~SubmitInferenceJobRequest(); + std::string getInput() const; + void setInput(const std::string &input); + std::string getModelType() const; + void setModelType(const std::string &modelType); + std::string getServerName() const; + void setServerName(const std::string &serverName); + +private: + std::string input_; + std::string modelType_; + std::string serverName_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITINFERENCEJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitInferenceJobResult.h b/mts/include/alibabacloud/mts/model/SubmitInferenceJobResult.h new file mode 100644 index 000000000..da716c8cf --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitInferenceJobResult.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_MTS_MODEL_SUBMITINFERENCEJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITINFERENCEJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT SubmitInferenceJobResult : public ServiceResult + { + public: + + + SubmitInferenceJobResult(); + explicit SubmitInferenceJobResult(const std::string &payload); + ~SubmitInferenceJobResult(); + std::string getTestId()const; + std::string getMessage()const; + std::string getCode()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string testId_; + std::string message_; + std::string code_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITINFERENCEJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/SubmitInnerJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitInnerJobRequest.h new file mode 100644 index 000000000..4791a6d18 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitInnerJobRequest.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_MTS_MODEL_SUBMITINNERJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITINNERJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitInnerJobRequest : public RpcServiceRequest { +public: + SubmitInnerJobRequest(); + ~SubmitInnerJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVideo() const; + void setVideo(const std::string &video); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getUid() const; + void setUid(long uid); + std::string getImages() const; + void setImages(const std::string &images); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getConfig() const; + void setConfig(const std::string &config); + +private: + long resourceOwnerId_; + std::string video_; + std::string accessKeyId_; + long uid_; + std::string images_; + std::string resourceOwnerAccount_; + long ownerId_; + std::string pipelineId_; + std::string config_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITINNERJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitInnerJobResult.h b/mts/include/alibabacloud/mts/model/SubmitInnerJobResult.h new file mode 100644 index 000000000..5bec8ceca --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitInnerJobResult.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_MTS_MODEL_SUBMITINNERJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITINNERJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT SubmitInnerJobResult : public ServiceResult + { + public: + + + SubmitInnerJobResult(); + explicit SubmitInnerJobResult(const std::string &payload); + ~SubmitInnerJobResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITINNERJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/SubmitJobsRequest.h b/mts/include/alibabacloud/mts/model/SubmitJobsRequest.h index 99ec021eb..e8d7d2db9 100644 --- a/mts/include/alibabacloud/mts/model/SubmitJobsRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitJobsRequest.h @@ -1,75 +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_MTS_MODEL_SUBMITJOBSREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitJobsRequest : public RpcServiceRequest - { - - public: - SubmitJobsRequest(); - ~SubmitJobsRequest(); - - std::string getOutputs()const; - void setOutputs(const std::string& outputs); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getOutputLocation()const; - void setOutputLocation(const std::string& outputLocation); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - std::string getOutputBucket()const; - void setOutputBucket(const std::string& outputBucket); - - private: - std::string outputs_; - long resourceOwnerId_; - std::string outputLocation_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - std::string outputBucket_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITJOBSREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitJobsRequest : public RpcServiceRequest { +public: + SubmitJobsRequest(); + ~SubmitJobsRequest(); + std::string getOutputs() const; + void setOutputs(const std::string &outputs); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getOutputLocation() const; + void setOutputLocation(const std::string &outputLocation); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + std::string getOutputBucket() const; + void setOutputBucket(const std::string &outputBucket); + +private: + std::string outputs_; + long resourceOwnerId_; + std::string outputLocation_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; + std::string outputBucket_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITJOBSREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitJobsResult.h b/mts/include/alibabacloud/mts/model/SubmitJobsResult.h index 0bbe2d7ad..cc7cdb54a 100644 --- a/mts/include/alibabacloud/mts/model/SubmitJobsResult.h +++ b/mts/include/alibabacloud/mts/model/SubmitJobsResult.h @@ -36,14 +36,84 @@ namespace AlibabaCloud { struct Job { - struct Input - { - std::string bucket; - std::string object; - std::string location; - }; struct Output { + struct Video + { + struct BitrateBnd + { + std::string min; + std::string max; + }; + std::string bufsize; + std::string qscale; + std::string scanMode; + std::string preset; + std::string fps; + std::string gop; + BitrateBnd bitrateBnd; + std::string pixFmt; + std::string bitrate; + std::string profile; + std::string crop; + std::string pad; + std::string codec; + std::string maxrate; + std::string maxFps; + std::string crf; + std::string height; + std::string degrain; + std::string width; + std::string resoPriority; + }; + struct TransConfig + { + std::string isCheckAudioBitrate; + std::string adjDarMethod; + std::string isCheckAudioBitrateFail; + std::string isCheckVideoBitrateFail; + std::string isCheckReso; + std::string isCheckVideoBitrate; + std::string transMode; + std::string isCheckResoFail; + }; + struct Encryption + { + std::string type; + std::string keyType; + std::string id; + std::string skipCnt; + std::string key; + std::string keyUri; + }; + struct M3U8NonStandardSupport + { + struct TS + { + bool sizeSupport; + bool md5Support; + }; + TS tS; + }; + struct Audio + { + struct Volume + { + std::string level; + std::string method; + }; + std::string codec; + std::string qscale; + Volume volume; + std::string samplerate; + std::string bitrate; + std::string profile; + std::string channels; + }; + struct SuperReso + { + std::string isHalfSample; + }; struct DigiWaterMark { struct InputFile1 @@ -63,14 +133,60 @@ namespace AlibabaCloud std::string roleArn; std::string location; }; - struct M3U8NonStandardSupport + struct Container { - struct TS + std::string format; + }; + struct Clip + { + struct TimeSpan { - bool md5Support; - bool sizeSupport; + std::string duration; + std::string seek; }; - TS tS; + TimeSpan timeSpan; + }; + struct MuxConfig + { + struct Webp + { + std::string loop; + }; + struct Gif + { + std::string finalDelay; + std::string loop; + std::string ditherMode; + std::string isCustomPalette; + }; + struct Segment + { + std::string duration; + }; + Webp webp; + Gif gif; + Segment segment; + }; + struct SubtitleConfig + { + struct ExtSubtitle + { + struct Input2 + { + std::string bucket; + std::string object; + std::string location; + }; + std::string charEnc; + std::string fontName; + Input2 input2; + }; + struct Subtitle + { + std::string map; + }; + std::vector extSubtitleList; + std::vector subtitleList; }; struct Properties { @@ -87,17 +203,17 @@ namespace AlibabaCloud std::string codecTag; std::string codecTimeBase; std::string sar; - std::string fps; std::string startTime; + std::string fps; std::string index; - std::string duration; std::string lang; + std::string duration; std::string pixFmt; NetworkCost networkCost; - std::string codecName; std::string bitrate; - std::string profile; + std::string codecName; std::string avgFPS; + std::string profile; std::string timebase; std::string codecTagString; std::string hasBFrames; @@ -105,8 +221,8 @@ namespace AlibabaCloud std::string codecLongName; std::string height; std::string level; - std::string width; std::string numFrames; + std::string width; }; struct AudioStream { @@ -115,12 +231,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -157,128 +273,6 @@ namespace AlibabaCloud Streams streams; std::string fileSize; }; - struct Clip - { - struct TimeSpan - { - std::string duration; - std::string seek; - }; - TimeSpan timeSpan; - }; - struct SuperReso - { - std::string isHalfSample; - }; - struct SubtitleConfig - { - struct Subtitle - { - std::string map; - }; - struct ExtSubtitle - { - struct Input2 - { - std::string bucket; - std::string object; - std::string location; - }; - std::string charEnc; - std::string fontName; - Input2 input2; - }; - std::vector extSubtitleList; - std::vector subtitleList; - }; - struct TransConfig - { - std::string isCheckAudioBitrate; - std::string adjDarMethod; - std::string isCheckAudioBitrateFail; - std::string isCheckVideoBitrateFail; - std::string isCheckReso; - std::string isCheckVideoBitrate; - std::string transMode; - std::string isCheckResoFail; - }; - struct MuxConfig - { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - std::string ditherMode; - std::string isCustomPalette; - }; - struct Webp - { - std::string loop; - }; - Gif gif; - Webp webp; - Segment segment; - }; - struct Audio - { - struct Volume - { - std::string level; - std::string method; - }; - std::string codec; - std::string qscale; - Volume volume; - std::string samplerate; - std::string bitrate; - std::string profile; - std::string channels; - }; - struct Video - { - struct BitrateBnd - { - std::string min; - std::string max; - }; - std::string bufsize; - std::string qscale; - std::string scanMode; - std::string preset; - std::string fps; - std::string gop; - BitrateBnd bitrateBnd; - std::string pixFmt; - std::string bitrate; - std::string profile; - std::string crop; - std::string codec; - std::string maxrate; - std::string pad; - std::string crf; - std::string maxFps; - std::string height; - std::string degrain; - std::string width; - std::string resoPriority; - }; - struct Container - { - std::string format; - }; - struct Encryption - { - std::string type; - std::string keyType; - std::string id; - std::string skipCnt; - std::string key; - std::string keyUri; - }; struct WaterMark { struct InputFile @@ -298,28 +292,11 @@ namespace AlibabaCloud }; struct Merge { - std::string mergeURL; std::string start; + std::string mergeURL; std::string duration; std::string roleArn; }; - struct Opening - { - std::string start; - std::string openUrl; - std::string height; - std::string width; - }; - struct TailSlate - { - std::string tailUrl; - std::string start; - std::string blendDuration; - std::string height; - std::string bgColor; - std::string width; - bool isMergeAudio; - }; struct OutSubtitle { struct OutSubtitleFile @@ -342,19 +319,36 @@ namespace AlibabaCloud std::string duration; std::string map; }; + struct Opening + { + std::string start; + std::string openUrl; + std::string height; + std::string width; + }; + struct TailSlate + { + std::string tailUrl; + std::string start; + std::string blendDuration; + std::string height; + std::string bgColor; + std::string width; + bool isMergeAudio; + }; std::string rotate; DigiWaterMark digiWaterMark; std::string userData; Encryption encryption; Properties properties; - Clip clip; SuperReso superReso; + Clip clip; std::vector waterMarkList; Container container; TransConfig transConfig; std::string waterMarkConfigUrl; - SubtitleConfig subtitleConfig; MuxConfig muxConfig; + SubtitleConfig subtitleConfig; std::vector openingList; std::string templateId; OutputFile outputFile; @@ -371,6 +365,12 @@ namespace AlibabaCloud Audio audio; std::vector mergeList; }; + struct Input + { + std::string bucket; + std::string object; + std::string location; + }; struct MNSMessageResult { std::string errorCode; @@ -378,8 +378,8 @@ namespace AlibabaCloud std::string messageId; }; Input input; - std::string message; std::string finishTime; + std::string message; long percent; std::string state; Output output; diff --git a/mts/include/alibabacloud/mts/model/SubmitMCJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitMCJobRequest.h index 566751c3f..16d0684a7 100644 --- a/mts/include/alibabacloud/mts/model/SubmitMCJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitMCJobRequest.h @@ -1,78 +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_MTS_MODEL_SUBMITMCJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITMCJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitMCJobRequest : public RpcServiceRequest - { - - public: - SubmitMCJobRequest(); - ~SubmitMCJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVideo()const; - void setVideo(const std::string& video); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getImages()const; - void setImages(const std::string& images); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getCensorConfig()const; - void setCensorConfig(const std::string& censorConfig); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getTexts()const; - void setTexts(const std::string& texts); - - private: - long resourceOwnerId_; - std::string video_; - std::string accessKeyId_; - std::string userData_; - std::string images_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string censorConfig_; - std::string pipelineId_; - std::string texts_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMCJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITMCJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITMCJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitMCJobRequest : public RpcServiceRequest { +public: + SubmitMCJobRequest(); + ~SubmitMCJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVideo() const; + void setVideo(const std::string &video); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getImages() const; + void setImages(const std::string &images); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCensorConfig() const; + void setCensorConfig(const std::string &censorConfig); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getTexts() const; + void setTexts(const std::string &texts); + +private: + long resourceOwnerId_; + std::string video_; + std::string accessKeyId_; + std::string userData_; + std::string images_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string censorConfig_; + std::string pipelineId_; + std::string texts_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMCJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitMcuJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitMcuJobRequest.h index bdef28d5f..2a1fcfa8b 100644 --- a/mts/include/alibabacloud/mts/model/SubmitMcuJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitMcuJobRequest.h @@ -1,75 +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_MTS_MODEL_SUBMITMCUJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITMCUJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitMcuJobRequest : public RpcServiceRequest - { - - public: - SubmitMcuJobRequest(); - ~SubmitMcuJobRequest(); - - std::string get_Template()const; - void set_Template(const std::string& _template); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - std::string _template_; - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string templateId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMCUJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITMCUJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITMCUJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitMcuJobRequest : public RpcServiceRequest { +public: + SubmitMcuJobRequest(); + ~SubmitMcuJobRequest(); + std::string get_Template() const; + void set_Template(const std::string &_template); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + std::string _template_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string templateId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMCUJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitMediaCensorJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitMediaCensorJobRequest.h index b506cf265..40b90a534 100644 --- a/mts/include/alibabacloud/mts/model/SubmitMediaCensorJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitMediaCensorJobRequest.h @@ -1,84 +1,78 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT 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_MTS_MODEL_SUBMITMEDIACENSORJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITMEDIACENSORJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitMediaCensorJobRequest : public RpcServiceRequest - { - - public: - SubmitMediaCensorJobRequest(); - ~SubmitMediaCensorJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getTitle()const; - void setTitle(const std::string& title); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getVideoCensorConfig()const; - void setVideoCensorConfig(const std::string& videoCensorConfig); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getCoverImages()const; - void setCoverImages(const std::string& coverImages); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - std::string getBarrages()const; - void setBarrages(const std::string& barrages); - - private: - long resourceOwnerId_; - std::string description_; - std::string title_; - std::string accessKeyId_; - std::string videoCensorConfig_; - std::string userData_; - std::string coverImages_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - std::string barrages_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMEDIACENSORJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITMEDIACENSORJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITMEDIACENSORJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitMediaCensorJobRequest : public RpcServiceRequest { +public: + SubmitMediaCensorJobRequest(); + ~SubmitMediaCensorJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getTitle() const; + void setTitle(const std::string &title); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getVideoCensorConfig() const; + void setVideoCensorConfig(const std::string &videoCensorConfig); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getCoverImages() const; + void setCoverImages(const std::string &coverImages); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + std::string getBarrages() const; + void setBarrages(const std::string &barrages); + +private: + long resourceOwnerId_; + std::string description_; + std::string title_; + std::string accessKeyId_; + std::string videoCensorConfig_; + std::string userData_; + std::string coverImages_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; + std::string barrages_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMEDIACENSORJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitMediaDetailJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitMediaDetailJobRequest.h index f3239ccf8..5371cab6d 100644 --- a/mts/include/alibabacloud/mts/model/SubmitMediaDetailJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitMediaDetailJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITMEDIADETAILJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITMEDIADETAILJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitMediaDetailJobRequest : public RpcServiceRequest - { - - public: - SubmitMediaDetailJobRequest(); - ~SubmitMediaDetailJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - std::string getMediaDetailConfig()const; - void setMediaDetailConfig(const std::string& mediaDetailConfig); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - std::string mediaDetailConfig_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMEDIADETAILJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITMEDIADETAILJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITMEDIADETAILJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitMediaDetailJobRequest : public RpcServiceRequest { +public: + SubmitMediaDetailJobRequest(); + ~SubmitMediaDetailJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + std::string getMediaDetailConfig() const; + void setMediaDetailConfig(const std::string &mediaDetailConfig); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; + std::string mediaDetailConfig_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMEDIADETAILJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitMediaFpDeleteJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitMediaFpDeleteJobRequest.h index d5b3e6d33..3af0bbac9 100644 --- a/mts/include/alibabacloud/mts/model/SubmitMediaFpDeleteJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitMediaFpDeleteJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITMEDIAFPDELETEJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITMEDIAFPDELETEJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitMediaFpDeleteJobRequest : public RpcServiceRequest - { - - public: - SubmitMediaFpDeleteJobRequest(); - ~SubmitMediaFpDeleteJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getFpDBId()const; - void setFpDBId(const std::string& fpDBId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getPrimaryKey()const; - void setPrimaryKey(const std::string& primaryKey); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - - private: - long resourceOwnerId_; - std::string fpDBId_; - std::string accessKeyId_; - std::string userData_; - std::string primaryKey_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMEDIAFPDELETEJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITMEDIAFPDELETEJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITMEDIAFPDELETEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitMediaFpDeleteJobRequest : public RpcServiceRequest { +public: + SubmitMediaFpDeleteJobRequest(); + ~SubmitMediaFpDeleteJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getFpDBId() const; + void setFpDBId(const std::string &fpDBId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getPrimaryKey() const; + void setPrimaryKey(const std::string &primaryKey); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + +private: + long resourceOwnerId_; + std::string fpDBId_; + std::string accessKeyId_; + std::string userData_; + std::string primaryKey_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMEDIAFPDELETEJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitMediaInfoJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitMediaInfoJobRequest.h index ca12ed884..31df0bd91 100644 --- a/mts/include/alibabacloud/mts/model/SubmitMediaInfoJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitMediaInfoJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITMEDIAINFOJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITMEDIAINFOJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitMediaInfoJobRequest : public RpcServiceRequest - { - - public: - SubmitMediaInfoJobRequest(); - ~SubmitMediaInfoJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - bool getAsync()const; - void setAsync(bool async); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - bool async_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMEDIAINFOJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITMEDIAINFOJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITMEDIAINFOJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitMediaInfoJobRequest : public RpcServiceRequest { +public: + SubmitMediaInfoJobRequest(); + ~SubmitMediaInfoJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + bool getAsync() const; + void setAsync(bool async); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; + bool async_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITMEDIAINFOJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitMediaInfoJobResult.h b/mts/include/alibabacloud/mts/model/SubmitMediaInfoJobResult.h index 4d6b1c62f..3019ff68b 100644 --- a/mts/include/alibabacloud/mts/model/SubmitMediaInfoJobResult.h +++ b/mts/include/alibabacloud/mts/model/SubmitMediaInfoJobResult.h @@ -40,6 +40,12 @@ namespace AlibabaCloud std::string object; std::string location; }; + struct MNSMessageResult + { + std::string errorCode; + std::string errorMessage; + std::string messageId; + }; struct Properties { struct Streams @@ -52,30 +58,33 @@ namespace AlibabaCloud std::string preloadTime; std::string costBandwidth; }; - std::string codecTag; std::string codecTimeBase; std::string rotate; std::string sar; std::string fps; - std::string startTime; std::string index; - std::string duration; - std::string lang; + std::string colorRange; std::string pixFmt; NetworkCost networkCost; std::string codecName; - std::string bitrate; - std::string profile; std::string avgFPS; + std::string profile; + std::string colorPrimaries; + std::string height; + std::string width; + std::string numFrames; + std::string colorTransfer; + std::string codecTag; + std::string startTime; + std::string lang; + std::string duration; + std::string bitrate; std::string timebase; std::string codecTagString; std::string hasBFrames; std::string dar; std::string codecLongName; - std::string height; std::string level; - std::string width; - std::string numFrames; }; struct AudioStream { @@ -84,12 +93,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -98,15 +107,15 @@ namespace AlibabaCloud }; struct SubtitleStream { - std::string codecTag; std::string timebase; + std::string codecTag; std::string codecTagString; std::string codecTimeBase; std::string codecLongName; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string codecName; }; std::vector videoStreamList; @@ -134,17 +143,11 @@ namespace AlibabaCloud Streams streams; std::string fileSize; }; - struct MNSMessageResult - { - std::string errorCode; - std::string errorMessage; - std::string messageId; - }; Input input; std::string message; std::string userData; - bool async; std::string state; + bool async; MNSMessageResult mNSMessageResult; std::string creationTime; std::string pipelineId; diff --git a/mts/include/alibabacloud/mts/model/SubmitPornJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitPornJobRequest.h index dd4798e4f..ceb80e9a7 100644 --- a/mts/include/alibabacloud/mts/model/SubmitPornJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitPornJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITPORNJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITPORNJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitPornJobRequest : public RpcServiceRequest - { - - public: - SubmitPornJobRequest(); - ~SubmitPornJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - std::string getPornConfig()const; - void setPornConfig(const std::string& pornConfig); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - std::string pornConfig_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITPORNJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITPORNJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITPORNJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitPornJobRequest : public RpcServiceRequest { +public: + SubmitPornJobRequest(); + ~SubmitPornJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + std::string getPornConfig() const; + void setPornConfig(const std::string &pornConfig); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; + std::string pornConfig_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITPORNJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitSmarttagJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitSmarttagJobRequest.h index e4163c1a4..dda2b4c91 100644 --- a/mts/include/alibabacloud/mts/model/SubmitSmarttagJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitSmarttagJobRequest.h @@ -1,90 +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_MTS_MODEL_SUBMITSMARTTAGJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITSMARTTAGJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitSmarttagJobRequest : public RpcServiceRequest - { - - public: - SubmitSmarttagJobRequest(); - ~SubmitSmarttagJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getTitle()const; - void setTitle(const std::string& title); - std::string getContent()const; - void setContent(const std::string& content); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getNotifyUrl()const; - void setNotifyUrl(const std::string& notifyUrl); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getParams()const; - void setParams(const std::string& params); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getContentType()const; - void setContentType(const std::string& contentType); - std::string getInput()const; - void setInput(const std::string& input); - std::string getContentAddr()const; - void setContentAddr(const std::string& contentAddr); - - private: - long resourceOwnerId_; - std::string title_; - std::string content_; - std::string accessKeyId_; - std::string userData_; - std::string notifyUrl_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string params_; - std::string templateId_; - std::string pipelineId_; - std::string contentType_; - std::string input_; - std::string contentAddr_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITSMARTTAGJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITSMARTTAGJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITSMARTTAGJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitSmarttagJobRequest : public RpcServiceRequest { +public: + SubmitSmarttagJobRequest(); + ~SubmitSmarttagJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getTitle() const; + void setTitle(const std::string &title); + std::string getContent() const; + void setContent(const std::string &content); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getNotifyUrl() const; + void setNotifyUrl(const std::string ¬ifyUrl); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getParams() const; + void setParams(const std::string ¶ms); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getContentType() const; + void setContentType(const std::string &contentType); + std::string getInput() const; + void setInput(const std::string &input); + std::string getContentAddr() const; + void setContentAddr(const std::string &contentAddr); + +private: + long resourceOwnerId_; + std::string title_; + std::string content_; + std::string accessKeyId_; + std::string userData_; + std::string notifyUrl_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string params_; + std::string templateId_; + std::string pipelineId_; + std::string contentType_; + std::string input_; + std::string contentAddr_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITSMARTTAGJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitSnapshotJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitSnapshotJobRequest.h index b5017e1b0..1c4f3f9ad 100644 --- a/mts/include/alibabacloud/mts/model/SubmitSnapshotJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitSnapshotJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITSNAPSHOTJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITSNAPSHOTJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitSnapshotJobRequest : public RpcServiceRequest - { - - public: - SubmitSnapshotJobRequest(); - ~SubmitSnapshotJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getSnapshotConfig()const; - void setSnapshotConfig(const std::string& snapshotConfig); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string snapshotConfig_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITSNAPSHOTJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITSNAPSHOTJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITSNAPSHOTJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitSnapshotJobRequest : public RpcServiceRequest { +public: + SubmitSnapshotJobRequest(); + ~SubmitSnapshotJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getSnapshotConfig() const; + void setSnapshotConfig(const std::string &snapshotConfig); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string snapshotConfig_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITSNAPSHOTJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitSnapshotJobResult.h b/mts/include/alibabacloud/mts/model/SubmitSnapshotJobResult.h index 66099aaff..cb947fdc7 100644 --- a/mts/include/alibabacloud/mts/model/SubmitSnapshotJobResult.h +++ b/mts/include/alibabacloud/mts/model/SubmitSnapshotJobResult.h @@ -34,15 +34,20 @@ namespace AlibabaCloud public: struct SnapshotJob { - struct Input - { - std::string bucket; - std::string object; - std::string roleArn; - std::string location; - }; struct SnapshotConfig { + struct TileOut + { + std::string cellWidth; + std::string color; + std::string padding; + std::string columns; + std::string cellHeight; + std::string cellSelStep; + std::string margin; + std::string isKeepCellPic; + std::string lines; + }; struct OutputFile { std::string bucket; @@ -57,22 +62,10 @@ namespace AlibabaCloud std::string roleArn; std::string location; }; - struct TileOut - { - std::string cellWidth; - std::string color; - std::string columns; - std::string padding; - std::string cellHeight; - std::string cellSelStep; - std::string lines; - std::string margin; - std::string isKeepCellPic; - }; OutputFile outputFile; TileOutputFile tileOutputFile; - std::string num; std::string frameType; + std::string num; TileOut tileOut; std::string time; std::string height; @@ -85,6 +78,13 @@ namespace AlibabaCloud std::string errorMessage; std::string messageId; }; + struct Input + { + std::string bucket; + std::string object; + std::string roleArn; + std::string location; + }; SnapshotConfig snapshotConfig; Input input; std::string message; @@ -93,8 +93,8 @@ namespace AlibabaCloud MNSMessageResult mNSMessageResult; std::string creationTime; std::string pipelineId; - std::string id; std::string count; + std::string id; std::string code; std::string tileCount; }; diff --git a/mts/include/alibabacloud/mts/model/SubmitSubtitleJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitSubtitleJobRequest.h index d9ddf6f62..2276ce55f 100644 --- a/mts/include/alibabacloud/mts/model/SubmitSubtitleJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitSubtitleJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITSUBTITLEJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITSUBTITLEJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitSubtitleJobRequest : public RpcServiceRequest - { - - public: - SubmitSubtitleJobRequest(); - ~SubmitSubtitleJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getOutputConfig()const; - void setOutputConfig(const std::string& outputConfig); - std::string getInputConfig()const; - void setInputConfig(const std::string& inputConfig); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - - private: - long resourceOwnerId_; - std::string outputConfig_; - std::string inputConfig_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITSUBTITLEJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITSUBTITLEJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITSUBTITLEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitSubtitleJobRequest : public RpcServiceRequest { +public: + SubmitSubtitleJobRequest(); + ~SubmitSubtitleJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getOutputConfig() const; + void setOutputConfig(const std::string &outputConfig); + std::string getInputConfig() const; + void setInputConfig(const std::string &inputConfig); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + +private: + long resourceOwnerId_; + std::string outputConfig_; + std::string inputConfig_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITSUBTITLEJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitSubtitleJobResult.h b/mts/include/alibabacloud/mts/model/SubmitSubtitleJobResult.h index 670ecc7f9..6c464fc0e 100644 --- a/mts/include/alibabacloud/mts/model/SubmitSubtitleJobResult.h +++ b/mts/include/alibabacloud/mts/model/SubmitSubtitleJobResult.h @@ -34,7 +34,7 @@ namespace AlibabaCloud public: struct SubtitleJob { - std::string inputConfig1; + std::string outputConfig; std::string userData; std::string state; std::string inputConfig; diff --git a/mts/include/alibabacloud/mts/model/SubmitTagJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitTagJobRequest.h index a1c61bcc9..e502582cd 100644 --- a/mts/include/alibabacloud/mts/model/SubmitTagJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitTagJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITTAGJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITTAGJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitTagJobRequest : public RpcServiceRequest - { - - public: - SubmitTagJobRequest(); - ~SubmitTagJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getTagConfig()const; - void setTagConfig(const std::string& tagConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string tagConfig_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITTAGJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITTAGJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITTAGJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitTagJobRequest : public RpcServiceRequest { +public: + SubmitTagJobRequest(); + ~SubmitTagJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getTagConfig() const; + void setTagConfig(const std::string &tagConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string tagConfig_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITTAGJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitTerrorismJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitTerrorismJobRequest.h index 054f277ee..7797cea22 100644 --- a/mts/include/alibabacloud/mts/model/SubmitTerrorismJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitTerrorismJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITTERRORISMJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITTERRORISMJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitTerrorismJobRequest : public RpcServiceRequest - { - - public: - SubmitTerrorismJobRequest(); - ~SubmitTerrorismJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getTerrorismConfig()const; - void setTerrorismConfig(const std::string& terrorismConfig); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string terrorismConfig_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITTERRORISMJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITTERRORISMJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITTERRORISMJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitTerrorismJobRequest : public RpcServiceRequest { +public: + SubmitTerrorismJobRequest(); + ~SubmitTerrorismJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTerrorismConfig() const; + void setTerrorismConfig(const std::string &terrorismConfig); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string terrorismConfig_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITTERRORISMJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitURLUploadJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitURLUploadJobRequest.h new file mode 100644 index 000000000..8b456628c --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitURLUploadJobRequest.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_MTS_MODEL_SUBMITURLUPLOADJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITURLUPLOADJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitURLUploadJobRequest : public RpcServiceRequest { +public: + struct TargetStorage { + std::string bucket; + std::string bucketOwnerId; + std::string s3Provider; + std::string s3Endpoint; + std::string objectKey; + std::string s3AccessKey; + std::string s3SecretKey; + std::string s3SessionToken; + std::string objectRoleName; + }; + SubmitURLUploadJobRequest(); + ~SubmitURLUploadJobRequest(); + TargetStorage getTargetStorage() const; + void setTargetStorage(const TargetStorage &targetStorage); + std::string getSourceFileURL() const; + void setSourceFileURL(const std::string &sourceFileURL); + std::string getNotify() const; + void setNotify(const std::string ¬ify); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getRegion() const; + void setRegion(const std::string ®ion); + +private: + TargetStorage targetStorage_; + std::string sourceFileURL_; + std::string notify_; + std::string userData_; + std::string region_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITURLUPLOADJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitURLUploadJobResult.h b/mts/include/alibabacloud/mts/model/SubmitURLUploadJobResult.h new file mode 100644 index 000000000..8e66bedd4 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitURLUploadJobResult.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_MTS_MODEL_SUBMITURLUPLOADJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITURLUPLOADJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT SubmitURLUploadJobResult : public ServiceResult + { + public: + + + SubmitURLUploadJobResult(); + explicit SubmitURLUploadJobResult(const std::string &payload); + ~SubmitURLUploadJobResult(); + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITURLUPLOADJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/SubmitVideoGifJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitVideoGifJobRequest.h index d6f0bfa29..412ba6ad2 100644 --- a/mts/include/alibabacloud/mts/model/SubmitVideoGifJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitVideoGifJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITVIDEOGIFJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOGIFJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitVideoGifJobRequest : public RpcServiceRequest - { - - public: - SubmitVideoGifJobRequest(); - ~SubmitVideoGifJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getVideoGifConfig()const; - void setVideoGifConfig(const std::string& videoGifConfig); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string videoGifConfig_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOGIFJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOGIFJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOGIFJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitVideoGifJobRequest : public RpcServiceRequest { +public: + SubmitVideoGifJobRequest(); + ~SubmitVideoGifJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getVideoGifConfig() const; + void setVideoGifConfig(const std::string &videoGifConfig); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string videoGifConfig_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOGIFJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitVideoPoseJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitVideoPoseJobRequest.h index e2dd904b1..669ac187c 100644 --- a/mts/include/alibabacloud/mts/model/SubmitVideoPoseJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitVideoPoseJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITVIDEOPOSEJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOPOSEJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitVideoPoseJobRequest : public RpcServiceRequest - { - - public: - SubmitVideoPoseJobRequest(); - ~SubmitVideoPoseJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getOutputConfig()const; - void setOutputConfig(const std::string& outputConfig); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string outputConfig_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOPOSEJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOPOSEJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOPOSEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitVideoPoseJobRequest : public RpcServiceRequest { +public: + SubmitVideoPoseJobRequest(); + ~SubmitVideoPoseJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getOutputConfig() const; + void setOutputConfig(const std::string &outputConfig); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string outputConfig_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOPOSEJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitVideoPoseJobResult.h b/mts/include/alibabacloud/mts/model/SubmitVideoPoseJobResult.h index 29525b078..33e21b1b1 100644 --- a/mts/include/alibabacloud/mts/model/SubmitVideoPoseJobResult.h +++ b/mts/include/alibabacloud/mts/model/SubmitVideoPoseJobResult.h @@ -34,23 +34,16 @@ namespace AlibabaCloud public: struct VideoPoseJob { - struct Input - { - std::string bucket; - std::string object; - std::string roleArn; - std::string location; - }; struct OutputConfig { - struct VideoFile + struct DataFile { std::string bucket; std::string object; std::string roleArn; std::string location; }; - struct DataFile + struct VideoFile { std::string bucket; std::string object; @@ -60,6 +53,19 @@ namespace AlibabaCloud DataFile dataFile; VideoFile videoFile; }; + struct MNSMessageResult + { + std::string errorCode; + std::string errorMessage; + std::string messageId; + }; + struct Input + { + std::string bucket; + std::string object; + std::string roleArn; + std::string location; + }; struct Properties { struct Streams @@ -76,17 +82,17 @@ namespace AlibabaCloud std::string codecTimeBase; std::string rotate; std::string sar; - std::string fps; std::string startTime; + std::string fps; std::string index; - std::string duration; std::string lang; + std::string duration; std::string pixFmt; NetworkCost networkCost; - std::string codecName; std::string bitrate; - std::string profile; + std::string codecName; std::string avgFPS; + std::string profile; std::string timebase; std::string codecTagString; std::string hasBFrames; @@ -104,12 +110,12 @@ namespace AlibabaCloud std::string channelLayout; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string sampleFmt; - std::string codecName; std::string samplerate; std::string bitrate; + std::string codecName; std::string channels; std::string timebase; std::string codecTagString; @@ -118,15 +124,15 @@ namespace AlibabaCloud }; struct SubtitleStream { - std::string codecTag; std::string timebase; + std::string codecTag; std::string codecTagString; std::string codecTimeBase; std::string codecLongName; std::string startTime; std::string index; - std::string duration; std::string lang; + std::string duration; std::string codecName; }; std::vector videoStreamList; @@ -154,12 +160,6 @@ namespace AlibabaCloud Streams streams; std::string fileSize; }; - struct MNSMessageResult - { - std::string errorCode; - std::string errorMessage; - std::string messageId; - }; Input input; OutputConfig outputConfig; std::string userData; diff --git a/mts/include/alibabacloud/mts/model/SubmitVideoQualityJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitVideoQualityJobRequest.h new file mode 100644 index 000000000..0506b300b --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitVideoQualityJobRequest.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_MTS_MODEL_SUBMITVIDEOQUALITYJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOQUALITYJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitVideoQualityJobRequest : public RpcServiceRequest { +public: + SubmitVideoQualityJobRequest(); + ~SubmitVideoQualityJobRequest(); + std::string getJobParams() const; + void setJobParams(const std::string &jobParams); + long getUserId() const; + void setUserId(long userId); + std::string getOutput() const; + void setOutput(const std::string &output); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getNotifyUrl() const; + void setNotifyUrl(const std::string ¬ifyUrl); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getModelId() const; + void setModelId(const std::string &modelId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + std::string getScheduleParams() const; + void setScheduleParams(const std::string &scheduleParams); + +private: + std::string jobParams_; + long userId_; + std::string output_; + std::string userData_; + std::string notifyUrl_; + std::string sourceType_; + std::string modelId_; + std::string pipelineId_; + std::string input_; + std::string scheduleParams_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOQUALITYJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitVideoQualityJobResult.h b/mts/include/alibabacloud/mts/model/SubmitVideoQualityJobResult.h new file mode 100644 index 000000000..ea58388b4 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/SubmitVideoQualityJobResult.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_MTS_MODEL_SUBMITVIDEOQUALITYJOBRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOQUALITYJOBRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT SubmitVideoQualityJobResult : public ServiceResult + { + public: + + + SubmitVideoQualityJobResult(); + explicit SubmitVideoQualityJobResult(const std::string &payload); + ~SubmitVideoQualityJobResult(); + std::string getMessage()const; + std::string getCode()const; + std::string getJobId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::string jobId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOQUALITYJOBRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/SubmitVideoSplitJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitVideoSplitJobRequest.h index 43f72a517..58227781e 100644 --- a/mts/include/alibabacloud/mts/model/SubmitVideoSplitJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitVideoSplitJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITVIDEOSPLITJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOSPLITJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitVideoSplitJobRequest : public RpcServiceRequest - { - - public: - SubmitVideoSplitJobRequest(); - ~SubmitVideoSplitJobRequest(); - - std::string getVideoSplitConfig()const; - void setVideoSplitConfig(const std::string& videoSplitConfig); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - std::string videoSplitConfig_; - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOSPLITJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOSPLITJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOSPLITJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitVideoSplitJobRequest : public RpcServiceRequest { +public: + SubmitVideoSplitJobRequest(); + ~SubmitVideoSplitJobRequest(); + std::string getVideoSplitConfig() const; + void setVideoSplitConfig(const std::string &videoSplitConfig); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + std::string videoSplitConfig_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOSPLITJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/SubmitVideoSummaryJobRequest.h b/mts/include/alibabacloud/mts/model/SubmitVideoSummaryJobRequest.h index da0e20d96..94eb0bba3 100644 --- a/mts/include/alibabacloud/mts/model/SubmitVideoSummaryJobRequest.h +++ b/mts/include/alibabacloud/mts/model/SubmitVideoSummaryJobRequest.h @@ -1,72 +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_MTS_MODEL_SUBMITVIDEOSUMMARYJOBREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOSUMMARYJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT SubmitVideoSummaryJobRequest : public RpcServiceRequest - { - - public: - SubmitVideoSummaryJobRequest(); - ~SubmitVideoSummaryJobRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getUserData()const; - void setUserData(const std::string& userData); - std::string getVideoSummaryConfig()const; - void setVideoSummaryConfig(const std::string& videoSummaryConfig); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getInput()const; - void setInput(const std::string& input); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string userData_; - std::string videoSummaryConfig_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string pipelineId_; - std::string input_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOSUMMARYJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOSUMMARYJOBREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOSUMMARYJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT SubmitVideoSummaryJobRequest : public RpcServiceRequest { +public: + SubmitVideoSummaryJobRequest(); + ~SubmitVideoSummaryJobRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getUserData() const; + void setUserData(const std::string &userData); + std::string getVideoSummaryConfig() const; + void setVideoSummaryConfig(const std::string &videoSummaryConfig); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getInput() const; + void setInput(const std::string &input); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string userData_; + std::string videoSummaryConfig_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string pipelineId_; + std::string input_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_SUBMITVIDEOSUMMARYJOBREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/TagCustomPersonRequest.h b/mts/include/alibabacloud/mts/model/TagCustomPersonRequest.h new file mode 100644 index 000000000..dd62073df --- /dev/null +++ b/mts/include/alibabacloud/mts/model/TagCustomPersonRequest.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_MTS_MODEL_TAGCUSTOMPERSONREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_TAGCUSTOMPERSONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT TagCustomPersonRequest : public RpcServiceRequest { +public: + TagCustomPersonRequest(); + ~TagCustomPersonRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getPersonDescription() const; + void setPersonDescription(const std::string &personDescription); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCategoryDescription() const; + void setCategoryDescription(const std::string &categoryDescription); + std::string getPersonId() const; + void setPersonId(const std::string &personId); + std::string getCategoryId() const; + void setCategoryId(const std::string &categoryId); + std::string getPersonName() const; + void setPersonName(const std::string &personName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getCategoryName() const; + void setCategoryName(const std::string &categoryName); + +private: + long resourceOwnerId_; + std::string personDescription_; + std::string accessKeyId_; + std::string categoryDescription_; + std::string personId_; + std::string categoryId_; + std::string personName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string categoryName_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_TAGCUSTOMPERSONREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/TagCustomPersonResult.h b/mts/include/alibabacloud/mts/model/TagCustomPersonResult.h new file mode 100644 index 000000000..43d44d7e8 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/TagCustomPersonResult.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_MTS_MODEL_TAGCUSTOMPERSONRESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_TAGCUSTOMPERSONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT TagCustomPersonResult : public ServiceResult + { + public: + + + TagCustomPersonResult(); + explicit TagCustomPersonResult(const std::string &payload); + ~TagCustomPersonResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_TAGCUSTOMPERSONRESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/UnbindInputBucketRequest.h b/mts/include/alibabacloud/mts/model/UnbindInputBucketRequest.h index 3745d28ab..9bc8a947a 100644 --- a/mts/include/alibabacloud/mts/model/UnbindInputBucketRequest.h +++ b/mts/include/alibabacloud/mts/model/UnbindInputBucketRequest.h @@ -1,66 +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_MTS_MODEL_UNBINDINPUTBUCKETREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UNBINDINPUTBUCKETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UnbindInputBucketRequest : public RpcServiceRequest - { - - public: - UnbindInputBucketRequest(); - ~UnbindInputBucketRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getBucket()const; - void setBucket(const std::string& bucket); - std::string getRoleArn()const; - void setRoleArn(const std::string& roleArn); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string bucket_; - std::string roleArn_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UNBINDINPUTBUCKETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UNBINDINPUTBUCKETREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UNBINDINPUTBUCKETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UnbindInputBucketRequest : public RpcServiceRequest { +public: + UnbindInputBucketRequest(); + ~UnbindInputBucketRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getBucket() const; + void setBucket(const std::string &bucket); + std::string getRoleArn() const; + void setRoleArn(const std::string &roleArn); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string bucket_; + std::string roleArn_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UNBINDINPUTBUCKETREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UnbindOutputBucketRequest.h b/mts/include/alibabacloud/mts/model/UnbindOutputBucketRequest.h index 4b8bd1668..3709682ca 100644 --- a/mts/include/alibabacloud/mts/model/UnbindOutputBucketRequest.h +++ b/mts/include/alibabacloud/mts/model/UnbindOutputBucketRequest.h @@ -1,63 +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_MTS_MODEL_UNBINDOUTPUTBUCKETREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UNBINDOUTPUTBUCKETREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UnbindOutputBucketRequest : public RpcServiceRequest - { - - public: - UnbindOutputBucketRequest(); - ~UnbindOutputBucketRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getBucket()const; - void setBucket(const std::string& bucket); - - private: - long resourceOwnerId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string accessKeyId_; - std::string bucket_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UNBINDOUTPUTBUCKETREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UNBINDOUTPUTBUCKETREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UNBINDOUTPUTBUCKETREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UnbindOutputBucketRequest : public RpcServiceRequest { +public: + UnbindOutputBucketRequest(); + ~UnbindOutputBucketRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getBucket() const; + void setBucket(const std::string &bucket); + +private: + long resourceOwnerId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string accessKeyId_; + std::string bucket_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UNBINDOUTPUTBUCKETREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UnregisterCustomFaceRequest.h b/mts/include/alibabacloud/mts/model/UnregisterCustomFaceRequest.h new file mode 100644 index 000000000..4df89e09c --- /dev/null +++ b/mts/include/alibabacloud/mts/model/UnregisterCustomFaceRequest.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_MTS_MODEL_UNREGISTERCUSTOMFACEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UNREGISTERCUSTOMFACEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UnregisterCustomFaceRequest : public RpcServiceRequest { +public: + UnregisterCustomFaceRequest(); + ~UnregisterCustomFaceRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPersonId() const; + void setPersonId(const std::string &personId); + std::string getCategoryId() const; + void setCategoryId(const std::string &categoryId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getFaceId() const; + void setFaceId(const std::string &faceId); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string personId_; + std::string categoryId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string faceId_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UNREGISTERCUSTOMFACEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UnregisterCustomFaceResult.h b/mts/include/alibabacloud/mts/model/UnregisterCustomFaceResult.h new file mode 100644 index 000000000..bd6937f17 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/UnregisterCustomFaceResult.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_MTS_MODEL_UNREGISTERCUSTOMFACERESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_UNREGISTERCUSTOMFACERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT UnregisterCustomFaceResult : public ServiceResult + { + public: + + + UnregisterCustomFaceResult(); + explicit UnregisterCustomFaceResult(const std::string &payload); + ~UnregisterCustomFaceResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_UNREGISTERCUSTOMFACERESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/UpdateAsrPipelineRequest.h b/mts/include/alibabacloud/mts/model/UpdateAsrPipelineRequest.h index fe465e5bb..071e58cd4 100644 --- a/mts/include/alibabacloud/mts/model/UpdateAsrPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateAsrPipelineRequest.h @@ -1,75 +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_MTS_MODEL_UPDATEASRPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEASRPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateAsrPipelineRequest : public RpcServiceRequest - { - - public: - UpdateAsrPipelineRequest(); - ~UpdateAsrPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - int priority_; - std::string pipelineId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEASRPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEASRPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEASRPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateAsrPipelineRequest : public RpcServiceRequest { +public: + UpdateAsrPipelineRequest(); + ~UpdateAsrPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + int priority_; + std::string pipelineId_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEASRPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateCategoryNameRequest.h b/mts/include/alibabacloud/mts/model/UpdateCategoryNameRequest.h index 8630cbfb8..ee81c366b 100644 --- a/mts/include/alibabacloud/mts/model/UpdateCategoryNameRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateCategoryNameRequest.h @@ -1,66 +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_MTS_MODEL_UPDATECATEGORYNAMEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATECATEGORYNAMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateCategoryNameRequest : public RpcServiceRequest - { - - public: - UpdateCategoryNameRequest(); - ~UpdateCategoryNameRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getCateId()const; - void setCateId(const std::string& cateId); - std::string getCateName()const; - void setCateName(const std::string& cateName); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string cateId_; - std::string cateName_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATECATEGORYNAMEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATECATEGORYNAMEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATECATEGORYNAMEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateCategoryNameRequest : public RpcServiceRequest { +public: + UpdateCategoryNameRequest(); + ~UpdateCategoryNameRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCateId() const; + void setCateId(const std::string &cateId); + std::string getCateName() const; + void setCateName(const std::string &cateName); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string cateId_; + std::string cateName_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATECATEGORYNAMEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateCensorPipelineRequest.h b/mts/include/alibabacloud/mts/model/UpdateCensorPipelineRequest.h index 65afc5898..db61b8a8b 100644 --- a/mts/include/alibabacloud/mts/model/UpdateCensorPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateCensorPipelineRequest.h @@ -1,75 +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_MTS_MODEL_UPDATECENSORPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATECENSORPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateCensorPipelineRequest : public RpcServiceRequest - { - - public: - UpdateCensorPipelineRequest(); - ~UpdateCensorPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - int priority_; - std::string pipelineId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATECENSORPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATECENSORPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATECENSORPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateCensorPipelineRequest : public RpcServiceRequest { +public: + UpdateCensorPipelineRequest(); + ~UpdateCensorPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + int priority_; + std::string pipelineId_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATECENSORPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateCoverPipelineRequest.h b/mts/include/alibabacloud/mts/model/UpdateCoverPipelineRequest.h index 0dde4c847..b8e9824d3 100644 --- a/mts/include/alibabacloud/mts/model/UpdateCoverPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateCoverPipelineRequest.h @@ -1,78 +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_MTS_MODEL_UPDATECOVERPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATECOVERPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateCoverPipelineRequest : public RpcServiceRequest - { - - public: - UpdateCoverPipelineRequest(); - ~UpdateCoverPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRole()const; - void setRole(const std::string& role); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string role_; - std::string accessKeyId_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - int priority_; - std::string pipelineId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATECOVERPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATECOVERPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATECOVERPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateCoverPipelineRequest : public RpcServiceRequest { +public: + UpdateCoverPipelineRequest(); + ~UpdateCoverPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRole() const; + void setRole(const std::string &role); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string role_; + std::string accessKeyId_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + int priority_; + std::string pipelineId_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATECOVERPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateMCTemplateRequest.h b/mts/include/alibabacloud/mts/model/UpdateMCTemplateRequest.h index 9a98c8578..b6d9eaf4f 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMCTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateMCTemplateRequest.h @@ -1,96 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEMCTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEMCTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateMCTemplateRequest : public RpcServiceRequest - { - - public: - UpdateMCTemplateRequest(); - ~UpdateMCTemplateRequest(); - - std::string getPolitics()const; - void setPolitics(const std::string& politics); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAbuse()const; - void setAbuse(const std::string& abuse); - std::string getQrcode()const; - void setQrcode(const std::string& qrcode); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getPorn()const; - void setPorn(const std::string& porn); - std::string getTerrorism()const; - void setTerrorism(const std::string& terrorism); - std::string getLogo()const; - void setLogo(const std::string& logo); - std::string getLive()const; - void setLive(const std::string& live); - std::string getContraband()const; - void setContraband(const std::string& contraband); - std::string getAd()const; - void setAd(const std::string& ad); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getName()const; - void setName(const std::string& name); - std::string getSpam()const; - void setSpam(const std::string& spam); - - private: - std::string politics_; - long resourceOwnerId_; - std::string abuse_; - std::string qrcode_; - std::string accessKeyId_; - std::string porn_; - std::string terrorism_; - std::string logo_; - std::string live_; - std::string contraband_; - std::string ad_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string templateId_; - std::string name_; - std::string spam_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMCTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEMCTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEMCTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateMCTemplateRequest : public RpcServiceRequest { +public: + UpdateMCTemplateRequest(); + ~UpdateMCTemplateRequest(); + std::string getPolitics() const; + void setPolitics(const std::string &politics); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAbuse() const; + void setAbuse(const std::string &abuse); + std::string getQrcode() const; + void setQrcode(const std::string &qrcode); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getPorn() const; + void setPorn(const std::string &porn); + std::string getTerrorism() const; + void setTerrorism(const std::string &terrorism); + std::string getLogo() const; + void setLogo(const std::string &logo); + std::string getLive() const; + void setLive(const std::string &live); + std::string getContraband() const; + void setContraband(const std::string &contraband); + std::string getAd() const; + void setAd(const std::string &ad); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getName() const; + void setName(const std::string &name); + std::string getSpam() const; + void setSpam(const std::string &spam); + +private: + std::string politics_; + long resourceOwnerId_; + std::string abuse_; + std::string qrcode_; + std::string accessKeyId_; + std::string porn_; + std::string terrorism_; + std::string logo_; + std::string live_; + std::string contraband_; + std::string ad_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string templateId_; + std::string name_; + std::string spam_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMCTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateMCTemplateResult.h b/mts/include/alibabacloud/mts/model/UpdateMCTemplateResult.h index 730cf17d7..4dc5796bc 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMCTemplateResult.h +++ b/mts/include/alibabacloud/mts/model/UpdateMCTemplateResult.h @@ -34,14 +34,14 @@ namespace AlibabaCloud public: struct _Template { - std::string ad; std::string qrcode; - std::string terrorism; + std::string ad; std::string abuse; + std::string terrorism; std::string live; std::string spam; - std::string name; std::string logo; + std::string name; std::string contraband; std::string state; std::string politics; diff --git a/mts/include/alibabacloud/mts/model/UpdateMcuTemplateRequest.h b/mts/include/alibabacloud/mts/model/UpdateMcuTemplateRequest.h index 39067b480..cfa4f38f9 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMcuTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateMcuTemplateRequest.h @@ -1,66 +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_MTS_MODEL_UPDATEMCUTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEMCUTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateMcuTemplateRequest : public RpcServiceRequest - { - - public: - UpdateMcuTemplateRequest(); - ~UpdateMcuTemplateRequest(); - - std::string get_Template()const; - void set_Template(const std::string& _template); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - - private: - std::string _template_; - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string templateId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMCUTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEMCUTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEMCUTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateMcuTemplateRequest : public RpcServiceRequest { +public: + UpdateMcuTemplateRequest(); + ~UpdateMcuTemplateRequest(); + std::string get_Template() const; + void set_Template(const std::string &_template); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + +private: + std::string _template_; + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string templateId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMCUTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateMediaCategoryRequest.h b/mts/include/alibabacloud/mts/model/UpdateMediaCategoryRequest.h index 1329539ee..544e73756 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMediaCategoryRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateMediaCategoryRequest.h @@ -1,66 +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_MTS_MODEL_UPDATEMEDIACATEGORYREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIACATEGORYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateMediaCategoryRequest : public RpcServiceRequest - { - - public: - UpdateMediaCategoryRequest(); - ~UpdateMediaCategoryRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - long getCateId()const; - void setCateId(long cateId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getMediaId()const; - void setMediaId(const std::string& mediaId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - long cateId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string mediaId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIACATEGORYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEMEDIACATEGORYREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIACATEGORYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateMediaCategoryRequest : public RpcServiceRequest { +public: + UpdateMediaCategoryRequest(); + ~UpdateMediaCategoryRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + long getCateId() const; + void setCateId(long cateId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getMediaId() const; + void setMediaId(const std::string &mediaId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + long cateId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string mediaId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIACATEGORYREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateMediaCoverRequest.h b/mts/include/alibabacloud/mts/model/UpdateMediaCoverRequest.h index 763dff9b9..2b1c69268 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMediaCoverRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateMediaCoverRequest.h @@ -1,66 +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_MTS_MODEL_UPDATEMEDIACOVERREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIACOVERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateMediaCoverRequest : public RpcServiceRequest - { - - public: - UpdateMediaCoverRequest(); - ~UpdateMediaCoverRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getCoverURL()const; - void setCoverURL(const std::string& coverURL); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getMediaId()const; - void setMediaId(const std::string& mediaId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string coverURL_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string mediaId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIACOVERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEMEDIACOVERREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIACOVERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateMediaCoverRequest : public RpcServiceRequest { +public: + UpdateMediaCoverRequest(); + ~UpdateMediaCoverRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCoverURL() const; + void setCoverURL(const std::string &coverURL); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getMediaId() const; + void setMediaId(const std::string &mediaId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string coverURL_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string mediaId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIACOVERREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateMediaPublishStateRequest.h b/mts/include/alibabacloud/mts/model/UpdateMediaPublishStateRequest.h index 41f83738d..e6a0e395c 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMediaPublishStateRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateMediaPublishStateRequest.h @@ -1,66 +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_MTS_MODEL_UPDATEMEDIAPUBLISHSTATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAPUBLISHSTATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateMediaPublishStateRequest : public RpcServiceRequest - { - - public: - UpdateMediaPublishStateRequest(); - ~UpdateMediaPublishStateRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getMediaId()const; - void setMediaId(const std::string& mediaId); - bool getPublish()const; - void setPublish(bool publish); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string mediaId_; - bool publish_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAPUBLISHSTATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAPUBLISHSTATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAPUBLISHSTATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateMediaPublishStateRequest : public RpcServiceRequest { +public: + UpdateMediaPublishStateRequest(); + ~UpdateMediaPublishStateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getMediaId() const; + void setMediaId(const std::string &mediaId); + bool getPublish() const; + void setPublish(bool publish); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string mediaId_; + bool publish_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAPUBLISHSTATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateMediaRequest.h b/mts/include/alibabacloud/mts/model/UpdateMediaRequest.h index d65680b68..70b34fba9 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMediaRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateMediaRequest.h @@ -1,78 +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_MTS_MODEL_UPDATEMEDIAREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateMediaRequest : public RpcServiceRequest - { - - public: - UpdateMediaRequest(); - ~UpdateMediaRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getTitle()const; - void setTitle(const std::string& title); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getCoverURL()const; - void setCoverURL(const std::string& coverURL); - long getCateId()const; - void setCateId(long cateId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getMediaId()const; - void setMediaId(const std::string& mediaId); - std::string getTags()const; - void setTags(const std::string& tags); - - private: - long resourceOwnerId_; - std::string description_; - std::string title_; - std::string accessKeyId_; - std::string coverURL_; - long cateId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string mediaId_; - std::string tags_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateMediaRequest : public RpcServiceRequest { +public: + UpdateMediaRequest(); + ~UpdateMediaRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getTitle() const; + void setTitle(const std::string &title); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getCoverURL() const; + void setCoverURL(const std::string &coverURL); + long getCateId() const; + void setCateId(long cateId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getMediaId() const; + void setMediaId(const std::string &mediaId); + std::string getTags() const; + void setTags(const std::string &tags); + +private: + long resourceOwnerId_; + std::string description_; + std::string title_; + std::string accessKeyId_; + std::string coverURL_; + long cateId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string mediaId_; + std::string tags_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateMediaResult.h b/mts/include/alibabacloud/mts/model/UpdateMediaResult.h index f2a9ce263..7a0e503cd 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMediaResult.h +++ b/mts/include/alibabacloud/mts/model/UpdateMediaResult.h @@ -51,8 +51,8 @@ namespace AlibabaCloud std::string format; std::string mediaId; std::string creationTime; - std::string coverURL; std::string height; + std::string coverURL; File file; std::string width; std::vector runIdList; diff --git a/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowRequest.h b/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowRequest.h index 10f385529..e6a4d2232 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowRequest.h @@ -1,66 +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_MTS_MODEL_UPDATEMEDIAWORKFLOWREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAWORKFLOWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateMediaWorkflowRequest : public RpcServiceRequest - { - - public: - UpdateMediaWorkflowRequest(); - ~UpdateMediaWorkflowRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMediaWorkflowId()const; - void setMediaWorkflowId(const std::string& mediaWorkflowId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getTopology()const; - void setTopology(const std::string& topology); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string mediaWorkflowId_; - std::string resourceOwnerAccount_; - std::string topology_; - std::string ownerAccount_; - long ownerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAWORKFLOWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAWORKFLOWREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAWORKFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateMediaWorkflowRequest : public RpcServiceRequest { +public: + UpdateMediaWorkflowRequest(); + ~UpdateMediaWorkflowRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMediaWorkflowId() const; + void setMediaWorkflowId(const std::string &mediaWorkflowId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getTopology() const; + void setTopology(const std::string &topology); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mediaWorkflowId_; + std::string resourceOwnerAccount_; + std::string topology_; + std::string ownerAccount_; + long ownerId_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAWORKFLOWREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowResult.h b/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowResult.h index 11cc9fb1f..8a4c78a30 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowResult.h +++ b/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string state; std::string mediaWorkflowId; std::string creationTime; - std::string topology; std::string triggerMode; + std::string topology; std::string name; }; diff --git a/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowTriggerModeRequest.h b/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowTriggerModeRequest.h index d89ee8695..e50ae257f 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowTriggerModeRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowTriggerModeRequest.h @@ -1,66 +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_MTS_MODEL_UPDATEMEDIAWORKFLOWTRIGGERMODEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAWORKFLOWTRIGGERMODEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateMediaWorkflowTriggerModeRequest : public RpcServiceRequest - { - - public: - UpdateMediaWorkflowTriggerModeRequest(); - ~UpdateMediaWorkflowTriggerModeRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMediaWorkflowId()const; - void setMediaWorkflowId(const std::string& mediaWorkflowId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTriggerMode()const; - void setTriggerMode(const std::string& triggerMode); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string mediaWorkflowId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string triggerMode_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAWORKFLOWTRIGGERMODEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAWORKFLOWTRIGGERMODEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAWORKFLOWTRIGGERMODEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateMediaWorkflowTriggerModeRequest : public RpcServiceRequest { +public: + UpdateMediaWorkflowTriggerModeRequest(); + ~UpdateMediaWorkflowTriggerModeRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getMediaWorkflowId() const; + void setMediaWorkflowId(const std::string &mediaWorkflowId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTriggerMode() const; + void setTriggerMode(const std::string &triggerMode); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string mediaWorkflowId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string triggerMode_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEMEDIAWORKFLOWTRIGGERMODEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowTriggerModeResult.h b/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowTriggerModeResult.h index b1fcfe475..35d4a5c2f 100644 --- a/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowTriggerModeResult.h +++ b/mts/include/alibabacloud/mts/model/UpdateMediaWorkflowTriggerModeResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string state; std::string mediaWorkflowId; std::string creationTime; - std::string topology; std::string triggerMode; + std::string topology; std::string name; }; diff --git a/mts/include/alibabacloud/mts/model/UpdatePipelineRequest.h b/mts/include/alibabacloud/mts/model/UpdatePipelineRequest.h index fe9c89da3..a7c906e53 100644 --- a/mts/include/alibabacloud/mts/model/UpdatePipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdatePipelineRequest.h @@ -1,75 +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_MTS_MODEL_UPDATEPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdatePipelineRequest : public RpcServiceRequest - { - - public: - UpdatePipelineRequest(); - ~UpdatePipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getRole()const; - void setRole(const std::string& role); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string role_; - std::string accessKeyId_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - std::string pipelineId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdatePipelineRequest : public RpcServiceRequest { +public: + UpdatePipelineRequest(); + ~UpdatePipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getRole() const; + void setRole(const std::string &role); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string role_; + std::string accessKeyId_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + std::string pipelineId_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdatePipelineResult.h b/mts/include/alibabacloud/mts/model/UpdatePipelineResult.h index 41bb25aaa..2711508f0 100644 --- a/mts/include/alibabacloud/mts/model/UpdatePipelineResult.h +++ b/mts/include/alibabacloud/mts/model/UpdatePipelineResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud struct NotifyConfig { std::string mqTag; - std::string topic; std::string mqTopic; + std::string topic; std::string queueName; }; std::string role; diff --git a/mts/include/alibabacloud/mts/model/UpdatePornPipelineRequest.h b/mts/include/alibabacloud/mts/model/UpdatePornPipelineRequest.h index 7ddba2cd5..7d2368698 100644 --- a/mts/include/alibabacloud/mts/model/UpdatePornPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdatePornPipelineRequest.h @@ -1,75 +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_MTS_MODEL_UPDATEPORNPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEPORNPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdatePornPipelineRequest : public RpcServiceRequest - { - - public: - UpdatePornPipelineRequest(); - ~UpdatePornPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - int priority_; - std::string pipelineId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEPORNPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEPORNPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEPORNPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdatePornPipelineRequest : public RpcServiceRequest { +public: + UpdatePornPipelineRequest(); + ~UpdatePornPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + int priority_; + std::string pipelineId_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEPORNPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateSmarttagTemplateRequest.h b/mts/include/alibabacloud/mts/model/UpdateSmarttagTemplateRequest.h new file mode 100644 index 000000000..2ca4a7482 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/UpdateSmarttagTemplateRequest.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_MTS_MODEL_UPDATESMARTTAGTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATESMARTTAGTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateSmarttagTemplateRequest : public RpcServiceRequest { +public: + UpdateSmarttagTemplateRequest(); + ~UpdateSmarttagTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getIndustry() const; + void setIndustry(const std::string &industry); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getScene() const; + void setScene(const std::string &scene); + std::string getTemplateName() const; + void setTemplateName(const std::string &templateName); + bool getIsDefault() const; + void setIsDefault(bool isDefault); + std::string getFaceCategoryIds() const; + void setFaceCategoryIds(const std::string &faceCategoryIds); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getAnalyseTypes() const; + void setAnalyseTypes(const std::string &analyseTypes); + +private: + long resourceOwnerId_; + std::string industry_; + std::string accessKeyId_; + std::string scene_; + std::string templateName_; + bool isDefault_; + std::string faceCategoryIds_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string templateId_; + std::string analyseTypes_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATESMARTTAGTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateSmarttagTemplateResult.h b/mts/include/alibabacloud/mts/model/UpdateSmarttagTemplateResult.h new file mode 100644 index 000000000..8b5b5d763 --- /dev/null +++ b/mts/include/alibabacloud/mts/model/UpdateSmarttagTemplateResult.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_MTS_MODEL_UPDATESMARTTAGTEMPLATERESULT_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATESMARTTAGTEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Mts + { + namespace Model + { + class ALIBABACLOUD_MTS_EXPORT UpdateSmarttagTemplateResult : public ServiceResult + { + public: + + + UpdateSmarttagTemplateResult(); + explicit UpdateSmarttagTemplateResult(const std::string &payload); + ~UpdateSmarttagTemplateResult(); + + protected: + void parse(const std::string &payload); + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATESMARTTAGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/mts/include/alibabacloud/mts/model/UpdateTemplateRequest.h b/mts/include/alibabacloud/mts/model/UpdateTemplateRequest.h index 2a7602e60..13598267a 100644 --- a/mts/include/alibabacloud/mts/model/UpdateTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateTemplateRequest.h @@ -1,81 +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_MTS_MODEL_UPDATETEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATETEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateTemplateRequest : public RpcServiceRequest - { - - public: - UpdateTemplateRequest(); - ~UpdateTemplateRequest(); - - std::string getContainer()const; - void setContainer(const std::string& container); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getVideo()const; - void setVideo(const std::string& video); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getTransConfig()const; - void setTransConfig(const std::string& transConfig); - std::string getAudio()const; - void setAudio(const std::string& audio); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getMuxConfig()const; - void setMuxConfig(const std::string& muxConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getTemplateId()const; - void setTemplateId(const std::string& templateId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string container_; - long resourceOwnerId_; - std::string video_; - std::string accessKeyId_; - std::string transConfig_; - std::string audio_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string muxConfig_; - long ownerId_; - std::string templateId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATETEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATETEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateTemplateRequest : public RpcServiceRequest { +public: + UpdateTemplateRequest(); + ~UpdateTemplateRequest(); + std::string getContainer() const; + void setContainer(const std::string &container); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getVideo() const; + void setVideo(const std::string &video); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getTransConfig() const; + void setTransConfig(const std::string &transConfig); + std::string getAudio() const; + void setAudio(const std::string &audio); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getMuxConfig() const; + void setMuxConfig(const std::string &muxConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getTemplateId() const; + void setTemplateId(const std::string &templateId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string container_; + long resourceOwnerId_; + std::string video_; + std::string accessKeyId_; + std::string transConfig_; + std::string audio_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string muxConfig_; + long ownerId_; + std::string templateId_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATETEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateTemplateResult.h b/mts/include/alibabacloud/mts/model/UpdateTemplateResult.h index e656422c5..ebe521795 100644 --- a/mts/include/alibabacloud/mts/model/UpdateTemplateResult.h +++ b/mts/include/alibabacloud/mts/model/UpdateTemplateResult.h @@ -34,10 +34,6 @@ namespace AlibabaCloud public: struct _Template { - struct Container - { - std::string format; - }; struct Video { struct BitrateBnd @@ -58,26 +54,16 @@ namespace AlibabaCloud std::string bitrate; std::string profile; std::string crop; + std::string pad; std::string codec; std::string maxrate; - std::string pad; - std::string crf; std::string maxFps; + std::string crf; std::string height; std::string degrain; std::string width; std::string resoPriority; }; - struct Audio - { - std::string codec; - std::string qscale; - std::string remove; - std::string samplerate; - std::string bitrate; - std::string profile; - std::string channels; - }; struct TransConfig { std::string isCheckAudioBitrate; @@ -91,25 +77,39 @@ namespace AlibabaCloud }; struct MuxConfig { - struct Segment - { - std::string duration; - }; - struct Gif - { - std::string loop; - std::string finalDelay; - std::string ditherMode; - std::string isCustomPalette; - }; struct Webp { std::string loop; }; - Gif gif; + struct Gif + { + std::string finalDelay; + std::string loop; + std::string ditherMode; + std::string isCustomPalette; + }; + struct Segment + { + std::string duration; + }; Webp webp; + Gif gif; Segment segment; }; + struct Audio + { + std::string codec; + std::string qscale; + std::string remove; + std::string samplerate; + std::string bitrate; + std::string profile; + std::string channels; + }; + struct Container + { + std::string format; + }; Container container; TransConfig transConfig; Video video; diff --git a/mts/include/alibabacloud/mts/model/UpdateTerrorismPipelineRequest.h b/mts/include/alibabacloud/mts/model/UpdateTerrorismPipelineRequest.h index 9f3e8768b..247e6e7da 100644 --- a/mts/include/alibabacloud/mts/model/UpdateTerrorismPipelineRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateTerrorismPipelineRequest.h @@ -1,75 +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_MTS_MODEL_UPDATETERRORISMPIPELINEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATETERRORISMPIPELINEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateTerrorismPipelineRequest : public RpcServiceRequest - { - - public: - UpdateTerrorismPipelineRequest(); - ~UpdateTerrorismPipelineRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getState()const; - void setState(const std::string& state); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - std::string getNotifyConfig()const; - void setNotifyConfig(const std::string& notifyConfig); - long getOwnerId()const; - void setOwnerId(long ownerId); - int getPriority()const; - void setPriority(int priority); - std::string getPipelineId()const; - void setPipelineId(const std::string& pipelineId); - std::string getName()const; - void setName(const std::string& name); - - private: - long resourceOwnerId_; - std::string accessKeyId_; - std::string state_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - std::string notifyConfig_; - long ownerId_; - int priority_; - std::string pipelineId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATETERRORISMPIPELINEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATETERRORISMPIPELINEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATETERRORISMPIPELINEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateTerrorismPipelineRequest : public RpcServiceRequest { +public: + UpdateTerrorismPipelineRequest(); + ~UpdateTerrorismPipelineRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getState() const; + void setState(const std::string &state); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + std::string getNotifyConfig() const; + void setNotifyConfig(const std::string ¬ifyConfig); + long getOwnerId() const; + void setOwnerId(long ownerId); + int getPriority() const; + void setPriority(int priority); + std::string getPipelineId() const; + void setPipelineId(const std::string &pipelineId); + std::string getName() const; + void setName(const std::string &name); + +private: + long resourceOwnerId_; + std::string accessKeyId_; + std::string state_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + std::string notifyConfig_; + long ownerId_; + int priority_; + std::string pipelineId_; + std::string name_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATETERRORISMPIPELINEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateWaterMarkTemplateRequest.h b/mts/include/alibabacloud/mts/model/UpdateWaterMarkTemplateRequest.h index b62bbc6c8..3b043f003 100644 --- a/mts/include/alibabacloud/mts/model/UpdateWaterMarkTemplateRequest.h +++ b/mts/include/alibabacloud/mts/model/UpdateWaterMarkTemplateRequest.h @@ -1,69 +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_MTS_MODEL_UPDATEWATERMARKTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_MTS_MODEL_UPDATEWATERMARKTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Mts - { - namespace Model - { - class ALIBABACLOUD_MTS_EXPORT UpdateWaterMarkTemplateRequest : public RpcServiceRequest - { - - public: - UpdateWaterMarkTemplateRequest(); - ~UpdateWaterMarkTemplateRequest(); - - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getWaterMarkTemplateId()const; - void setWaterMarkTemplateId(const std::string& waterMarkTemplateId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getResourceOwnerAccount()const; - void setResourceOwnerAccount(const std::string& resourceOwnerAccount); - std::string getOwnerAccount()const; - void setOwnerAccount(const std::string& ownerAccount); - long getOwnerId()const; - void setOwnerId(long ownerId); - std::string getName()const; - void setName(const std::string& name); - std::string getConfig()const; - void setConfig(const std::string& config); - - private: - long resourceOwnerId_; - std::string waterMarkTemplateId_; - std::string accessKeyId_; - std::string resourceOwnerAccount_; - std::string ownerAccount_; - long ownerId_; - std::string name_; - std::string config_; - - }; - } - } -} -#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEWATERMARKTEMPLATEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_MTS_MODEL_UPDATEWATERMARKTEMPLATEREQUEST_H_ +#define ALIBABACLOUD_MTS_MODEL_UPDATEWATERMARKTEMPLATEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace Mts { +namespace Model { +class ALIBABACLOUD_MTS_EXPORT UpdateWaterMarkTemplateRequest : public RpcServiceRequest { +public: + UpdateWaterMarkTemplateRequest(); + ~UpdateWaterMarkTemplateRequest(); + long getResourceOwnerId() const; + void setResourceOwnerId(long resourceOwnerId); + std::string getWaterMarkTemplateId() const; + void setWaterMarkTemplateId(const std::string &waterMarkTemplateId); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getResourceOwnerAccount() const; + void setResourceOwnerAccount(const std::string &resourceOwnerAccount); + std::string getOwnerAccount() const; + void setOwnerAccount(const std::string &ownerAccount); + long getOwnerId() const; + void setOwnerId(long ownerId); + std::string getName() const; + void setName(const std::string &name); + std::string getConfig() const; + void setConfig(const std::string &config); + +private: + long resourceOwnerId_; + std::string waterMarkTemplateId_; + std::string accessKeyId_; + std::string resourceOwnerAccount_; + std::string ownerAccount_; + long ownerId_; + std::string name_; + std::string config_; +}; +} // namespace Model +} // namespace Mts +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_MTS_MODEL_UPDATEWATERMARKTEMPLATEREQUEST_H_ diff --git a/mts/include/alibabacloud/mts/model/UpdateWaterMarkTemplateResult.h b/mts/include/alibabacloud/mts/model/UpdateWaterMarkTemplateResult.h index d4cb6eb64..3244f5ebf 100644 --- a/mts/include/alibabacloud/mts/model/UpdateWaterMarkTemplateResult.h +++ b/mts/include/alibabacloud/mts/model/UpdateWaterMarkTemplateResult.h @@ -34,11 +34,6 @@ namespace AlibabaCloud public: struct WaterMarkTemplate { - struct Timeline - { - std::string start; - std::string duration; - }; struct RatioRefer { std::string dx; @@ -46,8 +41,13 @@ namespace AlibabaCloud std::string height; std::string width; }; - Timeline timeline; + struct Timeline + { + std::string start; + std::string duration; + }; RatioRefer ratioRefer; + Timeline timeline; std::string type; std::string dx; std::string dy; diff --git a/mts/src/MtsClient.cc b/mts/src/MtsClient.cc index fe7a8092f..2f42553e5 100644 --- a/mts/src/MtsClient.cc +++ b/mts/src/MtsClient.cc @@ -31,21 +31,21 @@ MtsClient::MtsClient(const Credentials &credentials, const ClientConfiguration & RpcServiceClient(SERVICE_NAME, std::make_shared(credentials), configuration) { auto locationClient = std::make_shared(credentials, configuration); - endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "mts"); } MtsClient::MtsClient(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, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "mts"); } MtsClient::MtsClient(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, ""); + endpointProvider_ = std::make_shared(locationClient, configuration.regionId(), SERVICE_NAME, "mts"); } MtsClient::~MtsClient() @@ -447,6 +447,42 @@ MtsClient::AddPornPipelineOutcomeCallable MtsClient::addPornPipelineCallable(con return task->get_future(); } +MtsClient::AddSmarttagTemplateOutcome MtsClient::addSmarttagTemplate(const AddSmarttagTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return AddSmarttagTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return AddSmarttagTemplateOutcome(AddSmarttagTemplateResult(outcome.result())); + else + return AddSmarttagTemplateOutcome(outcome.error()); +} + +void MtsClient::addSmarttagTemplateAsync(const AddSmarttagTemplateRequest& request, const AddSmarttagTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, addSmarttagTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::AddSmarttagTemplateOutcomeCallable MtsClient::addSmarttagTemplateCallable(const AddSmarttagTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->addSmarttagTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::AddTemplateOutcome MtsClient::addTemplate(const AddTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +807,42 @@ MtsClient::CreateFpShotDBOutcomeCallable MtsClient::createFpShotDBCallable(const return task->get_future(); } +MtsClient::CreateInferenceServerOutcome MtsClient::createInferenceServer(const CreateInferenceServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateInferenceServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateInferenceServerOutcome(CreateInferenceServerResult(outcome.result())); + else + return CreateInferenceServerOutcome(outcome.error()); +} + +void MtsClient::createInferenceServerAsync(const CreateInferenceServerRequest& request, const CreateInferenceServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createInferenceServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::CreateInferenceServerOutcomeCallable MtsClient::createInferenceServerCallable(const CreateInferenceServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createInferenceServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::CreateMcuTemplateOutcome MtsClient::createMcuTemplate(const CreateMcuTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1203,6 +1275,42 @@ MtsClient::DeletePipelineOutcomeCallable MtsClient::deletePipelineCallable(const return task->get_future(); } +MtsClient::DeleteSmarttagTemplateOutcome MtsClient::deleteSmarttagTemplate(const DeleteSmarttagTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSmarttagTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSmarttagTemplateOutcome(DeleteSmarttagTemplateResult(outcome.result())); + else + return DeleteSmarttagTemplateOutcome(outcome.error()); +} + +void MtsClient::deleteSmarttagTemplateAsync(const DeleteSmarttagTemplateRequest& request, const DeleteSmarttagTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSmarttagTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::DeleteSmarttagTemplateOutcomeCallable MtsClient::deleteSmarttagTemplateCallable(const DeleteSmarttagTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSmarttagTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::DeleteTemplateOutcome MtsClient::deleteTemplate(const DeleteTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1311,6 +1419,78 @@ MtsClient::DescribeMtsUserResourcePackageOutcomeCallable MtsClient::describeMtsU return task->get_future(); } +MtsClient::DetectImageSyncOutcome MtsClient::detectImageSync(const DetectImageSyncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DetectImageSyncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DetectImageSyncOutcome(DetectImageSyncResult(outcome.result())); + else + return DetectImageSyncOutcome(outcome.error()); +} + +void MtsClient::detectImageSyncAsync(const DetectImageSyncRequest& request, const DetectImageSyncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, detectImageSync(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::DetectImageSyncOutcomeCallable MtsClient::detectImageSyncCallable(const DetectImageSyncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->detectImageSync(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MtsClient::GetJobInfoOutcome MtsClient::getJobInfo(const GetJobInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetJobInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetJobInfoOutcome(GetJobInfoResult(outcome.result())); + else + return GetJobInfoOutcome(outcome.error()); +} + +void MtsClient::getJobInfoAsync(const GetJobInfoRequest& request, const GetJobInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getJobInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::GetJobInfoOutcomeCallable MtsClient::getJobInfoCallable(const GetJobInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getJobInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::GetLicenseOutcome MtsClient::getLicense(const GetLicenseRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1563,6 +1743,42 @@ MtsClient::ListCoverPipelineOutcomeCallable MtsClient::listCoverPipelineCallable return task->get_future(); } +MtsClient::ListCustomPersonsOutcome MtsClient::listCustomPersons(const ListCustomPersonsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListCustomPersonsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListCustomPersonsOutcome(ListCustomPersonsResult(outcome.result())); + else + return ListCustomPersonsOutcome(outcome.error()); +} + +void MtsClient::listCustomPersonsAsync(const ListCustomPersonsRequest& request, const ListCustomPersonsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listCustomPersons(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::ListCustomPersonsOutcomeCallable MtsClient::listCustomPersonsCallable(const ListCustomPersonsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listCustomPersons(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::ListFpShotDBOutcome MtsClient::listFpShotDB(const ListFpShotDBRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1599,6 +1815,42 @@ MtsClient::ListFpShotDBOutcomeCallable MtsClient::listFpShotDBCallable(const Lis return task->get_future(); } +MtsClient::ListFpShotFilesOutcome MtsClient::listFpShotFiles(const ListFpShotFilesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListFpShotFilesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListFpShotFilesOutcome(ListFpShotFilesResult(outcome.result())); + else + return ListFpShotFilesOutcome(outcome.error()); +} + +void MtsClient::listFpShotFilesAsync(const ListFpShotFilesRequest& request, const ListFpShotFilesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listFpShotFiles(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::ListFpShotFilesOutcomeCallable MtsClient::listFpShotFilesCallable(const ListFpShotFilesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listFpShotFiles(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::ListFpShotNotaryOutcome MtsClient::listFpShotNotary(const ListFpShotNotaryRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1635,6 +1887,42 @@ MtsClient::ListFpShotNotaryOutcomeCallable MtsClient::listFpShotNotaryCallable(c return task->get_future(); } +MtsClient::ListInferenceJobOutcome MtsClient::listInferenceJob(const ListInferenceJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListInferenceJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListInferenceJobOutcome(ListInferenceJobResult(outcome.result())); + else + return ListInferenceJobOutcome(outcome.error()); +} + +void MtsClient::listInferenceJobAsync(const ListInferenceJobRequest& request, const ListInferenceJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listInferenceJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::ListInferenceJobOutcomeCallable MtsClient::listInferenceJobCallable(const ListInferenceJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listInferenceJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::ListJobOutcome MtsClient::listJob(const ListJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2427,6 +2715,78 @@ MtsClient::QueryFpCompareJobListOutcomeCallable MtsClient::queryFpCompareJobList return task->get_future(); } +MtsClient::QueryFpDBDeleteJobListOutcome MtsClient::queryFpDBDeleteJobList(const QueryFpDBDeleteJobListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryFpDBDeleteJobListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryFpDBDeleteJobListOutcome(QueryFpDBDeleteJobListResult(outcome.result())); + else + return QueryFpDBDeleteJobListOutcome(outcome.error()); +} + +void MtsClient::queryFpDBDeleteJobListAsync(const QueryFpDBDeleteJobListRequest& request, const QueryFpDBDeleteJobListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryFpDBDeleteJobList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryFpDBDeleteJobListOutcomeCallable MtsClient::queryFpDBDeleteJobListCallable(const QueryFpDBDeleteJobListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryFpDBDeleteJobList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MtsClient::QueryFpFileDeleteJobListOutcome MtsClient::queryFpFileDeleteJobList(const QueryFpFileDeleteJobListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryFpFileDeleteJobListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryFpFileDeleteJobListOutcome(QueryFpFileDeleteJobListResult(outcome.result())); + else + return QueryFpFileDeleteJobListOutcome(outcome.error()); +} + +void MtsClient::queryFpFileDeleteJobListAsync(const QueryFpFileDeleteJobListRequest& request, const QueryFpFileDeleteJobListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryFpFileDeleteJobList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryFpFileDeleteJobListOutcomeCallable MtsClient::queryFpFileDeleteJobListCallable(const QueryFpFileDeleteJobListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryFpFileDeleteJobList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::QueryFpImportResultOutcome MtsClient::queryFpImportResult(const QueryFpImportResultRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2499,6 +2859,42 @@ MtsClient::QueryFpShotJobListOutcomeCallable MtsClient::queryFpShotJobListCallab return task->get_future(); } +MtsClient::QueryIProductionJobOutcome MtsClient::queryIProductionJob(const QueryIProductionJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryIProductionJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryIProductionJobOutcome(QueryIProductionJobResult(outcome.result())); + else + return QueryIProductionJobOutcome(outcome.error()); +} + +void MtsClient::queryIProductionJobAsync(const QueryIProductionJobRequest& request, const QueryIProductionJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryIProductionJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryIProductionJobOutcomeCallable MtsClient::queryIProductionJobCallable(const QueryIProductionJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryIProductionJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::QueryIProductionJobListOutcome MtsClient::queryIProductionJobList(const QueryIProductionJobListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2571,6 +2967,114 @@ MtsClient::QueryImageSearchJobListOutcomeCallable MtsClient::queryImageSearchJob return task->get_future(); } +MtsClient::QueryInferenceJobOutcome MtsClient::queryInferenceJob(const QueryInferenceJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryInferenceJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryInferenceJobOutcome(QueryInferenceJobResult(outcome.result())); + else + return QueryInferenceJobOutcome(outcome.error()); +} + +void MtsClient::queryInferenceJobAsync(const QueryInferenceJobRequest& request, const QueryInferenceJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryInferenceJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryInferenceJobOutcomeCallable MtsClient::queryInferenceJobCallable(const QueryInferenceJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryInferenceJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MtsClient::QueryInferenceServerOutcome MtsClient::queryInferenceServer(const QueryInferenceServerRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryInferenceServerOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryInferenceServerOutcome(QueryInferenceServerResult(outcome.result())); + else + return QueryInferenceServerOutcome(outcome.error()); +} + +void MtsClient::queryInferenceServerAsync(const QueryInferenceServerRequest& request, const QueryInferenceServerAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryInferenceServer(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryInferenceServerOutcomeCallable MtsClient::queryInferenceServerCallable(const QueryInferenceServerRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryInferenceServer(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MtsClient::QueryInnerJobOutcome MtsClient::queryInnerJob(const QueryInnerJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryInnerJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryInnerJobOutcome(QueryInnerJobResult(outcome.result())); + else + return QueryInnerJobOutcome(outcome.error()); +} + +void MtsClient::queryInnerJobAsync(const QueryInnerJobRequest& request, const QueryInnerJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryInnerJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryInnerJobOutcomeCallable MtsClient::queryInnerJobCallable(const QueryInnerJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryInnerJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::QueryJobListOutcome MtsClient::queryJobList(const QueryJobListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3219,6 +3723,42 @@ MtsClient::QuerySmarttagJobOutcomeCallable MtsClient::querySmarttagJobCallable(c return task->get_future(); } +MtsClient::QuerySmarttagTemplateListOutcome MtsClient::querySmarttagTemplateList(const QuerySmarttagTemplateListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QuerySmarttagTemplateListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QuerySmarttagTemplateListOutcome(QuerySmarttagTemplateListResult(outcome.result())); + else + return QuerySmarttagTemplateListOutcome(outcome.error()); +} + +void MtsClient::querySmarttagTemplateListAsync(const QuerySmarttagTemplateListRequest& request, const QuerySmarttagTemplateListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, querySmarttagTemplateList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QuerySmarttagTemplateListOutcomeCallable MtsClient::querySmarttagTemplateListCallable(const QuerySmarttagTemplateListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->querySmarttagTemplateList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::QuerySnapshotJobListOutcome MtsClient::querySnapshotJobList(const QuerySnapshotJobListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3507,6 +4047,42 @@ MtsClient::QueryVideoPoseJobListOutcomeCallable MtsClient::queryVideoPoseJobList return task->get_future(); } +MtsClient::QueryVideoQualityJobOutcome MtsClient::queryVideoQualityJob(const QueryVideoQualityJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryVideoQualityJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryVideoQualityJobOutcome(QueryVideoQualityJobResult(outcome.result())); + else + return QueryVideoQualityJobOutcome(outcome.error()); +} + +void MtsClient::queryVideoQualityJobAsync(const QueryVideoQualityJobRequest& request, const QueryVideoQualityJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryVideoQualityJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::QueryVideoQualityJobOutcomeCallable MtsClient::queryVideoQualityJobCallable(const QueryVideoQualityJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryVideoQualityJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::QueryVideoSplitJobListOutcome MtsClient::queryVideoSplitJobList(const QueryVideoSplitJobListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -3651,6 +4227,42 @@ MtsClient::RefreshCdnDomainConfigsCacheOutcomeCallable MtsClient::refreshCdnDoma return task->get_future(); } +MtsClient::RegisterCustomFaceOutcome MtsClient::registerCustomFace(const RegisterCustomFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return RegisterCustomFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return RegisterCustomFaceOutcome(RegisterCustomFaceResult(outcome.result())); + else + return RegisterCustomFaceOutcome(outcome.error()); +} + +void MtsClient::registerCustomFaceAsync(const RegisterCustomFaceRequest& request, const RegisterCustomFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, registerCustomFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::RegisterCustomFaceOutcomeCallable MtsClient::registerCustomFaceCallable(const RegisterCustomFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->registerCustomFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::RegisterMediaDetailPersonOutcome MtsClient::registerMediaDetailPerson(const RegisterMediaDetailPersonRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4299,6 +4911,42 @@ MtsClient::SetAuthConfigOutcomeCallable MtsClient::setAuthConfigCallable(const S return task->get_future(); } +MtsClient::StopIProductionJobOutcome MtsClient::stopIProductionJob(const StopIProductionJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return StopIProductionJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return StopIProductionJobOutcome(StopIProductionJobResult(outcome.result())); + else + return StopIProductionJobOutcome(outcome.error()); +} + +void MtsClient::stopIProductionJobAsync(const StopIProductionJobRequest& request, const StopIProductionJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, stopIProductionJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::StopIProductionJobOutcomeCallable MtsClient::stopIProductionJobCallable(const StopIProductionJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->stopIProductionJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::SubmitAnalysisJobOutcome MtsClient::submitAnalysisJob(const SubmitAnalysisJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4623,6 +5271,78 @@ MtsClient::SubmitFpCompareJobOutcomeCallable MtsClient::submitFpCompareJobCallab return task->get_future(); } +MtsClient::SubmitFpDBDeleteJobOutcome MtsClient::submitFpDBDeleteJob(const SubmitFpDBDeleteJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitFpDBDeleteJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitFpDBDeleteJobOutcome(SubmitFpDBDeleteJobResult(outcome.result())); + else + return SubmitFpDBDeleteJobOutcome(outcome.error()); +} + +void MtsClient::submitFpDBDeleteJobAsync(const SubmitFpDBDeleteJobRequest& request, const SubmitFpDBDeleteJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitFpDBDeleteJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::SubmitFpDBDeleteJobOutcomeCallable MtsClient::submitFpDBDeleteJobCallable(const SubmitFpDBDeleteJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitFpDBDeleteJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MtsClient::SubmitFpFileDeleteJobOutcome MtsClient::submitFpFileDeleteJob(const SubmitFpFileDeleteJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitFpFileDeleteJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitFpFileDeleteJobOutcome(SubmitFpFileDeleteJobResult(outcome.result())); + else + return SubmitFpFileDeleteJobOutcome(outcome.error()); +} + +void MtsClient::submitFpFileDeleteJobAsync(const SubmitFpFileDeleteJobRequest& request, const SubmitFpFileDeleteJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitFpFileDeleteJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::SubmitFpFileDeleteJobOutcomeCallable MtsClient::submitFpFileDeleteJobCallable(const SubmitFpFileDeleteJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitFpFileDeleteJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::SubmitFpShotJobOutcome MtsClient::submitFpShotJob(const SubmitFpShotJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -4767,6 +5487,78 @@ MtsClient::SubmitImageSearchJobOutcomeCallable MtsClient::submitImageSearchJobCa return task->get_future(); } +MtsClient::SubmitInferenceJobOutcome MtsClient::submitInferenceJob(const SubmitInferenceJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitInferenceJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitInferenceJobOutcome(SubmitInferenceJobResult(outcome.result())); + else + return SubmitInferenceJobOutcome(outcome.error()); +} + +void MtsClient::submitInferenceJobAsync(const SubmitInferenceJobRequest& request, const SubmitInferenceJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitInferenceJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::SubmitInferenceJobOutcomeCallable MtsClient::submitInferenceJobCallable(const SubmitInferenceJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitInferenceJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +MtsClient::SubmitInnerJobOutcome MtsClient::submitInnerJob(const SubmitInnerJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitInnerJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitInnerJobOutcome(SubmitInnerJobResult(outcome.result())); + else + return SubmitInnerJobOutcome(outcome.error()); +} + +void MtsClient::submitInnerJobAsync(const SubmitInnerJobRequest& request, const SubmitInnerJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitInnerJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::SubmitInnerJobOutcomeCallable MtsClient::submitInnerJobCallable(const SubmitInnerJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitInnerJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::SubmitJobsOutcome MtsClient::submitJobs(const SubmitJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5235,6 +6027,42 @@ MtsClient::SubmitTerrorismJobOutcomeCallable MtsClient::submitTerrorismJobCallab return task->get_future(); } +MtsClient::SubmitURLUploadJobOutcome MtsClient::submitURLUploadJob(const SubmitURLUploadJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitURLUploadJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitURLUploadJobOutcome(SubmitURLUploadJobResult(outcome.result())); + else + return SubmitURLUploadJobOutcome(outcome.error()); +} + +void MtsClient::submitURLUploadJobAsync(const SubmitURLUploadJobRequest& request, const SubmitURLUploadJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitURLUploadJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::SubmitURLUploadJobOutcomeCallable MtsClient::submitURLUploadJobCallable(const SubmitURLUploadJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitURLUploadJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::SubmitVideoGifJobOutcome MtsClient::submitVideoGifJob(const SubmitVideoGifJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5307,6 +6135,42 @@ MtsClient::SubmitVideoPoseJobOutcomeCallable MtsClient::submitVideoPoseJobCallab return task->get_future(); } +MtsClient::SubmitVideoQualityJobOutcome MtsClient::submitVideoQualityJob(const SubmitVideoQualityJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SubmitVideoQualityJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SubmitVideoQualityJobOutcome(SubmitVideoQualityJobResult(outcome.result())); + else + return SubmitVideoQualityJobOutcome(outcome.error()); +} + +void MtsClient::submitVideoQualityJobAsync(const SubmitVideoQualityJobRequest& request, const SubmitVideoQualityJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, submitVideoQualityJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::SubmitVideoQualityJobOutcomeCallable MtsClient::submitVideoQualityJobCallable(const SubmitVideoQualityJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->submitVideoQualityJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::SubmitVideoSplitJobOutcome MtsClient::submitVideoSplitJob(const SubmitVideoSplitJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5379,6 +6243,42 @@ MtsClient::SubmitVideoSummaryJobOutcomeCallable MtsClient::submitVideoSummaryJob return task->get_future(); } +MtsClient::TagCustomPersonOutcome MtsClient::tagCustomPerson(const TagCustomPersonRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagCustomPersonOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagCustomPersonOutcome(TagCustomPersonResult(outcome.result())); + else + return TagCustomPersonOutcome(outcome.error()); +} + +void MtsClient::tagCustomPersonAsync(const TagCustomPersonRequest& request, const TagCustomPersonAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagCustomPerson(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::TagCustomPersonOutcomeCallable MtsClient::tagCustomPersonCallable(const TagCustomPersonRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagCustomPerson(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::UnbindInputBucketOutcome MtsClient::unbindInputBucket(const UnbindInputBucketRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5451,6 +6351,42 @@ MtsClient::UnbindOutputBucketOutcomeCallable MtsClient::unbindOutputBucketCallab return task->get_future(); } +MtsClient::UnregisterCustomFaceOutcome MtsClient::unregisterCustomFace(const UnregisterCustomFaceRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UnregisterCustomFaceOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UnregisterCustomFaceOutcome(UnregisterCustomFaceResult(outcome.result())); + else + return UnregisterCustomFaceOutcome(outcome.error()); +} + +void MtsClient::unregisterCustomFaceAsync(const UnregisterCustomFaceRequest& request, const UnregisterCustomFaceAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, unregisterCustomFace(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::UnregisterCustomFaceOutcomeCallable MtsClient::unregisterCustomFaceCallable(const UnregisterCustomFaceRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->unregisterCustomFace(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::UpdateAsrPipelineOutcome MtsClient::updateAsrPipeline(const UpdateAsrPipelineRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -5955,6 +6891,42 @@ MtsClient::UpdatePornPipelineOutcomeCallable MtsClient::updatePornPipelineCallab return task->get_future(); } +MtsClient::UpdateSmarttagTemplateOutcome MtsClient::updateSmarttagTemplate(const UpdateSmarttagTemplateRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UpdateSmarttagTemplateOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UpdateSmarttagTemplateOutcome(UpdateSmarttagTemplateResult(outcome.result())); + else + return UpdateSmarttagTemplateOutcome(outcome.error()); +} + +void MtsClient::updateSmarttagTemplateAsync(const UpdateSmarttagTemplateRequest& request, const UpdateSmarttagTemplateAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, updateSmarttagTemplate(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +MtsClient::UpdateSmarttagTemplateOutcomeCallable MtsClient::updateSmarttagTemplateCallable(const UpdateSmarttagTemplateRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->updateSmarttagTemplate(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + MtsClient::UpdateTemplateOutcome MtsClient::updateTemplate(const UpdateTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/mts/src/model/ActivateMediaWorkflowRequest.cc b/mts/src/model/ActivateMediaWorkflowRequest.cc index 14d59b095..b8656e096 100644 --- a/mts/src/model/ActivateMediaWorkflowRequest.cc +++ b/mts/src/model/ActivateMediaWorkflowRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::ActivateMediaWorkflowRequest; - -ActivateMediaWorkflowRequest::ActivateMediaWorkflowRequest() : - RpcServiceRequest("mts", "2014-06-18", "ActivateMediaWorkflow") -{ - setMethod(HttpRequest::Method::Post); -} - -ActivateMediaWorkflowRequest::~ActivateMediaWorkflowRequest() -{} - -long ActivateMediaWorkflowRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ActivateMediaWorkflowRequest; + +ActivateMediaWorkflowRequest::ActivateMediaWorkflowRequest() + : RpcServiceRequest("mts", "2014-06-18", "ActivateMediaWorkflow") { + setMethod(HttpRequest::Method::Post); } -void ActivateMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ActivateMediaWorkflowRequest::~ActivateMediaWorkflowRequest() {} + +long ActivateMediaWorkflowRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ActivateMediaWorkflowRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ActivateMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ActivateMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ActivateMediaWorkflowRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ActivateMediaWorkflowRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ActivateMediaWorkflowRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ActivateMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ActivateMediaWorkflowRequest::getOwnerAccount() const { + return ownerAccount_; } -long ActivateMediaWorkflowRequest::getOwnerId()const -{ - return ownerId_; +void ActivateMediaWorkflowRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ActivateMediaWorkflowRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ActivateMediaWorkflowRequest::getOwnerId() const { + return ownerId_; } -std::string ActivateMediaWorkflowRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ActivateMediaWorkflowRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ActivateMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ActivateMediaWorkflowRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ActivateMediaWorkflowRequest::getMediaWorkflowId()const -{ - return mediaWorkflowId_; +void ActivateMediaWorkflowRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ActivateMediaWorkflowRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) -{ - mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); +std::string ActivateMediaWorkflowRequest::getMediaWorkflowId() const { + return mediaWorkflowId_; +} + +void ActivateMediaWorkflowRequest::setMediaWorkflowId(const std::string &mediaWorkflowId) { + mediaWorkflowId_ = mediaWorkflowId; + setParameter(std::string("MediaWorkflowId"), mediaWorkflowId); } diff --git a/mts/src/model/ActivateMediaWorkflowResult.cc b/mts/src/model/ActivateMediaWorkflowResult.cc index 7476b6577..cbf86dfe5 100644 --- a/mts/src/model/ActivateMediaWorkflowResult.cc +++ b/mts/src/model/ActivateMediaWorkflowResult.cc @@ -40,16 +40,16 @@ void ActivateMediaWorkflowResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; + if(!mediaWorkflowNode["CreationTime"].isNull()) + mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) mediaWorkflow_.mediaWorkflowId = mediaWorkflowNode["MediaWorkflowId"].asString(); + if(!mediaWorkflowNode["State"].isNull()) + mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); if(!mediaWorkflowNode["Name"].isNull()) mediaWorkflow_.name = mediaWorkflowNode["Name"].asString(); if(!mediaWorkflowNode["Topology"].isNull()) mediaWorkflow_.topology = mediaWorkflowNode["Topology"].asString(); - if(!mediaWorkflowNode["State"].isNull()) - mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); - if(!mediaWorkflowNode["CreationTime"].isNull()) - mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); } diff --git a/mts/src/model/AddAsrPipelineRequest.cc b/mts/src/model/AddAsrPipelineRequest.cc index e734d4167..f248a3d75 100644 --- a/mts/src/model/AddAsrPipelineRequest.cc +++ b/mts/src/model/AddAsrPipelineRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::AddAsrPipelineRequest; - -AddAsrPipelineRequest::AddAsrPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddAsrPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -AddAsrPipelineRequest::~AddAsrPipelineRequest() -{} - -long AddAsrPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddAsrPipelineRequest; + +AddAsrPipelineRequest::AddAsrPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddAsrPipeline") { + setMethod(HttpRequest::Method::Post); } -void AddAsrPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddAsrPipelineRequest::~AddAsrPipelineRequest() {} + +long AddAsrPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddAsrPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddAsrPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddAsrPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddAsrPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddAsrPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddAsrPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddAsrPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddAsrPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddAsrPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddAsrPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddAsrPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddAsrPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AddAsrPipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void AddAsrPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddAsrPipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string AddAsrPipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long AddAsrPipelineRequest::getOwnerId()const -{ - return ownerId_; +void AddAsrPipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void AddAsrPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddAsrPipelineRequest::getOwnerId() const { + return ownerId_; } -int AddAsrPipelineRequest::getPriority()const -{ - return priority_; +void AddAsrPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddAsrPipelineRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int AddAsrPipelineRequest::getPriority() const { + return priority_; } -std::string AddAsrPipelineRequest::getName()const -{ - return name_; +void AddAsrPipelineRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void AddAsrPipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddAsrPipelineRequest::getName() const { + return name_; +} + +void AddAsrPipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/AddAsrPipelineResult.cc b/mts/src/model/AddAsrPipelineResult.cc index 10d650e0b..10a76346e 100644 --- a/mts/src/model/AddAsrPipelineResult.cc +++ b/mts/src/model/AddAsrPipelineResult.cc @@ -40,14 +40,14 @@ void AddAsrPipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); - if(!pipelineNode["Priority"].isNull()) - pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); if(!pipelineNode["State"].isNull()) pipeline_.state = pipelineNode["State"].asString(); + if(!pipelineNode["Priority"].isNull()) + pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); auto notifyConfigNode = pipelineNode["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/AddCategoryRequest.cc b/mts/src/model/AddCategoryRequest.cc index f161614e3..4607ea821 100644 --- a/mts/src/model/AddCategoryRequest.cc +++ b/mts/src/model/AddCategoryRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::AddCategoryRequest; - -AddCategoryRequest::AddCategoryRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddCategory") -{ - setMethod(HttpRequest::Method::Post); -} - -AddCategoryRequest::~AddCategoryRequest() -{} - -long AddCategoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddCategoryRequest; + +AddCategoryRequest::AddCategoryRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddCategory") { + setMethod(HttpRequest::Method::Post); } -void AddCategoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddCategoryRequest::~AddCategoryRequest() {} + +long AddCategoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long AddCategoryRequest::getParentId()const -{ - return parentId_; +void AddCategoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddCategoryRequest::setParentId(long parentId) -{ - parentId_ = parentId; - setParameter("ParentId", std::to_string(parentId)); +long AddCategoryRequest::getParentId() const { + return parentId_; } -std::string AddCategoryRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddCategoryRequest::setParentId(long parentId) { + parentId_ = parentId; + setParameter(std::string("ParentId"), std::to_string(parentId)); } -void AddCategoryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddCategoryRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddCategoryRequest::getCateName()const -{ - return cateName_; +void AddCategoryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddCategoryRequest::setCateName(const std::string& cateName) -{ - cateName_ = cateName; - setParameter("CateName", cateName); +std::string AddCategoryRequest::getCateName() const { + return cateName_; } -std::string AddCategoryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddCategoryRequest::setCateName(const std::string &cateName) { + cateName_ = cateName; + setParameter(std::string("CateName"), cateName); } -void AddCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddCategoryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddCategoryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddCategoryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddCategoryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddCategoryRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddCategoryRequest::getOwnerId()const -{ - return ownerId_; +void AddCategoryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddCategoryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddCategoryRequest::getOwnerId() const { + return ownerId_; +} + +void AddCategoryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/AddCategoryResult.cc b/mts/src/model/AddCategoryResult.cc index 9b2810d74..6ce0551f7 100644 --- a/mts/src/model/AddCategoryResult.cc +++ b/mts/src/model/AddCategoryResult.cc @@ -40,12 +40,12 @@ void AddCategoryResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto categoryNode = value["Category"]; - if(!categoryNode["CateId"].isNull()) - category_.cateId = categoryNode["CateId"].asString(); if(!categoryNode["CateName"].isNull()) category_.cateName = categoryNode["CateName"].asString(); if(!categoryNode["ParentId"].isNull()) category_.parentId = categoryNode["ParentId"].asString(); + if(!categoryNode["CateId"].isNull()) + category_.cateId = categoryNode["CateId"].asString(); if(!categoryNode["Level"].isNull()) category_.level = categoryNode["Level"].asString(); diff --git a/mts/src/model/AddCensorPipelineRequest.cc b/mts/src/model/AddCensorPipelineRequest.cc index 8e9e329b9..decc4d14d 100644 --- a/mts/src/model/AddCensorPipelineRequest.cc +++ b/mts/src/model/AddCensorPipelineRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::AddCensorPipelineRequest; - -AddCensorPipelineRequest::AddCensorPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddCensorPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -AddCensorPipelineRequest::~AddCensorPipelineRequest() -{} - -long AddCensorPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddCensorPipelineRequest; + +AddCensorPipelineRequest::AddCensorPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddCensorPipeline") { + setMethod(HttpRequest::Method::Post); } -void AddCensorPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddCensorPipelineRequest::~AddCensorPipelineRequest() {} + +long AddCensorPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddCensorPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddCensorPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddCensorPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddCensorPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddCensorPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddCensorPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddCensorPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddCensorPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddCensorPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddCensorPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddCensorPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddCensorPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AddCensorPipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void AddCensorPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddCensorPipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string AddCensorPipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long AddCensorPipelineRequest::getOwnerId()const -{ - return ownerId_; +void AddCensorPipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void AddCensorPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddCensorPipelineRequest::getOwnerId() const { + return ownerId_; } -int AddCensorPipelineRequest::getPriority()const -{ - return priority_; +void AddCensorPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddCensorPipelineRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int AddCensorPipelineRequest::getPriority() const { + return priority_; } -std::string AddCensorPipelineRequest::getName()const -{ - return name_; +void AddCensorPipelineRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void AddCensorPipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddCensorPipelineRequest::getName() const { + return name_; +} + +void AddCensorPipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/AddCensorPipelineResult.cc b/mts/src/model/AddCensorPipelineResult.cc index ed2e3f04c..4d9774843 100644 --- a/mts/src/model/AddCensorPipelineResult.cc +++ b/mts/src/model/AddCensorPipelineResult.cc @@ -40,14 +40,14 @@ void AddCensorPipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); - if(!pipelineNode["Priority"].isNull()) - pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); if(!pipelineNode["State"].isNull()) pipeline_.state = pipelineNode["State"].asString(); + if(!pipelineNode["Priority"].isNull()) + pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); auto notifyConfigNode = pipelineNode["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/AddCoverPipelineRequest.cc b/mts/src/model/AddCoverPipelineRequest.cc index fb2e6582b..8a25b3ae8 100644 --- a/mts/src/model/AddCoverPipelineRequest.cc +++ b/mts/src/model/AddCoverPipelineRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::AddCoverPipelineRequest; - -AddCoverPipelineRequest::AddCoverPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddCoverPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -AddCoverPipelineRequest::~AddCoverPipelineRequest() -{} - -long AddCoverPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddCoverPipelineRequest; + +AddCoverPipelineRequest::AddCoverPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddCoverPipeline") { + setMethod(HttpRequest::Method::Post); } -void AddCoverPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddCoverPipelineRequest::~AddCoverPipelineRequest() {} + +long AddCoverPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddCoverPipelineRequest::getRole()const -{ - return role_; +void AddCoverPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddCoverPipelineRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); +std::string AddCoverPipelineRequest::getRole() const { + return role_; } -std::string AddCoverPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddCoverPipelineRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); } -void AddCoverPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddCoverPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddCoverPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddCoverPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddCoverPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddCoverPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddCoverPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddCoverPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddCoverPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddCoverPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AddCoverPipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void AddCoverPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddCoverPipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string AddCoverPipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long AddCoverPipelineRequest::getOwnerId()const -{ - return ownerId_; +void AddCoverPipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void AddCoverPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddCoverPipelineRequest::getOwnerId() const { + return ownerId_; } -std::string AddCoverPipelineRequest::getPriority()const -{ - return priority_; +void AddCoverPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddCoverPipelineRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); +std::string AddCoverPipelineRequest::getPriority() const { + return priority_; } -std::string AddCoverPipelineRequest::getName()const -{ - return name_; +void AddCoverPipelineRequest::setPriority(const std::string &priority) { + priority_ = priority; + setParameter(std::string("Priority"), priority); } -void AddCoverPipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddCoverPipelineRequest::getName() const { + return name_; +} + +void AddCoverPipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/AddCoverPipelineResult.cc b/mts/src/model/AddCoverPipelineResult.cc index d6892d403..b68fe539b 100644 --- a/mts/src/model/AddCoverPipelineResult.cc +++ b/mts/src/model/AddCoverPipelineResult.cc @@ -40,16 +40,16 @@ void AddCoverPipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); - if(!pipelineNode["Priority"].isNull()) - pipeline_.priority = pipelineNode["Priority"].asString(); if(!pipelineNode["State"].isNull()) pipeline_.state = pipelineNode["State"].asString(); + if(!pipelineNode["Priority"].isNull()) + pipeline_.priority = pipelineNode["Priority"].asString(); if(!pipelineNode["Role"].isNull()) pipeline_.role = pipelineNode["Role"].asString(); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); auto notifyConfigNode = pipelineNode["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/AddMCTemplateRequest.cc b/mts/src/model/AddMCTemplateRequest.cc index 4b4b23d60..86b78661c 100644 --- a/mts/src/model/AddMCTemplateRequest.cc +++ b/mts/src/model/AddMCTemplateRequest.cc @@ -1,205 +1,171 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Mts::Model::AddMCTemplateRequest; - -AddMCTemplateRequest::AddMCTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddMCTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -AddMCTemplateRequest::~AddMCTemplateRequest() -{} - -std::string AddMCTemplateRequest::getPolitics()const -{ - return politics_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddMCTemplateRequest; + +AddMCTemplateRequest::AddMCTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddMCTemplate") { + setMethod(HttpRequest::Method::Post); } -void AddMCTemplateRequest::setPolitics(const std::string& politics) -{ - politics_ = politics; - setParameter("Politics", politics); +AddMCTemplateRequest::~AddMCTemplateRequest() {} + +std::string AddMCTemplateRequest::getPolitics() const { + return politics_; } -long AddMCTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void AddMCTemplateRequest::setPolitics(const std::string &politics) { + politics_ = politics; + setParameter(std::string("Politics"), politics); } -void AddMCTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long AddMCTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddMCTemplateRequest::getAbuse()const -{ - return abuse_; +void AddMCTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddMCTemplateRequest::setAbuse(const std::string& abuse) -{ - abuse_ = abuse; - setParameter("Abuse", abuse); +std::string AddMCTemplateRequest::getAbuse() const { + return abuse_; } -std::string AddMCTemplateRequest::getQrcode()const -{ - return qrcode_; +void AddMCTemplateRequest::setAbuse(const std::string &abuse) { + abuse_ = abuse; + setParameter(std::string("Abuse"), abuse); } -void AddMCTemplateRequest::setQrcode(const std::string& qrcode) -{ - qrcode_ = qrcode; - setParameter("Qrcode", qrcode); +std::string AddMCTemplateRequest::getQrcode() const { + return qrcode_; } -std::string AddMCTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddMCTemplateRequest::setQrcode(const std::string &qrcode) { + qrcode_ = qrcode; + setParameter(std::string("Qrcode"), qrcode); } -void AddMCTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddMCTemplateRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddMCTemplateRequest::getPorn()const -{ - return porn_; +void AddMCTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddMCTemplateRequest::setPorn(const std::string& porn) -{ - porn_ = porn; - setParameter("Porn", porn); +std::string AddMCTemplateRequest::getPorn() const { + return porn_; } -std::string AddMCTemplateRequest::getTerrorism()const -{ - return terrorism_; +void AddMCTemplateRequest::setPorn(const std::string &porn) { + porn_ = porn; + setParameter(std::string("Porn"), porn); } -void AddMCTemplateRequest::setTerrorism(const std::string& terrorism) -{ - terrorism_ = terrorism; - setParameter("Terrorism", terrorism); +std::string AddMCTemplateRequest::getTerrorism() const { + return terrorism_; } -std::string AddMCTemplateRequest::getLogo()const -{ - return logo_; +void AddMCTemplateRequest::setTerrorism(const std::string &terrorism) { + terrorism_ = terrorism; + setParameter(std::string("Terrorism"), terrorism); } -void AddMCTemplateRequest::setLogo(const std::string& logo) -{ - logo_ = logo; - setParameter("Logo", logo); +std::string AddMCTemplateRequest::getLogo() const { + return logo_; } -std::string AddMCTemplateRequest::getLive()const -{ - return live_; +void AddMCTemplateRequest::setLogo(const std::string &logo) { + logo_ = logo; + setParameter(std::string("Logo"), logo); } -void AddMCTemplateRequest::setLive(const std::string& live) -{ - live_ = live; - setParameter("Live", live); +std::string AddMCTemplateRequest::getLive() const { + return live_; } -std::string AddMCTemplateRequest::getContraband()const -{ - return contraband_; +void AddMCTemplateRequest::setLive(const std::string &live) { + live_ = live; + setParameter(std::string("Live"), live); } -void AddMCTemplateRequest::setContraband(const std::string& contraband) -{ - contraband_ = contraband; - setParameter("Contraband", contraband); +std::string AddMCTemplateRequest::getContraband() const { + return contraband_; } -std::string AddMCTemplateRequest::getAd()const -{ - return ad_; +void AddMCTemplateRequest::setContraband(const std::string &contraband) { + contraband_ = contraband; + setParameter(std::string("Contraband"), contraband); } -void AddMCTemplateRequest::setAd(const std::string& ad) -{ - ad_ = ad; - setParameter("Ad", ad); +std::string AddMCTemplateRequest::getAd() const { + return ad_; } -std::string AddMCTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddMCTemplateRequest::setAd(const std::string &ad) { + ad_ = ad; + setParameter(std::string("Ad"), ad); } -void AddMCTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddMCTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddMCTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddMCTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddMCTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddMCTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddMCTemplateRequest::getOwnerId()const -{ - return ownerId_; +void AddMCTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddMCTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddMCTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string AddMCTemplateRequest::getName()const -{ - return name_; +void AddMCTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddMCTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddMCTemplateRequest::getName() const { + return name_; } -std::string AddMCTemplateRequest::getSpam()const -{ - return spam_; +void AddMCTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void AddMCTemplateRequest::setSpam(const std::string& spam) -{ - spam_ = spam; - setParameter("Spam", spam); +std::string AddMCTemplateRequest::getSpam() const { + return spam_; +} + +void AddMCTemplateRequest::setSpam(const std::string &spam) { + spam_ = spam; + setParameter(std::string("spam"), spam); } diff --git a/mts/src/model/AddMCTemplateResult.cc b/mts/src/model/AddMCTemplateResult.cc index bfe4b10a6..da883f666 100644 --- a/mts/src/model/AddMCTemplateResult.cc +++ b/mts/src/model/AddMCTemplateResult.cc @@ -40,30 +40,30 @@ void AddMCTemplateResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto _templateNode = value["Template"]; - if(!_templateNode["TemplateId"].isNull()) - _template_.templateId = _templateNode["TemplateId"].asString(); - if(!_templateNode["Name"].isNull()) - _template_.name = _templateNode["Name"].asString(); - if(!_templateNode["Porn"].isNull()) - _template_.porn = _templateNode["Porn"].asString(); - if(!_templateNode["Terrorism"].isNull()) - _template_.terrorism = _templateNode["Terrorism"].asString(); - if(!_templateNode["Politics"].isNull()) - _template_.politics = _templateNode["Politics"].asString(); - if(!_templateNode["Ad"].isNull()) - _template_.ad = _templateNode["Ad"].asString(); - if(!_templateNode["Qrcode"].isNull()) - _template_.qrcode = _templateNode["Qrcode"].asString(); - if(!_templateNode["Live"].isNull()) - _template_.live = _templateNode["Live"].asString(); if(!_templateNode["Logo"].isNull()) _template_.logo = _templateNode["Logo"].asString(); if(!_templateNode["Abuse"].isNull()) _template_.abuse = _templateNode["Abuse"].asString(); - if(!_templateNode["Contraband"].isNull()) - _template_.contraband = _templateNode["Contraband"].asString(); + if(!_templateNode["Terrorism"].isNull()) + _template_.terrorism = _templateNode["Terrorism"].asString(); + if(!_templateNode["Politics"].isNull()) + _template_.politics = _templateNode["Politics"].asString(); + if(!_templateNode["Qrcode"].isNull()) + _template_.qrcode = _templateNode["Qrcode"].asString(); if(!_templateNode["Spam"].isNull()) _template_.spam = _templateNode["Spam"].asString(); + if(!_templateNode["Live"].isNull()) + _template_.live = _templateNode["Live"].asString(); + if(!_templateNode["Contraband"].isNull()) + _template_.contraband = _templateNode["Contraband"].asString(); + if(!_templateNode["Ad"].isNull()) + _template_.ad = _templateNode["Ad"].asString(); + if(!_templateNode["Porn"].isNull()) + _template_.porn = _templateNode["Porn"].asString(); + if(!_templateNode["Name"].isNull()) + _template_.name = _templateNode["Name"].asString(); + if(!_templateNode["TemplateId"].isNull()) + _template_.templateId = _templateNode["TemplateId"].asString(); } diff --git a/mts/src/model/AddMediaRequest.cc b/mts/src/model/AddMediaRequest.cc index f827d1dab..b5fe939d7 100644 --- a/mts/src/model/AddMediaRequest.cc +++ b/mts/src/model/AddMediaRequest.cc @@ -1,194 +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 - -using AlibabaCloud::Mts::Model::AddMediaRequest; - -AddMediaRequest::AddMediaRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddMedia") -{ - setMethod(HttpRequest::Method::Post); -} - -AddMediaRequest::~AddMediaRequest() -{} - -long AddMediaRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddMediaRequest; + +AddMediaRequest::AddMediaRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddMedia") { + setMethod(HttpRequest::Method::Post); } -void AddMediaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddMediaRequest::~AddMediaRequest() {} + +long AddMediaRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddMediaRequest::getDescription()const -{ - return description_; +void AddMediaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddMediaRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string AddMediaRequest::getDescription() const { + return description_; } -std::string AddMediaRequest::getTitle()const -{ - return title_; +void AddMediaRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void AddMediaRequest::setTitle(const std::string& title) -{ - title_ = title; - setParameter("Title", title); +std::string AddMediaRequest::getTitle() const { + return title_; } -bool AddMediaRequest::getInputUnbind()const -{ - return inputUnbind_; +void AddMediaRequest::setTitle(const std::string &title) { + title_ = title; + setParameter(std::string("Title"), title); } -void AddMediaRequest::setInputUnbind(bool inputUnbind) -{ - inputUnbind_ = inputUnbind; - setParameter("InputUnbind", inputUnbind ? "true" : "false"); +bool AddMediaRequest::getInputUnbind() const { + return inputUnbind_; } -std::string AddMediaRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddMediaRequest::setInputUnbind(bool inputUnbind) { + inputUnbind_ = inputUnbind; + setParameter(std::string("InputUnbind"), inputUnbind ? "true" : "false"); } -void AddMediaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddMediaRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddMediaRequest::getCoverURL()const -{ - return coverURL_; +void AddMediaRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddMediaRequest::setCoverURL(const std::string& coverURL) -{ - coverURL_ = coverURL; - setParameter("CoverURL", coverURL); +std::string AddMediaRequest::getCoverURL() const { + return coverURL_; } -long AddMediaRequest::getCateId()const -{ - return cateId_; +void AddMediaRequest::setCoverURL(const std::string &coverURL) { + coverURL_ = coverURL; + setParameter(std::string("CoverURL"), coverURL); } -void AddMediaRequest::setCateId(long cateId) -{ - cateId_ = cateId; - setParameter("CateId", std::to_string(cateId)); +long AddMediaRequest::getCateId() const { + return cateId_; } -std::string AddMediaRequest::getMediaWorkflowId()const -{ - return mediaWorkflowId_; +void AddMediaRequest::setCateId(long cateId) { + cateId_ = cateId; + setParameter(std::string("CateId"), std::to_string(cateId)); } -void AddMediaRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) -{ - mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); +std::string AddMediaRequest::getMediaWorkflowId() const { + return mediaWorkflowId_; } -std::string AddMediaRequest::getMediaWorkflowUserData()const -{ - return mediaWorkflowUserData_; +void AddMediaRequest::setMediaWorkflowId(const std::string &mediaWorkflowId) { + mediaWorkflowId_ = mediaWorkflowId; + setParameter(std::string("MediaWorkflowId"), mediaWorkflowId); } -void AddMediaRequest::setMediaWorkflowUserData(const std::string& mediaWorkflowUserData) -{ - mediaWorkflowUserData_ = mediaWorkflowUserData; - setParameter("MediaWorkflowUserData", mediaWorkflowUserData); +std::string AddMediaRequest::getMediaWorkflowUserData() const { + return mediaWorkflowUserData_; } -std::string AddMediaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddMediaRequest::setMediaWorkflowUserData(const std::string &mediaWorkflowUserData) { + mediaWorkflowUserData_ = mediaWorkflowUserData; + setParameter(std::string("MediaWorkflowUserData"), mediaWorkflowUserData); } -void AddMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddMediaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddMediaRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddMediaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddMediaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddMediaRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AddMediaRequest::getOverrideParams()const -{ - return overrideParams_; +void AddMediaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddMediaRequest::setOverrideParams(const std::string& overrideParams) -{ - overrideParams_ = overrideParams; - setParameter("OverrideParams", overrideParams); +std::string AddMediaRequest::getOverrideParams() const { + return overrideParams_; } -long AddMediaRequest::getOwnerId()const -{ - return ownerId_; +void AddMediaRequest::setOverrideParams(const std::string &overrideParams) { + overrideParams_ = overrideParams; + setParameter(std::string("OverrideParams"), overrideParams); } -void AddMediaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddMediaRequest::getOwnerId() const { + return ownerId_; } -std::string AddMediaRequest::getTags()const -{ - return tags_; +void AddMediaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddMediaRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +std::string AddMediaRequest::getTags() const { + return tags_; } -std::string AddMediaRequest::getFileURL()const -{ - return fileURL_; +void AddMediaRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); } -void AddMediaRequest::setFileURL(const std::string& fileURL) -{ - fileURL_ = fileURL; - setParameter("FileURL", fileURL); +std::string AddMediaRequest::getFileURL() const { + return fileURL_; +} + +void AddMediaRequest::setFileURL(const std::string &fileURL) { + fileURL_ = fileURL; + setParameter(std::string("FileURL"), fileURL); } diff --git a/mts/src/model/AddMediaResult.cc b/mts/src/model/AddMediaResult.cc index b08237cda..5deb1b65a 100644 --- a/mts/src/model/AddMediaResult.cc +++ b/mts/src/model/AddMediaResult.cc @@ -40,41 +40,41 @@ void AddMediaResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto mediaNode = value["Media"]; - if(!mediaNode["MediaId"].isNull()) - media_.mediaId = mediaNode["MediaId"].asString(); - if(!mediaNode["Title"].isNull()) - media_.title = mediaNode["Title"].asString(); - if(!mediaNode["Description"].isNull()) - media_.description = mediaNode["Description"].asString(); - if(!mediaNode["CoverURL"].isNull()) - media_.coverURL = mediaNode["CoverURL"].asString(); - if(!mediaNode["CateId"].isNull()) - media_.cateId = std::stol(mediaNode["CateId"].asString()); - if(!mediaNode["Duration"].isNull()) - media_.duration = mediaNode["Duration"].asString(); - if(!mediaNode["Format"].isNull()) - media_.format = mediaNode["Format"].asString(); - if(!mediaNode["Size"].isNull()) - media_.size = mediaNode["Size"].asString(); - if(!mediaNode["Bitrate"].isNull()) - media_.bitrate = mediaNode["Bitrate"].asString(); - if(!mediaNode["Width"].isNull()) - media_.width = mediaNode["Width"].asString(); - if(!mediaNode["Height"].isNull()) - media_.height = mediaNode["Height"].asString(); - if(!mediaNode["Fps"].isNull()) - media_.fps = mediaNode["Fps"].asString(); - if(!mediaNode["PublishState"].isNull()) - media_.publishState = mediaNode["PublishState"].asString(); - if(!mediaNode["CensorState"].isNull()) - media_.censorState = mediaNode["CensorState"].asString(); if(!mediaNode["CreationTime"].isNull()) media_.creationTime = mediaNode["CreationTime"].asString(); + if(!mediaNode["CateId"].isNull()) + media_.cateId = std::stol(mediaNode["CateId"].asString()); + if(!mediaNode["Height"].isNull()) + media_.height = mediaNode["Height"].asString(); + if(!mediaNode["CensorState"].isNull()) + media_.censorState = mediaNode["CensorState"].asString(); + if(!mediaNode["Bitrate"].isNull()) + media_.bitrate = mediaNode["Bitrate"].asString(); + if(!mediaNode["MediaId"].isNull()) + media_.mediaId = mediaNode["MediaId"].asString(); + if(!mediaNode["PublishState"].isNull()) + media_.publishState = mediaNode["PublishState"].asString(); + if(!mediaNode["Description"].isNull()) + media_.description = mediaNode["Description"].asString(); + if(!mediaNode["Width"].isNull()) + media_.width = mediaNode["Width"].asString(); + if(!mediaNode["Size"].isNull()) + media_.size = mediaNode["Size"].asString(); + if(!mediaNode["CoverURL"].isNull()) + media_.coverURL = mediaNode["CoverURL"].asString(); + if(!mediaNode["Duration"].isNull()) + media_.duration = mediaNode["Duration"].asString(); + if(!mediaNode["Fps"].isNull()) + media_.fps = mediaNode["Fps"].asString(); + if(!mediaNode["Title"].isNull()) + media_.title = mediaNode["Title"].asString(); + if(!mediaNode["Format"].isNull()) + media_.format = mediaNode["Format"].asString(); auto fileNode = mediaNode["File"]; - if(!fileNode["URL"].isNull()) - media_.file.uRL = fileNode["URL"].asString(); if(!fileNode["State"].isNull()) media_.file.state = fileNode["State"].asString(); + if(!fileNode["URL"].isNull()) + media_.file.uRL = fileNode["URL"].asString(); auto allTags = mediaNode["Tags"]["Tag"]; for (auto value : allTags) media_.tags.push_back(value.asString()); diff --git a/mts/src/model/AddMediaTagRequest.cc b/mts/src/model/AddMediaTagRequest.cc index bec9c7ad6..cca501702 100644 --- a/mts/src/model/AddMediaTagRequest.cc +++ b/mts/src/model/AddMediaTagRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::AddMediaTagRequest; - -AddMediaTagRequest::AddMediaTagRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddMediaTag") -{ - setMethod(HttpRequest::Method::Post); -} - -AddMediaTagRequest::~AddMediaTagRequest() -{} - -long AddMediaTagRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddMediaTagRequest; + +AddMediaTagRequest::AddMediaTagRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddMediaTag") { + setMethod(HttpRequest::Method::Post); } -void AddMediaTagRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddMediaTagRequest::~AddMediaTagRequest() {} + +long AddMediaTagRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddMediaTagRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddMediaTagRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddMediaTagRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddMediaTagRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddMediaTagRequest::getTag()const -{ - return tag_; +void AddMediaTagRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddMediaTagRequest::setTag(const std::string& tag) -{ - tag_ = tag; - setParameter("Tag", tag); +std::string AddMediaTagRequest::getTag() const { + return tag_; } -std::string AddMediaTagRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddMediaTagRequest::setTag(const std::string &tag) { + tag_ = tag; + setParameter(std::string("Tag"), tag); } -void AddMediaTagRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddMediaTagRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddMediaTagRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddMediaTagRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddMediaTagRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddMediaTagRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddMediaTagRequest::getOwnerId()const -{ - return ownerId_; +void AddMediaTagRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddMediaTagRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddMediaTagRequest::getOwnerId() const { + return ownerId_; } -std::string AddMediaTagRequest::getMediaId()const -{ - return mediaId_; +void AddMediaTagRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddMediaTagRequest::setMediaId(const std::string& mediaId) -{ - mediaId_ = mediaId; - setParameter("MediaId", mediaId); +std::string AddMediaTagRequest::getMediaId() const { + return mediaId_; +} + +void AddMediaTagRequest::setMediaId(const std::string &mediaId) { + mediaId_ = mediaId; + setParameter(std::string("MediaId"), mediaId); } diff --git a/mts/src/model/AddMediaWorkflowRequest.cc b/mts/src/model/AddMediaWorkflowRequest.cc index 707ae06b7..eb802a831 100644 --- a/mts/src/model/AddMediaWorkflowRequest.cc +++ b/mts/src/model/AddMediaWorkflowRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::AddMediaWorkflowRequest; - -AddMediaWorkflowRequest::AddMediaWorkflowRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddMediaWorkflow") -{ - setMethod(HttpRequest::Method::Post); -} - -AddMediaWorkflowRequest::~AddMediaWorkflowRequest() -{} - -long AddMediaWorkflowRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddMediaWorkflowRequest; + +AddMediaWorkflowRequest::AddMediaWorkflowRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddMediaWorkflow") { + setMethod(HttpRequest::Method::Post); } -void AddMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddMediaWorkflowRequest::~AddMediaWorkflowRequest() {} + +long AddMediaWorkflowRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddMediaWorkflowRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddMediaWorkflowRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddMediaWorkflowRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddMediaWorkflowRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddMediaWorkflowRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddMediaWorkflowRequest::getTopology()const -{ - return topology_; +void AddMediaWorkflowRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddMediaWorkflowRequest::setTopology(const std::string& topology) -{ - topology_ = topology; - setParameter("Topology", topology); +std::string AddMediaWorkflowRequest::getTopology() const { + return topology_; } -std::string AddMediaWorkflowRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddMediaWorkflowRequest::setTopology(const std::string &topology) { + topology_ = topology; + setParameter(std::string("Topology"), topology); } -void AddMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddMediaWorkflowRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddMediaWorkflowRequest::getOwnerId()const -{ - return ownerId_; +void AddMediaWorkflowRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddMediaWorkflowRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddMediaWorkflowRequest::getOwnerId() const { + return ownerId_; } -std::string AddMediaWorkflowRequest::getTriggerMode()const -{ - return triggerMode_; +void AddMediaWorkflowRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddMediaWorkflowRequest::setTriggerMode(const std::string& triggerMode) -{ - triggerMode_ = triggerMode; - setParameter("TriggerMode", triggerMode); +std::string AddMediaWorkflowRequest::getTriggerMode() const { + return triggerMode_; } -std::string AddMediaWorkflowRequest::getName()const -{ - return name_; +void AddMediaWorkflowRequest::setTriggerMode(const std::string &triggerMode) { + triggerMode_ = triggerMode; + setParameter(std::string("TriggerMode"), triggerMode); } -void AddMediaWorkflowRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddMediaWorkflowRequest::getName() const { + return name_; +} + +void AddMediaWorkflowRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/AddMediaWorkflowResult.cc b/mts/src/model/AddMediaWorkflowResult.cc index 867938630..35d2befb3 100644 --- a/mts/src/model/AddMediaWorkflowResult.cc +++ b/mts/src/model/AddMediaWorkflowResult.cc @@ -40,18 +40,18 @@ void AddMediaWorkflowResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; + if(!mediaWorkflowNode["CreationTime"].isNull()) + mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) mediaWorkflow_.mediaWorkflowId = mediaWorkflowNode["MediaWorkflowId"].asString(); + if(!mediaWorkflowNode["State"].isNull()) + mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); + if(!mediaWorkflowNode["TriggerMode"].isNull()) + mediaWorkflow_.triggerMode = mediaWorkflowNode["TriggerMode"].asString(); if(!mediaWorkflowNode["Name"].isNull()) mediaWorkflow_.name = mediaWorkflowNode["Name"].asString(); if(!mediaWorkflowNode["Topology"].isNull()) mediaWorkflow_.topology = mediaWorkflowNode["Topology"].asString(); - if(!mediaWorkflowNode["TriggerMode"].isNull()) - mediaWorkflow_.triggerMode = mediaWorkflowNode["TriggerMode"].asString(); - if(!mediaWorkflowNode["State"].isNull()) - mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); - if(!mediaWorkflowNode["CreationTime"].isNull()) - mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); } diff --git a/mts/src/model/AddPipelineRequest.cc b/mts/src/model/AddPipelineRequest.cc index db8a11a6d..170deb0d0 100644 --- a/mts/src/model/AddPipelineRequest.cc +++ b/mts/src/model/AddPipelineRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::AddPipelineRequest; - -AddPipelineRequest::AddPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -AddPipelineRequest::~AddPipelineRequest() -{} - -long AddPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddPipelineRequest; + +AddPipelineRequest::AddPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddPipeline") { + setMethod(HttpRequest::Method::Post); } -void AddPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddPipelineRequest::~AddPipelineRequest() {} + +long AddPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddPipelineRequest::getRole()const -{ - return role_; +void AddPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddPipelineRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); +std::string AddPipelineRequest::getRole() const { + return role_; } -std::string AddPipelineRequest::getSpeed()const -{ - return speed_; +void AddPipelineRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); } -void AddPipelineRequest::setSpeed(const std::string& speed) -{ - speed_ = speed; - setParameter("Speed", speed); +std::string AddPipelineRequest::getSpeed() const { + return speed_; } -std::string AddPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddPipelineRequest::setSpeed(const std::string &speed) { + speed_ = speed; + setParameter(std::string("Speed"), speed); } -void AddPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AddPipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void AddPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddPipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string AddPipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long AddPipelineRequest::getOwnerId()const -{ - return ownerId_; +void AddPipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void AddPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddPipelineRequest::getOwnerId() const { + return ownerId_; } -std::string AddPipelineRequest::getName()const -{ - return name_; +void AddPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddPipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddPipelineRequest::getName() const { + return name_; } -long AddPipelineRequest::getSpeedLevel()const -{ - return speedLevel_; +void AddPipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void AddPipelineRequest::setSpeedLevel(long speedLevel) -{ - speedLevel_ = speedLevel; - setParameter("SpeedLevel", std::to_string(speedLevel)); +long AddPipelineRequest::getSpeedLevel() const { + return speedLevel_; +} + +void AddPipelineRequest::setSpeedLevel(long speedLevel) { + speedLevel_ = speedLevel; + setParameter(std::string("SpeedLevel"), std::to_string(speedLevel)); } diff --git a/mts/src/model/AddPipelineResult.cc b/mts/src/model/AddPipelineResult.cc index b124643ac..f5af7c993 100644 --- a/mts/src/model/AddPipelineResult.cc +++ b/mts/src/model/AddPipelineResult.cc @@ -40,29 +40,29 @@ void AddPipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); - if(!pipelineNode["State"].isNull()) - pipeline_.state = pipelineNode["State"].asString(); if(!pipelineNode["Speed"].isNull()) pipeline_.speed = pipelineNode["Speed"].asString(); + if(!pipelineNode["State"].isNull()) + pipeline_.state = pipelineNode["State"].asString(); if(!pipelineNode["SpeedLevel"].isNull()) pipeline_.speedLevel = std::stol(pipelineNode["SpeedLevel"].asString()); - if(!pipelineNode["QuotaAllocate"].isNull()) - pipeline_.quotaAllocate = std::stol(pipelineNode["QuotaAllocate"].asString()); if(!pipelineNode["Role"].isNull()) pipeline_.role = pipelineNode["Role"].asString(); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); + if(!pipelineNode["QuotaAllocate"].isNull()) + pipeline_.quotaAllocate = std::stol(pipelineNode["QuotaAllocate"].asString()); auto notifyConfigNode = pipelineNode["NotifyConfig"]; - if(!notifyConfigNode["Topic"].isNull()) - pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); - if(!notifyConfigNode["QueueName"].isNull()) - pipeline_.notifyConfig.queueName = notifyConfigNode["QueueName"].asString(); if(!notifyConfigNode["MqTopic"].isNull()) pipeline_.notifyConfig.mqTopic = notifyConfigNode["MqTopic"].asString(); + if(!notifyConfigNode["QueueName"].isNull()) + pipeline_.notifyConfig.queueName = notifyConfigNode["QueueName"].asString(); if(!notifyConfigNode["MqTag"].isNull()) pipeline_.notifyConfig.mqTag = notifyConfigNode["MqTag"].asString(); + if(!notifyConfigNode["Topic"].isNull()) + pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); } diff --git a/mts/src/model/AddPornPipelineRequest.cc b/mts/src/model/AddPornPipelineRequest.cc index c1dd469b0..b19dc1a6d 100644 --- a/mts/src/model/AddPornPipelineRequest.cc +++ b/mts/src/model/AddPornPipelineRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::AddPornPipelineRequest; - -AddPornPipelineRequest::AddPornPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddPornPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -AddPornPipelineRequest::~AddPornPipelineRequest() -{} - -long AddPornPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddPornPipelineRequest; + +AddPornPipelineRequest::AddPornPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddPornPipeline") { + setMethod(HttpRequest::Method::Post); } -void AddPornPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddPornPipelineRequest::~AddPornPipelineRequest() {} + +long AddPornPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddPornPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddPornPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddPornPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddPornPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddPornPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddPornPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddPornPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddPornPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddPornPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddPornPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddPornPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddPornPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AddPornPipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void AddPornPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddPornPipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string AddPornPipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long AddPornPipelineRequest::getOwnerId()const -{ - return ownerId_; +void AddPornPipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void AddPornPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddPornPipelineRequest::getOwnerId() const { + return ownerId_; } -int AddPornPipelineRequest::getPriority()const -{ - return priority_; +void AddPornPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddPornPipelineRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int AddPornPipelineRequest::getPriority() const { + return priority_; } -std::string AddPornPipelineRequest::getName()const -{ - return name_; +void AddPornPipelineRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void AddPornPipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddPornPipelineRequest::getName() const { + return name_; +} + +void AddPornPipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/AddPornPipelineResult.cc b/mts/src/model/AddPornPipelineResult.cc index f407b1cfc..da0734283 100644 --- a/mts/src/model/AddPornPipelineResult.cc +++ b/mts/src/model/AddPornPipelineResult.cc @@ -40,14 +40,14 @@ void AddPornPipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); - if(!pipelineNode["Priority"].isNull()) - pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); if(!pipelineNode["State"].isNull()) pipeline_.state = pipelineNode["State"].asString(); + if(!pipelineNode["Priority"].isNull()) + pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); auto notifyConfigNode = pipelineNode["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/AddSmarttagTemplateRequest.cc b/mts/src/model/AddSmarttagTemplateRequest.cc new file mode 100644 index 000000000..551e41e2d --- /dev/null +++ b/mts/src/model/AddSmarttagTemplateRequest.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::Mts::Model::AddSmarttagTemplateRequest; + +AddSmarttagTemplateRequest::AddSmarttagTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddSmarttagTemplate") { + setMethod(HttpRequest::Method::Post); +} + +AddSmarttagTemplateRequest::~AddSmarttagTemplateRequest() {} + +long AddSmarttagTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void AddSmarttagTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string AddSmarttagTemplateRequest::getIndustry() const { + return industry_; +} + +void AddSmarttagTemplateRequest::setIndustry(const std::string &industry) { + industry_ = industry; + setParameter(std::string("Industry"), industry); +} + +std::string AddSmarttagTemplateRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void AddSmarttagTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string AddSmarttagTemplateRequest::getScene() const { + return scene_; +} + +void AddSmarttagTemplateRequest::setScene(const std::string &scene) { + scene_ = scene; + setParameter(std::string("Scene"), scene); +} + +std::string AddSmarttagTemplateRequest::getTemplateName() const { + return templateName_; +} + +void AddSmarttagTemplateRequest::setTemplateName(const std::string &templateName) { + templateName_ = templateName; + setParameter(std::string("TemplateName"), templateName); +} + +bool AddSmarttagTemplateRequest::getIsDefault() const { + return isDefault_; +} + +void AddSmarttagTemplateRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); +} + +std::string AddSmarttagTemplateRequest::getFaceCategoryIds() const { + return faceCategoryIds_; +} + +void AddSmarttagTemplateRequest::setFaceCategoryIds(const std::string &faceCategoryIds) { + faceCategoryIds_ = faceCategoryIds; + setParameter(std::string("FaceCategoryIds"), faceCategoryIds); +} + +std::string AddSmarttagTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void AddSmarttagTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string AddSmarttagTemplateRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void AddSmarttagTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long AddSmarttagTemplateRequest::getOwnerId() const { + return ownerId_; +} + +void AddSmarttagTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string AddSmarttagTemplateRequest::getAnalyseTypes() const { + return analyseTypes_; +} + +void AddSmarttagTemplateRequest::setAnalyseTypes(const std::string &analyseTypes) { + analyseTypes_ = analyseTypes; + setParameter(std::string("AnalyseTypes"), analyseTypes); +} + diff --git a/mts/src/model/AddSmarttagTemplateResult.cc b/mts/src/model/AddSmarttagTemplateResult.cc new file mode 100644 index 000000000..1b06dfdca --- /dev/null +++ b/mts/src/model/AddSmarttagTemplateResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +AddSmarttagTemplateResult::AddSmarttagTemplateResult() : + ServiceResult() +{} + +AddSmarttagTemplateResult::AddSmarttagTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +AddSmarttagTemplateResult::~AddSmarttagTemplateResult() +{} + +void AddSmarttagTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TemplateId"].isNull()) + templateId_ = value["TemplateId"].asString(); + +} + +std::string AddSmarttagTemplateResult::getTemplateId()const +{ + return templateId_; +} + diff --git a/mts/src/model/AddTemplateRequest.cc b/mts/src/model/AddTemplateRequest.cc index 073938b28..57acfff36 100644 --- a/mts/src/model/AddTemplateRequest.cc +++ b/mts/src/model/AddTemplateRequest.cc @@ -1,150 +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::Mts::Model::AddTemplateRequest; - -AddTemplateRequest::AddTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -AddTemplateRequest::~AddTemplateRequest() -{} - -std::string AddTemplateRequest::getContainer()const -{ - return container_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddTemplateRequest; + +AddTemplateRequest::AddTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddTemplate") { + setMethod(HttpRequest::Method::Post); } -void AddTemplateRequest::setContainer(const std::string& container) -{ - container_ = container; - setParameter("Container", container); +AddTemplateRequest::~AddTemplateRequest() {} + +std::string AddTemplateRequest::getContainer() const { + return container_; } -long AddTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void AddTemplateRequest::setContainer(const std::string &container) { + container_ = container; + setParameter(std::string("Container"), container); } -void AddTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long AddTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddTemplateRequest::getVideo()const -{ - return video_; +void AddTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddTemplateRequest::setVideo(const std::string& video) -{ - video_ = video; - setParameter("Video", video); +std::string AddTemplateRequest::getVideo() const { + return video_; } -std::string AddTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddTemplateRequest::setVideo(const std::string &video) { + video_ = video; + setParameter(std::string("Video"), video); } -void AddTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddTemplateRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddTemplateRequest::getTransConfig()const -{ - return transConfig_; +void AddTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddTemplateRequest::setTransConfig(const std::string& transConfig) -{ - transConfig_ = transConfig; - setParameter("TransConfig", transConfig); +std::string AddTemplateRequest::getTransConfig() const { + return transConfig_; } -std::string AddTemplateRequest::getAudio()const -{ - return audio_; +void AddTemplateRequest::setTransConfig(const std::string &transConfig) { + transConfig_ = transConfig; + setParameter(std::string("TransConfig"), transConfig); } -void AddTemplateRequest::setAudio(const std::string& audio) -{ - audio_ = audio; - setParameter("Audio", audio); +std::string AddTemplateRequest::getAudio() const { + return audio_; } -std::string AddTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddTemplateRequest::setAudio(const std::string &audio) { + audio_ = audio; + setParameter(std::string("Audio"), audio); } -void AddTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AddTemplateRequest::getMuxConfig()const -{ - return muxConfig_; +void AddTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddTemplateRequest::setMuxConfig(const std::string& muxConfig) -{ - muxConfig_ = muxConfig; - setParameter("MuxConfig", muxConfig); +std::string AddTemplateRequest::getMuxConfig() const { + return muxConfig_; } -long AddTemplateRequest::getOwnerId()const -{ - return ownerId_; +void AddTemplateRequest::setMuxConfig(const std::string &muxConfig) { + muxConfig_ = muxConfig; + setParameter(std::string("MuxConfig"), muxConfig); } -void AddTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string AddTemplateRequest::getName()const -{ - return name_; +void AddTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddTemplateRequest::getName() const { + return name_; +} + +void AddTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/AddTemplateResult.cc b/mts/src/model/AddTemplateResult.cc index e15587ffb..3be14ebc0 100644 --- a/mts/src/model/AddTemplateResult.cc +++ b/mts/src/model/AddTemplateResult.cc @@ -40,56 +40,53 @@ void AddTemplateResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto _templateNode = value["Template"]; - if(!_templateNode["Id"].isNull()) - _template_.id = _templateNode["Id"].asString(); - if(!_templateNode["Name"].isNull()) - _template_.name = _templateNode["Name"].asString(); if(!_templateNode["State"].isNull()) _template_.state = _templateNode["State"].asString(); - auto containerNode = _templateNode["Container"]; - if(!containerNode["Format"].isNull()) - _template_.container.format = containerNode["Format"].asString(); + if(!_templateNode["Name"].isNull()) + _template_.name = _templateNode["Name"].asString(); + if(!_templateNode["Id"].isNull()) + _template_.id = _templateNode["Id"].asString(); auto videoNode = _templateNode["Video"]; + if(!videoNode["Bufsize"].isNull()) + _template_.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["LongShortMode"].isNull()) + _template_.video.longShortMode = videoNode["LongShortMode"].asString(); + if(!videoNode["Degrain"].isNull()) + _template_.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + _template_.video.pixFmt = videoNode["PixFmt"].asString(); + if(!videoNode["Pad"].isNull()) + _template_.video.pad = videoNode["Pad"].asString(); if(!videoNode["Codec"].isNull()) _template_.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - _template_.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - _template_.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - _template_.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - _template_.video.width = videoNode["Width"].asString(); if(!videoNode["Height"].isNull()) _template_.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - _template_.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Qscale"].isNull()) + _template_.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Crop"].isNull()) + _template_.video.crop = videoNode["Crop"].asString(); + if(!videoNode["Bitrate"].isNull()) + _template_.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + _template_.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["MaxFps"].isNull()) + _template_.video.maxFps = videoNode["MaxFps"].asString(); + if(!videoNode["Profile"].isNull()) + _template_.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + _template_.video.crf = videoNode["Crf"].asString(); + if(!videoNode["Remove"].isNull()) + _template_.video.remove = videoNode["Remove"].asString(); if(!videoNode["Gop"].isNull()) _template_.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + _template_.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + _template_.video.fps = videoNode["Fps"].asString(); if(!videoNode["Preset"].isNull()) _template_.video.preset = videoNode["Preset"].asString(); if(!videoNode["ScanMode"].isNull()) _template_.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - _template_.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - _template_.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - _template_.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - _template_.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - _template_.video.qscale = videoNode["Qscale"].asString(); - if(!videoNode["LongShortMode"].isNull()) - _template_.video.longShortMode = videoNode["LongShortMode"].asString(); - if(!videoNode["Remove"].isNull()) - _template_.video.remove = videoNode["Remove"].asString(); - if(!videoNode["Crop"].isNull()) - _template_.video.crop = videoNode["Crop"].asString(); - if(!videoNode["Pad"].isNull()) - _template_.video.pad = videoNode["Pad"].asString(); - if(!videoNode["MaxFps"].isNull()) - _template_.video.maxFps = videoNode["MaxFps"].asString(); if(!videoNode["ResoPriority"].isNull()) _template_.video.resoPriority = videoNode["ResoPriority"].asString(); auto bitrateBndNode = videoNode["BitrateBnd"]; @@ -97,59 +94,62 @@ void AddTemplateResult::parse(const std::string &payload) _template_.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); if(!bitrateBndNode["Min"].isNull()) _template_.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto audioNode = _templateNode["Audio"]; - if(!audioNode["Codec"].isNull()) - _template_.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - _template_.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - _template_.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - _template_.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - _template_.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - _template_.audio.qscale = audioNode["Qscale"].asString(); - if(!audioNode["Remove"].isNull()) - _template_.audio.remove = audioNode["Remove"].asString(); - auto volumeNode = audioNode["Volume"]; - if(!volumeNode["Level"].isNull()) - _template_.audio.volume.level = volumeNode["Level"].asString(); - if(!volumeNode["Method"].isNull()) - _template_.audio.volume.method = volumeNode["Method"].asString(); auto transConfigNode = _templateNode["TransConfig"]; + if(!transConfigNode["IsCheckAudioBitrate"].isNull()) + _template_.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); if(!transConfigNode["TransMode"].isNull()) _template_.transConfig.transMode = transConfigNode["TransMode"].asString(); if(!transConfigNode["IsCheckReso"].isNull()) _template_.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); - if(!transConfigNode["IsCheckResoFail"].isNull()) - _template_.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); - if(!transConfigNode["IsCheckVideoBitrate"].isNull()) - _template_.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); - if(!transConfigNode["IsCheckAudioBitrate"].isNull()) - _template_.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); - if(!transConfigNode["AdjDarMethod"].isNull()) - _template_.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) _template_.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); + if(!transConfigNode["AdjDarMethod"].isNull()) + _template_.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); + if(!transConfigNode["IsCheckVideoBitrate"].isNull()) + _template_.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); + if(!transConfigNode["IsCheckResoFail"].isNull()) + _template_.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) _template_.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); auto muxConfigNode = _templateNode["MuxConfig"]; - auto segmentNode = muxConfigNode["Segment"]; - if(!segmentNode["Duration"].isNull()) - _template_.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - _template_.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - _template_.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); - if(!gifNode["IsCustomPalette"].isNull()) - _template_.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); - if(!gifNode["DitherMode"].isNull()) - _template_.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); auto webpNode = muxConfigNode["Webp"]; if(!webpNode["Loop"].isNull()) _template_.muxConfig.webp.loop = webpNode["Loop"].asString(); + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + _template_.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["DitherMode"].isNull()) + _template_.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + if(!gifNode["Loop"].isNull()) + _template_.muxConfig.gif.loop = gifNode["Loop"].asString(); + if(!gifNode["IsCustomPalette"].isNull()) + _template_.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); + auto segmentNode = muxConfigNode["Segment"]; + if(!segmentNode["Duration"].isNull()) + _template_.muxConfig.segment.duration = segmentNode["Duration"].asString(); + auto audioNode = _templateNode["Audio"]; + if(!audioNode["Profile"].isNull()) + _template_.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Remove"].isNull()) + _template_.audio.remove = audioNode["Remove"].asString(); + if(!audioNode["Codec"].isNull()) + _template_.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + _template_.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + _template_.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + _template_.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + _template_.audio.bitrate = audioNode["Bitrate"].asString(); + auto volumeNode = audioNode["Volume"]; + if(!volumeNode["Method"].isNull()) + _template_.audio.volume.method = volumeNode["Method"].asString(); + if(!volumeNode["Level"].isNull()) + _template_.audio.volume.level = volumeNode["Level"].asString(); + auto containerNode = _templateNode["Container"]; + if(!containerNode["Format"].isNull()) + _template_.container.format = containerNode["Format"].asString(); } diff --git a/mts/src/model/AddTerrorismPipelineRequest.cc b/mts/src/model/AddTerrorismPipelineRequest.cc index a61ccaa6c..000ee07f5 100644 --- a/mts/src/model/AddTerrorismPipelineRequest.cc +++ b/mts/src/model/AddTerrorismPipelineRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::AddTerrorismPipelineRequest; - -AddTerrorismPipelineRequest::AddTerrorismPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddTerrorismPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -AddTerrorismPipelineRequest::~AddTerrorismPipelineRequest() -{} - -long AddTerrorismPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddTerrorismPipelineRequest; + +AddTerrorismPipelineRequest::AddTerrorismPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddTerrorismPipeline") { + setMethod(HttpRequest::Method::Post); } -void AddTerrorismPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddTerrorismPipelineRequest::~AddTerrorismPipelineRequest() {} + +long AddTerrorismPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddTerrorismPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddTerrorismPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddTerrorismPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddTerrorismPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddTerrorismPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddTerrorismPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddTerrorismPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddTerrorismPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddTerrorismPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddTerrorismPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddTerrorismPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddTerrorismPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string AddTerrorismPipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void AddTerrorismPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddTerrorismPipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string AddTerrorismPipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long AddTerrorismPipelineRequest::getOwnerId()const -{ - return ownerId_; +void AddTerrorismPipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void AddTerrorismPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddTerrorismPipelineRequest::getOwnerId() const { + return ownerId_; } -int AddTerrorismPipelineRequest::getPriority()const -{ - return priority_; +void AddTerrorismPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddTerrorismPipelineRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int AddTerrorismPipelineRequest::getPriority() const { + return priority_; } -std::string AddTerrorismPipelineRequest::getName()const -{ - return name_; +void AddTerrorismPipelineRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void AddTerrorismPipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddTerrorismPipelineRequest::getName() const { + return name_; +} + +void AddTerrorismPipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/AddTerrorismPipelineResult.cc b/mts/src/model/AddTerrorismPipelineResult.cc index 8bba589e8..1ae1e66ac 100644 --- a/mts/src/model/AddTerrorismPipelineResult.cc +++ b/mts/src/model/AddTerrorismPipelineResult.cc @@ -40,14 +40,14 @@ void AddTerrorismPipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); - if(!pipelineNode["Priority"].isNull()) - pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); if(!pipelineNode["State"].isNull()) pipeline_.state = pipelineNode["State"].asString(); + if(!pipelineNode["Priority"].isNull()) + pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); auto notifyConfigNode = pipelineNode["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/AddWaterMarkTemplateRequest.cc b/mts/src/model/AddWaterMarkTemplateRequest.cc index 3876d0bb4..62a016a5f 100644 --- a/mts/src/model/AddWaterMarkTemplateRequest.cc +++ b/mts/src/model/AddWaterMarkTemplateRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::AddWaterMarkTemplateRequest; - -AddWaterMarkTemplateRequest::AddWaterMarkTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "AddWaterMarkTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -AddWaterMarkTemplateRequest::~AddWaterMarkTemplateRequest() -{} - -long AddWaterMarkTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::AddWaterMarkTemplateRequest; + +AddWaterMarkTemplateRequest::AddWaterMarkTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "AddWaterMarkTemplate") { + setMethod(HttpRequest::Method::Post); } -void AddWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +AddWaterMarkTemplateRequest::~AddWaterMarkTemplateRequest() {} + +long AddWaterMarkTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string AddWaterMarkTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void AddWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void AddWaterMarkTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string AddWaterMarkTemplateRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string AddWaterMarkTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void AddWaterMarkTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void AddWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string AddWaterMarkTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string AddWaterMarkTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void AddWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void AddWaterMarkTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string AddWaterMarkTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long AddWaterMarkTemplateRequest::getOwnerId()const -{ - return ownerId_; +void AddWaterMarkTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void AddWaterMarkTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long AddWaterMarkTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string AddWaterMarkTemplateRequest::getName()const -{ - return name_; +void AddWaterMarkTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void AddWaterMarkTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string AddWaterMarkTemplateRequest::getName() const { + return name_; } -std::string AddWaterMarkTemplateRequest::getConfig()const -{ - return config_; +void AddWaterMarkTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void AddWaterMarkTemplateRequest::setConfig(const std::string& config) -{ - config_ = config; - setParameter("Config", config); +std::string AddWaterMarkTemplateRequest::getConfig() const { + return config_; +} + +void AddWaterMarkTemplateRequest::setConfig(const std::string &config) { + config_ = config; + setParameter(std::string("Config"), config); } diff --git a/mts/src/model/AddWaterMarkTemplateResult.cc b/mts/src/model/AddWaterMarkTemplateResult.cc index edfecfdfa..3db5d42db 100644 --- a/mts/src/model/AddWaterMarkTemplateResult.cc +++ b/mts/src/model/AddWaterMarkTemplateResult.cc @@ -40,38 +40,38 @@ void AddWaterMarkTemplateResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto waterMarkTemplateNode = value["WaterMarkTemplate"]; - if(!waterMarkTemplateNode["Id"].isNull()) - waterMarkTemplate_.id = waterMarkTemplateNode["Id"].asString(); - if(!waterMarkTemplateNode["Name"].isNull()) - waterMarkTemplate_.name = waterMarkTemplateNode["Name"].asString(); + if(!waterMarkTemplateNode["Type"].isNull()) + waterMarkTemplate_.type = waterMarkTemplateNode["Type"].asString(); + if(!waterMarkTemplateNode["ReferPos"].isNull()) + waterMarkTemplate_.referPos = waterMarkTemplateNode["ReferPos"].asString(); + if(!waterMarkTemplateNode["State"].isNull()) + waterMarkTemplate_.state = waterMarkTemplateNode["State"].asString(); + if(!waterMarkTemplateNode["Dx"].isNull()) + waterMarkTemplate_.dx = waterMarkTemplateNode["Dx"].asString(); if(!waterMarkTemplateNode["Width"].isNull()) waterMarkTemplate_.width = waterMarkTemplateNode["Width"].asString(); if(!waterMarkTemplateNode["Height"].isNull()) waterMarkTemplate_.height = waterMarkTemplateNode["Height"].asString(); - if(!waterMarkTemplateNode["Dx"].isNull()) - waterMarkTemplate_.dx = waterMarkTemplateNode["Dx"].asString(); + if(!waterMarkTemplateNode["Name"].isNull()) + waterMarkTemplate_.name = waterMarkTemplateNode["Name"].asString(); if(!waterMarkTemplateNode["Dy"].isNull()) waterMarkTemplate_.dy = waterMarkTemplateNode["Dy"].asString(); - if(!waterMarkTemplateNode["ReferPos"].isNull()) - waterMarkTemplate_.referPos = waterMarkTemplateNode["ReferPos"].asString(); - if(!waterMarkTemplateNode["Type"].isNull()) - waterMarkTemplate_.type = waterMarkTemplateNode["Type"].asString(); - if(!waterMarkTemplateNode["State"].isNull()) - waterMarkTemplate_.state = waterMarkTemplateNode["State"].asString(); + if(!waterMarkTemplateNode["Id"].isNull()) + waterMarkTemplate_.id = waterMarkTemplateNode["Id"].asString(); + auto ratioReferNode = waterMarkTemplateNode["RatioRefer"]; + if(!ratioReferNode["Dx"].isNull()) + waterMarkTemplate_.ratioRefer.dx = ratioReferNode["Dx"].asString(); + if(!ratioReferNode["Width"].isNull()) + waterMarkTemplate_.ratioRefer.width = ratioReferNode["Width"].asString(); + if(!ratioReferNode["Height"].isNull()) + waterMarkTemplate_.ratioRefer.height = ratioReferNode["Height"].asString(); + if(!ratioReferNode["Dy"].isNull()) + waterMarkTemplate_.ratioRefer.dy = ratioReferNode["Dy"].asString(); auto timelineNode = waterMarkTemplateNode["Timeline"]; if(!timelineNode["Start"].isNull()) waterMarkTemplate_.timeline.start = timelineNode["Start"].asString(); if(!timelineNode["Duration"].isNull()) waterMarkTemplate_.timeline.duration = timelineNode["Duration"].asString(); - auto ratioReferNode = waterMarkTemplateNode["RatioRefer"]; - if(!ratioReferNode["Dx"].isNull()) - waterMarkTemplate_.ratioRefer.dx = ratioReferNode["Dx"].asString(); - if(!ratioReferNode["Dy"].isNull()) - waterMarkTemplate_.ratioRefer.dy = ratioReferNode["Dy"].asString(); - if(!ratioReferNode["Width"].isNull()) - waterMarkTemplate_.ratioRefer.width = ratioReferNode["Width"].asString(); - if(!ratioReferNode["Height"].isNull()) - waterMarkTemplate_.ratioRefer.height = ratioReferNode["Height"].asString(); } diff --git a/mts/src/model/BindInputBucketRequest.cc b/mts/src/model/BindInputBucketRequest.cc index 40c75095f..0cd62b5d0 100644 --- a/mts/src/model/BindInputBucketRequest.cc +++ b/mts/src/model/BindInputBucketRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::BindInputBucketRequest; - -BindInputBucketRequest::BindInputBucketRequest() : - RpcServiceRequest("mts", "2014-06-18", "BindInputBucket") -{ - setMethod(HttpRequest::Method::Post); -} - -BindInputBucketRequest::~BindInputBucketRequest() -{} - -long BindInputBucketRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::BindInputBucketRequest; + +BindInputBucketRequest::BindInputBucketRequest() + : RpcServiceRequest("mts", "2014-06-18", "BindInputBucket") { + setMethod(HttpRequest::Method::Post); } -void BindInputBucketRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +BindInputBucketRequest::~BindInputBucketRequest() {} + +long BindInputBucketRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string BindInputBucketRequest::getAccessKeyId()const -{ - return accessKeyId_; +void BindInputBucketRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void BindInputBucketRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string BindInputBucketRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string BindInputBucketRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void BindInputBucketRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void BindInputBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string BindInputBucketRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string BindInputBucketRequest::getOwnerAccount()const -{ - return ownerAccount_; +void BindInputBucketRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void BindInputBucketRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string BindInputBucketRequest::getOwnerAccount() const { + return ownerAccount_; } -long BindInputBucketRequest::getOwnerId()const -{ - return ownerId_; +void BindInputBucketRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void BindInputBucketRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long BindInputBucketRequest::getOwnerId() const { + return ownerId_; } -std::string BindInputBucketRequest::getBucket()const -{ - return bucket_; +void BindInputBucketRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void BindInputBucketRequest::setBucket(const std::string& bucket) -{ - bucket_ = bucket; - setParameter("Bucket", bucket); +std::string BindInputBucketRequest::getBucket() const { + return bucket_; } -std::string BindInputBucketRequest::getRoleArn()const -{ - return roleArn_; +void BindInputBucketRequest::setBucket(const std::string &bucket) { + bucket_ = bucket; + setParameter(std::string("Bucket"), bucket); } -void BindInputBucketRequest::setRoleArn(const std::string& roleArn) -{ - roleArn_ = roleArn; - setParameter("RoleArn", roleArn); +std::string BindInputBucketRequest::getRoleArn() const { + return roleArn_; +} + +void BindInputBucketRequest::setRoleArn(const std::string &roleArn) { + roleArn_ = roleArn; + setParameter(std::string("RoleArn"), roleArn); } diff --git a/mts/src/model/BindOutputBucketRequest.cc b/mts/src/model/BindOutputBucketRequest.cc index 55fea1580..a513e4746 100644 --- a/mts/src/model/BindOutputBucketRequest.cc +++ b/mts/src/model/BindOutputBucketRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::BindOutputBucketRequest; - -BindOutputBucketRequest::BindOutputBucketRequest() : - RpcServiceRequest("mts", "2014-06-18", "BindOutputBucket") -{ - setMethod(HttpRequest::Method::Post); -} - -BindOutputBucketRequest::~BindOutputBucketRequest() -{} - -long BindOutputBucketRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::BindOutputBucketRequest; + +BindOutputBucketRequest::BindOutputBucketRequest() + : RpcServiceRequest("mts", "2014-06-18", "BindOutputBucket") { + setMethod(HttpRequest::Method::Post); } -void BindOutputBucketRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +BindOutputBucketRequest::~BindOutputBucketRequest() {} + +long BindOutputBucketRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string BindOutputBucketRequest::getAccessKeyId()const -{ - return accessKeyId_; +void BindOutputBucketRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void BindOutputBucketRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string BindOutputBucketRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string BindOutputBucketRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void BindOutputBucketRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void BindOutputBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string BindOutputBucketRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string BindOutputBucketRequest::getOwnerAccount()const -{ - return ownerAccount_; +void BindOutputBucketRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void BindOutputBucketRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string BindOutputBucketRequest::getOwnerAccount() const { + return ownerAccount_; } -long BindOutputBucketRequest::getOwnerId()const -{ - return ownerId_; +void BindOutputBucketRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void BindOutputBucketRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long BindOutputBucketRequest::getOwnerId() const { + return ownerId_; } -std::string BindOutputBucketRequest::getBucket()const -{ - return bucket_; +void BindOutputBucketRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void BindOutputBucketRequest::setBucket(const std::string& bucket) -{ - bucket_ = bucket; - setParameter("Bucket", bucket); +std::string BindOutputBucketRequest::getBucket() const { + return bucket_; } -std::string BindOutputBucketRequest::getRoleArn()const -{ - return roleArn_; +void BindOutputBucketRequest::setBucket(const std::string &bucket) { + bucket_ = bucket; + setParameter(std::string("Bucket"), bucket); } -void BindOutputBucketRequest::setRoleArn(const std::string& roleArn) -{ - roleArn_ = roleArn; - setParameter("RoleArn", roleArn); +std::string BindOutputBucketRequest::getRoleArn() const { + return roleArn_; +} + +void BindOutputBucketRequest::setRoleArn(const std::string &roleArn) { + roleArn_ = roleArn; + setParameter(std::string("RoleArn"), roleArn); } diff --git a/mts/src/model/CancelJobRequest.cc b/mts/src/model/CancelJobRequest.cc index f9bef642a..d49c486e4 100644 --- a/mts/src/model/CancelJobRequest.cc +++ b/mts/src/model/CancelJobRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::CancelJobRequest; - -CancelJobRequest::CancelJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "CancelJob") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelJobRequest::~CancelJobRequest() -{} - -long CancelJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::CancelJobRequest; + +CancelJobRequest::CancelJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "CancelJob") { + setMethod(HttpRequest::Method::Post); } -void CancelJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CancelJobRequest::~CancelJobRequest() {} + +long CancelJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CancelJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CancelJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CancelJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CancelJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CancelJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CancelJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CancelJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CancelJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long CancelJobRequest::getOwnerId()const -{ - return ownerId_; +void CancelJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CancelJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CancelJobRequest::getOwnerId() const { + return ownerId_; } -std::string CancelJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CancelJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CancelJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CancelJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string CancelJobRequest::getJobId()const -{ - return jobId_; +void CancelJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void CancelJobRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string CancelJobRequest::getJobId() const { + return jobId_; +} + +void CancelJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } diff --git a/mts/src/model/CategoryTreeRequest.cc b/mts/src/model/CategoryTreeRequest.cc index e5f5d45fd..68ed24d46 100644 --- a/mts/src/model/CategoryTreeRequest.cc +++ b/mts/src/model/CategoryTreeRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Mts::Model::CategoryTreeRequest; - -CategoryTreeRequest::CategoryTreeRequest() : - RpcServiceRequest("mts", "2014-06-18", "CategoryTree") -{ - setMethod(HttpRequest::Method::Post); -} - -CategoryTreeRequest::~CategoryTreeRequest() -{} - -long CategoryTreeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::CategoryTreeRequest; + +CategoryTreeRequest::CategoryTreeRequest() + : RpcServiceRequest("mts", "2014-06-18", "CategoryTree") { + setMethod(HttpRequest::Method::Post); } -void CategoryTreeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CategoryTreeRequest::~CategoryTreeRequest() {} + +long CategoryTreeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CategoryTreeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CategoryTreeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CategoryTreeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CategoryTreeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CategoryTreeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CategoryTreeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CategoryTreeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CategoryTreeRequest::getOwnerAccount() const { + return ownerAccount_; } -long CategoryTreeRequest::getOwnerId()const -{ - return ownerId_; +void CategoryTreeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CategoryTreeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CategoryTreeRequest::getOwnerId() const { + return ownerId_; } -std::string CategoryTreeRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CategoryTreeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CategoryTreeRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CategoryTreeRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CategoryTreeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/CheckResourceRequest.cc b/mts/src/model/CheckResourceRequest.cc index 8934f8aa2..d5a08cf99 100644 --- a/mts/src/model/CheckResourceRequest.cc +++ b/mts/src/model/CheckResourceRequest.cc @@ -1,183 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Mts::Model::CheckResourceRequest; - -CheckResourceRequest::CheckResourceRequest() : - RpcServiceRequest("mts", "2014-06-18", "CheckResource") -{ - setMethod(HttpRequest::Method::Post); -} - -CheckResourceRequest::~CheckResourceRequest() -{} - -std::string CheckResourceRequest::getCountry()const -{ - return country_; + */ + +#include + +using AlibabaCloud::Mts::Model::CheckResourceRequest; + +CheckResourceRequest::CheckResourceRequest() + : RpcServiceRequest("mts", "2014-06-18", "CheckResource") { + setMethod(HttpRequest::Method::Post); } -void CheckResourceRequest::setCountry(const std::string& country) -{ - country_ = country; - setParameter("Country", country); +CheckResourceRequest::~CheckResourceRequest() {} + +std::string CheckResourceRequest::getCountry() const { + return country_; } -long CheckResourceRequest::getHid()const -{ - return hid_; +void CheckResourceRequest::setCountry(const std::string &country) { + country_ = country; + setParameter(std::string("Country"), country); } -void CheckResourceRequest::setHid(long hid) -{ - hid_ = hid; - setParameter("Hid", std::to_string(hid)); +long CheckResourceRequest::getHid() const { + return hid_; } -long CheckResourceRequest::getLevel()const -{ - return level_; +void CheckResourceRequest::setHid(long hid) { + hid_ = hid; + setParameter(std::string("Hid"), std::to_string(hid)); } -void CheckResourceRequest::setLevel(long level) -{ - level_ = level; - setParameter("Level", std::to_string(level)); +long CheckResourceRequest::getLevel() const { + return level_; } -std::string CheckResourceRequest::getInvoker()const -{ - return invoker_; +void CheckResourceRequest::setLevel(long level) { + level_ = level; + setParameter(std::string("Level"), std::to_string(level)); } -void CheckResourceRequest::setInvoker(const std::string& invoker) -{ - invoker_ = invoker; - setParameter("Invoker", invoker); +std::string CheckResourceRequest::getInvoker() const { + return invoker_; } -std::string CheckResourceRequest::getMessage()const -{ - return message_; +void CheckResourceRequest::setInvoker(const std::string &invoker) { + invoker_ = invoker; + setParameter(std::string("Invoker"), invoker); } -void CheckResourceRequest::setMessage(const std::string& message) -{ - message_ = message; - setParameter("Message", message); +std::string CheckResourceRequest::getMessage() const { + return message_; } -std::string CheckResourceRequest::getUrl()const -{ - return url_; +void CheckResourceRequest::setMessage(const std::string &message) { + message_ = message; + setParameter(std::string("Message"), message); } -void CheckResourceRequest::setUrl(const std::string& url) -{ - url_ = url; - setParameter("Url", url); +std::string CheckResourceRequest::getUrl() const { + return url_; } -bool CheckResourceRequest::getSuccess()const -{ - return success_; +void CheckResourceRequest::setUrl(const std::string &url) { + url_ = url; + setParameter(std::string("Url"), url); } -void CheckResourceRequest::setSuccess(bool success) -{ - success_ = success; - setParameter("Success", success ? "true" : "false"); +bool CheckResourceRequest::getSuccess() const { + return success_; } -bool CheckResourceRequest::getInterrupt()const -{ - return interrupt_; +void CheckResourceRequest::setSuccess(bool success) { + success_ = success; + setParameter(std::string("Success"), success ? "true" : "false"); } -void CheckResourceRequest::setInterrupt(bool interrupt) -{ - interrupt_ = interrupt; - setParameter("Interrupt", interrupt ? "true" : "false"); +bool CheckResourceRequest::getInterrupt() const { + return interrupt_; } -std::string CheckResourceRequest::getGmtWakeup()const -{ - return gmtWakeup_; +void CheckResourceRequest::setInterrupt(bool interrupt) { + interrupt_ = interrupt; + setParameter(std::string("Interrupt"), interrupt ? "true" : "false"); } -void CheckResourceRequest::setGmtWakeup(const std::string& gmtWakeup) -{ - gmtWakeup_ = gmtWakeup; - setParameter("GmtWakeup", gmtWakeup); +std::string CheckResourceRequest::getGmtWakeup() const { + return gmtWakeup_; } -std::string CheckResourceRequest::getPk()const -{ - return pk_; +void CheckResourceRequest::setGmtWakeup(const std::string &gmtWakeup) { + gmtWakeup_ = gmtWakeup; + setParameter(std::string("GmtWakeup"), gmtWakeup); } -void CheckResourceRequest::setPk(const std::string& pk) -{ - pk_ = pk; - setParameter("Pk", pk); +std::string CheckResourceRequest::getPk() const { + return pk_; } -std::string CheckResourceRequest::getBid()const -{ - return bid_; +void CheckResourceRequest::setPk(const std::string &pk) { + pk_ = pk; + setParameter(std::string("Pk"), pk); } -void CheckResourceRequest::setBid(const std::string& bid) -{ - bid_ = bid; - setParameter("Bid", bid); +std::string CheckResourceRequest::getBid() const { + return bid_; } -std::string CheckResourceRequest::getPrompt()const -{ - return prompt_; +void CheckResourceRequest::setBid(const std::string &bid) { + bid_ = bid; + setParameter(std::string("Bid"), bid); } -void CheckResourceRequest::setPrompt(const std::string& prompt) -{ - prompt_ = prompt; - setParameter("Prompt", prompt); +std::string CheckResourceRequest::getPrompt() const { + return prompt_; } -std::string CheckResourceRequest::getTaskExtraData()const -{ - return taskExtraData_; +void CheckResourceRequest::setPrompt(const std::string &prompt) { + prompt_ = prompt; + setParameter(std::string("Prompt"), prompt); } -void CheckResourceRequest::setTaskExtraData(const std::string& taskExtraData) -{ - taskExtraData_ = taskExtraData; - setParameter("TaskExtraData", taskExtraData); +std::string CheckResourceRequest::getTaskExtraData() const { + return taskExtraData_; } -std::string CheckResourceRequest::getTaskIdentifier()const -{ - return taskIdentifier_; +void CheckResourceRequest::setTaskExtraData(const std::string &taskExtraData) { + taskExtraData_ = taskExtraData; + setParameter(std::string("TaskExtraData"), taskExtraData); } -void CheckResourceRequest::setTaskIdentifier(const std::string& taskIdentifier) -{ - taskIdentifier_ = taskIdentifier; - setParameter("TaskIdentifier", taskIdentifier); +std::string CheckResourceRequest::getTaskIdentifier() const { + return taskIdentifier_; +} + +void CheckResourceRequest::setTaskIdentifier(const std::string &taskIdentifier) { + taskIdentifier_ = taskIdentifier; + setParameter(std::string("TaskIdentifier"), taskIdentifier); } diff --git a/mts/src/model/CheckResourceResult.cc b/mts/src/model/CheckResourceResult.cc index 1cb874ae6..49ed212e1 100644 --- a/mts/src/model/CheckResourceResult.cc +++ b/mts/src/model/CheckResourceResult.cc @@ -39,34 +39,34 @@ void CheckResourceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["GmtWakeup"].isNull()) + gmtWakeup_ = value["GmtWakeup"].asString(); + if(!value["Hid"].isNull()) + hid_ = std::stol(value["Hid"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TaskIdentifier"].isNull()) + taskIdentifier_ = value["TaskIdentifier"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Url"].isNull()) + url_ = value["Url"].asString(); if(!value["Interrupt"].isNull()) interrupt_ = value["Interrupt"].asString() == "true"; if(!value["Invoker"].isNull()) invoker_ = value["Invoker"].asString(); + if(!value["TaskExtraData"].isNull()) + taskExtraData_ = value["TaskExtraData"].asString(); + if(!value["Country"].isNull()) + country_ = value["Country"].asString(); + if(!value["Prompt"].isNull()) + prompt_ = value["Prompt"].asString(); + if(!value["Level"].isNull()) + level_ = std::stol(value["Level"].asString()); if(!value["Pk"].isNull()) pk_ = value["Pk"].asString(); if(!value["Bid"].isNull()) bid_ = value["Bid"].asString(); - if(!value["Hid"].isNull()) - hid_ = std::stol(value["Hid"].asString()); - if(!value["Country"].isNull()) - country_ = value["Country"].asString(); - if(!value["TaskIdentifier"].isNull()) - taskIdentifier_ = value["TaskIdentifier"].asString(); - if(!value["TaskExtraData"].isNull()) - taskExtraData_ = value["TaskExtraData"].asString(); - if(!value["GmtWakeup"].isNull()) - gmtWakeup_ = value["GmtWakeup"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Level"].isNull()) - level_ = std::stol(value["Level"].asString()); - if(!value["Url"].isNull()) - url_ = value["Url"].asString(); - if(!value["Prompt"].isNull()) - prompt_ = value["Prompt"].asString(); } @@ -80,19 +80,14 @@ long CheckResourceResult::getHid()const return hid_; } -std::string CheckResourceResult::getTaskIdentifier()const -{ - return taskIdentifier_; -} - std::string CheckResourceResult::getMessage()const { return message_; } -bool CheckResourceResult::getInterrupt()const +std::string CheckResourceResult::getTaskIdentifier()const { - return interrupt_; + return taskIdentifier_; } bool CheckResourceResult::getSuccess()const @@ -105,6 +100,11 @@ std::string CheckResourceResult::getUrl()const return url_; } +bool CheckResourceResult::getInterrupt()const +{ + return interrupt_; +} + std::string CheckResourceResult::getInvoker()const { return invoker_; @@ -120,16 +120,16 @@ std::string CheckResourceResult::getCountry()const return country_; } -long CheckResourceResult::getLevel()const -{ - return level_; -} - std::string CheckResourceResult::getPrompt()const { return prompt_; } +long CheckResourceResult::getLevel()const +{ + return level_; +} + std::string CheckResourceResult::getPk()const { return pk_; diff --git a/mts/src/model/CreateFpShotDBRequest.cc b/mts/src/model/CreateFpShotDBRequest.cc index fb720f6ce..7d1cd7520 100644 --- a/mts/src/model/CreateFpShotDBRequest.cc +++ b/mts/src/model/CreateFpShotDBRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::CreateFpShotDBRequest; - -CreateFpShotDBRequest::CreateFpShotDBRequest() : - RpcServiceRequest("mts", "2014-06-18", "CreateFpShotDB") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateFpShotDBRequest::~CreateFpShotDBRequest() -{} - -long CreateFpShotDBRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::CreateFpShotDBRequest; + +CreateFpShotDBRequest::CreateFpShotDBRequest() + : RpcServiceRequest("mts", "2014-06-18", "CreateFpShotDB") { + setMethod(HttpRequest::Method::Post); } -void CreateFpShotDBRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +CreateFpShotDBRequest::~CreateFpShotDBRequest() {} + +long CreateFpShotDBRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateFpShotDBRequest::getDescription()const -{ - return description_; +void CreateFpShotDBRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateFpShotDBRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateFpShotDBRequest::getDescription() const { + return description_; } -std::string CreateFpShotDBRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateFpShotDBRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateFpShotDBRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateFpShotDBRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string CreateFpShotDBRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateFpShotDBRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void CreateFpShotDBRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateFpShotDBRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -int CreateFpShotDBRequest::getModelId()const -{ - return modelId_; +void CreateFpShotDBRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateFpShotDBRequest::setModelId(int modelId) -{ - modelId_ = modelId; - setParameter("ModelId", std::to_string(modelId)); +int CreateFpShotDBRequest::getModelId() const { + return modelId_; } -std::string CreateFpShotDBRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateFpShotDBRequest::setModelId(int modelId) { + modelId_ = modelId; + setParameter(std::string("ModelId"), std::to_string(modelId)); } -void CreateFpShotDBRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateFpShotDBRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateFpShotDBRequest::getOwnerId()const -{ - return ownerId_; +void CreateFpShotDBRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateFpShotDBRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateFpShotDBRequest::getOwnerId() const { + return ownerId_; } -std::string CreateFpShotDBRequest::getName()const -{ - return name_; +void CreateFpShotDBRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateFpShotDBRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateFpShotDBRequest::getName() const { + return name_; } -std::string CreateFpShotDBRequest::getConfig()const -{ - return config_; +void CreateFpShotDBRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateFpShotDBRequest::setConfig(const std::string& config) -{ - config_ = config; - setParameter("Config", config); +std::string CreateFpShotDBRequest::getConfig() const { + return config_; +} + +void CreateFpShotDBRequest::setConfig(const std::string &config) { + config_ = config; + setParameter(std::string("Config"), config); } diff --git a/mts/src/model/CreateFpShotDBResult.cc b/mts/src/model/CreateFpShotDBResult.cc index 7fd5e0243..e52b37f15 100644 --- a/mts/src/model/CreateFpShotDBResult.cc +++ b/mts/src/model/CreateFpShotDBResult.cc @@ -40,18 +40,18 @@ void CreateFpShotDBResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto fpShotDBNode = value["FpShotDB"]; - if(!fpShotDBNode["FpDBId"].isNull()) - fpShotDB_.fpDBId = fpShotDBNode["FpDBId"].asString(); - if(!fpShotDBNode["Name"].isNull()) - fpShotDB_.name = fpShotDBNode["Name"].asString(); - if(!fpShotDBNode["ModelId"].isNull()) - fpShotDB_.modelId = std::stoi(fpShotDBNode["ModelId"].asString()); - if(!fpShotDBNode["State"].isNull()) - fpShotDB_.state = fpShotDBNode["State"].asString(); - if(!fpShotDBNode["Config"].isNull()) - fpShotDB_.config = fpShotDBNode["Config"].asString(); if(!fpShotDBNode["Description"].isNull()) fpShotDB_.description = fpShotDBNode["Description"].asString(); + if(!fpShotDBNode["State"].isNull()) + fpShotDB_.state = fpShotDBNode["State"].asString(); + if(!fpShotDBNode["Name"].isNull()) + fpShotDB_.name = fpShotDBNode["Name"].asString(); + if(!fpShotDBNode["FpDBId"].isNull()) + fpShotDB_.fpDBId = fpShotDBNode["FpDBId"].asString(); + if(!fpShotDBNode["ModelId"].isNull()) + fpShotDB_.modelId = std::stoi(fpShotDBNode["ModelId"].asString()); + if(!fpShotDBNode["Config"].isNull()) + fpShotDB_.config = fpShotDBNode["Config"].asString(); } diff --git a/mts/src/model/CreateInferenceServerRequest.cc b/mts/src/model/CreateInferenceServerRequest.cc new file mode 100644 index 000000000..ddef49e2a --- /dev/null +++ b/mts/src/model/CreateInferenceServerRequest.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 + +using AlibabaCloud::Mts::Model::CreateInferenceServerRequest; + +CreateInferenceServerRequest::CreateInferenceServerRequest() + : RpcServiceRequest("mts", "2014-06-18", "CreateInferenceServer") { + setMethod(HttpRequest::Method::Post); +} + +CreateInferenceServerRequest::~CreateInferenceServerRequest() {} + +std::string CreateInferenceServerRequest::getPipelineId() const { + return pipelineId_; +} + +void CreateInferenceServerRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); +} + +std::string CreateInferenceServerRequest::getUserData() const { + return userData_; +} + +void CreateInferenceServerRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string CreateInferenceServerRequest::getModelType() const { + return modelType_; +} + +void CreateInferenceServerRequest::setModelType(const std::string &modelType) { + modelType_ = modelType; + setParameter(std::string("ModelType"), modelType); +} + +std::string CreateInferenceServerRequest::getFunctionName() const { + return functionName_; +} + +void CreateInferenceServerRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("FunctionName"), functionName); +} + +std::string CreateInferenceServerRequest::getTestId() const { + return testId_; +} + +void CreateInferenceServerRequest::setTestId(const std::string &testId) { + testId_ = testId; + setParameter(std::string("TestId"), testId); +} + +std::string CreateInferenceServerRequest::getModelPath() const { + return modelPath_; +} + +void CreateInferenceServerRequest::setModelPath(const std::string &modelPath) { + modelPath_ = modelPath; + setParameter(std::string("ModelPath"), modelPath); +} + diff --git a/mts/src/model/CreateInferenceServerResult.cc b/mts/src/model/CreateInferenceServerResult.cc new file mode 100644 index 000000000..eb02ba1f2 --- /dev/null +++ b/mts/src/model/CreateInferenceServerResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +CreateInferenceServerResult::CreateInferenceServerResult() : + ServiceResult() +{} + +CreateInferenceServerResult::CreateInferenceServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateInferenceServerResult::~CreateInferenceServerResult() +{} + +void CreateInferenceServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string CreateInferenceServerResult::getMessage()const +{ + return message_; +} + +std::string CreateInferenceServerResult::getCode()const +{ + return code_; +} + diff --git a/mts/src/model/CreateMcuTemplateRequest.cc b/mts/src/model/CreateMcuTemplateRequest.cc index de8e73023..5c6fe5a28 100644 --- a/mts/src/model/CreateMcuTemplateRequest.cc +++ b/mts/src/model/CreateMcuTemplateRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::CreateMcuTemplateRequest; - -CreateMcuTemplateRequest::CreateMcuTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "CreateMcuTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateMcuTemplateRequest::~CreateMcuTemplateRequest() -{} - -std::string CreateMcuTemplateRequest::get_Template()const -{ - return _template_; + */ + +#include + +using AlibabaCloud::Mts::Model::CreateMcuTemplateRequest; + +CreateMcuTemplateRequest::CreateMcuTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "CreateMcuTemplate") { + setMethod(HttpRequest::Method::Post); } -void CreateMcuTemplateRequest::set_Template(const std::string& _template) -{ - _template_ = _template; - setParameter("_Template", _template); +CreateMcuTemplateRequest::~CreateMcuTemplateRequest() {} + +std::string CreateMcuTemplateRequest::get_Template() const { + return _template_; } -long CreateMcuTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void CreateMcuTemplateRequest::set_Template(const std::string &_template) { + _template_ = _template; + setParameter(std::string("Template"), _template); } -void CreateMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long CreateMcuTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateMcuTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void CreateMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateMcuTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateMcuTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateMcuTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateMcuTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long CreateMcuTemplateRequest::getOwnerId()const -{ - return ownerId_; +void CreateMcuTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateMcuTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long CreateMcuTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string CreateMcuTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateMcuTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void CreateMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateMcuTemplateRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void CreateMcuTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/CreateSessionRequest.cc b/mts/src/model/CreateSessionRequest.cc index 122605b06..bbb6b1f97 100644 --- a/mts/src/model/CreateSessionRequest.cc +++ b/mts/src/model/CreateSessionRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::CreateSessionRequest; - -CreateSessionRequest::CreateSessionRequest() : - RpcServiceRequest("mts", "2014-06-18", "CreateSession") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateSessionRequest::~CreateSessionRequest() -{} - -std::string CreateSessionRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::CreateSessionRequest; + +CreateSessionRequest::CreateSessionRequest() + : RpcServiceRequest("mts", "2014-06-18", "CreateSession") { + setMethod(HttpRequest::Method::Post); } -void CreateSessionRequest::setResourceOwnerId(const std::string& resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); +CreateSessionRequest::~CreateSessionRequest() {} + +std::string CreateSessionRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string CreateSessionRequest::getAccessKeyId()const -{ - return accessKeyId_; +void CreateSessionRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); } -void CreateSessionRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string CreateSessionRequest::getAccessKeyId() const { + return accessKeyId_; } -int CreateSessionRequest::getSessionTime()const -{ - return sessionTime_; +void CreateSessionRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void CreateSessionRequest::setSessionTime(int sessionTime) -{ - sessionTime_ = sessionTime; - setParameter("SessionTime", std::to_string(sessionTime)); +int CreateSessionRequest::getSessionTime() const { + return sessionTime_; } -std::string CreateSessionRequest::getEndUserId()const -{ - return endUserId_; +void CreateSessionRequest::setSessionTime(int sessionTime) { + sessionTime_ = sessionTime; + setParameter(std::string("SessionTime"), std::to_string(sessionTime)); } -void CreateSessionRequest::setEndUserId(const std::string& endUserId) -{ - endUserId_ = endUserId; - setParameter("EndUserId", endUserId); +std::string CreateSessionRequest::getEndUserId() const { + return endUserId_; } -std::string CreateSessionRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void CreateSessionRequest::setEndUserId(const std::string &endUserId) { + endUserId_ = endUserId; + setParameter(std::string("EndUserId"), endUserId); } -void CreateSessionRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string CreateSessionRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string CreateSessionRequest::getOwnerAccount()const -{ - return ownerAccount_; +void CreateSessionRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void CreateSessionRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string CreateSessionRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string CreateSessionRequest::getOwnerId()const -{ - return ownerId_; +void CreateSessionRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void CreateSessionRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string CreateSessionRequest::getOwnerId() const { + return ownerId_; } -std::string CreateSessionRequest::getMediaId()const -{ - return mediaId_; +void CreateSessionRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void CreateSessionRequest::setMediaId(const std::string& mediaId) -{ - mediaId_ = mediaId; - setParameter("MediaId", mediaId); +std::string CreateSessionRequest::getMediaId() const { + return mediaId_; +} + +void CreateSessionRequest::setMediaId(const std::string &mediaId) { + mediaId_ = mediaId; + setParameter(std::string("MediaId"), mediaId); } diff --git a/mts/src/model/CreateSessionResult.cc b/mts/src/model/CreateSessionResult.cc index c8e95477f..5fbbbf786 100644 --- a/mts/src/model/CreateSessionResult.cc +++ b/mts/src/model/CreateSessionResult.cc @@ -39,10 +39,10 @@ void CreateSessionResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["SessionId"].isNull()) - sessionId_ = value["SessionId"].asString(); if(!value["Ticket"].isNull()) ticket_ = value["Ticket"].asString(); + if(!value["SessionId"].isNull()) + sessionId_ = value["SessionId"].asString(); } diff --git a/mts/src/model/DeactivateMediaWorkflowRequest.cc b/mts/src/model/DeactivateMediaWorkflowRequest.cc index 516987bcc..ea63cabef 100644 --- a/mts/src/model/DeactivateMediaWorkflowRequest.cc +++ b/mts/src/model/DeactivateMediaWorkflowRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::DeactivateMediaWorkflowRequest; - -DeactivateMediaWorkflowRequest::DeactivateMediaWorkflowRequest() : - RpcServiceRequest("mts", "2014-06-18", "DeactivateMediaWorkflow") -{ - setMethod(HttpRequest::Method::Post); -} - -DeactivateMediaWorkflowRequest::~DeactivateMediaWorkflowRequest() -{} - -long DeactivateMediaWorkflowRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DeactivateMediaWorkflowRequest; + +DeactivateMediaWorkflowRequest::DeactivateMediaWorkflowRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeactivateMediaWorkflow") { + setMethod(HttpRequest::Method::Post); } -void DeactivateMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeactivateMediaWorkflowRequest::~DeactivateMediaWorkflowRequest() {} + +long DeactivateMediaWorkflowRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeactivateMediaWorkflowRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeactivateMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeactivateMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeactivateMediaWorkflowRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeactivateMediaWorkflowRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeactivateMediaWorkflowRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeactivateMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeactivateMediaWorkflowRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeactivateMediaWorkflowRequest::getOwnerId()const -{ - return ownerId_; +void DeactivateMediaWorkflowRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeactivateMediaWorkflowRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeactivateMediaWorkflowRequest::getOwnerId() const { + return ownerId_; } -std::string DeactivateMediaWorkflowRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeactivateMediaWorkflowRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeactivateMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeactivateMediaWorkflowRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeactivateMediaWorkflowRequest::getMediaWorkflowId()const -{ - return mediaWorkflowId_; +void DeactivateMediaWorkflowRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeactivateMediaWorkflowRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) -{ - mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); +std::string DeactivateMediaWorkflowRequest::getMediaWorkflowId() const { + return mediaWorkflowId_; +} + +void DeactivateMediaWorkflowRequest::setMediaWorkflowId(const std::string &mediaWorkflowId) { + mediaWorkflowId_ = mediaWorkflowId; + setParameter(std::string("MediaWorkflowId"), mediaWorkflowId); } diff --git a/mts/src/model/DeactivateMediaWorkflowResult.cc b/mts/src/model/DeactivateMediaWorkflowResult.cc index 9d739e7eb..beefa347e 100644 --- a/mts/src/model/DeactivateMediaWorkflowResult.cc +++ b/mts/src/model/DeactivateMediaWorkflowResult.cc @@ -40,16 +40,16 @@ void DeactivateMediaWorkflowResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; + if(!mediaWorkflowNode["CreationTime"].isNull()) + mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) mediaWorkflow_.mediaWorkflowId = mediaWorkflowNode["MediaWorkflowId"].asString(); + if(!mediaWorkflowNode["State"].isNull()) + mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); if(!mediaWorkflowNode["Name"].isNull()) mediaWorkflow_.name = mediaWorkflowNode["Name"].asString(); if(!mediaWorkflowNode["Topology"].isNull()) mediaWorkflow_.topology = mediaWorkflowNode["Topology"].asString(); - if(!mediaWorkflowNode["State"].isNull()) - mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); - if(!mediaWorkflowNode["CreationTime"].isNull()) - mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); } diff --git a/mts/src/model/DecryptKeyRequest.cc b/mts/src/model/DecryptKeyRequest.cc index f742ee312..378c6ec18 100644 --- a/mts/src/model/DecryptKeyRequest.cc +++ b/mts/src/model/DecryptKeyRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::DecryptKeyRequest; - -DecryptKeyRequest::DecryptKeyRequest() : - RpcServiceRequest("mts", "2014-06-18", "DecryptKey") -{ - setMethod(HttpRequest::Method::Post); -} - -DecryptKeyRequest::~DecryptKeyRequest() -{} - -std::string DecryptKeyRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DecryptKeyRequest; + +DecryptKeyRequest::DecryptKeyRequest() + : RpcServiceRequest("mts", "2014-06-18", "DecryptKey") { + setMethod(HttpRequest::Method::Post); } -void DecryptKeyRequest::setResourceOwnerId(const std::string& resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); +DecryptKeyRequest::~DecryptKeyRequest() {} + +std::string DecryptKeyRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DecryptKeyRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DecryptKeyRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); } -void DecryptKeyRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DecryptKeyRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DecryptKeyRequest::getRand()const -{ - return rand_; +void DecryptKeyRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DecryptKeyRequest::setRand(const std::string& rand) -{ - rand_ = rand; - setParameter("Rand", rand); +std::string DecryptKeyRequest::getRand() const { + return rand_; } -std::string DecryptKeyRequest::getCiphertextBlob()const -{ - return ciphertextBlob_; +void DecryptKeyRequest::setRand(const std::string &rand) { + rand_ = rand; + setParameter(std::string("Rand"), rand); } -void DecryptKeyRequest::setCiphertextBlob(const std::string& ciphertextBlob) -{ - ciphertextBlob_ = ciphertextBlob; - setParameter("CiphertextBlob", ciphertextBlob); +std::string DecryptKeyRequest::getCiphertextBlob() const { + return ciphertextBlob_; } -std::string DecryptKeyRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DecryptKeyRequest::setCiphertextBlob(const std::string &ciphertextBlob) { + ciphertextBlob_ = ciphertextBlob; + setParameter(std::string("CiphertextBlob"), ciphertextBlob); } -void DecryptKeyRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DecryptKeyRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DecryptKeyRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DecryptKeyRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DecryptKeyRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DecryptKeyRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string DecryptKeyRequest::getOwnerId()const -{ - return ownerId_; +void DecryptKeyRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DecryptKeyRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string DecryptKeyRequest::getOwnerId() const { + return ownerId_; +} + +void DecryptKeyRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } diff --git a/mts/src/model/DecryptKeyResult.cc b/mts/src/model/DecryptKeyResult.cc index c46120ee4..787f5c150 100644 --- a/mts/src/model/DecryptKeyResult.cc +++ b/mts/src/model/DecryptKeyResult.cc @@ -39,10 +39,10 @@ void DecryptKeyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Plaintext"].isNull()) - plaintext_ = value["Plaintext"].asString(); if(!value["Rand"].isNull()) rand_ = value["Rand"].asString(); + if(!value["Plaintext"].isNull()) + plaintext_ = value["Plaintext"].asString(); } diff --git a/mts/src/model/DeleteCategoryRequest.cc b/mts/src/model/DeleteCategoryRequest.cc index d8f18daf0..551337929 100644 --- a/mts/src/model/DeleteCategoryRequest.cc +++ b/mts/src/model/DeleteCategoryRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::DeleteCategoryRequest; - -DeleteCategoryRequest::DeleteCategoryRequest() : - RpcServiceRequest("mts", "2014-06-18", "DeleteCategory") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteCategoryRequest::~DeleteCategoryRequest() -{} - -long DeleteCategoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DeleteCategoryRequest; + +DeleteCategoryRequest::DeleteCategoryRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeleteCategory") { + setMethod(HttpRequest::Method::Post); } -void DeleteCategoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteCategoryRequest::~DeleteCategoryRequest() {} + +long DeleteCategoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteCategoryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteCategoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteCategoryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteCategoryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteCategoryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteCategoryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteCategoryRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteCategoryRequest::getOwnerId()const -{ - return ownerId_; +void DeleteCategoryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteCategoryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteCategoryRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteCategoryRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteCategoryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteCategoryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteCategoryRequest::getAccessKeyId() const { + return accessKeyId_; } -long DeleteCategoryRequest::getCateId()const -{ - return cateId_; +void DeleteCategoryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteCategoryRequest::setCateId(long cateId) -{ - cateId_ = cateId; - setParameter("CateId", std::to_string(cateId)); +long DeleteCategoryRequest::getCateId() const { + return cateId_; +} + +void DeleteCategoryRequest::setCateId(long cateId) { + cateId_ = cateId; + setParameter(std::string("CateId"), std::to_string(cateId)); } diff --git a/mts/src/model/DeleteMCTemplateRequest.cc b/mts/src/model/DeleteMCTemplateRequest.cc index e071792ce..3d09289f8 100644 --- a/mts/src/model/DeleteMCTemplateRequest.cc +++ b/mts/src/model/DeleteMCTemplateRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::DeleteMCTemplateRequest; - -DeleteMCTemplateRequest::DeleteMCTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "DeleteMCTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMCTemplateRequest::~DeleteMCTemplateRequest() -{} - -long DeleteMCTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DeleteMCTemplateRequest; + +DeleteMCTemplateRequest::DeleteMCTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeleteMCTemplate") { + setMethod(HttpRequest::Method::Post); } -void DeleteMCTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteMCTemplateRequest::~DeleteMCTemplateRequest() {} + +long DeleteMCTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteMCTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteMCTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteMCTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteMCTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteMCTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteMCTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteMCTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteMCTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteMCTemplateRequest::getOwnerId()const -{ - return ownerId_; +void DeleteMCTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteMCTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteMCTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteMCTemplateRequest::getTemplateId()const -{ - return templateId_; +void DeleteMCTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteMCTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string DeleteMCTemplateRequest::getTemplateId() const { + return templateId_; } -std::string DeleteMCTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteMCTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void DeleteMCTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteMCTemplateRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteMCTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/DeleteMcuJobRequest.cc b/mts/src/model/DeleteMcuJobRequest.cc index f128d5962..4d799a963 100644 --- a/mts/src/model/DeleteMcuJobRequest.cc +++ b/mts/src/model/DeleteMcuJobRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::DeleteMcuJobRequest; - -DeleteMcuJobRequest::DeleteMcuJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "DeleteMcuJob") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMcuJobRequest::~DeleteMcuJobRequest() -{} - -long DeleteMcuJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DeleteMcuJobRequest; + +DeleteMcuJobRequest::DeleteMcuJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeleteMcuJob") { + setMethod(HttpRequest::Method::Post); } -void DeleteMcuJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteMcuJobRequest::~DeleteMcuJobRequest() {} + +long DeleteMcuJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteMcuJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteMcuJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteMcuJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteMcuJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteMcuJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteMcuJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteMcuJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteMcuJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteMcuJobRequest::getOwnerId()const -{ - return ownerId_; +void DeleteMcuJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteMcuJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteMcuJobRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteMcuJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteMcuJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteMcuJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteMcuJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteMcuJobRequest::getJobIds()const -{ - return jobIds_; +void DeleteMcuJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteMcuJobRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string DeleteMcuJobRequest::getJobIds() const { + return jobIds_; +} + +void DeleteMcuJobRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/DeleteMcuTemplateRequest.cc b/mts/src/model/DeleteMcuTemplateRequest.cc index 5710adedd..14cc13c1b 100644 --- a/mts/src/model/DeleteMcuTemplateRequest.cc +++ b/mts/src/model/DeleteMcuTemplateRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::DeleteMcuTemplateRequest; - -DeleteMcuTemplateRequest::DeleteMcuTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "DeleteMcuTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMcuTemplateRequest::~DeleteMcuTemplateRequest() -{} - -long DeleteMcuTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DeleteMcuTemplateRequest; + +DeleteMcuTemplateRequest::DeleteMcuTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeleteMcuTemplate") { + setMethod(HttpRequest::Method::Post); } -void DeleteMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteMcuTemplateRequest::~DeleteMcuTemplateRequest() {} + +long DeleteMcuTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteMcuTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteMcuTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteMcuTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteMcuTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteMcuTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteMcuTemplateRequest::getOwnerId()const -{ - return ownerId_; +void DeleteMcuTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteMcuTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteMcuTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteMcuTemplateRequest::getTemplateId()const -{ - return templateId_; +void DeleteMcuTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteMcuTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string DeleteMcuTemplateRequest::getTemplateId() const { + return templateId_; } -std::string DeleteMcuTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteMcuTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void DeleteMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteMcuTemplateRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteMcuTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/DeleteMediaRequest.cc b/mts/src/model/DeleteMediaRequest.cc index eeb24e673..8dcbd1619 100644 --- a/mts/src/model/DeleteMediaRequest.cc +++ b/mts/src/model/DeleteMediaRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::DeleteMediaRequest; - -DeleteMediaRequest::DeleteMediaRequest() : - RpcServiceRequest("mts", "2014-06-18", "DeleteMedia") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMediaRequest::~DeleteMediaRequest() -{} - -long DeleteMediaRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DeleteMediaRequest; + +DeleteMediaRequest::DeleteMediaRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeleteMedia") { + setMethod(HttpRequest::Method::Post); } -void DeleteMediaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteMediaRequest::~DeleteMediaRequest() {} + +long DeleteMediaRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteMediaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteMediaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteMediaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteMediaRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteMediaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteMediaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteMediaRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteMediaRequest::getOwnerId()const -{ - return ownerId_; +void DeleteMediaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteMediaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteMediaRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteMediaRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteMediaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteMediaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteMediaRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteMediaRequest::getMediaIds()const -{ - return mediaIds_; +void DeleteMediaRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteMediaRequest::setMediaIds(const std::string& mediaIds) -{ - mediaIds_ = mediaIds; - setParameter("MediaIds", mediaIds); +std::string DeleteMediaRequest::getMediaIds() const { + return mediaIds_; +} + +void DeleteMediaRequest::setMediaIds(const std::string &mediaIds) { + mediaIds_ = mediaIds; + setParameter(std::string("MediaIds"), mediaIds); } diff --git a/mts/src/model/DeleteMediaTagRequest.cc b/mts/src/model/DeleteMediaTagRequest.cc index 9f4535e11..c2cd22b31 100644 --- a/mts/src/model/DeleteMediaTagRequest.cc +++ b/mts/src/model/DeleteMediaTagRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::DeleteMediaTagRequest; - -DeleteMediaTagRequest::DeleteMediaTagRequest() : - RpcServiceRequest("mts", "2014-06-18", "DeleteMediaTag") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMediaTagRequest::~DeleteMediaTagRequest() -{} - -long DeleteMediaTagRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DeleteMediaTagRequest; + +DeleteMediaTagRequest::DeleteMediaTagRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeleteMediaTag") { + setMethod(HttpRequest::Method::Post); } -void DeleteMediaTagRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteMediaTagRequest::~DeleteMediaTagRequest() {} + +long DeleteMediaTagRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteMediaTagRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteMediaTagRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteMediaTagRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteMediaTagRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteMediaTagRequest::getTag()const -{ - return tag_; +void DeleteMediaTagRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteMediaTagRequest::setTag(const std::string& tag) -{ - tag_ = tag; - setParameter("Tag", tag); +std::string DeleteMediaTagRequest::getTag() const { + return tag_; } -std::string DeleteMediaTagRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteMediaTagRequest::setTag(const std::string &tag) { + tag_ = tag; + setParameter(std::string("Tag"), tag); } -void DeleteMediaTagRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteMediaTagRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteMediaTagRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteMediaTagRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteMediaTagRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteMediaTagRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteMediaTagRequest::getOwnerId()const -{ - return ownerId_; +void DeleteMediaTagRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteMediaTagRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteMediaTagRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteMediaTagRequest::getMediaId()const -{ - return mediaId_; +void DeleteMediaTagRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteMediaTagRequest::setMediaId(const std::string& mediaId) -{ - mediaId_ = mediaId; - setParameter("MediaId", mediaId); +std::string DeleteMediaTagRequest::getMediaId() const { + return mediaId_; +} + +void DeleteMediaTagRequest::setMediaId(const std::string &mediaId) { + mediaId_ = mediaId; + setParameter(std::string("MediaId"), mediaId); } diff --git a/mts/src/model/DeleteMediaWorkflowRequest.cc b/mts/src/model/DeleteMediaWorkflowRequest.cc index cccd98c83..84537d034 100644 --- a/mts/src/model/DeleteMediaWorkflowRequest.cc +++ b/mts/src/model/DeleteMediaWorkflowRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::DeleteMediaWorkflowRequest; - -DeleteMediaWorkflowRequest::DeleteMediaWorkflowRequest() : - RpcServiceRequest("mts", "2014-06-18", "DeleteMediaWorkflow") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteMediaWorkflowRequest::~DeleteMediaWorkflowRequest() -{} - -long DeleteMediaWorkflowRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DeleteMediaWorkflowRequest; + +DeleteMediaWorkflowRequest::DeleteMediaWorkflowRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeleteMediaWorkflow") { + setMethod(HttpRequest::Method::Post); } -void DeleteMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteMediaWorkflowRequest::~DeleteMediaWorkflowRequest() {} + +long DeleteMediaWorkflowRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteMediaWorkflowRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteMediaWorkflowRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteMediaWorkflowRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteMediaWorkflowRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteMediaWorkflowRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteMediaWorkflowRequest::getOwnerId()const -{ - return ownerId_; +void DeleteMediaWorkflowRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteMediaWorkflowRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteMediaWorkflowRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteMediaWorkflowRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteMediaWorkflowRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteMediaWorkflowRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeleteMediaWorkflowRequest::getMediaWorkflowId()const -{ - return mediaWorkflowId_; +void DeleteMediaWorkflowRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeleteMediaWorkflowRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) -{ - mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); +std::string DeleteMediaWorkflowRequest::getMediaWorkflowId() const { + return mediaWorkflowId_; +} + +void DeleteMediaWorkflowRequest::setMediaWorkflowId(const std::string &mediaWorkflowId) { + mediaWorkflowId_ = mediaWorkflowId; + setParameter(std::string("MediaWorkflowId"), mediaWorkflowId); } diff --git a/mts/src/model/DeleteMediaWorkflowResult.cc b/mts/src/model/DeleteMediaWorkflowResult.cc index 6d31d9f33..f164cfcea 100644 --- a/mts/src/model/DeleteMediaWorkflowResult.cc +++ b/mts/src/model/DeleteMediaWorkflowResult.cc @@ -40,16 +40,16 @@ void DeleteMediaWorkflowResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; + if(!mediaWorkflowNode["CreationTime"].isNull()) + mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) mediaWorkflow_.mediaWorkflowId = mediaWorkflowNode["MediaWorkflowId"].asString(); + if(!mediaWorkflowNode["State"].isNull()) + mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); if(!mediaWorkflowNode["Name"].isNull()) mediaWorkflow_.name = mediaWorkflowNode["Name"].asString(); if(!mediaWorkflowNode["Topology"].isNull()) mediaWorkflow_.topology = mediaWorkflowNode["Topology"].asString(); - if(!mediaWorkflowNode["State"].isNull()) - mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); - if(!mediaWorkflowNode["CreationTime"].isNull()) - mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); } diff --git a/mts/src/model/DeletePipelineRequest.cc b/mts/src/model/DeletePipelineRequest.cc index 347929656..dbc6fd1f2 100644 --- a/mts/src/model/DeletePipelineRequest.cc +++ b/mts/src/model/DeletePipelineRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::DeletePipelineRequest; - -DeletePipelineRequest::DeletePipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "DeletePipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -DeletePipelineRequest::~DeletePipelineRequest() -{} - -long DeletePipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DeletePipelineRequest; + +DeletePipelineRequest::DeletePipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeletePipeline") { + setMethod(HttpRequest::Method::Post); } -void DeletePipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeletePipelineRequest::~DeletePipelineRequest() {} + +long DeletePipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeletePipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeletePipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeletePipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeletePipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeletePipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeletePipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeletePipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeletePipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeletePipelineRequest::getOwnerId()const -{ - return ownerId_; +void DeletePipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeletePipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeletePipelineRequest::getOwnerId() const { + return ownerId_; } -std::string DeletePipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeletePipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeletePipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeletePipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string DeletePipelineRequest::getPipelineId()const -{ - return pipelineId_; +void DeletePipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void DeletePipelineRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string DeletePipelineRequest::getPipelineId() const { + return pipelineId_; +} + +void DeletePipelineRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } diff --git a/mts/src/model/DeleteSmarttagTemplateRequest.cc b/mts/src/model/DeleteSmarttagTemplateRequest.cc new file mode 100644 index 000000000..5656715f2 --- /dev/null +++ b/mts/src/model/DeleteSmarttagTemplateRequest.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 + +using AlibabaCloud::Mts::Model::DeleteSmarttagTemplateRequest; + +DeleteSmarttagTemplateRequest::DeleteSmarttagTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeleteSmarttagTemplate") { + setMethod(HttpRequest::Method::Post); +} + +DeleteSmarttagTemplateRequest::~DeleteSmarttagTemplateRequest() {} + +long DeleteSmarttagTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void DeleteSmarttagTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string DeleteSmarttagTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void DeleteSmarttagTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string DeleteSmarttagTemplateRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void DeleteSmarttagTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long DeleteSmarttagTemplateRequest::getOwnerId() const { + return ownerId_; +} + +void DeleteSmarttagTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string DeleteSmarttagTemplateRequest::getTemplateId() const { + return templateId_; +} + +void DeleteSmarttagTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); +} + +std::string DeleteSmarttagTemplateRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteSmarttagTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/mts/src/model/DeleteSmarttagTemplateResult.cc b/mts/src/model/DeleteSmarttagTemplateResult.cc new file mode 100644 index 000000000..7ec7cf08a --- /dev/null +++ b/mts/src/model/DeleteSmarttagTemplateResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts; +using namespace AlibabaCloud::Mts::Model; + +DeleteSmarttagTemplateResult::DeleteSmarttagTemplateResult() : + ServiceResult() +{} + +DeleteSmarttagTemplateResult::DeleteSmarttagTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteSmarttagTemplateResult::~DeleteSmarttagTemplateResult() +{} + +void DeleteSmarttagTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/mts/src/model/DeleteTemplateRequest.cc b/mts/src/model/DeleteTemplateRequest.cc index 2ca92a8ed..4457cd0de 100644 --- a/mts/src/model/DeleteTemplateRequest.cc +++ b/mts/src/model/DeleteTemplateRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::DeleteTemplateRequest; - -DeleteTemplateRequest::DeleteTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "DeleteTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteTemplateRequest::~DeleteTemplateRequest() -{} - -long DeleteTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DeleteTemplateRequest; + +DeleteTemplateRequest::DeleteTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeleteTemplate") { + setMethod(HttpRequest::Method::Post); } -void DeleteTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteTemplateRequest::~DeleteTemplateRequest() {} + +long DeleteTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteTemplateRequest::getOwnerId()const -{ - return ownerId_; +void DeleteTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteTemplateRequest::getTemplateId()const -{ - return templateId_; +void DeleteTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string DeleteTemplateRequest::getTemplateId() const { + return templateId_; } -std::string DeleteTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void DeleteTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteTemplateRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/DeleteWaterMarkTemplateRequest.cc b/mts/src/model/DeleteWaterMarkTemplateRequest.cc index 7ab2118fc..d3ccf1ea1 100644 --- a/mts/src/model/DeleteWaterMarkTemplateRequest.cc +++ b/mts/src/model/DeleteWaterMarkTemplateRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::DeleteWaterMarkTemplateRequest; - -DeleteWaterMarkTemplateRequest::DeleteWaterMarkTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "DeleteWaterMarkTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteWaterMarkTemplateRequest::~DeleteWaterMarkTemplateRequest() -{} - -long DeleteWaterMarkTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DeleteWaterMarkTemplateRequest; + +DeleteWaterMarkTemplateRequest::DeleteWaterMarkTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "DeleteWaterMarkTemplate") { + setMethod(HttpRequest::Method::Post); } -void DeleteWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +DeleteWaterMarkTemplateRequest::~DeleteWaterMarkTemplateRequest() {} + +long DeleteWaterMarkTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string DeleteWaterMarkTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void DeleteWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void DeleteWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string DeleteWaterMarkTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string DeleteWaterMarkTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void DeleteWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void DeleteWaterMarkTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string DeleteWaterMarkTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long DeleteWaterMarkTemplateRequest::getOwnerId()const -{ - return ownerId_; +void DeleteWaterMarkTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void DeleteWaterMarkTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long DeleteWaterMarkTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string DeleteWaterMarkTemplateRequest::getWaterMarkTemplateId()const -{ - return waterMarkTemplateId_; +void DeleteWaterMarkTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DeleteWaterMarkTemplateRequest::setWaterMarkTemplateId(const std::string& waterMarkTemplateId) -{ - waterMarkTemplateId_ = waterMarkTemplateId; - setParameter("WaterMarkTemplateId", waterMarkTemplateId); +std::string DeleteWaterMarkTemplateRequest::getWaterMarkTemplateId() const { + return waterMarkTemplateId_; } -std::string DeleteWaterMarkTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void DeleteWaterMarkTemplateRequest::setWaterMarkTemplateId(const std::string &waterMarkTemplateId) { + waterMarkTemplateId_ = waterMarkTemplateId; + setParameter(std::string("WaterMarkTemplateId"), waterMarkTemplateId); } -void DeleteWaterMarkTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string DeleteWaterMarkTemplateRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void DeleteWaterMarkTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/DescribeMtsUserResourcePackageRequest.cc b/mts/src/model/DescribeMtsUserResourcePackageRequest.cc index b711aa010..fb3a60e0b 100644 --- a/mts/src/model/DescribeMtsUserResourcePackageRequest.cc +++ b/mts/src/model/DescribeMtsUserResourcePackageRequest.cc @@ -1,62 +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. - */ - -#include - -using AlibabaCloud::Mts::Model::DescribeMtsUserResourcePackageRequest; - -DescribeMtsUserResourcePackageRequest::DescribeMtsUserResourcePackageRequest() : - RpcServiceRequest("mts", "2014-06-18", "DescribeMtsUserResourcePackage") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeMtsUserResourcePackageRequest::~DescribeMtsUserResourcePackageRequest() -{} - -long DescribeMtsUserResourcePackageRequest::getOwnerId()const -{ - return ownerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::DescribeMtsUserResourcePackageRequest; + +DescribeMtsUserResourcePackageRequest::DescribeMtsUserResourcePackageRequest() + : RpcServiceRequest("mts", "2014-06-18", "DescribeMtsUserResourcePackage") { + setMethod(HttpRequest::Method::Post); } -void DescribeMtsUserResourcePackageRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +DescribeMtsUserResourcePackageRequest::~DescribeMtsUserResourcePackageRequest() {} + +long DescribeMtsUserResourcePackageRequest::getOwnerId() const { + return ownerId_; } -std::string DescribeMtsUserResourcePackageRequest::getSecurityToken()const -{ - return securityToken_; +void DescribeMtsUserResourcePackageRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void DescribeMtsUserResourcePackageRequest::setSecurityToken(const std::string& securityToken) -{ - securityToken_ = securityToken; - setParameter("SecurityToken", securityToken); +std::string DescribeMtsUserResourcePackageRequest::getSecurityToken() const { + return securityToken_; } -std::string DescribeMtsUserResourcePackageRequest::getShowLog()const -{ - return showLog_; +void DescribeMtsUserResourcePackageRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setParameter(std::string("SecurityToken"), securityToken); } -void DescribeMtsUserResourcePackageRequest::setShowLog(const std::string& showLog) -{ - showLog_ = showLog; - setParameter("ShowLog", showLog); +std::string DescribeMtsUserResourcePackageRequest::getShowLog() const { + return showLog_; +} + +void DescribeMtsUserResourcePackageRequest::setShowLog(const std::string &showLog) { + showLog_ = showLog; + setParameter(std::string("ShowLog"), showLog); } diff --git a/mts/src/model/DescribeMtsUserResourcePackageResult.cc b/mts/src/model/DescribeMtsUserResourcePackageResult.cc index 1e2f6ac59..851d1d41e 100644 --- a/mts/src/model/DescribeMtsUserResourcePackageResult.cc +++ b/mts/src/model/DescribeMtsUserResourcePackageResult.cc @@ -43,18 +43,18 @@ void DescribeMtsUserResourcePackageResult::parse(const std::string &payload) for (auto valueResourcePackageInfosResourcePackageInfo : allResourcePackageInfosNode) { ResourcePackageInfo resourcePackageInfosObject; + if(!valueResourcePackageInfosResourcePackageInfo["DisplayName"].isNull()) + resourcePackageInfosObject.displayName = valueResourcePackageInfosResourcePackageInfo["DisplayName"].asString(); + if(!valueResourcePackageInfosResourcePackageInfo["Status"].isNull()) + resourcePackageInfosObject.status = valueResourcePackageInfosResourcePackageInfo["Status"].asString(); + if(!valueResourcePackageInfosResourcePackageInfo["CommodityCode"].isNull()) + resourcePackageInfosObject.commodityCode = valueResourcePackageInfosResourcePackageInfo["CommodityCode"].asString(); if(!valueResourcePackageInfosResourcePackageInfo["CurrCapacity"].isNull()) resourcePackageInfosObject.currCapacity = valueResourcePackageInfosResourcePackageInfo["CurrCapacity"].asString(); if(!valueResourcePackageInfosResourcePackageInfo["InitCapacity"].isNull()) resourcePackageInfosObject.initCapacity = valueResourcePackageInfosResourcePackageInfo["InitCapacity"].asString(); - if(!valueResourcePackageInfosResourcePackageInfo["CommodityCode"].isNull()) - resourcePackageInfosObject.commodityCode = valueResourcePackageInfosResourcePackageInfo["CommodityCode"].asString(); - if(!valueResourcePackageInfosResourcePackageInfo["DisplayName"].isNull()) - resourcePackageInfosObject.displayName = valueResourcePackageInfosResourcePackageInfo["DisplayName"].asString(); if(!valueResourcePackageInfosResourcePackageInfo["InstanceId"].isNull()) resourcePackageInfosObject.instanceId = valueResourcePackageInfosResourcePackageInfo["InstanceId"].asString(); - if(!valueResourcePackageInfosResourcePackageInfo["Status"].isNull()) - resourcePackageInfosObject.status = valueResourcePackageInfosResourcePackageInfo["Status"].asString(); resourcePackageInfos_.push_back(resourcePackageInfosObject); } diff --git a/mts/src/model/DetectImageSyncRequest.cc b/mts/src/model/DetectImageSyncRequest.cc new file mode 100644 index 000000000..cfb64b43a --- /dev/null +++ b/mts/src/model/DetectImageSyncRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts::Model::DetectImageSyncRequest; + +DetectImageSyncRequest::DetectImageSyncRequest() + : RpcServiceRequest("mts", "2014-06-18", "DetectImageSync") { + setMethod(HttpRequest::Method::Post); +} + +DetectImageSyncRequest::~DetectImageSyncRequest() {} + +std::string DetectImageSyncRequest::getImage() const { + return image_; +} + +void DetectImageSyncRequest::setImage(const std::string &image) { + image_ = image; + setParameter(std::string("Image"), image); +} + diff --git a/mts/src/model/DetectImageSyncResult.cc b/mts/src/model/DetectImageSyncResult.cc new file mode 100644 index 000000000..4330974c2 --- /dev/null +++ b/mts/src/model/DetectImageSyncResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +DetectImageSyncResult::DetectImageSyncResult() : + ServiceResult() +{} + +DetectImageSyncResult::DetectImageSyncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DetectImageSyncResult::~DetectImageSyncResult() +{} + +void DetectImageSyncResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DetectImageSyncResult::getStatus()const +{ + return status_; +} + +std::string DetectImageSyncResult::getMessage()const +{ + return message_; +} + +std::string DetectImageSyncResult::getResult()const +{ + return result_; +} + diff --git a/mts/src/model/GetJobInfoRequest.cc b/mts/src/model/GetJobInfoRequest.cc new file mode 100644 index 000000000..760de912f --- /dev/null +++ b/mts/src/model/GetJobInfoRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts::Model::GetJobInfoRequest; + +GetJobInfoRequest::GetJobInfoRequest() + : RpcServiceRequest("mts", "2014-06-18", "GetJobInfo") { + setMethod(HttpRequest::Method::Get); +} + +GetJobInfoRequest::~GetJobInfoRequest() {} + +std::string GetJobInfoRequest::getJobId() const { + return jobId_; +} + +void GetJobInfoRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("jobId"), jobId); +} + diff --git a/mts/src/model/GetJobInfoResult.cc b/mts/src/model/GetJobInfoResult.cc new file mode 100644 index 000000000..fbc3d836d --- /dev/null +++ b/mts/src/model/GetJobInfoResult.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::Mts; +using namespace AlibabaCloud::Mts::Model; + +GetJobInfoResult::GetJobInfoResult() : + ServiceResult() +{} + +GetJobInfoResult::GetJobInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetJobInfoResult::~GetJobInfoResult() +{} + +void GetJobInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto mtsTransferJobNode = value["MtsTransferJob"]; + if(!mtsTransferJobNode["JobId"].isNull()) + mtsTransferJob_.jobId = mtsTransferJobNode["JobId"].asString(); + if(!mtsTransferJobNode["JobType"].isNull()) + mtsTransferJob_.jobType = mtsTransferJobNode["JobType"].asString(); + if(!mtsTransferJobNode["CreateTime"].isNull()) + mtsTransferJob_.createTime = mtsTransferJobNode["CreateTime"].asString(); + if(!mtsTransferJobNode["ModifiedTime"].isNull()) + mtsTransferJob_.modifiedTime = mtsTransferJobNode["ModifiedTime"].asString(); + if(!mtsTransferJobNode["FinishedTime"].isNull()) + mtsTransferJob_.finishedTime = mtsTransferJobNode["FinishedTime"].asString(); + if(!mtsTransferJobNode["State"].isNull()) + mtsTransferJob_.state = mtsTransferJobNode["State"].asString(); + if(!mtsTransferJobNode["ErrorCode"].isNull()) + mtsTransferJob_.errorCode = mtsTransferJobNode["ErrorCode"].asString(); + if(!mtsTransferJobNode["ErrorMessage"].isNull()) + mtsTransferJob_.errorMessage = mtsTransferJobNode["ErrorMessage"].asString(); + if(!mtsTransferJobNode["UserData"].isNull()) + mtsTransferJob_.userData = mtsTransferJobNode["UserData"].asString(); + if(!mtsTransferJobNode["Extend"].isNull()) + mtsTransferJob_.extend = mtsTransferJobNode["Extend"].asString(); + if(!mtsTransferJobNode["RequestJson"].isNull()) + mtsTransferJob_.requestJson = mtsTransferJobNode["RequestJson"].asString(); + +} + +GetJobInfoResult::MtsTransferJob GetJobInfoResult::getMtsTransferJob()const +{ + return mtsTransferJob_; +} + diff --git a/mts/src/model/GetLicenseRequest.cc b/mts/src/model/GetLicenseRequest.cc index c72fd6f35..295d38a53 100644 --- a/mts/src/model/GetLicenseRequest.cc +++ b/mts/src/model/GetLicenseRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::GetLicenseRequest; - -GetLicenseRequest::GetLicenseRequest() : - RpcServiceRequest("mts", "2014-06-18", "GetLicense") -{ - setMethod(HttpRequest::Method::Post); -} - -GetLicenseRequest::~GetLicenseRequest() -{} - -std::string GetLicenseRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::GetLicenseRequest; + +GetLicenseRequest::GetLicenseRequest() + : RpcServiceRequest("mts", "2014-06-18", "GetLicense") { + setMethod(HttpRequest::Method::Post); } -void GetLicenseRequest::setResourceOwnerId(const std::string& resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); +GetLicenseRequest::~GetLicenseRequest() {} + +std::string GetLicenseRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetLicenseRequest::getData()const -{ - return data_; +void GetLicenseRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); } -void GetLicenseRequest::setData(const std::string& data) -{ - data_ = data; - setParameter("Data", data); +std::string GetLicenseRequest::getData() const { + return data_; } -std::string GetLicenseRequest::getType()const -{ - return type_; +void GetLicenseRequest::setData(const std::string &data) { + data_ = data; + setParameter(std::string("Data"), data); } -void GetLicenseRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string GetLicenseRequest::getType() const { + return type_; } -std::string GetLicenseRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetLicenseRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void GetLicenseRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetLicenseRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string GetLicenseRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetLicenseRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void GetLicenseRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetLicenseRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GetLicenseRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GetLicenseRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetLicenseRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GetLicenseRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string GetLicenseRequest::getOwnerId()const -{ - return ownerId_; +void GetLicenseRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GetLicenseRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string GetLicenseRequest::getOwnerId() const { + return ownerId_; } -std::string GetLicenseRequest::getMediaId()const -{ - return mediaId_; +void GetLicenseRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void GetLicenseRequest::setMediaId(const std::string& mediaId) -{ - mediaId_ = mediaId; - setParameter("MediaId", mediaId); +std::string GetLicenseRequest::getMediaId() const { + return mediaId_; } -std::string GetLicenseRequest::getHeader()const -{ - return header_; +void GetLicenseRequest::setMediaId(const std::string &mediaId) { + mediaId_ = mediaId; + setParameter(std::string("MediaId"), mediaId); } -void GetLicenseRequest::setHeader(const std::string& header) -{ - header_ = header; - setParameter("Header", header); +std::string GetLicenseRequest::getHeader() const { + return header_; } -std::string GetLicenseRequest::getLicenseUrl()const -{ - return licenseUrl_; +void GetLicenseRequest::setHeader(const std::string &header) { + header_ = header; + setParameter(std::string("Header"), header); } -void GetLicenseRequest::setLicenseUrl(const std::string& licenseUrl) -{ - licenseUrl_ = licenseUrl; - setParameter("LicenseUrl", licenseUrl); +std::string GetLicenseRequest::getLicenseUrl() const { + return licenseUrl_; +} + +void GetLicenseRequest::setLicenseUrl(const std::string &licenseUrl) { + licenseUrl_ = licenseUrl; + setParameter(std::string("LicenseUrl"), licenseUrl); } diff --git a/mts/src/model/GetPackageRequest.cc b/mts/src/model/GetPackageRequest.cc index 04cf5c946..b87c70466 100644 --- a/mts/src/model/GetPackageRequest.cc +++ b/mts/src/model/GetPackageRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::GetPackageRequest; - -GetPackageRequest::GetPackageRequest() : - RpcServiceRequest("mts", "2014-06-18", "GetPackage") -{ - setMethod(HttpRequest::Method::Post); -} - -GetPackageRequest::~GetPackageRequest() -{} - -std::string GetPackageRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::GetPackageRequest; + +GetPackageRequest::GetPackageRequest() + : RpcServiceRequest("mts", "2014-06-18", "GetPackage") { + setMethod(HttpRequest::Method::Post); } -void GetPackageRequest::setResourceOwnerId(const std::string& resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); +GetPackageRequest::~GetPackageRequest() {} + +std::string GetPackageRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string GetPackageRequest::getData()const -{ - return data_; +void GetPackageRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); } -void GetPackageRequest::setData(const std::string& data) -{ - data_ = data; - setParameter("Data", data); +std::string GetPackageRequest::getData() const { + return data_; } -std::string GetPackageRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void GetPackageRequest::setData(const std::string &data) { + data_ = data; + setParameter(std::string("Data"), data); } -void GetPackageRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string GetPackageRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string GetPackageRequest::getOwnerAccount()const -{ - return ownerAccount_; +void GetPackageRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void GetPackageRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string GetPackageRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string GetPackageRequest::getOwnerId()const -{ - return ownerId_; +void GetPackageRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void GetPackageRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string GetPackageRequest::getOwnerId() const { + return ownerId_; } -std::string GetPackageRequest::getAccessKeyId()const -{ - return accessKeyId_; +void GetPackageRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void GetPackageRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string GetPackageRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GetPackageRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/ListAllCategoryRequest.cc b/mts/src/model/ListAllCategoryRequest.cc index 81899310d..1360b1879 100644 --- a/mts/src/model/ListAllCategoryRequest.cc +++ b/mts/src/model/ListAllCategoryRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Mts::Model::ListAllCategoryRequest; - -ListAllCategoryRequest::ListAllCategoryRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListAllCategory") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAllCategoryRequest::~ListAllCategoryRequest() -{} - -long ListAllCategoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListAllCategoryRequest; + +ListAllCategoryRequest::ListAllCategoryRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListAllCategory") { + setMethod(HttpRequest::Method::Post); } -void ListAllCategoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListAllCategoryRequest::~ListAllCategoryRequest() {} + +long ListAllCategoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListAllCategoryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListAllCategoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListAllCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListAllCategoryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListAllCategoryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListAllCategoryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListAllCategoryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListAllCategoryRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListAllCategoryRequest::getOwnerId()const -{ - return ownerId_; +void ListAllCategoryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListAllCategoryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListAllCategoryRequest::getOwnerId() const { + return ownerId_; } -std::string ListAllCategoryRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListAllCategoryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListAllCategoryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListAllCategoryRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListAllCategoryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/ListAllCategoryResult.cc b/mts/src/model/ListAllCategoryResult.cc index 97b4bc89e..d924f4a07 100644 --- a/mts/src/model/ListAllCategoryResult.cc +++ b/mts/src/model/ListAllCategoryResult.cc @@ -43,12 +43,12 @@ void ListAllCategoryResult::parse(const std::string &payload) for (auto valueCategoryListCategory : allCategoryListNode) { Category categoryListObject; - if(!valueCategoryListCategory["CateId"].isNull()) - categoryListObject.cateId = valueCategoryListCategory["CateId"].asString(); if(!valueCategoryListCategory["CateName"].isNull()) categoryListObject.cateName = valueCategoryListCategory["CateName"].asString(); if(!valueCategoryListCategory["ParentId"].isNull()) categoryListObject.parentId = valueCategoryListCategory["ParentId"].asString(); + if(!valueCategoryListCategory["CateId"].isNull()) + categoryListObject.cateId = valueCategoryListCategory["CateId"].asString(); if(!valueCategoryListCategory["Level"].isNull()) categoryListObject.level = valueCategoryListCategory["Level"].asString(); categoryList_.push_back(categoryListObject); diff --git a/mts/src/model/ListAllMediaBucketRequest.cc b/mts/src/model/ListAllMediaBucketRequest.cc index ca4fc4016..8c5f0495e 100644 --- a/mts/src/model/ListAllMediaBucketRequest.cc +++ b/mts/src/model/ListAllMediaBucketRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ListAllMediaBucketRequest; - -ListAllMediaBucketRequest::ListAllMediaBucketRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListAllMediaBucket") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAllMediaBucketRequest::~ListAllMediaBucketRequest() -{} - -long ListAllMediaBucketRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListAllMediaBucketRequest; + +ListAllMediaBucketRequest::ListAllMediaBucketRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListAllMediaBucket") { + setMethod(HttpRequest::Method::Post); } -void ListAllMediaBucketRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListAllMediaBucketRequest::~ListAllMediaBucketRequest() {} + +long ListAllMediaBucketRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListAllMediaBucketRequest::getNextPageToken()const -{ - return nextPageToken_; +void ListAllMediaBucketRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListAllMediaBucketRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); +std::string ListAllMediaBucketRequest::getNextPageToken() const { + return nextPageToken_; } -std::string ListAllMediaBucketRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListAllMediaBucketRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); } -void ListAllMediaBucketRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListAllMediaBucketRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListAllMediaBucketRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListAllMediaBucketRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListAllMediaBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListAllMediaBucketRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListAllMediaBucketRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListAllMediaBucketRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListAllMediaBucketRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListAllMediaBucketRequest::getOwnerAccount() const { + return ownerAccount_; } -int ListAllMediaBucketRequest::getMaximumPageSize()const -{ - return maximumPageSize_; +void ListAllMediaBucketRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListAllMediaBucketRequest::setMaximumPageSize(int maximumPageSize) -{ - maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); +int ListAllMediaBucketRequest::getMaximumPageSize() const { + return maximumPageSize_; } -long ListAllMediaBucketRequest::getOwnerId()const -{ - return ownerId_; +void ListAllMediaBucketRequest::setMaximumPageSize(int maximumPageSize) { + maximumPageSize_ = maximumPageSize; + setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize)); } -void ListAllMediaBucketRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListAllMediaBucketRequest::getOwnerId() const { + return ownerId_; +} + +void ListAllMediaBucketRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ListAllMediaBucketResult.cc b/mts/src/model/ListAllMediaBucketResult.cc index 8b3d1d1fa..5448ebb8b 100644 --- a/mts/src/model/ListAllMediaBucketResult.cc +++ b/mts/src/model/ListAllMediaBucketResult.cc @@ -43,10 +43,10 @@ void ListAllMediaBucketResult::parse(const std::string &payload) for (auto valueMediaBucketListMediaBucket : allMediaBucketListNode) { MediaBucket mediaBucketListObject; - if(!valueMediaBucketListMediaBucket["Bucket"].isNull()) - mediaBucketListObject.bucket = valueMediaBucketListMediaBucket["Bucket"].asString(); if(!valueMediaBucketListMediaBucket["Type"].isNull()) mediaBucketListObject.type = valueMediaBucketListMediaBucket["Type"].asString(); + if(!valueMediaBucketListMediaBucket["Bucket"].isNull()) + mediaBucketListObject.bucket = valueMediaBucketListMediaBucket["Bucket"].asString(); mediaBucketList_.push_back(mediaBucketListObject); } if(!value["NextPageToken"].isNull()) diff --git a/mts/src/model/ListAsrPipelineRequest.cc b/mts/src/model/ListAsrPipelineRequest.cc index 0a0303951..2ca52f528 100644 --- a/mts/src/model/ListAsrPipelineRequest.cc +++ b/mts/src/model/ListAsrPipelineRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ListAsrPipelineRequest; - -ListAsrPipelineRequest::ListAsrPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListAsrPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAsrPipelineRequest::~ListAsrPipelineRequest() -{} - -long ListAsrPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListAsrPipelineRequest; + +ListAsrPipelineRequest::ListAsrPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListAsrPipeline") { + setMethod(HttpRequest::Method::Post); } -void ListAsrPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListAsrPipelineRequest::~ListAsrPipelineRequest() {} + +long ListAsrPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long ListAsrPipelineRequest::getPageNumber()const -{ - return pageNumber_; +void ListAsrPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListAsrPipelineRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long ListAsrPipelineRequest::getPageNumber() const { + return pageNumber_; } -std::string ListAsrPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListAsrPipelineRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListAsrPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListAsrPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -long ListAsrPipelineRequest::getPageSize()const -{ - return pageSize_; +void ListAsrPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListAsrPipelineRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long ListAsrPipelineRequest::getPageSize() const { + return pageSize_; } -std::string ListAsrPipelineRequest::getState()const -{ - return state_; +void ListAsrPipelineRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListAsrPipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string ListAsrPipelineRequest::getState() const { + return state_; } -std::string ListAsrPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListAsrPipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void ListAsrPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListAsrPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListAsrPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListAsrPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListAsrPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListAsrPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListAsrPipelineRequest::getOwnerId()const -{ - return ownerId_; +void ListAsrPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListAsrPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListAsrPipelineRequest::getOwnerId() const { + return ownerId_; +} + +void ListAsrPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ListAsrPipelineResult.cc b/mts/src/model/ListAsrPipelineResult.cc index d33decd10..56e1d48f1 100644 --- a/mts/src/model/ListAsrPipelineResult.cc +++ b/mts/src/model/ListAsrPipelineResult.cc @@ -43,27 +43,27 @@ void ListAsrPipelineResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["Id"].isNull()) - pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); if(!valuePipelineListPipeline["State"].isNull()) pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["Priority"].isNull()) pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["Id"].isNull()) + pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); auto notifyConfigNode = value["NotifyConfig"]; - if(!notifyConfigNode["Topic"].isNull()) - pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); if(!notifyConfigNode["QueueName"].isNull()) pipelineListObject.notifyConfig.queueName = notifyConfigNode["QueueName"].asString(); + if(!notifyConfigNode["Topic"].isNull()) + pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); pipelineList_.push_back(pipelineListObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/mts/src/model/ListCensorPipelineRequest.cc b/mts/src/model/ListCensorPipelineRequest.cc index c94cdcaa9..16bcdf60c 100644 --- a/mts/src/model/ListCensorPipelineRequest.cc +++ b/mts/src/model/ListCensorPipelineRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ListCensorPipelineRequest; - -ListCensorPipelineRequest::ListCensorPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListCensorPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -ListCensorPipelineRequest::~ListCensorPipelineRequest() -{} - -long ListCensorPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListCensorPipelineRequest; + +ListCensorPipelineRequest::ListCensorPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListCensorPipeline") { + setMethod(HttpRequest::Method::Post); } -void ListCensorPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListCensorPipelineRequest::~ListCensorPipelineRequest() {} + +long ListCensorPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long ListCensorPipelineRequest::getPageNumber()const -{ - return pageNumber_; +void ListCensorPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListCensorPipelineRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long ListCensorPipelineRequest::getPageNumber() const { + return pageNumber_; } -std::string ListCensorPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListCensorPipelineRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListCensorPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListCensorPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -long ListCensorPipelineRequest::getPageSize()const -{ - return pageSize_; +void ListCensorPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListCensorPipelineRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long ListCensorPipelineRequest::getPageSize() const { + return pageSize_; } -std::string ListCensorPipelineRequest::getState()const -{ - return state_; +void ListCensorPipelineRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListCensorPipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string ListCensorPipelineRequest::getState() const { + return state_; } -std::string ListCensorPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListCensorPipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void ListCensorPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListCensorPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListCensorPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListCensorPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListCensorPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListCensorPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListCensorPipelineRequest::getOwnerId()const -{ - return ownerId_; +void ListCensorPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListCensorPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListCensorPipelineRequest::getOwnerId() const { + return ownerId_; +} + +void ListCensorPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ListCensorPipelineResult.cc b/mts/src/model/ListCensorPipelineResult.cc index 584821361..9923d4c92 100644 --- a/mts/src/model/ListCensorPipelineResult.cc +++ b/mts/src/model/ListCensorPipelineResult.cc @@ -43,14 +43,14 @@ void ListCensorPipelineResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["Id"].isNull()) - pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); if(!valuePipelineListPipeline["State"].isNull()) pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["Priority"].isNull()) pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["Id"].isNull()) + pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); auto notifyConfigNode = value["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); @@ -60,10 +60,10 @@ void ListCensorPipelineResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/mts/src/model/ListCoverPipelineRequest.cc b/mts/src/model/ListCoverPipelineRequest.cc index ab0a99d0c..227db8bc5 100644 --- a/mts/src/model/ListCoverPipelineRequest.cc +++ b/mts/src/model/ListCoverPipelineRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ListCoverPipelineRequest; - -ListCoverPipelineRequest::ListCoverPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListCoverPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -ListCoverPipelineRequest::~ListCoverPipelineRequest() -{} - -long ListCoverPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListCoverPipelineRequest; + +ListCoverPipelineRequest::ListCoverPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListCoverPipeline") { + setMethod(HttpRequest::Method::Post); } -void ListCoverPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListCoverPipelineRequest::~ListCoverPipelineRequest() {} + +long ListCoverPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long ListCoverPipelineRequest::getPageNumber()const -{ - return pageNumber_; +void ListCoverPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListCoverPipelineRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long ListCoverPipelineRequest::getPageNumber() const { + return pageNumber_; } -std::string ListCoverPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListCoverPipelineRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListCoverPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListCoverPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -long ListCoverPipelineRequest::getPageSize()const -{ - return pageSize_; +void ListCoverPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListCoverPipelineRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long ListCoverPipelineRequest::getPageSize() const { + return pageSize_; } -std::string ListCoverPipelineRequest::getState()const -{ - return state_; +void ListCoverPipelineRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListCoverPipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string ListCoverPipelineRequest::getState() const { + return state_; } -std::string ListCoverPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListCoverPipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void ListCoverPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListCoverPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListCoverPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListCoverPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListCoverPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListCoverPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListCoverPipelineRequest::getOwnerId()const -{ - return ownerId_; +void ListCoverPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListCoverPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListCoverPipelineRequest::getOwnerId() const { + return ownerId_; +} + +void ListCoverPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ListCoverPipelineResult.cc b/mts/src/model/ListCoverPipelineResult.cc index d0b92a35a..f67f73457 100644 --- a/mts/src/model/ListCoverPipelineResult.cc +++ b/mts/src/model/ListCoverPipelineResult.cc @@ -43,34 +43,34 @@ void ListCoverPipelineResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["UserId"].isNull()) - pipelineListObject.userId = std::stol(valuePipelineListPipeline["UserId"].asString()); - if(!valuePipelineListPipeline["PipelineId"].isNull()) - pipelineListObject.pipelineId = valuePipelineListPipeline["PipelineId"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); if(!valuePipelineListPipeline["State"].isNull()) pipelineListObject.state = valuePipelineListPipeline["State"].asString(); - if(!valuePipelineListPipeline["Priority"].isNull()) - pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString(); if(!valuePipelineListPipeline["quotaNum"].isNull()) pipelineListObject.quotaNum = std::stoi(valuePipelineListPipeline["quotaNum"].asString()); - if(!valuePipelineListPipeline["quotaUsed"].isNull()) - pipelineListObject.quotaUsed = std::stoi(valuePipelineListPipeline["quotaUsed"].asString()); + if(!valuePipelineListPipeline["UserId"].isNull()) + pipelineListObject.userId = std::stol(valuePipelineListPipeline["UserId"].asString()); if(!valuePipelineListPipeline["NotifyConfig"].isNull()) pipelineListObject.notifyConfig = valuePipelineListPipeline["NotifyConfig"].asString(); - if(!valuePipelineListPipeline["Role"].isNull()) - pipelineListObject.role = valuePipelineListPipeline["Role"].asString(); if(!valuePipelineListPipeline["ExtendConfig"].isNull()) pipelineListObject.extendConfig = valuePipelineListPipeline["ExtendConfig"].asString(); + if(!valuePipelineListPipeline["Priority"].isNull()) + pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString(); + if(!valuePipelineListPipeline["Role"].isNull()) + pipelineListObject.role = valuePipelineListPipeline["Role"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["PipelineId"].isNull()) + pipelineListObject.pipelineId = valuePipelineListPipeline["PipelineId"].asString(); + if(!valuePipelineListPipeline["quotaUsed"].isNull()) + pipelineListObject.quotaUsed = std::stoi(valuePipelineListPipeline["quotaUsed"].asString()); pipelineList_.push_back(pipelineListObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/mts/src/model/ListCustomPersonsRequest.cc b/mts/src/model/ListCustomPersonsRequest.cc new file mode 100644 index 000000000..48d5899bf --- /dev/null +++ b/mts/src/model/ListCustomPersonsRequest.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mts::Model::ListCustomPersonsRequest; + +ListCustomPersonsRequest::ListCustomPersonsRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListCustomPersons") { + setMethod(HttpRequest::Method::Post); +} + +ListCustomPersonsRequest::~ListCustomPersonsRequest() {} + +long ListCustomPersonsRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListCustomPersonsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListCustomPersonsRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListCustomPersonsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string ListCustomPersonsRequest::getPersonId() const { + return personId_; +} + +void ListCustomPersonsRequest::setPersonId(const std::string &personId) { + personId_ = personId; + setParameter(std::string("PersonId"), personId); +} + +std::string ListCustomPersonsRequest::getCategoryId() const { + return categoryId_; +} + +void ListCustomPersonsRequest::setCategoryId(const std::string &categoryId) { + categoryId_ = categoryId; + setParameter(std::string("CategoryId"), categoryId); +} + +std::string ListCustomPersonsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListCustomPersonsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListCustomPersonsRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListCustomPersonsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListCustomPersonsRequest::getOwnerId() const { + return ownerId_; +} + +void ListCustomPersonsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/mts/src/model/ListCustomPersonsResult.cc b/mts/src/model/ListCustomPersonsResult.cc new file mode 100644 index 000000000..9849c6f82 --- /dev/null +++ b/mts/src/model/ListCustomPersonsResult.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::Mts; +using namespace AlibabaCloud::Mts::Model; + +ListCustomPersonsResult::ListCustomPersonsResult() : + ServiceResult() +{} + +ListCustomPersonsResult::ListCustomPersonsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListCustomPersonsResult::~ListCustomPersonsResult() +{} + +void ListCustomPersonsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCategoriesNode = value["Categories"]["Category"]; + for (auto valueCategoriesCategory : allCategoriesNode) + { + Category categoriesObject; + if(!valueCategoriesCategory["CategoryId"].isNull()) + categoriesObject.categoryId = valueCategoriesCategory["CategoryId"].asString(); + if(!valueCategoriesCategory["CategoryName"].isNull()) + categoriesObject.categoryName = valueCategoriesCategory["CategoryName"].asString(); + if(!valueCategoriesCategory["CategoryDescription"].isNull()) + categoriesObject.categoryDescription = valueCategoriesCategory["CategoryDescription"].asString(); + auto allPersonsNode = valueCategoriesCategory["Persons"]["Person"]; + for (auto valueCategoriesCategoryPersonsPerson : allPersonsNode) + { + Category::Person personsObject; + if(!valueCategoriesCategoryPersonsPerson["PersonName"].isNull()) + personsObject.personName = valueCategoriesCategoryPersonsPerson["PersonName"].asString(); + if(!valueCategoriesCategoryPersonsPerson["PersonDescription"].isNull()) + personsObject.personDescription = valueCategoriesCategoryPersonsPerson["PersonDescription"].asString(); + if(!valueCategoriesCategoryPersonsPerson["PersonId"].isNull()) + personsObject.personId = valueCategoriesCategoryPersonsPerson["PersonId"].asString(); + auto allFacesNode = valueCategoriesCategoryPersonsPerson["Faces"]["Face"]; + for (auto valueCategoriesCategoryPersonsPersonFacesFace : allFacesNode) + { + Category::Person::Face facesObject; + if(!valueCategoriesCategoryPersonsPersonFacesFace["ImageUrl"].isNull()) + facesObject.imageUrl = valueCategoriesCategoryPersonsPersonFacesFace["ImageUrl"].asString(); + if(!valueCategoriesCategoryPersonsPersonFacesFace["FaceId"].isNull()) + facesObject.faceId = valueCategoriesCategoryPersonsPersonFacesFace["FaceId"].asString(); + personsObject.faces.push_back(facesObject); + } + categoriesObject.persons.push_back(personsObject); + } + categories_.push_back(categoriesObject); + } + +} + +std::vector ListCustomPersonsResult::getCategories()const +{ + return categories_; +} + diff --git a/mts/src/model/ListFpShotDBRequest.cc b/mts/src/model/ListFpShotDBRequest.cc index 98fd62c62..79d0da3bd 100644 --- a/mts/src/model/ListFpShotDBRequest.cc +++ b/mts/src/model/ListFpShotDBRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::ListFpShotDBRequest; - -ListFpShotDBRequest::ListFpShotDBRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListFpShotDB") -{ - setMethod(HttpRequest::Method::Post); -} - -ListFpShotDBRequest::~ListFpShotDBRequest() -{} - -long ListFpShotDBRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListFpShotDBRequest; + +ListFpShotDBRequest::ListFpShotDBRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListFpShotDB") { + setMethod(HttpRequest::Method::Post); } -void ListFpShotDBRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListFpShotDBRequest::~ListFpShotDBRequest() {} + +long ListFpShotDBRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListFpShotDBRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListFpShotDBRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListFpShotDBRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListFpShotDBRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListFpShotDBRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListFpShotDBRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListFpShotDBRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListFpShotDBRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListFpShotDBRequest::getOwnerId()const -{ - return ownerId_; +void ListFpShotDBRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListFpShotDBRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListFpShotDBRequest::getOwnerId() const { + return ownerId_; } -std::string ListFpShotDBRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListFpShotDBRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListFpShotDBRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListFpShotDBRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListFpShotDBRequest::getFpDBIds()const -{ - return fpDBIds_; +void ListFpShotDBRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListFpShotDBRequest::setFpDBIds(const std::string& fpDBIds) -{ - fpDBIds_ = fpDBIds; - setParameter("FpDBIds", fpDBIds); +std::string ListFpShotDBRequest::getFpDBIds() const { + return fpDBIds_; +} + +void ListFpShotDBRequest::setFpDBIds(const std::string &fpDBIds) { + fpDBIds_ = fpDBIds; + setParameter(std::string("FpDBIds"), fpDBIds); } diff --git a/mts/src/model/ListFpShotDBResult.cc b/mts/src/model/ListFpShotDBResult.cc index 374ad6850..47ea0e1db 100644 --- a/mts/src/model/ListFpShotDBResult.cc +++ b/mts/src/model/ListFpShotDBResult.cc @@ -43,16 +43,16 @@ void ListFpShotDBResult::parse(const std::string &payload) for (auto valueFpShotDBListFpShotDB : allFpShotDBListNode) { FpShotDB fpShotDBListObject; - if(!valueFpShotDBListFpShotDB["FpDBId"].isNull()) - fpShotDBListObject.fpDBId = valueFpShotDBListFpShotDB["FpDBId"].asString(); - if(!valueFpShotDBListFpShotDB["Name"].isNull()) - fpShotDBListObject.name = valueFpShotDBListFpShotDB["Name"].asString(); - if(!valueFpShotDBListFpShotDB["ModelId"].isNull()) - fpShotDBListObject.modelId = std::stoi(valueFpShotDBListFpShotDB["ModelId"].asString()); if(!valueFpShotDBListFpShotDB["Status"].isNull()) fpShotDBListObject.status = valueFpShotDBListFpShotDB["Status"].asString(); if(!valueFpShotDBListFpShotDB["Description"].isNull()) fpShotDBListObject.description = valueFpShotDBListFpShotDB["Description"].asString(); + if(!valueFpShotDBListFpShotDB["Name"].isNull()) + fpShotDBListObject.name = valueFpShotDBListFpShotDB["Name"].asString(); + if(!valueFpShotDBListFpShotDB["ModelId"].isNull()) + fpShotDBListObject.modelId = std::stoi(valueFpShotDBListFpShotDB["ModelId"].asString()); + if(!valueFpShotDBListFpShotDB["FpDBId"].isNull()) + fpShotDBListObject.fpDBId = valueFpShotDBListFpShotDB["FpDBId"].asString(); fpShotDBList_.push_back(fpShotDBListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/ListFpShotFilesRequest.cc b/mts/src/model/ListFpShotFilesRequest.cc new file mode 100644 index 000000000..33c2a9531 --- /dev/null +++ b/mts/src/model/ListFpShotFilesRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mts::Model::ListFpShotFilesRequest; + +ListFpShotFilesRequest::ListFpShotFilesRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListFpShotFiles") { + setMethod(HttpRequest::Method::Post); +} + +ListFpShotFilesRequest::~ListFpShotFilesRequest() {} + +long ListFpShotFilesRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void ListFpShotFilesRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string ListFpShotFilesRequest::getFpDBId() const { + return fpDBId_; +} + +void ListFpShotFilesRequest::setFpDBId(const std::string &fpDBId) { + fpDBId_ = fpDBId; + setParameter(std::string("FpDBId"), fpDBId); +} + +std::string ListFpShotFilesRequest::getNextPageToken() const { + return nextPageToken_; +} + +void ListFpShotFilesRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); +} + +std::string ListFpShotFilesRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void ListFpShotFilesRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +int ListFpShotFilesRequest::getPageSize() const { + return pageSize_; +} + +void ListFpShotFilesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); +} + +std::string ListFpShotFilesRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void ListFpShotFilesRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string ListFpShotFilesRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void ListFpShotFilesRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long ListFpShotFilesRequest::getOwnerId() const { + return ownerId_; +} + +void ListFpShotFilesRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/mts/src/model/ListFpShotFilesResult.cc b/mts/src/model/ListFpShotFilesResult.cc new file mode 100644 index 000000000..b4fb1ed58 --- /dev/null +++ b/mts/src/model/ListFpShotFilesResult.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::Mts; +using namespace AlibabaCloud::Mts::Model; + +ListFpShotFilesResult::ListFpShotFilesResult() : + ServiceResult() +{} + +ListFpShotFilesResult::ListFpShotFilesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListFpShotFilesResult::~ListFpShotFilesResult() +{} + +void ListFpShotFilesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFpShotFileListNode = value["FpShotFileList"]["FpShotFile"]; + for (auto valueFpShotFileListFpShotFile : allFpShotFileListNode) + { + FpShotFile fpShotFileListObject; + if(!valueFpShotFileListFpShotFile["PrimaryKey"].isNull()) + fpShotFileListObject.primaryKey = valueFpShotFileListFpShotFile["PrimaryKey"].asString(); + if(!valueFpShotFileListFpShotFile["FileId"].isNull()) + fpShotFileListObject.fileId = valueFpShotFileListFpShotFile["FileId"].asString(); + auto inputFileNode = value["InputFile"]; + if(!inputFileNode["Object"].isNull()) + fpShotFileListObject.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + fpShotFileListObject.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + fpShotFileListObject.inputFile.bucket = inputFileNode["Bucket"].asString(); + fpShotFileList_.push_back(fpShotFileListObject); + } + if(!value["NextPageToken"].isNull()) + nextPageToken_ = value["NextPageToken"].asString(); + +} + +std::string ListFpShotFilesResult::getNextPageToken()const +{ + return nextPageToken_; +} + +std::vector ListFpShotFilesResult::getFpShotFileList()const +{ + return fpShotFileList_; +} + diff --git a/mts/src/model/ListFpShotNotaryRequest.cc b/mts/src/model/ListFpShotNotaryRequest.cc index fc933cd81..9908a7a5f 100644 --- a/mts/src/model/ListFpShotNotaryRequest.cc +++ b/mts/src/model/ListFpShotNotaryRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ListFpShotNotaryRequest; - -ListFpShotNotaryRequest::ListFpShotNotaryRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListFpShotNotary") -{ - setMethod(HttpRequest::Method::Post); -} - -ListFpShotNotaryRequest::~ListFpShotNotaryRequest() -{} - -long ListFpShotNotaryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListFpShotNotaryRequest; + +ListFpShotNotaryRequest::ListFpShotNotaryRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListFpShotNotary") { + setMethod(HttpRequest::Method::Post); } -void ListFpShotNotaryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListFpShotNotaryRequest::~ListFpShotNotaryRequest() {} + +long ListFpShotNotaryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListFpShotNotaryRequest::getFpDBId()const -{ - return fpDBId_; +void ListFpShotNotaryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListFpShotNotaryRequest::setFpDBId(const std::string& fpDBId) -{ - fpDBId_ = fpDBId; - setParameter("FpDBId", fpDBId); +std::string ListFpShotNotaryRequest::getFpDBId() const { + return fpDBId_; } -std::string ListFpShotNotaryRequest::getNextPageToken()const -{ - return nextPageToken_; +void ListFpShotNotaryRequest::setFpDBId(const std::string &fpDBId) { + fpDBId_ = fpDBId; + setParameter(std::string("FpDBId"), fpDBId); } -void ListFpShotNotaryRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); +std::string ListFpShotNotaryRequest::getNextPageToken() const { + return nextPageToken_; } -std::string ListFpShotNotaryRequest::getStartOfCreatedTimeRange()const -{ - return startOfCreatedTimeRange_; +void ListFpShotNotaryRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); } -void ListFpShotNotaryRequest::setStartOfCreatedTimeRange(const std::string& startOfCreatedTimeRange) -{ - startOfCreatedTimeRange_ = startOfCreatedTimeRange; - setParameter("StartOfCreatedTimeRange", startOfCreatedTimeRange); +std::string ListFpShotNotaryRequest::getStartOfCreatedTimeRange() const { + return startOfCreatedTimeRange_; } -std::string ListFpShotNotaryRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListFpShotNotaryRequest::setStartOfCreatedTimeRange(const std::string &startOfCreatedTimeRange) { + startOfCreatedTimeRange_ = startOfCreatedTimeRange; + setParameter(std::string("StartOfCreatedTimeRange"), startOfCreatedTimeRange); } -void ListFpShotNotaryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListFpShotNotaryRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListFpShotNotaryRequest::getEndOfCreatedTimeRange()const -{ - return endOfCreatedTimeRange_; +void ListFpShotNotaryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListFpShotNotaryRequest::setEndOfCreatedTimeRange(const std::string& endOfCreatedTimeRange) -{ - endOfCreatedTimeRange_ = endOfCreatedTimeRange; - setParameter("EndOfCreatedTimeRange", endOfCreatedTimeRange); +std::string ListFpShotNotaryRequest::getEndOfCreatedTimeRange() const { + return endOfCreatedTimeRange_; } -std::string ListFpShotNotaryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListFpShotNotaryRequest::setEndOfCreatedTimeRange(const std::string &endOfCreatedTimeRange) { + endOfCreatedTimeRange_ = endOfCreatedTimeRange; + setParameter(std::string("EndOfCreatedTimeRange"), endOfCreatedTimeRange); } -void ListFpShotNotaryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListFpShotNotaryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListFpShotNotaryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListFpShotNotaryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListFpShotNotaryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListFpShotNotaryRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListFpShotNotaryRequest::getMaximumPageSize()const -{ - return maximumPageSize_; +void ListFpShotNotaryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListFpShotNotaryRequest::setMaximumPageSize(long maximumPageSize) -{ - maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); +long ListFpShotNotaryRequest::getMaximumPageSize() const { + return maximumPageSize_; } -long ListFpShotNotaryRequest::getOwnerId()const -{ - return ownerId_; +void ListFpShotNotaryRequest::setMaximumPageSize(long maximumPageSize) { + maximumPageSize_ = maximumPageSize; + setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize)); } -void ListFpShotNotaryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListFpShotNotaryRequest::getOwnerId() const { + return ownerId_; +} + +void ListFpShotNotaryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ListFpShotNotaryResult.cc b/mts/src/model/ListFpShotNotaryResult.cc index 805c7e565..de90f88bc 100644 --- a/mts/src/model/ListFpShotNotaryResult.cc +++ b/mts/src/model/ListFpShotNotaryResult.cc @@ -43,20 +43,20 @@ void ListFpShotNotaryResult::parse(const std::string &payload) for (auto valueFpShotNotaryListFpShotNotary : allFpShotNotaryListNode) { FpShotNotary fpShotNotaryListObject; - if(!valueFpShotNotaryListFpShotNotary["TransactionId"].isNull()) - fpShotNotaryListObject.transactionId = valueFpShotNotaryListFpShotNotary["TransactionId"].asString(); - if(!valueFpShotNotaryListFpShotNotary["TxHash"].isNull()) - fpShotNotaryListObject.txHash = valueFpShotNotaryListFpShotNotary["TxHash"].asString(); - if(!valueFpShotNotaryListFpShotNotary["FpDBId"].isNull()) - fpShotNotaryListObject.fpDBId = valueFpShotNotaryListFpShotNotary["FpDBId"].asString(); - if(!valueFpShotNotaryListFpShotNotary["JobId"].isNull()) - fpShotNotaryListObject.jobId = valueFpShotNotaryListFpShotNotary["JobId"].asString(); - if(!valueFpShotNotaryListFpShotNotary["Detail"].isNull()) - fpShotNotaryListObject.detail = valueFpShotNotaryListFpShotNotary["Detail"].asString(); if(!valueFpShotNotaryListFpShotNotary["CreationTime"].isNull()) fpShotNotaryListObject.creationTime = valueFpShotNotaryListFpShotNotary["CreationTime"].asString(); if(!valueFpShotNotaryListFpShotNotary["FinishTime"].isNull()) fpShotNotaryListObject.finishTime = valueFpShotNotaryListFpShotNotary["FinishTime"].asString(); + if(!valueFpShotNotaryListFpShotNotary["JobId"].isNull()) + fpShotNotaryListObject.jobId = valueFpShotNotaryListFpShotNotary["JobId"].asString(); + if(!valueFpShotNotaryListFpShotNotary["TxHash"].isNull()) + fpShotNotaryListObject.txHash = valueFpShotNotaryListFpShotNotary["TxHash"].asString(); + if(!valueFpShotNotaryListFpShotNotary["TransactionId"].isNull()) + fpShotNotaryListObject.transactionId = valueFpShotNotaryListFpShotNotary["TransactionId"].asString(); + if(!valueFpShotNotaryListFpShotNotary["FpDBId"].isNull()) + fpShotNotaryListObject.fpDBId = valueFpShotNotaryListFpShotNotary["FpDBId"].asString(); + if(!valueFpShotNotaryListFpShotNotary["Detail"].isNull()) + fpShotNotaryListObject.detail = valueFpShotNotaryListFpShotNotary["Detail"].asString(); fpShotNotaryList_.push_back(fpShotNotaryListObject); } if(!value["NextPageToken"].isNull()) diff --git a/mts/src/model/ListInferenceJobRequest.cc b/mts/src/model/ListInferenceJobRequest.cc new file mode 100644 index 000000000..b1bf5f76a --- /dev/null +++ b/mts/src/model/ListInferenceJobRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Mts::Model::ListInferenceJobRequest; + +ListInferenceJobRequest::ListInferenceJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListInferenceJob") { + setMethod(HttpRequest::Method::Post); +} + +ListInferenceJobRequest::~ListInferenceJobRequest() {} + +long ListInferenceJobRequest::getMaxPageSize() const { + return maxPageSize_; +} + +void ListInferenceJobRequest::setMaxPageSize(long maxPageSize) { + maxPageSize_ = maxPageSize; + setParameter(std::string("MaxPageSize"), std::to_string(maxPageSize)); +} + +long ListInferenceJobRequest::getPageNumber() const { + return pageNumber_; +} + +void ListInferenceJobRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string ListInferenceJobRequest::getServerName() const { + return serverName_; +} + +void ListInferenceJobRequest::setServerName(const std::string &serverName) { + serverName_ = serverName; + setParameter(std::string("ServerName"), serverName); +} + diff --git a/mts/src/model/ListInferenceJobResult.cc b/mts/src/model/ListInferenceJobResult.cc new file mode 100644 index 000000000..4a587bfae --- /dev/null +++ b/mts/src/model/ListInferenceJobResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +ListInferenceJobResult::ListInferenceJobResult() : + ServiceResult() +{} + +ListInferenceJobResult::ListInferenceJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListInferenceJobResult::~ListInferenceJobResult() +{} + +void ListInferenceJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allJobsNode = value["Jobs"]["JobsItem"]; + for (auto valueJobsJobsItem : allJobsNode) + { + JobsItem jobsObject; + if(!valueJobsJobsItem["Status"].isNull()) + jobsObject.status = valueJobsJobsItem["Status"].asString(); + if(!valueJobsJobsItem["Result"].isNull()) + jobsObject.result = valueJobsJobsItem["Result"].asString(); + if(!valueJobsJobsItem["JobId"].isNull()) + jobsObject.jobId = valueJobsJobsItem["JobId"].asString(); + if(!valueJobsJobsItem["UserId"].isNull()) + jobsObject.userId = std::stol(valueJobsJobsItem["UserId"].asString()); + if(!valueJobsJobsItem["Message"].isNull()) + jobsObject.message = valueJobsJobsItem["Message"].asString(); + if(!valueJobsJobsItem["JobTime"].isNull()) + jobsObject.jobTime = std::stol(valueJobsJobsItem["JobTime"].asString()); + if(!valueJobsJobsItem["JobParams"].isNull()) + jobsObject.jobParams = valueJobsJobsItem["JobParams"].asString(); + jobs_.push_back(jobsObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["TotalSize"].isNull()) + totalSize_ = std::stol(value["TotalSize"].asString()); + +} + +std::string ListInferenceJobResult::getMessage()const +{ + return message_; +} + +std::vector ListInferenceJobResult::getJobs()const +{ + return jobs_; +} + +long ListInferenceJobResult::getTotalSize()const +{ + return totalSize_; +} + +std::string ListInferenceJobResult::getCode()const +{ + return code_; +} + diff --git a/mts/src/model/ListJobRequest.cc b/mts/src/model/ListJobRequest.cc index 175766176..4fbc8f119 100644 --- a/mts/src/model/ListJobRequest.cc +++ b/mts/src/model/ListJobRequest.cc @@ -1,150 +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::Mts::Model::ListJobRequest; - -ListJobRequest::ListJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListJob") -{ - setMethod(HttpRequest::Method::Post); -} - -ListJobRequest::~ListJobRequest() -{} - -long ListJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListJobRequest; + +ListJobRequest::ListJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListJob") { + setMethod(HttpRequest::Method::Post); } -void ListJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListJobRequest::~ListJobRequest() {} + +long ListJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListJobRequest::getNextPageToken()const -{ - return nextPageToken_; +void ListJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListJobRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); +std::string ListJobRequest::getNextPageToken() const { + return nextPageToken_; } -std::string ListJobRequest::getStartOfJobCreatedTimeRange()const -{ - return startOfJobCreatedTimeRange_; +void ListJobRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); } -void ListJobRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) -{ - startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; - setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); +std::string ListJobRequest::getStartOfJobCreatedTimeRange() const { + return startOfJobCreatedTimeRange_; } -std::string ListJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListJobRequest::setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange) { + startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; + setParameter(std::string("StartOfJobCreatedTimeRange"), startOfJobCreatedTimeRange); } -void ListJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListJobRequest::getState()const -{ - return state_; +void ListJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListJobRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string ListJobRequest::getState() const { + return state_; } -std::string ListJobRequest::getEndOfJobCreatedTimeRange()const -{ - return endOfJobCreatedTimeRange_; +void ListJobRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void ListJobRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) -{ - endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; - setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); +std::string ListJobRequest::getEndOfJobCreatedTimeRange() const { + return endOfJobCreatedTimeRange_; } -std::string ListJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListJobRequest::setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange) { + endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; + setParameter(std::string("EndOfJobCreatedTimeRange"), endOfJobCreatedTimeRange); } -void ListJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListJobRequest::getMaximumPageSize()const -{ - return maximumPageSize_; +void ListJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListJobRequest::setMaximumPageSize(long maximumPageSize) -{ - maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); +long ListJobRequest::getMaximumPageSize() const { + return maximumPageSize_; } -long ListJobRequest::getOwnerId()const -{ - return ownerId_; +void ListJobRequest::setMaximumPageSize(long maximumPageSize) { + maximumPageSize_ = maximumPageSize; + setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize)); } -void ListJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListJobRequest::getOwnerId() const { + return ownerId_; } -std::string ListJobRequest::getPipelineId()const -{ - return pipelineId_; +void ListJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string ListJobRequest::getPipelineId() const { + return pipelineId_; +} + +void ListJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } diff --git a/mts/src/model/ListJobResult.cc b/mts/src/model/ListJobResult.cc index 7748c285f..9e89a8f05 100644 --- a/mts/src/model/ListJobResult.cc +++ b/mts/src/model/ListJobResult.cc @@ -43,89 +43,103 @@ void ListJobResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["JobId"].isNull()) - jobListObject.jobId = valueJobListJob["JobId"].asString(); + if(!valueJobListJob["CreationTime"].isNull()) + jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); + if(!valueJobListJob["Percent"].isNull()) + jobListObject.percent = std::stol(valueJobListJob["Percent"].asString()); + if(!valueJobListJob["FinishTime"].isNull()) + jobListObject.finishTime = valueJobListJob["FinishTime"].asString(); if(!valueJobListJob["State"].isNull()) jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["JobId"].isNull()) + jobListObject.jobId = valueJobListJob["JobId"].asString(); if(!valueJobListJob["Code"].isNull()) jobListObject.code = valueJobListJob["Code"].asString(); if(!valueJobListJob["Message"].isNull()) jobListObject.message = valueJobListJob["Message"].asString(); - if(!valueJobListJob["Percent"].isNull()) - jobListObject.percent = std::stol(valueJobListJob["Percent"].asString()); if(!valueJobListJob["PipelineId"].isNull()) jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); - if(!valueJobListJob["CreationTime"].isNull()) - jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); - if(!valueJobListJob["FinishTime"].isNull()) - jobListObject.finishTime = valueJobListJob["FinishTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - jobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - jobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - jobListObject.input.object = inputNode["Object"].asString(); auto outputNode = value["Output"]; - if(!outputNode["TemplateId"].isNull()) - jobListObject.output.templateId = outputNode["TemplateId"].asString(); - if(!outputNode["UserData"].isNull()) - jobListObject.output.userData = outputNode["UserData"].asString(); - if(!outputNode["Rotate"].isNull()) - jobListObject.output.rotate = outputNode["Rotate"].asString(); - if(!outputNode["VideoStreamMap"].isNull()) - jobListObject.output.videoStreamMap = outputNode["VideoStreamMap"].asString(); - if(!outputNode["AudioStreamMap"].isNull()) - jobListObject.output.audioStreamMap = outputNode["AudioStreamMap"].asString(); + if(!outputNode["WaterMarkConfigUrl"].isNull()) + jobListObject.output.waterMarkConfigUrl = outputNode["WaterMarkConfigUrl"].asString(); if(!outputNode["DeWatermark"].isNull()) jobListObject.output.deWatermark = outputNode["DeWatermark"].asString(); if(!outputNode["Priority"].isNull()) jobListObject.output.priority = outputNode["Priority"].asString(); - if(!outputNode["WaterMarkConfigUrl"].isNull()) - jobListObject.output.waterMarkConfigUrl = outputNode["WaterMarkConfigUrl"].asString(); + if(!outputNode["AudioStreamMap"].isNull()) + jobListObject.output.audioStreamMap = outputNode["AudioStreamMap"].asString(); + if(!outputNode["UserData"].isNull()) + jobListObject.output.userData = outputNode["UserData"].asString(); + if(!outputNode["VideoStreamMap"].isNull()) + jobListObject.output.videoStreamMap = outputNode["VideoStreamMap"].asString(); + if(!outputNode["Rotate"].isNull()) + jobListObject.output.rotate = outputNode["Rotate"].asString(); if(!outputNode["MergeConfigUrl"].isNull()) jobListObject.output.mergeConfigUrl = outputNode["MergeConfigUrl"].asString(); + if(!outputNode["TemplateId"].isNull()) + jobListObject.output.templateId = outputNode["TemplateId"].asString(); auto allWaterMarkListNode = outputNode["WaterMarkList"]["WaterMark"]; for (auto outputNodeWaterMarkListWaterMark : allWaterMarkListNode) { Job::Output::WaterMark waterMarkObject; - if(!outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) - waterMarkObject.waterMarkTemplateId = outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); + if(!outputNodeWaterMarkListWaterMark["Type"].isNull()) + waterMarkObject.type = outputNodeWaterMarkListWaterMark["Type"].asString(); + if(!outputNodeWaterMarkListWaterMark["ReferPos"].isNull()) + waterMarkObject.referPos = outputNodeWaterMarkListWaterMark["ReferPos"].asString(); + if(!outputNodeWaterMarkListWaterMark["Dx"].isNull()) + waterMarkObject.dx = outputNodeWaterMarkListWaterMark["Dx"].asString(); if(!outputNodeWaterMarkListWaterMark["Width"].isNull()) waterMarkObject.width = outputNodeWaterMarkListWaterMark["Width"].asString(); if(!outputNodeWaterMarkListWaterMark["Height"].isNull()) waterMarkObject.height = outputNodeWaterMarkListWaterMark["Height"].asString(); - if(!outputNodeWaterMarkListWaterMark["Dx"].isNull()) - waterMarkObject.dx = outputNodeWaterMarkListWaterMark["Dx"].asString(); + if(!outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) + waterMarkObject.waterMarkTemplateId = outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); if(!outputNodeWaterMarkListWaterMark["Dy"].isNull()) waterMarkObject.dy = outputNodeWaterMarkListWaterMark["Dy"].asString(); - if(!outputNodeWaterMarkListWaterMark["ReferPos"].isNull()) - waterMarkObject.referPos = outputNodeWaterMarkListWaterMark["ReferPos"].asString(); - if(!outputNodeWaterMarkListWaterMark["Type"].isNull()) - waterMarkObject.type = outputNodeWaterMarkListWaterMark["Type"].asString(); auto inputFileNode = value["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - waterMarkObject.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - waterMarkObject.inputFile.location = inputFileNode["Location"].asString(); if(!inputFileNode["Object"].isNull()) waterMarkObject.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + waterMarkObject.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + waterMarkObject.inputFile.bucket = inputFileNode["Bucket"].asString(); jobListObject.output.waterMarkList.push_back(waterMarkObject); } auto allMergeListNode = outputNode["MergeList"]["Merge"]; for (auto outputNodeMergeListMerge : allMergeListNode) { Job::Output::Merge mergeObject; - if(!outputNodeMergeListMerge["MergeURL"].isNull()) - mergeObject.mergeURL = outputNodeMergeListMerge["MergeURL"].asString(); if(!outputNodeMergeListMerge["Start"].isNull()) mergeObject.start = outputNodeMergeListMerge["Start"].asString(); - if(!outputNodeMergeListMerge["Duration"].isNull()) - mergeObject.duration = outputNodeMergeListMerge["Duration"].asString(); if(!outputNodeMergeListMerge["RoleArn"].isNull()) mergeObject.roleArn = outputNodeMergeListMerge["RoleArn"].asString(); + if(!outputNodeMergeListMerge["MergeURL"].isNull()) + mergeObject.mergeURL = outputNodeMergeListMerge["MergeURL"].asString(); + if(!outputNodeMergeListMerge["Duration"].isNull()) + mergeObject.duration = outputNodeMergeListMerge["Duration"].asString(); jobListObject.output.mergeList.push_back(mergeObject); } + auto allOutSubtitleListNode = outputNode["OutSubtitleList"]["OutSubtitle"]; + for (auto outputNodeOutSubtitleListOutSubtitle : allOutSubtitleListNode) + { + Job::Output::OutSubtitle outSubtitleObject; + if(!outputNodeOutSubtitleListOutSubtitle["Map"].isNull()) + outSubtitleObject.map = outputNodeOutSubtitleListOutSubtitle["Map"].asString(); + if(!outputNodeOutSubtitleListOutSubtitle["Success"].isNull()) + outSubtitleObject.success = outputNodeOutSubtitleListOutSubtitle["Success"].asString() == "true"; + if(!outputNodeOutSubtitleListOutSubtitle["Message"].isNull()) + outSubtitleObject.message = outputNodeOutSubtitleListOutSubtitle["Message"].asString(); + auto outSubtitleFileNode = value["OutSubtitleFile"]; + if(!outSubtitleFileNode["RoleArn"].isNull()) + outSubtitleObject.outSubtitleFile.roleArn = outSubtitleFileNode["RoleArn"].asString(); + if(!outSubtitleFileNode["Object"].isNull()) + outSubtitleObject.outSubtitleFile.object = outSubtitleFileNode["Object"].asString(); + if(!outSubtitleFileNode["Location"].isNull()) + outSubtitleObject.outSubtitleFile.location = outSubtitleFileNode["Location"].asString(); + if(!outSubtitleFileNode["Bucket"].isNull()) + outSubtitleObject.outSubtitleFile.bucket = outSubtitleFileNode["Bucket"].asString(); + jobListObject.output.outSubtitleList.push_back(outSubtitleObject); + } auto allOpeningListNode = outputNode["OpeningList"]["Opening"]; for (auto outputNodeOpeningListOpening : allOpeningListNode) { @@ -144,73 +158,198 @@ void ListJobResult::parse(const std::string &payload) for (auto outputNodeTailSlateListTailSlate : allTailSlateListNode) { Job::Output::TailSlate tailSlateObject; - if(!outputNodeTailSlateListTailSlate["TailUrl"].isNull()) - tailSlateObject.tailUrl = outputNodeTailSlateListTailSlate["TailUrl"].asString(); if(!outputNodeTailSlateListTailSlate["Start"].isNull()) tailSlateObject.start = outputNodeTailSlateListTailSlate["Start"].asString(); - if(!outputNodeTailSlateListTailSlate["BlendDuration"].isNull()) - tailSlateObject.blendDuration = outputNodeTailSlateListTailSlate["BlendDuration"].asString(); + if(!outputNodeTailSlateListTailSlate["BgColor"].isNull()) + tailSlateObject.bgColor = outputNodeTailSlateListTailSlate["BgColor"].asString(); + if(!outputNodeTailSlateListTailSlate["IsMergeAudio"].isNull()) + tailSlateObject.isMergeAudio = outputNodeTailSlateListTailSlate["IsMergeAudio"].asString() == "true"; if(!outputNodeTailSlateListTailSlate["Width"].isNull()) tailSlateObject.width = outputNodeTailSlateListTailSlate["Width"].asString(); if(!outputNodeTailSlateListTailSlate["Height"].isNull()) tailSlateObject.height = outputNodeTailSlateListTailSlate["Height"].asString(); - if(!outputNodeTailSlateListTailSlate["IsMergeAudio"].isNull()) - tailSlateObject.isMergeAudio = outputNodeTailSlateListTailSlate["IsMergeAudio"].asString() == "true"; - if(!outputNodeTailSlateListTailSlate["BgColor"].isNull()) - tailSlateObject.bgColor = outputNodeTailSlateListTailSlate["BgColor"].asString(); + if(!outputNodeTailSlateListTailSlate["BlendDuration"].isNull()) + tailSlateObject.blendDuration = outputNodeTailSlateListTailSlate["BlendDuration"].asString(); + if(!outputNodeTailSlateListTailSlate["TailUrl"].isNull()) + tailSlateObject.tailUrl = outputNodeTailSlateListTailSlate["TailUrl"].asString(); jobListObject.output.tailSlateList.push_back(tailSlateObject); } - auto allOutSubtitleListNode = outputNode["OutSubtitleList"]["OutSubtitle"]; - for (auto outputNodeOutSubtitleListOutSubtitle : allOutSubtitleListNode) - { - Job::Output::OutSubtitle outSubtitleObject; - if(!outputNodeOutSubtitleListOutSubtitle["Map"].isNull()) - outSubtitleObject.map = outputNodeOutSubtitleListOutSubtitle["Map"].asString(); - if(!outputNodeOutSubtitleListOutSubtitle["Success"].isNull()) - outSubtitleObject.success = outputNodeOutSubtitleListOutSubtitle["Success"].asString() == "true"; - if(!outputNodeOutSubtitleListOutSubtitle["Message"].isNull()) - outSubtitleObject.message = outputNodeOutSubtitleListOutSubtitle["Message"].asString(); - auto outSubtitleFileNode = value["OutSubtitleFile"]; - if(!outSubtitleFileNode["Bucket"].isNull()) - outSubtitleObject.outSubtitleFile.bucket = outSubtitleFileNode["Bucket"].asString(); - if(!outSubtitleFileNode["Location"].isNull()) - outSubtitleObject.outSubtitleFile.location = outSubtitleFileNode["Location"].asString(); - if(!outSubtitleFileNode["Object"].isNull()) - outSubtitleObject.outSubtitleFile.object = outSubtitleFileNode["Object"].asString(); - if(!outSubtitleFileNode["RoleArn"].isNull()) - outSubtitleObject.outSubtitleFile.roleArn = outSubtitleFileNode["RoleArn"].asString(); - jobListObject.output.outSubtitleList.push_back(outSubtitleObject); - } - auto outputFileNode = outputNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - jobListObject.output.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - jobListObject.output.outputFile.location = outputFileNode["Location"].asString(); - if(!outputFileNode["Object"].isNull()) - jobListObject.output.outputFile.object = outputFileNode["Object"].asString(); - if(!outputFileNode["RoleArn"].isNull()) - jobListObject.output.outputFile.roleArn = outputFileNode["RoleArn"].asString(); + auto videoNode = outputNode["Video"]; + if(!videoNode["Bufsize"].isNull()) + jobListObject.output.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["Degrain"].isNull()) + jobListObject.output.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + jobListObject.output.video.pixFmt = videoNode["PixFmt"].asString(); + if(!videoNode["Pad"].isNull()) + jobListObject.output.video.pad = videoNode["Pad"].asString(); + if(!videoNode["Codec"].isNull()) + jobListObject.output.video.codec = videoNode["Codec"].asString(); + if(!videoNode["Height"].isNull()) + jobListObject.output.video.height = videoNode["Height"].asString(); + if(!videoNode["Qscale"].isNull()) + jobListObject.output.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Crop"].isNull()) + jobListObject.output.video.crop = videoNode["Crop"].asString(); + if(!videoNode["Bitrate"].isNull()) + jobListObject.output.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + jobListObject.output.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["MaxFps"].isNull()) + jobListObject.output.video.maxFps = videoNode["MaxFps"].asString(); + if(!videoNode["Profile"].isNull()) + jobListObject.output.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + jobListObject.output.video.crf = videoNode["Crf"].asString(); + if(!videoNode["Gop"].isNull()) + jobListObject.output.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + jobListObject.output.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + jobListObject.output.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Preset"].isNull()) + jobListObject.output.video.preset = videoNode["Preset"].asString(); + if(!videoNode["ScanMode"].isNull()) + jobListObject.output.video.scanMode = videoNode["ScanMode"].asString(); + if(!videoNode["ResoPriority"].isNull()) + jobListObject.output.video.resoPriority = videoNode["ResoPriority"].asString(); + auto bitrateBndNode = videoNode["BitrateBnd"]; + if(!bitrateBndNode["Max"].isNull()) + jobListObject.output.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); + if(!bitrateBndNode["Min"].isNull()) + jobListObject.output.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); + auto transConfigNode = outputNode["TransConfig"]; + if(!transConfigNode["IsCheckAudioBitrate"].isNull()) + jobListObject.output.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); + if(!transConfigNode["TransMode"].isNull()) + jobListObject.output.transConfig.transMode = transConfigNode["TransMode"].asString(); + if(!transConfigNode["IsCheckReso"].isNull()) + jobListObject.output.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); + if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) + jobListObject.output.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); + if(!transConfigNode["AdjDarMethod"].isNull()) + jobListObject.output.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); + if(!transConfigNode["IsCheckVideoBitrate"].isNull()) + jobListObject.output.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); + if(!transConfigNode["IsCheckResoFail"].isNull()) + jobListObject.output.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); + if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) + jobListObject.output.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); + auto encryptionNode = outputNode["Encryption"]; + if(!encryptionNode["Type"].isNull()) + jobListObject.output.encryption.type = encryptionNode["Type"].asString(); + if(!encryptionNode["Key"].isNull()) + jobListObject.output.encryption.key = encryptionNode["Key"].asString(); + if(!encryptionNode["KeyType"].isNull()) + jobListObject.output.encryption.keyType = encryptionNode["KeyType"].asString(); + if(!encryptionNode["Id"].isNull()) + jobListObject.output.encryption.id = encryptionNode["Id"].asString(); + if(!encryptionNode["KeyUri"].isNull()) + jobListObject.output.encryption.keyUri = encryptionNode["KeyUri"].asString(); + if(!encryptionNode["SkipCnt"].isNull()) + jobListObject.output.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); auto m3U8NonStandardSupportNode = outputNode["M3U8NonStandardSupport"]; auto tSNode = m3U8NonStandardSupportNode["TS"]; - if(!tSNode["Md5Support"].isNull()) - jobListObject.output.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; if(!tSNode["SizeSupport"].isNull()) jobListObject.output.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!tSNode["Md5Support"].isNull()) + jobListObject.output.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; + auto audioNode = outputNode["Audio"]; + if(!audioNode["Profile"].isNull()) + jobListObject.output.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Codec"].isNull()) + jobListObject.output.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + jobListObject.output.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + jobListObject.output.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + jobListObject.output.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + jobListObject.output.audio.bitrate = audioNode["Bitrate"].asString(); + auto volumeNode = audioNode["Volume"]; + if(!volumeNode["Method"].isNull()) + jobListObject.output.audio.volume.method = volumeNode["Method"].asString(); + if(!volumeNode["Level"].isNull()) + jobListObject.output.audio.volume.level = volumeNode["Level"].asString(); + auto superResoNode = outputNode["SuperReso"]; + if(!superResoNode["IsHalfSample"].isNull()) + jobListObject.output.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); + auto outputFileNode = outputNode["OutputFile"]; + if(!outputFileNode["RoleArn"].isNull()) + jobListObject.output.outputFile.roleArn = outputFileNode["RoleArn"].asString(); + if(!outputFileNode["Object"].isNull()) + jobListObject.output.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + jobListObject.output.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + jobListObject.output.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto containerNode = outputNode["Container"]; + if(!containerNode["Format"].isNull()) + jobListObject.output.container.format = containerNode["Format"].asString(); + auto clipNode = outputNode["Clip"]; + auto timeSpanNode = clipNode["TimeSpan"]; + if(!timeSpanNode["Seek"].isNull()) + jobListObject.output.clip.timeSpan.seek = timeSpanNode["Seek"].asString(); + if(!timeSpanNode["Duration"].isNull()) + jobListObject.output.clip.timeSpan.duration = timeSpanNode["Duration"].asString(); + auto muxConfigNode = outputNode["MuxConfig"]; + auto webpNode = muxConfigNode["Webp"]; + if(!webpNode["Loop"].isNull()) + jobListObject.output.muxConfig.webp.loop = webpNode["Loop"].asString(); + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + jobListObject.output.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["DitherMode"].isNull()) + jobListObject.output.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + if(!gifNode["Loop"].isNull()) + jobListObject.output.muxConfig.gif.loop = gifNode["Loop"].asString(); + if(!gifNode["IsCustomPalette"].isNull()) + jobListObject.output.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); + auto segmentNode = muxConfigNode["Segment"]; + if(!segmentNode["Duration"].isNull()) + jobListObject.output.muxConfig.segment.duration = segmentNode["Duration"].asString(); + auto subtitleConfigNode = outputNode["SubtitleConfig"]; + auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; + for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) + { + Job::Output::SubtitleConfig::ExtSubtitle extSubtitleObject; + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) + extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) + extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); + auto input1Node = value["Input"]; + if(!input1Node["Object"].isNull()) + extSubtitleObject.input1.object = input1Node["Object"].asString(); + if(!input1Node["Location"].isNull()) + extSubtitleObject.input1.location = input1Node["Location"].asString(); + if(!input1Node["Bucket"].isNull()) + extSubtitleObject.input1.bucket = input1Node["Bucket"].asString(); + jobListObject.output.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); + } + auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; + for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) + { + Job::Output::SubtitleConfig::Subtitle subtitleObject; + if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) + subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); + jobListObject.output.subtitleConfig.subtitleList.push_back(subtitleObject); + } auto propertiesNode = outputNode["Properties"]; if(!propertiesNode["Width"].isNull()) jobListObject.output.properties.width = propertiesNode["Width"].asString(); if(!propertiesNode["Height"].isNull()) jobListObject.output.properties.height = propertiesNode["Height"].asString(); - if(!propertiesNode["Bitrate"].isNull()) - jobListObject.output.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["Duration"].isNull()) jobListObject.output.properties.duration = propertiesNode["Duration"].asString(); if(!propertiesNode["Fps"].isNull()) jobListObject.output.properties.fps = propertiesNode["Fps"].asString(); - if(!propertiesNode["FileSize"].isNull()) - jobListObject.output.properties.fileSize = propertiesNode["FileSize"].asString(); + if(!propertiesNode["Bitrate"].isNull()) + jobListObject.output.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["FileFormat"].isNull()) jobListObject.output.properties.fileFormat = propertiesNode["FileFormat"].asString(); + if(!propertiesNode["FileSize"].isNull()) + jobListObject.output.properties.fileSize = propertiesNode["FileSize"].asString(); auto streamsNode = propertiesNode["Streams"]; auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) @@ -218,93 +357,93 @@ void ListJobResult::parse(const std::string &payload) Job::Output::Properties::Streams::VideoStream videoStreamObject; if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) - videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) + videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); auto networkCostNode = value["NetworkCost"]; if(!networkCostNode["PreloadTime"].isNull()) videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); if(!networkCostNode["AvgBitrate"].isNull()) videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); jobListObject.output.properties.streams.videoStreamList.push_back(videoStreamObject); } auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) { Job::Output::Properties::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); jobListObject.output.properties.streams.audioStreamList.push_back(audioStreamObject); } auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; @@ -318,168 +457,29 @@ void ListJobResult::parse(const std::string &payload) jobListObject.output.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); } auto formatNode = propertiesNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - jobListObject.output.properties.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - jobListObject.output.properties.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - jobListObject.output.properties.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - jobListObject.output.properties.format.formatLongName = formatNode["FormatLongName"].asString(); if(!formatNode["StartTime"].isNull()) jobListObject.output.properties.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - jobListObject.output.properties.format.duration = formatNode["Duration"].asString(); + if(!formatNode["NumPrograms"].isNull()) + jobListObject.output.properties.format.numPrograms = formatNode["NumPrograms"].asString(); if(!formatNode["Size"].isNull()) jobListObject.output.properties.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + jobListObject.output.properties.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + jobListObject.output.properties.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + jobListObject.output.properties.format.duration = formatNode["Duration"].asString(); if(!formatNode["Bitrate"].isNull()) jobListObject.output.properties.format.bitrate = formatNode["Bitrate"].asString(); - auto clipNode = outputNode["Clip"]; - auto timeSpanNode = clipNode["TimeSpan"]; - if(!timeSpanNode["Seek"].isNull()) - jobListObject.output.clip.timeSpan.seek = timeSpanNode["Seek"].asString(); - if(!timeSpanNode["Duration"].isNull()) - jobListObject.output.clip.timeSpan.duration = timeSpanNode["Duration"].asString(); - auto superResoNode = outputNode["SuperReso"]; - if(!superResoNode["IsHalfSample"].isNull()) - jobListObject.output.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); - auto subtitleConfigNode = outputNode["SubtitleConfig"]; - auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; - for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) - { - Job::Output::SubtitleConfig::Subtitle subtitleObject; - if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) - subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); - jobListObject.output.subtitleConfig.subtitleList.push_back(subtitleObject); - } - auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; - for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) - { - Job::Output::SubtitleConfig::ExtSubtitle extSubtitleObject; - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) - extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) - extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); - auto input1Node = value["Input"]; - if(!input1Node["Bucket"].isNull()) - extSubtitleObject.input1.bucket = input1Node["Bucket"].asString(); - if(!input1Node["Location"].isNull()) - extSubtitleObject.input1.location = input1Node["Location"].asString(); - if(!input1Node["Object"].isNull()) - extSubtitleObject.input1.object = input1Node["Object"].asString(); - jobListObject.output.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); - } - auto transConfigNode = outputNode["TransConfig"]; - if(!transConfigNode["TransMode"].isNull()) - jobListObject.output.transConfig.transMode = transConfigNode["TransMode"].asString(); - if(!transConfigNode["IsCheckReso"].isNull()) - jobListObject.output.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); - if(!transConfigNode["IsCheckResoFail"].isNull()) - jobListObject.output.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); - if(!transConfigNode["IsCheckVideoBitrate"].isNull()) - jobListObject.output.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); - if(!transConfigNode["IsCheckAudioBitrate"].isNull()) - jobListObject.output.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); - if(!transConfigNode["AdjDarMethod"].isNull()) - jobListObject.output.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); - if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) - jobListObject.output.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); - if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) - jobListObject.output.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); - auto muxConfigNode = outputNode["MuxConfig"]; - auto segmentNode = muxConfigNode["Segment"]; - if(!segmentNode["Duration"].isNull()) - jobListObject.output.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - jobListObject.output.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - jobListObject.output.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); - if(!gifNode["IsCustomPalette"].isNull()) - jobListObject.output.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); - if(!gifNode["DitherMode"].isNull()) - jobListObject.output.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); - auto webpNode = muxConfigNode["Webp"]; - if(!webpNode["Loop"].isNull()) - jobListObject.output.muxConfig.webp.loop = webpNode["Loop"].asString(); - auto audioNode = outputNode["Audio"]; - if(!audioNode["Codec"].isNull()) - jobListObject.output.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - jobListObject.output.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - jobListObject.output.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - jobListObject.output.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - jobListObject.output.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - jobListObject.output.audio.qscale = audioNode["Qscale"].asString(); - auto volumeNode = audioNode["Volume"]; - if(!volumeNode["Level"].isNull()) - jobListObject.output.audio.volume.level = volumeNode["Level"].asString(); - if(!volumeNode["Method"].isNull()) - jobListObject.output.audio.volume.method = volumeNode["Method"].asString(); - auto videoNode = outputNode["Video"]; - if(!videoNode["Codec"].isNull()) - jobListObject.output.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - jobListObject.output.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - jobListObject.output.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - jobListObject.output.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - jobListObject.output.video.width = videoNode["Width"].asString(); - if(!videoNode["Height"].isNull()) - jobListObject.output.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - jobListObject.output.video.fps = videoNode["Fps"].asString(); - if(!videoNode["Gop"].isNull()) - jobListObject.output.video.gop = videoNode["Gop"].asString(); - if(!videoNode["Preset"].isNull()) - jobListObject.output.video.preset = videoNode["Preset"].asString(); - if(!videoNode["ScanMode"].isNull()) - jobListObject.output.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - jobListObject.output.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - jobListObject.output.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - jobListObject.output.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - jobListObject.output.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - jobListObject.output.video.qscale = videoNode["Qscale"].asString(); - if(!videoNode["Crop"].isNull()) - jobListObject.output.video.crop = videoNode["Crop"].asString(); - if(!videoNode["Pad"].isNull()) - jobListObject.output.video.pad = videoNode["Pad"].asString(); - if(!videoNode["MaxFps"].isNull()) - jobListObject.output.video.maxFps = videoNode["MaxFps"].asString(); - if(!videoNode["ResoPriority"].isNull()) - jobListObject.output.video.resoPriority = videoNode["ResoPriority"].asString(); - auto bitrateBndNode = videoNode["BitrateBnd"]; - if(!bitrateBndNode["Max"].isNull()) - jobListObject.output.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); - if(!bitrateBndNode["Min"].isNull()) - jobListObject.output.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto containerNode = outputNode["Container"]; - if(!containerNode["Format"].isNull()) - jobListObject.output.container.format = containerNode["Format"].asString(); - auto encryptionNode = outputNode["Encryption"]; - if(!encryptionNode["Type"].isNull()) - jobListObject.output.encryption.type = encryptionNode["Type"].asString(); - if(!encryptionNode["Id"].isNull()) - jobListObject.output.encryption.id = encryptionNode["Id"].asString(); - if(!encryptionNode["Key"].isNull()) - jobListObject.output.encryption.key = encryptionNode["Key"].asString(); - if(!encryptionNode["KeyUri"].isNull()) - jobListObject.output.encryption.keyUri = encryptionNode["KeyUri"].asString(); - if(!encryptionNode["KeyType"].isNull()) - jobListObject.output.encryption.keyType = encryptionNode["KeyType"].asString(); - if(!encryptionNode["SkipCnt"].isNull()) - jobListObject.output.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); + if(!formatNode["FormatName"].isNull()) + jobListObject.output.properties.format.formatName = formatNode["FormatName"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + jobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + jobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + jobListObject.input.bucket = inputNode["Bucket"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) jobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); diff --git a/mts/src/model/ListMediaRequest.cc b/mts/src/model/ListMediaRequest.cc index 4e0cc1400..3f8be8d16 100644 --- a/mts/src/model/ListMediaRequest.cc +++ b/mts/src/model/ListMediaRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::ListMediaRequest; - -ListMediaRequest::ListMediaRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListMedia") -{ - setMethod(HttpRequest::Method::Post); -} - -ListMediaRequest::~ListMediaRequest() -{} - -long ListMediaRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListMediaRequest; + +ListMediaRequest::ListMediaRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListMedia") { + setMethod(HttpRequest::Method::Post); } -void ListMediaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListMediaRequest::~ListMediaRequest() {} + +long ListMediaRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListMediaRequest::getNextPageToken()const -{ - return nextPageToken_; +void ListMediaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListMediaRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); +std::string ListMediaRequest::getNextPageToken() const { + return nextPageToken_; } -std::string ListMediaRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListMediaRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); } -void ListMediaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListMediaRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListMediaRequest::getFrom()const -{ - return from_; +void ListMediaRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListMediaRequest::setFrom(const std::string& from) -{ - from_ = from; - setParameter("From", from); +std::string ListMediaRequest::getFrom() const { + return from_; } -std::string ListMediaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListMediaRequest::setFrom(const std::string &from) { + from_ = from; + setParameter(std::string("From"), from); } -void ListMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListMediaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListMediaRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListMediaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListMediaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListMediaRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListMediaRequest::getMaximumPageSize()const -{ - return maximumPageSize_; +void ListMediaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListMediaRequest::setMaximumPageSize(long maximumPageSize) -{ - maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); +long ListMediaRequest::getMaximumPageSize() const { + return maximumPageSize_; } -long ListMediaRequest::getOwnerId()const -{ - return ownerId_; +void ListMediaRequest::setMaximumPageSize(long maximumPageSize) { + maximumPageSize_ = maximumPageSize; + setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize)); } -void ListMediaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListMediaRequest::getOwnerId() const { + return ownerId_; } -std::string ListMediaRequest::getTo()const -{ - return to_; +void ListMediaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListMediaRequest::setTo(const std::string& to) -{ - to_ = to; - setParameter("To", to); +std::string ListMediaRequest::getTo() const { + return to_; +} + +void ListMediaRequest::setTo(const std::string &to) { + to_ = to; + setParameter(std::string("To"), to); } diff --git a/mts/src/model/ListMediaResult.cc b/mts/src/model/ListMediaResult.cc index 19a68145e..674338780 100644 --- a/mts/src/model/ListMediaResult.cc +++ b/mts/src/model/ListMediaResult.cc @@ -43,41 +43,41 @@ void ListMediaResult::parse(const std::string &payload) for (auto valueMediaListMedia : allMediaListNode) { Media mediaListObject; - if(!valueMediaListMedia["MediaId"].isNull()) - mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString(); - if(!valueMediaListMedia["Title"].isNull()) - mediaListObject.title = valueMediaListMedia["Title"].asString(); - if(!valueMediaListMedia["Description"].isNull()) - mediaListObject.description = valueMediaListMedia["Description"].asString(); - if(!valueMediaListMedia["CoverURL"].isNull()) - mediaListObject.coverURL = valueMediaListMedia["CoverURL"].asString(); - if(!valueMediaListMedia["CateId"].isNull()) - mediaListObject.cateId = std::stol(valueMediaListMedia["CateId"].asString()); - if(!valueMediaListMedia["Duration"].isNull()) - mediaListObject.duration = valueMediaListMedia["Duration"].asString(); - if(!valueMediaListMedia["Format"].isNull()) - mediaListObject.format = valueMediaListMedia["Format"].asString(); - if(!valueMediaListMedia["Size"].isNull()) - mediaListObject.size = valueMediaListMedia["Size"].asString(); - if(!valueMediaListMedia["Bitrate"].isNull()) - mediaListObject.bitrate = valueMediaListMedia["Bitrate"].asString(); - if(!valueMediaListMedia["Width"].isNull()) - mediaListObject.width = valueMediaListMedia["Width"].asString(); - if(!valueMediaListMedia["Height"].isNull()) - mediaListObject.height = valueMediaListMedia["Height"].asString(); - if(!valueMediaListMedia["Fps"].isNull()) - mediaListObject.fps = valueMediaListMedia["Fps"].asString(); - if(!valueMediaListMedia["PublishState"].isNull()) - mediaListObject.publishState = valueMediaListMedia["PublishState"].asString(); - if(!valueMediaListMedia["CensorState"].isNull()) - mediaListObject.censorState = valueMediaListMedia["CensorState"].asString(); if(!valueMediaListMedia["CreationTime"].isNull()) mediaListObject.creationTime = valueMediaListMedia["CreationTime"].asString(); + if(!valueMediaListMedia["CateId"].isNull()) + mediaListObject.cateId = std::stol(valueMediaListMedia["CateId"].asString()); + if(!valueMediaListMedia["Height"].isNull()) + mediaListObject.height = valueMediaListMedia["Height"].asString(); + if(!valueMediaListMedia["CensorState"].isNull()) + mediaListObject.censorState = valueMediaListMedia["CensorState"].asString(); + if(!valueMediaListMedia["Bitrate"].isNull()) + mediaListObject.bitrate = valueMediaListMedia["Bitrate"].asString(); + if(!valueMediaListMedia["MediaId"].isNull()) + mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString(); + if(!valueMediaListMedia["PublishState"].isNull()) + mediaListObject.publishState = valueMediaListMedia["PublishState"].asString(); + if(!valueMediaListMedia["Description"].isNull()) + mediaListObject.description = valueMediaListMedia["Description"].asString(); + if(!valueMediaListMedia["Width"].isNull()) + mediaListObject.width = valueMediaListMedia["Width"].asString(); + if(!valueMediaListMedia["Size"].isNull()) + mediaListObject.size = valueMediaListMedia["Size"].asString(); + if(!valueMediaListMedia["CoverURL"].isNull()) + mediaListObject.coverURL = valueMediaListMedia["CoverURL"].asString(); + if(!valueMediaListMedia["Duration"].isNull()) + mediaListObject.duration = valueMediaListMedia["Duration"].asString(); + if(!valueMediaListMedia["Fps"].isNull()) + mediaListObject.fps = valueMediaListMedia["Fps"].asString(); + if(!valueMediaListMedia["Title"].isNull()) + mediaListObject.title = valueMediaListMedia["Title"].asString(); + if(!valueMediaListMedia["Format"].isNull()) + mediaListObject.format = valueMediaListMedia["Format"].asString(); auto fileNode = value["File"]; - if(!fileNode["URL"].isNull()) - mediaListObject.file.uRL = fileNode["URL"].asString(); if(!fileNode["State"].isNull()) mediaListObject.file.state = fileNode["State"].asString(); + if(!fileNode["URL"].isNull()) + mediaListObject.file.uRL = fileNode["URL"].asString(); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) mediaListObject.tags.push_back(value.asString()); diff --git a/mts/src/model/ListMediaWorkflowExecutionsRequest.cc b/mts/src/model/ListMediaWorkflowExecutionsRequest.cc index 26f78eb52..e6ec63f48 100644 --- a/mts/src/model/ListMediaWorkflowExecutionsRequest.cc +++ b/mts/src/model/ListMediaWorkflowExecutionsRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ListMediaWorkflowExecutionsRequest; - -ListMediaWorkflowExecutionsRequest::ListMediaWorkflowExecutionsRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListMediaWorkflowExecutions") -{ - setMethod(HttpRequest::Method::Post); -} - -ListMediaWorkflowExecutionsRequest::~ListMediaWorkflowExecutionsRequest() -{} - -long ListMediaWorkflowExecutionsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListMediaWorkflowExecutionsRequest; + +ListMediaWorkflowExecutionsRequest::ListMediaWorkflowExecutionsRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListMediaWorkflowExecutions") { + setMethod(HttpRequest::Method::Post); } -void ListMediaWorkflowExecutionsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListMediaWorkflowExecutionsRequest::~ListMediaWorkflowExecutionsRequest() {} + +long ListMediaWorkflowExecutionsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ListMediaWorkflowExecutionsRequest::getNextPageToken()const -{ - return nextPageToken_; +void ListMediaWorkflowExecutionsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListMediaWorkflowExecutionsRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); +std::string ListMediaWorkflowExecutionsRequest::getNextPageToken() const { + return nextPageToken_; } -std::string ListMediaWorkflowExecutionsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListMediaWorkflowExecutionsRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); } -void ListMediaWorkflowExecutionsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListMediaWorkflowExecutionsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ListMediaWorkflowExecutionsRequest::getMediaWorkflowId()const -{ - return mediaWorkflowId_; +void ListMediaWorkflowExecutionsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListMediaWorkflowExecutionsRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) -{ - mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); +std::string ListMediaWorkflowExecutionsRequest::getMediaWorkflowId() const { + return mediaWorkflowId_; } -std::string ListMediaWorkflowExecutionsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListMediaWorkflowExecutionsRequest::setMediaWorkflowId(const std::string &mediaWorkflowId) { + mediaWorkflowId_ = mediaWorkflowId; + setParameter(std::string("MediaWorkflowId"), mediaWorkflowId); } -void ListMediaWorkflowExecutionsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListMediaWorkflowExecutionsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListMediaWorkflowExecutionsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListMediaWorkflowExecutionsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListMediaWorkflowExecutionsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListMediaWorkflowExecutionsRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListMediaWorkflowExecutionsRequest::getMaximumPageSize()const -{ - return maximumPageSize_; +void ListMediaWorkflowExecutionsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListMediaWorkflowExecutionsRequest::setMaximumPageSize(long maximumPageSize) -{ - maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); +long ListMediaWorkflowExecutionsRequest::getMaximumPageSize() const { + return maximumPageSize_; } -long ListMediaWorkflowExecutionsRequest::getOwnerId()const -{ - return ownerId_; +void ListMediaWorkflowExecutionsRequest::setMaximumPageSize(long maximumPageSize) { + maximumPageSize_ = maximumPageSize; + setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize)); } -void ListMediaWorkflowExecutionsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListMediaWorkflowExecutionsRequest::getOwnerId() const { + return ownerId_; } -std::string ListMediaWorkflowExecutionsRequest::getMediaWorkflowName()const -{ - return mediaWorkflowName_; +void ListMediaWorkflowExecutionsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ListMediaWorkflowExecutionsRequest::setMediaWorkflowName(const std::string& mediaWorkflowName) -{ - mediaWorkflowName_ = mediaWorkflowName; - setParameter("MediaWorkflowName", mediaWorkflowName); +std::string ListMediaWorkflowExecutionsRequest::getMediaWorkflowName() const { + return mediaWorkflowName_; } -std::string ListMediaWorkflowExecutionsRequest::getInputFileURL()const -{ - return inputFileURL_; +void ListMediaWorkflowExecutionsRequest::setMediaWorkflowName(const std::string &mediaWorkflowName) { + mediaWorkflowName_ = mediaWorkflowName; + setParameter(std::string("MediaWorkflowName"), mediaWorkflowName); } -void ListMediaWorkflowExecutionsRequest::setInputFileURL(const std::string& inputFileURL) -{ - inputFileURL_ = inputFileURL; - setParameter("InputFileURL", inputFileURL); +std::string ListMediaWorkflowExecutionsRequest::getInputFileURL() const { + return inputFileURL_; +} + +void ListMediaWorkflowExecutionsRequest::setInputFileURL(const std::string &inputFileURL) { + inputFileURL_ = inputFileURL; + setParameter(std::string("InputFileURL"), inputFileURL); } diff --git a/mts/src/model/ListMediaWorkflowExecutionsResult.cc b/mts/src/model/ListMediaWorkflowExecutionsResult.cc index e25e45387..92dc73366 100644 --- a/mts/src/model/ListMediaWorkflowExecutionsResult.cc +++ b/mts/src/model/ListMediaWorkflowExecutionsResult.cc @@ -43,38 +43,38 @@ void ListMediaWorkflowExecutionsResult::parse(const std::string &payload) for (auto valueMediaWorkflowExecutionListMediaWorkflowExecution : allMediaWorkflowExecutionListNode) { MediaWorkflowExecution mediaWorkflowExecutionListObject; - if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["RunId"].isNull()) - mediaWorkflowExecutionListObject.runId = valueMediaWorkflowExecutionListMediaWorkflowExecution["RunId"].asString(); - if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaWorkflowId"].isNull()) - mediaWorkflowExecutionListObject.mediaWorkflowId = valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaWorkflowId"].asString(); - if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["Name"].isNull()) - mediaWorkflowExecutionListObject.name = valueMediaWorkflowExecutionListMediaWorkflowExecution["Name"].asString(); - if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["State"].isNull()) - mediaWorkflowExecutionListObject.state = valueMediaWorkflowExecutionListMediaWorkflowExecution["State"].asString(); - if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaId"].isNull()) - mediaWorkflowExecutionListObject.mediaId = valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaId"].asString(); if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["CreationTime"].isNull()) mediaWorkflowExecutionListObject.creationTime = valueMediaWorkflowExecutionListMediaWorkflowExecution["CreationTime"].asString(); - auto allActivityListNode = allMediaWorkflowExecutionListNode["ActivityList"]["Activity"]; - for (auto allMediaWorkflowExecutionListNodeActivityListActivity : allActivityListNode) + if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaWorkflowId"].isNull()) + mediaWorkflowExecutionListObject.mediaWorkflowId = valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaWorkflowId"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["State"].isNull()) + mediaWorkflowExecutionListObject.state = valueMediaWorkflowExecutionListMediaWorkflowExecution["State"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["Name"].isNull()) + mediaWorkflowExecutionListObject.name = valueMediaWorkflowExecutionListMediaWorkflowExecution["Name"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaId"].isNull()) + mediaWorkflowExecutionListObject.mediaId = valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaId"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["RunId"].isNull()) + mediaWorkflowExecutionListObject.runId = valueMediaWorkflowExecutionListMediaWorkflowExecution["RunId"].asString(); + auto allActivityListNode = valueMediaWorkflowExecutionListMediaWorkflowExecution["ActivityList"]["Activity"]; + for (auto valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity : allActivityListNode) { MediaWorkflowExecution::Activity activityListObject; - if(!allMediaWorkflowExecutionListNodeActivityListActivity["Name"].isNull()) - activityListObject.name = allMediaWorkflowExecutionListNodeActivityListActivity["Name"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["Type"].isNull()) - activityListObject.type = allMediaWorkflowExecutionListNodeActivityListActivity["Type"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["JobId"].isNull()) - activityListObject.jobId = allMediaWorkflowExecutionListNodeActivityListActivity["JobId"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["State"].isNull()) - activityListObject.state = allMediaWorkflowExecutionListNodeActivityListActivity["State"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["Code"].isNull()) - activityListObject.code = allMediaWorkflowExecutionListNodeActivityListActivity["Code"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["Message"].isNull()) - activityListObject.message = allMediaWorkflowExecutionListNodeActivityListActivity["Message"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["StartTime"].isNull()) - activityListObject.startTime = allMediaWorkflowExecutionListNodeActivityListActivity["StartTime"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["EndTime"].isNull()) - activityListObject.endTime = allMediaWorkflowExecutionListNodeActivityListActivity["EndTime"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["EndTime"].isNull()) + activityListObject.endTime = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["EndTime"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Type"].isNull()) + activityListObject.type = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Type"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["StartTime"].isNull()) + activityListObject.startTime = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["StartTime"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["State"].isNull()) + activityListObject.state = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["State"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["JobId"].isNull()) + activityListObject.jobId = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["JobId"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Code"].isNull()) + activityListObject.code = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Code"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Message"].isNull()) + activityListObject.message = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Message"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Name"].isNull()) + activityListObject.name = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Name"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) activityListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); @@ -88,12 +88,12 @@ void ListMediaWorkflowExecutionsResult::parse(const std::string &payload) if(!inputNode["UserData"].isNull()) mediaWorkflowExecutionListObject.input.userData = inputNode["UserData"].asString(); auto inputFileNode = inputNode["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - mediaWorkflowExecutionListObject.input.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - mediaWorkflowExecutionListObject.input.inputFile.location = inputFileNode["Location"].asString(); if(!inputFileNode["Object"].isNull()) mediaWorkflowExecutionListObject.input.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + mediaWorkflowExecutionListObject.input.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + mediaWorkflowExecutionListObject.input.inputFile.bucket = inputFileNode["Bucket"].asString(); mediaWorkflowExecutionList_.push_back(mediaWorkflowExecutionListObject); } if(!value["NextPageToken"].isNull()) diff --git a/mts/src/model/ListPornPipelineRequest.cc b/mts/src/model/ListPornPipelineRequest.cc index 5ae0563a1..889664594 100644 --- a/mts/src/model/ListPornPipelineRequest.cc +++ b/mts/src/model/ListPornPipelineRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ListPornPipelineRequest; - -ListPornPipelineRequest::ListPornPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListPornPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -ListPornPipelineRequest::~ListPornPipelineRequest() -{} - -long ListPornPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListPornPipelineRequest; + +ListPornPipelineRequest::ListPornPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListPornPipeline") { + setMethod(HttpRequest::Method::Post); } -void ListPornPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListPornPipelineRequest::~ListPornPipelineRequest() {} + +long ListPornPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long ListPornPipelineRequest::getPageNumber()const -{ - return pageNumber_; +void ListPornPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListPornPipelineRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long ListPornPipelineRequest::getPageNumber() const { + return pageNumber_; } -std::string ListPornPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListPornPipelineRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListPornPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListPornPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -long ListPornPipelineRequest::getPageSize()const -{ - return pageSize_; +void ListPornPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListPornPipelineRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long ListPornPipelineRequest::getPageSize() const { + return pageSize_; } -std::string ListPornPipelineRequest::getState()const -{ - return state_; +void ListPornPipelineRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListPornPipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string ListPornPipelineRequest::getState() const { + return state_; } -std::string ListPornPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListPornPipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void ListPornPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListPornPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListPornPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListPornPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListPornPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListPornPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListPornPipelineRequest::getOwnerId()const -{ - return ownerId_; +void ListPornPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListPornPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListPornPipelineRequest::getOwnerId() const { + return ownerId_; +} + +void ListPornPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ListPornPipelineResult.cc b/mts/src/model/ListPornPipelineResult.cc index b28f25572..e2aed2178 100644 --- a/mts/src/model/ListPornPipelineResult.cc +++ b/mts/src/model/ListPornPipelineResult.cc @@ -43,14 +43,14 @@ void ListPornPipelineResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["Id"].isNull()) - pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); if(!valuePipelineListPipeline["State"].isNull()) pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["Priority"].isNull()) pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["Id"].isNull()) + pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); auto notifyConfigNode = value["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); @@ -60,10 +60,10 @@ void ListPornPipelineResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/mts/src/model/ListTerrorismPipelineRequest.cc b/mts/src/model/ListTerrorismPipelineRequest.cc index fc64bf586..faae5c2ba 100644 --- a/mts/src/model/ListTerrorismPipelineRequest.cc +++ b/mts/src/model/ListTerrorismPipelineRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ListTerrorismPipelineRequest; - -ListTerrorismPipelineRequest::ListTerrorismPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "ListTerrorismPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTerrorismPipelineRequest::~ListTerrorismPipelineRequest() -{} - -long ListTerrorismPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ListTerrorismPipelineRequest; + +ListTerrorismPipelineRequest::ListTerrorismPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "ListTerrorismPipeline") { + setMethod(HttpRequest::Method::Post); } -void ListTerrorismPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ListTerrorismPipelineRequest::~ListTerrorismPipelineRequest() {} + +long ListTerrorismPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long ListTerrorismPipelineRequest::getPageNumber()const -{ - return pageNumber_; +void ListTerrorismPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ListTerrorismPipelineRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long ListTerrorismPipelineRequest::getPageNumber() const { + return pageNumber_; } -std::string ListTerrorismPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ListTerrorismPipelineRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListTerrorismPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ListTerrorismPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -long ListTerrorismPipelineRequest::getPageSize()const -{ - return pageSize_; +void ListTerrorismPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ListTerrorismPipelineRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long ListTerrorismPipelineRequest::getPageSize() const { + return pageSize_; } -std::string ListTerrorismPipelineRequest::getState()const -{ - return state_; +void ListTerrorismPipelineRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListTerrorismPipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string ListTerrorismPipelineRequest::getState() const { + return state_; } -std::string ListTerrorismPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ListTerrorismPipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void ListTerrorismPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ListTerrorismPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ListTerrorismPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ListTerrorismPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ListTerrorismPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ListTerrorismPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -long ListTerrorismPipelineRequest::getOwnerId()const -{ - return ownerId_; +void ListTerrorismPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ListTerrorismPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ListTerrorismPipelineRequest::getOwnerId() const { + return ownerId_; +} + +void ListTerrorismPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ListTerrorismPipelineResult.cc b/mts/src/model/ListTerrorismPipelineResult.cc index 9ef671f91..163824e6a 100644 --- a/mts/src/model/ListTerrorismPipelineResult.cc +++ b/mts/src/model/ListTerrorismPipelineResult.cc @@ -43,14 +43,14 @@ void ListTerrorismPipelineResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["Id"].isNull()) - pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); if(!valuePipelineListPipeline["State"].isNull()) pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["Priority"].isNull()) pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["Id"].isNull()) + pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); auto notifyConfigNode = value["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); @@ -60,10 +60,10 @@ void ListTerrorismPipelineResult::parse(const std::string &payload) } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/mts/src/model/LogicalDeleteResourceRequest.cc b/mts/src/model/LogicalDeleteResourceRequest.cc index 2655b60be..644f5adbc 100644 --- a/mts/src/model/LogicalDeleteResourceRequest.cc +++ b/mts/src/model/LogicalDeleteResourceRequest.cc @@ -1,150 +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::Mts::Model::LogicalDeleteResourceRequest; - -LogicalDeleteResourceRequest::LogicalDeleteResourceRequest() : - RpcServiceRequest("mts", "2014-06-18", "LogicalDeleteResource") -{ - setMethod(HttpRequest::Method::Post); -} - -LogicalDeleteResourceRequest::~LogicalDeleteResourceRequest() -{} - -std::string LogicalDeleteResourceRequest::getCountry()const -{ - return country_; + */ + +#include + +using AlibabaCloud::Mts::Model::LogicalDeleteResourceRequest; + +LogicalDeleteResourceRequest::LogicalDeleteResourceRequest() + : RpcServiceRequest("mts", "2014-06-18", "LogicalDeleteResource") { + setMethod(HttpRequest::Method::Post); } -void LogicalDeleteResourceRequest::setCountry(const std::string& country) -{ - country_ = country; - setParameter("Country", country); +LogicalDeleteResourceRequest::~LogicalDeleteResourceRequest() {} + +std::string LogicalDeleteResourceRequest::getCountry() const { + return country_; } -long LogicalDeleteResourceRequest::getHid()const -{ - return hid_; +void LogicalDeleteResourceRequest::setCountry(const std::string &country) { + country_ = country; + setParameter(std::string("Country"), country); } -void LogicalDeleteResourceRequest::setHid(long hid) -{ - hid_ = hid; - setParameter("Hid", std::to_string(hid)); +long LogicalDeleteResourceRequest::getHid() const { + return hid_; } -std::string LogicalDeleteResourceRequest::getInvoker()const -{ - return invoker_; +void LogicalDeleteResourceRequest::setHid(long hid) { + hid_ = hid; + setParameter(std::string("Hid"), std::to_string(hid)); } -void LogicalDeleteResourceRequest::setInvoker(const std::string& invoker) -{ - invoker_ = invoker; - setParameter("Invoker", invoker); +std::string LogicalDeleteResourceRequest::getInvoker() const { + return invoker_; } -std::string LogicalDeleteResourceRequest::getMessage()const -{ - return message_; +void LogicalDeleteResourceRequest::setInvoker(const std::string &invoker) { + invoker_ = invoker; + setParameter(std::string("Invoker"), invoker); } -void LogicalDeleteResourceRequest::setMessage(const std::string& message) -{ - message_ = message; - setParameter("Message", message); +std::string LogicalDeleteResourceRequest::getMessage() const { + return message_; } -bool LogicalDeleteResourceRequest::getSuccess()const -{ - return success_; +void LogicalDeleteResourceRequest::setMessage(const std::string &message) { + message_ = message; + setParameter(std::string("Message"), message); } -void LogicalDeleteResourceRequest::setSuccess(bool success) -{ - success_ = success; - setParameter("Success", success ? "true" : "false"); +bool LogicalDeleteResourceRequest::getSuccess() const { + return success_; } -bool LogicalDeleteResourceRequest::getInterrupt()const -{ - return interrupt_; +void LogicalDeleteResourceRequest::setSuccess(bool success) { + success_ = success; + setParameter(std::string("Success"), success ? "true" : "false"); } -void LogicalDeleteResourceRequest::setInterrupt(bool interrupt) -{ - interrupt_ = interrupt; - setParameter("Interrupt", interrupt ? "true" : "false"); +bool LogicalDeleteResourceRequest::getInterrupt() const { + return interrupt_; } -std::string LogicalDeleteResourceRequest::getGmtWakeup()const -{ - return gmtWakeup_; +void LogicalDeleteResourceRequest::setInterrupt(bool interrupt) { + interrupt_ = interrupt; + setParameter(std::string("Interrupt"), interrupt ? "true" : "false"); } -void LogicalDeleteResourceRequest::setGmtWakeup(const std::string& gmtWakeup) -{ - gmtWakeup_ = gmtWakeup; - setParameter("GmtWakeup", gmtWakeup); +std::string LogicalDeleteResourceRequest::getGmtWakeup() const { + return gmtWakeup_; } -std::string LogicalDeleteResourceRequest::getPk()const -{ - return pk_; +void LogicalDeleteResourceRequest::setGmtWakeup(const std::string &gmtWakeup) { + gmtWakeup_ = gmtWakeup; + setParameter(std::string("GmtWakeup"), gmtWakeup); } -void LogicalDeleteResourceRequest::setPk(const std::string& pk) -{ - pk_ = pk; - setParameter("Pk", pk); +std::string LogicalDeleteResourceRequest::getPk() const { + return pk_; } -std::string LogicalDeleteResourceRequest::getBid()const -{ - return bid_; +void LogicalDeleteResourceRequest::setPk(const std::string &pk) { + pk_ = pk; + setParameter(std::string("Pk"), pk); } -void LogicalDeleteResourceRequest::setBid(const std::string& bid) -{ - bid_ = bid; - setParameter("Bid", bid); +std::string LogicalDeleteResourceRequest::getBid() const { + return bid_; } -std::string LogicalDeleteResourceRequest::getTaskExtraData()const -{ - return taskExtraData_; +void LogicalDeleteResourceRequest::setBid(const std::string &bid) { + bid_ = bid; + setParameter(std::string("Bid"), bid); } -void LogicalDeleteResourceRequest::setTaskExtraData(const std::string& taskExtraData) -{ - taskExtraData_ = taskExtraData; - setParameter("TaskExtraData", taskExtraData); +std::string LogicalDeleteResourceRequest::getTaskExtraData() const { + return taskExtraData_; } -std::string LogicalDeleteResourceRequest::getTaskIdentifier()const -{ - return taskIdentifier_; +void LogicalDeleteResourceRequest::setTaskExtraData(const std::string &taskExtraData) { + taskExtraData_ = taskExtraData; + setParameter(std::string("TaskExtraData"), taskExtraData); } -void LogicalDeleteResourceRequest::setTaskIdentifier(const std::string& taskIdentifier) -{ - taskIdentifier_ = taskIdentifier; - setParameter("TaskIdentifier", taskIdentifier); +std::string LogicalDeleteResourceRequest::getTaskIdentifier() const { + return taskIdentifier_; +} + +void LogicalDeleteResourceRequest::setTaskIdentifier(const std::string &taskIdentifier) { + taskIdentifier_ = taskIdentifier; + setParameter(std::string("TaskIdentifier"), taskIdentifier); } diff --git a/mts/src/model/LogicalDeleteResourceResult.cc b/mts/src/model/LogicalDeleteResourceResult.cc index 9e64644fe..e91e86bde 100644 --- a/mts/src/model/LogicalDeleteResourceResult.cc +++ b/mts/src/model/LogicalDeleteResourceResult.cc @@ -39,28 +39,28 @@ void LogicalDeleteResourceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Interrupt"].isNull()) - interrupt_ = value["Interrupt"].asString() == "true"; - if(!value["Invoker"].isNull()) - invoker_ = value["Invoker"].asString(); - if(!value["Pk"].isNull()) - pk_ = value["Pk"].asString(); - if(!value["Bid"].isNull()) - bid_ = value["Bid"].asString(); + if(!value["GmtWakeup"].isNull()) + gmtWakeup_ = value["GmtWakeup"].asString(); if(!value["Hid"].isNull()) hid_ = std::stol(value["Hid"].asString()); - if(!value["Country"].isNull()) - country_ = value["Country"].asString(); + if(!value["Invoker"].isNull()) + invoker_ = value["Invoker"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["TaskIdentifier"].isNull()) taskIdentifier_ = value["TaskIdentifier"].asString(); if(!value["TaskExtraData"].isNull()) taskExtraData_ = value["TaskExtraData"].asString(); - if(!value["GmtWakeup"].isNull()) - gmtWakeup_ = value["GmtWakeup"].asString(); + if(!value["Country"].isNull()) + country_ = value["Country"].asString(); + if(!value["Pk"].isNull()) + pk_ = value["Pk"].asString(); + if(!value["Bid"].isNull()) + bid_ = value["Bid"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["Interrupt"].isNull()) + interrupt_ = value["Interrupt"].asString() == "true"; } @@ -79,16 +79,16 @@ std::string LogicalDeleteResourceResult::getInvoker()const return invoker_; } -std::string LogicalDeleteResourceResult::getTaskIdentifier()const -{ - return taskIdentifier_; -} - std::string LogicalDeleteResourceResult::getMessage()const { return message_; } +std::string LogicalDeleteResourceResult::getTaskIdentifier()const +{ + return taskIdentifier_; +} + std::string LogicalDeleteResourceResult::getTaskExtraData()const { return taskExtraData_; @@ -109,13 +109,13 @@ std::string LogicalDeleteResourceResult::getBid()const return bid_; } -bool LogicalDeleteResourceResult::getInterrupt()const -{ - return interrupt_; -} - bool LogicalDeleteResourceResult::getSuccess()const { return success_; } +bool LogicalDeleteResourceResult::getInterrupt()const +{ + return interrupt_; +} + diff --git a/mts/src/model/PhysicalDeleteResourceRequest.cc b/mts/src/model/PhysicalDeleteResourceRequest.cc index dc1a78347..7f4abf1bf 100644 --- a/mts/src/model/PhysicalDeleteResourceRequest.cc +++ b/mts/src/model/PhysicalDeleteResourceRequest.cc @@ -1,150 +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::Mts::Model::PhysicalDeleteResourceRequest; - -PhysicalDeleteResourceRequest::PhysicalDeleteResourceRequest() : - RpcServiceRequest("mts", "2014-06-18", "PhysicalDeleteResource") -{ - setMethod(HttpRequest::Method::Post); -} - -PhysicalDeleteResourceRequest::~PhysicalDeleteResourceRequest() -{} - -std::string PhysicalDeleteResourceRequest::getCountry()const -{ - return country_; + */ + +#include + +using AlibabaCloud::Mts::Model::PhysicalDeleteResourceRequest; + +PhysicalDeleteResourceRequest::PhysicalDeleteResourceRequest() + : RpcServiceRequest("mts", "2014-06-18", "PhysicalDeleteResource") { + setMethod(HttpRequest::Method::Post); } -void PhysicalDeleteResourceRequest::setCountry(const std::string& country) -{ - country_ = country; - setParameter("Country", country); +PhysicalDeleteResourceRequest::~PhysicalDeleteResourceRequest() {} + +std::string PhysicalDeleteResourceRequest::getCountry() const { + return country_; } -long PhysicalDeleteResourceRequest::getHid()const -{ - return hid_; +void PhysicalDeleteResourceRequest::setCountry(const std::string &country) { + country_ = country; + setParameter(std::string("Country"), country); } -void PhysicalDeleteResourceRequest::setHid(long hid) -{ - hid_ = hid; - setParameter("Hid", std::to_string(hid)); +long PhysicalDeleteResourceRequest::getHid() const { + return hid_; } -std::string PhysicalDeleteResourceRequest::getInvoker()const -{ - return invoker_; +void PhysicalDeleteResourceRequest::setHid(long hid) { + hid_ = hid; + setParameter(std::string("Hid"), std::to_string(hid)); } -void PhysicalDeleteResourceRequest::setInvoker(const std::string& invoker) -{ - invoker_ = invoker; - setParameter("Invoker", invoker); +std::string PhysicalDeleteResourceRequest::getInvoker() const { + return invoker_; } -std::string PhysicalDeleteResourceRequest::getMessage()const -{ - return message_; +void PhysicalDeleteResourceRequest::setInvoker(const std::string &invoker) { + invoker_ = invoker; + setParameter(std::string("Invoker"), invoker); } -void PhysicalDeleteResourceRequest::setMessage(const std::string& message) -{ - message_ = message; - setParameter("Message", message); +std::string PhysicalDeleteResourceRequest::getMessage() const { + return message_; } -bool PhysicalDeleteResourceRequest::getSuccess()const -{ - return success_; +void PhysicalDeleteResourceRequest::setMessage(const std::string &message) { + message_ = message; + setParameter(std::string("Message"), message); } -void PhysicalDeleteResourceRequest::setSuccess(bool success) -{ - success_ = success; - setParameter("Success", success ? "true" : "false"); +bool PhysicalDeleteResourceRequest::getSuccess() const { + return success_; } -bool PhysicalDeleteResourceRequest::getInterrupt()const -{ - return interrupt_; +void PhysicalDeleteResourceRequest::setSuccess(bool success) { + success_ = success; + setParameter(std::string("Success"), success ? "true" : "false"); } -void PhysicalDeleteResourceRequest::setInterrupt(bool interrupt) -{ - interrupt_ = interrupt; - setParameter("Interrupt", interrupt ? "true" : "false"); +bool PhysicalDeleteResourceRequest::getInterrupt() const { + return interrupt_; } -std::string PhysicalDeleteResourceRequest::getGmtWakeup()const -{ - return gmtWakeup_; +void PhysicalDeleteResourceRequest::setInterrupt(bool interrupt) { + interrupt_ = interrupt; + setParameter(std::string("Interrupt"), interrupt ? "true" : "false"); } -void PhysicalDeleteResourceRequest::setGmtWakeup(const std::string& gmtWakeup) -{ - gmtWakeup_ = gmtWakeup; - setParameter("GmtWakeup", gmtWakeup); +std::string PhysicalDeleteResourceRequest::getGmtWakeup() const { + return gmtWakeup_; } -std::string PhysicalDeleteResourceRequest::getPk()const -{ - return pk_; +void PhysicalDeleteResourceRequest::setGmtWakeup(const std::string &gmtWakeup) { + gmtWakeup_ = gmtWakeup; + setParameter(std::string("GmtWakeup"), gmtWakeup); } -void PhysicalDeleteResourceRequest::setPk(const std::string& pk) -{ - pk_ = pk; - setParameter("Pk", pk); +std::string PhysicalDeleteResourceRequest::getPk() const { + return pk_; } -std::string PhysicalDeleteResourceRequest::getBid()const -{ - return bid_; +void PhysicalDeleteResourceRequest::setPk(const std::string &pk) { + pk_ = pk; + setParameter(std::string("Pk"), pk); } -void PhysicalDeleteResourceRequest::setBid(const std::string& bid) -{ - bid_ = bid; - setParameter("Bid", bid); +std::string PhysicalDeleteResourceRequest::getBid() const { + return bid_; } -std::string PhysicalDeleteResourceRequest::getTaskExtraData()const -{ - return taskExtraData_; +void PhysicalDeleteResourceRequest::setBid(const std::string &bid) { + bid_ = bid; + setParameter(std::string("Bid"), bid); } -void PhysicalDeleteResourceRequest::setTaskExtraData(const std::string& taskExtraData) -{ - taskExtraData_ = taskExtraData; - setParameter("TaskExtraData", taskExtraData); +std::string PhysicalDeleteResourceRequest::getTaskExtraData() const { + return taskExtraData_; } -std::string PhysicalDeleteResourceRequest::getTaskIdentifier()const -{ - return taskIdentifier_; +void PhysicalDeleteResourceRequest::setTaskExtraData(const std::string &taskExtraData) { + taskExtraData_ = taskExtraData; + setParameter(std::string("TaskExtraData"), taskExtraData); } -void PhysicalDeleteResourceRequest::setTaskIdentifier(const std::string& taskIdentifier) -{ - taskIdentifier_ = taskIdentifier; - setParameter("TaskIdentifier", taskIdentifier); +std::string PhysicalDeleteResourceRequest::getTaskIdentifier() const { + return taskIdentifier_; +} + +void PhysicalDeleteResourceRequest::setTaskIdentifier(const std::string &taskIdentifier) { + taskIdentifier_ = taskIdentifier; + setParameter(std::string("TaskIdentifier"), taskIdentifier); } diff --git a/mts/src/model/PhysicalDeleteResourceResult.cc b/mts/src/model/PhysicalDeleteResourceResult.cc index 6b7498714..f5b05272e 100644 --- a/mts/src/model/PhysicalDeleteResourceResult.cc +++ b/mts/src/model/PhysicalDeleteResourceResult.cc @@ -39,28 +39,28 @@ void PhysicalDeleteResourceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Interrupt"].isNull()) - interrupt_ = value["Interrupt"].asString() == "true"; - if(!value["Invoker"].isNull()) - invoker_ = value["Invoker"].asString(); - if(!value["Pk"].isNull()) - pk_ = value["Pk"].asString(); - if(!value["Bid"].isNull()) - bid_ = value["Bid"].asString(); + if(!value["GmtWakeup"].isNull()) + gmtWakeup_ = value["GmtWakeup"].asString(); if(!value["Hid"].isNull()) hid_ = std::stol(value["Hid"].asString()); - if(!value["Country"].isNull()) - country_ = value["Country"].asString(); + if(!value["Invoker"].isNull()) + invoker_ = value["Invoker"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["TaskIdentifier"].isNull()) taskIdentifier_ = value["TaskIdentifier"].asString(); if(!value["TaskExtraData"].isNull()) taskExtraData_ = value["TaskExtraData"].asString(); - if(!value["GmtWakeup"].isNull()) - gmtWakeup_ = value["GmtWakeup"].asString(); + if(!value["Country"].isNull()) + country_ = value["Country"].asString(); + if(!value["Pk"].isNull()) + pk_ = value["Pk"].asString(); + if(!value["Bid"].isNull()) + bid_ = value["Bid"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["Interrupt"].isNull()) + interrupt_ = value["Interrupt"].asString() == "true"; } @@ -79,16 +79,16 @@ std::string PhysicalDeleteResourceResult::getInvoker()const return invoker_; } -std::string PhysicalDeleteResourceResult::getTaskIdentifier()const -{ - return taskIdentifier_; -} - std::string PhysicalDeleteResourceResult::getMessage()const { return message_; } +std::string PhysicalDeleteResourceResult::getTaskIdentifier()const +{ + return taskIdentifier_; +} + std::string PhysicalDeleteResourceResult::getTaskExtraData()const { return taskExtraData_; @@ -109,13 +109,13 @@ std::string PhysicalDeleteResourceResult::getBid()const return bid_; } -bool PhysicalDeleteResourceResult::getInterrupt()const -{ - return interrupt_; -} - bool PhysicalDeleteResourceResult::getSuccess()const { return success_; } +bool PhysicalDeleteResourceResult::getInterrupt()const +{ + return interrupt_; +} + diff --git a/mts/src/model/PlayInfoRequest.cc b/mts/src/model/PlayInfoRequest.cc index 2026ef83f..74781a28e 100644 --- a/mts/src/model/PlayInfoRequest.cc +++ b/mts/src/model/PlayInfoRequest.cc @@ -1,172 +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 - -using AlibabaCloud::Mts::Model::PlayInfoRequest; - -PlayInfoRequest::PlayInfoRequest() : - RpcServiceRequest("mts", "2014-06-18", "PlayInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -PlayInfoRequest::~PlayInfoRequest() -{} - -std::string PlayInfoRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::PlayInfoRequest; + +PlayInfoRequest::PlayInfoRequest() + : RpcServiceRequest("mts", "2014-06-18", "PlayInfo") { + setMethod(HttpRequest::Method::Post); } -void PlayInfoRequest::setResourceOwnerId(const std::string& resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); +PlayInfoRequest::~PlayInfoRequest() {} + +std::string PlayInfoRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string PlayInfoRequest::getFormats()const -{ - return formats_; +void PlayInfoRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); } -void PlayInfoRequest::setFormats(const std::string& formats) -{ - formats_ = formats; - setParameter("Formats", formats); +std::string PlayInfoRequest::getFormats() const { + return formats_; } -std::string PlayInfoRequest::getAccessKeyId()const -{ - return accessKeyId_; +void PlayInfoRequest::setFormats(const std::string &formats) { + formats_ = formats; + setParameter(std::string("Formats"), formats); } -void PlayInfoRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string PlayInfoRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string PlayInfoRequest::getRand()const -{ - return rand_; +void PlayInfoRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void PlayInfoRequest::setRand(const std::string& rand) -{ - rand_ = rand; - setParameter("Rand", rand); +std::string PlayInfoRequest::getRand() const { + return rand_; } -long PlayInfoRequest::getAuthTimeout()const -{ - return authTimeout_; +void PlayInfoRequest::setRand(const std::string &rand) { + rand_ = rand; + setParameter(std::string("Rand"), rand); } -void PlayInfoRequest::setAuthTimeout(long authTimeout) -{ - authTimeout_ = authTimeout; - setParameter("AuthTimeout", std::to_string(authTimeout)); +long PlayInfoRequest::getAuthTimeout() const { + return authTimeout_; } -std::string PlayInfoRequest::getPlayDomain()const -{ - return playDomain_; +void PlayInfoRequest::setAuthTimeout(long authTimeout) { + authTimeout_ = authTimeout; + setParameter(std::string("AuthTimeout"), std::to_string(authTimeout)); } -void PlayInfoRequest::setPlayDomain(const std::string& playDomain) -{ - playDomain_ = playDomain; - setParameter("PlayDomain", playDomain); +std::string PlayInfoRequest::getPlayDomain() const { + return playDomain_; } -std::string PlayInfoRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void PlayInfoRequest::setPlayDomain(const std::string &playDomain) { + playDomain_ = playDomain; + setParameter(std::string("PlayDomain"), playDomain); } -void PlayInfoRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string PlayInfoRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string PlayInfoRequest::getOwnerAccount()const -{ - return ownerAccount_; +void PlayInfoRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void PlayInfoRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string PlayInfoRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string PlayInfoRequest::getHlsUriToken()const -{ - return hlsUriToken_; +void PlayInfoRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void PlayInfoRequest::setHlsUriToken(const std::string& hlsUriToken) -{ - hlsUriToken_ = hlsUriToken; - setParameter("HlsUriToken", hlsUriToken); +std::string PlayInfoRequest::getHlsUriToken() const { + return hlsUriToken_; } -std::string PlayInfoRequest::getTerminal()const -{ - return terminal_; +void PlayInfoRequest::setHlsUriToken(const std::string &hlsUriToken) { + hlsUriToken_ = hlsUriToken; + setParameter(std::string("HlsUriToken"), hlsUriToken); } -void PlayInfoRequest::setTerminal(const std::string& terminal) -{ - terminal_ = terminal; - setParameter("Terminal", terminal); +std::string PlayInfoRequest::getTerminal() const { + return terminal_; } -std::string PlayInfoRequest::getOwnerId()const -{ - return ownerId_; +void PlayInfoRequest::setTerminal(const std::string &terminal) { + terminal_ = terminal; + setParameter(std::string("Terminal"), terminal); } -void PlayInfoRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string PlayInfoRequest::getOwnerId() const { + return ownerId_; } -std::string PlayInfoRequest::getMediaId()const -{ - return mediaId_; +void PlayInfoRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void PlayInfoRequest::setMediaId(const std::string& mediaId) -{ - mediaId_ = mediaId; - setParameter("MediaId", mediaId); +std::string PlayInfoRequest::getMediaId() const { + return mediaId_; } -std::string PlayInfoRequest::getAuthInfo()const -{ - return authInfo_; +void PlayInfoRequest::setMediaId(const std::string &mediaId) { + mediaId_ = mediaId; + setParameter(std::string("MediaId"), mediaId); } -void PlayInfoRequest::setAuthInfo(const std::string& authInfo) -{ - authInfo_ = authInfo; - setParameter("AuthInfo", authInfo); +std::string PlayInfoRequest::getAuthInfo() const { + return authInfo_; +} + +void PlayInfoRequest::setAuthInfo(const std::string &authInfo) { + authInfo_ = authInfo; + setParameter(std::string("AuthInfo"), authInfo); } diff --git a/mts/src/model/PlayInfoResult.cc b/mts/src/model/PlayInfoResult.cc index a402751d1..2eb7b62f5 100644 --- a/mts/src/model/PlayInfoResult.cc +++ b/mts/src/model/PlayInfoResult.cc @@ -43,38 +43,38 @@ void PlayInfoResult::parse(const std::string &payload) for (auto valuePlayInfoListPlayInfo : allPlayInfoListNode) { PlayInfo playInfoListObject; - if(!valuePlayInfoListPlayInfo["Url"].isNull()) - playInfoListObject.url = valuePlayInfoListPlayInfo["Url"].asString(); - if(!valuePlayInfoListPlayInfo["duration"].isNull()) - playInfoListObject.duration = valuePlayInfoListPlayInfo["duration"].asString(); - if(!valuePlayInfoListPlayInfo["size"].isNull()) - playInfoListObject.size = valuePlayInfoListPlayInfo["size"].asString(); - if(!valuePlayInfoListPlayInfo["width"].isNull()) - playInfoListObject.width = valuePlayInfoListPlayInfo["width"].asString(); - if(!valuePlayInfoListPlayInfo["height"].isNull()) - playInfoListObject.height = valuePlayInfoListPlayInfo["height"].asString(); - if(!valuePlayInfoListPlayInfo["bitrate"].isNull()) - playInfoListObject.bitrate = valuePlayInfoListPlayInfo["bitrate"].asString(); - if(!valuePlayInfoListPlayInfo["fps"].isNull()) - playInfoListObject.fps = valuePlayInfoListPlayInfo["fps"].asString(); - if(!valuePlayInfoListPlayInfo["format"].isNull()) - playInfoListObject.format = valuePlayInfoListPlayInfo["format"].asString(); - if(!valuePlayInfoListPlayInfo["definition"].isNull()) - playInfoListObject.definition = valuePlayInfoListPlayInfo["definition"].asString(); - if(!valuePlayInfoListPlayInfo["encryption"].isNull()) - playInfoListObject.encryption = valuePlayInfoListPlayInfo["encryption"].asString(); - if(!valuePlayInfoListPlayInfo["rand"].isNull()) - playInfoListObject.rand = valuePlayInfoListPlayInfo["rand"].asString(); - if(!valuePlayInfoListPlayInfo["plaintext"].isNull()) - playInfoListObject.plaintext = valuePlayInfoListPlayInfo["plaintext"].asString(); - if(!valuePlayInfoListPlayInfo["complexity"].isNull()) - playInfoListObject.complexity = valuePlayInfoListPlayInfo["complexity"].asString(); - if(!valuePlayInfoListPlayInfo["activityName"].isNull()) - playInfoListObject.activityName = valuePlayInfoListPlayInfo["activityName"].asString(); - if(!valuePlayInfoListPlayInfo["encryptionType"].isNull()) - playInfoListObject.encryptionType = valuePlayInfoListPlayInfo["encryptionType"].asString(); if(!valuePlayInfoListPlayInfo["downloadType"].isNull()) playInfoListObject.downloadType = valuePlayInfoListPlayInfo["downloadType"].asString(); + if(!valuePlayInfoListPlayInfo["width"].isNull()) + playInfoListObject.width = valuePlayInfoListPlayInfo["width"].asString(); + if(!valuePlayInfoListPlayInfo["definition"].isNull()) + playInfoListObject.definition = valuePlayInfoListPlayInfo["definition"].asString(); + if(!valuePlayInfoListPlayInfo["rand"].isNull()) + playInfoListObject.rand = valuePlayInfoListPlayInfo["rand"].asString(); + if(!valuePlayInfoListPlayInfo["Url"].isNull()) + playInfoListObject.url = valuePlayInfoListPlayInfo["Url"].asString(); + if(!valuePlayInfoListPlayInfo["complexity"].isNull()) + playInfoListObject.complexity = valuePlayInfoListPlayInfo["complexity"].asString(); + if(!valuePlayInfoListPlayInfo["encryption"].isNull()) + playInfoListObject.encryption = valuePlayInfoListPlayInfo["encryption"].asString(); + if(!valuePlayInfoListPlayInfo["fps"].isNull()) + playInfoListObject.fps = valuePlayInfoListPlayInfo["fps"].asString(); + if(!valuePlayInfoListPlayInfo["encryptionType"].isNull()) + playInfoListObject.encryptionType = valuePlayInfoListPlayInfo["encryptionType"].asString(); + if(!valuePlayInfoListPlayInfo["height"].isNull()) + playInfoListObject.height = valuePlayInfoListPlayInfo["height"].asString(); + if(!valuePlayInfoListPlayInfo["activityName"].isNull()) + playInfoListObject.activityName = valuePlayInfoListPlayInfo["activityName"].asString(); + if(!valuePlayInfoListPlayInfo["size"].isNull()) + playInfoListObject.size = valuePlayInfoListPlayInfo["size"].asString(); + if(!valuePlayInfoListPlayInfo["bitrate"].isNull()) + playInfoListObject.bitrate = valuePlayInfoListPlayInfo["bitrate"].asString(); + if(!valuePlayInfoListPlayInfo["plaintext"].isNull()) + playInfoListObject.plaintext = valuePlayInfoListPlayInfo["plaintext"].asString(); + if(!valuePlayInfoListPlayInfo["duration"].isNull()) + playInfoListObject.duration = valuePlayInfoListPlayInfo["duration"].asString(); + if(!valuePlayInfoListPlayInfo["format"].isNull()) + playInfoListObject.format = valuePlayInfoListPlayInfo["format"].asString(); playInfoList_.push_back(playInfoListObject); } auto allNotFoundCDNDomain = value["NotFoundCDNDomain"]["String"]; diff --git a/mts/src/model/PlayerAuthRequest.cc b/mts/src/model/PlayerAuthRequest.cc index 8694bee85..7a339fdf4 100644 --- a/mts/src/model/PlayerAuthRequest.cc +++ b/mts/src/model/PlayerAuthRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Mts::Model::PlayerAuthRequest; - -PlayerAuthRequest::PlayerAuthRequest() : - RpcServiceRequest("mts", "2014-06-18", "PlayerAuth") -{ - setMethod(HttpRequest::Method::Post); -} - -PlayerAuthRequest::~PlayerAuthRequest() -{} - -std::string PlayerAuthRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::PlayerAuthRequest; + +PlayerAuthRequest::PlayerAuthRequest() + : RpcServiceRequest("mts", "2014-06-18", "PlayerAuth") { + setMethod(HttpRequest::Method::Post); } -void PlayerAuthRequest::setResourceOwnerId(const std::string& resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); +PlayerAuthRequest::~PlayerAuthRequest() {} + +std::string PlayerAuthRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string PlayerAuthRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void PlayerAuthRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); } -void PlayerAuthRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string PlayerAuthRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string PlayerAuthRequest::getOwnerAccount()const -{ - return ownerAccount_; +void PlayerAuthRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void PlayerAuthRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string PlayerAuthRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string PlayerAuthRequest::getOwnerId()const -{ - return ownerId_; +void PlayerAuthRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void PlayerAuthRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string PlayerAuthRequest::getOwnerId() const { + return ownerId_; } -std::string PlayerAuthRequest::getAccessKeyId()const -{ - return accessKeyId_; +void PlayerAuthRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void PlayerAuthRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string PlayerAuthRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void PlayerAuthRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/PlayerAuthResult.cc b/mts/src/model/PlayerAuthResult.cc index 8a75a9ba2..ffb8b6443 100644 --- a/mts/src/model/PlayerAuthResult.cc +++ b/mts/src/model/PlayerAuthResult.cc @@ -43,14 +43,14 @@ void PlayerAuthResult::parse(const std::string &payload) for (auto valueSwitchListSwitch : allSwitchListNode) { _Switch switchListObject; - if(!valueSwitchListSwitch["State"].isNull()) - switchListObject.state = valueSwitchListSwitch["State"].asString(); if(!valueSwitchListSwitch["FunctionId"].isNull()) switchListObject.functionId = valueSwitchListSwitch["FunctionId"].asString(); - if(!valueSwitchListSwitch["SwitchId"].isNull()) - switchListObject.switchId = valueSwitchListSwitch["SwitchId"].asString(); if(!valueSwitchListSwitch["FunctionName"].isNull()) switchListObject.functionName = valueSwitchListSwitch["FunctionName"].asString(); + if(!valueSwitchListSwitch["State"].isNull()) + switchListObject.state = valueSwitchListSwitch["State"].asString(); + if(!valueSwitchListSwitch["SwitchId"].isNull()) + switchListObject.switchId = valueSwitchListSwitch["SwitchId"].asString(); switchList_.push_back(switchListObject); } if(!value["LogURL"].isNull()) diff --git a/mts/src/model/QueryAnalysisJobListRequest.cc b/mts/src/model/QueryAnalysisJobListRequest.cc index a8f4195bc..4841f0719 100644 --- a/mts/src/model/QueryAnalysisJobListRequest.cc +++ b/mts/src/model/QueryAnalysisJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryAnalysisJobListRequest; - -QueryAnalysisJobListRequest::QueryAnalysisJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryAnalysisJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryAnalysisJobListRequest::~QueryAnalysisJobListRequest() -{} - -long QueryAnalysisJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryAnalysisJobListRequest; + +QueryAnalysisJobListRequest::QueryAnalysisJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryAnalysisJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryAnalysisJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryAnalysisJobListRequest::~QueryAnalysisJobListRequest() {} + +long QueryAnalysisJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryAnalysisJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryAnalysisJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryAnalysisJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryAnalysisJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryAnalysisJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryAnalysisJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryAnalysisJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryAnalysisJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryAnalysisJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryAnalysisJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryAnalysisJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryAnalysisJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryAnalysisJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryAnalysisJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryAnalysisJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryAnalysisJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryAnalysisJobListRequest::getAnalysisJobIds()const -{ - return analysisJobIds_; +void QueryAnalysisJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryAnalysisJobListRequest::setAnalysisJobIds(const std::string& analysisJobIds) -{ - analysisJobIds_ = analysisJobIds; - setParameter("AnalysisJobIds", analysisJobIds); +std::string QueryAnalysisJobListRequest::getAnalysisJobIds() const { + return analysisJobIds_; +} + +void QueryAnalysisJobListRequest::setAnalysisJobIds(const std::string &analysisJobIds) { + analysisJobIds_ = analysisJobIds; + setParameter(std::string("AnalysisJobIds"), analysisJobIds); } diff --git a/mts/src/model/QueryAnalysisJobListResult.cc b/mts/src/model/QueryAnalysisJobListResult.cc index 96145ff95..e410bdfb8 100644 --- a/mts/src/model/QueryAnalysisJobListResult.cc +++ b/mts/src/model/QueryAnalysisJobListResult.cc @@ -43,127 +43,120 @@ void QueryAnalysisJobListResult::parse(const std::string &payload) for (auto valueAnalysisJobListAnalysisJob : allAnalysisJobListNode) { AnalysisJob analysisJobListObject; - if(!valueAnalysisJobListAnalysisJob["Id"].isNull()) - analysisJobListObject.id = valueAnalysisJobListAnalysisJob["Id"].asString(); - if(!valueAnalysisJobListAnalysisJob["UserData"].isNull()) - analysisJobListObject.userData = valueAnalysisJobListAnalysisJob["UserData"].asString(); - if(!valueAnalysisJobListAnalysisJob["State"].isNull()) - analysisJobListObject.state = valueAnalysisJobListAnalysisJob["State"].asString(); - if(!valueAnalysisJobListAnalysisJob["Code"].isNull()) - analysisJobListObject.code = valueAnalysisJobListAnalysisJob["Code"].asString(); - if(!valueAnalysisJobListAnalysisJob["Message"].isNull()) - analysisJobListObject.message = valueAnalysisJobListAnalysisJob["Message"].asString(); - if(!valueAnalysisJobListAnalysisJob["Percent"].isNull()) - analysisJobListObject.percent = std::stol(valueAnalysisJobListAnalysisJob["Percent"].asString()); if(!valueAnalysisJobListAnalysisJob["CreationTime"].isNull()) analysisJobListObject.creationTime = valueAnalysisJobListAnalysisJob["CreationTime"].asString(); - if(!valueAnalysisJobListAnalysisJob["PipelineId"].isNull()) - analysisJobListObject.pipelineId = valueAnalysisJobListAnalysisJob["PipelineId"].asString(); + if(!valueAnalysisJobListAnalysisJob["Percent"].isNull()) + analysisJobListObject.percent = std::stol(valueAnalysisJobListAnalysisJob["Percent"].asString()); + if(!valueAnalysisJobListAnalysisJob["State"].isNull()) + analysisJobListObject.state = valueAnalysisJobListAnalysisJob["State"].asString(); + if(!valueAnalysisJobListAnalysisJob["Message"].isNull()) + analysisJobListObject.message = valueAnalysisJobListAnalysisJob["Message"].asString(); if(!valueAnalysisJobListAnalysisJob["Priority"].isNull()) analysisJobListObject.priority = valueAnalysisJobListAnalysisJob["Priority"].asString(); - auto allTemplateListNode = allAnalysisJobListNode["TemplateList"]["Template"]; - for (auto allAnalysisJobListNodeTemplateListTemplate : allTemplateListNode) + if(!valueAnalysisJobListAnalysisJob["UserData"].isNull()) + analysisJobListObject.userData = valueAnalysisJobListAnalysisJob["UserData"].asString(); + if(!valueAnalysisJobListAnalysisJob["Code"].isNull()) + analysisJobListObject.code = valueAnalysisJobListAnalysisJob["Code"].asString(); + if(!valueAnalysisJobListAnalysisJob["PipelineId"].isNull()) + analysisJobListObject.pipelineId = valueAnalysisJobListAnalysisJob["PipelineId"].asString(); + if(!valueAnalysisJobListAnalysisJob["Id"].isNull()) + analysisJobListObject.id = valueAnalysisJobListAnalysisJob["Id"].asString(); + auto allTemplateListNode = valueAnalysisJobListAnalysisJob["TemplateList"]["Template"]; + for (auto valueAnalysisJobListAnalysisJobTemplateListTemplate : allTemplateListNode) { AnalysisJob::_Template templateListObject; - if(!allAnalysisJobListNodeTemplateListTemplate["Id"].isNull()) - templateListObject.id = allAnalysisJobListNodeTemplateListTemplate["Id"].asString(); - if(!allAnalysisJobListNodeTemplateListTemplate["Name"].isNull()) - templateListObject.name = allAnalysisJobListNodeTemplateListTemplate["Name"].asString(); - if(!allAnalysisJobListNodeTemplateListTemplate["State"].isNull()) - templateListObject.state = allAnalysisJobListNodeTemplateListTemplate["State"].asString(); - auto containerNode = value["Container"]; - if(!containerNode["Format"].isNull()) - templateListObject.container.format = containerNode["Format"].asString(); + if(!valueAnalysisJobListAnalysisJobTemplateListTemplate["State"].isNull()) + templateListObject.state = valueAnalysisJobListAnalysisJobTemplateListTemplate["State"].asString(); + if(!valueAnalysisJobListAnalysisJobTemplateListTemplate["Name"].isNull()) + templateListObject.name = valueAnalysisJobListAnalysisJobTemplateListTemplate["Name"].asString(); + if(!valueAnalysisJobListAnalysisJobTemplateListTemplate["Id"].isNull()) + templateListObject.id = valueAnalysisJobListAnalysisJobTemplateListTemplate["Id"].asString(); auto videoNode = value["Video"]; + if(!videoNode["Bufsize"].isNull()) + templateListObject.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["Degrain"].isNull()) + templateListObject.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + templateListObject.video.pixFmt = videoNode["PixFmt"].asString(); if(!videoNode["Codec"].isNull()) templateListObject.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - templateListObject.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - templateListObject.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - templateListObject.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - templateListObject.video.width = videoNode["Width"].asString(); if(!videoNode["Height"].isNull()) templateListObject.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - templateListObject.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Qscale"].isNull()) + templateListObject.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Bitrate"].isNull()) + templateListObject.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + templateListObject.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["Profile"].isNull()) + templateListObject.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + templateListObject.video.crf = videoNode["Crf"].asString(); if(!videoNode["Gop"].isNull()) templateListObject.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + templateListObject.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + templateListObject.video.fps = videoNode["Fps"].asString(); if(!videoNode["Preset"].isNull()) templateListObject.video.preset = videoNode["Preset"].asString(); if(!videoNode["ScanMode"].isNull()) templateListObject.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - templateListObject.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - templateListObject.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - templateListObject.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - templateListObject.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - templateListObject.video.qscale = videoNode["Qscale"].asString(); auto bitrateBndNode = videoNode["BitrateBnd"]; if(!bitrateBndNode["Max"].isNull()) templateListObject.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); if(!bitrateBndNode["Min"].isNull()) templateListObject.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto audioNode = value["Audio"]; - if(!audioNode["Codec"].isNull()) - templateListObject.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - templateListObject.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - templateListObject.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - templateListObject.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - templateListObject.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - templateListObject.audio.qscale = audioNode["Qscale"].asString(); auto transConfigNode = value["TransConfig"]; if(!transConfigNode["TransMode"].isNull()) templateListObject.transConfig.transMode = transConfigNode["TransMode"].asString(); auto muxConfigNode = value["MuxConfig"]; + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + templateListObject.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["Loop"].isNull()) + templateListObject.muxConfig.gif.loop = gifNode["Loop"].asString(); auto segmentNode = muxConfigNode["Segment"]; if(!segmentNode["Duration"].isNull()) templateListObject.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - templateListObject.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - templateListObject.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + auto audioNode = value["Audio"]; + if(!audioNode["Profile"].isNull()) + templateListObject.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Codec"].isNull()) + templateListObject.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + templateListObject.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + templateListObject.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + templateListObject.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + templateListObject.audio.bitrate = audioNode["Bitrate"].asString(); + auto containerNode = value["Container"]; + if(!containerNode["Format"].isNull()) + templateListObject.container.format = containerNode["Format"].asString(); analysisJobListObject.templateList.push_back(templateListObject); } - auto inputFileNode = value["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - analysisJobListObject.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - analysisJobListObject.inputFile.location = inputFileNode["Location"].asString(); - if(!inputFileNode["Object"].isNull()) - analysisJobListObject.inputFile.object = inputFileNode["Object"].asString(); auto analysisConfigNode = value["AnalysisConfig"]; auto qualityControlNode = analysisConfigNode["QualityControl"]; - if(!qualityControlNode["RateQuality"].isNull()) - analysisJobListObject.analysisConfig.qualityControl.rateQuality = qualityControlNode["RateQuality"].asString(); if(!qualityControlNode["MethodStreaming"].isNull()) analysisJobListObject.analysisConfig.qualityControl.methodStreaming = qualityControlNode["MethodStreaming"].asString(); + if(!qualityControlNode["RateQuality"].isNull()) + analysisJobListObject.analysisConfig.qualityControl.rateQuality = qualityControlNode["RateQuality"].asString(); auto propertiesControlNode = analysisConfigNode["PropertiesControl"]; if(!propertiesControlNode["Deinterlace"].isNull()) analysisJobListObject.analysisConfig.propertiesControl.deinterlace = propertiesControlNode["Deinterlace"].asString(); auto cropNode = propertiesControlNode["Crop"]; - if(!cropNode["Mode"].isNull()) - analysisJobListObject.analysisConfig.propertiesControl.crop.mode = cropNode["Mode"].asString(); + if(!cropNode["Top"].isNull()) + analysisJobListObject.analysisConfig.propertiesControl.crop.top = cropNode["Top"].asString(); if(!cropNode["Width"].isNull()) analysisJobListObject.analysisConfig.propertiesControl.crop.width = cropNode["Width"].asString(); if(!cropNode["Height"].isNull()) analysisJobListObject.analysisConfig.propertiesControl.crop.height = cropNode["Height"].asString(); - if(!cropNode["Top"].isNull()) - analysisJobListObject.analysisConfig.propertiesControl.crop.top = cropNode["Top"].asString(); if(!cropNode["Left"].isNull()) analysisJobListObject.analysisConfig.propertiesControl.crop.left = cropNode["Left"].asString(); + if(!cropNode["Mode"].isNull()) + analysisJobListObject.analysisConfig.propertiesControl.crop.mode = cropNode["Mode"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) analysisJobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); @@ -171,6 +164,13 @@ void QueryAnalysisJobListResult::parse(const std::string &payload) analysisJobListObject.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString(); if(!mNSMessageResultNode["ErrorCode"].isNull()) analysisJobListObject.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString(); + auto inputFileNode = value["InputFile"]; + if(!inputFileNode["Object"].isNull()) + analysisJobListObject.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + analysisJobListObject.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + analysisJobListObject.inputFile.bucket = inputFileNode["Bucket"].asString(); analysisJobList_.push_back(analysisJobListObject); } auto allNonExistAnalysisJobIds = value["NonExistAnalysisJobIds"]["String"]; diff --git a/mts/src/model/QueryAnnotationJobListRequest.cc b/mts/src/model/QueryAnnotationJobListRequest.cc index 8d1b280b4..5551be9ae 100644 --- a/mts/src/model/QueryAnnotationJobListRequest.cc +++ b/mts/src/model/QueryAnnotationJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryAnnotationJobListRequest; - -QueryAnnotationJobListRequest::QueryAnnotationJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryAnnotationJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryAnnotationJobListRequest::~QueryAnnotationJobListRequest() -{} - -long QueryAnnotationJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryAnnotationJobListRequest; + +QueryAnnotationJobListRequest::QueryAnnotationJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryAnnotationJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryAnnotationJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryAnnotationJobListRequest::~QueryAnnotationJobListRequest() {} + +long QueryAnnotationJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryAnnotationJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryAnnotationJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryAnnotationJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryAnnotationJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryAnnotationJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryAnnotationJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryAnnotationJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryAnnotationJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryAnnotationJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryAnnotationJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryAnnotationJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryAnnotationJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryAnnotationJobListRequest::getAnnotationJobIds()const -{ - return annotationJobIds_; +void QueryAnnotationJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryAnnotationJobListRequest::setAnnotationJobIds(const std::string& annotationJobIds) -{ - annotationJobIds_ = annotationJobIds; - setParameter("AnnotationJobIds", annotationJobIds); +std::string QueryAnnotationJobListRequest::getAnnotationJobIds() const { + return annotationJobIds_; } -std::string QueryAnnotationJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryAnnotationJobListRequest::setAnnotationJobIds(const std::string &annotationJobIds) { + annotationJobIds_ = annotationJobIds; + setParameter(std::string("AnnotationJobIds"), annotationJobIds); } -void QueryAnnotationJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryAnnotationJobListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryAnnotationJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/QueryAnnotationJobListResult.cc b/mts/src/model/QueryAnnotationJobListResult.cc index 6fd41f819..5a4aa3eec 100644 --- a/mts/src/model/QueryAnnotationJobListResult.cc +++ b/mts/src/model/QueryAnnotationJobListResult.cc @@ -43,27 +43,27 @@ void QueryAnnotationJobListResult::parse(const std::string &payload) for (auto valueAnnotationJobListAnnotationJob : allAnnotationJobListNode) { AnnotationJob annotationJobListObject; - if(!valueAnnotationJobListAnnotationJob["Id"].isNull()) - annotationJobListObject.id = valueAnnotationJobListAnnotationJob["Id"].asString(); - if(!valueAnnotationJobListAnnotationJob["UserData"].isNull()) - annotationJobListObject.userData = valueAnnotationJobListAnnotationJob["UserData"].asString(); - if(!valueAnnotationJobListAnnotationJob["PipelineId"].isNull()) - annotationJobListObject.pipelineId = valueAnnotationJobListAnnotationJob["PipelineId"].asString(); + if(!valueAnnotationJobListAnnotationJob["CreationTime"].isNull()) + annotationJobListObject.creationTime = valueAnnotationJobListAnnotationJob["CreationTime"].asString(); if(!valueAnnotationJobListAnnotationJob["State"].isNull()) annotationJobListObject.state = valueAnnotationJobListAnnotationJob["State"].asString(); + if(!valueAnnotationJobListAnnotationJob["UserData"].isNull()) + annotationJobListObject.userData = valueAnnotationJobListAnnotationJob["UserData"].asString(); if(!valueAnnotationJobListAnnotationJob["Code"].isNull()) annotationJobListObject.code = valueAnnotationJobListAnnotationJob["Code"].asString(); if(!valueAnnotationJobListAnnotationJob["Message"].isNull()) annotationJobListObject.message = valueAnnotationJobListAnnotationJob["Message"].asString(); - if(!valueAnnotationJobListAnnotationJob["CreationTime"].isNull()) - annotationJobListObject.creationTime = valueAnnotationJobListAnnotationJob["CreationTime"].asString(); + if(!valueAnnotationJobListAnnotationJob["PipelineId"].isNull()) + annotationJobListObject.pipelineId = valueAnnotationJobListAnnotationJob["PipelineId"].asString(); + if(!valueAnnotationJobListAnnotationJob["Id"].isNull()) + annotationJobListObject.id = valueAnnotationJobListAnnotationJob["Id"].asString(); auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - annotationJobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - annotationJobListObject.input.location = inputNode["Location"].asString(); if(!inputNode["Object"].isNull()) annotationJobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + annotationJobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + annotationJobListObject.input.bucket = inputNode["Bucket"].asString(); auto videoAnnotationResultNode = value["VideoAnnotationResult"]; if(!videoAnnotationResultNode["Details"].isNull()) annotationJobListObject.videoAnnotationResult.details = videoAnnotationResultNode["Details"].asString(); @@ -71,10 +71,10 @@ void QueryAnnotationJobListResult::parse(const std::string &payload) for (auto videoAnnotationResultNodeAnnotationsAnnotation : allAnnotationsNode) { AnnotationJob::VideoAnnotationResult::Annotation annotationObject; - if(!videoAnnotationResultNodeAnnotationsAnnotation["Label"].isNull()) - annotationObject.label = videoAnnotationResultNodeAnnotationsAnnotation["Label"].asString(); if(!videoAnnotationResultNodeAnnotationsAnnotation["Score"].isNull()) annotationObject.score = videoAnnotationResultNodeAnnotationsAnnotation["Score"].asString(); + if(!videoAnnotationResultNodeAnnotationsAnnotation["Label"].isNull()) + annotationObject.label = videoAnnotationResultNodeAnnotationsAnnotation["Label"].asString(); annotationJobListObject.videoAnnotationResult.annotations.push_back(annotationObject); } annotationJobList_.push_back(annotationJobListObject); diff --git a/mts/src/model/QueryAsrJobListRequest.cc b/mts/src/model/QueryAsrJobListRequest.cc index 968fc2e72..e4cfe7b6d 100644 --- a/mts/src/model/QueryAsrJobListRequest.cc +++ b/mts/src/model/QueryAsrJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryAsrJobListRequest; - -QueryAsrJobListRequest::QueryAsrJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryAsrJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryAsrJobListRequest::~QueryAsrJobListRequest() -{} - -long QueryAsrJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryAsrJobListRequest; + +QueryAsrJobListRequest::QueryAsrJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryAsrJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryAsrJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryAsrJobListRequest::~QueryAsrJobListRequest() {} + +long QueryAsrJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryAsrJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryAsrJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryAsrJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryAsrJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryAsrJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryAsrJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryAsrJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryAsrJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryAsrJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryAsrJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryAsrJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryAsrJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryAsrJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryAsrJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryAsrJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryAsrJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryAsrJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryAsrJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryAsrJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryAsrJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryAsrJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryAsrJobListResult.cc b/mts/src/model/QueryAsrJobListResult.cc index 8425af580..69038df51 100644 --- a/mts/src/model/QueryAsrJobListResult.cc +++ b/mts/src/model/QueryAsrJobListResult.cc @@ -43,30 +43,30 @@ void QueryAsrJobListResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["Id"].isNull()) - jobListObject.id = valueJobListJob["Id"].asString(); - if(!valueJobListJob["UserData"].isNull()) - jobListObject.userData = valueJobListJob["UserData"].asString(); - if(!valueJobListJob["PipelineId"].isNull()) - jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["CreationTime"].isNull()) + jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); if(!valueJobListJob["State"].isNull()) jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["UserData"].isNull()) + jobListObject.userData = valueJobListJob["UserData"].asString(); if(!valueJobListJob["Code"].isNull()) jobListObject.code = valueJobListJob["Code"].asString(); if(!valueJobListJob["Message"].isNull()) jobListObject.message = valueJobListJob["Message"].asString(); - if(!valueJobListJob["CreationTime"].isNull()) - jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - jobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - jobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - jobListObject.input.object = inputNode["Object"].asString(); + if(!valueJobListJob["PipelineId"].isNull()) + jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["Id"].isNull()) + jobListObject.id = valueJobListJob["Id"].asString(); auto asrConfigNode = value["AsrConfig"]; if(!asrConfigNode["Scene"].isNull()) jobListObject.asrConfig.scene = asrConfigNode["Scene"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + jobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + jobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + jobListObject.input.bucket = inputNode["Bucket"].asString(); auto asrResultNode = value["AsrResult"]; if(!asrResultNode["Duration"].isNull()) jobListObject.asrResult.duration = asrResultNode["Duration"].asString(); @@ -74,16 +74,16 @@ void QueryAsrJobListResult::parse(const std::string &payload) for (auto asrResultNodeAsrTextListAsrText : allAsrTextListNode) { Job::AsrResult::AsrText asrTextObject; - if(!asrResultNodeAsrTextListAsrText["StartTime"].isNull()) - asrTextObject.startTime = std::stoi(asrResultNodeAsrTextListAsrText["StartTime"].asString()); if(!asrResultNodeAsrTextListAsrText["EndTime"].isNull()) asrTextObject.endTime = asrResultNodeAsrTextListAsrText["EndTime"].asString(); + if(!asrResultNodeAsrTextListAsrText["StartTime"].isNull()) + asrTextObject.startTime = std::stoi(asrResultNodeAsrTextListAsrText["StartTime"].asString()); if(!asrResultNodeAsrTextListAsrText["ChannelId"].isNull()) asrTextObject.channelId = asrResultNodeAsrTextListAsrText["ChannelId"].asString(); - if(!asrResultNodeAsrTextListAsrText["SpeechRate"].isNull()) - asrTextObject.speechRate = asrResultNodeAsrTextListAsrText["SpeechRate"].asString(); if(!asrResultNodeAsrTextListAsrText["Text"].isNull()) asrTextObject.text = asrResultNodeAsrTextListAsrText["Text"].asString(); + if(!asrResultNodeAsrTextListAsrText["SpeechRate"].isNull()) + asrTextObject.speechRate = asrResultNodeAsrTextListAsrText["SpeechRate"].asString(); jobListObject.asrResult.asrTextList.push_back(asrTextObject); } jobList_.push_back(jobListObject); diff --git a/mts/src/model/QueryAsrPipelineListRequest.cc b/mts/src/model/QueryAsrPipelineListRequest.cc index c3a658dab..d934df3ff 100644 --- a/mts/src/model/QueryAsrPipelineListRequest.cc +++ b/mts/src/model/QueryAsrPipelineListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryAsrPipelineListRequest; - -QueryAsrPipelineListRequest::QueryAsrPipelineListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryAsrPipelineList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryAsrPipelineListRequest::~QueryAsrPipelineListRequest() -{} - -long QueryAsrPipelineListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryAsrPipelineListRequest; + +QueryAsrPipelineListRequest::QueryAsrPipelineListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryAsrPipelineList") { + setMethod(HttpRequest::Method::Post); } -void QueryAsrPipelineListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryAsrPipelineListRequest::~QueryAsrPipelineListRequest() {} + +long QueryAsrPipelineListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryAsrPipelineListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryAsrPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryAsrPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryAsrPipelineListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryAsrPipelineListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryAsrPipelineListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryAsrPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryAsrPipelineListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryAsrPipelineListRequest::getOwnerId()const -{ - return ownerId_; +void QueryAsrPipelineListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryAsrPipelineListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryAsrPipelineListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryAsrPipelineListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryAsrPipelineListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryAsrPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryAsrPipelineListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryAsrPipelineListRequest::getPipelineIds()const -{ - return pipelineIds_; +void QueryAsrPipelineListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryAsrPipelineListRequest::setPipelineIds(const std::string& pipelineIds) -{ - pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); +std::string QueryAsrPipelineListRequest::getPipelineIds() const { + return pipelineIds_; +} + +void QueryAsrPipelineListRequest::setPipelineIds(const std::string &pipelineIds) { + pipelineIds_ = pipelineIds; + setParameter(std::string("PipelineIds"), pipelineIds); } diff --git a/mts/src/model/QueryAsrPipelineListResult.cc b/mts/src/model/QueryAsrPipelineListResult.cc index 23bf91230..4cfc99f0f 100644 --- a/mts/src/model/QueryAsrPipelineListResult.cc +++ b/mts/src/model/QueryAsrPipelineListResult.cc @@ -43,19 +43,19 @@ void QueryAsrPipelineListResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["Id"].isNull()) - pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); if(!valuePipelineListPipeline["State"].isNull()) pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["Priority"].isNull()) pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["Id"].isNull()) + pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); auto notifyConfigNode = value["NotifyConfig"]; - if(!notifyConfigNode["Topic"].isNull()) - pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); if(!notifyConfigNode["QueueName"].isNull()) pipelineListObject.notifyConfig.queueName = notifyConfigNode["QueueName"].asString(); + if(!notifyConfigNode["Topic"].isNull()) + pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); pipelineList_.push_back(pipelineListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryAuthConfigRequest.cc b/mts/src/model/QueryAuthConfigRequest.cc index 3f5db13d8..60da3e78c 100644 --- a/mts/src/model/QueryAuthConfigRequest.cc +++ b/mts/src/model/QueryAuthConfigRequest.cc @@ -1,84 +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 - -using AlibabaCloud::Mts::Model::QueryAuthConfigRequest; - -QueryAuthConfigRequest::QueryAuthConfigRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryAuthConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryAuthConfigRequest::~QueryAuthConfigRequest() -{} - -std::string QueryAuthConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryAuthConfigRequest; + +QueryAuthConfigRequest::QueryAuthConfigRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryAuthConfig") { + setMethod(HttpRequest::Method::Post); } -void QueryAuthConfigRequest::setResourceOwnerId(const std::string& resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); +QueryAuthConfigRequest::~QueryAuthConfigRequest() {} + +std::string QueryAuthConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryAuthConfigRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryAuthConfigRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); } -void QueryAuthConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryAuthConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryAuthConfigRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryAuthConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryAuthConfigRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryAuthConfigRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string QueryAuthConfigRequest::getOwnerId()const -{ - return ownerId_; +void QueryAuthConfigRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryAuthConfigRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string QueryAuthConfigRequest::getOwnerId() const { + return ownerId_; } -std::string QueryAuthConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryAuthConfigRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void QueryAuthConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryAuthConfigRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryAuthConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/QueryAuthConfigResult.cc b/mts/src/model/QueryAuthConfigResult.cc index b6f5a08aa..74d8da6d3 100644 --- a/mts/src/model/QueryAuthConfigResult.cc +++ b/mts/src/model/QueryAuthConfigResult.cc @@ -39,10 +39,10 @@ void QueryAuthConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Key1"].isNull()) - key1_ = value["Key1"].asString(); if(!value["Key2"].isNull()) key2_ = value["Key2"].asString(); + if(!value["Key1"].isNull()) + key1_ = value["Key1"].asString(); } diff --git a/mts/src/model/QueryCensorJobListRequest.cc b/mts/src/model/QueryCensorJobListRequest.cc index 1015c687d..d2ce44fae 100644 --- a/mts/src/model/QueryCensorJobListRequest.cc +++ b/mts/src/model/QueryCensorJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryCensorJobListRequest; - -QueryCensorJobListRequest::QueryCensorJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryCensorJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryCensorJobListRequest::~QueryCensorJobListRequest() -{} - -long QueryCensorJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryCensorJobListRequest; + +QueryCensorJobListRequest::QueryCensorJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryCensorJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryCensorJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryCensorJobListRequest::~QueryCensorJobListRequest() {} + +long QueryCensorJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryCensorJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryCensorJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryCensorJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryCensorJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryCensorJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryCensorJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryCensorJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryCensorJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryCensorJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryCensorJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryCensorJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryCensorJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryCensorJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryCensorJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryCensorJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryCensorJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryCensorJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryCensorJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryCensorJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryCensorJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryCensorJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryCensorJobListResult.cc b/mts/src/model/QueryCensorJobListResult.cc index b63316682..81f0fdbc8 100644 --- a/mts/src/model/QueryCensorJobListResult.cc +++ b/mts/src/model/QueryCensorJobListResult.cc @@ -43,134 +43,134 @@ void QueryCensorJobListResult::parse(const std::string &payload) for (auto valueCensorJobListCensorJob : allCensorJobListNode) { CensorJob censorJobListObject; - if(!valueCensorJobListCensorJob["Id"].isNull()) - censorJobListObject.id = valueCensorJobListCensorJob["Id"].asString(); - if(!valueCensorJobListCensorJob["UserData"].isNull()) - censorJobListObject.userData = valueCensorJobListCensorJob["UserData"].asString(); - if(!valueCensorJobListCensorJob["PipelineId"].isNull()) - censorJobListObject.pipelineId = valueCensorJobListCensorJob["PipelineId"].asString(); - if(!valueCensorJobListCensorJob["State"].isNull()) - censorJobListObject.state = valueCensorJobListCensorJob["State"].asString(); - if(!valueCensorJobListCensorJob["Code"].isNull()) - censorJobListObject.code = valueCensorJobListCensorJob["Code"].asString(); - if(!valueCensorJobListCensorJob["Message"].isNull()) - censorJobListObject.message = valueCensorJobListCensorJob["Message"].asString(); if(!valueCensorJobListCensorJob["CreationTime"].isNull()) censorJobListObject.creationTime = valueCensorJobListCensorJob["CreationTime"].asString(); + if(!valueCensorJobListCensorJob["State"].isNull()) + censorJobListObject.state = valueCensorJobListCensorJob["State"].asString(); if(!valueCensorJobListCensorJob["TitleCensorResult"].isNull()) censorJobListObject.titleCensorResult = valueCensorJobListCensorJob["TitleCensorResult"].asString(); - if(!valueCensorJobListCensorJob["DescCensorResult"].isNull()) - censorJobListObject.descCensorResult = valueCensorJobListCensorJob["DescCensorResult"].asString(); + if(!valueCensorJobListCensorJob["Message"].isNull()) + censorJobListObject.message = valueCensorJobListCensorJob["Message"].asString(); if(!valueCensorJobListCensorJob["BarrageCensorResult"].isNull()) censorJobListObject.barrageCensorResult = valueCensorJobListCensorJob["BarrageCensorResult"].asString(); + if(!valueCensorJobListCensorJob["DescCensorResult"].isNull()) + censorJobListObject.descCensorResult = valueCensorJobListCensorJob["DescCensorResult"].asString(); if(!valueCensorJobListCensorJob["ResultSaveObject"].isNull()) censorJobListObject.resultSaveObject = valueCensorJobListCensorJob["ResultSaveObject"].asString(); - auto allImageCensorResultsNode = allCensorJobListNode["ImageCensorResults"]["ImageCensorResult"]; - for (auto allCensorJobListNodeImageCensorResultsImageCensorResult : allImageCensorResultsNode) + if(!valueCensorJobListCensorJob["UserData"].isNull()) + censorJobListObject.userData = valueCensorJobListCensorJob["UserData"].asString(); + if(!valueCensorJobListCensorJob["Code"].isNull()) + censorJobListObject.code = valueCensorJobListCensorJob["Code"].asString(); + if(!valueCensorJobListCensorJob["PipelineId"].isNull()) + censorJobListObject.pipelineId = valueCensorJobListCensorJob["PipelineId"].asString(); + if(!valueCensorJobListCensorJob["Id"].isNull()) + censorJobListObject.id = valueCensorJobListCensorJob["Id"].asString(); + auto allImageCensorResultsNode = valueCensorJobListCensorJob["ImageCensorResults"]["ImageCensorResult"]; + for (auto valueCensorJobListCensorJobImageCensorResultsImageCensorResult : allImageCensorResultsNode) { CensorJob::ImageCensorResult imageCensorResultsObject; - if(!allCensorJobListNodeImageCensorResultsImageCensorResult["ImageLocation"].isNull()) - imageCensorResultsObject.imageLocation = allCensorJobListNodeImageCensorResultsImageCensorResult["ImageLocation"].asString(); - if(!allCensorJobListNodeImageCensorResultsImageCensorResult["ImageBucket"].isNull()) - imageCensorResultsObject.imageBucket = allCensorJobListNodeImageCensorResultsImageCensorResult["ImageBucket"].asString(); - if(!allCensorJobListNodeImageCensorResultsImageCensorResult["ImageObject"].isNull()) - imageCensorResultsObject.imageObject = allCensorJobListNodeImageCensorResultsImageCensorResult["ImageObject"].asString(); - if(!allCensorJobListNodeImageCensorResultsImageCensorResult["Result"].isNull()) - imageCensorResultsObject.result = allCensorJobListNodeImageCensorResultsImageCensorResult["Result"].asString(); + if(!valueCensorJobListCensorJobImageCensorResultsImageCensorResult["ImageBucket"].isNull()) + imageCensorResultsObject.imageBucket = valueCensorJobListCensorJobImageCensorResultsImageCensorResult["ImageBucket"].asString(); + if(!valueCensorJobListCensorJobImageCensorResultsImageCensorResult["Result"].isNull()) + imageCensorResultsObject.result = valueCensorJobListCensorJobImageCensorResultsImageCensorResult["Result"].asString(); + if(!valueCensorJobListCensorJobImageCensorResultsImageCensorResult["ImageLocation"].isNull()) + imageCensorResultsObject.imageLocation = valueCensorJobListCensorJobImageCensorResultsImageCensorResult["ImageLocation"].asString(); + if(!valueCensorJobListCensorJobImageCensorResultsImageCensorResult["ImageObject"].isNull()) + imageCensorResultsObject.imageObject = valueCensorJobListCensorJobImageCensorResultsImageCensorResult["ImageObject"].asString(); censorJobListObject.imageCensorResults.push_back(imageCensorResultsObject); } + auto censorTerrorismResultNode = value["CensorTerrorismResult"]; + if(!censorTerrorismResultNode["Suggestion"].isNull()) + censorJobListObject.censorTerrorismResult.suggestion = censorTerrorismResultNode["Suggestion"].asString(); + if(!censorTerrorismResultNode["AverageScore"].isNull()) + censorJobListObject.censorTerrorismResult.averageScore = censorTerrorismResultNode["AverageScore"].asString(); + if(!censorTerrorismResultNode["Label"].isNull()) + censorJobListObject.censorTerrorismResult.label = censorTerrorismResultNode["Label"].asString(); + if(!censorTerrorismResultNode["MaxScore"].isNull()) + censorJobListObject.censorTerrorismResult.maxScore = censorTerrorismResultNode["MaxScore"].asString(); + auto allTerrorismTopListNode = censorTerrorismResultNode["TerrorismTopList"]["Top"]; + for (auto censorTerrorismResultNodeTerrorismTopListTop : allTerrorismTopListNode) + { + CensorJob::CensorTerrorismResult::Top topObject; + if(!censorTerrorismResultNodeTerrorismTopListTop["Index"].isNull()) + topObject.index = censorTerrorismResultNodeTerrorismTopListTop["Index"].asString(); + if(!censorTerrorismResultNodeTerrorismTopListTop["Score"].isNull()) + topObject.score = censorTerrorismResultNodeTerrorismTopListTop["Score"].asString(); + if(!censorTerrorismResultNodeTerrorismTopListTop["Timestamp"].isNull()) + topObject.timestamp = censorTerrorismResultNodeTerrorismTopListTop["Timestamp"].asString(); + if(!censorTerrorismResultNodeTerrorismTopListTop["Object"].isNull()) + topObject.object = censorTerrorismResultNodeTerrorismTopListTop["Object"].asString(); + if(!censorTerrorismResultNodeTerrorismTopListTop["Label"].isNull()) + topObject.label = censorTerrorismResultNodeTerrorismTopListTop["Label"].asString(); + censorJobListObject.censorTerrorismResult.terrorismTopList.push_back(topObject); + } + auto allTerrorismCounterListNode = censorTerrorismResultNode["TerrorismCounterList"]["Counter"]; + for (auto censorTerrorismResultNodeTerrorismCounterListCounter : allTerrorismCounterListNode) + { + CensorJob::CensorTerrorismResult::Counter counterObject; + if(!censorTerrorismResultNodeTerrorismCounterListCounter["Label"].isNull()) + counterObject.label = censorTerrorismResultNodeTerrorismCounterListCounter["Label"].asString(); + if(!censorTerrorismResultNodeTerrorismCounterListCounter["Count"].isNull()) + counterObject.count = std::stoi(censorTerrorismResultNodeTerrorismCounterListCounter["Count"].asString()); + censorJobListObject.censorTerrorismResult.terrorismCounterList.push_back(counterObject); + } auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - censorJobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - censorJobListObject.input.location = inputNode["Location"].asString(); if(!inputNode["Object"].isNull()) censorJobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + censorJobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + censorJobListObject.input.bucket = inputNode["Bucket"].asString(); auto censorConfigNode = value["CensorConfig"]; if(!censorConfigNode["Interval"].isNull()) censorJobListObject.censorConfig.interval = censorConfigNode["Interval"].asString(); - if(!censorConfigNode["BizType"].isNull()) - censorJobListObject.censorConfig.bizType = censorConfigNode["BizType"].asString(); if(!censorConfigNode["SaveType"].isNull()) censorJobListObject.censorConfig.saveType = censorConfigNode["SaveType"].asString(); if(!censorConfigNode["Scenes"].isNull()) censorJobListObject.censorConfig.scenes = censorConfigNode["Scenes"].asString(); + if(!censorConfigNode["BizType"].isNull()) + censorJobListObject.censorConfig.bizType = censorConfigNode["BizType"].asString(); auto outputFileNode = censorConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - censorJobListObject.censorConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - censorJobListObject.censorConfig.outputFile.location = outputFileNode["Location"].asString(); if(!outputFileNode["Object"].isNull()) censorJobListObject.censorConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + censorJobListObject.censorConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + censorJobListObject.censorConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); auto censorPornResultNode = value["CensorPornResult"]; - if(!censorPornResultNode["Label"].isNull()) - censorJobListObject.censorPornResult.label = censorPornResultNode["Label"].asString(); if(!censorPornResultNode["Suggestion"].isNull()) censorJobListObject.censorPornResult.suggestion = censorPornResultNode["Suggestion"].asString(); - if(!censorPornResultNode["MaxScore"].isNull()) - censorJobListObject.censorPornResult.maxScore = censorPornResultNode["MaxScore"].asString(); if(!censorPornResultNode["AverageScore"].isNull()) censorJobListObject.censorPornResult.averageScore = censorPornResultNode["AverageScore"].asString(); + if(!censorPornResultNode["Label"].isNull()) + censorJobListObject.censorPornResult.label = censorPornResultNode["Label"].asString(); + if(!censorPornResultNode["MaxScore"].isNull()) + censorJobListObject.censorPornResult.maxScore = censorPornResultNode["MaxScore"].asString(); auto allPornCounterListNode = censorPornResultNode["PornCounterList"]["Counter"]; for (auto censorPornResultNodePornCounterListCounter : allPornCounterListNode) { - CensorJob::CensorPornResult::Counter counterObject; - if(!censorPornResultNodePornCounterListCounter["Count"].isNull()) - counterObject.count = std::stoi(censorPornResultNodePornCounterListCounter["Count"].asString()); + CensorJob::CensorPornResult::Counter1 counter1Object; if(!censorPornResultNodePornCounterListCounter["Label"].isNull()) - counterObject.label = censorPornResultNodePornCounterListCounter["Label"].asString(); - censorJobListObject.censorPornResult.pornCounterList.push_back(counterObject); + counter1Object.label = censorPornResultNodePornCounterListCounter["Label"].asString(); + if(!censorPornResultNodePornCounterListCounter["Count"].isNull()) + counter1Object.count = std::stoi(censorPornResultNodePornCounterListCounter["Count"].asString()); + censorJobListObject.censorPornResult.pornCounterList.push_back(counter1Object); } auto allPornTopListNode = censorPornResultNode["PornTopList"]["Top"]; for (auto censorPornResultNodePornTopListTop : allPornTopListNode) { - CensorJob::CensorPornResult::Top topObject; - if(!censorPornResultNodePornTopListTop["Label"].isNull()) - topObject.label = censorPornResultNodePornTopListTop["Label"].asString(); - if(!censorPornResultNodePornTopListTop["Score"].isNull()) - topObject.score = censorPornResultNodePornTopListTop["Score"].asString(); - if(!censorPornResultNodePornTopListTop["Timestamp"].isNull()) - topObject.timestamp = censorPornResultNodePornTopListTop["Timestamp"].asString(); + CensorJob::CensorPornResult::Top2 top2Object; if(!censorPornResultNodePornTopListTop["Index"].isNull()) - topObject.index = censorPornResultNodePornTopListTop["Index"].asString(); + top2Object.index = censorPornResultNodePornTopListTop["Index"].asString(); + if(!censorPornResultNodePornTopListTop["Score"].isNull()) + top2Object.score = censorPornResultNodePornTopListTop["Score"].asString(); + if(!censorPornResultNodePornTopListTop["Timestamp"].isNull()) + top2Object.timestamp = censorPornResultNodePornTopListTop["Timestamp"].asString(); if(!censorPornResultNodePornTopListTop["Object"].isNull()) - topObject.object = censorPornResultNodePornTopListTop["Object"].asString(); - censorJobListObject.censorPornResult.pornTopList.push_back(topObject); - } - auto censorTerrorismResultNode = value["CensorTerrorismResult"]; - if(!censorTerrorismResultNode["Label"].isNull()) - censorJobListObject.censorTerrorismResult.label = censorTerrorismResultNode["Label"].asString(); - if(!censorTerrorismResultNode["Suggestion"].isNull()) - censorJobListObject.censorTerrorismResult.suggestion = censorTerrorismResultNode["Suggestion"].asString(); - if(!censorTerrorismResultNode["MaxScore"].isNull()) - censorJobListObject.censorTerrorismResult.maxScore = censorTerrorismResultNode["MaxScore"].asString(); - if(!censorTerrorismResultNode["AverageScore"].isNull()) - censorJobListObject.censorTerrorismResult.averageScore = censorTerrorismResultNode["AverageScore"].asString(); - auto allTerrorismCounterListNode = censorTerrorismResultNode["TerrorismCounterList"]["Counter"]; - for (auto censorTerrorismResultNodeTerrorismCounterListCounter : allTerrorismCounterListNode) - { - CensorJob::CensorTerrorismResult::Counter1 counter1Object; - if(!censorTerrorismResultNodeTerrorismCounterListCounter["Count"].isNull()) - counter1Object.count = std::stoi(censorTerrorismResultNodeTerrorismCounterListCounter["Count"].asString()); - if(!censorTerrorismResultNodeTerrorismCounterListCounter["Label"].isNull()) - counter1Object.label = censorTerrorismResultNodeTerrorismCounterListCounter["Label"].asString(); - censorJobListObject.censorTerrorismResult.terrorismCounterList.push_back(counter1Object); - } - auto allTerrorismTopListNode = censorTerrorismResultNode["TerrorismTopList"]["Top"]; - for (auto censorTerrorismResultNodeTerrorismTopListTop : allTerrorismTopListNode) - { - CensorJob::CensorTerrorismResult::Top2 top2Object; - if(!censorTerrorismResultNodeTerrorismTopListTop["Label"].isNull()) - top2Object.label = censorTerrorismResultNodeTerrorismTopListTop["Label"].asString(); - if(!censorTerrorismResultNodeTerrorismTopListTop["Score"].isNull()) - top2Object.score = censorTerrorismResultNodeTerrorismTopListTop["Score"].asString(); - if(!censorTerrorismResultNodeTerrorismTopListTop["Timestamp"].isNull()) - top2Object.timestamp = censorTerrorismResultNodeTerrorismTopListTop["Timestamp"].asString(); - if(!censorTerrorismResultNodeTerrorismTopListTop["Index"].isNull()) - top2Object.index = censorTerrorismResultNodeTerrorismTopListTop["Index"].asString(); - if(!censorTerrorismResultNodeTerrorismTopListTop["Object"].isNull()) - top2Object.object = censorTerrorismResultNodeTerrorismTopListTop["Object"].asString(); - censorJobListObject.censorTerrorismResult.terrorismTopList.push_back(top2Object); + top2Object.object = censorPornResultNodePornTopListTop["Object"].asString(); + if(!censorPornResultNodePornTopListTop["Label"].isNull()) + top2Object.label = censorPornResultNodePornTopListTop["Label"].asString(); + censorJobListObject.censorPornResult.pornTopList.push_back(top2Object); } censorJobList_.push_back(censorJobListObject); } diff --git a/mts/src/model/QueryCensorPipelineListRequest.cc b/mts/src/model/QueryCensorPipelineListRequest.cc index c91ddf0a8..b9e60fdaa 100644 --- a/mts/src/model/QueryCensorPipelineListRequest.cc +++ b/mts/src/model/QueryCensorPipelineListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryCensorPipelineListRequest; - -QueryCensorPipelineListRequest::QueryCensorPipelineListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryCensorPipelineList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryCensorPipelineListRequest::~QueryCensorPipelineListRequest() -{} - -long QueryCensorPipelineListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryCensorPipelineListRequest; + +QueryCensorPipelineListRequest::QueryCensorPipelineListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryCensorPipelineList") { + setMethod(HttpRequest::Method::Post); } -void QueryCensorPipelineListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryCensorPipelineListRequest::~QueryCensorPipelineListRequest() {} + +long QueryCensorPipelineListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryCensorPipelineListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryCensorPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryCensorPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryCensorPipelineListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryCensorPipelineListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryCensorPipelineListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryCensorPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryCensorPipelineListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryCensorPipelineListRequest::getOwnerId()const -{ - return ownerId_; +void QueryCensorPipelineListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryCensorPipelineListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryCensorPipelineListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryCensorPipelineListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryCensorPipelineListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryCensorPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryCensorPipelineListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryCensorPipelineListRequest::getPipelineIds()const -{ - return pipelineIds_; +void QueryCensorPipelineListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryCensorPipelineListRequest::setPipelineIds(const std::string& pipelineIds) -{ - pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); +std::string QueryCensorPipelineListRequest::getPipelineIds() const { + return pipelineIds_; +} + +void QueryCensorPipelineListRequest::setPipelineIds(const std::string &pipelineIds) { + pipelineIds_ = pipelineIds; + setParameter(std::string("PipelineIds"), pipelineIds); } diff --git a/mts/src/model/QueryCensorPipelineListResult.cc b/mts/src/model/QueryCensorPipelineListResult.cc index d38e3c5fc..517a68b4c 100644 --- a/mts/src/model/QueryCensorPipelineListResult.cc +++ b/mts/src/model/QueryCensorPipelineListResult.cc @@ -43,14 +43,14 @@ void QueryCensorPipelineListResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["Id"].isNull()) - pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); if(!valuePipelineListPipeline["State"].isNull()) pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["Priority"].isNull()) pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["Id"].isNull()) + pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); auto notifyConfigNode = value["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/QueryComplexJobListRequest.cc b/mts/src/model/QueryComplexJobListRequest.cc index 5ef4fadc7..89620aff5 100644 --- a/mts/src/model/QueryComplexJobListRequest.cc +++ b/mts/src/model/QueryComplexJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryComplexJobListRequest; - -QueryComplexJobListRequest::QueryComplexJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryComplexJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryComplexJobListRequest::~QueryComplexJobListRequest() -{} - -long QueryComplexJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryComplexJobListRequest; + +QueryComplexJobListRequest::QueryComplexJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryComplexJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryComplexJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryComplexJobListRequest::~QueryComplexJobListRequest() {} + +long QueryComplexJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryComplexJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryComplexJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryComplexJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryComplexJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryComplexJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryComplexJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryComplexJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryComplexJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryComplexJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryComplexJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryComplexJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryComplexJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryComplexJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryComplexJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryComplexJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryComplexJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryComplexJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryComplexJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryComplexJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryComplexJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryComplexJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryComplexJobListResult.cc b/mts/src/model/QueryComplexJobListResult.cc index 0dc85a056..d614f496a 100644 --- a/mts/src/model/QueryComplexJobListResult.cc +++ b/mts/src/model/QueryComplexJobListResult.cc @@ -43,50 +43,24 @@ void QueryComplexJobListResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["JobId"].isNull()) - jobListObject.jobId = valueJobListJob["JobId"].asString(); - if(!valueJobListJob["State"].isNull()) - jobListObject.state = valueJobListJob["State"].asString(); - if(!valueJobListJob["Code"].isNull()) - jobListObject.code = valueJobListJob["Code"].asString(); - if(!valueJobListJob["Message"].isNull()) - jobListObject.message = valueJobListJob["Message"].asString(); - if(!valueJobListJob["Percent"].isNull()) - jobListObject.percent = std::stol(valueJobListJob["Percent"].asString()); - if(!valueJobListJob["PipelineId"].isNull()) - jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); if(!valueJobListJob["CreationTime"].isNull()) jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); + if(!valueJobListJob["Percent"].isNull()) + jobListObject.percent = std::stol(valueJobListJob["Percent"].asString()); if(!valueJobListJob["FinishTime"].isNull()) jobListObject.finishTime = valueJobListJob["FinishTime"].asString(); - auto allInputsNode = allJobListNode["Inputs"]["InputsItem"]; - for (auto allJobListNodeInputsInputsItem : allInputsNode) - { - Job::InputsItem inputsObject; - auto allEditingInputsNode = allInputsNode["EditingInputs"]["EditingInput"]; - for (auto allInputsNodeEditingInputsEditingInput : allEditingInputsNode) - { - Job::InputsItem::EditingInput editingInputsObject; - if(!allInputsNodeEditingInputsEditingInput["Id"].isNull()) - editingInputsObject.id = allInputsNodeEditingInputsEditingInput["Id"].asString(); - auto inputFileNode = value["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - editingInputsObject.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - editingInputsObject.inputFile.location = inputFileNode["Location"].asString(); - if(!inputFileNode["Object"].isNull()) - editingInputsObject.inputFile.object = inputFileNode["Object"].asString(); - auto inputConfigNode = value["InputConfig"]; - if(!inputConfigNode["DeinterlaceMethod"].isNull()) - editingInputsObject.inputConfig.deinterlaceMethod = inputConfigNode["DeinterlaceMethod"].asString(); - if(!inputConfigNode["IsNormalSar"].isNull()) - editingInputsObject.inputConfig.isNormalSar = inputConfigNode["IsNormalSar"].asString(); - inputsObject.editingInputs.push_back(editingInputsObject); - } - jobListObject.inputs.push_back(inputsObject); - } - auto allComplexEditingConfigsNode = allJobListNode["ComplexEditingConfigs"]["ComplexEditingConfigsItem"]; - for (auto allJobListNodeComplexEditingConfigsComplexEditingConfigsItem : allComplexEditingConfigsNode) + if(!valueJobListJob["State"].isNull()) + jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["Message"].isNull()) + jobListObject.message = valueJobListJob["Message"].asString(); + if(!valueJobListJob["JobId"].isNull()) + jobListObject.jobId = valueJobListJob["JobId"].asString(); + if(!valueJobListJob["Code"].isNull()) + jobListObject.code = valueJobListJob["Code"].asString(); + if(!valueJobListJob["PipelineId"].isNull()) + jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + auto allComplexEditingConfigsNode = valueJobListJob["ComplexEditingConfigs"]["ComplexEditingConfigsItem"]; + for (auto valueJobListJobComplexEditingConfigsComplexEditingConfigsItem : allComplexEditingConfigsNode) { Job::ComplexEditingConfigsItem complexEditingConfigsObject; auto editingNode = value["Editing"]; @@ -94,28 +68,28 @@ void QueryComplexJobListResult::parse(const std::string &payload) for (auto editingNodeClipListClip : allClipListNode) { Job::ComplexEditingConfigsItem::Editing::Clip clipObject; - if(!editingNodeClipListClip["Id"].isNull()) - clipObject.id = editingNodeClipListClip["Id"].asString(); if(!editingNodeClipListClip["Type"].isNull()) clipObject.type = editingNodeClipListClip["Type"].asString(); - if(!editingNodeClipListClip["SourceType"].isNull()) - clipObject.sourceType = editingNodeClipListClip["SourceType"].asString(); if(!editingNodeClipListClip["SourceID"].isNull()) clipObject.sourceID = editingNodeClipListClip["SourceID"].asString(); + if(!editingNodeClipListClip["SourceType"].isNull()) + clipObject.sourceType = editingNodeClipListClip["SourceType"].asString(); if(!editingNodeClipListClip["SourceStrmMap"].isNull()) clipObject.sourceStrmMap = editingNodeClipListClip["SourceStrmMap"].asString(); - if(!editingNodeClipListClip["In"].isNull()) - clipObject.in = editingNodeClipListClip["In"].asString(); if(!editingNodeClipListClip["Out"].isNull()) clipObject.out = editingNodeClipListClip["Out"].asString(); - auto allEffectsNode = allClipListNode["Effects"]["Effect"]; - for (auto allClipListNodeEffectsEffect : allEffectsNode) + if(!editingNodeClipListClip["In"].isNull()) + clipObject.in = editingNodeClipListClip["In"].asString(); + if(!editingNodeClipListClip["Id"].isNull()) + clipObject.id = editingNodeClipListClip["Id"].asString(); + auto allEffectsNode = editingNodeClipListClip["Effects"]["Effect"]; + for (auto editingNodeClipListClipEffectsEffect : allEffectsNode) { Job::ComplexEditingConfigsItem::Editing::Clip::Effect effectsObject; - if(!allClipListNodeEffectsEffect["Effect"].isNull()) - effectsObject.effect = allClipListNodeEffectsEffect["Effect"].asString(); - if(!allClipListNodeEffectsEffect["EffectConfig"].isNull()) - effectsObject.effectConfig = allClipListNodeEffectsEffect["EffectConfig"].asString(); + if(!editingNodeClipListClipEffectsEffect["Effect"].isNull()) + effectsObject.effect = editingNodeClipListClipEffectsEffect["Effect"].asString(); + if(!editingNodeClipListClipEffectsEffect["EffectConfig"].isNull()) + effectsObject.effectConfig = editingNodeClipListClipEffectsEffect["EffectConfig"].asString(); clipObject.effects.push_back(effectsObject); } complexEditingConfigsObject.editing.clipList.push_back(clipObject); @@ -125,161 +99,330 @@ void QueryComplexJobListResult::parse(const std::string &payload) for (auto timelineNodeTrackListTrack : allTrackListNode) { Job::ComplexEditingConfigsItem::Editing::Timeline::Track trackObject; - if(!timelineNodeTrackListTrack["Id"].isNull()) - trackObject.id = timelineNodeTrackListTrack["Id"].asString(); if(!timelineNodeTrackListTrack["Type"].isNull()) trackObject.type = timelineNodeTrackListTrack["Type"].asString(); if(!timelineNodeTrackListTrack["Order"].isNull()) trackObject.order = timelineNodeTrackListTrack["Order"].asString(); - auto allClipsNode = allTrackListNode["Clips"]["Clip"]; - for (auto allTrackListNodeClipsClip : allClipsNode) + if(!timelineNodeTrackListTrack["Id"].isNull()) + trackObject.id = timelineNodeTrackListTrack["Id"].asString(); + auto allClipsNode = timelineNodeTrackListTrack["Clips"]["Clip"]; + for (auto timelineNodeTrackListTrackClipsClip : allClipsNode) { Job::ComplexEditingConfigsItem::Editing::Timeline::Track::Clip1 clipsObject; - if(!allTrackListNodeClipsClip["clipID"].isNull()) - clipsObject.clipID = allTrackListNodeClipsClip["clipID"].asString(); - if(!allTrackListNodeClipsClip["In"].isNull()) - clipsObject.in = allTrackListNodeClipsClip["In"].asString(); - if(!allTrackListNodeClipsClip["Out"].isNull()) - clipsObject.out = allTrackListNodeClipsClip["Out"].asString(); + if(!timelineNodeTrackListTrackClipsClip["Out"].isNull()) + clipsObject.out = timelineNodeTrackListTrackClipsClip["Out"].asString(); + if(!timelineNodeTrackListTrackClipsClip["In"].isNull()) + clipsObject.in = timelineNodeTrackListTrackClipsClip["In"].asString(); + if(!timelineNodeTrackListTrackClipsClip["clipID"].isNull()) + clipsObject.clipID = timelineNodeTrackListTrackClipsClip["clipID"].asString(); auto clipsConfigNode = value["ClipsConfig"]; auto clipsConfigVideoNode = clipsConfigNode["ClipsConfigVideo"]; - if(!clipsConfigVideoNode["L"].isNull()) - clipsObject.clipsConfig.clipsConfigVideo.l = clipsConfigVideoNode["L"].asString(); if(!clipsConfigVideoNode["T"].isNull()) clipsObject.clipsConfig.clipsConfigVideo.t = clipsConfigVideoNode["T"].asString(); + if(!clipsConfigVideoNode["L"].isNull()) + clipsObject.clipsConfig.clipsConfigVideo.l = clipsConfigVideoNode["L"].asString(); trackObject.clips.push_back(clipsObject); } complexEditingConfigsObject.editing.timeline.trackList.push_back(trackObject); } auto timelineConfigNode = timelineNode["TimelineConfig"]; - auto timelineConfigVideoNode = timelineConfigNode["TimelineConfigVideo"]; - if(!timelineConfigVideoNode["Width"].isNull()) - complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.width = timelineConfigVideoNode["Width"].asString(); - if(!timelineConfigVideoNode["Height"].isNull()) - complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.height = timelineConfigVideoNode["Height"].asString(); - if(!timelineConfigVideoNode["BgColor"].isNull()) - complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.bgColor = timelineConfigVideoNode["BgColor"].asString(); - if(!timelineConfigVideoNode["Fps"].isNull()) - complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.fps = timelineConfigVideoNode["Fps"].asString(); - if(!timelineConfigVideoNode["RenderRatio"].isNull()) - complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.renderRatio = timelineConfigVideoNode["RenderRatio"].asString(); - if(!timelineConfigVideoNode["ReclosePrec"].isNull()) - complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.reclosePrec = timelineConfigVideoNode["ReclosePrec"].asString(); - if(!timelineConfigVideoNode["IsGpuData"].isNull()) - complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.isGpuData = timelineConfigVideoNode["IsGpuData"].asString(); - if(!timelineConfigVideoNode["IsOneTrackData"].isNull()) - complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.isOneTrackData = timelineConfigVideoNode["IsOneTrackData"].asString(); auto timelineConfigAudioNode = timelineConfigNode["TimelineConfigAudio"]; - if(!timelineConfigAudioNode["Samplerate"].isNull()) - complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigAudio.samplerate = timelineConfigAudioNode["Samplerate"].asString(); if(!timelineConfigAudioNode["ChannelLayout"].isNull()) complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigAudio.channelLayout = timelineConfigAudioNode["ChannelLayout"].asString(); + if(!timelineConfigAudioNode["Samplerate"].isNull()) + complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigAudio.samplerate = timelineConfigAudioNode["Samplerate"].asString(); if(!timelineConfigAudioNode["Channels"].isNull()) complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigAudio.channels = timelineConfigAudioNode["Channels"].asString(); + auto timelineConfigVideoNode = timelineConfigNode["TimelineConfigVideo"]; + if(!timelineConfigVideoNode["BgColor"].isNull()) + complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.bgColor = timelineConfigVideoNode["BgColor"].asString(); + if(!timelineConfigVideoNode["Width"].isNull()) + complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.width = timelineConfigVideoNode["Width"].asString(); + if(!timelineConfigVideoNode["RenderRatio"].isNull()) + complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.renderRatio = timelineConfigVideoNode["RenderRatio"].asString(); + if(!timelineConfigVideoNode["IsGpuData"].isNull()) + complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.isGpuData = timelineConfigVideoNode["IsGpuData"].asString(); + if(!timelineConfigVideoNode["Height"].isNull()) + complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.height = timelineConfigVideoNode["Height"].asString(); + if(!timelineConfigVideoNode["IsOneTrackData"].isNull()) + complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.isOneTrackData = timelineConfigVideoNode["IsOneTrackData"].asString(); + if(!timelineConfigVideoNode["Fps"].isNull()) + complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.fps = timelineConfigVideoNode["Fps"].asString(); + if(!timelineConfigVideoNode["ReclosePrec"].isNull()) + complexEditingConfigsObject.editing.timeline.timelineConfig.timelineConfigVideo.reclosePrec = timelineConfigVideoNode["ReclosePrec"].asString(); jobListObject.complexEditingConfigs.push_back(complexEditingConfigsObject); } + auto allInputsNode = valueJobListJob["Inputs"]["InputsItem"]; + for (auto valueJobListJobInputsInputsItem : allInputsNode) + { + Job::InputsItem inputsObject; + auto allEditingInputsNode = valueJobListJobInputsInputsItem["EditingInputs"]["EditingInput"]; + for (auto valueJobListJobInputsInputsItemEditingInputsEditingInput : allEditingInputsNode) + { + Job::InputsItem::EditingInput editingInputsObject; + if(!valueJobListJobInputsInputsItemEditingInputsEditingInput["Id"].isNull()) + editingInputsObject.id = valueJobListJobInputsInputsItemEditingInputsEditingInput["Id"].asString(); + auto inputFileNode = value["InputFile"]; + if(!inputFileNode["Object"].isNull()) + editingInputsObject.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + editingInputsObject.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + editingInputsObject.inputFile.bucket = inputFileNode["Bucket"].asString(); + auto inputConfigNode = value["InputConfig"]; + if(!inputConfigNode["IsNormalSar"].isNull()) + editingInputsObject.inputConfig.isNormalSar = inputConfigNode["IsNormalSar"].asString(); + if(!inputConfigNode["DeinterlaceMethod"].isNull()) + editingInputsObject.inputConfig.deinterlaceMethod = inputConfigNode["DeinterlaceMethod"].asString(); + inputsObject.editingInputs.push_back(editingInputsObject); + } + jobListObject.inputs.push_back(inputsObject); + } auto transcodeOutputNode = value["transcodeOutput"]; - if(!transcodeOutputNode["TemplateId"].isNull()) - jobListObject.transcodeOutput.templateId = transcodeOutputNode["TemplateId"].asString(); - if(!transcodeOutputNode["UserData"].isNull()) - jobListObject.transcodeOutput.userData = transcodeOutputNode["UserData"].asString(); - if(!transcodeOutputNode["Rotate"].isNull()) - jobListObject.transcodeOutput.rotate = transcodeOutputNode["Rotate"].asString(); - if(!transcodeOutputNode["VideoStreamMap"].isNull()) - jobListObject.transcodeOutput.videoStreamMap = transcodeOutputNode["VideoStreamMap"].asString(); - if(!transcodeOutputNode["AudioStreamMap"].isNull()) - jobListObject.transcodeOutput.audioStreamMap = transcodeOutputNode["AudioStreamMap"].asString(); if(!transcodeOutputNode["DeWatermark"].isNull()) jobListObject.transcodeOutput.deWatermark = transcodeOutputNode["DeWatermark"].asString(); - if(!transcodeOutputNode["Priority"].isNull()) - jobListObject.transcodeOutput.priority = transcodeOutputNode["Priority"].asString(); if(!transcodeOutputNode["WaterMarkConfigUrl"].isNull()) jobListObject.transcodeOutput.waterMarkConfigUrl = transcodeOutputNode["WaterMarkConfigUrl"].asString(); + if(!transcodeOutputNode["Priority"].isNull()) + jobListObject.transcodeOutput.priority = transcodeOutputNode["Priority"].asString(); + if(!transcodeOutputNode["AudioStreamMap"].isNull()) + jobListObject.transcodeOutput.audioStreamMap = transcodeOutputNode["AudioStreamMap"].asString(); + if(!transcodeOutputNode["UserData"].isNull()) + jobListObject.transcodeOutput.userData = transcodeOutputNode["UserData"].asString(); + if(!transcodeOutputNode["VideoStreamMap"].isNull()) + jobListObject.transcodeOutput.videoStreamMap = transcodeOutputNode["VideoStreamMap"].asString(); + if(!transcodeOutputNode["Rotate"].isNull()) + jobListObject.transcodeOutput.rotate = transcodeOutputNode["Rotate"].asString(); if(!transcodeOutputNode["MergeConfigUrl"].isNull()) jobListObject.transcodeOutput.mergeConfigUrl = transcodeOutputNode["MergeConfigUrl"].asString(); + if(!transcodeOutputNode["TemplateId"].isNull()) + jobListObject.transcodeOutput.templateId = transcodeOutputNode["TemplateId"].asString(); auto allWaterMarkListNode = transcodeOutputNode["WaterMarkList"]["WaterMark"]; for (auto transcodeOutputNodeWaterMarkListWaterMark : allWaterMarkListNode) { Job::TranscodeOutput::WaterMark waterMarkObject; - if(!transcodeOutputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) - waterMarkObject.waterMarkTemplateId = transcodeOutputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); + if(!transcodeOutputNodeWaterMarkListWaterMark["Type"].isNull()) + waterMarkObject.type = transcodeOutputNodeWaterMarkListWaterMark["Type"].asString(); + if(!transcodeOutputNodeWaterMarkListWaterMark["ReferPos"].isNull()) + waterMarkObject.referPos = transcodeOutputNodeWaterMarkListWaterMark["ReferPos"].asString(); + if(!transcodeOutputNodeWaterMarkListWaterMark["Dx"].isNull()) + waterMarkObject.dx = transcodeOutputNodeWaterMarkListWaterMark["Dx"].asString(); if(!transcodeOutputNodeWaterMarkListWaterMark["Width"].isNull()) waterMarkObject.width = transcodeOutputNodeWaterMarkListWaterMark["Width"].asString(); if(!transcodeOutputNodeWaterMarkListWaterMark["Height"].isNull()) waterMarkObject.height = transcodeOutputNodeWaterMarkListWaterMark["Height"].asString(); - if(!transcodeOutputNodeWaterMarkListWaterMark["Dx"].isNull()) - waterMarkObject.dx = transcodeOutputNodeWaterMarkListWaterMark["Dx"].asString(); + if(!transcodeOutputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) + waterMarkObject.waterMarkTemplateId = transcodeOutputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); if(!transcodeOutputNodeWaterMarkListWaterMark["Dy"].isNull()) waterMarkObject.dy = transcodeOutputNodeWaterMarkListWaterMark["Dy"].asString(); - if(!transcodeOutputNodeWaterMarkListWaterMark["ReferPos"].isNull()) - waterMarkObject.referPos = transcodeOutputNodeWaterMarkListWaterMark["ReferPos"].asString(); - if(!transcodeOutputNodeWaterMarkListWaterMark["Type"].isNull()) - waterMarkObject.type = transcodeOutputNodeWaterMarkListWaterMark["Type"].asString(); auto inputFile2Node = value["InputFile"]; - if(!inputFile2Node["Bucket"].isNull()) - waterMarkObject.inputFile2.bucket = inputFile2Node["Bucket"].asString(); - if(!inputFile2Node["Location"].isNull()) - waterMarkObject.inputFile2.location = inputFile2Node["Location"].asString(); if(!inputFile2Node["Object"].isNull()) waterMarkObject.inputFile2.object = inputFile2Node["Object"].asString(); + if(!inputFile2Node["Location"].isNull()) + waterMarkObject.inputFile2.location = inputFile2Node["Location"].asString(); + if(!inputFile2Node["Bucket"].isNull()) + waterMarkObject.inputFile2.bucket = inputFile2Node["Bucket"].asString(); jobListObject.transcodeOutput.waterMarkList.push_back(waterMarkObject); } auto allMergeListNode = transcodeOutputNode["MergeList"]["Merge"]; for (auto transcodeOutputNodeMergeListMerge : allMergeListNode) { Job::TranscodeOutput::Merge mergeObject; - if(!transcodeOutputNodeMergeListMerge["MergeURL"].isNull()) - mergeObject.mergeURL = transcodeOutputNodeMergeListMerge["MergeURL"].asString(); if(!transcodeOutputNodeMergeListMerge["Start"].isNull()) mergeObject.start = transcodeOutputNodeMergeListMerge["Start"].asString(); - if(!transcodeOutputNodeMergeListMerge["Duration"].isNull()) - mergeObject.duration = transcodeOutputNodeMergeListMerge["Duration"].asString(); if(!transcodeOutputNodeMergeListMerge["RoleArn"].isNull()) mergeObject.roleArn = transcodeOutputNodeMergeListMerge["RoleArn"].asString(); + if(!transcodeOutputNodeMergeListMerge["MergeURL"].isNull()) + mergeObject.mergeURL = transcodeOutputNodeMergeListMerge["MergeURL"].asString(); + if(!transcodeOutputNodeMergeListMerge["Duration"].isNull()) + mergeObject.duration = transcodeOutputNodeMergeListMerge["Duration"].asString(); jobListObject.transcodeOutput.mergeList.push_back(mergeObject); } + auto videoNode = transcodeOutputNode["Video"]; + if(!videoNode["Bufsize"].isNull()) + jobListObject.transcodeOutput.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["Degrain"].isNull()) + jobListObject.transcodeOutput.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + jobListObject.transcodeOutput.video.pixFmt = videoNode["PixFmt"].asString(); + if(!videoNode["Pad"].isNull()) + jobListObject.transcodeOutput.video.pad = videoNode["Pad"].asString(); + if(!videoNode["Codec"].isNull()) + jobListObject.transcodeOutput.video.codec = videoNode["Codec"].asString(); + if(!videoNode["Height"].isNull()) + jobListObject.transcodeOutput.video.height = videoNode["Height"].asString(); + if(!videoNode["Qscale"].isNull()) + jobListObject.transcodeOutput.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Crop"].isNull()) + jobListObject.transcodeOutput.video.crop = videoNode["Crop"].asString(); + if(!videoNode["Bitrate"].isNull()) + jobListObject.transcodeOutput.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + jobListObject.transcodeOutput.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["MaxFps"].isNull()) + jobListObject.transcodeOutput.video.maxFps = videoNode["MaxFps"].asString(); + if(!videoNode["Profile"].isNull()) + jobListObject.transcodeOutput.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + jobListObject.transcodeOutput.video.crf = videoNode["Crf"].asString(); + if(!videoNode["Gop"].isNull()) + jobListObject.transcodeOutput.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + jobListObject.transcodeOutput.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + jobListObject.transcodeOutput.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Preset"].isNull()) + jobListObject.transcodeOutput.video.preset = videoNode["Preset"].asString(); + if(!videoNode["ScanMode"].isNull()) + jobListObject.transcodeOutput.video.scanMode = videoNode["ScanMode"].asString(); + auto bitrateBndNode = videoNode["BitrateBnd"]; + if(!bitrateBndNode["Max"].isNull()) + jobListObject.transcodeOutput.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); + if(!bitrateBndNode["Min"].isNull()) + jobListObject.transcodeOutput.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); + auto transConfigNode = transcodeOutputNode["TransConfig"]; + if(!transConfigNode["IsCheckAudioBitrate"].isNull()) + jobListObject.transcodeOutput.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); + if(!transConfigNode["IsCheckReso"].isNull()) + jobListObject.transcodeOutput.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); + if(!transConfigNode["TransMode"].isNull()) + jobListObject.transcodeOutput.transConfig.transMode = transConfigNode["TransMode"].asString(); + if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) + jobListObject.transcodeOutput.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); + if(!transConfigNode["AdjDarMethod"].isNull()) + jobListObject.transcodeOutput.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); + if(!transConfigNode["Duration"].isNull()) + jobListObject.transcodeOutput.transConfig.duration = transConfigNode["Duration"].asString(); + if(!transConfigNode["IsCheckVideoBitrate"].isNull()) + jobListObject.transcodeOutput.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); + if(!transConfigNode["IsCheckResoFail"].isNull()) + jobListObject.transcodeOutput.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); + if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) + jobListObject.transcodeOutput.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); + auto encryptionNode = transcodeOutputNode["Encryption"]; + if(!encryptionNode["Type"].isNull()) + jobListObject.transcodeOutput.encryption.type = encryptionNode["Type"].asString(); + if(!encryptionNode["Key"].isNull()) + jobListObject.transcodeOutput.encryption.key = encryptionNode["Key"].asString(); + if(!encryptionNode["KeyType"].isNull()) + jobListObject.transcodeOutput.encryption.keyType = encryptionNode["KeyType"].asString(); + if(!encryptionNode["Id"].isNull()) + jobListObject.transcodeOutput.encryption.id = encryptionNode["Id"].asString(); + if(!encryptionNode["KeyUri"].isNull()) + jobListObject.transcodeOutput.encryption.keyUri = encryptionNode["KeyUri"].asString(); + if(!encryptionNode["SkipCnt"].isNull()) + jobListObject.transcodeOutput.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); + auto m3U8NonStandardSupportNode = transcodeOutputNode["M3U8NonStandardSupport"]; + auto tSNode = m3U8NonStandardSupportNode["TS"]; + if(!tSNode["SizeSupport"].isNull()) + jobListObject.transcodeOutput.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!tSNode["Md5Support"].isNull()) + jobListObject.transcodeOutput.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; + auto audioNode = transcodeOutputNode["Audio"]; + if(!audioNode["Profile"].isNull()) + jobListObject.transcodeOutput.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Codec"].isNull()) + jobListObject.transcodeOutput.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + jobListObject.transcodeOutput.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + jobListObject.transcodeOutput.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + jobListObject.transcodeOutput.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + jobListObject.transcodeOutput.audio.bitrate = audioNode["Bitrate"].asString(); + auto volumeNode = audioNode["Volume"]; + if(!volumeNode["Method"].isNull()) + jobListObject.transcodeOutput.audio.volume.method = volumeNode["Method"].asString(); + if(!volumeNode["Level"].isNull()) + jobListObject.transcodeOutput.audio.volume.level = volumeNode["Level"].asString(); + auto superResoNode = transcodeOutputNode["SuperReso"]; + if(!superResoNode["IsHalfSample"].isNull()) + jobListObject.transcodeOutput.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); auto digiWaterMarkNode = transcodeOutputNode["DigiWaterMark"]; if(!digiWaterMarkNode["Type"].isNull()) jobListObject.transcodeOutput.digiWaterMark.type = digiWaterMarkNode["Type"].asString(); if(!digiWaterMarkNode["Alpha"].isNull()) jobListObject.transcodeOutput.digiWaterMark.alpha = digiWaterMarkNode["Alpha"].asString(); auto inputFile3Node = digiWaterMarkNode["InputFile"]; - if(!inputFile3Node["Bucket"].isNull()) - jobListObject.transcodeOutput.digiWaterMark.inputFile3.bucket = inputFile3Node["Bucket"].asString(); - if(!inputFile3Node["Location"].isNull()) - jobListObject.transcodeOutput.digiWaterMark.inputFile3.location = inputFile3Node["Location"].asString(); if(!inputFile3Node["Object"].isNull()) jobListObject.transcodeOutput.digiWaterMark.inputFile3.object = inputFile3Node["Object"].asString(); + if(!inputFile3Node["Location"].isNull()) + jobListObject.transcodeOutput.digiWaterMark.inputFile3.location = inputFile3Node["Location"].asString(); + if(!inputFile3Node["Bucket"].isNull()) + jobListObject.transcodeOutput.digiWaterMark.inputFile3.bucket = inputFile3Node["Bucket"].asString(); auto outputFileNode = transcodeOutputNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - jobListObject.transcodeOutput.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - jobListObject.transcodeOutput.outputFile.location = outputFileNode["Location"].asString(); - if(!outputFileNode["Object"].isNull()) - jobListObject.transcodeOutput.outputFile.object = outputFileNode["Object"].asString(); if(!outputFileNode["RoleArn"].isNull()) jobListObject.transcodeOutput.outputFile.roleArn = outputFileNode["RoleArn"].asString(); - auto m3U8NonStandardSupportNode = transcodeOutputNode["M3U8NonStandardSupport"]; - auto tSNode = m3U8NonStandardSupportNode["TS"]; - if(!tSNode["Md5Support"].isNull()) - jobListObject.transcodeOutput.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; - if(!tSNode["SizeSupport"].isNull()) - jobListObject.transcodeOutput.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!outputFileNode["Object"].isNull()) + jobListObject.transcodeOutput.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + jobListObject.transcodeOutput.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + jobListObject.transcodeOutput.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto containerNode = transcodeOutputNode["Container"]; + if(!containerNode["Format"].isNull()) + jobListObject.transcodeOutput.container.format = containerNode["Format"].asString(); + auto clip4Node = transcodeOutputNode["Clip"]; + auto timeSpanNode = clip4Node["TimeSpan"]; + if(!timeSpanNode["Seek"].isNull()) + jobListObject.transcodeOutput.clip4.timeSpan.seek = timeSpanNode["Seek"].asString(); + if(!timeSpanNode["Duration"].isNull()) + jobListObject.transcodeOutput.clip4.timeSpan.duration = timeSpanNode["Duration"].asString(); + auto muxConfigNode = transcodeOutputNode["MuxConfig"]; + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + jobListObject.transcodeOutput.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["DitherMode"].isNull()) + jobListObject.transcodeOutput.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + if(!gifNode["Loop"].isNull()) + jobListObject.transcodeOutput.muxConfig.gif.loop = gifNode["Loop"].asString(); + if(!gifNode["IsCustomPalette"].isNull()) + jobListObject.transcodeOutput.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); + auto segmentNode = muxConfigNode["Segment"]; + if(!segmentNode["Duration"].isNull()) + jobListObject.transcodeOutput.muxConfig.segment.duration = segmentNode["Duration"].asString(); + auto subtitleConfigNode = transcodeOutputNode["SubtitleConfig"]; + auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; + for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) + { + Job::TranscodeOutput::SubtitleConfig::ExtSubtitle extSubtitleObject; + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) + extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) + extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + extSubtitleObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + extSubtitleObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + extSubtitleObject.input.bucket = inputNode["Bucket"].asString(); + jobListObject.transcodeOutput.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); + } + auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; + for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) + { + Job::TranscodeOutput::SubtitleConfig::Subtitle subtitleObject; + if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) + subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); + jobListObject.transcodeOutput.subtitleConfig.subtitleList.push_back(subtitleObject); + } auto propertiesNode = transcodeOutputNode["Properties"]; if(!propertiesNode["Width"].isNull()) jobListObject.transcodeOutput.properties.width = propertiesNode["Width"].asString(); if(!propertiesNode["Height"].isNull()) jobListObject.transcodeOutput.properties.height = propertiesNode["Height"].asString(); - if(!propertiesNode["Bitrate"].isNull()) - jobListObject.transcodeOutput.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["Duration"].isNull()) jobListObject.transcodeOutput.properties.duration = propertiesNode["Duration"].asString(); if(!propertiesNode["Fps"].isNull()) jobListObject.transcodeOutput.properties.fps = propertiesNode["Fps"].asString(); - if(!propertiesNode["FileSize"].isNull()) - jobListObject.transcodeOutput.properties.fileSize = propertiesNode["FileSize"].asString(); + if(!propertiesNode["Bitrate"].isNull()) + jobListObject.transcodeOutput.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["FileFormat"].isNull()) jobListObject.transcodeOutput.properties.fileFormat = propertiesNode["FileFormat"].asString(); + if(!propertiesNode["FileSize"].isNull()) + jobListObject.transcodeOutput.properties.fileSize = propertiesNode["FileSize"].asString(); auto streamsNode = propertiesNode["Streams"]; auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) @@ -287,93 +430,93 @@ void QueryComplexJobListResult::parse(const std::string &payload) Job::TranscodeOutput::Properties::Streams::VideoStream videoStreamObject; if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) - videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) + videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); auto networkCostNode = value["NetworkCost"]; if(!networkCostNode["PreloadTime"].isNull()) videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); if(!networkCostNode["AvgBitrate"].isNull()) videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); jobListObject.transcodeOutput.properties.streams.videoStreamList.push_back(videoStreamObject); } auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) { Job::TranscodeOutput::Properties::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); jobListObject.transcodeOutput.properties.streams.audioStreamList.push_back(audioStreamObject); } auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; @@ -387,165 +530,22 @@ void QueryComplexJobListResult::parse(const std::string &payload) jobListObject.transcodeOutput.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); } auto formatNode = propertiesNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - jobListObject.transcodeOutput.properties.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - jobListObject.transcodeOutput.properties.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - jobListObject.transcodeOutput.properties.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - jobListObject.transcodeOutput.properties.format.formatLongName = formatNode["FormatLongName"].asString(); if(!formatNode["StartTime"].isNull()) jobListObject.transcodeOutput.properties.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - jobListObject.transcodeOutput.properties.format.duration = formatNode["Duration"].asString(); + if(!formatNode["NumPrograms"].isNull()) + jobListObject.transcodeOutput.properties.format.numPrograms = formatNode["NumPrograms"].asString(); if(!formatNode["Size"].isNull()) jobListObject.transcodeOutput.properties.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + jobListObject.transcodeOutput.properties.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + jobListObject.transcodeOutput.properties.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + jobListObject.transcodeOutput.properties.format.duration = formatNode["Duration"].asString(); if(!formatNode["Bitrate"].isNull()) jobListObject.transcodeOutput.properties.format.bitrate = formatNode["Bitrate"].asString(); - auto clip4Node = transcodeOutputNode["Clip"]; - auto timeSpanNode = clip4Node["TimeSpan"]; - if(!timeSpanNode["Seek"].isNull()) - jobListObject.transcodeOutput.clip4.timeSpan.seek = timeSpanNode["Seek"].asString(); - if(!timeSpanNode["Duration"].isNull()) - jobListObject.transcodeOutput.clip4.timeSpan.duration = timeSpanNode["Duration"].asString(); - auto superResoNode = transcodeOutputNode["SuperReso"]; - if(!superResoNode["IsHalfSample"].isNull()) - jobListObject.transcodeOutput.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); - auto subtitleConfigNode = transcodeOutputNode["SubtitleConfig"]; - auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; - for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) - { - Job::TranscodeOutput::SubtitleConfig::Subtitle subtitleObject; - if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) - subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); - jobListObject.transcodeOutput.subtitleConfig.subtitleList.push_back(subtitleObject); - } - auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; - for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) - { - Job::TranscodeOutput::SubtitleConfig::ExtSubtitle extSubtitleObject; - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) - extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) - extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - extSubtitleObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - extSubtitleObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - extSubtitleObject.input.object = inputNode["Object"].asString(); - jobListObject.transcodeOutput.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); - } - auto transConfigNode = transcodeOutputNode["TransConfig"]; - if(!transConfigNode["TransMode"].isNull()) - jobListObject.transcodeOutput.transConfig.transMode = transConfigNode["TransMode"].asString(); - if(!transConfigNode["IsCheckReso"].isNull()) - jobListObject.transcodeOutput.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); - if(!transConfigNode["IsCheckResoFail"].isNull()) - jobListObject.transcodeOutput.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); - if(!transConfigNode["IsCheckVideoBitrate"].isNull()) - jobListObject.transcodeOutput.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); - if(!transConfigNode["IsCheckAudioBitrate"].isNull()) - jobListObject.transcodeOutput.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); - if(!transConfigNode["AdjDarMethod"].isNull()) - jobListObject.transcodeOutput.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); - if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) - jobListObject.transcodeOutput.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); - if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) - jobListObject.transcodeOutput.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); - if(!transConfigNode["Duration"].isNull()) - jobListObject.transcodeOutput.transConfig.duration = transConfigNode["Duration"].asString(); - auto muxConfigNode = transcodeOutputNode["MuxConfig"]; - auto segmentNode = muxConfigNode["Segment"]; - if(!segmentNode["Duration"].isNull()) - jobListObject.transcodeOutput.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - jobListObject.transcodeOutput.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - jobListObject.transcodeOutput.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); - if(!gifNode["IsCustomPalette"].isNull()) - jobListObject.transcodeOutput.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); - if(!gifNode["DitherMode"].isNull()) - jobListObject.transcodeOutput.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); - auto audioNode = transcodeOutputNode["Audio"]; - if(!audioNode["Codec"].isNull()) - jobListObject.transcodeOutput.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - jobListObject.transcodeOutput.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - jobListObject.transcodeOutput.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - jobListObject.transcodeOutput.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - jobListObject.transcodeOutput.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - jobListObject.transcodeOutput.audio.qscale = audioNode["Qscale"].asString(); - auto volumeNode = audioNode["Volume"]; - if(!volumeNode["Level"].isNull()) - jobListObject.transcodeOutput.audio.volume.level = volumeNode["Level"].asString(); - if(!volumeNode["Method"].isNull()) - jobListObject.transcodeOutput.audio.volume.method = volumeNode["Method"].asString(); - auto videoNode = transcodeOutputNode["Video"]; - if(!videoNode["Codec"].isNull()) - jobListObject.transcodeOutput.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - jobListObject.transcodeOutput.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - jobListObject.transcodeOutput.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - jobListObject.transcodeOutput.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - jobListObject.transcodeOutput.video.width = videoNode["Width"].asString(); - if(!videoNode["Height"].isNull()) - jobListObject.transcodeOutput.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - jobListObject.transcodeOutput.video.fps = videoNode["Fps"].asString(); - if(!videoNode["Gop"].isNull()) - jobListObject.transcodeOutput.video.gop = videoNode["Gop"].asString(); - if(!videoNode["Preset"].isNull()) - jobListObject.transcodeOutput.video.preset = videoNode["Preset"].asString(); - if(!videoNode["ScanMode"].isNull()) - jobListObject.transcodeOutput.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - jobListObject.transcodeOutput.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - jobListObject.transcodeOutput.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - jobListObject.transcodeOutput.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - jobListObject.transcodeOutput.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - jobListObject.transcodeOutput.video.qscale = videoNode["Qscale"].asString(); - if(!videoNode["Crop"].isNull()) - jobListObject.transcodeOutput.video.crop = videoNode["Crop"].asString(); - if(!videoNode["Pad"].isNull()) - jobListObject.transcodeOutput.video.pad = videoNode["Pad"].asString(); - if(!videoNode["MaxFps"].isNull()) - jobListObject.transcodeOutput.video.maxFps = videoNode["MaxFps"].asString(); - auto bitrateBndNode = videoNode["BitrateBnd"]; - if(!bitrateBndNode["Max"].isNull()) - jobListObject.transcodeOutput.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); - if(!bitrateBndNode["Min"].isNull()) - jobListObject.transcodeOutput.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto containerNode = transcodeOutputNode["Container"]; - if(!containerNode["Format"].isNull()) - jobListObject.transcodeOutput.container.format = containerNode["Format"].asString(); - auto encryptionNode = transcodeOutputNode["Encryption"]; - if(!encryptionNode["Type"].isNull()) - jobListObject.transcodeOutput.encryption.type = encryptionNode["Type"].asString(); - if(!encryptionNode["Id"].isNull()) - jobListObject.transcodeOutput.encryption.id = encryptionNode["Id"].asString(); - if(!encryptionNode["Key"].isNull()) - jobListObject.transcodeOutput.encryption.key = encryptionNode["Key"].asString(); - if(!encryptionNode["KeyUri"].isNull()) - jobListObject.transcodeOutput.encryption.keyUri = encryptionNode["KeyUri"].asString(); - if(!encryptionNode["KeyType"].isNull()) - jobListObject.transcodeOutput.encryption.keyType = encryptionNode["KeyType"].asString(); - if(!encryptionNode["SkipCnt"].isNull()) - jobListObject.transcodeOutput.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); + if(!formatNode["FormatName"].isNull()) + jobListObject.transcodeOutput.properties.format.formatName = formatNode["FormatName"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) jobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); diff --git a/mts/src/model/QueryCoverJobListRequest.cc b/mts/src/model/QueryCoverJobListRequest.cc index df8b56e58..c3da593b1 100644 --- a/mts/src/model/QueryCoverJobListRequest.cc +++ b/mts/src/model/QueryCoverJobListRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Mts::Model::QueryCoverJobListRequest; - -QueryCoverJobListRequest::QueryCoverJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryCoverJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryCoverJobListRequest::~QueryCoverJobListRequest() -{} - -long QueryCoverJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryCoverJobListRequest; + +QueryCoverJobListRequest::QueryCoverJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryCoverJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryCoverJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryCoverJobListRequest::~QueryCoverJobListRequest() {} + +long QueryCoverJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryCoverJobListRequest::getNextPageToken()const -{ - return nextPageToken_; +void QueryCoverJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryCoverJobListRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); +std::string QueryCoverJobListRequest::getNextPageToken() const { + return nextPageToken_; } -std::string QueryCoverJobListRequest::getStartOfJobCreatedTimeRange()const -{ - return startOfJobCreatedTimeRange_; +void QueryCoverJobListRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); } -void QueryCoverJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) -{ - startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; - setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); +std::string QueryCoverJobListRequest::getStartOfJobCreatedTimeRange() const { + return startOfJobCreatedTimeRange_; } -std::string QueryCoverJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryCoverJobListRequest::setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange) { + startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; + setParameter(std::string("StartOfJobCreatedTimeRange"), startOfJobCreatedTimeRange); } -void QueryCoverJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryCoverJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryCoverJobListRequest::getCoverJobIds()const -{ - return coverJobIds_; +void QueryCoverJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryCoverJobListRequest::setCoverJobIds(const std::string& coverJobIds) -{ - coverJobIds_ = coverJobIds; - setParameter("CoverJobIds", coverJobIds); +std::string QueryCoverJobListRequest::getCoverJobIds() const { + return coverJobIds_; } -std::string QueryCoverJobListRequest::getState()const -{ - return state_; +void QueryCoverJobListRequest::setCoverJobIds(const std::string &coverJobIds) { + coverJobIds_ = coverJobIds; + setParameter(std::string("CoverJobIds"), coverJobIds); } -void QueryCoverJobListRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string QueryCoverJobListRequest::getState() const { + return state_; } -std::string QueryCoverJobListRequest::getEndOfJobCreatedTimeRange()const -{ - return endOfJobCreatedTimeRange_; +void QueryCoverJobListRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void QueryCoverJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) -{ - endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; - setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); +std::string QueryCoverJobListRequest::getEndOfJobCreatedTimeRange() const { + return endOfJobCreatedTimeRange_; } -std::string QueryCoverJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryCoverJobListRequest::setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange) { + endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; + setParameter(std::string("EndOfJobCreatedTimeRange"), endOfJobCreatedTimeRange); } -void QueryCoverJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryCoverJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryCoverJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryCoverJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryCoverJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryCoverJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryCoverJobListRequest::getMaximumPageSize()const -{ - return maximumPageSize_; +void QueryCoverJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryCoverJobListRequest::setMaximumPageSize(long maximumPageSize) -{ - maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); +long QueryCoverJobListRequest::getMaximumPageSize() const { + return maximumPageSize_; } -long QueryCoverJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryCoverJobListRequest::setMaximumPageSize(long maximumPageSize) { + maximumPageSize_ = maximumPageSize; + setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize)); } -void QueryCoverJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryCoverJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryCoverJobListRequest::getPipelineId()const -{ - return pipelineId_; +void QueryCoverJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryCoverJobListRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string QueryCoverJobListRequest::getPipelineId() const { + return pipelineId_; +} + +void QueryCoverJobListRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } diff --git a/mts/src/model/QueryCoverJobListResult.cc b/mts/src/model/QueryCoverJobListResult.cc index 992d18f32..06fe15ebc 100644 --- a/mts/src/model/QueryCoverJobListResult.cc +++ b/mts/src/model/QueryCoverJobListResult.cc @@ -43,47 +43,47 @@ void QueryCoverJobListResult::parse(const std::string &payload) for (auto valueCoverJobListCoverJob : allCoverJobListNode) { CoverJob coverJobListObject; - if(!valueCoverJobListCoverJob["Id"].isNull()) - coverJobListObject.id = valueCoverJobListCoverJob["Id"].asString(); - if(!valueCoverJobListCoverJob["UserData"].isNull()) - coverJobListObject.userData = valueCoverJobListCoverJob["UserData"].asString(); - if(!valueCoverJobListCoverJob["PipelineId"].isNull()) - coverJobListObject.pipelineId = valueCoverJobListCoverJob["PipelineId"].asString(); + if(!valueCoverJobListCoverJob["CreationTime"].isNull()) + coverJobListObject.creationTime = valueCoverJobListCoverJob["CreationTime"].asString(); if(!valueCoverJobListCoverJob["State"].isNull()) coverJobListObject.state = valueCoverJobListCoverJob["State"].asString(); + if(!valueCoverJobListCoverJob["UserData"].isNull()) + coverJobListObject.userData = valueCoverJobListCoverJob["UserData"].asString(); if(!valueCoverJobListCoverJob["Code"].isNull()) coverJobListObject.code = valueCoverJobListCoverJob["Code"].asString(); if(!valueCoverJobListCoverJob["Message"].isNull()) coverJobListObject.message = valueCoverJobListCoverJob["Message"].asString(); - if(!valueCoverJobListCoverJob["CreationTime"].isNull()) - coverJobListObject.creationTime = valueCoverJobListCoverJob["CreationTime"].asString(); - auto allCoverImageListNode = allCoverJobListNode["CoverImageList"]["CoverImage"]; - for (auto allCoverJobListNodeCoverImageListCoverImage : allCoverImageListNode) + if(!valueCoverJobListCoverJob["PipelineId"].isNull()) + coverJobListObject.pipelineId = valueCoverJobListCoverJob["PipelineId"].asString(); + if(!valueCoverJobListCoverJob["Id"].isNull()) + coverJobListObject.id = valueCoverJobListCoverJob["Id"].asString(); + auto allCoverImageListNode = valueCoverJobListCoverJob["CoverImageList"]["CoverImage"]; + for (auto valueCoverJobListCoverJobCoverImageListCoverImage : allCoverImageListNode) { CoverJob::CoverImage coverImageListObject; - if(!allCoverJobListNodeCoverImageListCoverImage["Score"].isNull()) - coverImageListObject.score = allCoverJobListNodeCoverImageListCoverImage["Score"].asString(); - if(!allCoverJobListNodeCoverImageListCoverImage["Url"].isNull()) - coverImageListObject.url = allCoverJobListNodeCoverImageListCoverImage["Url"].asString(); - if(!allCoverJobListNodeCoverImageListCoverImage["Time"].isNull()) - coverImageListObject.time = allCoverJobListNodeCoverImageListCoverImage["Time"].asString(); + if(!valueCoverJobListCoverJobCoverImageListCoverImage["Time"].isNull()) + coverImageListObject.time = valueCoverJobListCoverJobCoverImageListCoverImage["Time"].asString(); + if(!valueCoverJobListCoverJobCoverImageListCoverImage["Score"].isNull()) + coverImageListObject.score = valueCoverJobListCoverJobCoverImageListCoverImage["Score"].asString(); + if(!valueCoverJobListCoverJobCoverImageListCoverImage["Url"].isNull()) + coverImageListObject.url = valueCoverJobListCoverJobCoverImageListCoverImage["Url"].asString(); coverJobListObject.coverImageList.push_back(coverImageListObject); } auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - coverJobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - coverJobListObject.input.location = inputNode["Location"].asString(); if(!inputNode["Object"].isNull()) coverJobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + coverJobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + coverJobListObject.input.bucket = inputNode["Bucket"].asString(); auto coverConfigNode = value["CoverConfig"]; auto outputFileNode = coverConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - coverJobListObject.coverConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - coverJobListObject.coverConfig.outputFile.location = outputFileNode["Location"].asString(); if(!outputFileNode["Object"].isNull()) coverJobListObject.coverConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + coverJobListObject.coverConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + coverJobListObject.coverConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); coverJobList_.push_back(coverJobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryCoverPipelineListRequest.cc b/mts/src/model/QueryCoverPipelineListRequest.cc index b23033386..2620eb449 100644 --- a/mts/src/model/QueryCoverPipelineListRequest.cc +++ b/mts/src/model/QueryCoverPipelineListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryCoverPipelineListRequest; - -QueryCoverPipelineListRequest::QueryCoverPipelineListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryCoverPipelineList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryCoverPipelineListRequest::~QueryCoverPipelineListRequest() -{} - -long QueryCoverPipelineListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryCoverPipelineListRequest; + +QueryCoverPipelineListRequest::QueryCoverPipelineListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryCoverPipelineList") { + setMethod(HttpRequest::Method::Post); } -void QueryCoverPipelineListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryCoverPipelineListRequest::~QueryCoverPipelineListRequest() {} + +long QueryCoverPipelineListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryCoverPipelineListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryCoverPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryCoverPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryCoverPipelineListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryCoverPipelineListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryCoverPipelineListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryCoverPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryCoverPipelineListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryCoverPipelineListRequest::getOwnerId()const -{ - return ownerId_; +void QueryCoverPipelineListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryCoverPipelineListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryCoverPipelineListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryCoverPipelineListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryCoverPipelineListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryCoverPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryCoverPipelineListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryCoverPipelineListRequest::getPipelineIds()const -{ - return pipelineIds_; +void QueryCoverPipelineListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryCoverPipelineListRequest::setPipelineIds(const std::string& pipelineIds) -{ - pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); +std::string QueryCoverPipelineListRequest::getPipelineIds() const { + return pipelineIds_; +} + +void QueryCoverPipelineListRequest::setPipelineIds(const std::string &pipelineIds) { + pipelineIds_ = pipelineIds; + setParameter(std::string("PipelineIds"), pipelineIds); } diff --git a/mts/src/model/QueryCoverPipelineListResult.cc b/mts/src/model/QueryCoverPipelineListResult.cc index 81a1af1f7..da68ddbb4 100644 --- a/mts/src/model/QueryCoverPipelineListResult.cc +++ b/mts/src/model/QueryCoverPipelineListResult.cc @@ -43,16 +43,16 @@ void QueryCoverPipelineListResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["Id"].isNull()) - pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); if(!valuePipelineListPipeline["State"].isNull()) pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["Priority"].isNull()) pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString(); if(!valuePipelineListPipeline["Role"].isNull()) pipelineListObject.role = valuePipelineListPipeline["Role"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["Id"].isNull()) + pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); auto notifyConfigNode = value["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/QueryEditingJobListRequest.cc b/mts/src/model/QueryEditingJobListRequest.cc index 98cfdb57b..d56224d27 100644 --- a/mts/src/model/QueryEditingJobListRequest.cc +++ b/mts/src/model/QueryEditingJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryEditingJobListRequest; - -QueryEditingJobListRequest::QueryEditingJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryEditingJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryEditingJobListRequest::~QueryEditingJobListRequest() -{} - -long QueryEditingJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryEditingJobListRequest; + +QueryEditingJobListRequest::QueryEditingJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryEditingJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryEditingJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryEditingJobListRequest::~QueryEditingJobListRequest() {} + +long QueryEditingJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryEditingJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryEditingJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryEditingJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryEditingJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryEditingJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryEditingJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryEditingJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryEditingJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryEditingJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryEditingJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryEditingJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryEditingJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryEditingJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryEditingJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryEditingJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryEditingJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryEditingJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryEditingJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryEditingJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryEditingJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryEditingJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryEditingJobListResult.cc b/mts/src/model/QueryEditingJobListResult.cc index ea3c04d5e..ab2b939bc 100644 --- a/mts/src/model/QueryEditingJobListResult.cc +++ b/mts/src/model/QueryEditingJobListResult.cc @@ -43,144 +43,374 @@ void QueryEditingJobListResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["JobId"].isNull()) - jobListObject.jobId = valueJobListJob["JobId"].asString(); + if(!valueJobListJob["CreationTime"].isNull()) + jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); + if(!valueJobListJob["Percent"].isNull()) + jobListObject.percent = std::stol(valueJobListJob["Percent"].asString()); + if(!valueJobListJob["FinishTime"].isNull()) + jobListObject.finishTime = valueJobListJob["FinishTime"].asString(); if(!valueJobListJob["State"].isNull()) jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["JobId"].isNull()) + jobListObject.jobId = valueJobListJob["JobId"].asString(); if(!valueJobListJob["Code"].isNull()) jobListObject.code = valueJobListJob["Code"].asString(); if(!valueJobListJob["Message"].isNull()) jobListObject.message = valueJobListJob["Message"].asString(); - if(!valueJobListJob["Percent"].isNull()) - jobListObject.percent = std::stol(valueJobListJob["Percent"].asString()); if(!valueJobListJob["PipelineId"].isNull()) jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); - if(!valueJobListJob["CreationTime"].isNull()) - jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); - if(!valueJobListJob["FinishTime"].isNull()) - jobListObject.finishTime = valueJobListJob["FinishTime"].asString(); - auto allEditingInputsNode = allJobListNode["EditingInputs"]["EditingInput"]; - for (auto allJobListNodeEditingInputsEditingInput : allEditingInputsNode) + auto allEditingInputsNode = valueJobListJob["EditingInputs"]["EditingInput"]; + for (auto valueJobListJobEditingInputsEditingInput : allEditingInputsNode) { Job::EditingInput editingInputsObject; - if(!allJobListNodeEditingInputsEditingInput["Id"].isNull()) - editingInputsObject.id = allJobListNodeEditingInputsEditingInput["Id"].asString(); + if(!valueJobListJobEditingInputsEditingInput["Id"].isNull()) + editingInputsObject.id = valueJobListJobEditingInputsEditingInput["Id"].asString(); auto inputFileNode = value["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - editingInputsObject.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - editingInputsObject.inputFile.location = inputFileNode["Location"].asString(); if(!inputFileNode["Object"].isNull()) editingInputsObject.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + editingInputsObject.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + editingInputsObject.inputFile.bucket = inputFileNode["Bucket"].asString(); auto inputConfigNode = value["InputConfig"]; - if(!inputConfigNode["DeinterlaceMethod"].isNull()) - editingInputsObject.inputConfig.deinterlaceMethod = inputConfigNode["DeinterlaceMethod"].asString(); if(!inputConfigNode["IsNormalSar"].isNull()) editingInputsObject.inputConfig.isNormalSar = inputConfigNode["IsNormalSar"].asString(); + if(!inputConfigNode["DeinterlaceMethod"].isNull()) + editingInputsObject.inputConfig.deinterlaceMethod = inputConfigNode["DeinterlaceMethod"].asString(); jobListObject.editingInputs.push_back(editingInputsObject); } auto editingConfigNode = value["EditingConfig"]; - if(!editingConfigNode["TemplateId"].isNull()) - jobListObject.editingConfig.templateId = editingConfigNode["TemplateId"].asString(); - if(!editingConfigNode["UserData"].isNull()) - jobListObject.editingConfig.userData = editingConfigNode["UserData"].asString(); - if(!editingConfigNode["Rotate"].isNull()) - jobListObject.editingConfig.rotate = editingConfigNode["Rotate"].asString(); - if(!editingConfigNode["VideoStreamMap"].isNull()) - jobListObject.editingConfig.videoStreamMap = editingConfigNode["VideoStreamMap"].asString(); - if(!editingConfigNode["AudioStreamMap"].isNull()) - jobListObject.editingConfig.audioStreamMap = editingConfigNode["AudioStreamMap"].asString(); if(!editingConfigNode["DeWatermark"].isNull()) jobListObject.editingConfig.deWatermark = editingConfigNode["DeWatermark"].asString(); - if(!editingConfigNode["Priority"].isNull()) - jobListObject.editingConfig.priority = editingConfigNode["Priority"].asString(); if(!editingConfigNode["WaterMarkConfigUrl"].isNull()) jobListObject.editingConfig.waterMarkConfigUrl = editingConfigNode["WaterMarkConfigUrl"].asString(); + if(!editingConfigNode["Priority"].isNull()) + jobListObject.editingConfig.priority = editingConfigNode["Priority"].asString(); + if(!editingConfigNode["AudioStreamMap"].isNull()) + jobListObject.editingConfig.audioStreamMap = editingConfigNode["AudioStreamMap"].asString(); + if(!editingConfigNode["UserData"].isNull()) + jobListObject.editingConfig.userData = editingConfigNode["UserData"].asString(); + if(!editingConfigNode["VideoStreamMap"].isNull()) + jobListObject.editingConfig.videoStreamMap = editingConfigNode["VideoStreamMap"].asString(); + if(!editingConfigNode["Rotate"].isNull()) + jobListObject.editingConfig.rotate = editingConfigNode["Rotate"].asString(); if(!editingConfigNode["MergeConfigUrl"].isNull()) jobListObject.editingConfig.mergeConfigUrl = editingConfigNode["MergeConfigUrl"].asString(); + if(!editingConfigNode["TemplateId"].isNull()) + jobListObject.editingConfig.templateId = editingConfigNode["TemplateId"].asString(); auto allWaterMarkListNode = editingConfigNode["WaterMarkList"]["WaterMark"]; for (auto editingConfigNodeWaterMarkListWaterMark : allWaterMarkListNode) { Job::EditingConfig::WaterMark waterMarkObject; - if(!editingConfigNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) - waterMarkObject.waterMarkTemplateId = editingConfigNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); + if(!editingConfigNodeWaterMarkListWaterMark["Type"].isNull()) + waterMarkObject.type = editingConfigNodeWaterMarkListWaterMark["Type"].asString(); + if(!editingConfigNodeWaterMarkListWaterMark["ReferPos"].isNull()) + waterMarkObject.referPos = editingConfigNodeWaterMarkListWaterMark["ReferPos"].asString(); + if(!editingConfigNodeWaterMarkListWaterMark["Dx"].isNull()) + waterMarkObject.dx = editingConfigNodeWaterMarkListWaterMark["Dx"].asString(); if(!editingConfigNodeWaterMarkListWaterMark["Width"].isNull()) waterMarkObject.width = editingConfigNodeWaterMarkListWaterMark["Width"].asString(); if(!editingConfigNodeWaterMarkListWaterMark["Height"].isNull()) waterMarkObject.height = editingConfigNodeWaterMarkListWaterMark["Height"].asString(); - if(!editingConfigNodeWaterMarkListWaterMark["Dx"].isNull()) - waterMarkObject.dx = editingConfigNodeWaterMarkListWaterMark["Dx"].asString(); + if(!editingConfigNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) + waterMarkObject.waterMarkTemplateId = editingConfigNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); if(!editingConfigNodeWaterMarkListWaterMark["Dy"].isNull()) waterMarkObject.dy = editingConfigNodeWaterMarkListWaterMark["Dy"].asString(); - if(!editingConfigNodeWaterMarkListWaterMark["ReferPos"].isNull()) - waterMarkObject.referPos = editingConfigNodeWaterMarkListWaterMark["ReferPos"].asString(); - if(!editingConfigNodeWaterMarkListWaterMark["Type"].isNull()) - waterMarkObject.type = editingConfigNodeWaterMarkListWaterMark["Type"].asString(); auto inputFile1Node = value["InputFile"]; - if(!inputFile1Node["Bucket"].isNull()) - waterMarkObject.inputFile1.bucket = inputFile1Node["Bucket"].asString(); - if(!inputFile1Node["Location"].isNull()) - waterMarkObject.inputFile1.location = inputFile1Node["Location"].asString(); if(!inputFile1Node["Object"].isNull()) waterMarkObject.inputFile1.object = inputFile1Node["Object"].asString(); + if(!inputFile1Node["Location"].isNull()) + waterMarkObject.inputFile1.location = inputFile1Node["Location"].asString(); + if(!inputFile1Node["Bucket"].isNull()) + waterMarkObject.inputFile1.bucket = inputFile1Node["Bucket"].asString(); jobListObject.editingConfig.waterMarkList.push_back(waterMarkObject); } auto allMergeListNode = editingConfigNode["MergeList"]["Merge"]; for (auto editingConfigNodeMergeListMerge : allMergeListNode) { Job::EditingConfig::Merge mergeObject; - if(!editingConfigNodeMergeListMerge["MergeURL"].isNull()) - mergeObject.mergeURL = editingConfigNodeMergeListMerge["MergeURL"].asString(); if(!editingConfigNodeMergeListMerge["Start"].isNull()) mergeObject.start = editingConfigNodeMergeListMerge["Start"].asString(); - if(!editingConfigNodeMergeListMerge["Duration"].isNull()) - mergeObject.duration = editingConfigNodeMergeListMerge["Duration"].asString(); if(!editingConfigNodeMergeListMerge["RoleArn"].isNull()) mergeObject.roleArn = editingConfigNodeMergeListMerge["RoleArn"].asString(); + if(!editingConfigNodeMergeListMerge["MergeURL"].isNull()) + mergeObject.mergeURL = editingConfigNodeMergeListMerge["MergeURL"].asString(); + if(!editingConfigNodeMergeListMerge["Duration"].isNull()) + mergeObject.duration = editingConfigNodeMergeListMerge["Duration"].asString(); jobListObject.editingConfig.mergeList.push_back(mergeObject); } + auto videoNode = editingConfigNode["Video"]; + if(!videoNode["Bufsize"].isNull()) + jobListObject.editingConfig.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["Degrain"].isNull()) + jobListObject.editingConfig.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + jobListObject.editingConfig.video.pixFmt = videoNode["PixFmt"].asString(); + if(!videoNode["Pad"].isNull()) + jobListObject.editingConfig.video.pad = videoNode["Pad"].asString(); + if(!videoNode["Codec"].isNull()) + jobListObject.editingConfig.video.codec = videoNode["Codec"].asString(); + if(!videoNode["Height"].isNull()) + jobListObject.editingConfig.video.height = videoNode["Height"].asString(); + if(!videoNode["Qscale"].isNull()) + jobListObject.editingConfig.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Crop"].isNull()) + jobListObject.editingConfig.video.crop = videoNode["Crop"].asString(); + if(!videoNode["Bitrate"].isNull()) + jobListObject.editingConfig.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + jobListObject.editingConfig.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["MaxFps"].isNull()) + jobListObject.editingConfig.video.maxFps = videoNode["MaxFps"].asString(); + if(!videoNode["Profile"].isNull()) + jobListObject.editingConfig.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + jobListObject.editingConfig.video.crf = videoNode["Crf"].asString(); + if(!videoNode["Gop"].isNull()) + jobListObject.editingConfig.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + jobListObject.editingConfig.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + jobListObject.editingConfig.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Preset"].isNull()) + jobListObject.editingConfig.video.preset = videoNode["Preset"].asString(); + if(!videoNode["ScanMode"].isNull()) + jobListObject.editingConfig.video.scanMode = videoNode["ScanMode"].asString(); + auto bitrateBndNode = videoNode["BitrateBnd"]; + if(!bitrateBndNode["Max"].isNull()) + jobListObject.editingConfig.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); + if(!bitrateBndNode["Min"].isNull()) + jobListObject.editingConfig.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); + auto transConfigNode = editingConfigNode["TransConfig"]; + if(!transConfigNode["IsCheckAudioBitrate"].isNull()) + jobListObject.editingConfig.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); + if(!transConfigNode["IsCheckReso"].isNull()) + jobListObject.editingConfig.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); + if(!transConfigNode["TransMode"].isNull()) + jobListObject.editingConfig.transConfig.transMode = transConfigNode["TransMode"].asString(); + if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) + jobListObject.editingConfig.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); + if(!transConfigNode["AdjDarMethod"].isNull()) + jobListObject.editingConfig.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); + if(!transConfigNode["Duration"].isNull()) + jobListObject.editingConfig.transConfig.duration = transConfigNode["Duration"].asString(); + if(!transConfigNode["IsCheckVideoBitrate"].isNull()) + jobListObject.editingConfig.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); + if(!transConfigNode["IsCheckResoFail"].isNull()) + jobListObject.editingConfig.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); + if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) + jobListObject.editingConfig.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); + auto encryptionNode = editingConfigNode["Encryption"]; + if(!encryptionNode["Type"].isNull()) + jobListObject.editingConfig.encryption.type = encryptionNode["Type"].asString(); + if(!encryptionNode["Key"].isNull()) + jobListObject.editingConfig.encryption.key = encryptionNode["Key"].asString(); + if(!encryptionNode["KeyType"].isNull()) + jobListObject.editingConfig.encryption.keyType = encryptionNode["KeyType"].asString(); + if(!encryptionNode["Id"].isNull()) + jobListObject.editingConfig.encryption.id = encryptionNode["Id"].asString(); + if(!encryptionNode["KeyUri"].isNull()) + jobListObject.editingConfig.encryption.keyUri = encryptionNode["KeyUri"].asString(); + if(!encryptionNode["SkipCnt"].isNull()) + jobListObject.editingConfig.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); + auto m3U8NonStandardSupportNode = editingConfigNode["M3U8NonStandardSupport"]; + auto tSNode = m3U8NonStandardSupportNode["TS"]; + if(!tSNode["SizeSupport"].isNull()) + jobListObject.editingConfig.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!tSNode["Md5Support"].isNull()) + jobListObject.editingConfig.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; + auto audioNode = editingConfigNode["Audio"]; + if(!audioNode["Profile"].isNull()) + jobListObject.editingConfig.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Codec"].isNull()) + jobListObject.editingConfig.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + jobListObject.editingConfig.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + jobListObject.editingConfig.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + jobListObject.editingConfig.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + jobListObject.editingConfig.audio.bitrate = audioNode["Bitrate"].asString(); + auto volumeNode = audioNode["Volume"]; + if(!volumeNode["Method"].isNull()) + jobListObject.editingConfig.audio.volume.method = volumeNode["Method"].asString(); + if(!volumeNode["Level"].isNull()) + jobListObject.editingConfig.audio.volume.level = volumeNode["Level"].asString(); + auto superResoNode = editingConfigNode["SuperReso"]; + if(!superResoNode["IsHalfSample"].isNull()) + jobListObject.editingConfig.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); auto digiWaterMarkNode = editingConfigNode["DigiWaterMark"]; if(!digiWaterMarkNode["Type"].isNull()) jobListObject.editingConfig.digiWaterMark.type = digiWaterMarkNode["Type"].asString(); if(!digiWaterMarkNode["Alpha"].isNull()) jobListObject.editingConfig.digiWaterMark.alpha = digiWaterMarkNode["Alpha"].asString(); auto inputFile2Node = digiWaterMarkNode["InputFile"]; - if(!inputFile2Node["Bucket"].isNull()) - jobListObject.editingConfig.digiWaterMark.inputFile2.bucket = inputFile2Node["Bucket"].asString(); - if(!inputFile2Node["Location"].isNull()) - jobListObject.editingConfig.digiWaterMark.inputFile2.location = inputFile2Node["Location"].asString(); if(!inputFile2Node["Object"].isNull()) jobListObject.editingConfig.digiWaterMark.inputFile2.object = inputFile2Node["Object"].asString(); + if(!inputFile2Node["Location"].isNull()) + jobListObject.editingConfig.digiWaterMark.inputFile2.location = inputFile2Node["Location"].asString(); + if(!inputFile2Node["Bucket"].isNull()) + jobListObject.editingConfig.digiWaterMark.inputFile2.bucket = inputFile2Node["Bucket"].asString(); auto outputFileNode = editingConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - jobListObject.editingConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - jobListObject.editingConfig.outputFile.location = outputFileNode["Location"].asString(); - if(!outputFileNode["Object"].isNull()) - jobListObject.editingConfig.outputFile.object = outputFileNode["Object"].asString(); if(!outputFileNode["RoleArn"].isNull()) jobListObject.editingConfig.outputFile.roleArn = outputFileNode["RoleArn"].asString(); - auto m3U8NonStandardSupportNode = editingConfigNode["M3U8NonStandardSupport"]; - auto tSNode = m3U8NonStandardSupportNode["TS"]; - if(!tSNode["Md5Support"].isNull()) - jobListObject.editingConfig.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; - if(!tSNode["SizeSupport"].isNull()) - jobListObject.editingConfig.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!outputFileNode["Object"].isNull()) + jobListObject.editingConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + jobListObject.editingConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + jobListObject.editingConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto editingNode = editingConfigNode["Editing"]; + auto allClipListNode = editingNode["ClipList"]["Clip"]; + for (auto editingNodeClipListClip : allClipListNode) + { + Job::EditingConfig::Editing::Clip clipObject; + if(!editingNodeClipListClip["Type"].isNull()) + clipObject.type = editingNodeClipListClip["Type"].asString(); + if(!editingNodeClipListClip["SourceID"].isNull()) + clipObject.sourceID = editingNodeClipListClip["SourceID"].asString(); + if(!editingNodeClipListClip["SourceType"].isNull()) + clipObject.sourceType = editingNodeClipListClip["SourceType"].asString(); + if(!editingNodeClipListClip["SourceStrmMap"].isNull()) + clipObject.sourceStrmMap = editingNodeClipListClip["SourceStrmMap"].asString(); + if(!editingNodeClipListClip["Out"].isNull()) + clipObject.out = editingNodeClipListClip["Out"].asString(); + if(!editingNodeClipListClip["In"].isNull()) + clipObject.in = editingNodeClipListClip["In"].asString(); + if(!editingNodeClipListClip["Id"].isNull()) + clipObject.id = editingNodeClipListClip["Id"].asString(); + auto allEffectsNode = editingNodeClipListClip["Effects"]["Effect"]; + for (auto editingNodeClipListClipEffectsEffect : allEffectsNode) + { + Job::EditingConfig::Editing::Clip::Effect effectsObject; + if(!editingNodeClipListClipEffectsEffect["Effect"].isNull()) + effectsObject.effect = editingNodeClipListClipEffectsEffect["Effect"].asString(); + if(!editingNodeClipListClipEffectsEffect["EffectConfig"].isNull()) + effectsObject.effectConfig = editingNodeClipListClipEffectsEffect["EffectConfig"].asString(); + clipObject.effects.push_back(effectsObject); + } + jobListObject.editingConfig.editing.clipList.push_back(clipObject); + } + auto timelineNode = editingNode["Timeline"]; + auto allTrackListNode = timelineNode["TrackList"]["Track"]; + for (auto timelineNodeTrackListTrack : allTrackListNode) + { + Job::EditingConfig::Editing::Timeline::Track trackObject; + if(!timelineNodeTrackListTrack["Type"].isNull()) + trackObject.type = timelineNodeTrackListTrack["Type"].asString(); + if(!timelineNodeTrackListTrack["Order"].isNull()) + trackObject.order = timelineNodeTrackListTrack["Order"].asString(); + if(!timelineNodeTrackListTrack["Id"].isNull()) + trackObject.id = timelineNodeTrackListTrack["Id"].asString(); + auto allClipsNode = timelineNodeTrackListTrack["Clips"]["Clip"]; + for (auto timelineNodeTrackListTrackClipsClip : allClipsNode) + { + Job::EditingConfig::Editing::Timeline::Track::Clip3 clipsObject; + if(!timelineNodeTrackListTrackClipsClip["Out"].isNull()) + clipsObject.out = timelineNodeTrackListTrackClipsClip["Out"].asString(); + if(!timelineNodeTrackListTrackClipsClip["In"].isNull()) + clipsObject.in = timelineNodeTrackListTrackClipsClip["In"].asString(); + if(!timelineNodeTrackListTrackClipsClip["clipID"].isNull()) + clipsObject.clipID = timelineNodeTrackListTrackClipsClip["clipID"].asString(); + auto clipsConfigNode = value["ClipsConfig"]; + auto clipsConfigVideoNode = clipsConfigNode["ClipsConfigVideo"]; + if(!clipsConfigVideoNode["T"].isNull()) + clipsObject.clipsConfig.clipsConfigVideo.t = clipsConfigVideoNode["T"].asString(); + if(!clipsConfigVideoNode["L"].isNull()) + clipsObject.clipsConfig.clipsConfigVideo.l = clipsConfigVideoNode["L"].asString(); + trackObject.clips.push_back(clipsObject); + } + jobListObject.editingConfig.editing.timeline.trackList.push_back(trackObject); + } + auto timelineConfigNode = timelineNode["TimelineConfig"]; + auto timelineConfigAudioNode = timelineConfigNode["TimelineConfigAudio"]; + if(!timelineConfigAudioNode["ChannelLayout"].isNull()) + jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.channelLayout = timelineConfigAudioNode["ChannelLayout"].asString(); + if(!timelineConfigAudioNode["Samplerate"].isNull()) + jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.samplerate = timelineConfigAudioNode["Samplerate"].asString(); + if(!timelineConfigAudioNode["Channels"].isNull()) + jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.channels = timelineConfigAudioNode["Channels"].asString(); + auto timelineConfigVideoNode = timelineConfigNode["TimelineConfigVideo"]; + if(!timelineConfigVideoNode["BgColor"].isNull()) + jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.bgColor = timelineConfigVideoNode["BgColor"].asString(); + if(!timelineConfigVideoNode["Width"].isNull()) + jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.width = timelineConfigVideoNode["Width"].asString(); + if(!timelineConfigVideoNode["RenderRatio"].isNull()) + jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.renderRatio = timelineConfigVideoNode["RenderRatio"].asString(); + if(!timelineConfigVideoNode["IsGpuData"].isNull()) + jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.isGpuData = timelineConfigVideoNode["IsGpuData"].asString(); + if(!timelineConfigVideoNode["Height"].isNull()) + jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.height = timelineConfigVideoNode["Height"].asString(); + if(!timelineConfigVideoNode["IsOneTrackData"].isNull()) + jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.isOneTrackData = timelineConfigVideoNode["IsOneTrackData"].asString(); + if(!timelineConfigVideoNode["Fps"].isNull()) + jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.fps = timelineConfigVideoNode["Fps"].asString(); + if(!timelineConfigVideoNode["ReclosePrec"].isNull()) + jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.reclosePrec = timelineConfigVideoNode["ReclosePrec"].asString(); + auto containerNode = editingConfigNode["Container"]; + if(!containerNode["Format"].isNull()) + jobListObject.editingConfig.container.format = containerNode["Format"].asString(); + auto clip4Node = editingConfigNode["Clip"]; + auto timeSpanNode = clip4Node["TimeSpan"]; + if(!timeSpanNode["Seek"].isNull()) + jobListObject.editingConfig.clip4.timeSpan.seek = timeSpanNode["Seek"].asString(); + if(!timeSpanNode["Duration"].isNull()) + jobListObject.editingConfig.clip4.timeSpan.duration = timeSpanNode["Duration"].asString(); + auto muxConfigNode = editingConfigNode["MuxConfig"]; + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + jobListObject.editingConfig.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["DitherMode"].isNull()) + jobListObject.editingConfig.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + if(!gifNode["Loop"].isNull()) + jobListObject.editingConfig.muxConfig.gif.loop = gifNode["Loop"].asString(); + if(!gifNode["IsCustomPalette"].isNull()) + jobListObject.editingConfig.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); + auto segmentNode = muxConfigNode["Segment"]; + if(!segmentNode["Duration"].isNull()) + jobListObject.editingConfig.muxConfig.segment.duration = segmentNode["Duration"].asString(); + auto subtitleConfigNode = editingConfigNode["SubtitleConfig"]; + auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; + for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) + { + Job::EditingConfig::SubtitleConfig::ExtSubtitle extSubtitleObject; + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) + extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) + extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + extSubtitleObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + extSubtitleObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + extSubtitleObject.input.bucket = inputNode["Bucket"].asString(); + jobListObject.editingConfig.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); + } + auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; + for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) + { + Job::EditingConfig::SubtitleConfig::Subtitle subtitleObject; + if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) + subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); + jobListObject.editingConfig.subtitleConfig.subtitleList.push_back(subtitleObject); + } auto propertiesNode = editingConfigNode["Properties"]; if(!propertiesNode["Width"].isNull()) jobListObject.editingConfig.properties.width = propertiesNode["Width"].asString(); if(!propertiesNode["Height"].isNull()) jobListObject.editingConfig.properties.height = propertiesNode["Height"].asString(); - if(!propertiesNode["Bitrate"].isNull()) - jobListObject.editingConfig.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["Duration"].isNull()) jobListObject.editingConfig.properties.duration = propertiesNode["Duration"].asString(); if(!propertiesNode["Fps"].isNull()) jobListObject.editingConfig.properties.fps = propertiesNode["Fps"].asString(); - if(!propertiesNode["FileSize"].isNull()) - jobListObject.editingConfig.properties.fileSize = propertiesNode["FileSize"].asString(); + if(!propertiesNode["Bitrate"].isNull()) + jobListObject.editingConfig.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["FileFormat"].isNull()) jobListObject.editingConfig.properties.fileFormat = propertiesNode["FileFormat"].asString(); + if(!propertiesNode["FileSize"].isNull()) + jobListObject.editingConfig.properties.fileSize = propertiesNode["FileSize"].asString(); auto streamsNode = propertiesNode["Streams"]; auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) @@ -188,93 +418,93 @@ void QueryEditingJobListResult::parse(const std::string &payload) Job::EditingConfig::Properties::Streams::VideoStream videoStreamObject; if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) - videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) + videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); auto networkCostNode = value["NetworkCost"]; if(!networkCostNode["PreloadTime"].isNull()) videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); if(!networkCostNode["AvgBitrate"].isNull()) videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); jobListObject.editingConfig.properties.streams.videoStreamList.push_back(videoStreamObject); } auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) { Job::EditingConfig::Properties::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); jobListObject.editingConfig.properties.streams.audioStreamList.push_back(audioStreamObject); } auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; @@ -288,252 +518,22 @@ void QueryEditingJobListResult::parse(const std::string &payload) jobListObject.editingConfig.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); } auto formatNode = propertiesNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - jobListObject.editingConfig.properties.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - jobListObject.editingConfig.properties.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - jobListObject.editingConfig.properties.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - jobListObject.editingConfig.properties.format.formatLongName = formatNode["FormatLongName"].asString(); if(!formatNode["StartTime"].isNull()) jobListObject.editingConfig.properties.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - jobListObject.editingConfig.properties.format.duration = formatNode["Duration"].asString(); + if(!formatNode["NumPrograms"].isNull()) + jobListObject.editingConfig.properties.format.numPrograms = formatNode["NumPrograms"].asString(); if(!formatNode["Size"].isNull()) jobListObject.editingConfig.properties.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + jobListObject.editingConfig.properties.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + jobListObject.editingConfig.properties.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + jobListObject.editingConfig.properties.format.duration = formatNode["Duration"].asString(); if(!formatNode["Bitrate"].isNull()) jobListObject.editingConfig.properties.format.bitrate = formatNode["Bitrate"].asString(); - auto clipNode = editingConfigNode["Clip"]; - auto timeSpanNode = clipNode["TimeSpan"]; - if(!timeSpanNode["Seek"].isNull()) - jobListObject.editingConfig.clip.timeSpan.seek = timeSpanNode["Seek"].asString(); - if(!timeSpanNode["Duration"].isNull()) - jobListObject.editingConfig.clip.timeSpan.duration = timeSpanNode["Duration"].asString(); - auto superResoNode = editingConfigNode["SuperReso"]; - if(!superResoNode["IsHalfSample"].isNull()) - jobListObject.editingConfig.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); - auto subtitleConfigNode = editingConfigNode["SubtitleConfig"]; - auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; - for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) - { - Job::EditingConfig::SubtitleConfig::Subtitle subtitleObject; - if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) - subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); - jobListObject.editingConfig.subtitleConfig.subtitleList.push_back(subtitleObject); - } - auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; - for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) - { - Job::EditingConfig::SubtitleConfig::ExtSubtitle extSubtitleObject; - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) - extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) - extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - extSubtitleObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - extSubtitleObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - extSubtitleObject.input.object = inputNode["Object"].asString(); - jobListObject.editingConfig.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); - } - auto transConfigNode = editingConfigNode["TransConfig"]; - if(!transConfigNode["TransMode"].isNull()) - jobListObject.editingConfig.transConfig.transMode = transConfigNode["TransMode"].asString(); - if(!transConfigNode["IsCheckReso"].isNull()) - jobListObject.editingConfig.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); - if(!transConfigNode["IsCheckResoFail"].isNull()) - jobListObject.editingConfig.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); - if(!transConfigNode["IsCheckVideoBitrate"].isNull()) - jobListObject.editingConfig.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); - if(!transConfigNode["IsCheckAudioBitrate"].isNull()) - jobListObject.editingConfig.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); - if(!transConfigNode["AdjDarMethod"].isNull()) - jobListObject.editingConfig.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); - if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) - jobListObject.editingConfig.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); - if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) - jobListObject.editingConfig.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); - if(!transConfigNode["Duration"].isNull()) - jobListObject.editingConfig.transConfig.duration = transConfigNode["Duration"].asString(); - auto muxConfigNode = editingConfigNode["MuxConfig"]; - auto segmentNode = muxConfigNode["Segment"]; - if(!segmentNode["Duration"].isNull()) - jobListObject.editingConfig.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - jobListObject.editingConfig.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - jobListObject.editingConfig.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); - if(!gifNode["IsCustomPalette"].isNull()) - jobListObject.editingConfig.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); - if(!gifNode["DitherMode"].isNull()) - jobListObject.editingConfig.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); - auto audioNode = editingConfigNode["Audio"]; - if(!audioNode["Codec"].isNull()) - jobListObject.editingConfig.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - jobListObject.editingConfig.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - jobListObject.editingConfig.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - jobListObject.editingConfig.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - jobListObject.editingConfig.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - jobListObject.editingConfig.audio.qscale = audioNode["Qscale"].asString(); - auto volumeNode = audioNode["Volume"]; - if(!volumeNode["Level"].isNull()) - jobListObject.editingConfig.audio.volume.level = volumeNode["Level"].asString(); - if(!volumeNode["Method"].isNull()) - jobListObject.editingConfig.audio.volume.method = volumeNode["Method"].asString(); - auto videoNode = editingConfigNode["Video"]; - if(!videoNode["Codec"].isNull()) - jobListObject.editingConfig.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - jobListObject.editingConfig.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - jobListObject.editingConfig.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - jobListObject.editingConfig.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - jobListObject.editingConfig.video.width = videoNode["Width"].asString(); - if(!videoNode["Height"].isNull()) - jobListObject.editingConfig.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - jobListObject.editingConfig.video.fps = videoNode["Fps"].asString(); - if(!videoNode["Gop"].isNull()) - jobListObject.editingConfig.video.gop = videoNode["Gop"].asString(); - if(!videoNode["Preset"].isNull()) - jobListObject.editingConfig.video.preset = videoNode["Preset"].asString(); - if(!videoNode["ScanMode"].isNull()) - jobListObject.editingConfig.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - jobListObject.editingConfig.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - jobListObject.editingConfig.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - jobListObject.editingConfig.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - jobListObject.editingConfig.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - jobListObject.editingConfig.video.qscale = videoNode["Qscale"].asString(); - if(!videoNode["Crop"].isNull()) - jobListObject.editingConfig.video.crop = videoNode["Crop"].asString(); - if(!videoNode["Pad"].isNull()) - jobListObject.editingConfig.video.pad = videoNode["Pad"].asString(); - if(!videoNode["MaxFps"].isNull()) - jobListObject.editingConfig.video.maxFps = videoNode["MaxFps"].asString(); - auto bitrateBndNode = videoNode["BitrateBnd"]; - if(!bitrateBndNode["Max"].isNull()) - jobListObject.editingConfig.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); - if(!bitrateBndNode["Min"].isNull()) - jobListObject.editingConfig.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto containerNode = editingConfigNode["Container"]; - if(!containerNode["Format"].isNull()) - jobListObject.editingConfig.container.format = containerNode["Format"].asString(); - auto encryptionNode = editingConfigNode["Encryption"]; - if(!encryptionNode["Type"].isNull()) - jobListObject.editingConfig.encryption.type = encryptionNode["Type"].asString(); - if(!encryptionNode["Id"].isNull()) - jobListObject.editingConfig.encryption.id = encryptionNode["Id"].asString(); - if(!encryptionNode["Key"].isNull()) - jobListObject.editingConfig.encryption.key = encryptionNode["Key"].asString(); - if(!encryptionNode["KeyUri"].isNull()) - jobListObject.editingConfig.encryption.keyUri = encryptionNode["KeyUri"].asString(); - if(!encryptionNode["KeyType"].isNull()) - jobListObject.editingConfig.encryption.keyType = encryptionNode["KeyType"].asString(); - if(!encryptionNode["SkipCnt"].isNull()) - jobListObject.editingConfig.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); - auto editingNode = editingConfigNode["Editing"]; - auto allClipListNode = editingNode["ClipList"]["Clip"]; - for (auto editingNodeClipListClip : allClipListNode) - { - Job::EditingConfig::Editing::Clip3 clip3Object; - if(!editingNodeClipListClip["Id"].isNull()) - clip3Object.id = editingNodeClipListClip["Id"].asString(); - if(!editingNodeClipListClip["Type"].isNull()) - clip3Object.type = editingNodeClipListClip["Type"].asString(); - if(!editingNodeClipListClip["SourceType"].isNull()) - clip3Object.sourceType = editingNodeClipListClip["SourceType"].asString(); - if(!editingNodeClipListClip["SourceID"].isNull()) - clip3Object.sourceID = editingNodeClipListClip["SourceID"].asString(); - if(!editingNodeClipListClip["SourceStrmMap"].isNull()) - clip3Object.sourceStrmMap = editingNodeClipListClip["SourceStrmMap"].asString(); - if(!editingNodeClipListClip["In"].isNull()) - clip3Object.in = editingNodeClipListClip["In"].asString(); - if(!editingNodeClipListClip["Out"].isNull()) - clip3Object.out = editingNodeClipListClip["Out"].asString(); - auto allEffectsNode = allClipListNode["Effects"]["Effect"]; - for (auto allClipListNodeEffectsEffect : allEffectsNode) - { - Job::EditingConfig::Editing::Clip3::Effect effectsObject; - if(!allClipListNodeEffectsEffect["Effect"].isNull()) - effectsObject.effect = allClipListNodeEffectsEffect["Effect"].asString(); - if(!allClipListNodeEffectsEffect["EffectConfig"].isNull()) - effectsObject.effectConfig = allClipListNodeEffectsEffect["EffectConfig"].asString(); - clip3Object.effects.push_back(effectsObject); - } - jobListObject.editingConfig.editing.clipList.push_back(clip3Object); - } - auto timelineNode = editingNode["Timeline"]; - auto allTrackListNode = timelineNode["TrackList"]["Track"]; - for (auto timelineNodeTrackListTrack : allTrackListNode) - { - Job::EditingConfig::Editing::Timeline::Track trackObject; - if(!timelineNodeTrackListTrack["Id"].isNull()) - trackObject.id = timelineNodeTrackListTrack["Id"].asString(); - if(!timelineNodeTrackListTrack["Type"].isNull()) - trackObject.type = timelineNodeTrackListTrack["Type"].asString(); - if(!timelineNodeTrackListTrack["Order"].isNull()) - trackObject.order = timelineNodeTrackListTrack["Order"].asString(); - auto allClipsNode = allTrackListNode["Clips"]["Clip"]; - for (auto allTrackListNodeClipsClip : allClipsNode) - { - Job::EditingConfig::Editing::Timeline::Track::Clip4 clipsObject; - if(!allTrackListNodeClipsClip["clipID"].isNull()) - clipsObject.clipID = allTrackListNodeClipsClip["clipID"].asString(); - if(!allTrackListNodeClipsClip["In"].isNull()) - clipsObject.in = allTrackListNodeClipsClip["In"].asString(); - if(!allTrackListNodeClipsClip["Out"].isNull()) - clipsObject.out = allTrackListNodeClipsClip["Out"].asString(); - auto clipsConfigNode = value["ClipsConfig"]; - auto clipsConfigVideoNode = clipsConfigNode["ClipsConfigVideo"]; - if(!clipsConfigVideoNode["L"].isNull()) - clipsObject.clipsConfig.clipsConfigVideo.l = clipsConfigVideoNode["L"].asString(); - if(!clipsConfigVideoNode["T"].isNull()) - clipsObject.clipsConfig.clipsConfigVideo.t = clipsConfigVideoNode["T"].asString(); - trackObject.clips.push_back(clipsObject); - } - jobListObject.editingConfig.editing.timeline.trackList.push_back(trackObject); - } - auto timelineConfigNode = timelineNode["TimelineConfig"]; - auto timelineConfigVideoNode = timelineConfigNode["TimelineConfigVideo"]; - if(!timelineConfigVideoNode["Width"].isNull()) - jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.width = timelineConfigVideoNode["Width"].asString(); - if(!timelineConfigVideoNode["Height"].isNull()) - jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.height = timelineConfigVideoNode["Height"].asString(); - if(!timelineConfigVideoNode["BgColor"].isNull()) - jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.bgColor = timelineConfigVideoNode["BgColor"].asString(); - if(!timelineConfigVideoNode["Fps"].isNull()) - jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.fps = timelineConfigVideoNode["Fps"].asString(); - if(!timelineConfigVideoNode["RenderRatio"].isNull()) - jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.renderRatio = timelineConfigVideoNode["RenderRatio"].asString(); - if(!timelineConfigVideoNode["ReclosePrec"].isNull()) - jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.reclosePrec = timelineConfigVideoNode["ReclosePrec"].asString(); - if(!timelineConfigVideoNode["IsGpuData"].isNull()) - jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.isGpuData = timelineConfigVideoNode["IsGpuData"].asString(); - if(!timelineConfigVideoNode["IsOneTrackData"].isNull()) - jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.isOneTrackData = timelineConfigVideoNode["IsOneTrackData"].asString(); - auto timelineConfigAudioNode = timelineConfigNode["TimelineConfigAudio"]; - if(!timelineConfigAudioNode["Samplerate"].isNull()) - jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.samplerate = timelineConfigAudioNode["Samplerate"].asString(); - if(!timelineConfigAudioNode["ChannelLayout"].isNull()) - jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.channelLayout = timelineConfigAudioNode["ChannelLayout"].asString(); - if(!timelineConfigAudioNode["Channels"].isNull()) - jobListObject.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.channels = timelineConfigAudioNode["Channels"].asString(); + if(!formatNode["FormatName"].isNull()) + jobListObject.editingConfig.properties.format.formatName = formatNode["FormatName"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) jobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); diff --git a/mts/src/model/QueryFacerecogJobListRequest.cc b/mts/src/model/QueryFacerecogJobListRequest.cc index 57cdb3caf..a305e4a81 100644 --- a/mts/src/model/QueryFacerecogJobListRequest.cc +++ b/mts/src/model/QueryFacerecogJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryFacerecogJobListRequest; - -QueryFacerecogJobListRequest::QueryFacerecogJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryFacerecogJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryFacerecogJobListRequest::~QueryFacerecogJobListRequest() -{} - -long QueryFacerecogJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryFacerecogJobListRequest; + +QueryFacerecogJobListRequest::QueryFacerecogJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryFacerecogJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryFacerecogJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryFacerecogJobListRequest::~QueryFacerecogJobListRequest() {} + +long QueryFacerecogJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryFacerecogJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryFacerecogJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryFacerecogJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryFacerecogJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryFacerecogJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryFacerecogJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryFacerecogJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryFacerecogJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string QueryFacerecogJobListRequest::getFacerecogJobIds()const -{ - return facerecogJobIds_; +void QueryFacerecogJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryFacerecogJobListRequest::setFacerecogJobIds(const std::string& facerecogJobIds) -{ - facerecogJobIds_ = facerecogJobIds; - setParameter("FacerecogJobIds", facerecogJobIds); +std::string QueryFacerecogJobListRequest::getFacerecogJobIds() const { + return facerecogJobIds_; } -long QueryFacerecogJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryFacerecogJobListRequest::setFacerecogJobIds(const std::string &facerecogJobIds) { + facerecogJobIds_ = facerecogJobIds; + setParameter(std::string("FacerecogJobIds"), facerecogJobIds); } -void QueryFacerecogJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryFacerecogJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryFacerecogJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryFacerecogJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryFacerecogJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryFacerecogJobListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryFacerecogJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/QueryFacerecogJobListResult.cc b/mts/src/model/QueryFacerecogJobListResult.cc index 00f6a3e86..56abb86cf 100644 --- a/mts/src/model/QueryFacerecogJobListResult.cc +++ b/mts/src/model/QueryFacerecogJobListResult.cc @@ -43,27 +43,20 @@ void QueryFacerecogJobListResult::parse(const std::string &payload) for (auto valueFacerecogJobListFacerecogJob : allFacerecogJobListNode) { FacerecogJob facerecogJobListObject; - if(!valueFacerecogJobListFacerecogJob["Id"].isNull()) - facerecogJobListObject.id = valueFacerecogJobListFacerecogJob["Id"].asString(); - if(!valueFacerecogJobListFacerecogJob["UserData"].isNull()) - facerecogJobListObject.userData = valueFacerecogJobListFacerecogJob["UserData"].asString(); - if(!valueFacerecogJobListFacerecogJob["PipelineId"].isNull()) - facerecogJobListObject.pipelineId = valueFacerecogJobListFacerecogJob["PipelineId"].asString(); + if(!valueFacerecogJobListFacerecogJob["CreationTime"].isNull()) + facerecogJobListObject.creationTime = valueFacerecogJobListFacerecogJob["CreationTime"].asString(); if(!valueFacerecogJobListFacerecogJob["State"].isNull()) facerecogJobListObject.state = valueFacerecogJobListFacerecogJob["State"].asString(); + if(!valueFacerecogJobListFacerecogJob["UserData"].isNull()) + facerecogJobListObject.userData = valueFacerecogJobListFacerecogJob["UserData"].asString(); if(!valueFacerecogJobListFacerecogJob["Code"].isNull()) facerecogJobListObject.code = valueFacerecogJobListFacerecogJob["Code"].asString(); if(!valueFacerecogJobListFacerecogJob["Message"].isNull()) facerecogJobListObject.message = valueFacerecogJobListFacerecogJob["Message"].asString(); - if(!valueFacerecogJobListFacerecogJob["CreationTime"].isNull()) - facerecogJobListObject.creationTime = valueFacerecogJobListFacerecogJob["CreationTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - facerecogJobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - facerecogJobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - facerecogJobListObject.input.object = inputNode["Object"].asString(); + if(!valueFacerecogJobListFacerecogJob["PipelineId"].isNull()) + facerecogJobListObject.pipelineId = valueFacerecogJobListFacerecogJob["PipelineId"].asString(); + if(!valueFacerecogJobListFacerecogJob["Id"].isNull()) + facerecogJobListObject.id = valueFacerecogJobListFacerecogJob["Id"].asString(); auto videoFacerecogResultNode = value["VideoFacerecogResult"]; auto allFacerecogsNode = videoFacerecogResultNode["Facerecogs"]["Facerecog"]; for (auto videoFacerecogResultNodeFacerecogsFacerecog : allFacerecogsNode) @@ -71,20 +64,27 @@ void QueryFacerecogJobListResult::parse(const std::string &payload) FacerecogJob::VideoFacerecogResult::Facerecog facerecogObject; if(!videoFacerecogResultNodeFacerecogsFacerecog["Time"].isNull()) facerecogObject.time = videoFacerecogResultNodeFacerecogsFacerecog["Time"].asString(); - auto allFacesNode = allFacerecogsNode["Faces"]["Face"]; - for (auto allFacerecogsNodeFacesFace : allFacesNode) + auto allFacesNode = videoFacerecogResultNodeFacerecogsFacerecog["Faces"]["Face"]; + for (auto videoFacerecogResultNodeFacerecogsFacerecogFacesFace : allFacesNode) { FacerecogJob::VideoFacerecogResult::Facerecog::Face facesObject; - if(!allFacerecogsNodeFacesFace["Name"].isNull()) - facesObject.name = allFacerecogsNodeFacesFace["Name"].asString(); - if(!allFacerecogsNodeFacesFace["Score"].isNull()) - facesObject.score = allFacerecogsNodeFacesFace["Score"].asString(); - if(!allFacerecogsNodeFacesFace["Target"].isNull()) - facesObject.target = allFacerecogsNodeFacesFace["Target"].asString(); + if(!videoFacerecogResultNodeFacerecogsFacerecogFacesFace["Score"].isNull()) + facesObject.score = videoFacerecogResultNodeFacerecogsFacerecogFacesFace["Score"].asString(); + if(!videoFacerecogResultNodeFacerecogsFacerecogFacesFace["Name"].isNull()) + facesObject.name = videoFacerecogResultNodeFacerecogsFacerecogFacesFace["Name"].asString(); + if(!videoFacerecogResultNodeFacerecogsFacerecogFacesFace["Target"].isNull()) + facesObject.target = videoFacerecogResultNodeFacerecogsFacerecogFacesFace["Target"].asString(); facerecogObject.faces.push_back(facesObject); } facerecogJobListObject.videoFacerecogResult.facerecogs.push_back(facerecogObject); } + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + facerecogJobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + facerecogJobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + facerecogJobListObject.input.bucket = inputNode["Bucket"].asString(); facerecogJobList_.push_back(facerecogJobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryFpCompareJobListRequest.cc b/mts/src/model/QueryFpCompareJobListRequest.cc index 1644083ae..f233607c0 100644 --- a/mts/src/model/QueryFpCompareJobListRequest.cc +++ b/mts/src/model/QueryFpCompareJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryFpCompareJobListRequest; - -QueryFpCompareJobListRequest::QueryFpCompareJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryFpCompareJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryFpCompareJobListRequest::~QueryFpCompareJobListRequest() -{} - -long QueryFpCompareJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryFpCompareJobListRequest; + +QueryFpCompareJobListRequest::QueryFpCompareJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryFpCompareJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryFpCompareJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryFpCompareJobListRequest::~QueryFpCompareJobListRequest() {} + +long QueryFpCompareJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryFpCompareJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryFpCompareJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryFpCompareJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryFpCompareJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryFpCompareJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryFpCompareJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryFpCompareJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryFpCompareJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryFpCompareJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryFpCompareJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryFpCompareJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryFpCompareJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryFpCompareJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryFpCompareJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryFpCompareJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryFpCompareJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryFpCompareJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryFpCompareJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryFpCompareJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryFpCompareJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryFpCompareJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryFpCompareJobListResult.cc b/mts/src/model/QueryFpCompareJobListResult.cc index eba8b6ee7..f14ae9843 100644 --- a/mts/src/model/QueryFpCompareJobListResult.cc +++ b/mts/src/model/QueryFpCompareJobListResult.cc @@ -43,125 +43,125 @@ void QueryFpCompareJobListResult::parse(const std::string &payload) for (auto valueFpCompareJobListFpCompareJob : allFpCompareJobListNode) { FpCompareJob fpCompareJobListObject; - if(!valueFpCompareJobListFpCompareJob["Id"].isNull()) - fpCompareJobListObject.id = valueFpCompareJobListFpCompareJob["Id"].asString(); - if(!valueFpCompareJobListFpCompareJob["UserData"].isNull()) - fpCompareJobListObject.userData = valueFpCompareJobListFpCompareJob["UserData"].asString(); - if(!valueFpCompareJobListFpCompareJob["PipelineId"].isNull()) - fpCompareJobListObject.pipelineId = valueFpCompareJobListFpCompareJob["PipelineId"].asString(); - if(!valueFpCompareJobListFpCompareJob["FpDBId"].isNull()) - fpCompareJobListObject.fpDBId = valueFpCompareJobListFpCompareJob["FpDBId"].asString(); - if(!valueFpCompareJobListFpCompareJob["State"].isNull()) - fpCompareJobListObject.state = valueFpCompareJobListFpCompareJob["State"].asString(); - if(!valueFpCompareJobListFpCompareJob["Code"].isNull()) - fpCompareJobListObject.code = valueFpCompareJobListFpCompareJob["Code"].asString(); - if(!valueFpCompareJobListFpCompareJob["Message"].isNull()) - fpCompareJobListObject.message = valueFpCompareJobListFpCompareJob["Message"].asString(); if(!valueFpCompareJobListFpCompareJob["CreationTime"].isNull()) fpCompareJobListObject.creationTime = valueFpCompareJobListFpCompareJob["CreationTime"].asString(); if(!valueFpCompareJobListFpCompareJob["FinishTime"].isNull()) fpCompareJobListObject.finishTime = valueFpCompareJobListFpCompareJob["FinishTime"].asString(); + if(!valueFpCompareJobListFpCompareJob["State"].isNull()) + fpCompareJobListObject.state = valueFpCompareJobListFpCompareJob["State"].asString(); + if(!valueFpCompareJobListFpCompareJob["Message"].isNull()) + fpCompareJobListObject.message = valueFpCompareJobListFpCompareJob["Message"].asString(); + if(!valueFpCompareJobListFpCompareJob["FpDBId"].isNull()) + fpCompareJobListObject.fpDBId = valueFpCompareJobListFpCompareJob["FpDBId"].asString(); + if(!valueFpCompareJobListFpCompareJob["UserData"].isNull()) + fpCompareJobListObject.userData = valueFpCompareJobListFpCompareJob["UserData"].asString(); + if(!valueFpCompareJobListFpCompareJob["Code"].isNull()) + fpCompareJobListObject.code = valueFpCompareJobListFpCompareJob["Code"].asString(); + if(!valueFpCompareJobListFpCompareJob["PipelineId"].isNull()) + fpCompareJobListObject.pipelineId = valueFpCompareJobListFpCompareJob["PipelineId"].asString(); + if(!valueFpCompareJobListFpCompareJob["Id"].isNull()) + fpCompareJobListObject.id = valueFpCompareJobListFpCompareJob["Id"].asString(); auto masterFileNode = value["MasterFile"]; - if(!masterFileNode["Bucket"].isNull()) - fpCompareJobListObject.masterFile.bucket = masterFileNode["Bucket"].asString(); - if(!masterFileNode["Location"].isNull()) - fpCompareJobListObject.masterFile.location = masterFileNode["Location"].asString(); if(!masterFileNode["Object"].isNull()) fpCompareJobListObject.masterFile.object = masterFileNode["Object"].asString(); + if(!masterFileNode["Location"].isNull()) + fpCompareJobListObject.masterFile.location = masterFileNode["Location"].asString(); + if(!masterFileNode["Bucket"].isNull()) + fpCompareJobListObject.masterFile.bucket = masterFileNode["Bucket"].asString(); auto queryFileNode = value["QueryFile"]; - if(!queryFileNode["Bucket"].isNull()) - fpCompareJobListObject.queryFile.bucket = queryFileNode["Bucket"].asString(); - if(!queryFileNode["Location"].isNull()) - fpCompareJobListObject.queryFile.location = queryFileNode["Location"].asString(); if(!queryFileNode["Object"].isNull()) fpCompareJobListObject.queryFile.object = queryFileNode["Object"].asString(); + if(!queryFileNode["Location"].isNull()) + fpCompareJobListObject.queryFile.location = queryFileNode["Location"].asString(); + if(!queryFileNode["Bucket"].isNull()) + fpCompareJobListObject.queryFile.bucket = queryFileNode["Bucket"].asString(); auto matchFrameStorageNode = value["MatchFrameStorage"]; auto masterMediaFramesNode = matchFrameStorageNode["MasterMediaFrames"]; - if(!masterMediaFramesNode["Bucket"].isNull()) - fpCompareJobListObject.matchFrameStorage.masterMediaFrames.bucket = masterMediaFramesNode["Bucket"].asString(); - if(!masterMediaFramesNode["Location"].isNull()) - fpCompareJobListObject.matchFrameStorage.masterMediaFrames.location = masterMediaFramesNode["Location"].asString(); if(!masterMediaFramesNode["Object"].isNull()) fpCompareJobListObject.matchFrameStorage.masterMediaFrames.object = masterMediaFramesNode["Object"].asString(); - auto queryMediaFramesNode = matchFrameStorageNode["QueryMediaFrames"]; - if(!queryMediaFramesNode["Bucket"].isNull()) - fpCompareJobListObject.matchFrameStorage.queryMediaFrames.bucket = queryMediaFramesNode["Bucket"].asString(); - if(!queryMediaFramesNode["Location"].isNull()) - fpCompareJobListObject.matchFrameStorage.queryMediaFrames.location = queryMediaFramesNode["Location"].asString(); - if(!queryMediaFramesNode["Object"].isNull()) - fpCompareJobListObject.matchFrameStorage.queryMediaFrames.object = queryMediaFramesNode["Object"].asString(); + if(!masterMediaFramesNode["Location"].isNull()) + fpCompareJobListObject.matchFrameStorage.masterMediaFrames.location = masterMediaFramesNode["Location"].asString(); + if(!masterMediaFramesNode["Bucket"].isNull()) + fpCompareJobListObject.matchFrameStorage.masterMediaFrames.bucket = masterMediaFramesNode["Bucket"].asString(); auto matchedFramesDescFileNode = matchFrameStorageNode["MatchedFramesDescFile"]; - if(!matchedFramesDescFileNode["Bucket"].isNull()) - fpCompareJobListObject.matchFrameStorage.matchedFramesDescFile.bucket = matchedFramesDescFileNode["Bucket"].asString(); - if(!matchedFramesDescFileNode["Location"].isNull()) - fpCompareJobListObject.matchFrameStorage.matchedFramesDescFile.location = matchedFramesDescFileNode["Location"].asString(); if(!matchedFramesDescFileNode["Object"].isNull()) fpCompareJobListObject.matchFrameStorage.matchedFramesDescFile.object = matchedFramesDescFileNode["Object"].asString(); + if(!matchedFramesDescFileNode["Location"].isNull()) + fpCompareJobListObject.matchFrameStorage.matchedFramesDescFile.location = matchedFramesDescFileNode["Location"].asString(); + if(!matchedFramesDescFileNode["Bucket"].isNull()) + fpCompareJobListObject.matchFrameStorage.matchedFramesDescFile.bucket = matchedFramesDescFileNode["Bucket"].asString(); + auto queryMediaFramesNode = matchFrameStorageNode["QueryMediaFrames"]; + if(!queryMediaFramesNode["Object"].isNull()) + fpCompareJobListObject.matchFrameStorage.queryMediaFrames.object = queryMediaFramesNode["Object"].asString(); + if(!queryMediaFramesNode["Location"].isNull()) + fpCompareJobListObject.matchFrameStorage.queryMediaFrames.location = queryMediaFramesNode["Location"].asString(); + if(!queryMediaFramesNode["Bucket"].isNull()) + fpCompareJobListObject.matchFrameStorage.queryMediaFrames.bucket = queryMediaFramesNode["Bucket"].asString(); auto fpCompareResultNode = value["FpCompareResult"]; auto allMediaMatchSegmentsNode = fpCompareResultNode["MediaMatchSegments"]["MediaMatchSegment"]; for (auto fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment : allMediaMatchSegmentsNode) { FpCompareJob::FpCompareResult::MediaMatchSegment mediaMatchSegmentObject; - if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryStartFrame"].isNull()) - mediaMatchSegmentObject.queryStartFrame = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryStartFrame"].asString(); - if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryEndFrame"].isNull()) - mediaMatchSegmentObject.queryEndFrame = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryEndFrame"].asString(); - if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterStartFrame"].isNull()) - mediaMatchSegmentObject.masterStartFrame = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterStartFrame"].asString(); - if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterEndFrame"].isNull()) - mediaMatchSegmentObject.masterEndFrame = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterEndFrame"].asString(); if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryStartTime"].isNull()) mediaMatchSegmentObject.queryStartTime = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryStartTime"].asString(); - if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryEndTime"].isNull()) - mediaMatchSegmentObject.queryEndTime = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryEndTime"].asString(); - if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterStartTime"].isNull()) - mediaMatchSegmentObject.masterStartTime = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterStartTime"].asString(); - if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterEndTime"].isNull()) - mediaMatchSegmentObject.masterEndTime = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterEndTime"].asString(); - if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["TotalMatchFrameNum"].isNull()) - mediaMatchSegmentObject.totalMatchFrameNum = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["TotalMatchFrameNum"].asString(); + if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryEndFrame"].isNull()) + mediaMatchSegmentObject.queryEndFrame = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryEndFrame"].asString(); if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["Score"].isNull()) mediaMatchSegmentObject.score = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["Score"].asString(); + if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["TotalMatchFrameNum"].isNull()) + mediaMatchSegmentObject.totalMatchFrameNum = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["TotalMatchFrameNum"].asString(); + if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterEndTime"].isNull()) + mediaMatchSegmentObject.masterEndTime = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterEndTime"].asString(); + if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterStartTime"].isNull()) + mediaMatchSegmentObject.masterStartTime = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterStartTime"].asString(); + if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryStartFrame"].isNull()) + mediaMatchSegmentObject.queryStartFrame = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryStartFrame"].asString(); + if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterEndFrame"].isNull()) + mediaMatchSegmentObject.masterEndFrame = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterEndFrame"].asString(); + if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterStartFrame"].isNull()) + mediaMatchSegmentObject.masterStartFrame = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["MasterStartFrame"].asString(); + if(!fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryEndTime"].isNull()) + mediaMatchSegmentObject.queryEndTime = fpCompareResultNodeMediaMatchSegmentsMediaMatchSegment["QueryEndTime"].asString(); fpCompareJobListObject.fpCompareResult.mediaMatchSegments.push_back(mediaMatchSegmentObject); } - auto masterMediaInfoNode = fpCompareResultNode["MasterMediaInfo"]; - if(!masterMediaInfoNode["Duration"].isNull()) - fpCompareJobListObject.fpCompareResult.masterMediaInfo.duration = masterMediaInfoNode["Duration"].asString(); - if(!masterMediaInfoNode["FpNum"].isNull()) - fpCompareJobListObject.fpCompareResult.masterMediaInfo.fpNum = masterMediaInfoNode["FpNum"].asString(); - if(!masterMediaInfoNode["Width"].isNull()) - fpCompareJobListObject.fpCompareResult.masterMediaInfo.width = masterMediaInfoNode["Width"].asString(); - if(!masterMediaInfoNode["Height"].isNull()) - fpCompareJobListObject.fpCompareResult.masterMediaInfo.height = masterMediaInfoNode["Height"].asString(); - if(!masterMediaInfoNode["Fps"].isNull()) - fpCompareJobListObject.fpCompareResult.masterMediaInfo.fps = masterMediaInfoNode["Fps"].asString(); - if(!masterMediaInfoNode["TotalVideoFrame"].isNull()) - fpCompareJobListObject.fpCompareResult.masterMediaInfo.totalVideoFrame = masterMediaInfoNode["TotalVideoFrame"].asString(); - if(!masterMediaInfoNode["AudioBitRate"].isNull()) - fpCompareJobListObject.fpCompareResult.masterMediaInfo.audioBitRate = masterMediaInfoNode["AudioBitRate"].asString(); - if(!masterMediaInfoNode["AudioChannels"].isNull()) - fpCompareJobListObject.fpCompareResult.masterMediaInfo.audioChannels = masterMediaInfoNode["AudioChannels"].asString(); - if(!masterMediaInfoNode["AudioSampleRate"].isNull()) - fpCompareJobListObject.fpCompareResult.masterMediaInfo.audioSampleRate = masterMediaInfoNode["AudioSampleRate"].asString(); auto queryMediaInfoNode = fpCompareResultNode["QueryMediaInfo"]; - if(!queryMediaInfoNode["Duration"].isNull()) - fpCompareJobListObject.fpCompareResult.queryMediaInfo.duration = queryMediaInfoNode["Duration"].asString(); + if(!queryMediaInfoNode["AudioSampleRate"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.audioSampleRate = queryMediaInfoNode["AudioSampleRate"].asString(); + if(!queryMediaInfoNode["AudioBitRate"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.audioBitRate = queryMediaInfoNode["AudioBitRate"].asString(); if(!queryMediaInfoNode["FpNum"].isNull()) fpCompareJobListObject.fpCompareResult.queryMediaInfo.fpNum = queryMediaInfoNode["FpNum"].asString(); if(!queryMediaInfoNode["Width"].isNull()) fpCompareJobListObject.fpCompareResult.queryMediaInfo.width = queryMediaInfoNode["Width"].asString(); if(!queryMediaInfoNode["Height"].isNull()) fpCompareJobListObject.fpCompareResult.queryMediaInfo.height = queryMediaInfoNode["Height"].asString(); - if(!queryMediaInfoNode["Fps"].isNull()) - fpCompareJobListObject.fpCompareResult.queryMediaInfo.fps = queryMediaInfoNode["Fps"].asString(); if(!queryMediaInfoNode["TotalVideoFrame"].isNull()) fpCompareJobListObject.fpCompareResult.queryMediaInfo.totalVideoFrame = queryMediaInfoNode["TotalVideoFrame"].asString(); - if(!queryMediaInfoNode["AudioBitRate"].isNull()) - fpCompareJobListObject.fpCompareResult.queryMediaInfo.audioBitRate = queryMediaInfoNode["AudioBitRate"].asString(); + if(!queryMediaInfoNode["Fps"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.fps = queryMediaInfoNode["Fps"].asString(); + if(!queryMediaInfoNode["Duration"].isNull()) + fpCompareJobListObject.fpCompareResult.queryMediaInfo.duration = queryMediaInfoNode["Duration"].asString(); if(!queryMediaInfoNode["AudioChannels"].isNull()) fpCompareJobListObject.fpCompareResult.queryMediaInfo.audioChannels = queryMediaInfoNode["AudioChannels"].asString(); - if(!queryMediaInfoNode["AudioSampleRate"].isNull()) - fpCompareJobListObject.fpCompareResult.queryMediaInfo.audioSampleRate = queryMediaInfoNode["AudioSampleRate"].asString(); + auto masterMediaInfoNode = fpCompareResultNode["MasterMediaInfo"]; + if(!masterMediaInfoNode["AudioSampleRate"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.audioSampleRate = masterMediaInfoNode["AudioSampleRate"].asString(); + if(!masterMediaInfoNode["AudioBitRate"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.audioBitRate = masterMediaInfoNode["AudioBitRate"].asString(); + if(!masterMediaInfoNode["FpNum"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.fpNum = masterMediaInfoNode["FpNum"].asString(); + if(!masterMediaInfoNode["Width"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.width = masterMediaInfoNode["Width"].asString(); + if(!masterMediaInfoNode["Height"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.height = masterMediaInfoNode["Height"].asString(); + if(!masterMediaInfoNode["TotalVideoFrame"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.totalVideoFrame = masterMediaInfoNode["TotalVideoFrame"].asString(); + if(!masterMediaInfoNode["Fps"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.fps = masterMediaInfoNode["Fps"].asString(); + if(!masterMediaInfoNode["Duration"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.duration = masterMediaInfoNode["Duration"].asString(); + if(!masterMediaInfoNode["AudioChannels"].isNull()) + fpCompareJobListObject.fpCompareResult.masterMediaInfo.audioChannels = masterMediaInfoNode["AudioChannels"].asString(); fpCompareJobList_.push_back(fpCompareJobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryFpDBDeleteJobListRequest.cc b/mts/src/model/QueryFpDBDeleteJobListRequest.cc new file mode 100644 index 000000000..31a7a3617 --- /dev/null +++ b/mts/src/model/QueryFpDBDeleteJobListRequest.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 + +using AlibabaCloud::Mts::Model::QueryFpDBDeleteJobListRequest; + +QueryFpDBDeleteJobListRequest::QueryFpDBDeleteJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryFpDBDeleteJobList") { + setMethod(HttpRequest::Method::Post); +} + +QueryFpDBDeleteJobListRequest::~QueryFpDBDeleteJobListRequest() {} + +long QueryFpDBDeleteJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void QueryFpDBDeleteJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string QueryFpDBDeleteJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void QueryFpDBDeleteJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string QueryFpDBDeleteJobListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void QueryFpDBDeleteJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long QueryFpDBDeleteJobListRequest::getOwnerId() const { + return ownerId_; +} + +void QueryFpDBDeleteJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string QueryFpDBDeleteJobListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryFpDBDeleteJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string QueryFpDBDeleteJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryFpDBDeleteJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); +} + diff --git a/mts/src/model/QueryFpDBDeleteJobListResult.cc b/mts/src/model/QueryFpDBDeleteJobListResult.cc new file mode 100644 index 000000000..ce7196cb6 --- /dev/null +++ b/mts/src/model/QueryFpDBDeleteJobListResult.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::Mts; +using namespace AlibabaCloud::Mts::Model; + +QueryFpDBDeleteJobListResult::QueryFpDBDeleteJobListResult() : + ServiceResult() +{} + +QueryFpDBDeleteJobListResult::QueryFpDBDeleteJobListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryFpDBDeleteJobListResult::~QueryFpDBDeleteJobListResult() +{} + +void QueryFpDBDeleteJobListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFpDBDeleteJobListNode = value["FpDBDeleteJobList"]["FpDBDeleteJob"]; + for (auto valueFpDBDeleteJobListFpDBDeleteJob : allFpDBDeleteJobListNode) + { + FpDBDeleteJob fpDBDeleteJobListObject; + if(!valueFpDBDeleteJobListFpDBDeleteJob["CreationTime"].isNull()) + fpDBDeleteJobListObject.creationTime = valueFpDBDeleteJobListFpDBDeleteJob["CreationTime"].asString(); + if(!valueFpDBDeleteJobListFpDBDeleteJob["Status"].isNull()) + fpDBDeleteJobListObject.status = valueFpDBDeleteJobListFpDBDeleteJob["Status"].asString(); + if(!valueFpDBDeleteJobListFpDBDeleteJob["FinishTime"].isNull()) + fpDBDeleteJobListObject.finishTime = valueFpDBDeleteJobListFpDBDeleteJob["FinishTime"].asString(); + if(!valueFpDBDeleteJobListFpDBDeleteJob["DelType"].isNull()) + fpDBDeleteJobListObject.delType = valueFpDBDeleteJobListFpDBDeleteJob["DelType"].asString(); + if(!valueFpDBDeleteJobListFpDBDeleteJob["UserData"].isNull()) + fpDBDeleteJobListObject.userData = valueFpDBDeleteJobListFpDBDeleteJob["UserData"].asString(); + if(!valueFpDBDeleteJobListFpDBDeleteJob["Code"].isNull()) + fpDBDeleteJobListObject.code = valueFpDBDeleteJobListFpDBDeleteJob["Code"].asString(); + if(!valueFpDBDeleteJobListFpDBDeleteJob["Message"].isNull()) + fpDBDeleteJobListObject.message = valueFpDBDeleteJobListFpDBDeleteJob["Message"].asString(); + if(!valueFpDBDeleteJobListFpDBDeleteJob["PipelineId"].isNull()) + fpDBDeleteJobListObject.pipelineId = valueFpDBDeleteJobListFpDBDeleteJob["PipelineId"].asString(); + if(!valueFpDBDeleteJobListFpDBDeleteJob["FpDBId"].isNull()) + fpDBDeleteJobListObject.fpDBId = valueFpDBDeleteJobListFpDBDeleteJob["FpDBId"].asString(); + if(!valueFpDBDeleteJobListFpDBDeleteJob["Id"].isNull()) + fpDBDeleteJobListObject.id = valueFpDBDeleteJobListFpDBDeleteJob["Id"].asString(); + fpDBDeleteJobList_.push_back(fpDBDeleteJobListObject); + } + auto allNonExistIds = value["NonExistIds"]["String"]; + for (const auto &item : allNonExistIds) + nonExistIds_.push_back(item.asString()); + +} + +std::vector QueryFpDBDeleteJobListResult::getFpDBDeleteJobList()const +{ + return fpDBDeleteJobList_; +} + +std::vector QueryFpDBDeleteJobListResult::getNonExistIds()const +{ + return nonExistIds_; +} + diff --git a/mts/src/model/QueryFpFileDeleteJobListRequest.cc b/mts/src/model/QueryFpFileDeleteJobListRequest.cc new file mode 100644 index 000000000..aa7f28db8 --- /dev/null +++ b/mts/src/model/QueryFpFileDeleteJobListRequest.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 + +using AlibabaCloud::Mts::Model::QueryFpFileDeleteJobListRequest; + +QueryFpFileDeleteJobListRequest::QueryFpFileDeleteJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryFpFileDeleteJobList") { + setMethod(HttpRequest::Method::Post); +} + +QueryFpFileDeleteJobListRequest::~QueryFpFileDeleteJobListRequest() {} + +long QueryFpFileDeleteJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void QueryFpFileDeleteJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string QueryFpFileDeleteJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void QueryFpFileDeleteJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string QueryFpFileDeleteJobListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void QueryFpFileDeleteJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long QueryFpFileDeleteJobListRequest::getOwnerId() const { + return ownerId_; +} + +void QueryFpFileDeleteJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string QueryFpFileDeleteJobListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryFpFileDeleteJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string QueryFpFileDeleteJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryFpFileDeleteJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); +} + diff --git a/mts/src/model/QueryFpFileDeleteJobListResult.cc b/mts/src/model/QueryFpFileDeleteJobListResult.cc new file mode 100644 index 000000000..56fddd3a7 --- /dev/null +++ b/mts/src/model/QueryFpFileDeleteJobListResult.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::Mts; +using namespace AlibabaCloud::Mts::Model; + +QueryFpFileDeleteJobListResult::QueryFpFileDeleteJobListResult() : + ServiceResult() +{} + +QueryFpFileDeleteJobListResult::QueryFpFileDeleteJobListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryFpFileDeleteJobListResult::~QueryFpFileDeleteJobListResult() +{} + +void QueryFpFileDeleteJobListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFpFileDeleteJobListNode = value["FpFileDeleteJobList"]["FpFileDeleteJob"]; + for (auto valueFpFileDeleteJobListFpFileDeleteJob : allFpFileDeleteJobListNode) + { + FpFileDeleteJob fpFileDeleteJobListObject; + if(!valueFpFileDeleteJobListFpFileDeleteJob["CreationTime"].isNull()) + fpFileDeleteJobListObject.creationTime = valueFpFileDeleteJobListFpFileDeleteJob["CreationTime"].asString(); + if(!valueFpFileDeleteJobListFpFileDeleteJob["Status"].isNull()) + fpFileDeleteJobListObject.status = valueFpFileDeleteJobListFpFileDeleteJob["Status"].asString(); + if(!valueFpFileDeleteJobListFpFileDeleteJob["FinishTime"].isNull()) + fpFileDeleteJobListObject.finishTime = valueFpFileDeleteJobListFpFileDeleteJob["FinishTime"].asString(); + if(!valueFpFileDeleteJobListFpFileDeleteJob["UserData"].isNull()) + fpFileDeleteJobListObject.userData = valueFpFileDeleteJobListFpFileDeleteJob["UserData"].asString(); + if(!valueFpFileDeleteJobListFpFileDeleteJob["Code"].isNull()) + fpFileDeleteJobListObject.code = valueFpFileDeleteJobListFpFileDeleteJob["Code"].asString(); + if(!valueFpFileDeleteJobListFpFileDeleteJob["Message"].isNull()) + fpFileDeleteJobListObject.message = valueFpFileDeleteJobListFpFileDeleteJob["Message"].asString(); + if(!valueFpFileDeleteJobListFpFileDeleteJob["PipelineId"].isNull()) + fpFileDeleteJobListObject.pipelineId = valueFpFileDeleteJobListFpFileDeleteJob["PipelineId"].asString(); + if(!valueFpFileDeleteJobListFpFileDeleteJob["FpDBId"].isNull()) + fpFileDeleteJobListObject.fpDBId = valueFpFileDeleteJobListFpFileDeleteJob["FpDBId"].asString(); + if(!valueFpFileDeleteJobListFpFileDeleteJob["Id"].isNull()) + fpFileDeleteJobListObject.id = valueFpFileDeleteJobListFpFileDeleteJob["Id"].asString(); + if(!valueFpFileDeleteJobListFpFileDeleteJob["FileIds"].isNull()) + fpFileDeleteJobListObject.fileIds = valueFpFileDeleteJobListFpFileDeleteJob["FileIds"].asString(); + fpFileDeleteJobList_.push_back(fpFileDeleteJobListObject); + } + auto allNonExistIds = value["NonExistIds"]["String"]; + for (const auto &item : allNonExistIds) + nonExistIds_.push_back(item.asString()); + +} + +std::vector QueryFpFileDeleteJobListResult::getFpFileDeleteJobList()const +{ + return fpFileDeleteJobList_; +} + +std::vector QueryFpFileDeleteJobListResult::getNonExistIds()const +{ + return nonExistIds_; +} + diff --git a/mts/src/model/QueryFpImportResultRequest.cc b/mts/src/model/QueryFpImportResultRequest.cc index a68c5218c..e340c134a 100644 --- a/mts/src/model/QueryFpImportResultRequest.cc +++ b/mts/src/model/QueryFpImportResultRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::QueryFpImportResultRequest; - -QueryFpImportResultRequest::QueryFpImportResultRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryFpImportResult") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryFpImportResultRequest::~QueryFpImportResultRequest() -{} - -long QueryFpImportResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryFpImportResultRequest; + +QueryFpImportResultRequest::QueryFpImportResultRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryFpImportResult") { + setMethod(HttpRequest::Method::Post); } -void QueryFpImportResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryFpImportResultRequest::~QueryFpImportResultRequest() {} + +long QueryFpImportResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long QueryFpImportResultRequest::getStartTime()const -{ - return startTime_; +void QueryFpImportResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryFpImportResultRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +long QueryFpImportResultRequest::getStartTime() const { + return startTime_; } -std::string QueryFpImportResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryFpImportResultRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); } -void QueryFpImportResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryFpImportResultRequest::getAccessKeyId() const { + return accessKeyId_; } -long QueryFpImportResultRequest::getPageSize()const -{ - return pageSize_; +void QueryFpImportResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryFpImportResultRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long QueryFpImportResultRequest::getPageSize() const { + return pageSize_; } -long QueryFpImportResultRequest::getPageIndex()const -{ - return pageIndex_; +void QueryFpImportResultRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QueryFpImportResultRequest::setPageIndex(long pageIndex) -{ - pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); +long QueryFpImportResultRequest::getPageIndex() const { + return pageIndex_; } -std::string QueryFpImportResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryFpImportResultRequest::setPageIndex(long pageIndex) { + pageIndex_ = pageIndex; + setParameter(std::string("PageIndex"), std::to_string(pageIndex)); } -void QueryFpImportResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryFpImportResultRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryFpImportResultRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryFpImportResultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryFpImportResultRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryFpImportResultRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryFpImportResultRequest::getEndTime()const -{ - return endTime_; +void QueryFpImportResultRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryFpImportResultRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long QueryFpImportResultRequest::getEndTime() const { + return endTime_; } -long QueryFpImportResultRequest::getOwnerId()const -{ - return ownerId_; +void QueryFpImportResultRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void QueryFpImportResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryFpImportResultRequest::getOwnerId() const { + return ownerId_; +} + +void QueryFpImportResultRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/QueryFpImportResultResult.cc b/mts/src/model/QueryFpImportResultResult.cc index 2d5727967..6b15aa223 100644 --- a/mts/src/model/QueryFpImportResultResult.cc +++ b/mts/src/model/QueryFpImportResultResult.cc @@ -43,18 +43,18 @@ void QueryFpImportResultResult::parse(const std::string &payload) for (auto valueFpResultLogInfoListFpResultLogInfo : allFpResultLogInfoListNode) { FpResultLogInfo fpResultLogInfoListObject; - if(!valueFpResultLogInfoListFpResultLogInfo["LogPath"].isNull()) - fpResultLogInfoListObject.logPath = valueFpResultLogInfoListFpResultLogInfo["LogPath"].asString(); - if(!valueFpResultLogInfoListFpResultLogInfo["LogName"].isNull()) - fpResultLogInfoListObject.logName = valueFpResultLogInfoListFpResultLogInfo["LogName"].asString(); if(!valueFpResultLogInfoListFpResultLogInfo["LogStartTime"].isNull()) fpResultLogInfoListObject.logStartTime = std::stol(valueFpResultLogInfoListFpResultLogInfo["LogStartTime"].asString()); - if(!valueFpResultLogInfoListFpResultLogInfo["LogEndTime"].isNull()) - fpResultLogInfoListObject.logEndTime = std::stol(valueFpResultLogInfoListFpResultLogInfo["LogEndTime"].asString()); - if(!valueFpResultLogInfoListFpResultLogInfo["LogSize"].isNull()) - fpResultLogInfoListObject.logSize = std::stol(valueFpResultLogInfoListFpResultLogInfo["LogSize"].asString()); + if(!valueFpResultLogInfoListFpResultLogInfo["LogPath"].isNull()) + fpResultLogInfoListObject.logPath = valueFpResultLogInfoListFpResultLogInfo["LogPath"].asString(); if(!valueFpResultLogInfoListFpResultLogInfo["CreateTime"].isNull()) fpResultLogInfoListObject.createTime = std::stol(valueFpResultLogInfoListFpResultLogInfo["CreateTime"].asString()); + if(!valueFpResultLogInfoListFpResultLogInfo["LogSize"].isNull()) + fpResultLogInfoListObject.logSize = std::stol(valueFpResultLogInfoListFpResultLogInfo["LogSize"].asString()); + if(!valueFpResultLogInfoListFpResultLogInfo["LogName"].isNull()) + fpResultLogInfoListObject.logName = valueFpResultLogInfoListFpResultLogInfo["LogName"].asString(); + if(!valueFpResultLogInfoListFpResultLogInfo["LogEndTime"].isNull()) + fpResultLogInfoListObject.logEndTime = std::stol(valueFpResultLogInfoListFpResultLogInfo["LogEndTime"].asString()); fpResultLogInfoList_.push_back(fpResultLogInfoListObject); } auto pageInfoNode = value["PageInfo"]; diff --git a/mts/src/model/QueryFpShotJobListRequest.cc b/mts/src/model/QueryFpShotJobListRequest.cc index da403d365..e3a982d5a 100644 --- a/mts/src/model/QueryFpShotJobListRequest.cc +++ b/mts/src/model/QueryFpShotJobListRequest.cc @@ -1,172 +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 - -using AlibabaCloud::Mts::Model::QueryFpShotJobListRequest; - -QueryFpShotJobListRequest::QueryFpShotJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryFpShotJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryFpShotJobListRequest::~QueryFpShotJobListRequest() -{} - -long QueryFpShotJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryFpShotJobListRequest; + +QueryFpShotJobListRequest::QueryFpShotJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryFpShotJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryFpShotJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryFpShotJobListRequest::~QueryFpShotJobListRequest() {} + +long QueryFpShotJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryFpShotJobListRequest::getNextPageToken()const -{ - return nextPageToken_; +void QueryFpShotJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryFpShotJobListRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); +std::string QueryFpShotJobListRequest::getNextPageToken() const { + return nextPageToken_; } -std::string QueryFpShotJobListRequest::getStartOfJobCreatedTimeRange()const -{ - return startOfJobCreatedTimeRange_; +void QueryFpShotJobListRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); } -void QueryFpShotJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) -{ - startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; - setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); +std::string QueryFpShotJobListRequest::getStartOfJobCreatedTimeRange() const { + return startOfJobCreatedTimeRange_; } -std::string QueryFpShotJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryFpShotJobListRequest::setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange) { + startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; + setParameter(std::string("StartOfJobCreatedTimeRange"), startOfJobCreatedTimeRange); } -void QueryFpShotJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryFpShotJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryFpShotJobListRequest::getState()const -{ - return state_; +void QueryFpShotJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryFpShotJobListRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string QueryFpShotJobListRequest::getState() const { + return state_; } -std::string QueryFpShotJobListRequest::getEndOfJobCreatedTimeRange()const -{ - return endOfJobCreatedTimeRange_; +void QueryFpShotJobListRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void QueryFpShotJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) -{ - endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; - setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); +std::string QueryFpShotJobListRequest::getEndOfJobCreatedTimeRange() const { + return endOfJobCreatedTimeRange_; } -std::string QueryFpShotJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryFpShotJobListRequest::setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange) { + endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; + setParameter(std::string("EndOfJobCreatedTimeRange"), endOfJobCreatedTimeRange); } -void QueryFpShotJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryFpShotJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryFpShotJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryFpShotJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryFpShotJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryFpShotJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryFpShotJobListRequest::getMaximumPageSize()const -{ - return maximumPageSize_; +void QueryFpShotJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryFpShotJobListRequest::setMaximumPageSize(long maximumPageSize) -{ - maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); +long QueryFpShotJobListRequest::getMaximumPageSize() const { + return maximumPageSize_; } -long QueryFpShotJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryFpShotJobListRequest::setMaximumPageSize(long maximumPageSize) { + maximumPageSize_ = maximumPageSize; + setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize)); } -void QueryFpShotJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryFpShotJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryFpShotJobListRequest::getPipelineId()const -{ - return pipelineId_; +void QueryFpShotJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryFpShotJobListRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string QueryFpShotJobListRequest::getPipelineId() const { + return pipelineId_; } -std::string QueryFpShotJobListRequest::getPrimaryKeyList()const -{ - return primaryKeyList_; +void QueryFpShotJobListRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void QueryFpShotJobListRequest::setPrimaryKeyList(const std::string& primaryKeyList) -{ - primaryKeyList_ = primaryKeyList; - setParameter("PrimaryKeyList", primaryKeyList); +std::string QueryFpShotJobListRequest::getPrimaryKeyList() const { + return primaryKeyList_; } -std::string QueryFpShotJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryFpShotJobListRequest::setPrimaryKeyList(const std::string &primaryKeyList) { + primaryKeyList_ = primaryKeyList; + setParameter(std::string("PrimaryKeyList"), primaryKeyList); } -void QueryFpShotJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryFpShotJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryFpShotJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryFpShotJobListResult.cc b/mts/src/model/QueryFpShotJobListResult.cc index 90723501a..d2d202f68 100644 --- a/mts/src/model/QueryFpShotJobListResult.cc +++ b/mts/src/model/QueryFpShotJobListResult.cc @@ -43,35 +43,85 @@ void QueryFpShotJobListResult::parse(const std::string &payload) for (auto valueFpShotJobListFpShotJob : allFpShotJobListNode) { FpShotJob fpShotJobListObject; - if(!valueFpShotJobListFpShotJob["Id"].isNull()) - fpShotJobListObject.id = valueFpShotJobListFpShotJob["Id"].asString(); - if(!valueFpShotJobListFpShotJob["UserData"].isNull()) - fpShotJobListObject.userData = valueFpShotJobListFpShotJob["UserData"].asString(); - if(!valueFpShotJobListFpShotJob["PipelineId"].isNull()) - fpShotJobListObject.pipelineId = valueFpShotJobListFpShotJob["PipelineId"].asString(); - if(!valueFpShotJobListFpShotJob["FileId"].isNull()) - fpShotJobListObject.fileId = valueFpShotJobListFpShotJob["FileId"].asString(); - if(!valueFpShotJobListFpShotJob["TransactionId"].isNull()) - fpShotJobListObject.transactionId = valueFpShotJobListFpShotJob["TransactionId"].asString(); - if(!valueFpShotJobListFpShotJob["TxHash"].isNull()) - fpShotJobListObject.txHash = valueFpShotJobListFpShotJob["TxHash"].asString(); - if(!valueFpShotJobListFpShotJob["State"].isNull()) - fpShotJobListObject.state = valueFpShotJobListFpShotJob["State"].asString(); - if(!valueFpShotJobListFpShotJob["Code"].isNull()) - fpShotJobListObject.code = valueFpShotJobListFpShotJob["Code"].asString(); - if(!valueFpShotJobListFpShotJob["Message"].isNull()) - fpShotJobListObject.message = valueFpShotJobListFpShotJob["Message"].asString(); if(!valueFpShotJobListFpShotJob["CreationTime"].isNull()) fpShotJobListObject.creationTime = valueFpShotJobListFpShotJob["CreationTime"].asString(); if(!valueFpShotJobListFpShotJob["FinishTime"].isNull()) fpShotJobListObject.finishTime = valueFpShotJobListFpShotJob["FinishTime"].asString(); - auto inputFileNode = value["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - fpShotJobListObject.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - fpShotJobListObject.inputFile.location = inputFileNode["Location"].asString(); - if(!inputFileNode["Object"].isNull()) - fpShotJobListObject.inputFile.object = inputFileNode["Object"].asString(); + if(!valueFpShotJobListFpShotJob["State"].isNull()) + fpShotJobListObject.state = valueFpShotJobListFpShotJob["State"].asString(); + if(!valueFpShotJobListFpShotJob["Message"].isNull()) + fpShotJobListObject.message = valueFpShotJobListFpShotJob["Message"].asString(); + if(!valueFpShotJobListFpShotJob["TxHash"].isNull()) + fpShotJobListObject.txHash = valueFpShotJobListFpShotJob["TxHash"].asString(); + if(!valueFpShotJobListFpShotJob["TransactionId"].isNull()) + fpShotJobListObject.transactionId = valueFpShotJobListFpShotJob["TransactionId"].asString(); + if(!valueFpShotJobListFpShotJob["FileId"].isNull()) + fpShotJobListObject.fileId = valueFpShotJobListFpShotJob["FileId"].asString(); + if(!valueFpShotJobListFpShotJob["UserData"].isNull()) + fpShotJobListObject.userData = valueFpShotJobListFpShotJob["UserData"].asString(); + if(!valueFpShotJobListFpShotJob["Code"].isNull()) + fpShotJobListObject.code = valueFpShotJobListFpShotJob["Code"].asString(); + if(!valueFpShotJobListFpShotJob["PipelineId"].isNull()) + fpShotJobListObject.pipelineId = valueFpShotJobListFpShotJob["PipelineId"].asString(); + if(!valueFpShotJobListFpShotJob["Id"].isNull()) + fpShotJobListObject.id = valueFpShotJobListFpShotJob["Id"].asString(); + auto fpShotResultNode = value["FpShotResult"]; + auto allAudioFpShotsNode = fpShotResultNode["AudioFpShots"]["FpShot"]; + for (auto fpShotResultNodeAudioFpShotsFpShot : allAudioFpShotsNode) + { + FpShotJob::FpShotResult::FpShot fpShotObject; + if(!fpShotResultNodeAudioFpShotsFpShot["PrimaryKey"].isNull()) + fpShotObject.primaryKey = fpShotResultNodeAudioFpShotsFpShot["PrimaryKey"].asString(); + if(!fpShotResultNodeAudioFpShotsFpShot["Similarity"].isNull()) + fpShotObject.similarity = fpShotResultNodeAudioFpShotsFpShot["Similarity"].asString(); + auto allFpShotSlicesNode = fpShotResultNodeAudioFpShotsFpShot["FpShotSlices"]["FpShotSlice"]; + for (auto fpShotResultNodeAudioFpShotsFpShotFpShotSlicesFpShotSlice : allFpShotSlicesNode) + { + FpShotJob::FpShotResult::FpShot::FpShotSlice fpShotSlicesObject; + if(!fpShotResultNodeAudioFpShotsFpShotFpShotSlicesFpShotSlice["Similarity"].isNull()) + fpShotSlicesObject.similarity = fpShotResultNodeAudioFpShotsFpShotFpShotSlicesFpShotSlice["Similarity"].asString(); + auto duplicationNode = value["Duplication"]; + if(!duplicationNode["Start"].isNull()) + fpShotSlicesObject.duplication.start = duplicationNode["Start"].asString(); + if(!duplicationNode["Duration"].isNull()) + fpShotSlicesObject.duplication.duration = duplicationNode["Duration"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Start"].isNull()) + fpShotSlicesObject.input.start = inputNode["Start"].asString(); + if(!inputNode["Duration"].isNull()) + fpShotSlicesObject.input.duration = inputNode["Duration"].asString(); + fpShotObject.fpShotSlices.push_back(fpShotSlicesObject); + } + fpShotJobListObject.fpShotResult.audioFpShots.push_back(fpShotObject); + } + auto allFpShotsNode = fpShotResultNode["FpShots"]["FpShot"]; + for (auto fpShotResultNodeFpShotsFpShot : allFpShotsNode) + { + FpShotJob::FpShotResult::FpShot fpShotObject; + if(!fpShotResultNodeFpShotsFpShot["PrimaryKey"].isNull()) + fpShotObject.primaryKey = fpShotResultNodeFpShotsFpShot["PrimaryKey"].asString(); + if(!fpShotResultNodeFpShotsFpShot["Similarity"].isNull()) + fpShotObject.similarity = fpShotResultNodeFpShotsFpShot["Similarity"].asString(); + auto allFpShotSlicesNode = fpShotResultNodeFpShotsFpShot["FpShotSlices"]["FpShotSlice"]; + for (auto fpShotResultNodeFpShotsFpShotFpShotSlicesFpShotSlice : allFpShotSlicesNode) + { + FpShotJob::FpShotResult::FpShot::FpShotSlice fpShotSlicesObject; + if(!fpShotResultNodeFpShotsFpShotFpShotSlicesFpShotSlice["Similarity"].isNull()) + fpShotSlicesObject.similarity = fpShotResultNodeFpShotsFpShotFpShotSlicesFpShotSlice["Similarity"].asString(); + auto duplicationNode = value["Duplication"]; + if(!duplicationNode["Start"].isNull()) + fpShotSlicesObject.duplication.start = duplicationNode["Start"].asString(); + if(!duplicationNode["Duration"].isNull()) + fpShotSlicesObject.duplication.duration = duplicationNode["Duration"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Start"].isNull()) + fpShotSlicesObject.input.start = inputNode["Start"].asString(); + if(!inputNode["Duration"].isNull()) + fpShotSlicesObject.input.duration = inputNode["Duration"].asString(); + fpShotObject.fpShotSlices.push_back(fpShotSlicesObject); + } + fpShotJobListObject.fpShotResult.fpShots.push_back(fpShotObject); + } auto fpShotConfigNode = value["FpShotConfig"]; if(!fpShotConfigNode["PrimaryKey"].isNull()) fpShotJobListObject.fpShotConfig.primaryKey = fpShotConfigNode["PrimaryKey"].asString(); @@ -81,71 +131,21 @@ void QueryFpShotJobListResult::parse(const std::string &payload) fpShotJobListObject.fpShotConfig.notary = fpShotConfigNode["Notary"].asString(); if(!fpShotConfigNode["FpDBId"].isNull()) fpShotJobListObject.fpShotConfig.fpDBId = fpShotConfigNode["FpDBId"].asString(); - auto fpShotResultNode = value["FpShotResult"]; - auto allFpShotsNode = fpShotResultNode["FpShots"]["FpShot"]; - for (auto fpShotResultNodeFpShotsFpShot : allFpShotsNode) - { - FpShotJob::FpShotResult::FpShot fpShotObject; - if(!fpShotResultNodeFpShotsFpShot["PrimaryKey"].isNull()) - fpShotObject.primaryKey = fpShotResultNodeFpShotsFpShot["PrimaryKey"].asString(); - if(!fpShotResultNodeFpShotsFpShot["Similarity"].isNull()) - fpShotObject.similarity = fpShotResultNodeFpShotsFpShot["Similarity"].asString(); - auto allFpShotSlicesNode = allFpShotsNode["FpShotSlices"]["FpShotSlice"]; - for (auto allFpShotsNodeFpShotSlicesFpShotSlice : allFpShotSlicesNode) - { - FpShotJob::FpShotResult::FpShot::FpShotSlice fpShotSlicesObject; - if(!allFpShotsNodeFpShotSlicesFpShotSlice["Similarity"].isNull()) - fpShotSlicesObject.similarity = allFpShotsNodeFpShotSlicesFpShotSlice["Similarity"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Start"].isNull()) - fpShotSlicesObject.input.start = inputNode["Start"].asString(); - if(!inputNode["Duration"].isNull()) - fpShotSlicesObject.input.duration = inputNode["Duration"].asString(); - auto duplicationNode = value["Duplication"]; - if(!duplicationNode["Start"].isNull()) - fpShotSlicesObject.duplication.start = duplicationNode["Start"].asString(); - if(!duplicationNode["Duration"].isNull()) - fpShotSlicesObject.duplication.duration = duplicationNode["Duration"].asString(); - fpShotObject.fpShotSlices.push_back(fpShotSlicesObject); - } - fpShotJobListObject.fpShotResult.fpShots.push_back(fpShotObject); - } - auto allAudioFpShotsNode = fpShotResultNode["AudioFpShots"]["FpShot"]; - for (auto fpShotResultNodeAudioFpShotsFpShot : allAudioFpShotsNode) - { - FpShotJob::FpShotResult::FpShot fpShotObject; - if(!fpShotResultNodeAudioFpShotsFpShot["PrimaryKey"].isNull()) - fpShotObject.primaryKey = fpShotResultNodeAudioFpShotsFpShot["PrimaryKey"].asString(); - if(!fpShotResultNodeAudioFpShotsFpShot["Similarity"].isNull()) - fpShotObject.similarity = fpShotResultNodeAudioFpShotsFpShot["Similarity"].asString(); - auto allFpShotSlicesNode = allAudioFpShotsNode["FpShotSlices"]["FpShotSlice"]; - for (auto allAudioFpShotsNodeFpShotSlicesFpShotSlice : allFpShotSlicesNode) - { - FpShotJob::FpShotResult::FpShot::FpShotSlice fpShotSlicesObject; - if(!allAudioFpShotsNodeFpShotSlicesFpShotSlice["Similarity"].isNull()) - fpShotSlicesObject.similarity = allAudioFpShotsNodeFpShotSlicesFpShotSlice["Similarity"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Start"].isNull()) - fpShotSlicesObject.input.start = inputNode["Start"].asString(); - if(!inputNode["Duration"].isNull()) - fpShotSlicesObject.input.duration = inputNode["Duration"].asString(); - auto duplicationNode = value["Duplication"]; - if(!duplicationNode["Start"].isNull()) - fpShotSlicesObject.duplication.start = duplicationNode["Start"].asString(); - if(!duplicationNode["Duration"].isNull()) - fpShotSlicesObject.duplication.duration = duplicationNode["Duration"].asString(); - fpShotObject.fpShotSlices.push_back(fpShotSlicesObject); - } - fpShotJobListObject.fpShotResult.audioFpShots.push_back(fpShotObject); - } + auto inputFileNode = value["InputFile"]; + if(!inputFileNode["Object"].isNull()) + fpShotJobListObject.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + fpShotJobListObject.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + fpShotJobListObject.inputFile.bucket = inputFileNode["Bucket"].asString(); fpShotJobList_.push_back(fpShotJobListObject); } - auto allNonExistIds = value["NonExistIds"]["String"]; - for (const auto &item : allNonExistIds) - nonExistIds_.push_back(item.asString()); auto allNonExistPrimaryKeys = value["NonExistPrimaryKeys"]["String"]; for (const auto &item : allNonExistPrimaryKeys) nonExistPrimaryKeys_.push_back(item.asString()); + auto allNonExistIds = value["NonExistIds"]["String"]; + for (const auto &item : allNonExistIds) + nonExistIds_.push_back(item.asString()); if(!value["NextPageToken"].isNull()) nextPageToken_ = value["NextPageToken"].asString(); diff --git a/mts/src/model/QueryIProductionJobListRequest.cc b/mts/src/model/QueryIProductionJobListRequest.cc index 613228eb5..764d62764 100644 --- a/mts/src/model/QueryIProductionJobListRequest.cc +++ b/mts/src/model/QueryIProductionJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryIProductionJobListRequest; - -QueryIProductionJobListRequest::QueryIProductionJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryIProductionJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryIProductionJobListRequest::~QueryIProductionJobListRequest() -{} - -long QueryIProductionJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryIProductionJobListRequest; + +QueryIProductionJobListRequest::QueryIProductionJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryIProductionJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryIProductionJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryIProductionJobListRequest::~QueryIProductionJobListRequest() {} + +long QueryIProductionJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryIProductionJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryIProductionJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryIProductionJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryIProductionJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryIProductionJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryIProductionJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryIProductionJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryIProductionJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryIProductionJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryIProductionJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryIProductionJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryIProductionJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryIProductionJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryIProductionJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryIProductionJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryIProductionJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryIProductionJobListRequest::getIProductionJobIds()const -{ - return iProductionJobIds_; +void QueryIProductionJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryIProductionJobListRequest::setIProductionJobIds(const std::string& iProductionJobIds) -{ - iProductionJobIds_ = iProductionJobIds; - setParameter("IProductionJobIds", iProductionJobIds); +std::string QueryIProductionJobListRequest::getIProductionJobIds() const { + return iProductionJobIds_; +} + +void QueryIProductionJobListRequest::setIProductionJobIds(const std::string &iProductionJobIds) { + iProductionJobIds_ = iProductionJobIds; + setParameter(std::string("IProductionJobIds"), iProductionJobIds); } diff --git a/mts/src/model/QueryIProductionJobListResult.cc b/mts/src/model/QueryIProductionJobListResult.cc index 3538a12b4..67b40a5ae 100644 --- a/mts/src/model/QueryIProductionJobListResult.cc +++ b/mts/src/model/QueryIProductionJobListResult.cc @@ -39,12 +39,12 @@ void QueryIProductionJobListResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto allNonExistIds = value["NonExistIds"]["String"]; - for (const auto &item : allNonExistIds) - nonExistIds_.push_back(item.asString()); auto allJobs = value["Jobs"]["String"]; for (const auto &item : allJobs) jobs_.push_back(item.asString()); + auto allNonExistIds = value["NonExistIds"]["String"]; + for (const auto &item : allNonExistIds) + nonExistIds_.push_back(item.asString()); if(!value["NextPageToken"].isNull()) nextPageToken_ = value["NextPageToken"].asString(); diff --git a/mts/src/model/QueryIProductionJobRequest.cc b/mts/src/model/QueryIProductionJobRequest.cc new file mode 100644 index 000000000..bd4c2f646 --- /dev/null +++ b/mts/src/model/QueryIProductionJobRequest.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 + +using AlibabaCloud::Mts::Model::QueryIProductionJobRequest; + +QueryIProductionJobRequest::QueryIProductionJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryIProductionJob") { + setMethod(HttpRequest::Method::Post); +} + +QueryIProductionJobRequest::~QueryIProductionJobRequest() {} + +long QueryIProductionJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void QueryIProductionJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string QueryIProductionJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void QueryIProductionJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string QueryIProductionJobRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void QueryIProductionJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long QueryIProductionJobRequest::getOwnerId() const { + return ownerId_; +} + +void QueryIProductionJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string QueryIProductionJobRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryIProductionJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string QueryIProductionJobRequest::getJobId() const { + return jobId_; +} + +void QueryIProductionJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + diff --git a/mts/src/model/QueryIProductionJobResult.cc b/mts/src/model/QueryIProductionJobResult.cc new file mode 100644 index 000000000..e3319ebb6 --- /dev/null +++ b/mts/src/model/QueryIProductionJobResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +QueryIProductionJobResult::QueryIProductionJobResult() : + ServiceResult() +{} + +QueryIProductionJobResult::QueryIProductionJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryIProductionJobResult::~QueryIProductionJobResult() +{} + +void QueryIProductionJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["FunctionName"].isNull()) + functionName_ = value["FunctionName"].asString(); + if(!value["Input"].isNull()) + input_ = value["Input"].asString(); + if(!value["UserData"].isNull()) + userData_ = value["UserData"].asString(); + if(!value["State"].isNull()) + state_ = value["State"].asString(); + if(!value["Output"].isNull()) + output_ = value["Output"].asString(); + if(!value["PipelineId"].isNull()) + pipelineId_ = value["PipelineId"].asString(); + if(!value["JobParams"].isNull()) + jobParams_ = value["JobParams"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); + +} + +std::string QueryIProductionJobResult::getFunctionName()const +{ + return functionName_; +} + +std::string QueryIProductionJobResult::getInput()const +{ + return input_; +} + +std::string QueryIProductionJobResult::getUserData()const +{ + return userData_; +} + +std::string QueryIProductionJobResult::getState()const +{ + return state_; +} + +std::string QueryIProductionJobResult::getOutput()const +{ + return output_; +} + +std::string QueryIProductionJobResult::getPipelineId()const +{ + return pipelineId_; +} + +std::string QueryIProductionJobResult::getJobParams()const +{ + return jobParams_; +} + +std::string QueryIProductionJobResult::getJobId()const +{ + return jobId_; +} + +std::string QueryIProductionJobResult::getResult()const +{ + return result_; +} + diff --git a/mts/src/model/QueryImageSearchJobListRequest.cc b/mts/src/model/QueryImageSearchJobListRequest.cc index 63372a090..af5fc1cdc 100644 --- a/mts/src/model/QueryImageSearchJobListRequest.cc +++ b/mts/src/model/QueryImageSearchJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryImageSearchJobListRequest; - -QueryImageSearchJobListRequest::QueryImageSearchJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryImageSearchJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryImageSearchJobListRequest::~QueryImageSearchJobListRequest() -{} - -long QueryImageSearchJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryImageSearchJobListRequest; + +QueryImageSearchJobListRequest::QueryImageSearchJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryImageSearchJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryImageSearchJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryImageSearchJobListRequest::~QueryImageSearchJobListRequest() {} + +long QueryImageSearchJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryImageSearchJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryImageSearchJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryImageSearchJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryImageSearchJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryImageSearchJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryImageSearchJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryImageSearchJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryImageSearchJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryImageSearchJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryImageSearchJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryImageSearchJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryImageSearchJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryImageSearchJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryImageSearchJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryImageSearchJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryImageSearchJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryImageSearchJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryImageSearchJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryImageSearchJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryImageSearchJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryImageSearchJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryImageSearchJobListResult.cc b/mts/src/model/QueryImageSearchJobListResult.cc index f453914b1..294ba981a 100644 --- a/mts/src/model/QueryImageSearchJobListResult.cc +++ b/mts/src/model/QueryImageSearchJobListResult.cc @@ -43,49 +43,49 @@ void QueryImageSearchJobListResult::parse(const std::string &payload) for (auto valueImageSearchJobListImageSearchJob : allImageSearchJobListNode) { ImageSearchJob imageSearchJobListObject; - if(!valueImageSearchJobListImageSearchJob["Id"].isNull()) - imageSearchJobListObject.id = valueImageSearchJobListImageSearchJob["Id"].asString(); - if(!valueImageSearchJobListImageSearchJob["UserData"].isNull()) - imageSearchJobListObject.userData = valueImageSearchJobListImageSearchJob["UserData"].asString(); - if(!valueImageSearchJobListImageSearchJob["PipelineId"].isNull()) - imageSearchJobListObject.pipelineId = valueImageSearchJobListImageSearchJob["PipelineId"].asString(); - if(!valueImageSearchJobListImageSearchJob["State"].isNull()) - imageSearchJobListObject.state = valueImageSearchJobListImageSearchJob["State"].asString(); - if(!valueImageSearchJobListImageSearchJob["Code"].isNull()) - imageSearchJobListObject.code = valueImageSearchJobListImageSearchJob["Code"].asString(); - if(!valueImageSearchJobListImageSearchJob["Message"].isNull()) - imageSearchJobListObject.message = valueImageSearchJobListImageSearchJob["Message"].asString(); if(!valueImageSearchJobListImageSearchJob["CreationTime"].isNull()) imageSearchJobListObject.creationTime = valueImageSearchJobListImageSearchJob["CreationTime"].asString(); if(!valueImageSearchJobListImageSearchJob["FinishTime"].isNull()) imageSearchJobListObject.finishTime = valueImageSearchJobListImageSearchJob["FinishTime"].asString(); - auto inputVideoNode = value["InputVideo"]; - if(!inputVideoNode["Bucket"].isNull()) - imageSearchJobListObject.inputVideo.bucket = inputVideoNode["Bucket"].asString(); - if(!inputVideoNode["Location"].isNull()) - imageSearchJobListObject.inputVideo.location = inputVideoNode["Location"].asString(); - if(!inputVideoNode["Object"].isNull()) - imageSearchJobListObject.inputVideo.object = inputVideoNode["Object"].asString(); - auto inputImageNode = value["inputImage"]; - if(!inputImageNode["Bucket"].isNull()) - imageSearchJobListObject.inputImage.bucket = inputImageNode["Bucket"].asString(); - if(!inputImageNode["Location"].isNull()) - imageSearchJobListObject.inputImage.location = inputImageNode["Location"].asString(); - if(!inputImageNode["Object"].isNull()) - imageSearchJobListObject.inputImage.object = inputImageNode["Object"].asString(); + if(!valueImageSearchJobListImageSearchJob["State"].isNull()) + imageSearchJobListObject.state = valueImageSearchJobListImageSearchJob["State"].asString(); + if(!valueImageSearchJobListImageSearchJob["UserData"].isNull()) + imageSearchJobListObject.userData = valueImageSearchJobListImageSearchJob["UserData"].asString(); + if(!valueImageSearchJobListImageSearchJob["Code"].isNull()) + imageSearchJobListObject.code = valueImageSearchJobListImageSearchJob["Code"].asString(); + if(!valueImageSearchJobListImageSearchJob["Message"].isNull()) + imageSearchJobListObject.message = valueImageSearchJobListImageSearchJob["Message"].asString(); + if(!valueImageSearchJobListImageSearchJob["PipelineId"].isNull()) + imageSearchJobListObject.pipelineId = valueImageSearchJobListImageSearchJob["PipelineId"].asString(); + if(!valueImageSearchJobListImageSearchJob["Id"].isNull()) + imageSearchJobListObject.id = valueImageSearchJobListImageSearchJob["Id"].asString(); auto resultNode = value["Result"]; auto allImageSearchShotsNode = resultNode["ImageSearchShots"]["ImageSearchShotsItem"]; for (auto resultNodeImageSearchShotsImageSearchShotsItem : allImageSearchShotsNode) { ImageSearchJob::Result::ImageSearchShotsItem imageSearchShotsItemObject; - if(!resultNodeImageSearchShotsImageSearchShotsItem["MatchedTimestamp"].isNull()) - imageSearchShotsItemObject.matchedTimestamp = resultNodeImageSearchShotsImageSearchShotsItem["MatchedTimestamp"].asString(); if(!resultNodeImageSearchShotsImageSearchShotsItem["MatchedFrame"].isNull()) imageSearchShotsItemObject.matchedFrame = resultNodeImageSearchShotsImageSearchShotsItem["MatchedFrame"].asString(); + if(!resultNodeImageSearchShotsImageSearchShotsItem["MatchedTimestamp"].isNull()) + imageSearchShotsItemObject.matchedTimestamp = resultNodeImageSearchShotsImageSearchShotsItem["MatchedTimestamp"].asString(); if(!resultNodeImageSearchShotsImageSearchShotsItem["Similarity"].isNull()) imageSearchShotsItemObject.similarity = resultNodeImageSearchShotsImageSearchShotsItem["Similarity"].asString(); imageSearchJobListObject.result.imageSearchShots.push_back(imageSearchShotsItemObject); } + auto inputImageNode = value["inputImage"]; + if(!inputImageNode["Object"].isNull()) + imageSearchJobListObject.inputImage.object = inputImageNode["Object"].asString(); + if(!inputImageNode["Location"].isNull()) + imageSearchJobListObject.inputImage.location = inputImageNode["Location"].asString(); + if(!inputImageNode["Bucket"].isNull()) + imageSearchJobListObject.inputImage.bucket = inputImageNode["Bucket"].asString(); + auto inputVideoNode = value["InputVideo"]; + if(!inputVideoNode["Object"].isNull()) + imageSearchJobListObject.inputVideo.object = inputVideoNode["Object"].asString(); + if(!inputVideoNode["Location"].isNull()) + imageSearchJobListObject.inputVideo.location = inputVideoNode["Location"].asString(); + if(!inputVideoNode["Bucket"].isNull()) + imageSearchJobListObject.inputVideo.bucket = inputVideoNode["Bucket"].asString(); imageSearchJobList_.push_back(imageSearchJobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryInferenceJobRequest.cc b/mts/src/model/QueryInferenceJobRequest.cc new file mode 100644 index 000000000..b01dec4c6 --- /dev/null +++ b/mts/src/model/QueryInferenceJobRequest.cc @@ -0,0 +1,36 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts::Model::QueryInferenceJobRequest; + +QueryInferenceJobRequest::QueryInferenceJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryInferenceJob") { + setMethod(HttpRequest::Method::Post); +} + +QueryInferenceJobRequest::~QueryInferenceJobRequest() {} + +std::string QueryInferenceJobRequest::getJobId() const { + return jobId_; +} + +void QueryInferenceJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + diff --git a/mts/src/model/QueryInferenceJobResult.cc b/mts/src/model/QueryInferenceJobResult.cc new file mode 100644 index 000000000..378f742c3 --- /dev/null +++ b/mts/src/model/QueryInferenceJobResult.cc @@ -0,0 +1,78 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts; +using namespace AlibabaCloud::Mts::Model; + +QueryInferenceJobResult::QueryInferenceJobResult() : + ServiceResult() +{} + +QueryInferenceJobResult::QueryInferenceJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryInferenceJobResult::~QueryInferenceJobResult() +{} + +void QueryInferenceJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto jobNode = value["Job"]; + if(!jobNode["Status"].isNull()) + job_.status = jobNode["Status"].asString(); + if(!jobNode["Result"].isNull()) + job_.result = jobNode["Result"].asString(); + if(!jobNode["JobId"].isNull()) + job_.jobId = jobNode["JobId"].asString(); + if(!jobNode["UserId"].isNull()) + job_.userId = std::stol(jobNode["UserId"].asString()); + if(!jobNode["Message"].isNull()) + job_.message = jobNode["Message"].asString(); + if(!jobNode["JobTime"].isNull()) + job_.jobTime = std::stol(jobNode["JobTime"].asString()); + if(!jobNode["JobParams"].isNull()) + job_.jobParams = jobNode["JobParams"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string QueryInferenceJobResult::getMessage()const +{ + return message_; +} + +QueryInferenceJobResult::Job QueryInferenceJobResult::getJob()const +{ + return job_; +} + +std::string QueryInferenceJobResult::getCode()const +{ + return code_; +} + diff --git a/mts/src/model/QueryInferenceServerRequest.cc b/mts/src/model/QueryInferenceServerRequest.cc new file mode 100644 index 000000000..cbecde621 --- /dev/null +++ b/mts/src/model/QueryInferenceServerRequest.cc @@ -0,0 +1,63 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mts::Model::QueryInferenceServerRequest; + +QueryInferenceServerRequest::QueryInferenceServerRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryInferenceServer") { + setMethod(HttpRequest::Method::Post); +} + +QueryInferenceServerRequest::~QueryInferenceServerRequest() {} + +long QueryInferenceServerRequest::getCreateTime() const { + return createTime_; +} + +void QueryInferenceServerRequest::setCreateTime(long createTime) { + createTime_ = createTime; + setParameter(std::string("CreateTime"), std::to_string(createTime)); +} + +long QueryInferenceServerRequest::getMaxPageSize() const { + return maxPageSize_; +} + +void QueryInferenceServerRequest::setMaxPageSize(long maxPageSize) { + maxPageSize_ = maxPageSize; + setParameter(std::string("MaxPageSize"), std::to_string(maxPageSize)); +} + +long QueryInferenceServerRequest::getPageNumber() const { + return pageNumber_; +} + +void QueryInferenceServerRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); +} + +std::string QueryInferenceServerRequest::getModelType() const { + return modelType_; +} + +void QueryInferenceServerRequest::setModelType(const std::string &modelType) { + modelType_ = modelType; + setParameter(std::string("ModelType"), modelType); +} + diff --git a/mts/src/model/QueryInferenceServerResult.cc b/mts/src/model/QueryInferenceServerResult.cc new file mode 100644 index 000000000..3e4804738 --- /dev/null +++ b/mts/src/model/QueryInferenceServerResult.cc @@ -0,0 +1,90 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +QueryInferenceServerResult::QueryInferenceServerResult() : + ServiceResult() +{} + +QueryInferenceServerResult::QueryInferenceServerResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryInferenceServerResult::~QueryInferenceServerResult() +{} + +void QueryInferenceServerResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFunctionsNode = value["Functions"]["FunctionsItem"]; + for (auto valueFunctionsFunctionsItem : allFunctionsNode) + { + FunctionsItem functionsObject; + if(!valueFunctionsFunctionsItem["FunctionName"].isNull()) + functionsObject.functionName = valueFunctionsFunctionsItem["FunctionName"].asString(); + if(!valueFunctionsFunctionsItem["CreateTime"].isNull()) + functionsObject.createTime = std::stol(valueFunctionsFunctionsItem["CreateTime"].asString()); + if(!valueFunctionsFunctionsItem["UserId"].isNull()) + functionsObject.userId = std::stol(valueFunctionsFunctionsItem["UserId"].asString()); + if(!valueFunctionsFunctionsItem["ModelType"].isNull()) + functionsObject.modelType = valueFunctionsFunctionsItem["ModelType"].asString(); + if(!valueFunctionsFunctionsItem["ModelPath"].isNull()) + functionsObject.modelPath = valueFunctionsFunctionsItem["ModelPath"].asString(); + if(!valueFunctionsFunctionsItem["PipelineId"].isNull()) + functionsObject.pipelineId = valueFunctionsFunctionsItem["PipelineId"].asString(); + if(!valueFunctionsFunctionsItem["TestId"].isNull()) + functionsObject.testId = valueFunctionsFunctionsItem["TestId"].asString(); + functions_.push_back(functionsObject); + } + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["TotalSize"].isNull()) + totalSize_ = std::stol(value["TotalSize"].asString()); + +} + +std::string QueryInferenceServerResult::getMessage()const +{ + return message_; +} + +std::vector QueryInferenceServerResult::getFunctions()const +{ + return functions_; +} + +long QueryInferenceServerResult::getTotalSize()const +{ + return totalSize_; +} + +std::string QueryInferenceServerResult::getCode()const +{ + return code_; +} + diff --git a/mts/src/model/QueryInnerJobRequest.cc b/mts/src/model/QueryInnerJobRequest.cc new file mode 100644 index 000000000..76f48c038 --- /dev/null +++ b/mts/src/model/QueryInnerJobRequest.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 + +using AlibabaCloud::Mts::Model::QueryInnerJobRequest; + +QueryInnerJobRequest::QueryInnerJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryInnerJob") { + setMethod(HttpRequest::Method::Post); +} + +QueryInnerJobRequest::~QueryInnerJobRequest() {} + +long QueryInnerJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void QueryInnerJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string QueryInnerJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void QueryInnerJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long QueryInnerJobRequest::getOwnerId() const { + return ownerId_; +} + +void QueryInnerJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string QueryInnerJobRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryInnerJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string QueryInnerJobRequest::getJobId() const { + return jobId_; +} + +void QueryInnerJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + diff --git a/mts/src/model/QueryInnerJobResult.cc b/mts/src/model/QueryInnerJobResult.cc new file mode 100644 index 000000000..512eb3276 --- /dev/null +++ b/mts/src/model/QueryInnerJobResult.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::Mts; +using namespace AlibabaCloud::Mts::Model; + +QueryInnerJobResult::QueryInnerJobResult() : + ServiceResult() +{} + +QueryInnerJobResult::QueryInnerJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryInnerJobResult::~QueryInnerJobResult() +{} + +void QueryInnerJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allImageNode = value["Image"]["Result"]; + for (auto valueImageResult : allImageNode) + { + Result imageObject; + if(!valueImageResult["Index"].isNull()) + imageObject.index = std::stoi(valueImageResult["Index"].asString()); + if(!valueImageResult["Result"].isNull()) + imageObject.result = std::stoi(valueImageResult["Result"].asString()); + if(!valueImageResult["Code"].isNull()) + imageObject.code = valueImageResult["Code"].asString(); + image_.push_back(imageObject); + } + auto videoNode = value["Video"]; + if(!videoNode["Index"].isNull()) + video_.index = std::stoi(videoNode["Index"].asString()); + if(!videoNode["Result"].isNull()) + video_.result = std::stoi(videoNode["Result"].asString()); + if(!videoNode["Code"].isNull()) + video_.code = videoNode["Code"].asString(); + if(!value["Status"].isNull()) + status_ = value["Status"].asString(); + if(!value["Suggestion"].isNull()) + suggestion_ = value["Suggestion"].asString(); + +} + +std::string QueryInnerJobResult::getStatus()const +{ + return status_; +} + +std::string QueryInnerJobResult::getSuggestion()const +{ + return suggestion_; +} + +QueryInnerJobResult::Video QueryInnerJobResult::getVideo()const +{ + return video_; +} + +std::vector QueryInnerJobResult::getImage()const +{ + return image_; +} + diff --git a/mts/src/model/QueryJobListRequest.cc b/mts/src/model/QueryJobListRequest.cc index b971a2541..27663dbf8 100644 --- a/mts/src/model/QueryJobListRequest.cc +++ b/mts/src/model/QueryJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryJobListRequest; - -QueryJobListRequest::QueryJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryJobListRequest::~QueryJobListRequest() -{} - -long QueryJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryJobListRequest; + +QueryJobListRequest::QueryJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryJobListRequest::~QueryJobListRequest() {} + +long QueryJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryJobListResult.cc b/mts/src/model/QueryJobListResult.cc index c55b43544..f1941796a 100644 --- a/mts/src/model/QueryJobListResult.cc +++ b/mts/src/model/QueryJobListResult.cc @@ -43,89 +43,103 @@ void QueryJobListResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["JobId"].isNull()) - jobListObject.jobId = valueJobListJob["JobId"].asString(); + if(!valueJobListJob["CreationTime"].isNull()) + jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); + if(!valueJobListJob["Percent"].isNull()) + jobListObject.percent = std::stol(valueJobListJob["Percent"].asString()); + if(!valueJobListJob["FinishTime"].isNull()) + jobListObject.finishTime = valueJobListJob["FinishTime"].asString(); if(!valueJobListJob["State"].isNull()) jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["JobId"].isNull()) + jobListObject.jobId = valueJobListJob["JobId"].asString(); if(!valueJobListJob["Code"].isNull()) jobListObject.code = valueJobListJob["Code"].asString(); if(!valueJobListJob["Message"].isNull()) jobListObject.message = valueJobListJob["Message"].asString(); - if(!valueJobListJob["Percent"].isNull()) - jobListObject.percent = std::stol(valueJobListJob["Percent"].asString()); if(!valueJobListJob["PipelineId"].isNull()) jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); - if(!valueJobListJob["CreationTime"].isNull()) - jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); - if(!valueJobListJob["FinishTime"].isNull()) - jobListObject.finishTime = valueJobListJob["FinishTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - jobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - jobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - jobListObject.input.object = inputNode["Object"].asString(); auto outputNode = value["Output"]; - if(!outputNode["TemplateId"].isNull()) - jobListObject.output.templateId = outputNode["TemplateId"].asString(); - if(!outputNode["UserData"].isNull()) - jobListObject.output.userData = outputNode["UserData"].asString(); - if(!outputNode["Rotate"].isNull()) - jobListObject.output.rotate = outputNode["Rotate"].asString(); - if(!outputNode["VideoStreamMap"].isNull()) - jobListObject.output.videoStreamMap = outputNode["VideoStreamMap"].asString(); - if(!outputNode["AudioStreamMap"].isNull()) - jobListObject.output.audioStreamMap = outputNode["AudioStreamMap"].asString(); + if(!outputNode["WaterMarkConfigUrl"].isNull()) + jobListObject.output.waterMarkConfigUrl = outputNode["WaterMarkConfigUrl"].asString(); if(!outputNode["DeWatermark"].isNull()) jobListObject.output.deWatermark = outputNode["DeWatermark"].asString(); if(!outputNode["Priority"].isNull()) jobListObject.output.priority = outputNode["Priority"].asString(); - if(!outputNode["WaterMarkConfigUrl"].isNull()) - jobListObject.output.waterMarkConfigUrl = outputNode["WaterMarkConfigUrl"].asString(); + if(!outputNode["AudioStreamMap"].isNull()) + jobListObject.output.audioStreamMap = outputNode["AudioStreamMap"].asString(); + if(!outputNode["UserData"].isNull()) + jobListObject.output.userData = outputNode["UserData"].asString(); + if(!outputNode["VideoStreamMap"].isNull()) + jobListObject.output.videoStreamMap = outputNode["VideoStreamMap"].asString(); + if(!outputNode["Rotate"].isNull()) + jobListObject.output.rotate = outputNode["Rotate"].asString(); if(!outputNode["MergeConfigUrl"].isNull()) jobListObject.output.mergeConfigUrl = outputNode["MergeConfigUrl"].asString(); + if(!outputNode["TemplateId"].isNull()) + jobListObject.output.templateId = outputNode["TemplateId"].asString(); auto allWaterMarkListNode = outputNode["WaterMarkList"]["WaterMark"]; for (auto outputNodeWaterMarkListWaterMark : allWaterMarkListNode) { Job::Output::WaterMark waterMarkObject; - if(!outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) - waterMarkObject.waterMarkTemplateId = outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); + if(!outputNodeWaterMarkListWaterMark["Type"].isNull()) + waterMarkObject.type = outputNodeWaterMarkListWaterMark["Type"].asString(); + if(!outputNodeWaterMarkListWaterMark["ReferPos"].isNull()) + waterMarkObject.referPos = outputNodeWaterMarkListWaterMark["ReferPos"].asString(); + if(!outputNodeWaterMarkListWaterMark["Dx"].isNull()) + waterMarkObject.dx = outputNodeWaterMarkListWaterMark["Dx"].asString(); if(!outputNodeWaterMarkListWaterMark["Width"].isNull()) waterMarkObject.width = outputNodeWaterMarkListWaterMark["Width"].asString(); if(!outputNodeWaterMarkListWaterMark["Height"].isNull()) waterMarkObject.height = outputNodeWaterMarkListWaterMark["Height"].asString(); - if(!outputNodeWaterMarkListWaterMark["Dx"].isNull()) - waterMarkObject.dx = outputNodeWaterMarkListWaterMark["Dx"].asString(); + if(!outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) + waterMarkObject.waterMarkTemplateId = outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); if(!outputNodeWaterMarkListWaterMark["Dy"].isNull()) waterMarkObject.dy = outputNodeWaterMarkListWaterMark["Dy"].asString(); - if(!outputNodeWaterMarkListWaterMark["ReferPos"].isNull()) - waterMarkObject.referPos = outputNodeWaterMarkListWaterMark["ReferPos"].asString(); - if(!outputNodeWaterMarkListWaterMark["Type"].isNull()) - waterMarkObject.type = outputNodeWaterMarkListWaterMark["Type"].asString(); auto inputFileNode = value["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - waterMarkObject.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - waterMarkObject.inputFile.location = inputFileNode["Location"].asString(); if(!inputFileNode["Object"].isNull()) waterMarkObject.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + waterMarkObject.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + waterMarkObject.inputFile.bucket = inputFileNode["Bucket"].asString(); jobListObject.output.waterMarkList.push_back(waterMarkObject); } auto allMergeListNode = outputNode["MergeList"]["Merge"]; for (auto outputNodeMergeListMerge : allMergeListNode) { Job::Output::Merge mergeObject; - if(!outputNodeMergeListMerge["MergeURL"].isNull()) - mergeObject.mergeURL = outputNodeMergeListMerge["MergeURL"].asString(); if(!outputNodeMergeListMerge["Start"].isNull()) mergeObject.start = outputNodeMergeListMerge["Start"].asString(); - if(!outputNodeMergeListMerge["Duration"].isNull()) - mergeObject.duration = outputNodeMergeListMerge["Duration"].asString(); if(!outputNodeMergeListMerge["RoleArn"].isNull()) mergeObject.roleArn = outputNodeMergeListMerge["RoleArn"].asString(); + if(!outputNodeMergeListMerge["MergeURL"].isNull()) + mergeObject.mergeURL = outputNodeMergeListMerge["MergeURL"].asString(); + if(!outputNodeMergeListMerge["Duration"].isNull()) + mergeObject.duration = outputNodeMergeListMerge["Duration"].asString(); jobListObject.output.mergeList.push_back(mergeObject); } + auto allOutSubtitleListNode = outputNode["OutSubtitleList"]["OutSubtitle"]; + for (auto outputNodeOutSubtitleListOutSubtitle : allOutSubtitleListNode) + { + Job::Output::OutSubtitle outSubtitleObject; + if(!outputNodeOutSubtitleListOutSubtitle["Map"].isNull()) + outSubtitleObject.map = outputNodeOutSubtitleListOutSubtitle["Map"].asString(); + if(!outputNodeOutSubtitleListOutSubtitle["Success"].isNull()) + outSubtitleObject.success = outputNodeOutSubtitleListOutSubtitle["Success"].asString() == "true"; + if(!outputNodeOutSubtitleListOutSubtitle["Message"].isNull()) + outSubtitleObject.message = outputNodeOutSubtitleListOutSubtitle["Message"].asString(); + auto outSubtitleFileNode = value["OutSubtitleFile"]; + if(!outSubtitleFileNode["RoleArn"].isNull()) + outSubtitleObject.outSubtitleFile.roleArn = outSubtitleFileNode["RoleArn"].asString(); + if(!outSubtitleFileNode["Object"].isNull()) + outSubtitleObject.outSubtitleFile.object = outSubtitleFileNode["Object"].asString(); + if(!outSubtitleFileNode["Location"].isNull()) + outSubtitleObject.outSubtitleFile.location = outSubtitleFileNode["Location"].asString(); + if(!outSubtitleFileNode["Bucket"].isNull()) + outSubtitleObject.outSubtitleFile.bucket = outSubtitleFileNode["Bucket"].asString(); + jobListObject.output.outSubtitleList.push_back(outSubtitleObject); + } auto allOpeningListNode = outputNode["OpeningList"]["Opening"]; for (auto outputNodeOpeningListOpening : allOpeningListNode) { @@ -144,73 +158,198 @@ void QueryJobListResult::parse(const std::string &payload) for (auto outputNodeTailSlateListTailSlate : allTailSlateListNode) { Job::Output::TailSlate tailSlateObject; - if(!outputNodeTailSlateListTailSlate["TailUrl"].isNull()) - tailSlateObject.tailUrl = outputNodeTailSlateListTailSlate["TailUrl"].asString(); if(!outputNodeTailSlateListTailSlate["Start"].isNull()) tailSlateObject.start = outputNodeTailSlateListTailSlate["Start"].asString(); - if(!outputNodeTailSlateListTailSlate["BlendDuration"].isNull()) - tailSlateObject.blendDuration = outputNodeTailSlateListTailSlate["BlendDuration"].asString(); + if(!outputNodeTailSlateListTailSlate["BgColor"].isNull()) + tailSlateObject.bgColor = outputNodeTailSlateListTailSlate["BgColor"].asString(); + if(!outputNodeTailSlateListTailSlate["IsMergeAudio"].isNull()) + tailSlateObject.isMergeAudio = outputNodeTailSlateListTailSlate["IsMergeAudio"].asString() == "true"; if(!outputNodeTailSlateListTailSlate["Width"].isNull()) tailSlateObject.width = outputNodeTailSlateListTailSlate["Width"].asString(); if(!outputNodeTailSlateListTailSlate["Height"].isNull()) tailSlateObject.height = outputNodeTailSlateListTailSlate["Height"].asString(); - if(!outputNodeTailSlateListTailSlate["IsMergeAudio"].isNull()) - tailSlateObject.isMergeAudio = outputNodeTailSlateListTailSlate["IsMergeAudio"].asString() == "true"; - if(!outputNodeTailSlateListTailSlate["BgColor"].isNull()) - tailSlateObject.bgColor = outputNodeTailSlateListTailSlate["BgColor"].asString(); + if(!outputNodeTailSlateListTailSlate["BlendDuration"].isNull()) + tailSlateObject.blendDuration = outputNodeTailSlateListTailSlate["BlendDuration"].asString(); + if(!outputNodeTailSlateListTailSlate["TailUrl"].isNull()) + tailSlateObject.tailUrl = outputNodeTailSlateListTailSlate["TailUrl"].asString(); jobListObject.output.tailSlateList.push_back(tailSlateObject); } - auto allOutSubtitleListNode = outputNode["OutSubtitleList"]["OutSubtitle"]; - for (auto outputNodeOutSubtitleListOutSubtitle : allOutSubtitleListNode) - { - Job::Output::OutSubtitle outSubtitleObject; - if(!outputNodeOutSubtitleListOutSubtitle["Map"].isNull()) - outSubtitleObject.map = outputNodeOutSubtitleListOutSubtitle["Map"].asString(); - if(!outputNodeOutSubtitleListOutSubtitle["Success"].isNull()) - outSubtitleObject.success = outputNodeOutSubtitleListOutSubtitle["Success"].asString() == "true"; - if(!outputNodeOutSubtitleListOutSubtitle["Message"].isNull()) - outSubtitleObject.message = outputNodeOutSubtitleListOutSubtitle["Message"].asString(); - auto outSubtitleFileNode = value["OutSubtitleFile"]; - if(!outSubtitleFileNode["Bucket"].isNull()) - outSubtitleObject.outSubtitleFile.bucket = outSubtitleFileNode["Bucket"].asString(); - if(!outSubtitleFileNode["Location"].isNull()) - outSubtitleObject.outSubtitleFile.location = outSubtitleFileNode["Location"].asString(); - if(!outSubtitleFileNode["Object"].isNull()) - outSubtitleObject.outSubtitleFile.object = outSubtitleFileNode["Object"].asString(); - if(!outSubtitleFileNode["RoleArn"].isNull()) - outSubtitleObject.outSubtitleFile.roleArn = outSubtitleFileNode["RoleArn"].asString(); - jobListObject.output.outSubtitleList.push_back(outSubtitleObject); - } - auto outputFileNode = outputNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - jobListObject.output.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - jobListObject.output.outputFile.location = outputFileNode["Location"].asString(); - if(!outputFileNode["Object"].isNull()) - jobListObject.output.outputFile.object = outputFileNode["Object"].asString(); - if(!outputFileNode["RoleArn"].isNull()) - jobListObject.output.outputFile.roleArn = outputFileNode["RoleArn"].asString(); + auto videoNode = outputNode["Video"]; + if(!videoNode["Bufsize"].isNull()) + jobListObject.output.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["Degrain"].isNull()) + jobListObject.output.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + jobListObject.output.video.pixFmt = videoNode["PixFmt"].asString(); + if(!videoNode["Pad"].isNull()) + jobListObject.output.video.pad = videoNode["Pad"].asString(); + if(!videoNode["Codec"].isNull()) + jobListObject.output.video.codec = videoNode["Codec"].asString(); + if(!videoNode["Height"].isNull()) + jobListObject.output.video.height = videoNode["Height"].asString(); + if(!videoNode["Qscale"].isNull()) + jobListObject.output.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Crop"].isNull()) + jobListObject.output.video.crop = videoNode["Crop"].asString(); + if(!videoNode["Bitrate"].isNull()) + jobListObject.output.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + jobListObject.output.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["MaxFps"].isNull()) + jobListObject.output.video.maxFps = videoNode["MaxFps"].asString(); + if(!videoNode["Profile"].isNull()) + jobListObject.output.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + jobListObject.output.video.crf = videoNode["Crf"].asString(); + if(!videoNode["Gop"].isNull()) + jobListObject.output.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + jobListObject.output.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + jobListObject.output.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Preset"].isNull()) + jobListObject.output.video.preset = videoNode["Preset"].asString(); + if(!videoNode["ScanMode"].isNull()) + jobListObject.output.video.scanMode = videoNode["ScanMode"].asString(); + if(!videoNode["ResoPriority"].isNull()) + jobListObject.output.video.resoPriority = videoNode["ResoPriority"].asString(); + auto bitrateBndNode = videoNode["BitrateBnd"]; + if(!bitrateBndNode["Max"].isNull()) + jobListObject.output.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); + if(!bitrateBndNode["Min"].isNull()) + jobListObject.output.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); + auto transConfigNode = outputNode["TransConfig"]; + if(!transConfigNode["IsCheckAudioBitrate"].isNull()) + jobListObject.output.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); + if(!transConfigNode["TransMode"].isNull()) + jobListObject.output.transConfig.transMode = transConfigNode["TransMode"].asString(); + if(!transConfigNode["IsCheckReso"].isNull()) + jobListObject.output.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); + if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) + jobListObject.output.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); + if(!transConfigNode["AdjDarMethod"].isNull()) + jobListObject.output.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); + if(!transConfigNode["IsCheckVideoBitrate"].isNull()) + jobListObject.output.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); + if(!transConfigNode["IsCheckResoFail"].isNull()) + jobListObject.output.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); + if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) + jobListObject.output.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); + auto encryptionNode = outputNode["Encryption"]; + if(!encryptionNode["Type"].isNull()) + jobListObject.output.encryption.type = encryptionNode["Type"].asString(); + if(!encryptionNode["Key"].isNull()) + jobListObject.output.encryption.key = encryptionNode["Key"].asString(); + if(!encryptionNode["KeyType"].isNull()) + jobListObject.output.encryption.keyType = encryptionNode["KeyType"].asString(); + if(!encryptionNode["Id"].isNull()) + jobListObject.output.encryption.id = encryptionNode["Id"].asString(); + if(!encryptionNode["KeyUri"].isNull()) + jobListObject.output.encryption.keyUri = encryptionNode["KeyUri"].asString(); + if(!encryptionNode["SkipCnt"].isNull()) + jobListObject.output.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); auto m3U8NonStandardSupportNode = outputNode["M3U8NonStandardSupport"]; auto tSNode = m3U8NonStandardSupportNode["TS"]; - if(!tSNode["Md5Support"].isNull()) - jobListObject.output.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; if(!tSNode["SizeSupport"].isNull()) jobListObject.output.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!tSNode["Md5Support"].isNull()) + jobListObject.output.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; + auto audioNode = outputNode["Audio"]; + if(!audioNode["Profile"].isNull()) + jobListObject.output.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Codec"].isNull()) + jobListObject.output.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + jobListObject.output.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + jobListObject.output.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + jobListObject.output.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + jobListObject.output.audio.bitrate = audioNode["Bitrate"].asString(); + auto volumeNode = audioNode["Volume"]; + if(!volumeNode["Method"].isNull()) + jobListObject.output.audio.volume.method = volumeNode["Method"].asString(); + if(!volumeNode["Level"].isNull()) + jobListObject.output.audio.volume.level = volumeNode["Level"].asString(); + auto superResoNode = outputNode["SuperReso"]; + if(!superResoNode["IsHalfSample"].isNull()) + jobListObject.output.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); + auto outputFileNode = outputNode["OutputFile"]; + if(!outputFileNode["RoleArn"].isNull()) + jobListObject.output.outputFile.roleArn = outputFileNode["RoleArn"].asString(); + if(!outputFileNode["Object"].isNull()) + jobListObject.output.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + jobListObject.output.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + jobListObject.output.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto containerNode = outputNode["Container"]; + if(!containerNode["Format"].isNull()) + jobListObject.output.container.format = containerNode["Format"].asString(); + auto clipNode = outputNode["Clip"]; + auto timeSpanNode = clipNode["TimeSpan"]; + if(!timeSpanNode["Seek"].isNull()) + jobListObject.output.clip.timeSpan.seek = timeSpanNode["Seek"].asString(); + if(!timeSpanNode["Duration"].isNull()) + jobListObject.output.clip.timeSpan.duration = timeSpanNode["Duration"].asString(); + auto muxConfigNode = outputNode["MuxConfig"]; + auto webpNode = muxConfigNode["Webp"]; + if(!webpNode["Loop"].isNull()) + jobListObject.output.muxConfig.webp.loop = webpNode["Loop"].asString(); + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + jobListObject.output.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["DitherMode"].isNull()) + jobListObject.output.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + if(!gifNode["Loop"].isNull()) + jobListObject.output.muxConfig.gif.loop = gifNode["Loop"].asString(); + if(!gifNode["IsCustomPalette"].isNull()) + jobListObject.output.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); + auto segmentNode = muxConfigNode["Segment"]; + if(!segmentNode["Duration"].isNull()) + jobListObject.output.muxConfig.segment.duration = segmentNode["Duration"].asString(); + auto subtitleConfigNode = outputNode["SubtitleConfig"]; + auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; + for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) + { + Job::Output::SubtitleConfig::ExtSubtitle extSubtitleObject; + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) + extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) + extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); + auto input1Node = value["Input"]; + if(!input1Node["Object"].isNull()) + extSubtitleObject.input1.object = input1Node["Object"].asString(); + if(!input1Node["Location"].isNull()) + extSubtitleObject.input1.location = input1Node["Location"].asString(); + if(!input1Node["Bucket"].isNull()) + extSubtitleObject.input1.bucket = input1Node["Bucket"].asString(); + jobListObject.output.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); + } + auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; + for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) + { + Job::Output::SubtitleConfig::Subtitle subtitleObject; + if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) + subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); + jobListObject.output.subtitleConfig.subtitleList.push_back(subtitleObject); + } auto propertiesNode = outputNode["Properties"]; if(!propertiesNode["Width"].isNull()) jobListObject.output.properties.width = propertiesNode["Width"].asString(); if(!propertiesNode["Height"].isNull()) jobListObject.output.properties.height = propertiesNode["Height"].asString(); - if(!propertiesNode["Bitrate"].isNull()) - jobListObject.output.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["Duration"].isNull()) jobListObject.output.properties.duration = propertiesNode["Duration"].asString(); if(!propertiesNode["Fps"].isNull()) jobListObject.output.properties.fps = propertiesNode["Fps"].asString(); - if(!propertiesNode["FileSize"].isNull()) - jobListObject.output.properties.fileSize = propertiesNode["FileSize"].asString(); + if(!propertiesNode["Bitrate"].isNull()) + jobListObject.output.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["FileFormat"].isNull()) jobListObject.output.properties.fileFormat = propertiesNode["FileFormat"].asString(); + if(!propertiesNode["FileSize"].isNull()) + jobListObject.output.properties.fileSize = propertiesNode["FileSize"].asString(); auto allSourceLogosNode = propertiesNode["SourceLogos"]["SourceLogo"]; for (auto propertiesNodeSourceLogosSourceLogo : allSourceLogosNode) { @@ -226,93 +365,93 @@ void QueryJobListResult::parse(const std::string &payload) Job::Output::Properties::Streams::VideoStream videoStreamObject; if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) - videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) + videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); auto networkCostNode = value["NetworkCost"]; if(!networkCostNode["PreloadTime"].isNull()) videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); if(!networkCostNode["AvgBitrate"].isNull()) videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); jobListObject.output.properties.streams.videoStreamList.push_back(videoStreamObject); } auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) { Job::Output::Properties::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); jobListObject.output.properties.streams.audioStreamList.push_back(audioStreamObject); } auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; @@ -326,168 +465,29 @@ void QueryJobListResult::parse(const std::string &payload) jobListObject.output.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); } auto formatNode = propertiesNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - jobListObject.output.properties.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - jobListObject.output.properties.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - jobListObject.output.properties.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - jobListObject.output.properties.format.formatLongName = formatNode["FormatLongName"].asString(); if(!formatNode["StartTime"].isNull()) jobListObject.output.properties.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - jobListObject.output.properties.format.duration = formatNode["Duration"].asString(); + if(!formatNode["NumPrograms"].isNull()) + jobListObject.output.properties.format.numPrograms = formatNode["NumPrograms"].asString(); if(!formatNode["Size"].isNull()) jobListObject.output.properties.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + jobListObject.output.properties.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + jobListObject.output.properties.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + jobListObject.output.properties.format.duration = formatNode["Duration"].asString(); if(!formatNode["Bitrate"].isNull()) jobListObject.output.properties.format.bitrate = formatNode["Bitrate"].asString(); - auto clipNode = outputNode["Clip"]; - auto timeSpanNode = clipNode["TimeSpan"]; - if(!timeSpanNode["Seek"].isNull()) - jobListObject.output.clip.timeSpan.seek = timeSpanNode["Seek"].asString(); - if(!timeSpanNode["Duration"].isNull()) - jobListObject.output.clip.timeSpan.duration = timeSpanNode["Duration"].asString(); - auto superResoNode = outputNode["SuperReso"]; - if(!superResoNode["IsHalfSample"].isNull()) - jobListObject.output.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); - auto subtitleConfigNode = outputNode["SubtitleConfig"]; - auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; - for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) - { - Job::Output::SubtitleConfig::Subtitle subtitleObject; - if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) - subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); - jobListObject.output.subtitleConfig.subtitleList.push_back(subtitleObject); - } - auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; - for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) - { - Job::Output::SubtitleConfig::ExtSubtitle extSubtitleObject; - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) - extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) - extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); - auto input1Node = value["Input"]; - if(!input1Node["Bucket"].isNull()) - extSubtitleObject.input1.bucket = input1Node["Bucket"].asString(); - if(!input1Node["Location"].isNull()) - extSubtitleObject.input1.location = input1Node["Location"].asString(); - if(!input1Node["Object"].isNull()) - extSubtitleObject.input1.object = input1Node["Object"].asString(); - jobListObject.output.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); - } - auto transConfigNode = outputNode["TransConfig"]; - if(!transConfigNode["TransMode"].isNull()) - jobListObject.output.transConfig.transMode = transConfigNode["TransMode"].asString(); - if(!transConfigNode["IsCheckReso"].isNull()) - jobListObject.output.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); - if(!transConfigNode["IsCheckResoFail"].isNull()) - jobListObject.output.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); - if(!transConfigNode["IsCheckVideoBitrate"].isNull()) - jobListObject.output.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); - if(!transConfigNode["IsCheckAudioBitrate"].isNull()) - jobListObject.output.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); - if(!transConfigNode["AdjDarMethod"].isNull()) - jobListObject.output.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); - if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) - jobListObject.output.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); - if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) - jobListObject.output.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); - auto muxConfigNode = outputNode["MuxConfig"]; - auto segmentNode = muxConfigNode["Segment"]; - if(!segmentNode["Duration"].isNull()) - jobListObject.output.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - jobListObject.output.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - jobListObject.output.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); - if(!gifNode["IsCustomPalette"].isNull()) - jobListObject.output.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); - if(!gifNode["DitherMode"].isNull()) - jobListObject.output.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); - auto webpNode = muxConfigNode["Webp"]; - if(!webpNode["Loop"].isNull()) - jobListObject.output.muxConfig.webp.loop = webpNode["Loop"].asString(); - auto audioNode = outputNode["Audio"]; - if(!audioNode["Codec"].isNull()) - jobListObject.output.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - jobListObject.output.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - jobListObject.output.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - jobListObject.output.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - jobListObject.output.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - jobListObject.output.audio.qscale = audioNode["Qscale"].asString(); - auto volumeNode = audioNode["Volume"]; - if(!volumeNode["Level"].isNull()) - jobListObject.output.audio.volume.level = volumeNode["Level"].asString(); - if(!volumeNode["Method"].isNull()) - jobListObject.output.audio.volume.method = volumeNode["Method"].asString(); - auto videoNode = outputNode["Video"]; - if(!videoNode["Codec"].isNull()) - jobListObject.output.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - jobListObject.output.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - jobListObject.output.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - jobListObject.output.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - jobListObject.output.video.width = videoNode["Width"].asString(); - if(!videoNode["Height"].isNull()) - jobListObject.output.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - jobListObject.output.video.fps = videoNode["Fps"].asString(); - if(!videoNode["Gop"].isNull()) - jobListObject.output.video.gop = videoNode["Gop"].asString(); - if(!videoNode["Preset"].isNull()) - jobListObject.output.video.preset = videoNode["Preset"].asString(); - if(!videoNode["ScanMode"].isNull()) - jobListObject.output.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - jobListObject.output.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - jobListObject.output.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - jobListObject.output.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - jobListObject.output.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - jobListObject.output.video.qscale = videoNode["Qscale"].asString(); - if(!videoNode["Crop"].isNull()) - jobListObject.output.video.crop = videoNode["Crop"].asString(); - if(!videoNode["Pad"].isNull()) - jobListObject.output.video.pad = videoNode["Pad"].asString(); - if(!videoNode["MaxFps"].isNull()) - jobListObject.output.video.maxFps = videoNode["MaxFps"].asString(); - if(!videoNode["ResoPriority"].isNull()) - jobListObject.output.video.resoPriority = videoNode["ResoPriority"].asString(); - auto bitrateBndNode = videoNode["BitrateBnd"]; - if(!bitrateBndNode["Max"].isNull()) - jobListObject.output.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); - if(!bitrateBndNode["Min"].isNull()) - jobListObject.output.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto containerNode = outputNode["Container"]; - if(!containerNode["Format"].isNull()) - jobListObject.output.container.format = containerNode["Format"].asString(); - auto encryptionNode = outputNode["Encryption"]; - if(!encryptionNode["Type"].isNull()) - jobListObject.output.encryption.type = encryptionNode["Type"].asString(); - if(!encryptionNode["Id"].isNull()) - jobListObject.output.encryption.id = encryptionNode["Id"].asString(); - if(!encryptionNode["Key"].isNull()) - jobListObject.output.encryption.key = encryptionNode["Key"].asString(); - if(!encryptionNode["KeyUri"].isNull()) - jobListObject.output.encryption.keyUri = encryptionNode["KeyUri"].asString(); - if(!encryptionNode["KeyType"].isNull()) - jobListObject.output.encryption.keyType = encryptionNode["KeyType"].asString(); - if(!encryptionNode["SkipCnt"].isNull()) - jobListObject.output.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); + if(!formatNode["FormatName"].isNull()) + jobListObject.output.properties.format.formatName = formatNode["FormatName"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + jobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + jobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + jobListObject.input.bucket = inputNode["Bucket"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) jobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); diff --git a/mts/src/model/QueryMCJobListRequest.cc b/mts/src/model/QueryMCJobListRequest.cc index a8eb38cd6..8756053e5 100644 --- a/mts/src/model/QueryMCJobListRequest.cc +++ b/mts/src/model/QueryMCJobListRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Mts::Model::QueryMCJobListRequest; - -QueryMCJobListRequest::QueryMCJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMCJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMCJobListRequest::~QueryMCJobListRequest() -{} - -long QueryMCJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMCJobListRequest; + +QueryMCJobListRequest::QueryMCJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMCJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryMCJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryMCJobListRequest::~QueryMCJobListRequest() {} + +long QueryMCJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryMCJobListRequest::getNextPageToken()const -{ - return nextPageToken_; +void QueryMCJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMCJobListRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); +std::string QueryMCJobListRequest::getNextPageToken() const { + return nextPageToken_; } -std::string QueryMCJobListRequest::getStartOfJobCreatedTimeRange()const -{ - return startOfJobCreatedTimeRange_; +void QueryMCJobListRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); } -void QueryMCJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) -{ - startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; - setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); +std::string QueryMCJobListRequest::getStartOfJobCreatedTimeRange() const { + return startOfJobCreatedTimeRange_; } -std::string QueryMCJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMCJobListRequest::setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange) { + startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; + setParameter(std::string("StartOfJobCreatedTimeRange"), startOfJobCreatedTimeRange); } -void QueryMCJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMCJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryMCJobListRequest::getState()const -{ - return state_; +void QueryMCJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryMCJobListRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string QueryMCJobListRequest::getState() const { + return state_; } -std::string QueryMCJobListRequest::getEndOfJobCreatedTimeRange()const -{ - return endOfJobCreatedTimeRange_; +void QueryMCJobListRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void QueryMCJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) -{ - endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; - setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); +std::string QueryMCJobListRequest::getEndOfJobCreatedTimeRange() const { + return endOfJobCreatedTimeRange_; } -std::string QueryMCJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMCJobListRequest::setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange) { + endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; + setParameter(std::string("EndOfJobCreatedTimeRange"), endOfJobCreatedTimeRange); } -void QueryMCJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMCJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryMCJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMCJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMCJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMCJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMCJobListRequest::getMaximumPageSize()const -{ - return maximumPageSize_; +void QueryMCJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMCJobListRequest::setMaximumPageSize(long maximumPageSize) -{ - maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); +long QueryMCJobListRequest::getMaximumPageSize() const { + return maximumPageSize_; } -long QueryMCJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryMCJobListRequest::setMaximumPageSize(long maximumPageSize) { + maximumPageSize_ = maximumPageSize; + setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize)); } -void QueryMCJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMCJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryMCJobListRequest::getPipelineId()const -{ - return pipelineId_; +void QueryMCJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMCJobListRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string QueryMCJobListRequest::getPipelineId() const { + return pipelineId_; } -std::string QueryMCJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryMCJobListRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void QueryMCJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryMCJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryMCJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryMCJobListResult.cc b/mts/src/model/QueryMCJobListResult.cc index 3594aa980..802ed28d6 100644 --- a/mts/src/model/QueryMCJobListResult.cc +++ b/mts/src/model/QueryMCJobListResult.cc @@ -43,60 +43,28 @@ void QueryMCJobListResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["JobId"].isNull()) - jobListObject.jobId = valueJobListJob["JobId"].asString(); - if(!valueJobListJob["UserData"].isNull()) - jobListObject.userData = valueJobListJob["UserData"].asString(); - if(!valueJobListJob["PipelineId"].isNull()) - jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); - if(!valueJobListJob["State"].isNull()) - jobListObject.state = valueJobListJob["State"].asString(); - if(!valueJobListJob["Code"].isNull()) - jobListObject.code = valueJobListJob["Code"].asString(); - if(!valueJobListJob["Message"].isNull()) - jobListObject.message = valueJobListJob["Message"].asString(); if(!valueJobListJob["CreationTime"].isNull()) jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); if(!valueJobListJob["ResultOutputFile"].isNull()) jobListObject.resultOutputFile = valueJobListJob["ResultOutputFile"].asString(); + if(!valueJobListJob["State"].isNull()) + jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["JobId"].isNull()) + jobListObject.jobId = valueJobListJob["JobId"].asString(); + if(!valueJobListJob["UserData"].isNull()) + jobListObject.userData = valueJobListJob["UserData"].asString(); + if(!valueJobListJob["Code"].isNull()) + jobListObject.code = valueJobListJob["Code"].asString(); + if(!valueJobListJob["Message"].isNull()) + jobListObject.message = valueJobListJob["Message"].asString(); + if(!valueJobListJob["PipelineId"].isNull()) + jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); auto resultNode = value["Result"]; if(!resultNode["Suggestion"].isNull()) jobListObject.result.suggestion = resultNode["Suggestion"].asString(); if(!resultNode["Score"].isNull()) jobListObject.result.score = resultNode["Score"].asString(); auto pornResultNode = resultNode["PornResult"]; - auto allPornVideosNode = pornResultNode["PornVideos"]["PornVideo"]; - for (auto pornResultNodePornVideosPornVideo : allPornVideosNode) - { - Job::Result::PornResult::PornVideo pornVideoObject; - if(!pornResultNodePornVideosPornVideo["Suggestion"].isNull()) - pornVideoObject.suggestion = pornResultNodePornVideosPornVideo["Suggestion"].asString(); - if(!pornResultNodePornVideosPornVideo["Score"].isNull()) - pornVideoObject.score = pornResultNodePornVideosPornVideo["Score"].asString(); - if(!pornResultNodePornVideosPornVideo["Time"].isNull()) - pornVideoObject.time = pornResultNodePornVideosPornVideo["Time"].asString(); - if(!pornResultNodePornVideosPornVideo["Object"].isNull()) - pornVideoObject.object = pornResultNodePornVideosPornVideo["Object"].asString(); - jobListObject.result.pornResult.pornVideos.push_back(pornVideoObject); - } - auto allPornAudiosNode = pornResultNode["PornAudios"]["PornAudio"]; - for (auto pornResultNodePornAudiosPornAudio : allPornAudiosNode) - { - Job::Result::PornResult::PornAudio pornAudioObject; - if(!pornResultNodePornAudiosPornAudio["Suggestion"].isNull()) - pornAudioObject.suggestion = pornResultNodePornAudiosPornAudio["Suggestion"].asString(); - if(!pornResultNodePornAudiosPornAudio["Score"].isNull()) - pornAudioObject.score = pornResultNodePornAudiosPornAudio["Score"].asString(); - if(!pornResultNodePornAudiosPornAudio["StartTime"].isNull()) - pornAudioObject.startTime = pornResultNodePornAudiosPornAudio["StartTime"].asString(); - if(!pornResultNodePornAudiosPornAudio["EndTime"].isNull()) - pornAudioObject.endTime = pornResultNodePornAudiosPornAudio["EndTime"].asString(); - if(!pornResultNodePornAudiosPornAudio["Text"].isNull()) - pornAudioObject.text = pornResultNodePornAudiosPornAudio["Text"].asString(); - if(!pornResultNodePornAudiosPornAudio["Object"].isNull()) - pornAudioObject.object = pornResultNodePornAudiosPornAudio["Object"].asString(); - jobListObject.result.pornResult.pornAudios.push_back(pornAudioObject); - } auto allPornTextsNode = pornResultNode["PornTexts"]["PornText"]; for (auto pornResultNodePornTextsPornText : allPornTextsNode) { @@ -109,6 +77,38 @@ void QueryMCJobListResult::parse(const std::string &payload) pornTextObject.text = pornResultNodePornTextsPornText["Text"].asString(); jobListObject.result.pornResult.pornTexts.push_back(pornTextObject); } + auto allPornVideosNode = pornResultNode["PornVideos"]["PornVideo"]; + for (auto pornResultNodePornVideosPornVideo : allPornVideosNode) + { + Job::Result::PornResult::PornVideo pornVideoObject; + if(!pornResultNodePornVideosPornVideo["Time"].isNull()) + pornVideoObject.time = pornResultNodePornVideosPornVideo["Time"].asString(); + if(!pornResultNodePornVideosPornVideo["Suggestion"].isNull()) + pornVideoObject.suggestion = pornResultNodePornVideosPornVideo["Suggestion"].asString(); + if(!pornResultNodePornVideosPornVideo["Score"].isNull()) + pornVideoObject.score = pornResultNodePornVideosPornVideo["Score"].asString(); + if(!pornResultNodePornVideosPornVideo["Object"].isNull()) + pornVideoObject.object = pornResultNodePornVideosPornVideo["Object"].asString(); + jobListObject.result.pornResult.pornVideos.push_back(pornVideoObject); + } + auto allPornAudiosNode = pornResultNode["PornAudios"]["PornAudio"]; + for (auto pornResultNodePornAudiosPornAudio : allPornAudiosNode) + { + Job::Result::PornResult::PornAudio pornAudioObject; + if(!pornResultNodePornAudiosPornAudio["EndTime"].isNull()) + pornAudioObject.endTime = pornResultNodePornAudiosPornAudio["EndTime"].asString(); + if(!pornResultNodePornAudiosPornAudio["StartTime"].isNull()) + pornAudioObject.startTime = pornResultNodePornAudiosPornAudio["StartTime"].asString(); + if(!pornResultNodePornAudiosPornAudio["Suggestion"].isNull()) + pornAudioObject.suggestion = pornResultNodePornAudiosPornAudio["Suggestion"].asString(); + if(!pornResultNodePornAudiosPornAudio["Score"].isNull()) + pornAudioObject.score = pornResultNodePornAudiosPornAudio["Score"].asString(); + if(!pornResultNodePornAudiosPornAudio["Text"].isNull()) + pornAudioObject.text = pornResultNodePornAudiosPornAudio["Text"].asString(); + if(!pornResultNodePornAudiosPornAudio["Object"].isNull()) + pornAudioObject.object = pornResultNodePornAudiosPornAudio["Object"].asString(); + jobListObject.result.pornResult.pornAudios.push_back(pornAudioObject); + } auto allPornImagesNode = pornResultNode["PornImages"]["PornImage"]; for (auto pornResultNodePornImagesPornImage : allPornImagesNode) { @@ -127,200 +127,34 @@ void QueryMCJobListResult::parse(const std::string &payload) for (auto pornResultNodePornOcrsPornOcr : allPornOcrsNode) { Job::Result::PornResult::PornOcr pornOcrObject; + if(!pornResultNodePornOcrsPornOcr["Time"].isNull()) + pornOcrObject.time = pornResultNodePornOcrsPornOcr["Time"].asString(); if(!pornResultNodePornOcrsPornOcr["Suggestion"].isNull()) pornOcrObject.suggestion = pornResultNodePornOcrsPornOcr["Suggestion"].asString(); if(!pornResultNodePornOcrsPornOcr["Score"].isNull()) pornOcrObject.score = pornResultNodePornOcrsPornOcr["Score"].asString(); - if(!pornResultNodePornOcrsPornOcr["Time"].isNull()) - pornOcrObject.time = pornResultNodePornOcrsPornOcr["Time"].asString(); - if(!pornResultNodePornOcrsPornOcr["Object"].isNull()) - pornOcrObject.object = pornResultNodePornOcrsPornOcr["Object"].asString(); if(!pornResultNodePornOcrsPornOcr["Text"].isNull()) pornOcrObject.text = pornResultNodePornOcrsPornOcr["Text"].asString(); + if(!pornResultNodePornOcrsPornOcr["Object"].isNull()) + pornOcrObject.object = pornResultNodePornOcrsPornOcr["Object"].asString(); jobListObject.result.pornResult.pornOcrs.push_back(pornOcrObject); } - auto terrorismResultNode = resultNode["TerrorismResult"]; - auto allTerrorismVideosNode = terrorismResultNode["TerrorismVideos"]["TerrorismVideo"]; - for (auto terrorismResultNodeTerrorismVideosTerrorismVideo : allTerrorismVideosNode) - { - Job::Result::TerrorismResult::TerrorismVideo terrorismVideoObject; - if(!terrorismResultNodeTerrorismVideosTerrorismVideo["Suggestion"].isNull()) - terrorismVideoObject.suggestion = terrorismResultNodeTerrorismVideosTerrorismVideo["Suggestion"].asString(); - if(!terrorismResultNodeTerrorismVideosTerrorismVideo["Score"].isNull()) - terrorismVideoObject.score = terrorismResultNodeTerrorismVideosTerrorismVideo["Score"].asString(); - if(!terrorismResultNodeTerrorismVideosTerrorismVideo["Time"].isNull()) - terrorismVideoObject.time = terrorismResultNodeTerrorismVideosTerrorismVideo["Time"].asString(); - if(!terrorismResultNodeTerrorismVideosTerrorismVideo["Object"].isNull()) - terrorismVideoObject.object = terrorismResultNodeTerrorismVideosTerrorismVideo["Object"].asString(); - jobListObject.result.terrorismResult.terrorismVideos.push_back(terrorismVideoObject); - } - auto allTerrorismAudiosNode = terrorismResultNode["TerrorismAudios"]["TerrorismAudio"]; - for (auto terrorismResultNodeTerrorismAudiosTerrorismAudio : allTerrorismAudiosNode) - { - Job::Result::TerrorismResult::TerrorismAudio terrorismAudioObject; - if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["Suggestion"].isNull()) - terrorismAudioObject.suggestion = terrorismResultNodeTerrorismAudiosTerrorismAudio["Suggestion"].asString(); - if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["Score"].isNull()) - terrorismAudioObject.score = terrorismResultNodeTerrorismAudiosTerrorismAudio["Score"].asString(); - if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["StartTime"].isNull()) - terrorismAudioObject.startTime = terrorismResultNodeTerrorismAudiosTerrorismAudio["StartTime"].asString(); - if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["EndTime"].isNull()) - terrorismAudioObject.endTime = terrorismResultNodeTerrorismAudiosTerrorismAudio["EndTime"].asString(); - if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["Text"].isNull()) - terrorismAudioObject.text = terrorismResultNodeTerrorismAudiosTerrorismAudio["Text"].asString(); - if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["Object"].isNull()) - terrorismAudioObject.object = terrorismResultNodeTerrorismAudiosTerrorismAudio["Object"].asString(); - jobListObject.result.terrorismResult.terrorismAudios.push_back(terrorismAudioObject); - } - auto allTerrorismTextsNode = terrorismResultNode["TerrorismTexts"]["TerrorismText"]; - for (auto terrorismResultNodeTerrorismTextsTerrorismText : allTerrorismTextsNode) - { - Job::Result::TerrorismResult::TerrorismText terrorismTextObject; - if(!terrorismResultNodeTerrorismTextsTerrorismText["Suggestion"].isNull()) - terrorismTextObject.suggestion = terrorismResultNodeTerrorismTextsTerrorismText["Suggestion"].asString(); - if(!terrorismResultNodeTerrorismTextsTerrorismText["Score"].isNull()) - terrorismTextObject.score = terrorismResultNodeTerrorismTextsTerrorismText["Score"].asString(); - if(!terrorismResultNodeTerrorismTextsTerrorismText["Text"].isNull()) - terrorismTextObject.text = terrorismResultNodeTerrorismTextsTerrorismText["Text"].asString(); - jobListObject.result.terrorismResult.terrorismTexts.push_back(terrorismTextObject); - } - auto allTerrorismImagesNode = terrorismResultNode["TerrorismImages"]["TerrorismImage"]; - for (auto terrorismResultNodeTerrorismImagesTerrorismImage : allTerrorismImagesNode) - { - Job::Result::TerrorismResult::TerrorismImage terrorismImageObject; - if(!terrorismResultNodeTerrorismImagesTerrorismImage["Suggestion"].isNull()) - terrorismImageObject.suggestion = terrorismResultNodeTerrorismImagesTerrorismImage["Suggestion"].asString(); - if(!terrorismResultNodeTerrorismImagesTerrorismImage["Score"].isNull()) - terrorismImageObject.score = terrorismResultNodeTerrorismImagesTerrorismImage["Score"].asString(); - if(!terrorismResultNodeTerrorismImagesTerrorismImage["Url"].isNull()) - terrorismImageObject.url = terrorismResultNodeTerrorismImagesTerrorismImage["Url"].asString(); - if(!terrorismResultNodeTerrorismImagesTerrorismImage["Text"].isNull()) - terrorismImageObject.text = terrorismResultNodeTerrorismImagesTerrorismImage["Text"].asString(); - jobListObject.result.terrorismResult.terrorismImages.push_back(terrorismImageObject); - } - auto allTerrorismOcrsNode = terrorismResultNode["TerrorismOcrs"]["TerrorismOcr"]; - for (auto terrorismResultNodeTerrorismOcrsTerrorismOcr : allTerrorismOcrsNode) - { - Job::Result::TerrorismResult::TerrorismOcr terrorismOcrObject; - if(!terrorismResultNodeTerrorismOcrsTerrorismOcr["Suggestion"].isNull()) - terrorismOcrObject.suggestion = terrorismResultNodeTerrorismOcrsTerrorismOcr["Suggestion"].asString(); - if(!terrorismResultNodeTerrorismOcrsTerrorismOcr["Score"].isNull()) - terrorismOcrObject.score = terrorismResultNodeTerrorismOcrsTerrorismOcr["Score"].asString(); - if(!terrorismResultNodeTerrorismOcrsTerrorismOcr["Time"].isNull()) - terrorismOcrObject.time = terrorismResultNodeTerrorismOcrsTerrorismOcr["Time"].asString(); - if(!terrorismResultNodeTerrorismOcrsTerrorismOcr["Object"].isNull()) - terrorismOcrObject.object = terrorismResultNodeTerrorismOcrsTerrorismOcr["Object"].asString(); - if(!terrorismResultNodeTerrorismOcrsTerrorismOcr["Text"].isNull()) - terrorismOcrObject.text = terrorismResultNodeTerrorismOcrsTerrorismOcr["Text"].asString(); - jobListObject.result.terrorismResult.terrorismOcrs.push_back(terrorismOcrObject); - } - auto politicsResultNode = resultNode["PoliticsResult"]; - auto allPoliticsVideosNode = politicsResultNode["PoliticsVideos"]["PoliticsVideo"]; - for (auto politicsResultNodePoliticsVideosPoliticsVideo : allPoliticsVideosNode) - { - Job::Result::PoliticsResult::PoliticsVideo politicsVideoObject; - if(!politicsResultNodePoliticsVideosPoliticsVideo["Suggestion"].isNull()) - politicsVideoObject.suggestion = politicsResultNodePoliticsVideosPoliticsVideo["Suggestion"].asString(); - if(!politicsResultNodePoliticsVideosPoliticsVideo["Score"].isNull()) - politicsVideoObject.score = politicsResultNodePoliticsVideosPoliticsVideo["Score"].asString(); - if(!politicsResultNodePoliticsVideosPoliticsVideo["Time"].isNull()) - politicsVideoObject.time = politicsResultNodePoliticsVideosPoliticsVideo["Time"].asString(); - if(!politicsResultNodePoliticsVideosPoliticsVideo["Object"].isNull()) - politicsVideoObject.object = politicsResultNodePoliticsVideosPoliticsVideo["Object"].asString(); - jobListObject.result.politicsResult.politicsVideos.push_back(politicsVideoObject); - } - auto allPoliticsAudiosNode = politicsResultNode["PoliticsAudios"]["PoliticsAudio"]; - for (auto politicsResultNodePoliticsAudiosPoliticsAudio : allPoliticsAudiosNode) - { - Job::Result::PoliticsResult::PoliticsAudio politicsAudioObject; - if(!politicsResultNodePoliticsAudiosPoliticsAudio["Suggestion"].isNull()) - politicsAudioObject.suggestion = politicsResultNodePoliticsAudiosPoliticsAudio["Suggestion"].asString(); - if(!politicsResultNodePoliticsAudiosPoliticsAudio["Score"].isNull()) - politicsAudioObject.score = politicsResultNodePoliticsAudiosPoliticsAudio["Score"].asString(); - if(!politicsResultNodePoliticsAudiosPoliticsAudio["StartTime"].isNull()) - politicsAudioObject.startTime = politicsResultNodePoliticsAudiosPoliticsAudio["StartTime"].asString(); - if(!politicsResultNodePoliticsAudiosPoliticsAudio["EndTime"].isNull()) - politicsAudioObject.endTime = politicsResultNodePoliticsAudiosPoliticsAudio["EndTime"].asString(); - if(!politicsResultNodePoliticsAudiosPoliticsAudio["Text"].isNull()) - politicsAudioObject.text = politicsResultNodePoliticsAudiosPoliticsAudio["Text"].asString(); - if(!politicsResultNodePoliticsAudiosPoliticsAudio["Object"].isNull()) - politicsAudioObject.object = politicsResultNodePoliticsAudiosPoliticsAudio["Object"].asString(); - jobListObject.result.politicsResult.politicsAudios.push_back(politicsAudioObject); - } - auto allPoliticsTextsNode = politicsResultNode["PoliticsTexts"]["PoliticsText"]; - for (auto politicsResultNodePoliticsTextsPoliticsText : allPoliticsTextsNode) - { - Job::Result::PoliticsResult::PoliticsText politicsTextObject; - if(!politicsResultNodePoliticsTextsPoliticsText["Suggestion"].isNull()) - politicsTextObject.suggestion = politicsResultNodePoliticsTextsPoliticsText["Suggestion"].asString(); - if(!politicsResultNodePoliticsTextsPoliticsText["Score"].isNull()) - politicsTextObject.score = politicsResultNodePoliticsTextsPoliticsText["Score"].asString(); - if(!politicsResultNodePoliticsTextsPoliticsText["Text"].isNull()) - politicsTextObject.text = politicsResultNodePoliticsTextsPoliticsText["Text"].asString(); - jobListObject.result.politicsResult.politicsTexts.push_back(politicsTextObject); - } - auto allPoliticsImagesNode = politicsResultNode["PoliticsImages"]["PoliticsImage"]; - for (auto politicsResultNodePoliticsImagesPoliticsImage : allPoliticsImagesNode) - { - Job::Result::PoliticsResult::PoliticsImage politicsImageObject; - if(!politicsResultNodePoliticsImagesPoliticsImage["Suggestion"].isNull()) - politicsImageObject.suggestion = politicsResultNodePoliticsImagesPoliticsImage["Suggestion"].asString(); - if(!politicsResultNodePoliticsImagesPoliticsImage["Score"].isNull()) - politicsImageObject.score = politicsResultNodePoliticsImagesPoliticsImage["Score"].asString(); - if(!politicsResultNodePoliticsImagesPoliticsImage["Url"].isNull()) - politicsImageObject.url = politicsResultNodePoliticsImagesPoliticsImage["Url"].asString(); - if(!politicsResultNodePoliticsImagesPoliticsImage["Text"].isNull()) - politicsImageObject.text = politicsResultNodePoliticsImagesPoliticsImage["Text"].asString(); - jobListObject.result.politicsResult.politicsImages.push_back(politicsImageObject); - } - auto allPoliticsOcrsNode = politicsResultNode["PoliticsOcrs"]["PoliticsOcr"]; - for (auto politicsResultNodePoliticsOcrsPoliticsOcr : allPoliticsOcrsNode) - { - Job::Result::PoliticsResult::PoliticsOcr politicsOcrObject; - if(!politicsResultNodePoliticsOcrsPoliticsOcr["Suggestion"].isNull()) - politicsOcrObject.suggestion = politicsResultNodePoliticsOcrsPoliticsOcr["Suggestion"].asString(); - if(!politicsResultNodePoliticsOcrsPoliticsOcr["Score"].isNull()) - politicsOcrObject.score = politicsResultNodePoliticsOcrsPoliticsOcr["Score"].asString(); - if(!politicsResultNodePoliticsOcrsPoliticsOcr["Time"].isNull()) - politicsOcrObject.time = politicsResultNodePoliticsOcrsPoliticsOcr["Time"].asString(); - if(!politicsResultNodePoliticsOcrsPoliticsOcr["Object"].isNull()) - politicsOcrObject.object = politicsResultNodePoliticsOcrsPoliticsOcr["Object"].asString(); - if(!politicsResultNodePoliticsOcrsPoliticsOcr["Text"].isNull()) - politicsOcrObject.text = politicsResultNodePoliticsOcrsPoliticsOcr["Text"].asString(); - jobListObject.result.politicsResult.politicsOcrs.push_back(politicsOcrObject); - } auto adResultNode = resultNode["AdResult"]; - auto allAdVideosNode = adResultNode["AdVideos"]["AdVideo"]; - for (auto adResultNodeAdVideosAdVideo : allAdVideosNode) + auto allAdOcrsNode = adResultNode["AdOcrs"]["AdOcr"]; + for (auto adResultNodeAdOcrsAdOcr : allAdOcrsNode) { - Job::Result::AdResult::AdVideo adVideoObject; - if(!adResultNodeAdVideosAdVideo["Suggestion"].isNull()) - adVideoObject.suggestion = adResultNodeAdVideosAdVideo["Suggestion"].asString(); - if(!adResultNodeAdVideosAdVideo["Score"].isNull()) - adVideoObject.score = adResultNodeAdVideosAdVideo["Score"].asString(); - if(!adResultNodeAdVideosAdVideo["Time"].isNull()) - adVideoObject.time = adResultNodeAdVideosAdVideo["Time"].asString(); - if(!adResultNodeAdVideosAdVideo["Object"].isNull()) - adVideoObject.object = adResultNodeAdVideosAdVideo["Object"].asString(); - jobListObject.result.adResult.adVideos.push_back(adVideoObject); - } - auto allAdAudiosNode = adResultNode["AdAudios"]["AdAudio"]; - for (auto adResultNodeAdAudiosAdAudio : allAdAudiosNode) - { - Job::Result::AdResult::AdAudio adAudioObject; - if(!adResultNodeAdAudiosAdAudio["Suggestion"].isNull()) - adAudioObject.suggestion = adResultNodeAdAudiosAdAudio["Suggestion"].asString(); - if(!adResultNodeAdAudiosAdAudio["Score"].isNull()) - adAudioObject.score = adResultNodeAdAudiosAdAudio["Score"].asString(); - if(!adResultNodeAdAudiosAdAudio["StartTime"].isNull()) - adAudioObject.startTime = adResultNodeAdAudiosAdAudio["StartTime"].asString(); - if(!adResultNodeAdAudiosAdAudio["EndTime"].isNull()) - adAudioObject.endTime = adResultNodeAdAudiosAdAudio["EndTime"].asString(); - if(!adResultNodeAdAudiosAdAudio["Text"].isNull()) - adAudioObject.text = adResultNodeAdAudiosAdAudio["Text"].asString(); - if(!adResultNodeAdAudiosAdAudio["Object"].isNull()) - adAudioObject.object = adResultNodeAdAudiosAdAudio["Object"].asString(); - jobListObject.result.adResult.adAudios.push_back(adAudioObject); + Job::Result::AdResult::AdOcr adOcrObject; + if(!adResultNodeAdOcrsAdOcr["Time"].isNull()) + adOcrObject.time = adResultNodeAdOcrsAdOcr["Time"].asString(); + if(!adResultNodeAdOcrsAdOcr["Suggestion"].isNull()) + adOcrObject.suggestion = adResultNodeAdOcrsAdOcr["Suggestion"].asString(); + if(!adResultNodeAdOcrsAdOcr["Score"].isNull()) + adOcrObject.score = adResultNodeAdOcrsAdOcr["Score"].asString(); + if(!adResultNodeAdOcrsAdOcr["Text"].isNull()) + adOcrObject.text = adResultNodeAdOcrsAdOcr["Text"].asString(); + if(!adResultNodeAdOcrsAdOcr["Object"].isNull()) + adOcrObject.object = adResultNodeAdOcrsAdOcr["Object"].asString(); + jobListObject.result.adResult.adOcrs.push_back(adOcrObject); } auto allAdTextsNode = adResultNode["AdTexts"]["AdText"]; for (auto adResultNodeAdTextsAdText : allAdTextsNode) @@ -348,95 +182,39 @@ void QueryMCJobListResult::parse(const std::string &payload) adImageObject.text = adResultNodeAdImagesAdImage["Text"].asString(); jobListObject.result.adResult.adImages.push_back(adImageObject); } - auto allAdOcrsNode = adResultNode["AdOcrs"]["AdOcr"]; - for (auto adResultNodeAdOcrsAdOcr : allAdOcrsNode) + auto allAdAudiosNode = adResultNode["AdAudios"]["AdAudio"]; + for (auto adResultNodeAdAudiosAdAudio : allAdAudiosNode) { - Job::Result::AdResult::AdOcr adOcrObject; - if(!adResultNodeAdOcrsAdOcr["Suggestion"].isNull()) - adOcrObject.suggestion = adResultNodeAdOcrsAdOcr["Suggestion"].asString(); - if(!adResultNodeAdOcrsAdOcr["Score"].isNull()) - adOcrObject.score = adResultNodeAdOcrsAdOcr["Score"].asString(); - if(!adResultNodeAdOcrsAdOcr["Time"].isNull()) - adOcrObject.time = adResultNodeAdOcrsAdOcr["Time"].asString(); - if(!adResultNodeAdOcrsAdOcr["Object"].isNull()) - adOcrObject.object = adResultNodeAdOcrsAdOcr["Object"].asString(); - if(!adResultNodeAdOcrsAdOcr["Text"].isNull()) - adOcrObject.text = adResultNodeAdOcrsAdOcr["Text"].asString(); - jobListObject.result.adResult.adOcrs.push_back(adOcrObject); + Job::Result::AdResult::AdAudio adAudioObject; + if(!adResultNodeAdAudiosAdAudio["EndTime"].isNull()) + adAudioObject.endTime = adResultNodeAdAudiosAdAudio["EndTime"].asString(); + if(!adResultNodeAdAudiosAdAudio["StartTime"].isNull()) + adAudioObject.startTime = adResultNodeAdAudiosAdAudio["StartTime"].asString(); + if(!adResultNodeAdAudiosAdAudio["Suggestion"].isNull()) + adAudioObject.suggestion = adResultNodeAdAudiosAdAudio["Suggestion"].asString(); + if(!adResultNodeAdAudiosAdAudio["Score"].isNull()) + adAudioObject.score = adResultNodeAdAudiosAdAudio["Score"].asString(); + if(!adResultNodeAdAudiosAdAudio["Text"].isNull()) + adAudioObject.text = adResultNodeAdAudiosAdAudio["Text"].asString(); + if(!adResultNodeAdAudiosAdAudio["Object"].isNull()) + adAudioObject.object = adResultNodeAdAudiosAdAudio["Object"].asString(); + jobListObject.result.adResult.adAudios.push_back(adAudioObject); } - auto qrcodeResultNode = resultNode["QrcodeResult"]; - auto allQrcodeVideosNode = qrcodeResultNode["QrcodeVideos"]["QrcodeVideo"]; - for (auto qrcodeResultNodeQrcodeVideosQrcodeVideo : allQrcodeVideosNode) + auto allAdVideosNode = adResultNode["AdVideos"]["AdVideo"]; + for (auto adResultNodeAdVideosAdVideo : allAdVideosNode) { - Job::Result::QrcodeResult::QrcodeVideo qrcodeVideoObject; - if(!qrcodeResultNodeQrcodeVideosQrcodeVideo["Suggestion"].isNull()) - qrcodeVideoObject.suggestion = qrcodeResultNodeQrcodeVideosQrcodeVideo["Suggestion"].asString(); - if(!qrcodeResultNodeQrcodeVideosQrcodeVideo["Score"].isNull()) - qrcodeVideoObject.score = qrcodeResultNodeQrcodeVideosQrcodeVideo["Score"].asString(); - if(!qrcodeResultNodeQrcodeVideosQrcodeVideo["Time"].isNull()) - qrcodeVideoObject.time = qrcodeResultNodeQrcodeVideosQrcodeVideo["Time"].asString(); - if(!qrcodeResultNodeQrcodeVideosQrcodeVideo["Object"].isNull()) - qrcodeVideoObject.object = qrcodeResultNodeQrcodeVideosQrcodeVideo["Object"].asString(); - jobListObject.result.qrcodeResult.qrcodeVideos.push_back(qrcodeVideoObject); - } - auto allQrcodeImagesNode = qrcodeResultNode["QrcodeImages"]["QrcodeImage"]; - for (auto qrcodeResultNodeQrcodeImagesQrcodeImage : allQrcodeImagesNode) - { - Job::Result::QrcodeResult::QrcodeImage qrcodeImageObject; - if(!qrcodeResultNodeQrcodeImagesQrcodeImage["Suggestion"].isNull()) - qrcodeImageObject.suggestion = qrcodeResultNodeQrcodeImagesQrcodeImage["Suggestion"].asString(); - if(!qrcodeResultNodeQrcodeImagesQrcodeImage["Score"].isNull()) - qrcodeImageObject.score = qrcodeResultNodeQrcodeImagesQrcodeImage["Score"].asString(); - if(!qrcodeResultNodeQrcodeImagesQrcodeImage["Url"].isNull()) - qrcodeImageObject.url = qrcodeResultNodeQrcodeImagesQrcodeImage["Url"].asString(); - if(!qrcodeResultNodeQrcodeImagesQrcodeImage["Text"].isNull()) - qrcodeImageObject.text = qrcodeResultNodeQrcodeImagesQrcodeImage["Text"].asString(); - jobListObject.result.qrcodeResult.qrcodeImages.push_back(qrcodeImageObject); - } - auto liveResultNode = resultNode["LiveResult"]; - auto allLiveVideosNode = liveResultNode["LiveVideos"]["LiveVideo"]; - for (auto liveResultNodeLiveVideosLiveVideo : allLiveVideosNode) - { - Job::Result::LiveResult::LiveVideo liveVideoObject; - if(!liveResultNodeLiveVideosLiveVideo["Suggestion"].isNull()) - liveVideoObject.suggestion = liveResultNodeLiveVideosLiveVideo["Suggestion"].asString(); - if(!liveResultNodeLiveVideosLiveVideo["Score"].isNull()) - liveVideoObject.score = liveResultNodeLiveVideosLiveVideo["Score"].asString(); - if(!liveResultNodeLiveVideosLiveVideo["Time"].isNull()) - liveVideoObject.time = liveResultNodeLiveVideosLiveVideo["Time"].asString(); - if(!liveResultNodeLiveVideosLiveVideo["Object"].isNull()) - liveVideoObject.object = liveResultNodeLiveVideosLiveVideo["Object"].asString(); - jobListObject.result.liveResult.liveVideos.push_back(liveVideoObject); - } - auto allLiveImagesNode = liveResultNode["LiveImages"]["LiveImage"]; - for (auto liveResultNodeLiveImagesLiveImage : allLiveImagesNode) - { - Job::Result::LiveResult::LiveImage liveImageObject; - if(!liveResultNodeLiveImagesLiveImage["Suggestion"].isNull()) - liveImageObject.suggestion = liveResultNodeLiveImagesLiveImage["Suggestion"].asString(); - if(!liveResultNodeLiveImagesLiveImage["Score"].isNull()) - liveImageObject.score = liveResultNodeLiveImagesLiveImage["Score"].asString(); - if(!liveResultNodeLiveImagesLiveImage["Url"].isNull()) - liveImageObject.url = liveResultNodeLiveImagesLiveImage["Url"].asString(); - if(!liveResultNodeLiveImagesLiveImage["Text"].isNull()) - liveImageObject.text = liveResultNodeLiveImagesLiveImage["Text"].asString(); - jobListObject.result.liveResult.liveImages.push_back(liveImageObject); + Job::Result::AdResult::AdVideo adVideoObject; + if(!adResultNodeAdVideosAdVideo["Time"].isNull()) + adVideoObject.time = adResultNodeAdVideosAdVideo["Time"].asString(); + if(!adResultNodeAdVideosAdVideo["Suggestion"].isNull()) + adVideoObject.suggestion = adResultNodeAdVideosAdVideo["Suggestion"].asString(); + if(!adResultNodeAdVideosAdVideo["Score"].isNull()) + adVideoObject.score = adResultNodeAdVideosAdVideo["Score"].asString(); + if(!adResultNodeAdVideosAdVideo["Object"].isNull()) + adVideoObject.object = adResultNodeAdVideosAdVideo["Object"].asString(); + jobListObject.result.adResult.adVideos.push_back(adVideoObject); } auto logoResultNode = resultNode["LogoResult"]; - auto allLogoVideosNode = logoResultNode["LogoVideos"]["LogoVideo"]; - for (auto logoResultNodeLogoVideosLogoVideo : allLogoVideosNode) - { - Job::Result::LogoResult::LogoVideo logoVideoObject; - if(!logoResultNodeLogoVideosLogoVideo["Suggestion"].isNull()) - logoVideoObject.suggestion = logoResultNodeLogoVideosLogoVideo["Suggestion"].asString(); - if(!logoResultNodeLogoVideosLogoVideo["Score"].isNull()) - logoVideoObject.score = logoResultNodeLogoVideosLogoVideo["Score"].asString(); - if(!logoResultNodeLogoVideosLogoVideo["Time"].isNull()) - logoVideoObject.time = logoResultNodeLogoVideosLogoVideo["Time"].asString(); - if(!logoResultNodeLogoVideosLogoVideo["Object"].isNull()) - logoVideoObject.object = logoResultNodeLogoVideosLogoVideo["Object"].asString(); - jobListObject.result.logoResult.logoVideos.push_back(logoVideoObject); - } auto allLogoImagesNode = logoResultNode["LogoImages"]["LogoImage"]; for (auto logoResultNodeLogoImagesLogoImage : allLogoImagesNode) { @@ -451,19 +229,182 @@ void QueryMCJobListResult::parse(const std::string &payload) logoImageObject.text = logoResultNodeLogoImagesLogoImage["Text"].asString(); jobListObject.result.logoResult.logoImages.push_back(logoImageObject); } + auto allLogoVideosNode = logoResultNode["LogoVideos"]["LogoVideo"]; + for (auto logoResultNodeLogoVideosLogoVideo : allLogoVideosNode) + { + Job::Result::LogoResult::LogoVideo logoVideoObject; + if(!logoResultNodeLogoVideosLogoVideo["Time"].isNull()) + logoVideoObject.time = logoResultNodeLogoVideosLogoVideo["Time"].asString(); + if(!logoResultNodeLogoVideosLogoVideo["Suggestion"].isNull()) + logoVideoObject.suggestion = logoResultNodeLogoVideosLogoVideo["Suggestion"].asString(); + if(!logoResultNodeLogoVideosLogoVideo["Score"].isNull()) + logoVideoObject.score = logoResultNodeLogoVideosLogoVideo["Score"].asString(); + if(!logoResultNodeLogoVideosLogoVideo["Object"].isNull()) + logoVideoObject.object = logoResultNodeLogoVideosLogoVideo["Object"].asString(); + jobListObject.result.logoResult.logoVideos.push_back(logoVideoObject); + } + auto qrcodeResultNode = resultNode["QrcodeResult"]; + auto allQrcodeImagesNode = qrcodeResultNode["QrcodeImages"]["QrcodeImage"]; + for (auto qrcodeResultNodeQrcodeImagesQrcodeImage : allQrcodeImagesNode) + { + Job::Result::QrcodeResult::QrcodeImage qrcodeImageObject; + if(!qrcodeResultNodeQrcodeImagesQrcodeImage["Suggestion"].isNull()) + qrcodeImageObject.suggestion = qrcodeResultNodeQrcodeImagesQrcodeImage["Suggestion"].asString(); + if(!qrcodeResultNodeQrcodeImagesQrcodeImage["Score"].isNull()) + qrcodeImageObject.score = qrcodeResultNodeQrcodeImagesQrcodeImage["Score"].asString(); + if(!qrcodeResultNodeQrcodeImagesQrcodeImage["Url"].isNull()) + qrcodeImageObject.url = qrcodeResultNodeQrcodeImagesQrcodeImage["Url"].asString(); + if(!qrcodeResultNodeQrcodeImagesQrcodeImage["Text"].isNull()) + qrcodeImageObject.text = qrcodeResultNodeQrcodeImagesQrcodeImage["Text"].asString(); + jobListObject.result.qrcodeResult.qrcodeImages.push_back(qrcodeImageObject); + } + auto allQrcodeVideosNode = qrcodeResultNode["QrcodeVideos"]["QrcodeVideo"]; + for (auto qrcodeResultNodeQrcodeVideosQrcodeVideo : allQrcodeVideosNode) + { + Job::Result::QrcodeResult::QrcodeVideo qrcodeVideoObject; + if(!qrcodeResultNodeQrcodeVideosQrcodeVideo["Time"].isNull()) + qrcodeVideoObject.time = qrcodeResultNodeQrcodeVideosQrcodeVideo["Time"].asString(); + if(!qrcodeResultNodeQrcodeVideosQrcodeVideo["Suggestion"].isNull()) + qrcodeVideoObject.suggestion = qrcodeResultNodeQrcodeVideosQrcodeVideo["Suggestion"].asString(); + if(!qrcodeResultNodeQrcodeVideosQrcodeVideo["Score"].isNull()) + qrcodeVideoObject.score = qrcodeResultNodeQrcodeVideosQrcodeVideo["Score"].asString(); + if(!qrcodeResultNodeQrcodeVideosQrcodeVideo["Object"].isNull()) + qrcodeVideoObject.object = qrcodeResultNodeQrcodeVideosQrcodeVideo["Object"].asString(); + jobListObject.result.qrcodeResult.qrcodeVideos.push_back(qrcodeVideoObject); + } + auto politicsResultNode = resultNode["PoliticsResult"]; + auto allPoliticsOcrsNode = politicsResultNode["PoliticsOcrs"]["PoliticsOcr"]; + for (auto politicsResultNodePoliticsOcrsPoliticsOcr : allPoliticsOcrsNode) + { + Job::Result::PoliticsResult::PoliticsOcr politicsOcrObject; + if(!politicsResultNodePoliticsOcrsPoliticsOcr["Time"].isNull()) + politicsOcrObject.time = politicsResultNodePoliticsOcrsPoliticsOcr["Time"].asString(); + if(!politicsResultNodePoliticsOcrsPoliticsOcr["Suggestion"].isNull()) + politicsOcrObject.suggestion = politicsResultNodePoliticsOcrsPoliticsOcr["Suggestion"].asString(); + if(!politicsResultNodePoliticsOcrsPoliticsOcr["Score"].isNull()) + politicsOcrObject.score = politicsResultNodePoliticsOcrsPoliticsOcr["Score"].asString(); + if(!politicsResultNodePoliticsOcrsPoliticsOcr["Text"].isNull()) + politicsOcrObject.text = politicsResultNodePoliticsOcrsPoliticsOcr["Text"].asString(); + if(!politicsResultNodePoliticsOcrsPoliticsOcr["Object"].isNull()) + politicsOcrObject.object = politicsResultNodePoliticsOcrsPoliticsOcr["Object"].asString(); + jobListObject.result.politicsResult.politicsOcrs.push_back(politicsOcrObject); + } + auto allPoliticsVideosNode = politicsResultNode["PoliticsVideos"]["PoliticsVideo"]; + for (auto politicsResultNodePoliticsVideosPoliticsVideo : allPoliticsVideosNode) + { + Job::Result::PoliticsResult::PoliticsVideo politicsVideoObject; + if(!politicsResultNodePoliticsVideosPoliticsVideo["Time"].isNull()) + politicsVideoObject.time = politicsResultNodePoliticsVideosPoliticsVideo["Time"].asString(); + if(!politicsResultNodePoliticsVideosPoliticsVideo["Suggestion"].isNull()) + politicsVideoObject.suggestion = politicsResultNodePoliticsVideosPoliticsVideo["Suggestion"].asString(); + if(!politicsResultNodePoliticsVideosPoliticsVideo["Score"].isNull()) + politicsVideoObject.score = politicsResultNodePoliticsVideosPoliticsVideo["Score"].asString(); + if(!politicsResultNodePoliticsVideosPoliticsVideo["Object"].isNull()) + politicsVideoObject.object = politicsResultNodePoliticsVideosPoliticsVideo["Object"].asString(); + jobListObject.result.politicsResult.politicsVideos.push_back(politicsVideoObject); + } + auto allPoliticsImagesNode = politicsResultNode["PoliticsImages"]["PoliticsImage"]; + for (auto politicsResultNodePoliticsImagesPoliticsImage : allPoliticsImagesNode) + { + Job::Result::PoliticsResult::PoliticsImage politicsImageObject; + if(!politicsResultNodePoliticsImagesPoliticsImage["Suggestion"].isNull()) + politicsImageObject.suggestion = politicsResultNodePoliticsImagesPoliticsImage["Suggestion"].asString(); + if(!politicsResultNodePoliticsImagesPoliticsImage["Score"].isNull()) + politicsImageObject.score = politicsResultNodePoliticsImagesPoliticsImage["Score"].asString(); + if(!politicsResultNodePoliticsImagesPoliticsImage["Url"].isNull()) + politicsImageObject.url = politicsResultNodePoliticsImagesPoliticsImage["Url"].asString(); + if(!politicsResultNodePoliticsImagesPoliticsImage["Text"].isNull()) + politicsImageObject.text = politicsResultNodePoliticsImagesPoliticsImage["Text"].asString(); + jobListObject.result.politicsResult.politicsImages.push_back(politicsImageObject); + } + auto allPoliticsTextsNode = politicsResultNode["PoliticsTexts"]["PoliticsText"]; + for (auto politicsResultNodePoliticsTextsPoliticsText : allPoliticsTextsNode) + { + Job::Result::PoliticsResult::PoliticsText politicsTextObject; + if(!politicsResultNodePoliticsTextsPoliticsText["Suggestion"].isNull()) + politicsTextObject.suggestion = politicsResultNodePoliticsTextsPoliticsText["Suggestion"].asString(); + if(!politicsResultNodePoliticsTextsPoliticsText["Score"].isNull()) + politicsTextObject.score = politicsResultNodePoliticsTextsPoliticsText["Score"].asString(); + if(!politicsResultNodePoliticsTextsPoliticsText["Text"].isNull()) + politicsTextObject.text = politicsResultNodePoliticsTextsPoliticsText["Text"].asString(); + jobListObject.result.politicsResult.politicsTexts.push_back(politicsTextObject); + } + auto allPoliticsAudiosNode = politicsResultNode["PoliticsAudios"]["PoliticsAudio"]; + for (auto politicsResultNodePoliticsAudiosPoliticsAudio : allPoliticsAudiosNode) + { + Job::Result::PoliticsResult::PoliticsAudio politicsAudioObject; + if(!politicsResultNodePoliticsAudiosPoliticsAudio["EndTime"].isNull()) + politicsAudioObject.endTime = politicsResultNodePoliticsAudiosPoliticsAudio["EndTime"].asString(); + if(!politicsResultNodePoliticsAudiosPoliticsAudio["StartTime"].isNull()) + politicsAudioObject.startTime = politicsResultNodePoliticsAudiosPoliticsAudio["StartTime"].asString(); + if(!politicsResultNodePoliticsAudiosPoliticsAudio["Suggestion"].isNull()) + politicsAudioObject.suggestion = politicsResultNodePoliticsAudiosPoliticsAudio["Suggestion"].asString(); + if(!politicsResultNodePoliticsAudiosPoliticsAudio["Score"].isNull()) + politicsAudioObject.score = politicsResultNodePoliticsAudiosPoliticsAudio["Score"].asString(); + if(!politicsResultNodePoliticsAudiosPoliticsAudio["Text"].isNull()) + politicsAudioObject.text = politicsResultNodePoliticsAudiosPoliticsAudio["Text"].asString(); + if(!politicsResultNodePoliticsAudiosPoliticsAudio["Object"].isNull()) + politicsAudioObject.object = politicsResultNodePoliticsAudiosPoliticsAudio["Object"].asString(); + jobListObject.result.politicsResult.politicsAudios.push_back(politicsAudioObject); + } + auto liveResultNode = resultNode["LiveResult"]; + auto allLiveImagesNode = liveResultNode["LiveImages"]["LiveImage"]; + for (auto liveResultNodeLiveImagesLiveImage : allLiveImagesNode) + { + Job::Result::LiveResult::LiveImage liveImageObject; + if(!liveResultNodeLiveImagesLiveImage["Suggestion"].isNull()) + liveImageObject.suggestion = liveResultNodeLiveImagesLiveImage["Suggestion"].asString(); + if(!liveResultNodeLiveImagesLiveImage["Score"].isNull()) + liveImageObject.score = liveResultNodeLiveImagesLiveImage["Score"].asString(); + if(!liveResultNodeLiveImagesLiveImage["Url"].isNull()) + liveImageObject.url = liveResultNodeLiveImagesLiveImage["Url"].asString(); + if(!liveResultNodeLiveImagesLiveImage["Text"].isNull()) + liveImageObject.text = liveResultNodeLiveImagesLiveImage["Text"].asString(); + jobListObject.result.liveResult.liveImages.push_back(liveImageObject); + } + auto allLiveVideosNode = liveResultNode["LiveVideos"]["LiveVideo"]; + for (auto liveResultNodeLiveVideosLiveVideo : allLiveVideosNode) + { + Job::Result::LiveResult::LiveVideo liveVideoObject; + if(!liveResultNodeLiveVideosLiveVideo["Time"].isNull()) + liveVideoObject.time = liveResultNodeLiveVideosLiveVideo["Time"].asString(); + if(!liveResultNodeLiveVideosLiveVideo["Suggestion"].isNull()) + liveVideoObject.suggestion = liveResultNodeLiveVideosLiveVideo["Suggestion"].asString(); + if(!liveResultNodeLiveVideosLiveVideo["Score"].isNull()) + liveVideoObject.score = liveResultNodeLiveVideosLiveVideo["Score"].asString(); + if(!liveResultNodeLiveVideosLiveVideo["Object"].isNull()) + liveVideoObject.object = liveResultNodeLiveVideosLiveVideo["Object"].asString(); + jobListObject.result.liveResult.liveVideos.push_back(liveVideoObject); + } auto abuseResultNode = resultNode["AbuseResult"]; + auto allAbuseOcrsNode = abuseResultNode["AbuseOcrs"]["AbuseOcr"]; + for (auto abuseResultNodeAbuseOcrsAbuseOcr : allAbuseOcrsNode) + { + Job::Result::AbuseResult::AbuseOcr abuseOcrObject; + if(!abuseResultNodeAbuseOcrsAbuseOcr["Time"].isNull()) + abuseOcrObject.time = abuseResultNodeAbuseOcrsAbuseOcr["Time"].asString(); + if(!abuseResultNodeAbuseOcrsAbuseOcr["Suggestion"].isNull()) + abuseOcrObject.suggestion = abuseResultNodeAbuseOcrsAbuseOcr["Suggestion"].asString(); + if(!abuseResultNodeAbuseOcrsAbuseOcr["Score"].isNull()) + abuseOcrObject.score = abuseResultNodeAbuseOcrsAbuseOcr["Score"].asString(); + if(!abuseResultNodeAbuseOcrsAbuseOcr["Text"].isNull()) + abuseOcrObject.text = abuseResultNodeAbuseOcrsAbuseOcr["Text"].asString(); + if(!abuseResultNodeAbuseOcrsAbuseOcr["Object"].isNull()) + abuseOcrObject.object = abuseResultNodeAbuseOcrsAbuseOcr["Object"].asString(); + jobListObject.result.abuseResult.abuseOcrs.push_back(abuseOcrObject); + } auto allAbuseAudiosNode = abuseResultNode["AbuseAudios"]["AbuseAudio"]; for (auto abuseResultNodeAbuseAudiosAbuseAudio : allAbuseAudiosNode) { Job::Result::AbuseResult::AbuseAudio abuseAudioObject; + if(!abuseResultNodeAbuseAudiosAbuseAudio["EndTime"].isNull()) + abuseAudioObject.endTime = abuseResultNodeAbuseAudiosAbuseAudio["EndTime"].asString(); + if(!abuseResultNodeAbuseAudiosAbuseAudio["StartTime"].isNull()) + abuseAudioObject.startTime = abuseResultNodeAbuseAudiosAbuseAudio["StartTime"].asString(); if(!abuseResultNodeAbuseAudiosAbuseAudio["Suggestion"].isNull()) abuseAudioObject.suggestion = abuseResultNodeAbuseAudiosAbuseAudio["Suggestion"].asString(); if(!abuseResultNodeAbuseAudiosAbuseAudio["Score"].isNull()) abuseAudioObject.score = abuseResultNodeAbuseAudiosAbuseAudio["Score"].asString(); - if(!abuseResultNodeAbuseAudiosAbuseAudio["StartTime"].isNull()) - abuseAudioObject.startTime = abuseResultNodeAbuseAudiosAbuseAudio["StartTime"].asString(); - if(!abuseResultNodeAbuseAudiosAbuseAudio["EndTime"].isNull()) - abuseAudioObject.endTime = abuseResultNodeAbuseAudiosAbuseAudio["EndTime"].asString(); if(!abuseResultNodeAbuseAudiosAbuseAudio["Text"].isNull()) abuseAudioObject.text = abuseResultNodeAbuseAudiosAbuseAudio["Text"].asString(); if(!abuseResultNodeAbuseAudiosAbuseAudio["Object"].isNull()) @@ -482,41 +423,88 @@ void QueryMCJobListResult::parse(const std::string &payload) abuseTextObject.text = abuseResultNodeAbuseTextsAbuseText["Text"].asString(); jobListObject.result.abuseResult.abuseTexts.push_back(abuseTextObject); } - auto allAbuseOcrsNode = abuseResultNode["AbuseOcrs"]["AbuseOcr"]; - for (auto abuseResultNodeAbuseOcrsAbuseOcr : allAbuseOcrsNode) + auto spamResultNode = resultNode["SpamResult"]; + auto allSpamTextsNode = spamResultNode["SpamTexts"]["SpamText"]; + for (auto spamResultNodeSpamTextsSpamText : allSpamTextsNode) { - Job::Result::AbuseResult::AbuseOcr abuseOcrObject; - if(!abuseResultNodeAbuseOcrsAbuseOcr["Suggestion"].isNull()) - abuseOcrObject.suggestion = abuseResultNodeAbuseOcrsAbuseOcr["Suggestion"].asString(); - if(!abuseResultNodeAbuseOcrsAbuseOcr["Score"].isNull()) - abuseOcrObject.score = abuseResultNodeAbuseOcrsAbuseOcr["Score"].asString(); - if(!abuseResultNodeAbuseOcrsAbuseOcr["Time"].isNull()) - abuseOcrObject.time = abuseResultNodeAbuseOcrsAbuseOcr["Time"].asString(); - if(!abuseResultNodeAbuseOcrsAbuseOcr["Object"].isNull()) - abuseOcrObject.object = abuseResultNodeAbuseOcrsAbuseOcr["Object"].asString(); - if(!abuseResultNodeAbuseOcrsAbuseOcr["Text"].isNull()) - abuseOcrObject.text = abuseResultNodeAbuseOcrsAbuseOcr["Text"].asString(); - jobListObject.result.abuseResult.abuseOcrs.push_back(abuseOcrObject); + Job::Result::SpamResult::SpamText spamTextObject; + if(!spamResultNodeSpamTextsSpamText["Suggestion"].isNull()) + spamTextObject.suggestion = spamResultNodeSpamTextsSpamText["Suggestion"].asString(); + if(!spamResultNodeSpamTextsSpamText["Score"].isNull()) + spamTextObject.score = spamResultNodeSpamTextsSpamText["Score"].asString(); + if(!spamResultNodeSpamTextsSpamText["Text"].isNull()) + spamTextObject.text = spamResultNodeSpamTextsSpamText["Text"].asString(); + jobListObject.result.spamResult.spamTexts.push_back(spamTextObject); + } + auto allSpamAudiosNode = spamResultNode["SpamAudios"]["SpamAudio"]; + for (auto spamResultNodeSpamAudiosSpamAudio : allSpamAudiosNode) + { + Job::Result::SpamResult::SpamAudio spamAudioObject; + if(!spamResultNodeSpamAudiosSpamAudio["EndTime"].isNull()) + spamAudioObject.endTime = spamResultNodeSpamAudiosSpamAudio["EndTime"].asString(); + if(!spamResultNodeSpamAudiosSpamAudio["StartTime"].isNull()) + spamAudioObject.startTime = spamResultNodeSpamAudiosSpamAudio["StartTime"].asString(); + if(!spamResultNodeSpamAudiosSpamAudio["Suggestion"].isNull()) + spamAudioObject.suggestion = spamResultNodeSpamAudiosSpamAudio["Suggestion"].asString(); + if(!spamResultNodeSpamAudiosSpamAudio["Score"].isNull()) + spamAudioObject.score = spamResultNodeSpamAudiosSpamAudio["Score"].asString(); + if(!spamResultNodeSpamAudiosSpamAudio["Text"].isNull()) + spamAudioObject.text = spamResultNodeSpamAudiosSpamAudio["Text"].asString(); + if(!spamResultNodeSpamAudiosSpamAudio["Object"].isNull()) + spamAudioObject.object = spamResultNodeSpamAudiosSpamAudio["Object"].asString(); + jobListObject.result.spamResult.spamAudios.push_back(spamAudioObject); + } + auto allSpamOcrsNode = spamResultNode["SpamOcrs"]["SpamOcr"]; + for (auto spamResultNodeSpamOcrsSpamOcr : allSpamOcrsNode) + { + Job::Result::SpamResult::SpamOcr spamOcrObject; + if(!spamResultNodeSpamOcrsSpamOcr["Time"].isNull()) + spamOcrObject.time = spamResultNodeSpamOcrsSpamOcr["Time"].asString(); + if(!spamResultNodeSpamOcrsSpamOcr["Suggestion"].isNull()) + spamOcrObject.suggestion = spamResultNodeSpamOcrsSpamOcr["Suggestion"].asString(); + if(!spamResultNodeSpamOcrsSpamOcr["Score"].isNull()) + spamOcrObject.score = spamResultNodeSpamOcrsSpamOcr["Score"].asString(); + if(!spamResultNodeSpamOcrsSpamOcr["Text"].isNull()) + spamOcrObject.text = spamResultNodeSpamOcrsSpamOcr["Text"].asString(); + if(!spamResultNodeSpamOcrsSpamOcr["Object"].isNull()) + spamOcrObject.object = spamResultNodeSpamOcrsSpamOcr["Object"].asString(); + jobListObject.result.spamResult.spamOcrs.push_back(spamOcrObject); } auto contrabandResultNode = resultNode["ContrabandResult"]; auto allContrabandAudiosNode = contrabandResultNode["ContrabandAudios"]["ContrabandAudio"]; for (auto contrabandResultNodeContrabandAudiosContrabandAudio : allContrabandAudiosNode) { Job::Result::ContrabandResult::ContrabandAudio contrabandAudioObject; + if(!contrabandResultNodeContrabandAudiosContrabandAudio["EndTime"].isNull()) + contrabandAudioObject.endTime = contrabandResultNodeContrabandAudiosContrabandAudio["EndTime"].asString(); + if(!contrabandResultNodeContrabandAudiosContrabandAudio["StartTime"].isNull()) + contrabandAudioObject.startTime = contrabandResultNodeContrabandAudiosContrabandAudio["StartTime"].asString(); if(!contrabandResultNodeContrabandAudiosContrabandAudio["Suggestion"].isNull()) contrabandAudioObject.suggestion = contrabandResultNodeContrabandAudiosContrabandAudio["Suggestion"].asString(); if(!contrabandResultNodeContrabandAudiosContrabandAudio["Score"].isNull()) contrabandAudioObject.score = contrabandResultNodeContrabandAudiosContrabandAudio["Score"].asString(); - if(!contrabandResultNodeContrabandAudiosContrabandAudio["StartTime"].isNull()) - contrabandAudioObject.startTime = contrabandResultNodeContrabandAudiosContrabandAudio["StartTime"].asString(); - if(!contrabandResultNodeContrabandAudiosContrabandAudio["EndTime"].isNull()) - contrabandAudioObject.endTime = contrabandResultNodeContrabandAudiosContrabandAudio["EndTime"].asString(); if(!contrabandResultNodeContrabandAudiosContrabandAudio["Text"].isNull()) contrabandAudioObject.text = contrabandResultNodeContrabandAudiosContrabandAudio["Text"].asString(); if(!contrabandResultNodeContrabandAudiosContrabandAudio["Object"].isNull()) contrabandAudioObject.object = contrabandResultNodeContrabandAudiosContrabandAudio["Object"].asString(); jobListObject.result.contrabandResult.contrabandAudios.push_back(contrabandAudioObject); } + auto allContrabandOcrsNode = contrabandResultNode["ContrabandOcrs"]["ContrabandOcr"]; + for (auto contrabandResultNodeContrabandOcrsContrabandOcr : allContrabandOcrsNode) + { + Job::Result::ContrabandResult::ContrabandOcr contrabandOcrObject; + if(!contrabandResultNodeContrabandOcrsContrabandOcr["Time"].isNull()) + contrabandOcrObject.time = contrabandResultNodeContrabandOcrsContrabandOcr["Time"].asString(); + if(!contrabandResultNodeContrabandOcrsContrabandOcr["Suggestion"].isNull()) + contrabandOcrObject.suggestion = contrabandResultNodeContrabandOcrsContrabandOcr["Suggestion"].asString(); + if(!contrabandResultNodeContrabandOcrsContrabandOcr["Score"].isNull()) + contrabandOcrObject.score = contrabandResultNodeContrabandOcrsContrabandOcr["Score"].asString(); + if(!contrabandResultNodeContrabandOcrsContrabandOcr["Text"].isNull()) + contrabandOcrObject.text = contrabandResultNodeContrabandOcrsContrabandOcr["Text"].asString(); + if(!contrabandResultNodeContrabandOcrsContrabandOcr["Object"].isNull()) + contrabandOcrObject.object = contrabandResultNodeContrabandOcrsContrabandOcr["Object"].asString(); + jobListObject.result.contrabandResult.contrabandOcrs.push_back(contrabandOcrObject); + } auto allContrabandTextsNode = contrabandResultNode["ContrabandTexts"]["ContrabandText"]; for (auto contrabandResultNodeContrabandTextsContrabandText : allContrabandTextsNode) { @@ -529,68 +517,80 @@ void QueryMCJobListResult::parse(const std::string &payload) contrabandTextObject.text = contrabandResultNodeContrabandTextsContrabandText["Text"].asString(); jobListObject.result.contrabandResult.contrabandTexts.push_back(contrabandTextObject); } - auto allContrabandOcrsNode = contrabandResultNode["ContrabandOcrs"]["ContrabandOcr"]; - for (auto contrabandResultNodeContrabandOcrsContrabandOcr : allContrabandOcrsNode) + auto terrorismResultNode = resultNode["TerrorismResult"]; + auto allTerrorismOcrsNode = terrorismResultNode["TerrorismOcrs"]["TerrorismOcr"]; + for (auto terrorismResultNodeTerrorismOcrsTerrorismOcr : allTerrorismOcrsNode) { - Job::Result::ContrabandResult::ContrabandOcr contrabandOcrObject; - if(!contrabandResultNodeContrabandOcrsContrabandOcr["Suggestion"].isNull()) - contrabandOcrObject.suggestion = contrabandResultNodeContrabandOcrsContrabandOcr["Suggestion"].asString(); - if(!contrabandResultNodeContrabandOcrsContrabandOcr["Score"].isNull()) - contrabandOcrObject.score = contrabandResultNodeContrabandOcrsContrabandOcr["Score"].asString(); - if(!contrabandResultNodeContrabandOcrsContrabandOcr["Time"].isNull()) - contrabandOcrObject.time = contrabandResultNodeContrabandOcrsContrabandOcr["Time"].asString(); - if(!contrabandResultNodeContrabandOcrsContrabandOcr["Object"].isNull()) - contrabandOcrObject.object = contrabandResultNodeContrabandOcrsContrabandOcr["Object"].asString(); - if(!contrabandResultNodeContrabandOcrsContrabandOcr["Text"].isNull()) - contrabandOcrObject.text = contrabandResultNodeContrabandOcrsContrabandOcr["Text"].asString(); - jobListObject.result.contrabandResult.contrabandOcrs.push_back(contrabandOcrObject); + Job::Result::TerrorismResult::TerrorismOcr terrorismOcrObject; + if(!terrorismResultNodeTerrorismOcrsTerrorismOcr["Time"].isNull()) + terrorismOcrObject.time = terrorismResultNodeTerrorismOcrsTerrorismOcr["Time"].asString(); + if(!terrorismResultNodeTerrorismOcrsTerrorismOcr["Suggestion"].isNull()) + terrorismOcrObject.suggestion = terrorismResultNodeTerrorismOcrsTerrorismOcr["Suggestion"].asString(); + if(!terrorismResultNodeTerrorismOcrsTerrorismOcr["Score"].isNull()) + terrorismOcrObject.score = terrorismResultNodeTerrorismOcrsTerrorismOcr["Score"].asString(); + if(!terrorismResultNodeTerrorismOcrsTerrorismOcr["Text"].isNull()) + terrorismOcrObject.text = terrorismResultNodeTerrorismOcrsTerrorismOcr["Text"].asString(); + if(!terrorismResultNodeTerrorismOcrsTerrorismOcr["Object"].isNull()) + terrorismOcrObject.object = terrorismResultNodeTerrorismOcrsTerrorismOcr["Object"].asString(); + jobListObject.result.terrorismResult.terrorismOcrs.push_back(terrorismOcrObject); } - auto spamResultNode = resultNode["SpamResult"]; - auto allSpamAudiosNode = spamResultNode["SpamAudios"]["SpamAudio"]; - for (auto spamResultNodeSpamAudiosSpamAudio : allSpamAudiosNode) + auto allTerrorismAudiosNode = terrorismResultNode["TerrorismAudios"]["TerrorismAudio"]; + for (auto terrorismResultNodeTerrorismAudiosTerrorismAudio : allTerrorismAudiosNode) { - Job::Result::SpamResult::SpamAudio spamAudioObject; - if(!spamResultNodeSpamAudiosSpamAudio["Suggestion"].isNull()) - spamAudioObject.suggestion = spamResultNodeSpamAudiosSpamAudio["Suggestion"].asString(); - if(!spamResultNodeSpamAudiosSpamAudio["Score"].isNull()) - spamAudioObject.score = spamResultNodeSpamAudiosSpamAudio["Score"].asString(); - if(!spamResultNodeSpamAudiosSpamAudio["StartTime"].isNull()) - spamAudioObject.startTime = spamResultNodeSpamAudiosSpamAudio["StartTime"].asString(); - if(!spamResultNodeSpamAudiosSpamAudio["EndTime"].isNull()) - spamAudioObject.endTime = spamResultNodeSpamAudiosSpamAudio["EndTime"].asString(); - if(!spamResultNodeSpamAudiosSpamAudio["Text"].isNull()) - spamAudioObject.text = spamResultNodeSpamAudiosSpamAudio["Text"].asString(); - if(!spamResultNodeSpamAudiosSpamAudio["Object"].isNull()) - spamAudioObject.object = spamResultNodeSpamAudiosSpamAudio["Object"].asString(); - jobListObject.result.spamResult.spamAudios.push_back(spamAudioObject); + Job::Result::TerrorismResult::TerrorismAudio terrorismAudioObject; + if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["EndTime"].isNull()) + terrorismAudioObject.endTime = terrorismResultNodeTerrorismAudiosTerrorismAudio["EndTime"].asString(); + if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["StartTime"].isNull()) + terrorismAudioObject.startTime = terrorismResultNodeTerrorismAudiosTerrorismAudio["StartTime"].asString(); + if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["Suggestion"].isNull()) + terrorismAudioObject.suggestion = terrorismResultNodeTerrorismAudiosTerrorismAudio["Suggestion"].asString(); + if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["Score"].isNull()) + terrorismAudioObject.score = terrorismResultNodeTerrorismAudiosTerrorismAudio["Score"].asString(); + if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["Text"].isNull()) + terrorismAudioObject.text = terrorismResultNodeTerrorismAudiosTerrorismAudio["Text"].asString(); + if(!terrorismResultNodeTerrorismAudiosTerrorismAudio["Object"].isNull()) + terrorismAudioObject.object = terrorismResultNodeTerrorismAudiosTerrorismAudio["Object"].asString(); + jobListObject.result.terrorismResult.terrorismAudios.push_back(terrorismAudioObject); } - auto allSpamTextsNode = spamResultNode["SpamTexts"]["SpamText"]; - for (auto spamResultNodeSpamTextsSpamText : allSpamTextsNode) + auto allTerrorismVideosNode = terrorismResultNode["TerrorismVideos"]["TerrorismVideo"]; + for (auto terrorismResultNodeTerrorismVideosTerrorismVideo : allTerrorismVideosNode) { - Job::Result::SpamResult::SpamText spamTextObject; - if(!spamResultNodeSpamTextsSpamText["Suggestion"].isNull()) - spamTextObject.suggestion = spamResultNodeSpamTextsSpamText["Suggestion"].asString(); - if(!spamResultNodeSpamTextsSpamText["Score"].isNull()) - spamTextObject.score = spamResultNodeSpamTextsSpamText["Score"].asString(); - if(!spamResultNodeSpamTextsSpamText["Text"].isNull()) - spamTextObject.text = spamResultNodeSpamTextsSpamText["Text"].asString(); - jobListObject.result.spamResult.spamTexts.push_back(spamTextObject); + Job::Result::TerrorismResult::TerrorismVideo terrorismVideoObject; + if(!terrorismResultNodeTerrorismVideosTerrorismVideo["Time"].isNull()) + terrorismVideoObject.time = terrorismResultNodeTerrorismVideosTerrorismVideo["Time"].asString(); + if(!terrorismResultNodeTerrorismVideosTerrorismVideo["Suggestion"].isNull()) + terrorismVideoObject.suggestion = terrorismResultNodeTerrorismVideosTerrorismVideo["Suggestion"].asString(); + if(!terrorismResultNodeTerrorismVideosTerrorismVideo["Score"].isNull()) + terrorismVideoObject.score = terrorismResultNodeTerrorismVideosTerrorismVideo["Score"].asString(); + if(!terrorismResultNodeTerrorismVideosTerrorismVideo["Object"].isNull()) + terrorismVideoObject.object = terrorismResultNodeTerrorismVideosTerrorismVideo["Object"].asString(); + jobListObject.result.terrorismResult.terrorismVideos.push_back(terrorismVideoObject); } - auto allSpamOcrsNode = spamResultNode["SpamOcrs"]["SpamOcr"]; - for (auto spamResultNodeSpamOcrsSpamOcr : allSpamOcrsNode) + auto allTerrorismTextsNode = terrorismResultNode["TerrorismTexts"]["TerrorismText"]; + for (auto terrorismResultNodeTerrorismTextsTerrorismText : allTerrorismTextsNode) { - Job::Result::SpamResult::SpamOcr spamOcrObject; - if(!spamResultNodeSpamOcrsSpamOcr["Suggestion"].isNull()) - spamOcrObject.suggestion = spamResultNodeSpamOcrsSpamOcr["Suggestion"].asString(); - if(!spamResultNodeSpamOcrsSpamOcr["Score"].isNull()) - spamOcrObject.score = spamResultNodeSpamOcrsSpamOcr["Score"].asString(); - if(!spamResultNodeSpamOcrsSpamOcr["Time"].isNull()) - spamOcrObject.time = spamResultNodeSpamOcrsSpamOcr["Time"].asString(); - if(!spamResultNodeSpamOcrsSpamOcr["Object"].isNull()) - spamOcrObject.object = spamResultNodeSpamOcrsSpamOcr["Object"].asString(); - if(!spamResultNodeSpamOcrsSpamOcr["Text"].isNull()) - spamOcrObject.text = spamResultNodeSpamOcrsSpamOcr["Text"].asString(); - jobListObject.result.spamResult.spamOcrs.push_back(spamOcrObject); + Job::Result::TerrorismResult::TerrorismText terrorismTextObject; + if(!terrorismResultNodeTerrorismTextsTerrorismText["Suggestion"].isNull()) + terrorismTextObject.suggestion = terrorismResultNodeTerrorismTextsTerrorismText["Suggestion"].asString(); + if(!terrorismResultNodeTerrorismTextsTerrorismText["Score"].isNull()) + terrorismTextObject.score = terrorismResultNodeTerrorismTextsTerrorismText["Score"].asString(); + if(!terrorismResultNodeTerrorismTextsTerrorismText["Text"].isNull()) + terrorismTextObject.text = terrorismResultNodeTerrorismTextsTerrorismText["Text"].asString(); + jobListObject.result.terrorismResult.terrorismTexts.push_back(terrorismTextObject); + } + auto allTerrorismImagesNode = terrorismResultNode["TerrorismImages"]["TerrorismImage"]; + for (auto terrorismResultNodeTerrorismImagesTerrorismImage : allTerrorismImagesNode) + { + Job::Result::TerrorismResult::TerrorismImage terrorismImageObject; + if(!terrorismResultNodeTerrorismImagesTerrorismImage["Suggestion"].isNull()) + terrorismImageObject.suggestion = terrorismResultNodeTerrorismImagesTerrorismImage["Suggestion"].asString(); + if(!terrorismResultNodeTerrorismImagesTerrorismImage["Score"].isNull()) + terrorismImageObject.score = terrorismResultNodeTerrorismImagesTerrorismImage["Score"].asString(); + if(!terrorismResultNodeTerrorismImagesTerrorismImage["Url"].isNull()) + terrorismImageObject.url = terrorismResultNodeTerrorismImagesTerrorismImage["Url"].asString(); + if(!terrorismResultNodeTerrorismImagesTerrorismImage["Text"].isNull()) + terrorismImageObject.text = terrorismResultNodeTerrorismImagesTerrorismImage["Text"].asString(); + jobListObject.result.terrorismResult.terrorismImages.push_back(terrorismImageObject); } jobList_.push_back(jobListObject); } diff --git a/mts/src/model/QueryMCTemplateListRequest.cc b/mts/src/model/QueryMCTemplateListRequest.cc index 167c6e7fc..35fc23739 100644 --- a/mts/src/model/QueryMCTemplateListRequest.cc +++ b/mts/src/model/QueryMCTemplateListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryMCTemplateListRequest; - -QueryMCTemplateListRequest::QueryMCTemplateListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMCTemplateList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMCTemplateListRequest::~QueryMCTemplateListRequest() -{} - -long QueryMCTemplateListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMCTemplateListRequest; + +QueryMCTemplateListRequest::QueryMCTemplateListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMCTemplateList") { + setMethod(HttpRequest::Method::Post); } -void QueryMCTemplateListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryMCTemplateListRequest::~QueryMCTemplateListRequest() {} + +long QueryMCTemplateListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryMCTemplateListRequest::getTemplateIds()const -{ - return templateIds_; +void QueryMCTemplateListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMCTemplateListRequest::setTemplateIds(const std::string& templateIds) -{ - templateIds_ = templateIds; - setParameter("TemplateIds", templateIds); +std::string QueryMCTemplateListRequest::getTemplateIds() const { + return templateIds_; } -std::string QueryMCTemplateListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMCTemplateListRequest::setTemplateIds(const std::string &templateIds) { + templateIds_ = templateIds; + setParameter(std::string("TemplateIds"), templateIds); } -void QueryMCTemplateListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMCTemplateListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryMCTemplateListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMCTemplateListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMCTemplateListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMCTemplateListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMCTemplateListRequest::getOwnerId()const -{ - return ownerId_; +void QueryMCTemplateListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMCTemplateListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMCTemplateListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryMCTemplateListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMCTemplateListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMCTemplateListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMCTemplateListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryMCTemplateListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/QueryMCTemplateListResult.cc b/mts/src/model/QueryMCTemplateListResult.cc index ef4873682..69ca415c5 100644 --- a/mts/src/model/QueryMCTemplateListResult.cc +++ b/mts/src/model/QueryMCTemplateListResult.cc @@ -43,32 +43,32 @@ void QueryMCTemplateListResult::parse(const std::string &payload) for (auto valueTemplateListTemplate : allTemplateListNode) { _Template templateListObject; - if(!valueTemplateListTemplate["TemplateId"].isNull()) - templateListObject.templateId = valueTemplateListTemplate["TemplateId"].asString(); - if(!valueTemplateListTemplate["Name"].isNull()) - templateListObject.name = valueTemplateListTemplate["Name"].asString(); - if(!valueTemplateListTemplate["State"].isNull()) - templateListObject.state = valueTemplateListTemplate["State"].asString(); - if(!valueTemplateListTemplate["Porn"].isNull()) - templateListObject.porn = valueTemplateListTemplate["Porn"].asString(); - if(!valueTemplateListTemplate["Terrorism"].isNull()) - templateListObject.terrorism = valueTemplateListTemplate["Terrorism"].asString(); - if(!valueTemplateListTemplate["Politics"].isNull()) - templateListObject.politics = valueTemplateListTemplate["Politics"].asString(); - if(!valueTemplateListTemplate["Ad"].isNull()) - templateListObject.ad = valueTemplateListTemplate["Ad"].asString(); - if(!valueTemplateListTemplate["Qrcode"].isNull()) - templateListObject.qrcode = valueTemplateListTemplate["Qrcode"].asString(); - if(!valueTemplateListTemplate["Live"].isNull()) - templateListObject.live = valueTemplateListTemplate["Live"].asString(); if(!valueTemplateListTemplate["Logo"].isNull()) templateListObject.logo = valueTemplateListTemplate["Logo"].asString(); if(!valueTemplateListTemplate["Abuse"].isNull()) templateListObject.abuse = valueTemplateListTemplate["Abuse"].asString(); - if(!valueTemplateListTemplate["Contraband"].isNull()) - templateListObject.contraband = valueTemplateListTemplate["Contraband"].asString(); + if(!valueTemplateListTemplate["State"].isNull()) + templateListObject.state = valueTemplateListTemplate["State"].asString(); + if(!valueTemplateListTemplate["Terrorism"].isNull()) + templateListObject.terrorism = valueTemplateListTemplate["Terrorism"].asString(); + if(!valueTemplateListTemplate["Politics"].isNull()) + templateListObject.politics = valueTemplateListTemplate["Politics"].asString(); + if(!valueTemplateListTemplate["Qrcode"].isNull()) + templateListObject.qrcode = valueTemplateListTemplate["Qrcode"].asString(); + if(!valueTemplateListTemplate["Live"].isNull()) + templateListObject.live = valueTemplateListTemplate["Live"].asString(); if(!valueTemplateListTemplate["Spam"].isNull()) templateListObject.spam = valueTemplateListTemplate["Spam"].asString(); + if(!valueTemplateListTemplate["Contraband"].isNull()) + templateListObject.contraband = valueTemplateListTemplate["Contraband"].asString(); + if(!valueTemplateListTemplate["Ad"].isNull()) + templateListObject.ad = valueTemplateListTemplate["Ad"].asString(); + if(!valueTemplateListTemplate["Porn"].isNull()) + templateListObject.porn = valueTemplateListTemplate["Porn"].asString(); + if(!valueTemplateListTemplate["Name"].isNull()) + templateListObject.name = valueTemplateListTemplate["Name"].asString(); + if(!valueTemplateListTemplate["TemplateId"].isNull()) + templateListObject.templateId = valueTemplateListTemplate["TemplateId"].asString(); templateList_.push_back(templateListObject); } auto allNonExistTids = value["NonExistTids"]["String"]; diff --git a/mts/src/model/QueryMcuJobRequest.cc b/mts/src/model/QueryMcuJobRequest.cc index fca13d9d1..13398728c 100644 --- a/mts/src/model/QueryMcuJobRequest.cc +++ b/mts/src/model/QueryMcuJobRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryMcuJobRequest; - -QueryMcuJobRequest::QueryMcuJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMcuJob") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMcuJobRequest::~QueryMcuJobRequest() -{} - -long QueryMcuJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMcuJobRequest; + +QueryMcuJobRequest::QueryMcuJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMcuJob") { + setMethod(HttpRequest::Method::Post); } -void QueryMcuJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryMcuJobRequest::~QueryMcuJobRequest() {} + +long QueryMcuJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryMcuJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMcuJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMcuJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMcuJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryMcuJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMcuJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMcuJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMcuJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMcuJobRequest::getOwnerId()const -{ - return ownerId_; +void QueryMcuJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMcuJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMcuJobRequest::getOwnerId() const { + return ownerId_; } -std::string QueryMcuJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMcuJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMcuJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMcuJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryMcuJobRequest::getJobIds()const -{ - return jobIds_; +void QueryMcuJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryMcuJobRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryMcuJobRequest::getJobIds() const { + return jobIds_; +} + +void QueryMcuJobRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryMcuJobResult.cc b/mts/src/model/QueryMcuJobResult.cc index 1e7fb6001..24e41d836 100644 --- a/mts/src/model/QueryMcuJobResult.cc +++ b/mts/src/model/QueryMcuJobResult.cc @@ -45,112 +45,86 @@ void QueryMcuJobResult::parse(const std::string &payload) Job jobResultObject; if(!valueJobResultJob["JobId"].isNull()) jobResultObject.jobId = valueJobResultJob["JobId"].asString(); + if(!valueJobResultJob["Template"].isNull()) + jobResultObject._template = valueJobResultJob["Template"].asString(); if(!valueJobResultJob["UserData"].isNull()) jobResultObject.userData = valueJobResultJob["UserData"].asString(); if(!valueJobResultJob["TemplateId"].isNull()) jobResultObject.templateId = valueJobResultJob["TemplateId"].asString(); - if(!valueJobResultJob["Template"].isNull()) - jobResultObject._template = valueJobResultJob["Template"].asString(); - auto allOcrResultNode = allJobResultNode["OcrResult"]["Ocr"]; - for (auto allJobResultNodeOcrResultOcr : allOcrResultNode) - { - Job::Ocr ocrResultObject; - if(!allJobResultNodeOcrResultOcr["Time"].isNull()) - ocrResultObject.time = allJobResultNodeOcrResultOcr["Time"].asString(); - if(!allJobResultNodeOcrResultOcr["OcrText"].isNull()) - ocrResultObject.ocrText = allJobResultNodeOcrResultOcr["OcrText"].asString(); - if(!allJobResultNodeOcrResultOcr["ImageUrl"].isNull()) - ocrResultObject.imageUrl = allJobResultNodeOcrResultOcr["ImageUrl"].asString(); - if(!allJobResultNodeOcrResultOcr["ImageId"].isNull()) - ocrResultObject.imageId = allJobResultNodeOcrResultOcr["ImageId"].asString(); - jobResultObject.ocrResult.push_back(ocrResultObject); - } - auto allTagResultNode = allJobResultNode["TagResult"]["Tag"]; - for (auto allJobResultNodeTagResultTag : allTagResultNode) + auto allTagResultNode = valueJobResultJob["TagResult"]["Tag"]; + for (auto valueJobResultJobTagResultTag : allTagResultNode) { Job::Tag tagResultObject; - if(!allJobResultNodeTagResultTag["Time"].isNull()) - tagResultObject.time = allJobResultNodeTagResultTag["Time"].asString(); - if(!allJobResultNodeTagResultTag["ImageUrl"].isNull()) - tagResultObject.imageUrl = allJobResultNodeTagResultTag["ImageUrl"].asString(); - if(!allJobResultNodeTagResultTag["ImageId"].isNull()) - tagResultObject.imageId = allJobResultNodeTagResultTag["ImageId"].asString(); - auto allFrameTagInfosNode = allTagResultNode["FrameTagInfos"]["FrameTagInfo"]; - for (auto allTagResultNodeFrameTagInfosFrameTagInfo : allFrameTagInfosNode) + if(!valueJobResultJobTagResultTag["Time"].isNull()) + tagResultObject.time = valueJobResultJobTagResultTag["Time"].asString(); + if(!valueJobResultJobTagResultTag["ImageUrl"].isNull()) + tagResultObject.imageUrl = valueJobResultJobTagResultTag["ImageUrl"].asString(); + if(!valueJobResultJobTagResultTag["ImageId"].isNull()) + tagResultObject.imageId = valueJobResultJobTagResultTag["ImageId"].asString(); + auto allFrameTagInfosNode = valueJobResultJobTagResultTag["FrameTagInfos"]["FrameTagInfo"]; + for (auto valueJobResultJobTagResultTagFrameTagInfosFrameTagInfo : allFrameTagInfosNode) { Job::Tag::FrameTagInfo frameTagInfosObject; - if(!allTagResultNodeFrameTagInfosFrameTagInfo["Tag"].isNull()) - frameTagInfosObject.tag = allTagResultNodeFrameTagInfosFrameTagInfo["Tag"].asString(); - if(!allTagResultNodeFrameTagInfosFrameTagInfo["Score"].isNull()) - frameTagInfosObject.score = allTagResultNodeFrameTagInfosFrameTagInfo["Score"].asString(); - if(!allTagResultNodeFrameTagInfosFrameTagInfo["Category"].isNull()) - frameTagInfosObject.category = allTagResultNodeFrameTagInfosFrameTagInfo["Category"].asString(); + if(!valueJobResultJobTagResultTagFrameTagInfosFrameTagInfo["Score"].isNull()) + frameTagInfosObject.score = valueJobResultJobTagResultTagFrameTagInfosFrameTagInfo["Score"].asString(); + if(!valueJobResultJobTagResultTagFrameTagInfosFrameTagInfo["Category"].isNull()) + frameTagInfosObject.category = valueJobResultJobTagResultTagFrameTagInfosFrameTagInfo["Category"].asString(); + if(!valueJobResultJobTagResultTagFrameTagInfosFrameTagInfo["Tag"].isNull()) + frameTagInfosObject.tag = valueJobResultJobTagResultTagFrameTagInfosFrameTagInfo["Tag"].asString(); tagResultObject.frameTagInfos.push_back(frameTagInfosObject); } jobResultObject.tagResult.push_back(tagResultObject); } - auto allFaceResultNode = allJobResultNode["FaceResult"]["Face"]; - for (auto allJobResultNodeFaceResultFace : allFaceResultNode) + auto allOcrResultNode = valueJobResultJob["OcrResult"]["Ocr"]; + for (auto valueJobResultJobOcrResultOcr : allOcrResultNode) + { + Job::Ocr ocrResultObject; + if(!valueJobResultJobOcrResultOcr["Time"].isNull()) + ocrResultObject.time = valueJobResultJobOcrResultOcr["Time"].asString(); + if(!valueJobResultJobOcrResultOcr["ImageUrl"].isNull()) + ocrResultObject.imageUrl = valueJobResultJobOcrResultOcr["ImageUrl"].asString(); + if(!valueJobResultJobOcrResultOcr["OcrText"].isNull()) + ocrResultObject.ocrText = valueJobResultJobOcrResultOcr["OcrText"].asString(); + if(!valueJobResultJobOcrResultOcr["ImageId"].isNull()) + ocrResultObject.imageId = valueJobResultJobOcrResultOcr["ImageId"].asString(); + jobResultObject.ocrResult.push_back(ocrResultObject); + } + auto allSubTaskInfoNode = valueJobResultJob["SubTaskInfo"]["SubTask"]; + for (auto valueJobResultJobSubTaskInfoSubTask : allSubTaskInfoNode) + { + Job::SubTask subTaskInfoObject; + if(!valueJobResultJobSubTaskInfoSubTask["Type"].isNull()) + subTaskInfoObject.type = valueJobResultJobSubTaskInfoSubTask["Type"].asString(); + if(!valueJobResultJobSubTaskInfoSubTask["Code"].isNull()) + subTaskInfoObject.code = valueJobResultJobSubTaskInfoSubTask["Code"].asString(); + if(!valueJobResultJobSubTaskInfoSubTask["Message"].isNull()) + subTaskInfoObject.message = valueJobResultJobSubTaskInfoSubTask["Message"].asString(); + jobResultObject.subTaskInfo.push_back(subTaskInfoObject); + } + auto allFaceResultNode = valueJobResultJob["FaceResult"]["Face"]; + for (auto valueJobResultJobFaceResultFace : allFaceResultNode) { Job::Face faceResultObject; - if(!allJobResultNodeFaceResultFace["Time"].isNull()) - faceResultObject.time = allJobResultNodeFaceResultFace["Time"].asString(); - if(!allJobResultNodeFaceResultFace["ImageUrl"].isNull()) - faceResultObject.imageUrl = allJobResultNodeFaceResultFace["ImageUrl"].asString(); - if(!allJobResultNodeFaceResultFace["ImageId"].isNull()) - faceResultObject.imageId = allJobResultNodeFaceResultFace["ImageId"].asString(); - auto allCelebritiesNode = allFaceResultNode["Celebrities"]["Celebrity"]; - for (auto allFaceResultNodeCelebritiesCelebrity : allCelebritiesNode) + if(!valueJobResultJobFaceResultFace["Time"].isNull()) + faceResultObject.time = valueJobResultJobFaceResultFace["Time"].asString(); + if(!valueJobResultJobFaceResultFace["ImageUrl"].isNull()) + faceResultObject.imageUrl = valueJobResultJobFaceResultFace["ImageUrl"].asString(); + if(!valueJobResultJobFaceResultFace["ImageId"].isNull()) + faceResultObject.imageId = valueJobResultJobFaceResultFace["ImageId"].asString(); + auto allCelebritiesNode = valueJobResultJobFaceResultFace["Celebrities"]["Celebrity"]; + for (auto valueJobResultJobFaceResultFaceCelebritiesCelebrity : allCelebritiesNode) { Job::Face::Celebrity celebritiesObject; - if(!allFaceResultNodeCelebritiesCelebrity["Name"].isNull()) - celebritiesObject.name = allFaceResultNodeCelebritiesCelebrity["Name"].asString(); - if(!allFaceResultNodeCelebritiesCelebrity["Score"].isNull()) - celebritiesObject.score = allFaceResultNodeCelebritiesCelebrity["Score"].asString(); - if(!allFaceResultNodeCelebritiesCelebrity["Target"].isNull()) - celebritiesObject.target = allFaceResultNodeCelebritiesCelebrity["Target"].asString(); + if(!valueJobResultJobFaceResultFaceCelebritiesCelebrity["Score"].isNull()) + celebritiesObject.score = valueJobResultJobFaceResultFaceCelebritiesCelebrity["Score"].asString(); + if(!valueJobResultJobFaceResultFaceCelebritiesCelebrity["Name"].isNull()) + celebritiesObject.name = valueJobResultJobFaceResultFaceCelebritiesCelebrity["Name"].asString(); + if(!valueJobResultJobFaceResultFaceCelebritiesCelebrity["Target"].isNull()) + celebritiesObject.target = valueJobResultJobFaceResultFaceCelebritiesCelebrity["Target"].asString(); faceResultObject.celebrities.push_back(celebritiesObject); } jobResultObject.faceResult.push_back(faceResultObject); } - auto allSubTaskInfoNode = allJobResultNode["SubTaskInfo"]["SubTask"]; - for (auto allJobResultNodeSubTaskInfoSubTask : allSubTaskInfoNode) - { - Job::SubTask subTaskInfoObject; - if(!allJobResultNodeSubTaskInfoSubTask["Type"].isNull()) - subTaskInfoObject.type = allJobResultNodeSubTaskInfoSubTask["Type"].asString(); - if(!allJobResultNodeSubTaskInfoSubTask["Code"].isNull()) - subTaskInfoObject.code = allJobResultNodeSubTaskInfoSubTask["Code"].asString(); - if(!allJobResultNodeSubTaskInfoSubTask["Message"].isNull()) - subTaskInfoObject.message = allJobResultNodeSubTaskInfoSubTask["Message"].asString(); - jobResultObject.subTaskInfo.push_back(subTaskInfoObject); - } - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - jobResultObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - jobResultObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - jobResultObject.input.object = inputNode["Object"].asString(); - auto asrResultNode = value["AsrResult"]; - if(!asrResultNode["Duration"].isNull()) - jobResultObject.asrResult.duration = asrResultNode["Duration"].asString(); - auto allAsrTextListNode = asrResultNode["AsrTextList"]["AsrText"]; - for (auto asrResultNodeAsrTextListAsrText : allAsrTextListNode) - { - Job::AsrResult::AsrText asrTextObject; - if(!asrResultNodeAsrTextListAsrText["StartTime"].isNull()) - asrTextObject.startTime = std::stoi(asrResultNodeAsrTextListAsrText["StartTime"].asString()); - if(!asrResultNodeAsrTextListAsrText["EndTime"].isNull()) - asrTextObject.endTime = asrResultNodeAsrTextListAsrText["EndTime"].asString(); - if(!asrResultNodeAsrTextListAsrText["ChannelId"].isNull()) - asrTextObject.channelId = asrResultNodeAsrTextListAsrText["ChannelId"].asString(); - if(!asrResultNodeAsrTextListAsrText["SpeechRate"].isNull()) - asrTextObject.speechRate = asrResultNodeAsrTextListAsrText["SpeechRate"].asString(); - if(!asrResultNodeAsrTextListAsrText["Text"].isNull()) - asrTextObject.text = asrResultNodeAsrTextListAsrText["Text"].asString(); - jobResultObject.asrResult.asrTextList.push_back(asrTextObject); - } auto categoryResultNode = value["CategoryResult"]; if(!categoryResultNode["Details"].isNull()) jobResultObject.categoryResult.details = categoryResultNode["Details"].asString(); @@ -158,12 +132,38 @@ void QueryMcuJobResult::parse(const std::string &payload) for (auto categoryResultNodeCategoriesCategory : allCategoriesNode) { Job::CategoryResult::Category categoryObject; - if(!categoryResultNodeCategoriesCategory["Label"].isNull()) - categoryObject.label = categoryResultNodeCategoriesCategory["Label"].asString(); if(!categoryResultNodeCategoriesCategory["Score"].isNull()) categoryObject.score = categoryResultNodeCategoriesCategory["Score"].asString(); + if(!categoryResultNodeCategoriesCategory["Label"].isNull()) + categoryObject.label = categoryResultNodeCategoriesCategory["Label"].asString(); jobResultObject.categoryResult.categories.push_back(categoryObject); } + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + jobResultObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + jobResultObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + jobResultObject.input.bucket = inputNode["Bucket"].asString(); + auto asrResultNode = value["AsrResult"]; + if(!asrResultNode["Duration"].isNull()) + jobResultObject.asrResult.duration = asrResultNode["Duration"].asString(); + auto allAsrTextListNode = asrResultNode["AsrTextList"]["AsrText"]; + for (auto asrResultNodeAsrTextListAsrText : allAsrTextListNode) + { + Job::AsrResult::AsrText asrTextObject; + if(!asrResultNodeAsrTextListAsrText["EndTime"].isNull()) + asrTextObject.endTime = asrResultNodeAsrTextListAsrText["EndTime"].asString(); + if(!asrResultNodeAsrTextListAsrText["StartTime"].isNull()) + asrTextObject.startTime = std::stoi(asrResultNodeAsrTextListAsrText["StartTime"].asString()); + if(!asrResultNodeAsrTextListAsrText["ChannelId"].isNull()) + asrTextObject.channelId = asrResultNodeAsrTextListAsrText["ChannelId"].asString(); + if(!asrResultNodeAsrTextListAsrText["Text"].isNull()) + asrTextObject.text = asrResultNodeAsrTextListAsrText["Text"].asString(); + if(!asrResultNodeAsrTextListAsrText["SpeechRate"].isNull()) + asrTextObject.speechRate = asrResultNodeAsrTextListAsrText["SpeechRate"].asString(); + jobResultObject.asrResult.asrTextList.push_back(asrTextObject); + } jobResult_.push_back(jobResultObject); } auto allNonExistJobIds = value["NonExistJobIds"]["String"]; diff --git a/mts/src/model/QueryMcuTemplateRequest.cc b/mts/src/model/QueryMcuTemplateRequest.cc index efbfc2774..a2e15ffb2 100644 --- a/mts/src/model/QueryMcuTemplateRequest.cc +++ b/mts/src/model/QueryMcuTemplateRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryMcuTemplateRequest; - -QueryMcuTemplateRequest::QueryMcuTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMcuTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMcuTemplateRequest::~QueryMcuTemplateRequest() -{} - -long QueryMcuTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMcuTemplateRequest; + +QueryMcuTemplateRequest::QueryMcuTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMcuTemplate") { + setMethod(HttpRequest::Method::Post); } -void QueryMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryMcuTemplateRequest::~QueryMcuTemplateRequest() {} + +long QueryMcuTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryMcuTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMcuTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryMcuTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMcuTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMcuTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMcuTemplateRequest::getOwnerId()const -{ - return ownerId_; +void QueryMcuTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMcuTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMcuTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string QueryMcuTemplateRequest::getTemplateId()const -{ - return templateId_; +void QueryMcuTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMcuTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string QueryMcuTemplateRequest::getTemplateId() const { + return templateId_; } -std::string QueryMcuTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMcuTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void QueryMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMcuTemplateRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryMcuTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/QueryMcuTemplateResult.cc b/mts/src/model/QueryMcuTemplateResult.cc index bded4c73f..cc138aa56 100644 --- a/mts/src/model/QueryMcuTemplateResult.cc +++ b/mts/src/model/QueryMcuTemplateResult.cc @@ -43,10 +43,10 @@ void QueryMcuTemplateResult::parse(const std::string &payload) for (auto valueTemplatesJob : allTemplatesNode) { Job templatesObject; - if(!valueTemplatesJob["TemplateId"].isNull()) - templatesObject.templateId = valueTemplatesJob["TemplateId"].asString(); if(!valueTemplatesJob["Template"].isNull()) templatesObject._template = valueTemplatesJob["Template"].asString(); + if(!valueTemplatesJob["TemplateId"].isNull()) + templatesObject.templateId = valueTemplatesJob["TemplateId"].asString(); templates_.push_back(templatesObject); } diff --git a/mts/src/model/QueryMediaCensorJobDetailRequest.cc b/mts/src/model/QueryMediaCensorJobDetailRequest.cc index d48d58fac..53bf99e6d 100644 --- a/mts/src/model/QueryMediaCensorJobDetailRequest.cc +++ b/mts/src/model/QueryMediaCensorJobDetailRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::QueryMediaCensorJobDetailRequest; - -QueryMediaCensorJobDetailRequest::QueryMediaCensorJobDetailRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMediaCensorJobDetail") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMediaCensorJobDetailRequest::~QueryMediaCensorJobDetailRequest() -{} - -long QueryMediaCensorJobDetailRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMediaCensorJobDetailRequest; + +QueryMediaCensorJobDetailRequest::QueryMediaCensorJobDetailRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMediaCensorJobDetail") { + setMethod(HttpRequest::Method::Post); } -void QueryMediaCensorJobDetailRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryMediaCensorJobDetailRequest::~QueryMediaCensorJobDetailRequest() {} + +long QueryMediaCensorJobDetailRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryMediaCensorJobDetailRequest::getNextPageToken()const -{ - return nextPageToken_; +void QueryMediaCensorJobDetailRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMediaCensorJobDetailRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); +std::string QueryMediaCensorJobDetailRequest::getNextPageToken() const { + return nextPageToken_; } -std::string QueryMediaCensorJobDetailRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMediaCensorJobDetailRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); } -void QueryMediaCensorJobDetailRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMediaCensorJobDetailRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryMediaCensorJobDetailRequest::getJobId()const -{ - return jobId_; +void QueryMediaCensorJobDetailRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryMediaCensorJobDetailRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string QueryMediaCensorJobDetailRequest::getJobId() const { + return jobId_; } -std::string QueryMediaCensorJobDetailRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMediaCensorJobDetailRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void QueryMediaCensorJobDetailRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMediaCensorJobDetailRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryMediaCensorJobDetailRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMediaCensorJobDetailRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMediaCensorJobDetailRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMediaCensorJobDetailRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMediaCensorJobDetailRequest::getMaximumPageSize()const -{ - return maximumPageSize_; +void QueryMediaCensorJobDetailRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMediaCensorJobDetailRequest::setMaximumPageSize(long maximumPageSize) -{ - maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); +long QueryMediaCensorJobDetailRequest::getMaximumPageSize() const { + return maximumPageSize_; } -long QueryMediaCensorJobDetailRequest::getOwnerId()const -{ - return ownerId_; +void QueryMediaCensorJobDetailRequest::setMaximumPageSize(long maximumPageSize) { + maximumPageSize_ = maximumPageSize; + setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize)); } -void QueryMediaCensorJobDetailRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMediaCensorJobDetailRequest::getOwnerId() const { + return ownerId_; +} + +void QueryMediaCensorJobDetailRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/QueryMediaCensorJobDetailResult.cc b/mts/src/model/QueryMediaCensorJobDetailResult.cc index e25f66688..47d2d9549 100644 --- a/mts/src/model/QueryMediaCensorJobDetailResult.cc +++ b/mts/src/model/QueryMediaCensorJobDetailResult.cc @@ -40,137 +40,137 @@ void QueryMediaCensorJobDetailResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto mediaCensorJobDetailNode = value["MediaCensorJobDetail"]; - if(!mediaCensorJobDetailNode["JobId"].isNull()) - mediaCensorJobDetail_.jobId = mediaCensorJobDetailNode["JobId"].asString(); - if(!mediaCensorJobDetailNode["UserData"].isNull()) - mediaCensorJobDetail_.userData = mediaCensorJobDetailNode["UserData"].asString(); - if(!mediaCensorJobDetailNode["PipelineId"].isNull()) - mediaCensorJobDetail_.pipelineId = mediaCensorJobDetailNode["PipelineId"].asString(); - if(!mediaCensorJobDetailNode["State"].isNull()) - mediaCensorJobDetail_.state = mediaCensorJobDetailNode["State"].asString(); - if(!mediaCensorJobDetailNode["Code"].isNull()) - mediaCensorJobDetail_.code = mediaCensorJobDetailNode["Code"].asString(); - if(!mediaCensorJobDetailNode["Suggestion"].isNull()) - mediaCensorJobDetail_.suggestion = mediaCensorJobDetailNode["Suggestion"].asString(); - if(!mediaCensorJobDetailNode["Message"].isNull()) - mediaCensorJobDetail_.message = mediaCensorJobDetailNode["Message"].asString(); if(!mediaCensorJobDetailNode["CreationTime"].isNull()) mediaCensorJobDetail_.creationTime = mediaCensorJobDetailNode["CreationTime"].asString(); if(!mediaCensorJobDetailNode["FinishTime"].isNull()) mediaCensorJobDetail_.finishTime = mediaCensorJobDetailNode["FinishTime"].asString(); + if(!mediaCensorJobDetailNode["Suggestion"].isNull()) + mediaCensorJobDetail_.suggestion = mediaCensorJobDetailNode["Suggestion"].asString(); + if(!mediaCensorJobDetailNode["State"].isNull()) + mediaCensorJobDetail_.state = mediaCensorJobDetailNode["State"].asString(); + if(!mediaCensorJobDetailNode["Message"].isNull()) + mediaCensorJobDetail_.message = mediaCensorJobDetailNode["Message"].asString(); + if(!mediaCensorJobDetailNode["JobId"].isNull()) + mediaCensorJobDetail_.jobId = mediaCensorJobDetailNode["JobId"].asString(); + if(!mediaCensorJobDetailNode["UserData"].isNull()) + mediaCensorJobDetail_.userData = mediaCensorJobDetailNode["UserData"].asString(); + if(!mediaCensorJobDetailNode["Code"].isNull()) + mediaCensorJobDetail_.code = mediaCensorJobDetailNode["Code"].asString(); + if(!mediaCensorJobDetailNode["PipelineId"].isNull()) + mediaCensorJobDetail_.pipelineId = mediaCensorJobDetailNode["PipelineId"].asString(); auto allCoverImageCensorResultsNode = mediaCensorJobDetailNode["CoverImageCensorResults"]["CoverImageCensorResult"]; for (auto mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResult : allCoverImageCensorResultsNode) { MediaCensorJobDetail::CoverImageCensorResult coverImageCensorResultObject; + if(!mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResult["Object"].isNull()) + coverImageCensorResultObject.object = mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResult["Object"].asString(); if(!mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResult["Location"].isNull()) coverImageCensorResultObject.location = mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResult["Location"].asString(); if(!mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResult["Bucket"].isNull()) coverImageCensorResultObject.bucket = mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResult["Bucket"].asString(); - if(!mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResult["Object"].isNull()) - coverImageCensorResultObject.object = mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResult["Object"].asString(); - auto allResultsNode = allCoverImageCensorResultsNode["Results"]["Result"]; - for (auto allCoverImageCensorResultsNodeResultsResult : allResultsNode) + auto allResultsNode = mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResult["Results"]["Result"]; + for (auto mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResultResultsResult : allResultsNode) { MediaCensorJobDetail::CoverImageCensorResult::Result resultsObject; - if(!allCoverImageCensorResultsNodeResultsResult["Rate"].isNull()) - resultsObject.rate = allCoverImageCensorResultsNodeResultsResult["Rate"].asString(); - if(!allCoverImageCensorResultsNodeResultsResult["Scene"].isNull()) - resultsObject.scene = allCoverImageCensorResultsNodeResultsResult["Scene"].asString(); - if(!allCoverImageCensorResultsNodeResultsResult["Label"].isNull()) - resultsObject.label = allCoverImageCensorResultsNodeResultsResult["Label"].asString(); - if(!allCoverImageCensorResultsNodeResultsResult["Suggestion"].isNull()) - resultsObject.suggestion = allCoverImageCensorResultsNodeResultsResult["Suggestion"].asString(); + if(!mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResultResultsResult["Suggestion"].isNull()) + resultsObject.suggestion = mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResultResultsResult["Suggestion"].asString(); + if(!mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResultResultsResult["Label"].isNull()) + resultsObject.label = mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResultResultsResult["Label"].asString(); + if(!mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResultResultsResult["Scene"].isNull()) + resultsObject.scene = mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResultResultsResult["Scene"].asString(); + if(!mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResultResultsResult["Rate"].isNull()) + resultsObject.rate = mediaCensorJobDetailNodeCoverImageCensorResultsCoverImageCensorResultResultsResult["Rate"].asString(); coverImageCensorResultObject.results.push_back(resultsObject); } mediaCensorJobDetail_.coverImageCensorResults.push_back(coverImageCensorResultObject); } auto titleCensorResultNode = mediaCensorJobDetailNode["TitleCensorResult"]; - if(!titleCensorResultNode["Rate"].isNull()) - mediaCensorJobDetail_.titleCensorResult.rate = titleCensorResultNode["Rate"].asString(); - if(!titleCensorResultNode["Scene"].isNull()) - mediaCensorJobDetail_.titleCensorResult.scene = titleCensorResultNode["Scene"].asString(); - if(!titleCensorResultNode["Label"].isNull()) - mediaCensorJobDetail_.titleCensorResult.label = titleCensorResultNode["Label"].asString(); if(!titleCensorResultNode["Suggestion"].isNull()) mediaCensorJobDetail_.titleCensorResult.suggestion = titleCensorResultNode["Suggestion"].asString(); - auto descCensorResultNode = mediaCensorJobDetailNode["DescCensorResult"]; - if(!descCensorResultNode["Rate"].isNull()) - mediaCensorJobDetail_.descCensorResult.rate = descCensorResultNode["Rate"].asString(); - if(!descCensorResultNode["Scene"].isNull()) - mediaCensorJobDetail_.descCensorResult.scene = descCensorResultNode["Scene"].asString(); - if(!descCensorResultNode["Label"].isNull()) - mediaCensorJobDetail_.descCensorResult.label = descCensorResultNode["Label"].asString(); - if(!descCensorResultNode["Suggestion"].isNull()) - mediaCensorJobDetail_.descCensorResult.suggestion = descCensorResultNode["Suggestion"].asString(); - auto barrageCensorResultNode = mediaCensorJobDetailNode["BarrageCensorResult"]; - if(!barrageCensorResultNode["Rate"].isNull()) - mediaCensorJobDetail_.barrageCensorResult.rate = barrageCensorResultNode["Rate"].asString(); - if(!barrageCensorResultNode["Scene"].isNull()) - mediaCensorJobDetail_.barrageCensorResult.scene = barrageCensorResultNode["Scene"].asString(); - if(!barrageCensorResultNode["Label"].isNull()) - mediaCensorJobDetail_.barrageCensorResult.label = barrageCensorResultNode["Label"].asString(); - if(!barrageCensorResultNode["Suggestion"].isNull()) - mediaCensorJobDetail_.barrageCensorResult.suggestion = barrageCensorResultNode["Suggestion"].asString(); + if(!titleCensorResultNode["Label"].isNull()) + mediaCensorJobDetail_.titleCensorResult.label = titleCensorResultNode["Label"].asString(); + if(!titleCensorResultNode["Scene"].isNull()) + mediaCensorJobDetail_.titleCensorResult.scene = titleCensorResultNode["Scene"].asString(); + if(!titleCensorResultNode["Rate"].isNull()) + mediaCensorJobDetail_.titleCensorResult.rate = titleCensorResultNode["Rate"].asString(); auto inputNode = mediaCensorJobDetailNode["Input"]; - if(!inputNode["Bucket"].isNull()) - mediaCensorJobDetail_.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - mediaCensorJobDetail_.input.location = inputNode["Location"].asString(); if(!inputNode["Object"].isNull()) mediaCensorJobDetail_.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + mediaCensorJobDetail_.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + mediaCensorJobDetail_.input.bucket = inputNode["Bucket"].asString(); + auto barrageCensorResultNode = mediaCensorJobDetailNode["BarrageCensorResult"]; + if(!barrageCensorResultNode["Suggestion"].isNull()) + mediaCensorJobDetail_.barrageCensorResult.suggestion = barrageCensorResultNode["Suggestion"].asString(); + if(!barrageCensorResultNode["Label"].isNull()) + mediaCensorJobDetail_.barrageCensorResult.label = barrageCensorResultNode["Label"].asString(); + if(!barrageCensorResultNode["Scene"].isNull()) + mediaCensorJobDetail_.barrageCensorResult.scene = barrageCensorResultNode["Scene"].asString(); + if(!barrageCensorResultNode["Rate"].isNull()) + mediaCensorJobDetail_.barrageCensorResult.rate = barrageCensorResultNode["Rate"].asString(); + auto descCensorResultNode = mediaCensorJobDetailNode["DescCensorResult"]; + if(!descCensorResultNode["Suggestion"].isNull()) + mediaCensorJobDetail_.descCensorResult.suggestion = descCensorResultNode["Suggestion"].asString(); + if(!descCensorResultNode["Label"].isNull()) + mediaCensorJobDetail_.descCensorResult.label = descCensorResultNode["Label"].asString(); + if(!descCensorResultNode["Scene"].isNull()) + mediaCensorJobDetail_.descCensorResult.scene = descCensorResultNode["Scene"].asString(); + if(!descCensorResultNode["Rate"].isNull()) + mediaCensorJobDetail_.descCensorResult.rate = descCensorResultNode["Rate"].asString(); auto videoCensorConfigNode = mediaCensorJobDetailNode["VideoCensorConfig"]; - if(!videoCensorConfigNode["BizType"].isNull()) - mediaCensorJobDetail_.videoCensorConfig.bizType = videoCensorConfigNode["BizType"].asString(); if(!videoCensorConfigNode["VideoCensor"].isNull()) mediaCensorJobDetail_.videoCensorConfig.videoCensor = videoCensorConfigNode["VideoCensor"].asString(); + if(!videoCensorConfigNode["BizType"].isNull()) + mediaCensorJobDetail_.videoCensorConfig.bizType = videoCensorConfigNode["BizType"].asString(); auto outputFileNode = videoCensorConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - mediaCensorJobDetail_.videoCensorConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - mediaCensorJobDetail_.videoCensorConfig.outputFile.location = outputFileNode["Location"].asString(); if(!outputFileNode["Object"].isNull()) mediaCensorJobDetail_.videoCensorConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + mediaCensorJobDetail_.videoCensorConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + mediaCensorJobDetail_.videoCensorConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); auto vensorCensorResultNode = mediaCensorJobDetailNode["VensorCensorResult"]; if(!vensorCensorResultNode["NextPageToken"].isNull()) mediaCensorJobDetail_.vensorCensorResult.nextPageToken = vensorCensorResultNode["NextPageToken"].asString(); - auto allCensorResultsNode = vensorCensorResultNode["CensorResults"]["CensorResult"]; - for (auto vensorCensorResultNodeCensorResultsCensorResult : allCensorResultsNode) - { - MediaCensorJobDetail::VensorCensorResult::CensorResult censorResultObject; - if(!vensorCensorResultNodeCensorResultsCensorResult["Rate"].isNull()) - censorResultObject.rate = vensorCensorResultNodeCensorResultsCensorResult["Rate"].asString(); - if(!vensorCensorResultNodeCensorResultsCensorResult["Scene"].isNull()) - censorResultObject.scene = vensorCensorResultNodeCensorResultsCensorResult["Scene"].asString(); - if(!vensorCensorResultNodeCensorResultsCensorResult["Label"].isNull()) - censorResultObject.label = vensorCensorResultNodeCensorResultsCensorResult["Label"].asString(); - if(!vensorCensorResultNodeCensorResultsCensorResult["Suggestion"].isNull()) - censorResultObject.suggestion = vensorCensorResultNodeCensorResultsCensorResult["Suggestion"].asString(); - mediaCensorJobDetail_.vensorCensorResult.censorResults.push_back(censorResultObject); - } auto allVideoTimelinesNode = vensorCensorResultNode["VideoTimelines"]["VideoTimeline"]; for (auto vensorCensorResultNodeVideoTimelinesVideoTimeline : allVideoTimelinesNode) { MediaCensorJobDetail::VensorCensorResult::VideoTimeline videoTimelineObject; - if(!vensorCensorResultNodeVideoTimelinesVideoTimeline["Object"].isNull()) - videoTimelineObject.object = vensorCensorResultNodeVideoTimelinesVideoTimeline["Object"].asString(); if(!vensorCensorResultNodeVideoTimelinesVideoTimeline["Timestamp"].isNull()) videoTimelineObject.timestamp = vensorCensorResultNodeVideoTimelinesVideoTimeline["Timestamp"].asString(); - auto allCensorResults1Node = allVideoTimelinesNode["CensorResults"]["CensorResult"]; - for (auto allVideoTimelinesNodeCensorResultsCensorResult : allCensorResults1Node) + if(!vensorCensorResultNodeVideoTimelinesVideoTimeline["Object"].isNull()) + videoTimelineObject.object = vensorCensorResultNodeVideoTimelinesVideoTimeline["Object"].asString(); + auto allCensorResults1Node = vensorCensorResultNodeVideoTimelinesVideoTimeline["CensorResults"]["CensorResult"]; + for (auto vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult : allCensorResults1Node) { - MediaCensorJobDetail::VensorCensorResult::VideoTimeline::CensorResult2 censorResults1Object; - if(!allVideoTimelinesNodeCensorResultsCensorResult["Rate"].isNull()) - censorResults1Object.rate = allVideoTimelinesNodeCensorResultsCensorResult["Rate"].asString(); - if(!allVideoTimelinesNodeCensorResultsCensorResult["Scene"].isNull()) - censorResults1Object.scene = allVideoTimelinesNodeCensorResultsCensorResult["Scene"].asString(); - if(!allVideoTimelinesNodeCensorResultsCensorResult["Label"].isNull()) - censorResults1Object.label = allVideoTimelinesNodeCensorResultsCensorResult["Label"].asString(); - if(!allVideoTimelinesNodeCensorResultsCensorResult["Suggestion"].isNull()) - censorResults1Object.suggestion = allVideoTimelinesNodeCensorResultsCensorResult["Suggestion"].asString(); + MediaCensorJobDetail::VensorCensorResult::VideoTimeline::CensorResult censorResults1Object; + if(!vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Suggestion"].isNull()) + censorResults1Object.suggestion = vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Suggestion"].asString(); + if(!vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Label"].isNull()) + censorResults1Object.label = vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Label"].asString(); + if(!vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Scene"].isNull()) + censorResults1Object.scene = vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Scene"].asString(); + if(!vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Rate"].isNull()) + censorResults1Object.rate = vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Rate"].asString(); videoTimelineObject.censorResults1.push_back(censorResults1Object); } mediaCensorJobDetail_.vensorCensorResult.videoTimelines.push_back(videoTimelineObject); } + auto allCensorResultsNode = vensorCensorResultNode["CensorResults"]["CensorResult"]; + for (auto vensorCensorResultNodeCensorResultsCensorResult : allCensorResultsNode) + { + MediaCensorJobDetail::VensorCensorResult::CensorResult2 censorResult2Object; + if(!vensorCensorResultNodeCensorResultsCensorResult["Suggestion"].isNull()) + censorResult2Object.suggestion = vensorCensorResultNodeCensorResultsCensorResult["Suggestion"].asString(); + if(!vensorCensorResultNodeCensorResultsCensorResult["Label"].isNull()) + censorResult2Object.label = vensorCensorResultNodeCensorResultsCensorResult["Label"].asString(); + if(!vensorCensorResultNodeCensorResultsCensorResult["Scene"].isNull()) + censorResult2Object.scene = vensorCensorResultNodeCensorResultsCensorResult["Scene"].asString(); + if(!vensorCensorResultNodeCensorResultsCensorResult["Rate"].isNull()) + censorResult2Object.rate = vensorCensorResultNodeCensorResultsCensorResult["Rate"].asString(); + mediaCensorJobDetail_.vensorCensorResult.censorResults.push_back(censorResult2Object); + } } diff --git a/mts/src/model/QueryMediaCensorJobListRequest.cc b/mts/src/model/QueryMediaCensorJobListRequest.cc index 4c3acd53b..f6d7cc04e 100644 --- a/mts/src/model/QueryMediaCensorJobListRequest.cc +++ b/mts/src/model/QueryMediaCensorJobListRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Mts::Model::QueryMediaCensorJobListRequest; - -QueryMediaCensorJobListRequest::QueryMediaCensorJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMediaCensorJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMediaCensorJobListRequest::~QueryMediaCensorJobListRequest() -{} - -long QueryMediaCensorJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMediaCensorJobListRequest; + +QueryMediaCensorJobListRequest::QueryMediaCensorJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMediaCensorJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryMediaCensorJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryMediaCensorJobListRequest::~QueryMediaCensorJobListRequest() {} + +long QueryMediaCensorJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryMediaCensorJobListRequest::getNextPageToken()const -{ - return nextPageToken_; +void QueryMediaCensorJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMediaCensorJobListRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); +std::string QueryMediaCensorJobListRequest::getNextPageToken() const { + return nextPageToken_; } -std::string QueryMediaCensorJobListRequest::getStartOfJobCreatedTimeRange()const -{ - return startOfJobCreatedTimeRange_; +void QueryMediaCensorJobListRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); } -void QueryMediaCensorJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) -{ - startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; - setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); +std::string QueryMediaCensorJobListRequest::getStartOfJobCreatedTimeRange() const { + return startOfJobCreatedTimeRange_; } -std::string QueryMediaCensorJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMediaCensorJobListRequest::setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange) { + startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; + setParameter(std::string("StartOfJobCreatedTimeRange"), startOfJobCreatedTimeRange); } -void QueryMediaCensorJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMediaCensorJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryMediaCensorJobListRequest::getJobId()const -{ - return jobId_; +void QueryMediaCensorJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryMediaCensorJobListRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string QueryMediaCensorJobListRequest::getJobId() const { + return jobId_; } -std::string QueryMediaCensorJobListRequest::getState()const -{ - return state_; +void QueryMediaCensorJobListRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void QueryMediaCensorJobListRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string QueryMediaCensorJobListRequest::getState() const { + return state_; } -std::string QueryMediaCensorJobListRequest::getEndOfJobCreatedTimeRange()const -{ - return endOfJobCreatedTimeRange_; +void QueryMediaCensorJobListRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void QueryMediaCensorJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) -{ - endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; - setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); +std::string QueryMediaCensorJobListRequest::getEndOfJobCreatedTimeRange() const { + return endOfJobCreatedTimeRange_; } -std::string QueryMediaCensorJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMediaCensorJobListRequest::setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange) { + endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; + setParameter(std::string("EndOfJobCreatedTimeRange"), endOfJobCreatedTimeRange); } -void QueryMediaCensorJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMediaCensorJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryMediaCensorJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMediaCensorJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMediaCensorJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMediaCensorJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMediaCensorJobListRequest::getMaximumPageSize()const -{ - return maximumPageSize_; +void QueryMediaCensorJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMediaCensorJobListRequest::setMaximumPageSize(long maximumPageSize) -{ - maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); +long QueryMediaCensorJobListRequest::getMaximumPageSize() const { + return maximumPageSize_; } -long QueryMediaCensorJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryMediaCensorJobListRequest::setMaximumPageSize(long maximumPageSize) { + maximumPageSize_ = maximumPageSize; + setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize)); } -void QueryMediaCensorJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMediaCensorJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryMediaCensorJobListRequest::getPipelineId()const -{ - return pipelineId_; +void QueryMediaCensorJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMediaCensorJobListRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string QueryMediaCensorJobListRequest::getPipelineId() const { + return pipelineId_; +} + +void QueryMediaCensorJobListRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } diff --git a/mts/src/model/QueryMediaCensorJobListResult.cc b/mts/src/model/QueryMediaCensorJobListResult.cc index 618f3108f..29dd5dddb 100644 --- a/mts/src/model/QueryMediaCensorJobListResult.cc +++ b/mts/src/model/QueryMediaCensorJobListResult.cc @@ -43,137 +43,137 @@ void QueryMediaCensorJobListResult::parse(const std::string &payload) for (auto valueMediaCensorJobListMediaCensorJob : allMediaCensorJobListNode) { MediaCensorJob mediaCensorJobListObject; - if(!valueMediaCensorJobListMediaCensorJob["JobId"].isNull()) - mediaCensorJobListObject.jobId = valueMediaCensorJobListMediaCensorJob["JobId"].asString(); - if(!valueMediaCensorJobListMediaCensorJob["UserData"].isNull()) - mediaCensorJobListObject.userData = valueMediaCensorJobListMediaCensorJob["UserData"].asString(); - if(!valueMediaCensorJobListMediaCensorJob["PipelineId"].isNull()) - mediaCensorJobListObject.pipelineId = valueMediaCensorJobListMediaCensorJob["PipelineId"].asString(); - if(!valueMediaCensorJobListMediaCensorJob["State"].isNull()) - mediaCensorJobListObject.state = valueMediaCensorJobListMediaCensorJob["State"].asString(); - if(!valueMediaCensorJobListMediaCensorJob["Code"].isNull()) - mediaCensorJobListObject.code = valueMediaCensorJobListMediaCensorJob["Code"].asString(); - if(!valueMediaCensorJobListMediaCensorJob["Suggestion"].isNull()) - mediaCensorJobListObject.suggestion = valueMediaCensorJobListMediaCensorJob["Suggestion"].asString(); - if(!valueMediaCensorJobListMediaCensorJob["Message"].isNull()) - mediaCensorJobListObject.message = valueMediaCensorJobListMediaCensorJob["Message"].asString(); if(!valueMediaCensorJobListMediaCensorJob["CreationTime"].isNull()) mediaCensorJobListObject.creationTime = valueMediaCensorJobListMediaCensorJob["CreationTime"].asString(); if(!valueMediaCensorJobListMediaCensorJob["FinishTime"].isNull()) mediaCensorJobListObject.finishTime = valueMediaCensorJobListMediaCensorJob["FinishTime"].asString(); - auto allCoverImageCensorResultsNode = allMediaCensorJobListNode["CoverImageCensorResults"]["CoverImageCensorResult"]; - for (auto allMediaCensorJobListNodeCoverImageCensorResultsCoverImageCensorResult : allCoverImageCensorResultsNode) + if(!valueMediaCensorJobListMediaCensorJob["Suggestion"].isNull()) + mediaCensorJobListObject.suggestion = valueMediaCensorJobListMediaCensorJob["Suggestion"].asString(); + if(!valueMediaCensorJobListMediaCensorJob["State"].isNull()) + mediaCensorJobListObject.state = valueMediaCensorJobListMediaCensorJob["State"].asString(); + if(!valueMediaCensorJobListMediaCensorJob["Message"].isNull()) + mediaCensorJobListObject.message = valueMediaCensorJobListMediaCensorJob["Message"].asString(); + if(!valueMediaCensorJobListMediaCensorJob["JobId"].isNull()) + mediaCensorJobListObject.jobId = valueMediaCensorJobListMediaCensorJob["JobId"].asString(); + if(!valueMediaCensorJobListMediaCensorJob["UserData"].isNull()) + mediaCensorJobListObject.userData = valueMediaCensorJobListMediaCensorJob["UserData"].asString(); + if(!valueMediaCensorJobListMediaCensorJob["Code"].isNull()) + mediaCensorJobListObject.code = valueMediaCensorJobListMediaCensorJob["Code"].asString(); + if(!valueMediaCensorJobListMediaCensorJob["PipelineId"].isNull()) + mediaCensorJobListObject.pipelineId = valueMediaCensorJobListMediaCensorJob["PipelineId"].asString(); + auto allCoverImageCensorResultsNode = valueMediaCensorJobListMediaCensorJob["CoverImageCensorResults"]["CoverImageCensorResult"]; + for (auto valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResult : allCoverImageCensorResultsNode) { MediaCensorJob::CoverImageCensorResult coverImageCensorResultsObject; - if(!allMediaCensorJobListNodeCoverImageCensorResultsCoverImageCensorResult["Location"].isNull()) - coverImageCensorResultsObject.location = allMediaCensorJobListNodeCoverImageCensorResultsCoverImageCensorResult["Location"].asString(); - if(!allMediaCensorJobListNodeCoverImageCensorResultsCoverImageCensorResult["Bucket"].isNull()) - coverImageCensorResultsObject.bucket = allMediaCensorJobListNodeCoverImageCensorResultsCoverImageCensorResult["Bucket"].asString(); - if(!allMediaCensorJobListNodeCoverImageCensorResultsCoverImageCensorResult["Object"].isNull()) - coverImageCensorResultsObject.object = allMediaCensorJobListNodeCoverImageCensorResultsCoverImageCensorResult["Object"].asString(); - auto allResultsNode = allCoverImageCensorResultsNode["Results"]["Result"]; - for (auto allCoverImageCensorResultsNodeResultsResult : allResultsNode) + if(!valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResult["Object"].isNull()) + coverImageCensorResultsObject.object = valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResult["Object"].asString(); + if(!valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResult["Location"].isNull()) + coverImageCensorResultsObject.location = valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResult["Location"].asString(); + if(!valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResult["Bucket"].isNull()) + coverImageCensorResultsObject.bucket = valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResult["Bucket"].asString(); + auto allResultsNode = valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResult["Results"]["Result"]; + for (auto valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResultResultsResult : allResultsNode) { MediaCensorJob::CoverImageCensorResult::Result resultsObject; - if(!allCoverImageCensorResultsNodeResultsResult["Rate"].isNull()) - resultsObject.rate = allCoverImageCensorResultsNodeResultsResult["Rate"].asString(); - if(!allCoverImageCensorResultsNodeResultsResult["Scene"].isNull()) - resultsObject.scene = allCoverImageCensorResultsNodeResultsResult["Scene"].asString(); - if(!allCoverImageCensorResultsNodeResultsResult["Label"].isNull()) - resultsObject.label = allCoverImageCensorResultsNodeResultsResult["Label"].asString(); - if(!allCoverImageCensorResultsNodeResultsResult["Suggestion"].isNull()) - resultsObject.suggestion = allCoverImageCensorResultsNodeResultsResult["Suggestion"].asString(); + if(!valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResultResultsResult["Suggestion"].isNull()) + resultsObject.suggestion = valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResultResultsResult["Suggestion"].asString(); + if(!valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResultResultsResult["Label"].isNull()) + resultsObject.label = valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResultResultsResult["Label"].asString(); + if(!valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResultResultsResult["Scene"].isNull()) + resultsObject.scene = valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResultResultsResult["Scene"].asString(); + if(!valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResultResultsResult["Rate"].isNull()) + resultsObject.rate = valueMediaCensorJobListMediaCensorJobCoverImageCensorResultsCoverImageCensorResultResultsResult["Rate"].asString(); coverImageCensorResultsObject.results.push_back(resultsObject); } mediaCensorJobListObject.coverImageCensorResults.push_back(coverImageCensorResultsObject); } auto titleCensorResultNode = value["TitleCensorResult"]; - if(!titleCensorResultNode["Rate"].isNull()) - mediaCensorJobListObject.titleCensorResult.rate = titleCensorResultNode["Rate"].asString(); - if(!titleCensorResultNode["Scene"].isNull()) - mediaCensorJobListObject.titleCensorResult.scene = titleCensorResultNode["Scene"].asString(); - if(!titleCensorResultNode["Label"].isNull()) - mediaCensorJobListObject.titleCensorResult.label = titleCensorResultNode["Label"].asString(); if(!titleCensorResultNode["Suggestion"].isNull()) mediaCensorJobListObject.titleCensorResult.suggestion = titleCensorResultNode["Suggestion"].asString(); - auto descCensorResultNode = value["DescCensorResult"]; - if(!descCensorResultNode["Rate"].isNull()) - mediaCensorJobListObject.descCensorResult.rate = descCensorResultNode["Rate"].asString(); - if(!descCensorResultNode["Scene"].isNull()) - mediaCensorJobListObject.descCensorResult.scene = descCensorResultNode["Scene"].asString(); - if(!descCensorResultNode["Label"].isNull()) - mediaCensorJobListObject.descCensorResult.label = descCensorResultNode["Label"].asString(); - if(!descCensorResultNode["Suggestion"].isNull()) - mediaCensorJobListObject.descCensorResult.suggestion = descCensorResultNode["Suggestion"].asString(); - auto barrageCensorResultNode = value["BarrageCensorResult"]; - if(!barrageCensorResultNode["Rate"].isNull()) - mediaCensorJobListObject.barrageCensorResult.rate = barrageCensorResultNode["Rate"].asString(); - if(!barrageCensorResultNode["Scene"].isNull()) - mediaCensorJobListObject.barrageCensorResult.scene = barrageCensorResultNode["Scene"].asString(); - if(!barrageCensorResultNode["Label"].isNull()) - mediaCensorJobListObject.barrageCensorResult.label = barrageCensorResultNode["Label"].asString(); - if(!barrageCensorResultNode["Suggestion"].isNull()) - mediaCensorJobListObject.barrageCensorResult.suggestion = barrageCensorResultNode["Suggestion"].asString(); + if(!titleCensorResultNode["Label"].isNull()) + mediaCensorJobListObject.titleCensorResult.label = titleCensorResultNode["Label"].asString(); + if(!titleCensorResultNode["Scene"].isNull()) + mediaCensorJobListObject.titleCensorResult.scene = titleCensorResultNode["Scene"].asString(); + if(!titleCensorResultNode["Rate"].isNull()) + mediaCensorJobListObject.titleCensorResult.rate = titleCensorResultNode["Rate"].asString(); auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - mediaCensorJobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - mediaCensorJobListObject.input.location = inputNode["Location"].asString(); if(!inputNode["Object"].isNull()) mediaCensorJobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + mediaCensorJobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + mediaCensorJobListObject.input.bucket = inputNode["Bucket"].asString(); + auto barrageCensorResultNode = value["BarrageCensorResult"]; + if(!barrageCensorResultNode["Suggestion"].isNull()) + mediaCensorJobListObject.barrageCensorResult.suggestion = barrageCensorResultNode["Suggestion"].asString(); + if(!barrageCensorResultNode["Label"].isNull()) + mediaCensorJobListObject.barrageCensorResult.label = barrageCensorResultNode["Label"].asString(); + if(!barrageCensorResultNode["Scene"].isNull()) + mediaCensorJobListObject.barrageCensorResult.scene = barrageCensorResultNode["Scene"].asString(); + if(!barrageCensorResultNode["Rate"].isNull()) + mediaCensorJobListObject.barrageCensorResult.rate = barrageCensorResultNode["Rate"].asString(); + auto descCensorResultNode = value["DescCensorResult"]; + if(!descCensorResultNode["Suggestion"].isNull()) + mediaCensorJobListObject.descCensorResult.suggestion = descCensorResultNode["Suggestion"].asString(); + if(!descCensorResultNode["Label"].isNull()) + mediaCensorJobListObject.descCensorResult.label = descCensorResultNode["Label"].asString(); + if(!descCensorResultNode["Scene"].isNull()) + mediaCensorJobListObject.descCensorResult.scene = descCensorResultNode["Scene"].asString(); + if(!descCensorResultNode["Rate"].isNull()) + mediaCensorJobListObject.descCensorResult.rate = descCensorResultNode["Rate"].asString(); auto videoCensorConfigNode = value["VideoCensorConfig"]; - if(!videoCensorConfigNode["BizType"].isNull()) - mediaCensorJobListObject.videoCensorConfig.bizType = videoCensorConfigNode["BizType"].asString(); if(!videoCensorConfigNode["VideoCensor"].isNull()) mediaCensorJobListObject.videoCensorConfig.videoCensor = videoCensorConfigNode["VideoCensor"].asString(); + if(!videoCensorConfigNode["BizType"].isNull()) + mediaCensorJobListObject.videoCensorConfig.bizType = videoCensorConfigNode["BizType"].asString(); auto outputFileNode = videoCensorConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - mediaCensorJobListObject.videoCensorConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - mediaCensorJobListObject.videoCensorConfig.outputFile.location = outputFileNode["Location"].asString(); if(!outputFileNode["Object"].isNull()) mediaCensorJobListObject.videoCensorConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + mediaCensorJobListObject.videoCensorConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + mediaCensorJobListObject.videoCensorConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); auto vensorCensorResultNode = value["VensorCensorResult"]; if(!vensorCensorResultNode["NextPageToken"].isNull()) mediaCensorJobListObject.vensorCensorResult.nextPageToken = vensorCensorResultNode["NextPageToken"].asString(); - auto allCensorResultsNode = vensorCensorResultNode["CensorResults"]["CensorResult"]; - for (auto vensorCensorResultNodeCensorResultsCensorResult : allCensorResultsNode) - { - MediaCensorJob::VensorCensorResult::CensorResult censorResultObject; - if(!vensorCensorResultNodeCensorResultsCensorResult["Rate"].isNull()) - censorResultObject.rate = vensorCensorResultNodeCensorResultsCensorResult["Rate"].asString(); - if(!vensorCensorResultNodeCensorResultsCensorResult["Scene"].isNull()) - censorResultObject.scene = vensorCensorResultNodeCensorResultsCensorResult["Scene"].asString(); - if(!vensorCensorResultNodeCensorResultsCensorResult["Label"].isNull()) - censorResultObject.label = vensorCensorResultNodeCensorResultsCensorResult["Label"].asString(); - if(!vensorCensorResultNodeCensorResultsCensorResult["Suggestion"].isNull()) - censorResultObject.suggestion = vensorCensorResultNodeCensorResultsCensorResult["Suggestion"].asString(); - mediaCensorJobListObject.vensorCensorResult.censorResults.push_back(censorResultObject); - } auto allVideoTimelinesNode = vensorCensorResultNode["VideoTimelines"]["VideoTimeline"]; for (auto vensorCensorResultNodeVideoTimelinesVideoTimeline : allVideoTimelinesNode) { MediaCensorJob::VensorCensorResult::VideoTimeline videoTimelineObject; - if(!vensorCensorResultNodeVideoTimelinesVideoTimeline["Object"].isNull()) - videoTimelineObject.object = vensorCensorResultNodeVideoTimelinesVideoTimeline["Object"].asString(); if(!vensorCensorResultNodeVideoTimelinesVideoTimeline["Timestamp"].isNull()) videoTimelineObject.timestamp = vensorCensorResultNodeVideoTimelinesVideoTimeline["Timestamp"].asString(); - auto allCensorResults1Node = allVideoTimelinesNode["CensorResults"]["CensorResult"]; - for (auto allVideoTimelinesNodeCensorResultsCensorResult : allCensorResults1Node) + if(!vensorCensorResultNodeVideoTimelinesVideoTimeline["Object"].isNull()) + videoTimelineObject.object = vensorCensorResultNodeVideoTimelinesVideoTimeline["Object"].asString(); + auto allCensorResults1Node = vensorCensorResultNodeVideoTimelinesVideoTimeline["CensorResults"]["CensorResult"]; + for (auto vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult : allCensorResults1Node) { - MediaCensorJob::VensorCensorResult::VideoTimeline::CensorResult2 censorResults1Object; - if(!allVideoTimelinesNodeCensorResultsCensorResult["Rate"].isNull()) - censorResults1Object.rate = allVideoTimelinesNodeCensorResultsCensorResult["Rate"].asString(); - if(!allVideoTimelinesNodeCensorResultsCensorResult["Scene"].isNull()) - censorResults1Object.scene = allVideoTimelinesNodeCensorResultsCensorResult["Scene"].asString(); - if(!allVideoTimelinesNodeCensorResultsCensorResult["Label"].isNull()) - censorResults1Object.label = allVideoTimelinesNodeCensorResultsCensorResult["Label"].asString(); - if(!allVideoTimelinesNodeCensorResultsCensorResult["Suggestion"].isNull()) - censorResults1Object.suggestion = allVideoTimelinesNodeCensorResultsCensorResult["Suggestion"].asString(); + MediaCensorJob::VensorCensorResult::VideoTimeline::CensorResult censorResults1Object; + if(!vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Suggestion"].isNull()) + censorResults1Object.suggestion = vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Suggestion"].asString(); + if(!vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Label"].isNull()) + censorResults1Object.label = vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Label"].asString(); + if(!vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Scene"].isNull()) + censorResults1Object.scene = vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Scene"].asString(); + if(!vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Rate"].isNull()) + censorResults1Object.rate = vensorCensorResultNodeVideoTimelinesVideoTimelineCensorResultsCensorResult["Rate"].asString(); videoTimelineObject.censorResults1.push_back(censorResults1Object); } mediaCensorJobListObject.vensorCensorResult.videoTimelines.push_back(videoTimelineObject); } + auto allCensorResultsNode = vensorCensorResultNode["CensorResults"]["CensorResult"]; + for (auto vensorCensorResultNodeCensorResultsCensorResult : allCensorResultsNode) + { + MediaCensorJob::VensorCensorResult::CensorResult2 censorResult2Object; + if(!vensorCensorResultNodeCensorResultsCensorResult["Suggestion"].isNull()) + censorResult2Object.suggestion = vensorCensorResultNodeCensorResultsCensorResult["Suggestion"].asString(); + if(!vensorCensorResultNodeCensorResultsCensorResult["Label"].isNull()) + censorResult2Object.label = vensorCensorResultNodeCensorResultsCensorResult["Label"].asString(); + if(!vensorCensorResultNodeCensorResultsCensorResult["Scene"].isNull()) + censorResult2Object.scene = vensorCensorResultNodeCensorResultsCensorResult["Scene"].asString(); + if(!vensorCensorResultNodeCensorResultsCensorResult["Rate"].isNull()) + censorResult2Object.rate = vensorCensorResultNodeCensorResultsCensorResult["Rate"].asString(); + mediaCensorJobListObject.vensorCensorResult.censorResults.push_back(censorResult2Object); + } mediaCensorJobList_.push_back(mediaCensorJobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryMediaDetailJobListRequest.cc b/mts/src/model/QueryMediaDetailJobListRequest.cc index 88d415dfb..171664d62 100644 --- a/mts/src/model/QueryMediaDetailJobListRequest.cc +++ b/mts/src/model/QueryMediaDetailJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryMediaDetailJobListRequest; - -QueryMediaDetailJobListRequest::QueryMediaDetailJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMediaDetailJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMediaDetailJobListRequest::~QueryMediaDetailJobListRequest() -{} - -long QueryMediaDetailJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMediaDetailJobListRequest; + +QueryMediaDetailJobListRequest::QueryMediaDetailJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMediaDetailJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryMediaDetailJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryMediaDetailJobListRequest::~QueryMediaDetailJobListRequest() {} + +long QueryMediaDetailJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryMediaDetailJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMediaDetailJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMediaDetailJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMediaDetailJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryMediaDetailJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMediaDetailJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMediaDetailJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMediaDetailJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMediaDetailJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryMediaDetailJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMediaDetailJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMediaDetailJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryMediaDetailJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMediaDetailJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMediaDetailJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMediaDetailJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryMediaDetailJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryMediaDetailJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryMediaDetailJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryMediaDetailJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryMediaDetailJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryMediaDetailJobListResult.cc b/mts/src/model/QueryMediaDetailJobListResult.cc index 8c2df4c00..685d45c6b 100644 --- a/mts/src/model/QueryMediaDetailJobListResult.cc +++ b/mts/src/model/QueryMediaDetailJobListResult.cc @@ -43,39 +43,20 @@ void QueryMediaDetailJobListResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["Id"].isNull()) - jobListObject.id = valueJobListJob["Id"].asString(); - if(!valueJobListJob["UserData"].isNull()) - jobListObject.userData = valueJobListJob["UserData"].asString(); - if(!valueJobListJob["PipelineId"].isNull()) - jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["CreationTime"].isNull()) + jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); if(!valueJobListJob["State"].isNull()) jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["UserData"].isNull()) + jobListObject.userData = valueJobListJob["UserData"].asString(); if(!valueJobListJob["Code"].isNull()) jobListObject.code = valueJobListJob["Code"].asString(); if(!valueJobListJob["Message"].isNull()) jobListObject.message = valueJobListJob["Message"].asString(); - if(!valueJobListJob["CreationTime"].isNull()) - jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - jobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - jobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - jobListObject.input.object = inputNode["Object"].asString(); - auto mediaDetailConfigNode = value["MediaDetailConfig"]; - if(!mediaDetailConfigNode["Scenario"].isNull()) - jobListObject.mediaDetailConfig.scenario = mediaDetailConfigNode["Scenario"].asString(); - if(!mediaDetailConfigNode["DetailType"].isNull()) - jobListObject.mediaDetailConfig.detailType = mediaDetailConfigNode["DetailType"].asString(); - auto outputFileNode = mediaDetailConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - jobListObject.mediaDetailConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - jobListObject.mediaDetailConfig.outputFile.location = outputFileNode["Location"].asString(); - if(!outputFileNode["Object"].isNull()) - jobListObject.mediaDetailConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!valueJobListJob["PipelineId"].isNull()) + jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["Id"].isNull()) + jobListObject.id = valueJobListJob["Id"].asString(); auto mediaDetailResultNode = value["MediaDetailResult"]; if(!mediaDetailResultNode["Status"].isNull()) jobListObject.mediaDetailResult.status = mediaDetailResultNode["Status"].asString(); @@ -83,88 +64,88 @@ void QueryMediaDetailJobListResult::parse(const std::string &payload) for (auto mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult : allMediaDetailRecgResultsNode) { Job::MediaDetailResult::MediaDetailRecgResult mediaDetailRecgResultObject; - if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["ImageUrl"].isNull()) - mediaDetailRecgResultObject.imageUrl = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["ImageUrl"].asString(); if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["Time"].isNull()) mediaDetailRecgResultObject.time = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["Time"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["ImageUrl"].isNull()) + mediaDetailRecgResultObject.imageUrl = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["ImageUrl"].asString(); if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["OcrText"].isNull()) mediaDetailRecgResultObject.ocrText = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["OcrText"].asString(); - auto allCelebritiesNode = allMediaDetailRecgResultsNode["Celebrities"]["Celebrity"]; - for (auto allMediaDetailRecgResultsNodeCelebritiesCelebrity : allCelebritiesNode) - { - Job::MediaDetailResult::MediaDetailRecgResult::Celebrity celebritiesObject; - if(!allMediaDetailRecgResultsNodeCelebritiesCelebrity["Name"].isNull()) - celebritiesObject.name = allMediaDetailRecgResultsNodeCelebritiesCelebrity["Name"].asString(); - if(!allMediaDetailRecgResultsNodeCelebritiesCelebrity["Score"].isNull()) - celebritiesObject.score = allMediaDetailRecgResultsNodeCelebritiesCelebrity["Score"].asString(); - if(!allMediaDetailRecgResultsNodeCelebritiesCelebrity["Target"].isNull()) - celebritiesObject.target = allMediaDetailRecgResultsNodeCelebritiesCelebrity["Target"].asString(); - mediaDetailRecgResultObject.celebrities.push_back(celebritiesObject); - } - auto allSensitivesNode = allMediaDetailRecgResultsNode["Sensitives"]["Sensitive"]; - for (auto allMediaDetailRecgResultsNodeSensitivesSensitive : allSensitivesNode) + auto allSensitivesNode = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["Sensitives"]["Sensitive"]; + for (auto mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultSensitivesSensitive : allSensitivesNode) { Job::MediaDetailResult::MediaDetailRecgResult::Sensitive sensitivesObject; - if(!allMediaDetailRecgResultsNodeSensitivesSensitive["Name"].isNull()) - sensitivesObject.name = allMediaDetailRecgResultsNodeSensitivesSensitive["Name"].asString(); - if(!allMediaDetailRecgResultsNodeSensitivesSensitive["Score"].isNull()) - sensitivesObject.score = allMediaDetailRecgResultsNodeSensitivesSensitive["Score"].asString(); - if(!allMediaDetailRecgResultsNodeSensitivesSensitive["Target"].isNull()) - sensitivesObject.target = allMediaDetailRecgResultsNodeSensitivesSensitive["Target"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultSensitivesSensitive["Score"].isNull()) + sensitivesObject.score = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultSensitivesSensitive["Score"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultSensitivesSensitive["Name"].isNull()) + sensitivesObject.name = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultSensitivesSensitive["Name"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultSensitivesSensitive["Target"].isNull()) + sensitivesObject.target = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultSensitivesSensitive["Target"].asString(); mediaDetailRecgResultObject.sensitives.push_back(sensitivesObject); } - auto allPoliticiansNode = allMediaDetailRecgResultsNode["Politicians"]["Politician"]; - for (auto allMediaDetailRecgResultsNodePoliticiansPolitician : allPoliticiansNode) + auto allPoliticiansNode = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["Politicians"]["Politician"]; + for (auto mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultPoliticiansPolitician : allPoliticiansNode) { Job::MediaDetailResult::MediaDetailRecgResult::Politician politiciansObject; - if(!allMediaDetailRecgResultsNodePoliticiansPolitician["Name"].isNull()) - politiciansObject.name = allMediaDetailRecgResultsNodePoliticiansPolitician["Name"].asString(); - if(!allMediaDetailRecgResultsNodePoliticiansPolitician["Score"].isNull()) - politiciansObject.score = allMediaDetailRecgResultsNodePoliticiansPolitician["Score"].asString(); - if(!allMediaDetailRecgResultsNodePoliticiansPolitician["Target"].isNull()) - politiciansObject.target = allMediaDetailRecgResultsNodePoliticiansPolitician["Target"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultPoliticiansPolitician["Score"].isNull()) + politiciansObject.score = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultPoliticiansPolitician["Score"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultPoliticiansPolitician["Name"].isNull()) + politiciansObject.name = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultPoliticiansPolitician["Name"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultPoliticiansPolitician["Target"].isNull()) + politiciansObject.target = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultPoliticiansPolitician["Target"].asString(); mediaDetailRecgResultObject.politicians.push_back(politiciansObject); } - auto allFrameTagInfosNode = allMediaDetailRecgResultsNode["FrameTagInfos"]["FrameTagInfo"]; - for (auto allMediaDetailRecgResultsNodeFrameTagInfosFrameTagInfo : allFrameTagInfosNode) - { - Job::MediaDetailResult::MediaDetailRecgResult::FrameTagInfo frameTagInfosObject; - if(!allMediaDetailRecgResultsNodeFrameTagInfosFrameTagInfo["Tag"].isNull()) - frameTagInfosObject.tag = allMediaDetailRecgResultsNodeFrameTagInfosFrameTagInfo["Tag"].asString(); - if(!allMediaDetailRecgResultsNodeFrameTagInfosFrameTagInfo["Score"].isNull()) - frameTagInfosObject.score = allMediaDetailRecgResultsNodeFrameTagInfosFrameTagInfo["Score"].asString(); - if(!allMediaDetailRecgResultsNodeFrameTagInfosFrameTagInfo["Category"].isNull()) - frameTagInfosObject.category = allMediaDetailRecgResultsNodeFrameTagInfosFrameTagInfo["Category"].asString(); - mediaDetailRecgResultObject.frameTagInfos.push_back(frameTagInfosObject); - } - auto allCustomsNode = allMediaDetailRecgResultsNode["Customs"]["Custom"]; - for (auto allMediaDetailRecgResultsNodeCustomsCustom : allCustomsNode) + auto allCustomsNode = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["Customs"]["Custom"]; + for (auto mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustom : allCustomsNode) { Job::MediaDetailResult::MediaDetailRecgResult::Custom customsObject; - if(!allMediaDetailRecgResultsNodeCustomsCustom["Name"].isNull()) - customsObject.name = allMediaDetailRecgResultsNodeCustomsCustom["Name"].asString(); - auto allClipsNode = allCustomsNode["Clips"]["Clip"]; - for (auto allCustomsNodeClipsClip : allClipsNode) + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustom["Name"].isNull()) + customsObject.name = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustom["Name"].asString(); + auto allClipsNode = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustom["Clips"]["Clip"]; + for (auto mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip : allClipsNode) { Job::MediaDetailResult::MediaDetailRecgResult::Custom::Clip clipsObject; - if(!allCustomsNodeClipsClip["MinScore"].isNull()) - clipsObject.minScore = allCustomsNodeClipsClip["MinScore"].asString(); - if(!allCustomsNodeClipsClip["MaxScore"].isNull()) - clipsObject.maxScore = allCustomsNodeClipsClip["MaxScore"].asString(); - if(!allCustomsNodeClipsClip["AvgScore"].isNull()) - clipsObject.avgScore = allCustomsNodeClipsClip["AvgScore"].asString(); - if(!allCustomsNodeClipsClip["StartTarget"].isNull()) - clipsObject.startTarget = allCustomsNodeClipsClip["StartTarget"].asString(); - if(!allCustomsNodeClipsClip["EndTarget"].isNull()) - clipsObject.endTarget = allCustomsNodeClipsClip["EndTarget"].asString(); - if(!allCustomsNodeClipsClip["StartTime"].isNull()) - clipsObject.startTime = allCustomsNodeClipsClip["StartTime"].asString(); - if(!allCustomsNodeClipsClip["EndTime"].isNull()) - clipsObject.endTime = allCustomsNodeClipsClip["EndTime"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["EndTime"].isNull()) + clipsObject.endTime = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["EndTime"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["MinScore"].isNull()) + clipsObject.minScore = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["MinScore"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["StartTime"].isNull()) + clipsObject.startTime = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["StartTime"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["AvgScore"].isNull()) + clipsObject.avgScore = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["AvgScore"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["MaxScore"].isNull()) + clipsObject.maxScore = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["MaxScore"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["EndTarget"].isNull()) + clipsObject.endTarget = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["EndTarget"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["StartTarget"].isNull()) + clipsObject.startTarget = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCustomsCustomClipsClip["StartTarget"].asString(); customsObject.clips.push_back(clipsObject); } mediaDetailRecgResultObject.customs.push_back(customsObject); } + auto allFrameTagInfosNode = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["FrameTagInfos"]["FrameTagInfo"]; + for (auto mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultFrameTagInfosFrameTagInfo : allFrameTagInfosNode) + { + Job::MediaDetailResult::MediaDetailRecgResult::FrameTagInfo frameTagInfosObject; + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultFrameTagInfosFrameTagInfo["Score"].isNull()) + frameTagInfosObject.score = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultFrameTagInfosFrameTagInfo["Score"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultFrameTagInfosFrameTagInfo["Category"].isNull()) + frameTagInfosObject.category = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultFrameTagInfosFrameTagInfo["Category"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultFrameTagInfosFrameTagInfo["Tag"].isNull()) + frameTagInfosObject.tag = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultFrameTagInfosFrameTagInfo["Tag"].asString(); + mediaDetailRecgResultObject.frameTagInfos.push_back(frameTagInfosObject); + } + auto allCelebritiesNode = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResult["Celebrities"]["Celebrity"]; + for (auto mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCelebritiesCelebrity : allCelebritiesNode) + { + Job::MediaDetailResult::MediaDetailRecgResult::Celebrity celebritiesObject; + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCelebritiesCelebrity["Score"].isNull()) + celebritiesObject.score = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCelebritiesCelebrity["Score"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCelebritiesCelebrity["Name"].isNull()) + celebritiesObject.name = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCelebritiesCelebrity["Name"].asString(); + if(!mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCelebritiesCelebrity["Target"].isNull()) + celebritiesObject.target = mediaDetailResultNodeMediaDetailRecgResultsMediaDetailRecgResultCelebritiesCelebrity["Target"].asString(); + mediaDetailRecgResultObject.celebrities.push_back(celebritiesObject); + } auto allFrameTags = value["FrameTags"]["String"]; for (auto value : allFrameTags) mediaDetailRecgResultObject.frameTags.push_back(value.asString()); @@ -173,6 +154,25 @@ void QueryMediaDetailJobListResult::parse(const std::string &payload) auto allTags = mediaDetailResultNode["Tags"]["String"]; for (auto value : allTags) jobListObject.mediaDetailResult.tags.push_back(value.asString()); + auto mediaDetailConfigNode = value["MediaDetailConfig"]; + if(!mediaDetailConfigNode["Scenario"].isNull()) + jobListObject.mediaDetailConfig.scenario = mediaDetailConfigNode["Scenario"].asString(); + if(!mediaDetailConfigNode["DetailType"].isNull()) + jobListObject.mediaDetailConfig.detailType = mediaDetailConfigNode["DetailType"].asString(); + auto outputFileNode = mediaDetailConfigNode["OutputFile"]; + if(!outputFileNode["Object"].isNull()) + jobListObject.mediaDetailConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + jobListObject.mediaDetailConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + jobListObject.mediaDetailConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + jobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + jobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + jobListObject.input.bucket = inputNode["Bucket"].asString(); jobList_.push_back(jobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryMediaFpDeleteJobListRequest.cc b/mts/src/model/QueryMediaFpDeleteJobListRequest.cc index f80bc0b81..578e702f7 100644 --- a/mts/src/model/QueryMediaFpDeleteJobListRequest.cc +++ b/mts/src/model/QueryMediaFpDeleteJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryMediaFpDeleteJobListRequest; - -QueryMediaFpDeleteJobListRequest::QueryMediaFpDeleteJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMediaFpDeleteJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMediaFpDeleteJobListRequest::~QueryMediaFpDeleteJobListRequest() -{} - -long QueryMediaFpDeleteJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMediaFpDeleteJobListRequest; + +QueryMediaFpDeleteJobListRequest::QueryMediaFpDeleteJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMediaFpDeleteJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryMediaFpDeleteJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryMediaFpDeleteJobListRequest::~QueryMediaFpDeleteJobListRequest() {} + +long QueryMediaFpDeleteJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryMediaFpDeleteJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMediaFpDeleteJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMediaFpDeleteJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMediaFpDeleteJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryMediaFpDeleteJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMediaFpDeleteJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMediaFpDeleteJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMediaFpDeleteJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMediaFpDeleteJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryMediaFpDeleteJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMediaFpDeleteJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMediaFpDeleteJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryMediaFpDeleteJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMediaFpDeleteJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMediaFpDeleteJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMediaFpDeleteJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryMediaFpDeleteJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryMediaFpDeleteJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryMediaFpDeleteJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryMediaFpDeleteJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryMediaFpDeleteJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryMediaFpDeleteJobListResult.cc b/mts/src/model/QueryMediaFpDeleteJobListResult.cc index 37cc97410..4f27abe95 100644 --- a/mts/src/model/QueryMediaFpDeleteJobListResult.cc +++ b/mts/src/model/QueryMediaFpDeleteJobListResult.cc @@ -43,26 +43,26 @@ void QueryMediaFpDeleteJobListResult::parse(const std::string &payload) for (auto valueMediaFpDeleteJobListMediaFpDeleteJob : allMediaFpDeleteJobListNode) { MediaFpDeleteJob mediaFpDeleteJobListObject; - if(!valueMediaFpDeleteJobListMediaFpDeleteJob["Id"].isNull()) - mediaFpDeleteJobListObject.id = valueMediaFpDeleteJobListMediaFpDeleteJob["Id"].asString(); - if(!valueMediaFpDeleteJobListMediaFpDeleteJob["UserData"].isNull()) - mediaFpDeleteJobListObject.userData = valueMediaFpDeleteJobListMediaFpDeleteJob["UserData"].asString(); - if(!valueMediaFpDeleteJobListMediaFpDeleteJob["PipelineId"].isNull()) - mediaFpDeleteJobListObject.pipelineId = valueMediaFpDeleteJobListMediaFpDeleteJob["PipelineId"].asString(); - if(!valueMediaFpDeleteJobListMediaFpDeleteJob["State"].isNull()) - mediaFpDeleteJobListObject.state = valueMediaFpDeleteJobListMediaFpDeleteJob["State"].asString(); - if(!valueMediaFpDeleteJobListMediaFpDeleteJob["Code"].isNull()) - mediaFpDeleteJobListObject.code = valueMediaFpDeleteJobListMediaFpDeleteJob["Code"].asString(); - if(!valueMediaFpDeleteJobListMediaFpDeleteJob["Message"].isNull()) - mediaFpDeleteJobListObject.message = valueMediaFpDeleteJobListMediaFpDeleteJob["Message"].asString(); if(!valueMediaFpDeleteJobListMediaFpDeleteJob["CreationTime"].isNull()) mediaFpDeleteJobListObject.creationTime = valueMediaFpDeleteJobListMediaFpDeleteJob["CreationTime"].asString(); if(!valueMediaFpDeleteJobListMediaFpDeleteJob["FinishTime"].isNull()) mediaFpDeleteJobListObject.finishTime = valueMediaFpDeleteJobListMediaFpDeleteJob["FinishTime"].asString(); if(!valueMediaFpDeleteJobListMediaFpDeleteJob["PrimaryKey"].isNull()) mediaFpDeleteJobListObject.primaryKey = valueMediaFpDeleteJobListMediaFpDeleteJob["PrimaryKey"].asString(); + if(!valueMediaFpDeleteJobListMediaFpDeleteJob["State"].isNull()) + mediaFpDeleteJobListObject.state = valueMediaFpDeleteJobListMediaFpDeleteJob["State"].asString(); + if(!valueMediaFpDeleteJobListMediaFpDeleteJob["UserData"].isNull()) + mediaFpDeleteJobListObject.userData = valueMediaFpDeleteJobListMediaFpDeleteJob["UserData"].asString(); + if(!valueMediaFpDeleteJobListMediaFpDeleteJob["Code"].isNull()) + mediaFpDeleteJobListObject.code = valueMediaFpDeleteJobListMediaFpDeleteJob["Code"].asString(); + if(!valueMediaFpDeleteJobListMediaFpDeleteJob["Message"].isNull()) + mediaFpDeleteJobListObject.message = valueMediaFpDeleteJobListMediaFpDeleteJob["Message"].asString(); + if(!valueMediaFpDeleteJobListMediaFpDeleteJob["PipelineId"].isNull()) + mediaFpDeleteJobListObject.pipelineId = valueMediaFpDeleteJobListMediaFpDeleteJob["PipelineId"].asString(); if(!valueMediaFpDeleteJobListMediaFpDeleteJob["FpDBId"].isNull()) mediaFpDeleteJobListObject.fpDBId = valueMediaFpDeleteJobListMediaFpDeleteJob["FpDBId"].asString(); + if(!valueMediaFpDeleteJobListMediaFpDeleteJob["Id"].isNull()) + mediaFpDeleteJobListObject.id = valueMediaFpDeleteJobListMediaFpDeleteJob["Id"].asString(); mediaFpDeleteJobList_.push_back(mediaFpDeleteJobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryMediaInfoJobListRequest.cc b/mts/src/model/QueryMediaInfoJobListRequest.cc index 63f472ae6..0186acdf2 100644 --- a/mts/src/model/QueryMediaInfoJobListRequest.cc +++ b/mts/src/model/QueryMediaInfoJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryMediaInfoJobListRequest; - -QueryMediaInfoJobListRequest::QueryMediaInfoJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMediaInfoJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMediaInfoJobListRequest::~QueryMediaInfoJobListRequest() -{} - -long QueryMediaInfoJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMediaInfoJobListRequest; + +QueryMediaInfoJobListRequest::QueryMediaInfoJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMediaInfoJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryMediaInfoJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryMediaInfoJobListRequest::~QueryMediaInfoJobListRequest() {} + +long QueryMediaInfoJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryMediaInfoJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMediaInfoJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMediaInfoJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMediaInfoJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryMediaInfoJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMediaInfoJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMediaInfoJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMediaInfoJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMediaInfoJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryMediaInfoJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMediaInfoJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMediaInfoJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryMediaInfoJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMediaInfoJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMediaInfoJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMediaInfoJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryMediaInfoJobListRequest::getMediaInfoJobIds()const -{ - return mediaInfoJobIds_; +void QueryMediaInfoJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryMediaInfoJobListRequest::setMediaInfoJobIds(const std::string& mediaInfoJobIds) -{ - mediaInfoJobIds_ = mediaInfoJobIds; - setParameter("MediaInfoJobIds", mediaInfoJobIds); +std::string QueryMediaInfoJobListRequest::getMediaInfoJobIds() const { + return mediaInfoJobIds_; +} + +void QueryMediaInfoJobListRequest::setMediaInfoJobIds(const std::string &mediaInfoJobIds) { + mediaInfoJobIds_ = mediaInfoJobIds; + setParameter(std::string("MediaInfoJobIds"), mediaInfoJobIds); } diff --git a/mts/src/model/QueryMediaInfoJobListResult.cc b/mts/src/model/QueryMediaInfoJobListResult.cc index 15d0f62e7..bd7f688e4 100644 --- a/mts/src/model/QueryMediaInfoJobListResult.cc +++ b/mts/src/model/QueryMediaInfoJobListResult.cc @@ -43,185 +43,29 @@ void QueryMediaInfoJobListResult::parse(const std::string &payload) for (auto valueMediaInfoJobListMediaInfoJob : allMediaInfoJobListNode) { MediaInfoJob mediaInfoJobListObject; + if(!valueMediaInfoJobListMediaInfoJob["CreationTime"].isNull()) + mediaInfoJobListObject.creationTime = valueMediaInfoJobListMediaInfoJob["CreationTime"].asString(); + if(!valueMediaInfoJobListMediaInfoJob["State"].isNull()) + mediaInfoJobListObject.state = valueMediaInfoJobListMediaInfoJob["State"].asString(); if(!valueMediaInfoJobListMediaInfoJob["JobId"].isNull()) mediaInfoJobListObject.jobId = valueMediaInfoJobListMediaInfoJob["JobId"].asString(); if(!valueMediaInfoJobListMediaInfoJob["UserData"].isNull()) mediaInfoJobListObject.userData = valueMediaInfoJobListMediaInfoJob["UserData"].asString(); - if(!valueMediaInfoJobListMediaInfoJob["PipelineId"].isNull()) - mediaInfoJobListObject.pipelineId = valueMediaInfoJobListMediaInfoJob["PipelineId"].asString(); - if(!valueMediaInfoJobListMediaInfoJob["Async"].isNull()) - mediaInfoJobListObject.async = valueMediaInfoJobListMediaInfoJob["Async"].asString() == "true"; - if(!valueMediaInfoJobListMediaInfoJob["State"].isNull()) - mediaInfoJobListObject.state = valueMediaInfoJobListMediaInfoJob["State"].asString(); if(!valueMediaInfoJobListMediaInfoJob["Code"].isNull()) mediaInfoJobListObject.code = valueMediaInfoJobListMediaInfoJob["Code"].asString(); if(!valueMediaInfoJobListMediaInfoJob["Message"].isNull()) mediaInfoJobListObject.message = valueMediaInfoJobListMediaInfoJob["Message"].asString(); - if(!valueMediaInfoJobListMediaInfoJob["CreationTime"].isNull()) - mediaInfoJobListObject.creationTime = valueMediaInfoJobListMediaInfoJob["CreationTime"].asString(); + if(!valueMediaInfoJobListMediaInfoJob["PipelineId"].isNull()) + mediaInfoJobListObject.pipelineId = valueMediaInfoJobListMediaInfoJob["PipelineId"].asString(); + if(!valueMediaInfoJobListMediaInfoJob["Async"].isNull()) + mediaInfoJobListObject.async = valueMediaInfoJobListMediaInfoJob["Async"].asString() == "true"; auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - mediaInfoJobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - mediaInfoJobListObject.input.location = inputNode["Location"].asString(); if(!inputNode["Object"].isNull()) mediaInfoJobListObject.input.object = inputNode["Object"].asString(); - auto propertiesNode = value["Properties"]; - if(!propertiesNode["Width"].isNull()) - mediaInfoJobListObject.properties.width = propertiesNode["Width"].asString(); - if(!propertiesNode["Height"].isNull()) - mediaInfoJobListObject.properties.height = propertiesNode["Height"].asString(); - if(!propertiesNode["Bitrate"].isNull()) - mediaInfoJobListObject.properties.bitrate = propertiesNode["Bitrate"].asString(); - if(!propertiesNode["Duration"].isNull()) - mediaInfoJobListObject.properties.duration = propertiesNode["Duration"].asString(); - if(!propertiesNode["Fps"].isNull()) - mediaInfoJobListObject.properties.fps = propertiesNode["Fps"].asString(); - if(!propertiesNode["FileSize"].isNull()) - mediaInfoJobListObject.properties.fileSize = propertiesNode["FileSize"].asString(); - if(!propertiesNode["FileFormat"].isNull()) - mediaInfoJobListObject.properties.fileFormat = propertiesNode["FileFormat"].asString(); - auto streamsNode = propertiesNode["Streams"]; - auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; - for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) - { - MediaInfoJob::Properties::Streams::VideoStream videoStreamObject; - if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) - videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) - videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) - videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) - videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Rotate"].isNull()) - videoStreamObject.rotate = streamsNodeVideoStreamListVideoStream["Rotate"].asString(); - auto networkCostNode = value["NetworkCost"]; - if(!networkCostNode["PreloadTime"].isNull()) - videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); - if(!networkCostNode["AvgBitrate"].isNull()) - videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); - mediaInfoJobListObject.properties.streams.videoStreamList.push_back(videoStreamObject); - } - auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; - for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) - { - MediaInfoJob::Properties::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) - audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) - audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); - mediaInfoJobListObject.properties.streams.audioStreamList.push_back(audioStreamObject); - } - auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; - for (auto streamsNodeSubtitleStreamListSubtitleStream : allSubtitleStreamListNode) - { - MediaInfoJob::Properties::Streams::SubtitleStream subtitleStreamObject; - if(!streamsNodeSubtitleStreamListSubtitleStream["Index"].isNull()) - subtitleStreamObject.index = streamsNodeSubtitleStreamListSubtitleStream["Index"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecName"].isNull()) - subtitleStreamObject.codecName = streamsNodeSubtitleStreamListSubtitleStream["CodecName"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].isNull()) - subtitleStreamObject.codecTimeBase = streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].isNull()) - subtitleStreamObject.codecLongName = streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].isNull()) - subtitleStreamObject.codecTagString = streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].isNull()) - subtitleStreamObject.codecTag = streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Timebase"].isNull()) - subtitleStreamObject.timebase = streamsNodeSubtitleStreamListSubtitleStream["Timebase"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["StartTime"].isNull()) - subtitleStreamObject.startTime = streamsNodeSubtitleStreamListSubtitleStream["StartTime"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Duration"].isNull()) - subtitleStreamObject.duration = streamsNodeSubtitleStreamListSubtitleStream["Duration"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Lang"].isNull()) - subtitleStreamObject.lang = streamsNodeSubtitleStreamListSubtitleStream["Lang"].asString(); - mediaInfoJobListObject.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); - } - auto formatNode = propertiesNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - mediaInfoJobListObject.properties.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - mediaInfoJobListObject.properties.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - mediaInfoJobListObject.properties.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - mediaInfoJobListObject.properties.format.formatLongName = formatNode["FormatLongName"].asString(); - if(!formatNode["StartTime"].isNull()) - mediaInfoJobListObject.properties.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - mediaInfoJobListObject.properties.format.duration = formatNode["Duration"].asString(); - if(!formatNode["Size"].isNull()) - mediaInfoJobListObject.properties.format.size = formatNode["Size"].asString(); - if(!formatNode["Bitrate"].isNull()) - mediaInfoJobListObject.properties.format.bitrate = formatNode["Bitrate"].asString(); + if(!inputNode["Location"].isNull()) + mediaInfoJobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + mediaInfoJobListObject.input.bucket = inputNode["Bucket"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) mediaInfoJobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); @@ -229,6 +73,168 @@ void QueryMediaInfoJobListResult::parse(const std::string &payload) mediaInfoJobListObject.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString(); if(!mNSMessageResultNode["ErrorCode"].isNull()) mediaInfoJobListObject.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString(); + auto propertiesNode = value["Properties"]; + if(!propertiesNode["Width"].isNull()) + mediaInfoJobListObject.properties.width = propertiesNode["Width"].asString(); + if(!propertiesNode["Height"].isNull()) + mediaInfoJobListObject.properties.height = propertiesNode["Height"].asString(); + if(!propertiesNode["Duration"].isNull()) + mediaInfoJobListObject.properties.duration = propertiesNode["Duration"].asString(); + if(!propertiesNode["Fps"].isNull()) + mediaInfoJobListObject.properties.fps = propertiesNode["Fps"].asString(); + if(!propertiesNode["Bitrate"].isNull()) + mediaInfoJobListObject.properties.bitrate = propertiesNode["Bitrate"].asString(); + if(!propertiesNode["FileFormat"].isNull()) + mediaInfoJobListObject.properties.fileFormat = propertiesNode["FileFormat"].asString(); + if(!propertiesNode["FileSize"].isNull()) + mediaInfoJobListObject.properties.fileSize = propertiesNode["FileSize"].asString(); + auto streamsNode = propertiesNode["Streams"]; + auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; + for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) + { + MediaInfoJob::Properties::Streams::VideoStream videoStreamObject; + if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) + videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) + videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) + videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) + videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Rotate"].isNull()) + videoStreamObject.rotate = streamsNodeVideoStreamListVideoStream["Rotate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); + if(!streamsNodeVideoStreamListVideoStream["ColorRange"].isNull()) + videoStreamObject.colorRange = streamsNodeVideoStreamListVideoStream["ColorRange"].asString(); + if(!streamsNodeVideoStreamListVideoStream["ColorTransfer"].isNull()) + videoStreamObject.colorTransfer = streamsNodeVideoStreamListVideoStream["ColorTransfer"].asString(); + if(!streamsNodeVideoStreamListVideoStream["ColorPrimaries"].isNull()) + videoStreamObject.colorPrimaries = streamsNodeVideoStreamListVideoStream["ColorPrimaries"].asString(); + auto networkCostNode = value["NetworkCost"]; + if(!networkCostNode["PreloadTime"].isNull()) + videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); + if(!networkCostNode["AvgBitrate"].isNull()) + videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); + mediaInfoJobListObject.properties.streams.videoStreamList.push_back(videoStreamObject); + } + auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; + for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) + { + MediaInfoJob::Properties::Streams::AudioStream audioStreamObject; + if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) + audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) + audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); + mediaInfoJobListObject.properties.streams.audioStreamList.push_back(audioStreamObject); + } + auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; + for (auto streamsNodeSubtitleStreamListSubtitleStream : allSubtitleStreamListNode) + { + MediaInfoJob::Properties::Streams::SubtitleStream subtitleStreamObject; + if(!streamsNodeSubtitleStreamListSubtitleStream["Timebase"].isNull()) + subtitleStreamObject.timebase = streamsNodeSubtitleStreamListSubtitleStream["Timebase"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Index"].isNull()) + subtitleStreamObject.index = streamsNodeSubtitleStreamListSubtitleStream["Index"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["StartTime"].isNull()) + subtitleStreamObject.startTime = streamsNodeSubtitleStreamListSubtitleStream["StartTime"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecName"].isNull()) + subtitleStreamObject.codecName = streamsNodeSubtitleStreamListSubtitleStream["CodecName"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Lang"].isNull()) + subtitleStreamObject.lang = streamsNodeSubtitleStreamListSubtitleStream["Lang"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].isNull()) + subtitleStreamObject.codecLongName = streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Duration"].isNull()) + subtitleStreamObject.duration = streamsNodeSubtitleStreamListSubtitleStream["Duration"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].isNull()) + subtitleStreamObject.codecTag = streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].isNull()) + subtitleStreamObject.codecTimeBase = streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].isNull()) + subtitleStreamObject.codecTagString = streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].asString(); + mediaInfoJobListObject.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); + } + auto formatNode = propertiesNode["Format"]; + if(!formatNode["StartTime"].isNull()) + mediaInfoJobListObject.properties.format.startTime = formatNode["StartTime"].asString(); + if(!formatNode["NumPrograms"].isNull()) + mediaInfoJobListObject.properties.format.numPrograms = formatNode["NumPrograms"].asString(); + if(!formatNode["Size"].isNull()) + mediaInfoJobListObject.properties.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + mediaInfoJobListObject.properties.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + mediaInfoJobListObject.properties.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + mediaInfoJobListObject.properties.format.duration = formatNode["Duration"].asString(); + if(!formatNode["Bitrate"].isNull()) + mediaInfoJobListObject.properties.format.bitrate = formatNode["Bitrate"].asString(); + if(!formatNode["FormatName"].isNull()) + mediaInfoJobListObject.properties.format.formatName = formatNode["FormatName"].asString(); mediaInfoJobList_.push_back(mediaInfoJobListObject); } auto allNonExistMediaInfoJobIds = value["NonExistMediaInfoJobIds"]["String"]; diff --git a/mts/src/model/QueryMediaListByURLRequest.cc b/mts/src/model/QueryMediaListByURLRequest.cc index 098023bfa..28930924d 100644 --- a/mts/src/model/QueryMediaListByURLRequest.cc +++ b/mts/src/model/QueryMediaListByURLRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::QueryMediaListByURLRequest; - -QueryMediaListByURLRequest::QueryMediaListByURLRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMediaListByURL") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMediaListByURLRequest::~QueryMediaListByURLRequest() -{} - -long QueryMediaListByURLRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMediaListByURLRequest; + +QueryMediaListByURLRequest::QueryMediaListByURLRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMediaListByURL") { + setMethod(HttpRequest::Method::Post); } -void QueryMediaListByURLRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryMediaListByURLRequest::~QueryMediaListByURLRequest() {} + +long QueryMediaListByURLRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool QueryMediaListByURLRequest::getIncludeSummaryList()const -{ - return includeSummaryList_; +void QueryMediaListByURLRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMediaListByURLRequest::setIncludeSummaryList(bool includeSummaryList) -{ - includeSummaryList_ = includeSummaryList; - setParameter("IncludeSummaryList", includeSummaryList ? "true" : "false"); +bool QueryMediaListByURLRequest::getIncludeSummaryList() const { + return includeSummaryList_; } -std::string QueryMediaListByURLRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMediaListByURLRequest::setIncludeSummaryList(bool includeSummaryList) { + includeSummaryList_ = includeSummaryList; + setParameter(std::string("IncludeSummaryList"), includeSummaryList ? "true" : "false"); } -void QueryMediaListByURLRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMediaListByURLRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryMediaListByURLRequest::getFileURLs()const -{ - return fileURLs_; +void QueryMediaListByURLRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryMediaListByURLRequest::setFileURLs(const std::string& fileURLs) -{ - fileURLs_ = fileURLs; - setParameter("FileURLs", fileURLs); +std::string QueryMediaListByURLRequest::getFileURLs() const { + return fileURLs_; } -bool QueryMediaListByURLRequest::getIncludePlayList()const -{ - return includePlayList_; +void QueryMediaListByURLRequest::setFileURLs(const std::string &fileURLs) { + fileURLs_ = fileURLs; + setParameter(std::string("FileURLs"), fileURLs); } -void QueryMediaListByURLRequest::setIncludePlayList(bool includePlayList) -{ - includePlayList_ = includePlayList; - setParameter("IncludePlayList", includePlayList ? "true" : "false"); +bool QueryMediaListByURLRequest::getIncludePlayList() const { + return includePlayList_; } -std::string QueryMediaListByURLRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMediaListByURLRequest::setIncludePlayList(bool includePlayList) { + includePlayList_ = includePlayList; + setParameter(std::string("IncludePlayList"), includePlayList ? "true" : "false"); } -void QueryMediaListByURLRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMediaListByURLRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -bool QueryMediaListByURLRequest::getIncludeSnapshotList()const -{ - return includeSnapshotList_; +void QueryMediaListByURLRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMediaListByURLRequest::setIncludeSnapshotList(bool includeSnapshotList) -{ - includeSnapshotList_ = includeSnapshotList; - setParameter("IncludeSnapshotList", includeSnapshotList ? "true" : "false"); +bool QueryMediaListByURLRequest::getIncludeSnapshotList() const { + return includeSnapshotList_; } -std::string QueryMediaListByURLRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMediaListByURLRequest::setIncludeSnapshotList(bool includeSnapshotList) { + includeSnapshotList_ = includeSnapshotList; + setParameter(std::string("IncludeSnapshotList"), includeSnapshotList ? "true" : "false"); } -void QueryMediaListByURLRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMediaListByURLRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMediaListByURLRequest::getOwnerId()const -{ - return ownerId_; +void QueryMediaListByURLRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMediaListByURLRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMediaListByURLRequest::getOwnerId() const { + return ownerId_; } -bool QueryMediaListByURLRequest::getIncludeMediaInfo()const -{ - return includeMediaInfo_; +void QueryMediaListByURLRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMediaListByURLRequest::setIncludeMediaInfo(bool includeMediaInfo) -{ - includeMediaInfo_ = includeMediaInfo; - setParameter("IncludeMediaInfo", includeMediaInfo ? "true" : "false"); +bool QueryMediaListByURLRequest::getIncludeMediaInfo() const { + return includeMediaInfo_; +} + +void QueryMediaListByURLRequest::setIncludeMediaInfo(bool includeMediaInfo) { + includeMediaInfo_ = includeMediaInfo; + setParameter(std::string("IncludeMediaInfo"), includeMediaInfo ? "true" : "false"); } diff --git a/mts/src/model/QueryMediaListByURLResult.cc b/mts/src/model/QueryMediaListByURLResult.cc index 465f77614..438f28a25 100644 --- a/mts/src/model/QueryMediaListByURLResult.cc +++ b/mts/src/model/QueryMediaListByURLResult.cc @@ -43,211 +43,211 @@ void QueryMediaListByURLResult::parse(const std::string &payload) for (auto valueMediaListMedia : allMediaListNode) { Media mediaListObject; - if(!valueMediaListMedia["MediaId"].isNull()) - mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString(); - if(!valueMediaListMedia["Title"].isNull()) - mediaListObject.title = valueMediaListMedia["Title"].asString(); - if(!valueMediaListMedia["Description"].isNull()) - mediaListObject.description = valueMediaListMedia["Description"].asString(); - if(!valueMediaListMedia["CoverURL"].isNull()) - mediaListObject.coverURL = valueMediaListMedia["CoverURL"].asString(); - if(!valueMediaListMedia["CateId"].isNull()) - mediaListObject.cateId = std::stol(valueMediaListMedia["CateId"].asString()); - if(!valueMediaListMedia["Duration"].isNull()) - mediaListObject.duration = valueMediaListMedia["Duration"].asString(); - if(!valueMediaListMedia["Format"].isNull()) - mediaListObject.format = valueMediaListMedia["Format"].asString(); - if(!valueMediaListMedia["Size"].isNull()) - mediaListObject.size = valueMediaListMedia["Size"].asString(); - if(!valueMediaListMedia["Bitrate"].isNull()) - mediaListObject.bitrate = valueMediaListMedia["Bitrate"].asString(); - if(!valueMediaListMedia["Width"].isNull()) - mediaListObject.width = valueMediaListMedia["Width"].asString(); - if(!valueMediaListMedia["Height"].isNull()) - mediaListObject.height = valueMediaListMedia["Height"].asString(); - if(!valueMediaListMedia["Fps"].isNull()) - mediaListObject.fps = valueMediaListMedia["Fps"].asString(); - if(!valueMediaListMedia["PublishState"].isNull()) - mediaListObject.publishState = valueMediaListMedia["PublishState"].asString(); - if(!valueMediaListMedia["CensorState"].isNull()) - mediaListObject.censorState = valueMediaListMedia["CensorState"].asString(); if(!valueMediaListMedia["CreationTime"].isNull()) mediaListObject.creationTime = valueMediaListMedia["CreationTime"].asString(); - auto allPlayListNode = allMediaListNode["PlayList"]["Play"]; - for (auto allMediaListNodePlayListPlay : allPlayListNode) + if(!valueMediaListMedia["CateId"].isNull()) + mediaListObject.cateId = std::stol(valueMediaListMedia["CateId"].asString()); + if(!valueMediaListMedia["Height"].isNull()) + mediaListObject.height = valueMediaListMedia["Height"].asString(); + if(!valueMediaListMedia["CensorState"].isNull()) + mediaListObject.censorState = valueMediaListMedia["CensorState"].asString(); + if(!valueMediaListMedia["Bitrate"].isNull()) + mediaListObject.bitrate = valueMediaListMedia["Bitrate"].asString(); + if(!valueMediaListMedia["MediaId"].isNull()) + mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString(); + if(!valueMediaListMedia["PublishState"].isNull()) + mediaListObject.publishState = valueMediaListMedia["PublishState"].asString(); + if(!valueMediaListMedia["Description"].isNull()) + mediaListObject.description = valueMediaListMedia["Description"].asString(); + if(!valueMediaListMedia["Size"].isNull()) + mediaListObject.size = valueMediaListMedia["Size"].asString(); + if(!valueMediaListMedia["Width"].isNull()) + mediaListObject.width = valueMediaListMedia["Width"].asString(); + if(!valueMediaListMedia["CoverURL"].isNull()) + mediaListObject.coverURL = valueMediaListMedia["CoverURL"].asString(); + if(!valueMediaListMedia["Duration"].isNull()) + mediaListObject.duration = valueMediaListMedia["Duration"].asString(); + if(!valueMediaListMedia["Fps"].isNull()) + mediaListObject.fps = valueMediaListMedia["Fps"].asString(); + if(!valueMediaListMedia["Title"].isNull()) + mediaListObject.title = valueMediaListMedia["Title"].asString(); + if(!valueMediaListMedia["Format"].isNull()) + mediaListObject.format = valueMediaListMedia["Format"].asString(); + auto allPlayListNode = valueMediaListMedia["PlayList"]["Play"]; + for (auto valueMediaListMediaPlayListPlay : allPlayListNode) { Media::Play playListObject; - if(!allMediaListNodePlayListPlay["ActivityName"].isNull()) - playListObject.activityName = allMediaListNodePlayListPlay["ActivityName"].asString(); - if(!allMediaListNodePlayListPlay["MediaWorkflowId"].isNull()) - playListObject.mediaWorkflowId = allMediaListNodePlayListPlay["MediaWorkflowId"].asString(); - if(!allMediaListNodePlayListPlay["MediaWorkflowName"].isNull()) - playListObject.mediaWorkflowName = allMediaListNodePlayListPlay["MediaWorkflowName"].asString(); - if(!allMediaListNodePlayListPlay["Duration"].isNull()) - playListObject.duration = allMediaListNodePlayListPlay["Duration"].asString(); - if(!allMediaListNodePlayListPlay["Format"].isNull()) - playListObject.format = allMediaListNodePlayListPlay["Format"].asString(); - if(!allMediaListNodePlayListPlay["Size"].isNull()) - playListObject.size = allMediaListNodePlayListPlay["Size"].asString(); - if(!allMediaListNodePlayListPlay["Bitrate"].isNull()) - playListObject.bitrate = allMediaListNodePlayListPlay["Bitrate"].asString(); - if(!allMediaListNodePlayListPlay["Width"].isNull()) - playListObject.width = allMediaListNodePlayListPlay["Width"].asString(); - if(!allMediaListNodePlayListPlay["Height"].isNull()) - playListObject.height = allMediaListNodePlayListPlay["Height"].asString(); - if(!allMediaListNodePlayListPlay["Fps"].isNull()) - playListObject.fps = allMediaListNodePlayListPlay["Fps"].asString(); - if(!allMediaListNodePlayListPlay["Encryption"].isNull()) - playListObject.encryption = allMediaListNodePlayListPlay["Encryption"].asString(); + if(!valueMediaListMediaPlayListPlay["Encryption"].isNull()) + playListObject.encryption = valueMediaListMediaPlayListPlay["Encryption"].asString(); + if(!valueMediaListMediaPlayListPlay["Height"].isNull()) + playListObject.height = valueMediaListMediaPlayListPlay["Height"].asString(); + if(!valueMediaListMediaPlayListPlay["Bitrate"].isNull()) + playListObject.bitrate = valueMediaListMediaPlayListPlay["Bitrate"].asString(); + if(!valueMediaListMediaPlayListPlay["MediaWorkflowId"].isNull()) + playListObject.mediaWorkflowId = valueMediaListMediaPlayListPlay["MediaWorkflowId"].asString(); + if(!valueMediaListMediaPlayListPlay["Width"].isNull()) + playListObject.width = valueMediaListMediaPlayListPlay["Width"].asString(); + if(!valueMediaListMediaPlayListPlay["Size"].isNull()) + playListObject.size = valueMediaListMediaPlayListPlay["Size"].asString(); + if(!valueMediaListMediaPlayListPlay["Fps"].isNull()) + playListObject.fps = valueMediaListMediaPlayListPlay["Fps"].asString(); + if(!valueMediaListMediaPlayListPlay["Duration"].isNull()) + playListObject.duration = valueMediaListMediaPlayListPlay["Duration"].asString(); + if(!valueMediaListMediaPlayListPlay["ActivityName"].isNull()) + playListObject.activityName = valueMediaListMediaPlayListPlay["ActivityName"].asString(); + if(!valueMediaListMediaPlayListPlay["Format"].isNull()) + playListObject.format = valueMediaListMediaPlayListPlay["Format"].asString(); + if(!valueMediaListMediaPlayListPlay["MediaWorkflowName"].isNull()) + playListObject.mediaWorkflowName = valueMediaListMediaPlayListPlay["MediaWorkflowName"].asString(); auto file1Node = value["File"]; - if(!file1Node["URL"].isNull()) - playListObject.file1.uRL = file1Node["URL"].asString(); if(!file1Node["State"].isNull()) playListObject.file1.state = file1Node["State"].asString(); + if(!file1Node["URL"].isNull()) + playListObject.file1.uRL = file1Node["URL"].asString(); mediaListObject.playList.push_back(playListObject); } - auto allSnapshotListNode = allMediaListNode["SnapshotList"]["Snapshot"]; - for (auto allMediaListNodeSnapshotListSnapshot : allSnapshotListNode) - { - Media::Snapshot snapshotListObject; - if(!allMediaListNodeSnapshotListSnapshot["Type"].isNull()) - snapshotListObject.type = allMediaListNodeSnapshotListSnapshot["Type"].asString(); - if(!allMediaListNodeSnapshotListSnapshot["MediaWorkflowId"].isNull()) - snapshotListObject.mediaWorkflowId = allMediaListNodeSnapshotListSnapshot["MediaWorkflowId"].asString(); - if(!allMediaListNodeSnapshotListSnapshot["MediaWorkflowName"].isNull()) - snapshotListObject.mediaWorkflowName = allMediaListNodeSnapshotListSnapshot["MediaWorkflowName"].asString(); - if(!allMediaListNodeSnapshotListSnapshot["ActivityName"].isNull()) - snapshotListObject.activityName = allMediaListNodeSnapshotListSnapshot["ActivityName"].asString(); - if(!allMediaListNodeSnapshotListSnapshot["Count"].isNull()) - snapshotListObject.count = allMediaListNodeSnapshotListSnapshot["Count"].asString(); - auto file2Node = value["File"]; - if(!file2Node["URL"].isNull()) - snapshotListObject.file2.uRL = file2Node["URL"].asString(); - if(!file2Node["State"].isNull()) - snapshotListObject.file2.state = file2Node["State"].asString(); - mediaListObject.snapshotList.push_back(snapshotListObject); - } - auto allSummaryListNode = allMediaListNode["SummaryList"]["Summary"]; - for (auto allMediaListNodeSummaryListSummary : allSummaryListNode) + auto allSummaryListNode = valueMediaListMedia["SummaryList"]["Summary"]; + for (auto valueMediaListMediaSummaryListSummary : allSummaryListNode) { Media::Summary summaryListObject; - if(!allMediaListNodeSummaryListSummary["Type"].isNull()) - summaryListObject.type = allMediaListNodeSummaryListSummary["Type"].asString(); - if(!allMediaListNodeSummaryListSummary["MediaWorkflowId"].isNull()) - summaryListObject.mediaWorkflowId = allMediaListNodeSummaryListSummary["MediaWorkflowId"].asString(); - if(!allMediaListNodeSummaryListSummary["MediaWorkflowName"].isNull()) - summaryListObject.mediaWorkflowName = allMediaListNodeSummaryListSummary["MediaWorkflowName"].asString(); - if(!allMediaListNodeSummaryListSummary["ActivityName"].isNull()) - summaryListObject.activityName = allMediaListNodeSummaryListSummary["ActivityName"].asString(); - auto file3Node = value["File"]; - if(!file3Node["URL"].isNull()) - summaryListObject.file3.uRL = file3Node["URL"].asString(); - if(!file3Node["State"].isNull()) - summaryListObject.file3.state = file3Node["State"].asString(); + if(!valueMediaListMediaSummaryListSummary["Type"].isNull()) + summaryListObject.type = valueMediaListMediaSummaryListSummary["Type"].asString(); + if(!valueMediaListMediaSummaryListSummary["MediaWorkflowId"].isNull()) + summaryListObject.mediaWorkflowId = valueMediaListMediaSummaryListSummary["MediaWorkflowId"].asString(); + if(!valueMediaListMediaSummaryListSummary["ActivityName"].isNull()) + summaryListObject.activityName = valueMediaListMediaSummaryListSummary["ActivityName"].asString(); + if(!valueMediaListMediaSummaryListSummary["MediaWorkflowName"].isNull()) + summaryListObject.mediaWorkflowName = valueMediaListMediaSummaryListSummary["MediaWorkflowName"].asString(); + auto file2Node = value["File"]; + if(!file2Node["State"].isNull()) + summaryListObject.file2.state = file2Node["State"].asString(); + if(!file2Node["URL"].isNull()) + summaryListObject.file2.uRL = file2Node["URL"].asString(); mediaListObject.summaryList.push_back(summaryListObject); } + auto allSnapshotListNode = valueMediaListMedia["SnapshotList"]["Snapshot"]; + for (auto valueMediaListMediaSnapshotListSnapshot : allSnapshotListNode) + { + Media::Snapshot snapshotListObject; + if(!valueMediaListMediaSnapshotListSnapshot["Type"].isNull()) + snapshotListObject.type = valueMediaListMediaSnapshotListSnapshot["Type"].asString(); + if(!valueMediaListMediaSnapshotListSnapshot["MediaWorkflowId"].isNull()) + snapshotListObject.mediaWorkflowId = valueMediaListMediaSnapshotListSnapshot["MediaWorkflowId"].asString(); + if(!valueMediaListMediaSnapshotListSnapshot["ActivityName"].isNull()) + snapshotListObject.activityName = valueMediaListMediaSnapshotListSnapshot["ActivityName"].asString(); + if(!valueMediaListMediaSnapshotListSnapshot["Count"].isNull()) + snapshotListObject.count = valueMediaListMediaSnapshotListSnapshot["Count"].asString(); + if(!valueMediaListMediaSnapshotListSnapshot["MediaWorkflowName"].isNull()) + snapshotListObject.mediaWorkflowName = valueMediaListMediaSnapshotListSnapshot["MediaWorkflowName"].asString(); + auto file3Node = value["File"]; + if(!file3Node["State"].isNull()) + snapshotListObject.file3.state = file3Node["State"].asString(); + if(!file3Node["URL"].isNull()) + snapshotListObject.file3.uRL = file3Node["URL"].asString(); + mediaListObject.snapshotList.push_back(snapshotListObject); + } auto fileNode = value["File"]; - if(!fileNode["URL"].isNull()) - mediaListObject.file.uRL = fileNode["URL"].asString(); if(!fileNode["State"].isNull()) mediaListObject.file.state = fileNode["State"].asString(); + if(!fileNode["URL"].isNull()) + mediaListObject.file.uRL = fileNode["URL"].asString(); auto mediaInfoNode = value["MediaInfo"]; auto streamsNode = mediaInfoNode["Streams"]; auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) { Media::MediaInfo::Streams::VideoStream videoStreamObject; - if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) - videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) + videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); if(!streamsNodeVideoStreamListVideoStream["Rotate"].isNull()) videoStreamObject.rotate = streamsNodeVideoStreamListVideoStream["Rotate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); auto networkCostNode = value["NetworkCost"]; if(!networkCostNode["PreloadTime"].isNull()) videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); if(!networkCostNode["AvgBitrate"].isNull()) videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); mediaListObject.mediaInfo.streams.videoStreamList.push_back(videoStreamObject); } auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) { Media::MediaInfo::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); mediaListObject.mediaInfo.streams.audioStreamList.push_back(audioStreamObject); } auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; @@ -261,22 +261,22 @@ void QueryMediaListByURLResult::parse(const std::string &payload) mediaListObject.mediaInfo.streams.subtitleStreamList.push_back(subtitleStreamObject); } auto formatNode = mediaInfoNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - mediaListObject.mediaInfo.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - mediaListObject.mediaInfo.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - mediaListObject.mediaInfo.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - mediaListObject.mediaInfo.format.formatLongName = formatNode["FormatLongName"].asString(); if(!formatNode["StartTime"].isNull()) mediaListObject.mediaInfo.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - mediaListObject.mediaInfo.format.duration = formatNode["Duration"].asString(); + if(!formatNode["NumPrograms"].isNull()) + mediaListObject.mediaInfo.format.numPrograms = formatNode["NumPrograms"].asString(); if(!formatNode["Size"].isNull()) mediaListObject.mediaInfo.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + mediaListObject.mediaInfo.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + mediaListObject.mediaInfo.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + mediaListObject.mediaInfo.format.duration = formatNode["Duration"].asString(); if(!formatNode["Bitrate"].isNull()) mediaListObject.mediaInfo.format.bitrate = formatNode["Bitrate"].asString(); + if(!formatNode["FormatName"].isNull()) + mediaListObject.mediaInfo.format.formatName = formatNode["FormatName"].asString(); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) mediaListObject.tags.push_back(value.asString()); diff --git a/mts/src/model/QueryMediaListRequest.cc b/mts/src/model/QueryMediaListRequest.cc index 0322df22f..d02f77b94 100644 --- a/mts/src/model/QueryMediaListRequest.cc +++ b/mts/src/model/QueryMediaListRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::QueryMediaListRequest; - -QueryMediaListRequest::QueryMediaListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMediaList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMediaListRequest::~QueryMediaListRequest() -{} - -long QueryMediaListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMediaListRequest; + +QueryMediaListRequest::QueryMediaListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMediaList") { + setMethod(HttpRequest::Method::Post); } -void QueryMediaListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryMediaListRequest::~QueryMediaListRequest() {} + +long QueryMediaListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -bool QueryMediaListRequest::getIncludeSummaryList()const -{ - return includeSummaryList_; +void QueryMediaListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMediaListRequest::setIncludeSummaryList(bool includeSummaryList) -{ - includeSummaryList_ = includeSummaryList; - setParameter("IncludeSummaryList", includeSummaryList ? "true" : "false"); +bool QueryMediaListRequest::getIncludeSummaryList() const { + return includeSummaryList_; } -std::string QueryMediaListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMediaListRequest::setIncludeSummaryList(bool includeSummaryList) { + includeSummaryList_ = includeSummaryList; + setParameter(std::string("IncludeSummaryList"), includeSummaryList ? "true" : "false"); } -void QueryMediaListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMediaListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryMediaListRequest::getMediaIds()const -{ - return mediaIds_; +void QueryMediaListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryMediaListRequest::setMediaIds(const std::string& mediaIds) -{ - mediaIds_ = mediaIds; - setParameter("MediaIds", mediaIds); +std::string QueryMediaListRequest::getMediaIds() const { + return mediaIds_; } -bool QueryMediaListRequest::getIncludePlayList()const -{ - return includePlayList_; +void QueryMediaListRequest::setMediaIds(const std::string &mediaIds) { + mediaIds_ = mediaIds; + setParameter(std::string("MediaIds"), mediaIds); } -void QueryMediaListRequest::setIncludePlayList(bool includePlayList) -{ - includePlayList_ = includePlayList; - setParameter("IncludePlayList", includePlayList ? "true" : "false"); +bool QueryMediaListRequest::getIncludePlayList() const { + return includePlayList_; } -std::string QueryMediaListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMediaListRequest::setIncludePlayList(bool includePlayList) { + includePlayList_ = includePlayList; + setParameter(std::string("IncludePlayList"), includePlayList ? "true" : "false"); } -void QueryMediaListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMediaListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -bool QueryMediaListRequest::getIncludeSnapshotList()const -{ - return includeSnapshotList_; +void QueryMediaListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMediaListRequest::setIncludeSnapshotList(bool includeSnapshotList) -{ - includeSnapshotList_ = includeSnapshotList; - setParameter("IncludeSnapshotList", includeSnapshotList ? "true" : "false"); +bool QueryMediaListRequest::getIncludeSnapshotList() const { + return includeSnapshotList_; } -std::string QueryMediaListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMediaListRequest::setIncludeSnapshotList(bool includeSnapshotList) { + includeSnapshotList_ = includeSnapshotList; + setParameter(std::string("IncludeSnapshotList"), includeSnapshotList ? "true" : "false"); } -void QueryMediaListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMediaListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMediaListRequest::getOwnerId()const -{ - return ownerId_; +void QueryMediaListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMediaListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMediaListRequest::getOwnerId() const { + return ownerId_; } -bool QueryMediaListRequest::getIncludeMediaInfo()const -{ - return includeMediaInfo_; +void QueryMediaListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMediaListRequest::setIncludeMediaInfo(bool includeMediaInfo) -{ - includeMediaInfo_ = includeMediaInfo; - setParameter("IncludeMediaInfo", includeMediaInfo ? "true" : "false"); +bool QueryMediaListRequest::getIncludeMediaInfo() const { + return includeMediaInfo_; +} + +void QueryMediaListRequest::setIncludeMediaInfo(bool includeMediaInfo) { + includeMediaInfo_ = includeMediaInfo; + setParameter(std::string("IncludeMediaInfo"), includeMediaInfo ? "true" : "false"); } diff --git a/mts/src/model/QueryMediaListResult.cc b/mts/src/model/QueryMediaListResult.cc index a35579e3f..dd3e857b7 100644 --- a/mts/src/model/QueryMediaListResult.cc +++ b/mts/src/model/QueryMediaListResult.cc @@ -43,211 +43,211 @@ void QueryMediaListResult::parse(const std::string &payload) for (auto valueMediaListMedia : allMediaListNode) { Media mediaListObject; - if(!valueMediaListMedia["MediaId"].isNull()) - mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString(); - if(!valueMediaListMedia["Title"].isNull()) - mediaListObject.title = valueMediaListMedia["Title"].asString(); - if(!valueMediaListMedia["Description"].isNull()) - mediaListObject.description = valueMediaListMedia["Description"].asString(); - if(!valueMediaListMedia["CoverURL"].isNull()) - mediaListObject.coverURL = valueMediaListMedia["CoverURL"].asString(); - if(!valueMediaListMedia["CateId"].isNull()) - mediaListObject.cateId = std::stol(valueMediaListMedia["CateId"].asString()); - if(!valueMediaListMedia["Duration"].isNull()) - mediaListObject.duration = valueMediaListMedia["Duration"].asString(); - if(!valueMediaListMedia["Format"].isNull()) - mediaListObject.format = valueMediaListMedia["Format"].asString(); - if(!valueMediaListMedia["Size"].isNull()) - mediaListObject.size = valueMediaListMedia["Size"].asString(); - if(!valueMediaListMedia["Bitrate"].isNull()) - mediaListObject.bitrate = valueMediaListMedia["Bitrate"].asString(); - if(!valueMediaListMedia["Width"].isNull()) - mediaListObject.width = valueMediaListMedia["Width"].asString(); - if(!valueMediaListMedia["Height"].isNull()) - mediaListObject.height = valueMediaListMedia["Height"].asString(); - if(!valueMediaListMedia["Fps"].isNull()) - mediaListObject.fps = valueMediaListMedia["Fps"].asString(); - if(!valueMediaListMedia["PublishState"].isNull()) - mediaListObject.publishState = valueMediaListMedia["PublishState"].asString(); - if(!valueMediaListMedia["CensorState"].isNull()) - mediaListObject.censorState = valueMediaListMedia["CensorState"].asString(); if(!valueMediaListMedia["CreationTime"].isNull()) mediaListObject.creationTime = valueMediaListMedia["CreationTime"].asString(); - auto allPlayListNode = allMediaListNode["PlayList"]["Play"]; - for (auto allMediaListNodePlayListPlay : allPlayListNode) + if(!valueMediaListMedia["CateId"].isNull()) + mediaListObject.cateId = std::stol(valueMediaListMedia["CateId"].asString()); + if(!valueMediaListMedia["Height"].isNull()) + mediaListObject.height = valueMediaListMedia["Height"].asString(); + if(!valueMediaListMedia["CensorState"].isNull()) + mediaListObject.censorState = valueMediaListMedia["CensorState"].asString(); + if(!valueMediaListMedia["Bitrate"].isNull()) + mediaListObject.bitrate = valueMediaListMedia["Bitrate"].asString(); + if(!valueMediaListMedia["MediaId"].isNull()) + mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString(); + if(!valueMediaListMedia["PublishState"].isNull()) + mediaListObject.publishState = valueMediaListMedia["PublishState"].asString(); + if(!valueMediaListMedia["Description"].isNull()) + mediaListObject.description = valueMediaListMedia["Description"].asString(); + if(!valueMediaListMedia["Size"].isNull()) + mediaListObject.size = valueMediaListMedia["Size"].asString(); + if(!valueMediaListMedia["Width"].isNull()) + mediaListObject.width = valueMediaListMedia["Width"].asString(); + if(!valueMediaListMedia["CoverURL"].isNull()) + mediaListObject.coverURL = valueMediaListMedia["CoverURL"].asString(); + if(!valueMediaListMedia["Duration"].isNull()) + mediaListObject.duration = valueMediaListMedia["Duration"].asString(); + if(!valueMediaListMedia["Fps"].isNull()) + mediaListObject.fps = valueMediaListMedia["Fps"].asString(); + if(!valueMediaListMedia["Title"].isNull()) + mediaListObject.title = valueMediaListMedia["Title"].asString(); + if(!valueMediaListMedia["Format"].isNull()) + mediaListObject.format = valueMediaListMedia["Format"].asString(); + auto allPlayListNode = valueMediaListMedia["PlayList"]["Play"]; + for (auto valueMediaListMediaPlayListPlay : allPlayListNode) { Media::Play playListObject; - if(!allMediaListNodePlayListPlay["ActivityName"].isNull()) - playListObject.activityName = allMediaListNodePlayListPlay["ActivityName"].asString(); - if(!allMediaListNodePlayListPlay["MediaWorkflowId"].isNull()) - playListObject.mediaWorkflowId = allMediaListNodePlayListPlay["MediaWorkflowId"].asString(); - if(!allMediaListNodePlayListPlay["MediaWorkflowName"].isNull()) - playListObject.mediaWorkflowName = allMediaListNodePlayListPlay["MediaWorkflowName"].asString(); - if(!allMediaListNodePlayListPlay["Duration"].isNull()) - playListObject.duration = allMediaListNodePlayListPlay["Duration"].asString(); - if(!allMediaListNodePlayListPlay["Format"].isNull()) - playListObject.format = allMediaListNodePlayListPlay["Format"].asString(); - if(!allMediaListNodePlayListPlay["Size"].isNull()) - playListObject.size = allMediaListNodePlayListPlay["Size"].asString(); - if(!allMediaListNodePlayListPlay["Bitrate"].isNull()) - playListObject.bitrate = allMediaListNodePlayListPlay["Bitrate"].asString(); - if(!allMediaListNodePlayListPlay["Width"].isNull()) - playListObject.width = allMediaListNodePlayListPlay["Width"].asString(); - if(!allMediaListNodePlayListPlay["Height"].isNull()) - playListObject.height = allMediaListNodePlayListPlay["Height"].asString(); - if(!allMediaListNodePlayListPlay["Fps"].isNull()) - playListObject.fps = allMediaListNodePlayListPlay["Fps"].asString(); - if(!allMediaListNodePlayListPlay["Encryption"].isNull()) - playListObject.encryption = allMediaListNodePlayListPlay["Encryption"].asString(); + if(!valueMediaListMediaPlayListPlay["Encryption"].isNull()) + playListObject.encryption = valueMediaListMediaPlayListPlay["Encryption"].asString(); + if(!valueMediaListMediaPlayListPlay["Height"].isNull()) + playListObject.height = valueMediaListMediaPlayListPlay["Height"].asString(); + if(!valueMediaListMediaPlayListPlay["Bitrate"].isNull()) + playListObject.bitrate = valueMediaListMediaPlayListPlay["Bitrate"].asString(); + if(!valueMediaListMediaPlayListPlay["MediaWorkflowId"].isNull()) + playListObject.mediaWorkflowId = valueMediaListMediaPlayListPlay["MediaWorkflowId"].asString(); + if(!valueMediaListMediaPlayListPlay["Width"].isNull()) + playListObject.width = valueMediaListMediaPlayListPlay["Width"].asString(); + if(!valueMediaListMediaPlayListPlay["Size"].isNull()) + playListObject.size = valueMediaListMediaPlayListPlay["Size"].asString(); + if(!valueMediaListMediaPlayListPlay["Fps"].isNull()) + playListObject.fps = valueMediaListMediaPlayListPlay["Fps"].asString(); + if(!valueMediaListMediaPlayListPlay["Duration"].isNull()) + playListObject.duration = valueMediaListMediaPlayListPlay["Duration"].asString(); + if(!valueMediaListMediaPlayListPlay["ActivityName"].isNull()) + playListObject.activityName = valueMediaListMediaPlayListPlay["ActivityName"].asString(); + if(!valueMediaListMediaPlayListPlay["Format"].isNull()) + playListObject.format = valueMediaListMediaPlayListPlay["Format"].asString(); + if(!valueMediaListMediaPlayListPlay["MediaWorkflowName"].isNull()) + playListObject.mediaWorkflowName = valueMediaListMediaPlayListPlay["MediaWorkflowName"].asString(); auto file1Node = value["File"]; - if(!file1Node["URL"].isNull()) - playListObject.file1.uRL = file1Node["URL"].asString(); if(!file1Node["State"].isNull()) playListObject.file1.state = file1Node["State"].asString(); + if(!file1Node["URL"].isNull()) + playListObject.file1.uRL = file1Node["URL"].asString(); mediaListObject.playList.push_back(playListObject); } - auto allSnapshotListNode = allMediaListNode["SnapshotList"]["Snapshot"]; - for (auto allMediaListNodeSnapshotListSnapshot : allSnapshotListNode) - { - Media::Snapshot snapshotListObject; - if(!allMediaListNodeSnapshotListSnapshot["Type"].isNull()) - snapshotListObject.type = allMediaListNodeSnapshotListSnapshot["Type"].asString(); - if(!allMediaListNodeSnapshotListSnapshot["MediaWorkflowId"].isNull()) - snapshotListObject.mediaWorkflowId = allMediaListNodeSnapshotListSnapshot["MediaWorkflowId"].asString(); - if(!allMediaListNodeSnapshotListSnapshot["MediaWorkflowName"].isNull()) - snapshotListObject.mediaWorkflowName = allMediaListNodeSnapshotListSnapshot["MediaWorkflowName"].asString(); - if(!allMediaListNodeSnapshotListSnapshot["ActivityName"].isNull()) - snapshotListObject.activityName = allMediaListNodeSnapshotListSnapshot["ActivityName"].asString(); - if(!allMediaListNodeSnapshotListSnapshot["Count"].isNull()) - snapshotListObject.count = allMediaListNodeSnapshotListSnapshot["Count"].asString(); - auto file2Node = value["File"]; - if(!file2Node["URL"].isNull()) - snapshotListObject.file2.uRL = file2Node["URL"].asString(); - if(!file2Node["State"].isNull()) - snapshotListObject.file2.state = file2Node["State"].asString(); - mediaListObject.snapshotList.push_back(snapshotListObject); - } - auto allSummaryListNode = allMediaListNode["SummaryList"]["Summary"]; - for (auto allMediaListNodeSummaryListSummary : allSummaryListNode) + auto allSummaryListNode = valueMediaListMedia["SummaryList"]["Summary"]; + for (auto valueMediaListMediaSummaryListSummary : allSummaryListNode) { Media::Summary summaryListObject; - if(!allMediaListNodeSummaryListSummary["Type"].isNull()) - summaryListObject.type = allMediaListNodeSummaryListSummary["Type"].asString(); - if(!allMediaListNodeSummaryListSummary["MediaWorkflowId"].isNull()) - summaryListObject.mediaWorkflowId = allMediaListNodeSummaryListSummary["MediaWorkflowId"].asString(); - if(!allMediaListNodeSummaryListSummary["MediaWorkflowName"].isNull()) - summaryListObject.mediaWorkflowName = allMediaListNodeSummaryListSummary["MediaWorkflowName"].asString(); - if(!allMediaListNodeSummaryListSummary["ActivityName"].isNull()) - summaryListObject.activityName = allMediaListNodeSummaryListSummary["ActivityName"].asString(); - auto file3Node = value["File"]; - if(!file3Node["URL"].isNull()) - summaryListObject.file3.uRL = file3Node["URL"].asString(); - if(!file3Node["State"].isNull()) - summaryListObject.file3.state = file3Node["State"].asString(); + if(!valueMediaListMediaSummaryListSummary["Type"].isNull()) + summaryListObject.type = valueMediaListMediaSummaryListSummary["Type"].asString(); + if(!valueMediaListMediaSummaryListSummary["MediaWorkflowId"].isNull()) + summaryListObject.mediaWorkflowId = valueMediaListMediaSummaryListSummary["MediaWorkflowId"].asString(); + if(!valueMediaListMediaSummaryListSummary["ActivityName"].isNull()) + summaryListObject.activityName = valueMediaListMediaSummaryListSummary["ActivityName"].asString(); + if(!valueMediaListMediaSummaryListSummary["MediaWorkflowName"].isNull()) + summaryListObject.mediaWorkflowName = valueMediaListMediaSummaryListSummary["MediaWorkflowName"].asString(); + auto file2Node = value["File"]; + if(!file2Node["State"].isNull()) + summaryListObject.file2.state = file2Node["State"].asString(); + if(!file2Node["URL"].isNull()) + summaryListObject.file2.uRL = file2Node["URL"].asString(); mediaListObject.summaryList.push_back(summaryListObject); } + auto allSnapshotListNode = valueMediaListMedia["SnapshotList"]["Snapshot"]; + for (auto valueMediaListMediaSnapshotListSnapshot : allSnapshotListNode) + { + Media::Snapshot snapshotListObject; + if(!valueMediaListMediaSnapshotListSnapshot["Type"].isNull()) + snapshotListObject.type = valueMediaListMediaSnapshotListSnapshot["Type"].asString(); + if(!valueMediaListMediaSnapshotListSnapshot["MediaWorkflowId"].isNull()) + snapshotListObject.mediaWorkflowId = valueMediaListMediaSnapshotListSnapshot["MediaWorkflowId"].asString(); + if(!valueMediaListMediaSnapshotListSnapshot["ActivityName"].isNull()) + snapshotListObject.activityName = valueMediaListMediaSnapshotListSnapshot["ActivityName"].asString(); + if(!valueMediaListMediaSnapshotListSnapshot["Count"].isNull()) + snapshotListObject.count = valueMediaListMediaSnapshotListSnapshot["Count"].asString(); + if(!valueMediaListMediaSnapshotListSnapshot["MediaWorkflowName"].isNull()) + snapshotListObject.mediaWorkflowName = valueMediaListMediaSnapshotListSnapshot["MediaWorkflowName"].asString(); + auto file3Node = value["File"]; + if(!file3Node["State"].isNull()) + snapshotListObject.file3.state = file3Node["State"].asString(); + if(!file3Node["URL"].isNull()) + snapshotListObject.file3.uRL = file3Node["URL"].asString(); + mediaListObject.snapshotList.push_back(snapshotListObject); + } auto fileNode = value["File"]; - if(!fileNode["URL"].isNull()) - mediaListObject.file.uRL = fileNode["URL"].asString(); if(!fileNode["State"].isNull()) mediaListObject.file.state = fileNode["State"].asString(); + if(!fileNode["URL"].isNull()) + mediaListObject.file.uRL = fileNode["URL"].asString(); auto mediaInfoNode = value["MediaInfo"]; auto streamsNode = mediaInfoNode["Streams"]; auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) { Media::MediaInfo::Streams::VideoStream videoStreamObject; - if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) - videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) + videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); if(!streamsNodeVideoStreamListVideoStream["Rotate"].isNull()) videoStreamObject.rotate = streamsNodeVideoStreamListVideoStream["Rotate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); auto networkCostNode = value["NetworkCost"]; if(!networkCostNode["PreloadTime"].isNull()) videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); if(!networkCostNode["AvgBitrate"].isNull()) videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); mediaListObject.mediaInfo.streams.videoStreamList.push_back(videoStreamObject); } auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) { Media::MediaInfo::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); mediaListObject.mediaInfo.streams.audioStreamList.push_back(audioStreamObject); } auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; @@ -261,22 +261,22 @@ void QueryMediaListResult::parse(const std::string &payload) mediaListObject.mediaInfo.streams.subtitleStreamList.push_back(subtitleStreamObject); } auto formatNode = mediaInfoNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - mediaListObject.mediaInfo.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - mediaListObject.mediaInfo.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - mediaListObject.mediaInfo.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - mediaListObject.mediaInfo.format.formatLongName = formatNode["FormatLongName"].asString(); if(!formatNode["StartTime"].isNull()) mediaListObject.mediaInfo.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - mediaListObject.mediaInfo.format.duration = formatNode["Duration"].asString(); + if(!formatNode["NumPrograms"].isNull()) + mediaListObject.mediaInfo.format.numPrograms = formatNode["NumPrograms"].asString(); if(!formatNode["Size"].isNull()) mediaListObject.mediaInfo.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + mediaListObject.mediaInfo.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + mediaListObject.mediaInfo.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + mediaListObject.mediaInfo.format.duration = formatNode["Duration"].asString(); if(!formatNode["Bitrate"].isNull()) mediaListObject.mediaInfo.format.bitrate = formatNode["Bitrate"].asString(); + if(!formatNode["FormatName"].isNull()) + mediaListObject.mediaInfo.format.formatName = formatNode["FormatName"].asString(); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) mediaListObject.tags.push_back(value.asString()); diff --git a/mts/src/model/QueryMediaWorkflowExecutionListRequest.cc b/mts/src/model/QueryMediaWorkflowExecutionListRequest.cc index ac5e1e475..a5e999b4f 100644 --- a/mts/src/model/QueryMediaWorkflowExecutionListRequest.cc +++ b/mts/src/model/QueryMediaWorkflowExecutionListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryMediaWorkflowExecutionListRequest; - -QueryMediaWorkflowExecutionListRequest::QueryMediaWorkflowExecutionListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMediaWorkflowExecutionList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMediaWorkflowExecutionListRequest::~QueryMediaWorkflowExecutionListRequest() -{} - -std::string QueryMediaWorkflowExecutionListRequest::getRunIds()const -{ - return runIds_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMediaWorkflowExecutionListRequest; + +QueryMediaWorkflowExecutionListRequest::QueryMediaWorkflowExecutionListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMediaWorkflowExecutionList") { + setMethod(HttpRequest::Method::Post); } -void QueryMediaWorkflowExecutionListRequest::setRunIds(const std::string& runIds) -{ - runIds_ = runIds; - setParameter("RunIds", runIds); +QueryMediaWorkflowExecutionListRequest::~QueryMediaWorkflowExecutionListRequest() {} + +std::string QueryMediaWorkflowExecutionListRequest::getRunIds() const { + return runIds_; } -long QueryMediaWorkflowExecutionListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void QueryMediaWorkflowExecutionListRequest::setRunIds(const std::string &runIds) { + runIds_ = runIds; + setParameter(std::string("RunIds"), runIds); } -void QueryMediaWorkflowExecutionListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long QueryMediaWorkflowExecutionListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryMediaWorkflowExecutionListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMediaWorkflowExecutionListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMediaWorkflowExecutionListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMediaWorkflowExecutionListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryMediaWorkflowExecutionListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMediaWorkflowExecutionListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMediaWorkflowExecutionListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMediaWorkflowExecutionListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMediaWorkflowExecutionListRequest::getOwnerId()const -{ - return ownerId_; +void QueryMediaWorkflowExecutionListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMediaWorkflowExecutionListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMediaWorkflowExecutionListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryMediaWorkflowExecutionListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMediaWorkflowExecutionListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMediaWorkflowExecutionListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMediaWorkflowExecutionListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryMediaWorkflowExecutionListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/QueryMediaWorkflowExecutionListResult.cc b/mts/src/model/QueryMediaWorkflowExecutionListResult.cc index 7ed1c0115..920a005ce 100644 --- a/mts/src/model/QueryMediaWorkflowExecutionListResult.cc +++ b/mts/src/model/QueryMediaWorkflowExecutionListResult.cc @@ -43,38 +43,38 @@ void QueryMediaWorkflowExecutionListResult::parse(const std::string &payload) for (auto valueMediaWorkflowExecutionListMediaWorkflowExecution : allMediaWorkflowExecutionListNode) { MediaWorkflowExecution mediaWorkflowExecutionListObject; - if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["RunId"].isNull()) - mediaWorkflowExecutionListObject.runId = valueMediaWorkflowExecutionListMediaWorkflowExecution["RunId"].asString(); - if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaWorkflowId"].isNull()) - mediaWorkflowExecutionListObject.mediaWorkflowId = valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaWorkflowId"].asString(); - if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["Name"].isNull()) - mediaWorkflowExecutionListObject.name = valueMediaWorkflowExecutionListMediaWorkflowExecution["Name"].asString(); - if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["State"].isNull()) - mediaWorkflowExecutionListObject.state = valueMediaWorkflowExecutionListMediaWorkflowExecution["State"].asString(); - if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaId"].isNull()) - mediaWorkflowExecutionListObject.mediaId = valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaId"].asString(); if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["CreationTime"].isNull()) mediaWorkflowExecutionListObject.creationTime = valueMediaWorkflowExecutionListMediaWorkflowExecution["CreationTime"].asString(); - auto allActivityListNode = allMediaWorkflowExecutionListNode["ActivityList"]["Activity"]; - for (auto allMediaWorkflowExecutionListNodeActivityListActivity : allActivityListNode) + if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaWorkflowId"].isNull()) + mediaWorkflowExecutionListObject.mediaWorkflowId = valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaWorkflowId"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["State"].isNull()) + mediaWorkflowExecutionListObject.state = valueMediaWorkflowExecutionListMediaWorkflowExecution["State"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["Name"].isNull()) + mediaWorkflowExecutionListObject.name = valueMediaWorkflowExecutionListMediaWorkflowExecution["Name"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaId"].isNull()) + mediaWorkflowExecutionListObject.mediaId = valueMediaWorkflowExecutionListMediaWorkflowExecution["MediaId"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecution["RunId"].isNull()) + mediaWorkflowExecutionListObject.runId = valueMediaWorkflowExecutionListMediaWorkflowExecution["RunId"].asString(); + auto allActivityListNode = valueMediaWorkflowExecutionListMediaWorkflowExecution["ActivityList"]["Activity"]; + for (auto valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity : allActivityListNode) { MediaWorkflowExecution::Activity activityListObject; - if(!allMediaWorkflowExecutionListNodeActivityListActivity["Name"].isNull()) - activityListObject.name = allMediaWorkflowExecutionListNodeActivityListActivity["Name"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["Type"].isNull()) - activityListObject.type = allMediaWorkflowExecutionListNodeActivityListActivity["Type"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["JobId"].isNull()) - activityListObject.jobId = allMediaWorkflowExecutionListNodeActivityListActivity["JobId"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["State"].isNull()) - activityListObject.state = allMediaWorkflowExecutionListNodeActivityListActivity["State"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["Code"].isNull()) - activityListObject.code = allMediaWorkflowExecutionListNodeActivityListActivity["Code"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["Message"].isNull()) - activityListObject.message = allMediaWorkflowExecutionListNodeActivityListActivity["Message"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["StartTime"].isNull()) - activityListObject.startTime = allMediaWorkflowExecutionListNodeActivityListActivity["StartTime"].asString(); - if(!allMediaWorkflowExecutionListNodeActivityListActivity["EndTime"].isNull()) - activityListObject.endTime = allMediaWorkflowExecutionListNodeActivityListActivity["EndTime"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["EndTime"].isNull()) + activityListObject.endTime = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["EndTime"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Type"].isNull()) + activityListObject.type = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Type"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["StartTime"].isNull()) + activityListObject.startTime = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["StartTime"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["State"].isNull()) + activityListObject.state = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["State"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["JobId"].isNull()) + activityListObject.jobId = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["JobId"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Code"].isNull()) + activityListObject.code = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Code"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Message"].isNull()) + activityListObject.message = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Message"].asString(); + if(!valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Name"].isNull()) + activityListObject.name = valueMediaWorkflowExecutionListMediaWorkflowExecutionActivityListActivity["Name"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) activityListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); @@ -88,12 +88,12 @@ void QueryMediaWorkflowExecutionListResult::parse(const std::string &payload) if(!inputNode["UserData"].isNull()) mediaWorkflowExecutionListObject.input.userData = inputNode["UserData"].asString(); auto inputFileNode = inputNode["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - mediaWorkflowExecutionListObject.input.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - mediaWorkflowExecutionListObject.input.inputFile.location = inputFileNode["Location"].asString(); if(!inputFileNode["Object"].isNull()) mediaWorkflowExecutionListObject.input.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + mediaWorkflowExecutionListObject.input.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + mediaWorkflowExecutionListObject.input.inputFile.bucket = inputFileNode["Bucket"].asString(); mediaWorkflowExecutionList_.push_back(mediaWorkflowExecutionListObject); } auto allNonExistRunIds = value["NonExistRunIds"]["RunId"]; diff --git a/mts/src/model/QueryMediaWorkflowListRequest.cc b/mts/src/model/QueryMediaWorkflowListRequest.cc index d1e2a7afc..7bc7b8803 100644 --- a/mts/src/model/QueryMediaWorkflowListRequest.cc +++ b/mts/src/model/QueryMediaWorkflowListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryMediaWorkflowListRequest; - -QueryMediaWorkflowListRequest::QueryMediaWorkflowListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryMediaWorkflowList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryMediaWorkflowListRequest::~QueryMediaWorkflowListRequest() -{} - -std::string QueryMediaWorkflowListRequest::getMediaWorkflowIds()const -{ - return mediaWorkflowIds_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryMediaWorkflowListRequest; + +QueryMediaWorkflowListRequest::QueryMediaWorkflowListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryMediaWorkflowList") { + setMethod(HttpRequest::Method::Post); } -void QueryMediaWorkflowListRequest::setMediaWorkflowIds(const std::string& mediaWorkflowIds) -{ - mediaWorkflowIds_ = mediaWorkflowIds; - setParameter("MediaWorkflowIds", mediaWorkflowIds); +QueryMediaWorkflowListRequest::~QueryMediaWorkflowListRequest() {} + +std::string QueryMediaWorkflowListRequest::getMediaWorkflowIds() const { + return mediaWorkflowIds_; } -long QueryMediaWorkflowListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void QueryMediaWorkflowListRequest::setMediaWorkflowIds(const std::string &mediaWorkflowIds) { + mediaWorkflowIds_ = mediaWorkflowIds; + setParameter(std::string("MediaWorkflowIds"), mediaWorkflowIds); } -void QueryMediaWorkflowListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long QueryMediaWorkflowListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryMediaWorkflowListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryMediaWorkflowListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryMediaWorkflowListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryMediaWorkflowListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryMediaWorkflowListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryMediaWorkflowListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryMediaWorkflowListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryMediaWorkflowListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryMediaWorkflowListRequest::getOwnerId()const -{ - return ownerId_; +void QueryMediaWorkflowListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryMediaWorkflowListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryMediaWorkflowListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryMediaWorkflowListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryMediaWorkflowListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryMediaWorkflowListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryMediaWorkflowListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryMediaWorkflowListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/QueryMediaWorkflowListResult.cc b/mts/src/model/QueryMediaWorkflowListResult.cc index 4b77a9774..ce8549ace 100644 --- a/mts/src/model/QueryMediaWorkflowListResult.cc +++ b/mts/src/model/QueryMediaWorkflowListResult.cc @@ -43,18 +43,18 @@ void QueryMediaWorkflowListResult::parse(const std::string &payload) for (auto valueMediaWorkflowListMediaWorkflow : allMediaWorkflowListNode) { MediaWorkflow mediaWorkflowListObject; + if(!valueMediaWorkflowListMediaWorkflow["CreationTime"].isNull()) + mediaWorkflowListObject.creationTime = valueMediaWorkflowListMediaWorkflow["CreationTime"].asString(); if(!valueMediaWorkflowListMediaWorkflow["MediaWorkflowId"].isNull()) mediaWorkflowListObject.mediaWorkflowId = valueMediaWorkflowListMediaWorkflow["MediaWorkflowId"].asString(); + if(!valueMediaWorkflowListMediaWorkflow["State"].isNull()) + mediaWorkflowListObject.state = valueMediaWorkflowListMediaWorkflow["State"].asString(); + if(!valueMediaWorkflowListMediaWorkflow["TriggerMode"].isNull()) + mediaWorkflowListObject.triggerMode = valueMediaWorkflowListMediaWorkflow["TriggerMode"].asString(); if(!valueMediaWorkflowListMediaWorkflow["Name"].isNull()) mediaWorkflowListObject.name = valueMediaWorkflowListMediaWorkflow["Name"].asString(); if(!valueMediaWorkflowListMediaWorkflow["Topology"].isNull()) mediaWorkflowListObject.topology = valueMediaWorkflowListMediaWorkflow["Topology"].asString(); - if(!valueMediaWorkflowListMediaWorkflow["TriggerMode"].isNull()) - mediaWorkflowListObject.triggerMode = valueMediaWorkflowListMediaWorkflow["TriggerMode"].asString(); - if(!valueMediaWorkflowListMediaWorkflow["State"].isNull()) - mediaWorkflowListObject.state = valueMediaWorkflowListMediaWorkflow["State"].asString(); - if(!valueMediaWorkflowListMediaWorkflow["CreationTime"].isNull()) - mediaWorkflowListObject.creationTime = valueMediaWorkflowListMediaWorkflow["CreationTime"].asString(); mediaWorkflowList_.push_back(mediaWorkflowListObject); } auto allNonExistMediaWorkflowIds = value["NonExistMediaWorkflowIds"]["MediaWorkflowId"]; diff --git a/mts/src/model/QueryPipelineListRequest.cc b/mts/src/model/QueryPipelineListRequest.cc index aba598a37..97dfcbe57 100644 --- a/mts/src/model/QueryPipelineListRequest.cc +++ b/mts/src/model/QueryPipelineListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryPipelineListRequest; - -QueryPipelineListRequest::QueryPipelineListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryPipelineList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryPipelineListRequest::~QueryPipelineListRequest() -{} - -long QueryPipelineListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryPipelineListRequest; + +QueryPipelineListRequest::QueryPipelineListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryPipelineList") { + setMethod(HttpRequest::Method::Post); } -void QueryPipelineListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryPipelineListRequest::~QueryPipelineListRequest() {} + +long QueryPipelineListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryPipelineListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryPipelineListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryPipelineListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryPipelineListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryPipelineListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryPipelineListRequest::getOwnerId()const -{ - return ownerId_; +void QueryPipelineListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryPipelineListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryPipelineListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryPipelineListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryPipelineListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryPipelineListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryPipelineListRequest::getPipelineIds()const -{ - return pipelineIds_; +void QueryPipelineListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryPipelineListRequest::setPipelineIds(const std::string& pipelineIds) -{ - pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); +std::string QueryPipelineListRequest::getPipelineIds() const { + return pipelineIds_; +} + +void QueryPipelineListRequest::setPipelineIds(const std::string &pipelineIds) { + pipelineIds_ = pipelineIds; + setParameter(std::string("PipelineIds"), pipelineIds); } diff --git a/mts/src/model/QueryPipelineListResult.cc b/mts/src/model/QueryPipelineListResult.cc index c41fa5da7..2575f6685 100644 --- a/mts/src/model/QueryPipelineListResult.cc +++ b/mts/src/model/QueryPipelineListResult.cc @@ -43,29 +43,29 @@ void QueryPipelineListResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["Id"].isNull()) - pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); - if(!valuePipelineListPipeline["State"].isNull()) - pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["Speed"].isNull()) pipelineListObject.speed = valuePipelineListPipeline["Speed"].asString(); + if(!valuePipelineListPipeline["State"].isNull()) + pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["SpeedLevel"].isNull()) pipelineListObject.speedLevel = std::stol(valuePipelineListPipeline["SpeedLevel"].asString()); - if(!valuePipelineListPipeline["QuotaAllocate"].isNull()) - pipelineListObject.quotaAllocate = std::stol(valuePipelineListPipeline["QuotaAllocate"].asString()); if(!valuePipelineListPipeline["Role"].isNull()) pipelineListObject.role = valuePipelineListPipeline["Role"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["Id"].isNull()) + pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); + if(!valuePipelineListPipeline["QuotaAllocate"].isNull()) + pipelineListObject.quotaAllocate = std::stol(valuePipelineListPipeline["QuotaAllocate"].asString()); auto notifyConfigNode = value["NotifyConfig"]; - if(!notifyConfigNode["Topic"].isNull()) - pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); - if(!notifyConfigNode["QueueName"].isNull()) - pipelineListObject.notifyConfig.queueName = notifyConfigNode["QueueName"].asString(); if(!notifyConfigNode["MqTopic"].isNull()) pipelineListObject.notifyConfig.mqTopic = notifyConfigNode["MqTopic"].asString(); + if(!notifyConfigNode["QueueName"].isNull()) + pipelineListObject.notifyConfig.queueName = notifyConfigNode["QueueName"].asString(); if(!notifyConfigNode["MqTag"].isNull()) pipelineListObject.notifyConfig.mqTag = notifyConfigNode["MqTag"].asString(); + if(!notifyConfigNode["Topic"].isNull()) + pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); pipelineList_.push_back(pipelineListObject); } auto allNonExistPids = value["NonExistPids"]["String"]; diff --git a/mts/src/model/QueryPornJobListRequest.cc b/mts/src/model/QueryPornJobListRequest.cc index 054d9a13a..46e22dc36 100644 --- a/mts/src/model/QueryPornJobListRequest.cc +++ b/mts/src/model/QueryPornJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryPornJobListRequest; - -QueryPornJobListRequest::QueryPornJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryPornJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryPornJobListRequest::~QueryPornJobListRequest() -{} - -long QueryPornJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryPornJobListRequest; + +QueryPornJobListRequest::QueryPornJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryPornJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryPornJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryPornJobListRequest::~QueryPornJobListRequest() {} + +long QueryPornJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryPornJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryPornJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryPornJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryPornJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryPornJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryPornJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryPornJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryPornJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryPornJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryPornJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryPornJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryPornJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryPornJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryPornJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryPornJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryPornJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryPornJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryPornJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryPornJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryPornJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryPornJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryPornJobListResult.cc b/mts/src/model/QueryPornJobListResult.cc index 2e3a972a9..3eafe1f1b 100644 --- a/mts/src/model/QueryPornJobListResult.cc +++ b/mts/src/model/QueryPornJobListResult.cc @@ -43,74 +43,74 @@ void QueryPornJobListResult::parse(const std::string &payload) for (auto valuePornJobListPornJob : allPornJobListNode) { PornJob pornJobListObject; - if(!valuePornJobListPornJob["Id"].isNull()) - pornJobListObject.id = valuePornJobListPornJob["Id"].asString(); - if(!valuePornJobListPornJob["UserData"].isNull()) - pornJobListObject.userData = valuePornJobListPornJob["UserData"].asString(); - if(!valuePornJobListPornJob["PipelineId"].isNull()) - pornJobListObject.pipelineId = valuePornJobListPornJob["PipelineId"].asString(); + if(!valuePornJobListPornJob["CreationTime"].isNull()) + pornJobListObject.creationTime = valuePornJobListPornJob["CreationTime"].asString(); if(!valuePornJobListPornJob["State"].isNull()) pornJobListObject.state = valuePornJobListPornJob["State"].asString(); + if(!valuePornJobListPornJob["UserData"].isNull()) + pornJobListObject.userData = valuePornJobListPornJob["UserData"].asString(); if(!valuePornJobListPornJob["Code"].isNull()) pornJobListObject.code = valuePornJobListPornJob["Code"].asString(); if(!valuePornJobListPornJob["Message"].isNull()) pornJobListObject.message = valuePornJobListPornJob["Message"].asString(); - if(!valuePornJobListPornJob["CreationTime"].isNull()) - pornJobListObject.creationTime = valuePornJobListPornJob["CreationTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - pornJobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - pornJobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - pornJobListObject.input.object = inputNode["Object"].asString(); + if(!valuePornJobListPornJob["PipelineId"].isNull()) + pornJobListObject.pipelineId = valuePornJobListPornJob["PipelineId"].asString(); + if(!valuePornJobListPornJob["Id"].isNull()) + pornJobListObject.id = valuePornJobListPornJob["Id"].asString(); auto pornConfigNode = value["PornConfig"]; if(!pornConfigNode["Interval"].isNull()) pornJobListObject.pornConfig.interval = pornConfigNode["Interval"].asString(); if(!pornConfigNode["BizType"].isNull()) pornJobListObject.pornConfig.bizType = pornConfigNode["BizType"].asString(); auto outputFileNode = pornConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - pornJobListObject.pornConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - pornJobListObject.pornConfig.outputFile.location = outputFileNode["Location"].asString(); if(!outputFileNode["Object"].isNull()) pornJobListObject.pornConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + pornJobListObject.pornConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + pornJobListObject.pornConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); auto censorPornResultNode = value["CensorPornResult"]; - if(!censorPornResultNode["Label"].isNull()) - pornJobListObject.censorPornResult.label = censorPornResultNode["Label"].asString(); if(!censorPornResultNode["Suggestion"].isNull()) pornJobListObject.censorPornResult.suggestion = censorPornResultNode["Suggestion"].asString(); - if(!censorPornResultNode["MaxScore"].isNull()) - pornJobListObject.censorPornResult.maxScore = censorPornResultNode["MaxScore"].asString(); if(!censorPornResultNode["AverageScore"].isNull()) pornJobListObject.censorPornResult.averageScore = censorPornResultNode["AverageScore"].asString(); + if(!censorPornResultNode["Label"].isNull()) + pornJobListObject.censorPornResult.label = censorPornResultNode["Label"].asString(); + if(!censorPornResultNode["MaxScore"].isNull()) + pornJobListObject.censorPornResult.maxScore = censorPornResultNode["MaxScore"].asString(); auto allPornCounterListNode = censorPornResultNode["PornCounterList"]["Counter"]; for (auto censorPornResultNodePornCounterListCounter : allPornCounterListNode) { PornJob::CensorPornResult::Counter counterObject; - if(!censorPornResultNodePornCounterListCounter["Count"].isNull()) - counterObject.count = std::stoi(censorPornResultNodePornCounterListCounter["Count"].asString()); if(!censorPornResultNodePornCounterListCounter["Label"].isNull()) counterObject.label = censorPornResultNodePornCounterListCounter["Label"].asString(); + if(!censorPornResultNodePornCounterListCounter["Count"].isNull()) + counterObject.count = std::stoi(censorPornResultNodePornCounterListCounter["Count"].asString()); pornJobListObject.censorPornResult.pornCounterList.push_back(counterObject); } auto allPornTopListNode = censorPornResultNode["PornTopList"]["Top"]; for (auto censorPornResultNodePornTopListTop : allPornTopListNode) { PornJob::CensorPornResult::Top topObject; - if(!censorPornResultNodePornTopListTop["Label"].isNull()) - topObject.label = censorPornResultNodePornTopListTop["Label"].asString(); + if(!censorPornResultNodePornTopListTop["Index"].isNull()) + topObject.index = censorPornResultNodePornTopListTop["Index"].asString(); if(!censorPornResultNodePornTopListTop["Score"].isNull()) topObject.score = censorPornResultNodePornTopListTop["Score"].asString(); if(!censorPornResultNodePornTopListTop["Timestamp"].isNull()) topObject.timestamp = censorPornResultNodePornTopListTop["Timestamp"].asString(); - if(!censorPornResultNodePornTopListTop["Index"].isNull()) - topObject.index = censorPornResultNodePornTopListTop["Index"].asString(); if(!censorPornResultNodePornTopListTop["Object"].isNull()) topObject.object = censorPornResultNodePornTopListTop["Object"].asString(); + if(!censorPornResultNodePornTopListTop["Label"].isNull()) + topObject.label = censorPornResultNodePornTopListTop["Label"].asString(); pornJobListObject.censorPornResult.pornTopList.push_back(topObject); } + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + pornJobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + pornJobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + pornJobListObject.input.bucket = inputNode["Bucket"].asString(); pornJobList_.push_back(pornJobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryPornPipelineListRequest.cc b/mts/src/model/QueryPornPipelineListRequest.cc index 9161071b8..cda81392e 100644 --- a/mts/src/model/QueryPornPipelineListRequest.cc +++ b/mts/src/model/QueryPornPipelineListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryPornPipelineListRequest; - -QueryPornPipelineListRequest::QueryPornPipelineListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryPornPipelineList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryPornPipelineListRequest::~QueryPornPipelineListRequest() -{} - -long QueryPornPipelineListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryPornPipelineListRequest; + +QueryPornPipelineListRequest::QueryPornPipelineListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryPornPipelineList") { + setMethod(HttpRequest::Method::Post); } -void QueryPornPipelineListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryPornPipelineListRequest::~QueryPornPipelineListRequest() {} + +long QueryPornPipelineListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryPornPipelineListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryPornPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryPornPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryPornPipelineListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryPornPipelineListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryPornPipelineListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryPornPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryPornPipelineListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryPornPipelineListRequest::getOwnerId()const -{ - return ownerId_; +void QueryPornPipelineListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryPornPipelineListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryPornPipelineListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryPornPipelineListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryPornPipelineListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryPornPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryPornPipelineListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryPornPipelineListRequest::getPipelineIds()const -{ - return pipelineIds_; +void QueryPornPipelineListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryPornPipelineListRequest::setPipelineIds(const std::string& pipelineIds) -{ - pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); +std::string QueryPornPipelineListRequest::getPipelineIds() const { + return pipelineIds_; +} + +void QueryPornPipelineListRequest::setPipelineIds(const std::string &pipelineIds) { + pipelineIds_ = pipelineIds; + setParameter(std::string("PipelineIds"), pipelineIds); } diff --git a/mts/src/model/QueryPornPipelineListResult.cc b/mts/src/model/QueryPornPipelineListResult.cc index 79eaec3c9..8aa0c3d14 100644 --- a/mts/src/model/QueryPornPipelineListResult.cc +++ b/mts/src/model/QueryPornPipelineListResult.cc @@ -43,14 +43,14 @@ void QueryPornPipelineListResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["Id"].isNull()) - pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); if(!valuePipelineListPipeline["State"].isNull()) pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["Priority"].isNull()) pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["Id"].isNull()) + pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); auto notifyConfigNode = value["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/QuerySmarttagJobRequest.cc b/mts/src/model/QuerySmarttagJobRequest.cc index 2dd2ddf0d..d4bcd6894 100644 --- a/mts/src/model/QuerySmarttagJobRequest.cc +++ b/mts/src/model/QuerySmarttagJobRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QuerySmarttagJobRequest; - -QuerySmarttagJobRequest::QuerySmarttagJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "QuerySmarttagJob") -{ - setMethod(HttpRequest::Method::Post); -} - -QuerySmarttagJobRequest::~QuerySmarttagJobRequest() -{} - -long QuerySmarttagJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QuerySmarttagJobRequest; + +QuerySmarttagJobRequest::QuerySmarttagJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "QuerySmarttagJob") { + setMethod(HttpRequest::Method::Post); } -void QuerySmarttagJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QuerySmarttagJobRequest::~QuerySmarttagJobRequest() {} + +long QuerySmarttagJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QuerySmarttagJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QuerySmarttagJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QuerySmarttagJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QuerySmarttagJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QuerySmarttagJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QuerySmarttagJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QuerySmarttagJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QuerySmarttagJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long QuerySmarttagJobRequest::getOwnerId()const -{ - return ownerId_; +void QuerySmarttagJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QuerySmarttagJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QuerySmarttagJobRequest::getOwnerId() const { + return ownerId_; } -std::string QuerySmarttagJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QuerySmarttagJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QuerySmarttagJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QuerySmarttagJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QuerySmarttagJobRequest::getJobId()const -{ - return jobId_; +void QuerySmarttagJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QuerySmarttagJobRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string QuerySmarttagJobRequest::getJobId() const { + return jobId_; +} + +void QuerySmarttagJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } diff --git a/mts/src/model/QuerySmarttagTemplateListRequest.cc b/mts/src/model/QuerySmarttagTemplateListRequest.cc new file mode 100644 index 000000000..233271f09 --- /dev/null +++ b/mts/src/model/QuerySmarttagTemplateListRequest.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 + +using AlibabaCloud::Mts::Model::QuerySmarttagTemplateListRequest; + +QuerySmarttagTemplateListRequest::QuerySmarttagTemplateListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QuerySmarttagTemplateList") { + setMethod(HttpRequest::Method::Post); +} + +QuerySmarttagTemplateListRequest::~QuerySmarttagTemplateListRequest() {} + +long QuerySmarttagTemplateListRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void QuerySmarttagTemplateListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string QuerySmarttagTemplateListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void QuerySmarttagTemplateListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string QuerySmarttagTemplateListRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void QuerySmarttagTemplateListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long QuerySmarttagTemplateListRequest::getOwnerId() const { + return ownerId_; +} + +void QuerySmarttagTemplateListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string QuerySmarttagTemplateListRequest::getTemplateId() const { + return templateId_; +} + +void QuerySmarttagTemplateListRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); +} + +std::string QuerySmarttagTemplateListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QuerySmarttagTemplateListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + diff --git a/mts/src/model/QuerySmarttagTemplateListResult.cc b/mts/src/model/QuerySmarttagTemplateListResult.cc new file mode 100644 index 000000000..391242752 --- /dev/null +++ b/mts/src/model/QuerySmarttagTemplateListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +QuerySmarttagTemplateListResult::QuerySmarttagTemplateListResult() : + ServiceResult() +{} + +QuerySmarttagTemplateListResult::QuerySmarttagTemplateListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QuerySmarttagTemplateListResult::~QuerySmarttagTemplateListResult() +{} + +void QuerySmarttagTemplateListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTemplatesNode = value["Templates"]["Template"]; + for (auto valueTemplatesTemplate : allTemplatesNode) + { + _Template templatesObject; + if(!valueTemplatesTemplate["AnalyseTypes"].isNull()) + templatesObject.analyseTypes = valueTemplatesTemplate["AnalyseTypes"].asString(); + if(!valueTemplatesTemplate["Industry"].isNull()) + templatesObject.industry = valueTemplatesTemplate["Industry"].asString(); + if(!valueTemplatesTemplate["IsDefault"].isNull()) + templatesObject.isDefault = valueTemplatesTemplate["IsDefault"].asString() == "true"; + if(!valueTemplatesTemplate["TemplateName"].isNull()) + templatesObject.templateName = valueTemplatesTemplate["TemplateName"].asString(); + if(!valueTemplatesTemplate["TemplateId"].isNull()) + templatesObject.templateId = valueTemplatesTemplate["TemplateId"].asString(); + if(!valueTemplatesTemplate["FaceCategoryIds"].isNull()) + templatesObject.faceCategoryIds = valueTemplatesTemplate["FaceCategoryIds"].asString(); + if(!valueTemplatesTemplate["Scene"].isNull()) + templatesObject.scene = valueTemplatesTemplate["Scene"].asString(); + templates_.push_back(templatesObject); + } + +} + +std::vector QuerySmarttagTemplateListResult::getTemplates()const +{ + return templates_; +} + diff --git a/mts/src/model/QuerySnapshotJobListRequest.cc b/mts/src/model/QuerySnapshotJobListRequest.cc index 452e6118d..913cd0ade 100644 --- a/mts/src/model/QuerySnapshotJobListRequest.cc +++ b/mts/src/model/QuerySnapshotJobListRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Mts::Model::QuerySnapshotJobListRequest; - -QuerySnapshotJobListRequest::QuerySnapshotJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QuerySnapshotJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QuerySnapshotJobListRequest::~QuerySnapshotJobListRequest() -{} - -long QuerySnapshotJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QuerySnapshotJobListRequest; + +QuerySnapshotJobListRequest::QuerySnapshotJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QuerySnapshotJobList") { + setMethod(HttpRequest::Method::Post); } -void QuerySnapshotJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QuerySnapshotJobListRequest::~QuerySnapshotJobListRequest() {} + +long QuerySnapshotJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QuerySnapshotJobListRequest::getNextPageToken()const -{ - return nextPageToken_; +void QuerySnapshotJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QuerySnapshotJobListRequest::setNextPageToken(const std::string& nextPageToken) -{ - nextPageToken_ = nextPageToken; - setParameter("NextPageToken", nextPageToken); +std::string QuerySnapshotJobListRequest::getNextPageToken() const { + return nextPageToken_; } -std::string QuerySnapshotJobListRequest::getStartOfJobCreatedTimeRange()const -{ - return startOfJobCreatedTimeRange_; +void QuerySnapshotJobListRequest::setNextPageToken(const std::string &nextPageToken) { + nextPageToken_ = nextPageToken; + setParameter(std::string("NextPageToken"), nextPageToken); } -void QuerySnapshotJobListRequest::setStartOfJobCreatedTimeRange(const std::string& startOfJobCreatedTimeRange) -{ - startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; - setParameter("StartOfJobCreatedTimeRange", startOfJobCreatedTimeRange); +std::string QuerySnapshotJobListRequest::getStartOfJobCreatedTimeRange() const { + return startOfJobCreatedTimeRange_; } -std::string QuerySnapshotJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QuerySnapshotJobListRequest::setStartOfJobCreatedTimeRange(const std::string &startOfJobCreatedTimeRange) { + startOfJobCreatedTimeRange_ = startOfJobCreatedTimeRange; + setParameter(std::string("StartOfJobCreatedTimeRange"), startOfJobCreatedTimeRange); } -void QuerySnapshotJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QuerySnapshotJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QuerySnapshotJobListRequest::getState()const -{ - return state_; +void QuerySnapshotJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QuerySnapshotJobListRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string QuerySnapshotJobListRequest::getState() const { + return state_; } -std::string QuerySnapshotJobListRequest::getEndOfJobCreatedTimeRange()const -{ - return endOfJobCreatedTimeRange_; +void QuerySnapshotJobListRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void QuerySnapshotJobListRequest::setEndOfJobCreatedTimeRange(const std::string& endOfJobCreatedTimeRange) -{ - endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; - setParameter("EndOfJobCreatedTimeRange", endOfJobCreatedTimeRange); +std::string QuerySnapshotJobListRequest::getEndOfJobCreatedTimeRange() const { + return endOfJobCreatedTimeRange_; } -std::string QuerySnapshotJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QuerySnapshotJobListRequest::setEndOfJobCreatedTimeRange(const std::string &endOfJobCreatedTimeRange) { + endOfJobCreatedTimeRange_ = endOfJobCreatedTimeRange; + setParameter(std::string("EndOfJobCreatedTimeRange"), endOfJobCreatedTimeRange); } -void QuerySnapshotJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QuerySnapshotJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QuerySnapshotJobListRequest::getSnapshotJobIds()const -{ - return snapshotJobIds_; +void QuerySnapshotJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QuerySnapshotJobListRequest::setSnapshotJobIds(const std::string& snapshotJobIds) -{ - snapshotJobIds_ = snapshotJobIds; - setParameter("SnapshotJobIds", snapshotJobIds); +std::string QuerySnapshotJobListRequest::getSnapshotJobIds() const { + return snapshotJobIds_; } -std::string QuerySnapshotJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QuerySnapshotJobListRequest::setSnapshotJobIds(const std::string &snapshotJobIds) { + snapshotJobIds_ = snapshotJobIds; + setParameter(std::string("SnapshotJobIds"), snapshotJobIds); } -void QuerySnapshotJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QuerySnapshotJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QuerySnapshotJobListRequest::getMaximumPageSize()const -{ - return maximumPageSize_; +void QuerySnapshotJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QuerySnapshotJobListRequest::setMaximumPageSize(long maximumPageSize) -{ - maximumPageSize_ = maximumPageSize; - setParameter("MaximumPageSize", std::to_string(maximumPageSize)); +long QuerySnapshotJobListRequest::getMaximumPageSize() const { + return maximumPageSize_; } -long QuerySnapshotJobListRequest::getOwnerId()const -{ - return ownerId_; +void QuerySnapshotJobListRequest::setMaximumPageSize(long maximumPageSize) { + maximumPageSize_ = maximumPageSize; + setParameter(std::string("MaximumPageSize"), std::to_string(maximumPageSize)); } -void QuerySnapshotJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QuerySnapshotJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QuerySnapshotJobListRequest::getPipelineId()const -{ - return pipelineId_; +void QuerySnapshotJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QuerySnapshotJobListRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string QuerySnapshotJobListRequest::getPipelineId() const { + return pipelineId_; +} + +void QuerySnapshotJobListRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } diff --git a/mts/src/model/QuerySnapshotJobListResult.cc b/mts/src/model/QuerySnapshotJobListResult.cc index 22f4959f5..548108ce6 100644 --- a/mts/src/model/QuerySnapshotJobListResult.cc +++ b/mts/src/model/QuerySnapshotJobListResult.cc @@ -43,83 +43,74 @@ void QuerySnapshotJobListResult::parse(const std::string &payload) for (auto valueSnapshotJobListSnapshotJob : allSnapshotJobListNode) { SnapshotJob snapshotJobListObject; - if(!valueSnapshotJobListSnapshotJob["Id"].isNull()) - snapshotJobListObject.id = valueSnapshotJobListSnapshotJob["Id"].asString(); - if(!valueSnapshotJobListSnapshotJob["UserData"].isNull()) - snapshotJobListObject.userData = valueSnapshotJobListSnapshotJob["UserData"].asString(); - if(!valueSnapshotJobListSnapshotJob["PipelineId"].isNull()) - snapshotJobListObject.pipelineId = valueSnapshotJobListSnapshotJob["PipelineId"].asString(); + if(!valueSnapshotJobListSnapshotJob["CreationTime"].isNull()) + snapshotJobListObject.creationTime = valueSnapshotJobListSnapshotJob["CreationTime"].asString(); if(!valueSnapshotJobListSnapshotJob["State"].isNull()) snapshotJobListObject.state = valueSnapshotJobListSnapshotJob["State"].asString(); - if(!valueSnapshotJobListSnapshotJob["Code"].isNull()) - snapshotJobListObject.code = valueSnapshotJobListSnapshotJob["Code"].asString(); + if(!valueSnapshotJobListSnapshotJob["Message"].isNull()) + snapshotJobListObject.message = valueSnapshotJobListSnapshotJob["Message"].asString(); if(!valueSnapshotJobListSnapshotJob["Count"].isNull()) snapshotJobListObject.count = valueSnapshotJobListSnapshotJob["Count"].asString(); if(!valueSnapshotJobListSnapshotJob["TileCount"].isNull()) snapshotJobListObject.tileCount = valueSnapshotJobListSnapshotJob["TileCount"].asString(); - if(!valueSnapshotJobListSnapshotJob["Message"].isNull()) - snapshotJobListObject.message = valueSnapshotJobListSnapshotJob["Message"].asString(); - if(!valueSnapshotJobListSnapshotJob["CreationTime"].isNull()) - snapshotJobListObject.creationTime = valueSnapshotJobListSnapshotJob["CreationTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - snapshotJobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - snapshotJobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - snapshotJobListObject.input.object = inputNode["Object"].asString(); - if(!inputNode["RoleArn"].isNull()) - snapshotJobListObject.input.roleArn = inputNode["RoleArn"].asString(); + if(!valueSnapshotJobListSnapshotJob["UserData"].isNull()) + snapshotJobListObject.userData = valueSnapshotJobListSnapshotJob["UserData"].asString(); + if(!valueSnapshotJobListSnapshotJob["Code"].isNull()) + snapshotJobListObject.code = valueSnapshotJobListSnapshotJob["Code"].asString(); + if(!valueSnapshotJobListSnapshotJob["PipelineId"].isNull()) + snapshotJobListObject.pipelineId = valueSnapshotJobListSnapshotJob["PipelineId"].asString(); + if(!valueSnapshotJobListSnapshotJob["Id"].isNull()) + snapshotJobListObject.id = valueSnapshotJobListSnapshotJob["Id"].asString(); auto snapshotConfigNode = value["SnapshotConfig"]; if(!snapshotConfigNode["Time"].isNull()) snapshotJobListObject.snapshotConfig.time = snapshotConfigNode["Time"].asString(); if(!snapshotConfigNode["Interval"].isNull()) snapshotJobListObject.snapshotConfig.interval = snapshotConfigNode["Interval"].asString(); - if(!snapshotConfigNode["Num"].isNull()) - snapshotJobListObject.snapshotConfig.num = snapshotConfigNode["Num"].asString(); + if(!snapshotConfigNode["FrameType"].isNull()) + snapshotJobListObject.snapshotConfig.frameType = snapshotConfigNode["FrameType"].asString(); if(!snapshotConfigNode["Width"].isNull()) snapshotJobListObject.snapshotConfig.width = snapshotConfigNode["Width"].asString(); if(!snapshotConfigNode["Height"].isNull()) snapshotJobListObject.snapshotConfig.height = snapshotConfigNode["Height"].asString(); - if(!snapshotConfigNode["FrameType"].isNull()) - snapshotJobListObject.snapshotConfig.frameType = snapshotConfigNode["FrameType"].asString(); - auto outputFileNode = snapshotConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - snapshotJobListObject.snapshotConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - snapshotJobListObject.snapshotConfig.outputFile.location = outputFileNode["Location"].asString(); - if(!outputFileNode["Object"].isNull()) - snapshotJobListObject.snapshotConfig.outputFile.object = outputFileNode["Object"].asString(); - if(!outputFileNode["RoleArn"].isNull()) - snapshotJobListObject.snapshotConfig.outputFile.roleArn = outputFileNode["RoleArn"].asString(); - auto tileOutputFileNode = snapshotConfigNode["TileOutputFile"]; - if(!tileOutputFileNode["Bucket"].isNull()) - snapshotJobListObject.snapshotConfig.tileOutputFile.bucket = tileOutputFileNode["Bucket"].asString(); - if(!tileOutputFileNode["Location"].isNull()) - snapshotJobListObject.snapshotConfig.tileOutputFile.location = tileOutputFileNode["Location"].asString(); - if(!tileOutputFileNode["Object"].isNull()) - snapshotJobListObject.snapshotConfig.tileOutputFile.object = tileOutputFileNode["Object"].asString(); - if(!tileOutputFileNode["RoleArn"].isNull()) - snapshotJobListObject.snapshotConfig.tileOutputFile.roleArn = tileOutputFileNode["RoleArn"].asString(); + if(!snapshotConfigNode["Num"].isNull()) + snapshotJobListObject.snapshotConfig.num = snapshotConfigNode["Num"].asString(); auto tileOutNode = snapshotConfigNode["TileOut"]; - if(!tileOutNode["Lines"].isNull()) - snapshotJobListObject.snapshotConfig.tileOut.lines = tileOutNode["Lines"].asString(); - if(!tileOutNode["Columns"].isNull()) - snapshotJobListObject.snapshotConfig.tileOut.columns = tileOutNode["Columns"].asString(); - if(!tileOutNode["CellWidth"].isNull()) - snapshotJobListObject.snapshotConfig.tileOut.cellWidth = tileOutNode["CellWidth"].asString(); - if(!tileOutNode["CellHeight"].isNull()) - snapshotJobListObject.snapshotConfig.tileOut.cellHeight = tileOutNode["CellHeight"].asString(); - if(!tileOutNode["Margin"].isNull()) - snapshotJobListObject.snapshotConfig.tileOut.margin = tileOutNode["Margin"].asString(); if(!tileOutNode["Padding"].isNull()) snapshotJobListObject.snapshotConfig.tileOut.padding = tileOutNode["Padding"].asString(); if(!tileOutNode["Color"].isNull()) snapshotJobListObject.snapshotConfig.tileOut.color = tileOutNode["Color"].asString(); - if(!tileOutNode["IsKeepCellPic"].isNull()) - snapshotJobListObject.snapshotConfig.tileOut.isKeepCellPic = tileOutNode["IsKeepCellPic"].asString(); if(!tileOutNode["CellSelStep"].isNull()) snapshotJobListObject.snapshotConfig.tileOut.cellSelStep = tileOutNode["CellSelStep"].asString(); + if(!tileOutNode["CellHeight"].isNull()) + snapshotJobListObject.snapshotConfig.tileOut.cellHeight = tileOutNode["CellHeight"].asString(); + if(!tileOutNode["CellWidth"].isNull()) + snapshotJobListObject.snapshotConfig.tileOut.cellWidth = tileOutNode["CellWidth"].asString(); + if(!tileOutNode["Margin"].isNull()) + snapshotJobListObject.snapshotConfig.tileOut.margin = tileOutNode["Margin"].asString(); + if(!tileOutNode["Columns"].isNull()) + snapshotJobListObject.snapshotConfig.tileOut.columns = tileOutNode["Columns"].asString(); + if(!tileOutNode["IsKeepCellPic"].isNull()) + snapshotJobListObject.snapshotConfig.tileOut.isKeepCellPic = tileOutNode["IsKeepCellPic"].asString(); + if(!tileOutNode["Lines"].isNull()) + snapshotJobListObject.snapshotConfig.tileOut.lines = tileOutNode["Lines"].asString(); + auto outputFileNode = snapshotConfigNode["OutputFile"]; + if(!outputFileNode["RoleArn"].isNull()) + snapshotJobListObject.snapshotConfig.outputFile.roleArn = outputFileNode["RoleArn"].asString(); + if(!outputFileNode["Object"].isNull()) + snapshotJobListObject.snapshotConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + snapshotJobListObject.snapshotConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + snapshotJobListObject.snapshotConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto tileOutputFileNode = snapshotConfigNode["TileOutputFile"]; + if(!tileOutputFileNode["RoleArn"].isNull()) + snapshotJobListObject.snapshotConfig.tileOutputFile.roleArn = tileOutputFileNode["RoleArn"].asString(); + if(!tileOutputFileNode["Object"].isNull()) + snapshotJobListObject.snapshotConfig.tileOutputFile.object = tileOutputFileNode["Object"].asString(); + if(!tileOutputFileNode["Location"].isNull()) + snapshotJobListObject.snapshotConfig.tileOutputFile.location = tileOutputFileNode["Location"].asString(); + if(!tileOutputFileNode["Bucket"].isNull()) + snapshotJobListObject.snapshotConfig.tileOutputFile.bucket = tileOutputFileNode["Bucket"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) snapshotJobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); @@ -127,6 +118,15 @@ void QuerySnapshotJobListResult::parse(const std::string &payload) snapshotJobListObject.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString(); if(!mNSMessageResultNode["ErrorCode"].isNull()) snapshotJobListObject.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["RoleArn"].isNull()) + snapshotJobListObject.input.roleArn = inputNode["RoleArn"].asString(); + if(!inputNode["Object"].isNull()) + snapshotJobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + snapshotJobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + snapshotJobListObject.input.bucket = inputNode["Bucket"].asString(); snapshotJobList_.push_back(snapshotJobListObject); } auto allNonExistSnapshotJobIds = value["NonExistSnapshotJobIds"]["String"]; diff --git a/mts/src/model/QuerySubtitleJobListRequest.cc b/mts/src/model/QuerySubtitleJobListRequest.cc index 63649a8d4..ec0cf7c83 100644 --- a/mts/src/model/QuerySubtitleJobListRequest.cc +++ b/mts/src/model/QuerySubtitleJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QuerySubtitleJobListRequest; - -QuerySubtitleJobListRequest::QuerySubtitleJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QuerySubtitleJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QuerySubtitleJobListRequest::~QuerySubtitleJobListRequest() -{} - -long QuerySubtitleJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QuerySubtitleJobListRequest; + +QuerySubtitleJobListRequest::QuerySubtitleJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QuerySubtitleJobList") { + setMethod(HttpRequest::Method::Post); } -void QuerySubtitleJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QuerySubtitleJobListRequest::~QuerySubtitleJobListRequest() {} + +long QuerySubtitleJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QuerySubtitleJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QuerySubtitleJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QuerySubtitleJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QuerySubtitleJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QuerySubtitleJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QuerySubtitleJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QuerySubtitleJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QuerySubtitleJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QuerySubtitleJobListRequest::getOwnerId()const -{ - return ownerId_; +void QuerySubtitleJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QuerySubtitleJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QuerySubtitleJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QuerySubtitleJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QuerySubtitleJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QuerySubtitleJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QuerySubtitleJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QuerySubtitleJobListRequest::getJobIds()const -{ - return jobIds_; +void QuerySubtitleJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QuerySubtitleJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QuerySubtitleJobListRequest::getJobIds() const { + return jobIds_; +} + +void QuerySubtitleJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QuerySubtitleJobListResult.cc b/mts/src/model/QuerySubtitleJobListResult.cc index c702b0f2d..bd0947f8f 100644 --- a/mts/src/model/QuerySubtitleJobListResult.cc +++ b/mts/src/model/QuerySubtitleJobListResult.cc @@ -43,16 +43,16 @@ void QuerySubtitleJobListResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["JobId"].isNull()) - jobListObject.jobId = valueJobListJob["JobId"].asString(); - if(!valueJobListJob["InputConfig"].isNull()) - jobListObject.inputConfig = valueJobListJob["InputConfig"].asString(); if(!valueJobListJob["OutputConfig"].isNull()) jobListObject.outputConfig = valueJobListJob["OutputConfig"].asString(); - if(!valueJobListJob["UserData"].isNull()) - jobListObject.userData = valueJobListJob["UserData"].asString(); if(!valueJobListJob["State"].isNull()) jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["JobId"].isNull()) + jobListObject.jobId = valueJobListJob["JobId"].asString(); + if(!valueJobListJob["UserData"].isNull()) + jobListObject.userData = valueJobListJob["UserData"].asString(); + if(!valueJobListJob["InputConfig"].isNull()) + jobListObject.inputConfig = valueJobListJob["InputConfig"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) jobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); diff --git a/mts/src/model/QueryTagJobListRequest.cc b/mts/src/model/QueryTagJobListRequest.cc index c58c9eff8..22fbd8829 100644 --- a/mts/src/model/QueryTagJobListRequest.cc +++ b/mts/src/model/QueryTagJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryTagJobListRequest; - -QueryTagJobListRequest::QueryTagJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryTagJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryTagJobListRequest::~QueryTagJobListRequest() -{} - -long QueryTagJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryTagJobListRequest; + +QueryTagJobListRequest::QueryTagJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryTagJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryTagJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryTagJobListRequest::~QueryTagJobListRequest() {} + +long QueryTagJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryTagJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryTagJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryTagJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryTagJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryTagJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryTagJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryTagJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryTagJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryTagJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryTagJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryTagJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryTagJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryTagJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryTagJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryTagJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryTagJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryTagJobListRequest::getTagJobIds()const -{ - return tagJobIds_; +void QueryTagJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryTagJobListRequest::setTagJobIds(const std::string& tagJobIds) -{ - tagJobIds_ = tagJobIds; - setParameter("TagJobIds", tagJobIds); +std::string QueryTagJobListRequest::getTagJobIds() const { + return tagJobIds_; +} + +void QueryTagJobListRequest::setTagJobIds(const std::string &tagJobIds) { + tagJobIds_ = tagJobIds; + setParameter(std::string("TagJobIds"), tagJobIds); } diff --git a/mts/src/model/QueryTagJobListResult.cc b/mts/src/model/QueryTagJobListResult.cc index 68500b20b..3b7811fd4 100644 --- a/mts/src/model/QueryTagJobListResult.cc +++ b/mts/src/model/QueryTagJobListResult.cc @@ -43,27 +43,20 @@ void QueryTagJobListResult::parse(const std::string &payload) for (auto valueTagJobListTagJob : allTagJobListNode) { TagJob tagJobListObject; - if(!valueTagJobListTagJob["Id"].isNull()) - tagJobListObject.id = valueTagJobListTagJob["Id"].asString(); - if(!valueTagJobListTagJob["UserData"].isNull()) - tagJobListObject.userData = valueTagJobListTagJob["UserData"].asString(); - if(!valueTagJobListTagJob["PipelineId"].isNull()) - tagJobListObject.pipelineId = valueTagJobListTagJob["PipelineId"].asString(); + if(!valueTagJobListTagJob["CreationTime"].isNull()) + tagJobListObject.creationTime = valueTagJobListTagJob["CreationTime"].asString(); if(!valueTagJobListTagJob["State"].isNull()) tagJobListObject.state = valueTagJobListTagJob["State"].asString(); + if(!valueTagJobListTagJob["UserData"].isNull()) + tagJobListObject.userData = valueTagJobListTagJob["UserData"].asString(); if(!valueTagJobListTagJob["Code"].isNull()) tagJobListObject.code = valueTagJobListTagJob["Code"].asString(); if(!valueTagJobListTagJob["Message"].isNull()) tagJobListObject.message = valueTagJobListTagJob["Message"].asString(); - if(!valueTagJobListTagJob["CreationTime"].isNull()) - tagJobListObject.creationTime = valueTagJobListTagJob["CreationTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - tagJobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - tagJobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - tagJobListObject.input.object = inputNode["Object"].asString(); + if(!valueTagJobListTagJob["PipelineId"].isNull()) + tagJobListObject.pipelineId = valueTagJobListTagJob["PipelineId"].asString(); + if(!valueTagJobListTagJob["Id"].isNull()) + tagJobListObject.id = valueTagJobListTagJob["Id"].asString(); auto videoTagResultNode = value["VideoTagResult"]; if(!videoTagResultNode["Details"].isNull()) tagJobListObject.videoTagResult.details = videoTagResultNode["Details"].asString(); @@ -71,10 +64,10 @@ void QueryTagJobListResult::parse(const std::string &payload) for (auto videoTagResultNodeTagAnResultsTagAnResult : allTagAnResultsNode) { TagJob::VideoTagResult::TagAnResult tagAnResultObject; - if(!videoTagResultNodeTagAnResultsTagAnResult["Label"].isNull()) - tagAnResultObject.label = videoTagResultNodeTagAnResultsTagAnResult["Label"].asString(); if(!videoTagResultNodeTagAnResultsTagAnResult["Score"].isNull()) tagAnResultObject.score = videoTagResultNodeTagAnResultsTagAnResult["Score"].asString(); + if(!videoTagResultNodeTagAnResultsTagAnResult["Label"].isNull()) + tagAnResultObject.label = videoTagResultNodeTagAnResultsTagAnResult["Label"].asString(); tagJobListObject.videoTagResult.tagAnResults.push_back(tagAnResultObject); } auto allTagFrResultsNode = videoTagResultNode["TagFrResults"]["TagFrResult"]; @@ -83,20 +76,27 @@ void QueryTagJobListResult::parse(const std::string &payload) TagJob::VideoTagResult::TagFrResult tagFrResultObject; if(!videoTagResultNodeTagFrResultsTagFrResult["Time"].isNull()) tagFrResultObject.time = videoTagResultNodeTagFrResultsTagFrResult["Time"].asString(); - auto allTagFacesNode = allTagFrResultsNode["TagFaces"]["TagFace"]; - for (auto allTagFrResultsNodeTagFacesTagFace : allTagFacesNode) + auto allTagFacesNode = videoTagResultNodeTagFrResultsTagFrResult["TagFaces"]["TagFace"]; + for (auto videoTagResultNodeTagFrResultsTagFrResultTagFacesTagFace : allTagFacesNode) { TagJob::VideoTagResult::TagFrResult::TagFace tagFacesObject; - if(!allTagFrResultsNodeTagFacesTagFace["Name"].isNull()) - tagFacesObject.name = allTagFrResultsNodeTagFacesTagFace["Name"].asString(); - if(!allTagFrResultsNodeTagFacesTagFace["Score"].isNull()) - tagFacesObject.score = allTagFrResultsNodeTagFacesTagFace["Score"].asString(); - if(!allTagFrResultsNodeTagFacesTagFace["Target"].isNull()) - tagFacesObject.target = allTagFrResultsNodeTagFacesTagFace["Target"].asString(); + if(!videoTagResultNodeTagFrResultsTagFrResultTagFacesTagFace["Score"].isNull()) + tagFacesObject.score = videoTagResultNodeTagFrResultsTagFrResultTagFacesTagFace["Score"].asString(); + if(!videoTagResultNodeTagFrResultsTagFrResultTagFacesTagFace["Name"].isNull()) + tagFacesObject.name = videoTagResultNodeTagFrResultsTagFrResultTagFacesTagFace["Name"].asString(); + if(!videoTagResultNodeTagFrResultsTagFrResultTagFacesTagFace["Target"].isNull()) + tagFacesObject.target = videoTagResultNodeTagFrResultsTagFrResultTagFacesTagFace["Target"].asString(); tagFrResultObject.tagFaces.push_back(tagFacesObject); } tagJobListObject.videoTagResult.tagFrResults.push_back(tagFrResultObject); } + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + tagJobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + tagJobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + tagJobListObject.input.bucket = inputNode["Bucket"].asString(); tagJobList_.push_back(tagJobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryTemplateListRequest.cc b/mts/src/model/QueryTemplateListRequest.cc index 0a2e8a73d..407f023ce 100644 --- a/mts/src/model/QueryTemplateListRequest.cc +++ b/mts/src/model/QueryTemplateListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryTemplateListRequest; - -QueryTemplateListRequest::QueryTemplateListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryTemplateList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryTemplateListRequest::~QueryTemplateListRequest() -{} - -long QueryTemplateListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryTemplateListRequest; + +QueryTemplateListRequest::QueryTemplateListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryTemplateList") { + setMethod(HttpRequest::Method::Post); } -void QueryTemplateListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryTemplateListRequest::~QueryTemplateListRequest() {} + +long QueryTemplateListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryTemplateListRequest::getTemplateIds()const -{ - return templateIds_; +void QueryTemplateListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryTemplateListRequest::setTemplateIds(const std::string& templateIds) -{ - templateIds_ = templateIds; - setParameter("TemplateIds", templateIds); +std::string QueryTemplateListRequest::getTemplateIds() const { + return templateIds_; } -std::string QueryTemplateListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryTemplateListRequest::setTemplateIds(const std::string &templateIds) { + templateIds_ = templateIds; + setParameter(std::string("TemplateIds"), templateIds); } -void QueryTemplateListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryTemplateListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryTemplateListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryTemplateListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryTemplateListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryTemplateListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryTemplateListRequest::getOwnerId()const -{ - return ownerId_; +void QueryTemplateListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryTemplateListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryTemplateListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryTemplateListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryTemplateListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryTemplateListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryTemplateListRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void QueryTemplateListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/QueryTemplateListResult.cc b/mts/src/model/QueryTemplateListResult.cc index 6b6f2c28d..f7b5c6d2b 100644 --- a/mts/src/model/QueryTemplateListResult.cc +++ b/mts/src/model/QueryTemplateListResult.cc @@ -43,56 +43,53 @@ void QueryTemplateListResult::parse(const std::string &payload) for (auto valueTemplateListTemplate : allTemplateListNode) { _Template templateListObject; - if(!valueTemplateListTemplate["Id"].isNull()) - templateListObject.id = valueTemplateListTemplate["Id"].asString(); - if(!valueTemplateListTemplate["Name"].isNull()) - templateListObject.name = valueTemplateListTemplate["Name"].asString(); if(!valueTemplateListTemplate["State"].isNull()) templateListObject.state = valueTemplateListTemplate["State"].asString(); - auto containerNode = value["Container"]; - if(!containerNode["Format"].isNull()) - templateListObject.container.format = containerNode["Format"].asString(); + if(!valueTemplateListTemplate["Name"].isNull()) + templateListObject.name = valueTemplateListTemplate["Name"].asString(); + if(!valueTemplateListTemplate["Id"].isNull()) + templateListObject.id = valueTemplateListTemplate["Id"].asString(); auto videoNode = value["Video"]; + if(!videoNode["Bufsize"].isNull()) + templateListObject.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["LongShortMode"].isNull()) + templateListObject.video.longShortMode = videoNode["LongShortMode"].asString(); + if(!videoNode["Degrain"].isNull()) + templateListObject.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + templateListObject.video.pixFmt = videoNode["PixFmt"].asString(); + if(!videoNode["Pad"].isNull()) + templateListObject.video.pad = videoNode["Pad"].asString(); if(!videoNode["Codec"].isNull()) templateListObject.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - templateListObject.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - templateListObject.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - templateListObject.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - templateListObject.video.width = videoNode["Width"].asString(); if(!videoNode["Height"].isNull()) templateListObject.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - templateListObject.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Qscale"].isNull()) + templateListObject.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Crop"].isNull()) + templateListObject.video.crop = videoNode["Crop"].asString(); + if(!videoNode["Bitrate"].isNull()) + templateListObject.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + templateListObject.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["MaxFps"].isNull()) + templateListObject.video.maxFps = videoNode["MaxFps"].asString(); + if(!videoNode["Profile"].isNull()) + templateListObject.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + templateListObject.video.crf = videoNode["Crf"].asString(); + if(!videoNode["Remove"].isNull()) + templateListObject.video.remove = videoNode["Remove"].asString(); if(!videoNode["Gop"].isNull()) templateListObject.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + templateListObject.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + templateListObject.video.fps = videoNode["Fps"].asString(); if(!videoNode["Preset"].isNull()) templateListObject.video.preset = videoNode["Preset"].asString(); if(!videoNode["ScanMode"].isNull()) templateListObject.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - templateListObject.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - templateListObject.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - templateListObject.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - templateListObject.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - templateListObject.video.qscale = videoNode["Qscale"].asString(); - if(!videoNode["LongShortMode"].isNull()) - templateListObject.video.longShortMode = videoNode["LongShortMode"].asString(); - if(!videoNode["Remove"].isNull()) - templateListObject.video.remove = videoNode["Remove"].asString(); - if(!videoNode["Crop"].isNull()) - templateListObject.video.crop = videoNode["Crop"].asString(); - if(!videoNode["Pad"].isNull()) - templateListObject.video.pad = videoNode["Pad"].asString(); - if(!videoNode["MaxFps"].isNull()) - templateListObject.video.maxFps = videoNode["MaxFps"].asString(); if(!videoNode["ResoPriority"].isNull()) templateListObject.video.resoPriority = videoNode["ResoPriority"].asString(); auto bitrateBndNode = videoNode["BitrateBnd"]; @@ -100,54 +97,57 @@ void QueryTemplateListResult::parse(const std::string &payload) templateListObject.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); if(!bitrateBndNode["Min"].isNull()) templateListObject.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto audioNode = value["Audio"]; - if(!audioNode["Codec"].isNull()) - templateListObject.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - templateListObject.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - templateListObject.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - templateListObject.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - templateListObject.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - templateListObject.audio.qscale = audioNode["Qscale"].asString(); - if(!audioNode["Remove"].isNull()) - templateListObject.audio.remove = audioNode["Remove"].asString(); auto transConfigNode = value["TransConfig"]; + if(!transConfigNode["IsCheckAudioBitrate"].isNull()) + templateListObject.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); if(!transConfigNode["TransMode"].isNull()) templateListObject.transConfig.transMode = transConfigNode["TransMode"].asString(); if(!transConfigNode["IsCheckReso"].isNull()) templateListObject.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); - if(!transConfigNode["IsCheckResoFail"].isNull()) - templateListObject.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); - if(!transConfigNode["IsCheckVideoBitrate"].isNull()) - templateListObject.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); - if(!transConfigNode["IsCheckAudioBitrate"].isNull()) - templateListObject.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); - if(!transConfigNode["AdjDarMethod"].isNull()) - templateListObject.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) templateListObject.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); + if(!transConfigNode["AdjDarMethod"].isNull()) + templateListObject.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); + if(!transConfigNode["IsCheckVideoBitrate"].isNull()) + templateListObject.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); + if(!transConfigNode["IsCheckResoFail"].isNull()) + templateListObject.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) templateListObject.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); auto muxConfigNode = value["MuxConfig"]; - auto segmentNode = muxConfigNode["Segment"]; - if(!segmentNode["Duration"].isNull()) - templateListObject.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - templateListObject.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - templateListObject.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); - if(!gifNode["IsCustomPalette"].isNull()) - templateListObject.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); - if(!gifNode["DitherMode"].isNull()) - templateListObject.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); auto webpNode = muxConfigNode["Webp"]; if(!webpNode["Loop"].isNull()) templateListObject.muxConfig.webp.loop = webpNode["Loop"].asString(); + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + templateListObject.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["DitherMode"].isNull()) + templateListObject.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + if(!gifNode["Loop"].isNull()) + templateListObject.muxConfig.gif.loop = gifNode["Loop"].asString(); + if(!gifNode["IsCustomPalette"].isNull()) + templateListObject.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); + auto segmentNode = muxConfigNode["Segment"]; + if(!segmentNode["Duration"].isNull()) + templateListObject.muxConfig.segment.duration = segmentNode["Duration"].asString(); + auto audioNode = value["Audio"]; + if(!audioNode["Profile"].isNull()) + templateListObject.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Remove"].isNull()) + templateListObject.audio.remove = audioNode["Remove"].asString(); + if(!audioNode["Codec"].isNull()) + templateListObject.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + templateListObject.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + templateListObject.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + templateListObject.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + templateListObject.audio.bitrate = audioNode["Bitrate"].asString(); + auto containerNode = value["Container"]; + if(!containerNode["Format"].isNull()) + templateListObject.container.format = containerNode["Format"].asString(); templateList_.push_back(templateListObject); } auto allNonExistTids = value["NonExistTids"]["String"]; diff --git a/mts/src/model/QueryTerrorismJobListRequest.cc b/mts/src/model/QueryTerrorismJobListRequest.cc index d0768a9e2..ded8f08b3 100644 --- a/mts/src/model/QueryTerrorismJobListRequest.cc +++ b/mts/src/model/QueryTerrorismJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryTerrorismJobListRequest; - -QueryTerrorismJobListRequest::QueryTerrorismJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryTerrorismJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryTerrorismJobListRequest::~QueryTerrorismJobListRequest() -{} - -long QueryTerrorismJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryTerrorismJobListRequest; + +QueryTerrorismJobListRequest::QueryTerrorismJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryTerrorismJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryTerrorismJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryTerrorismJobListRequest::~QueryTerrorismJobListRequest() {} + +long QueryTerrorismJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryTerrorismJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryTerrorismJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryTerrorismJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryTerrorismJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryTerrorismJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryTerrorismJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryTerrorismJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryTerrorismJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryTerrorismJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryTerrorismJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryTerrorismJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryTerrorismJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryTerrorismJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryTerrorismJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryTerrorismJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryTerrorismJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryTerrorismJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryTerrorismJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryTerrorismJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryTerrorismJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryTerrorismJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryTerrorismJobListResult.cc b/mts/src/model/QueryTerrorismJobListResult.cc index a4dae72b5..01efde8cf 100644 --- a/mts/src/model/QueryTerrorismJobListResult.cc +++ b/mts/src/model/QueryTerrorismJobListResult.cc @@ -43,74 +43,74 @@ void QueryTerrorismJobListResult::parse(const std::string &payload) for (auto valueTerrorismJobListTerrorismJob : allTerrorismJobListNode) { TerrorismJob terrorismJobListObject; - if(!valueTerrorismJobListTerrorismJob["Id"].isNull()) - terrorismJobListObject.id = valueTerrorismJobListTerrorismJob["Id"].asString(); - if(!valueTerrorismJobListTerrorismJob["UserData"].isNull()) - terrorismJobListObject.userData = valueTerrorismJobListTerrorismJob["UserData"].asString(); - if(!valueTerrorismJobListTerrorismJob["PipelineId"].isNull()) - terrorismJobListObject.pipelineId = valueTerrorismJobListTerrorismJob["PipelineId"].asString(); + if(!valueTerrorismJobListTerrorismJob["CreationTime"].isNull()) + terrorismJobListObject.creationTime = valueTerrorismJobListTerrorismJob["CreationTime"].asString(); if(!valueTerrorismJobListTerrorismJob["State"].isNull()) terrorismJobListObject.state = valueTerrorismJobListTerrorismJob["State"].asString(); + if(!valueTerrorismJobListTerrorismJob["UserData"].isNull()) + terrorismJobListObject.userData = valueTerrorismJobListTerrorismJob["UserData"].asString(); if(!valueTerrorismJobListTerrorismJob["Code"].isNull()) terrorismJobListObject.code = valueTerrorismJobListTerrorismJob["Code"].asString(); if(!valueTerrorismJobListTerrorismJob["Message"].isNull()) terrorismJobListObject.message = valueTerrorismJobListTerrorismJob["Message"].asString(); - if(!valueTerrorismJobListTerrorismJob["CreationTime"].isNull()) - terrorismJobListObject.creationTime = valueTerrorismJobListTerrorismJob["CreationTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - terrorismJobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - terrorismJobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - terrorismJobListObject.input.object = inputNode["Object"].asString(); + if(!valueTerrorismJobListTerrorismJob["PipelineId"].isNull()) + terrorismJobListObject.pipelineId = valueTerrorismJobListTerrorismJob["PipelineId"].asString(); + if(!valueTerrorismJobListTerrorismJob["Id"].isNull()) + terrorismJobListObject.id = valueTerrorismJobListTerrorismJob["Id"].asString(); + auto censorTerrorismResultNode = value["CensorTerrorismResult"]; + if(!censorTerrorismResultNode["Suggestion"].isNull()) + terrorismJobListObject.censorTerrorismResult.suggestion = censorTerrorismResultNode["Suggestion"].asString(); + if(!censorTerrorismResultNode["AverageScore"].isNull()) + terrorismJobListObject.censorTerrorismResult.averageScore = censorTerrorismResultNode["AverageScore"].asString(); + if(!censorTerrorismResultNode["Label"].isNull()) + terrorismJobListObject.censorTerrorismResult.label = censorTerrorismResultNode["Label"].asString(); + if(!censorTerrorismResultNode["MaxScore"].isNull()) + terrorismJobListObject.censorTerrorismResult.maxScore = censorTerrorismResultNode["MaxScore"].asString(); + auto allTerrorismTopListNode = censorTerrorismResultNode["TerrorismTopList"]["Top"]; + for (auto censorTerrorismResultNodeTerrorismTopListTop : allTerrorismTopListNode) + { + TerrorismJob::CensorTerrorismResult::Top topObject; + if(!censorTerrorismResultNodeTerrorismTopListTop["Index"].isNull()) + topObject.index = censorTerrorismResultNodeTerrorismTopListTop["Index"].asString(); + if(!censorTerrorismResultNodeTerrorismTopListTop["Score"].isNull()) + topObject.score = censorTerrorismResultNodeTerrorismTopListTop["Score"].asString(); + if(!censorTerrorismResultNodeTerrorismTopListTop["Timestamp"].isNull()) + topObject.timestamp = censorTerrorismResultNodeTerrorismTopListTop["Timestamp"].asString(); + if(!censorTerrorismResultNodeTerrorismTopListTop["Object"].isNull()) + topObject.object = censorTerrorismResultNodeTerrorismTopListTop["Object"].asString(); + if(!censorTerrorismResultNodeTerrorismTopListTop["Label"].isNull()) + topObject.label = censorTerrorismResultNodeTerrorismTopListTop["Label"].asString(); + terrorismJobListObject.censorTerrorismResult.terrorismTopList.push_back(topObject); + } + auto allTerrorismCounterListNode = censorTerrorismResultNode["TerrorismCounterList"]["Counter"]; + for (auto censorTerrorismResultNodeTerrorismCounterListCounter : allTerrorismCounterListNode) + { + TerrorismJob::CensorTerrorismResult::Counter counterObject; + if(!censorTerrorismResultNodeTerrorismCounterListCounter["Label"].isNull()) + counterObject.label = censorTerrorismResultNodeTerrorismCounterListCounter["Label"].asString(); + if(!censorTerrorismResultNodeTerrorismCounterListCounter["Count"].isNull()) + counterObject.count = std::stoi(censorTerrorismResultNodeTerrorismCounterListCounter["Count"].asString()); + terrorismJobListObject.censorTerrorismResult.terrorismCounterList.push_back(counterObject); + } auto terrorismConfigNode = value["TerrorismConfig"]; if(!terrorismConfigNode["Interval"].isNull()) terrorismJobListObject.terrorismConfig.interval = terrorismConfigNode["Interval"].asString(); if(!terrorismConfigNode["BizType"].isNull()) terrorismJobListObject.terrorismConfig.bizType = terrorismConfigNode["BizType"].asString(); auto outputFileNode = terrorismConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - terrorismJobListObject.terrorismConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - terrorismJobListObject.terrorismConfig.outputFile.location = outputFileNode["Location"].asString(); if(!outputFileNode["Object"].isNull()) terrorismJobListObject.terrorismConfig.outputFile.object = outputFileNode["Object"].asString(); - auto censorTerrorismResultNode = value["CensorTerrorismResult"]; - if(!censorTerrorismResultNode["Label"].isNull()) - terrorismJobListObject.censorTerrorismResult.label = censorTerrorismResultNode["Label"].asString(); - if(!censorTerrorismResultNode["Suggestion"].isNull()) - terrorismJobListObject.censorTerrorismResult.suggestion = censorTerrorismResultNode["Suggestion"].asString(); - if(!censorTerrorismResultNode["MaxScore"].isNull()) - terrorismJobListObject.censorTerrorismResult.maxScore = censorTerrorismResultNode["MaxScore"].asString(); - if(!censorTerrorismResultNode["AverageScore"].isNull()) - terrorismJobListObject.censorTerrorismResult.averageScore = censorTerrorismResultNode["AverageScore"].asString(); - auto allTerrorismCounterListNode = censorTerrorismResultNode["TerrorismCounterList"]["Counter"]; - for (auto censorTerrorismResultNodeTerrorismCounterListCounter : allTerrorismCounterListNode) - { - TerrorismJob::CensorTerrorismResult::Counter counterObject; - if(!censorTerrorismResultNodeTerrorismCounterListCounter["Count"].isNull()) - counterObject.count = std::stoi(censorTerrorismResultNodeTerrorismCounterListCounter["Count"].asString()); - if(!censorTerrorismResultNodeTerrorismCounterListCounter["Label"].isNull()) - counterObject.label = censorTerrorismResultNodeTerrorismCounterListCounter["Label"].asString(); - terrorismJobListObject.censorTerrorismResult.terrorismCounterList.push_back(counterObject); - } - auto allTerrorismTopListNode = censorTerrorismResultNode["TerrorismTopList"]["Top"]; - for (auto censorTerrorismResultNodeTerrorismTopListTop : allTerrorismTopListNode) - { - TerrorismJob::CensorTerrorismResult::Top topObject; - if(!censorTerrorismResultNodeTerrorismTopListTop["Label"].isNull()) - topObject.label = censorTerrorismResultNodeTerrorismTopListTop["Label"].asString(); - if(!censorTerrorismResultNodeTerrorismTopListTop["Score"].isNull()) - topObject.score = censorTerrorismResultNodeTerrorismTopListTop["Score"].asString(); - if(!censorTerrorismResultNodeTerrorismTopListTop["Timestamp"].isNull()) - topObject.timestamp = censorTerrorismResultNodeTerrorismTopListTop["Timestamp"].asString(); - if(!censorTerrorismResultNodeTerrorismTopListTop["Index"].isNull()) - topObject.index = censorTerrorismResultNodeTerrorismTopListTop["Index"].asString(); - if(!censorTerrorismResultNodeTerrorismTopListTop["Object"].isNull()) - topObject.object = censorTerrorismResultNodeTerrorismTopListTop["Object"].asString(); - terrorismJobListObject.censorTerrorismResult.terrorismTopList.push_back(topObject); - } + if(!outputFileNode["Location"].isNull()) + terrorismJobListObject.terrorismConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + terrorismJobListObject.terrorismConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + terrorismJobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + terrorismJobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + terrorismJobListObject.input.bucket = inputNode["Bucket"].asString(); terrorismJobList_.push_back(terrorismJobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryTerrorismPipelineListRequest.cc b/mts/src/model/QueryTerrorismPipelineListRequest.cc index 2a551a707..2376d081e 100644 --- a/mts/src/model/QueryTerrorismPipelineListRequest.cc +++ b/mts/src/model/QueryTerrorismPipelineListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryTerrorismPipelineListRequest; - -QueryTerrorismPipelineListRequest::QueryTerrorismPipelineListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryTerrorismPipelineList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryTerrorismPipelineListRequest::~QueryTerrorismPipelineListRequest() -{} - -long QueryTerrorismPipelineListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryTerrorismPipelineListRequest; + +QueryTerrorismPipelineListRequest::QueryTerrorismPipelineListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryTerrorismPipelineList") { + setMethod(HttpRequest::Method::Post); } -void QueryTerrorismPipelineListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryTerrorismPipelineListRequest::~QueryTerrorismPipelineListRequest() {} + +long QueryTerrorismPipelineListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryTerrorismPipelineListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryTerrorismPipelineListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryTerrorismPipelineListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryTerrorismPipelineListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryTerrorismPipelineListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryTerrorismPipelineListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryTerrorismPipelineListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryTerrorismPipelineListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryTerrorismPipelineListRequest::getOwnerId()const -{ - return ownerId_; +void QueryTerrorismPipelineListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryTerrorismPipelineListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryTerrorismPipelineListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryTerrorismPipelineListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryTerrorismPipelineListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryTerrorismPipelineListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryTerrorismPipelineListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryTerrorismPipelineListRequest::getPipelineIds()const -{ - return pipelineIds_; +void QueryTerrorismPipelineListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryTerrorismPipelineListRequest::setPipelineIds(const std::string& pipelineIds) -{ - pipelineIds_ = pipelineIds; - setParameter("PipelineIds", pipelineIds); +std::string QueryTerrorismPipelineListRequest::getPipelineIds() const { + return pipelineIds_; +} + +void QueryTerrorismPipelineListRequest::setPipelineIds(const std::string &pipelineIds) { + pipelineIds_ = pipelineIds; + setParameter(std::string("PipelineIds"), pipelineIds); } diff --git a/mts/src/model/QueryTerrorismPipelineListResult.cc b/mts/src/model/QueryTerrorismPipelineListResult.cc index d20962a6a..1b3348450 100644 --- a/mts/src/model/QueryTerrorismPipelineListResult.cc +++ b/mts/src/model/QueryTerrorismPipelineListResult.cc @@ -43,14 +43,14 @@ void QueryTerrorismPipelineListResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["Id"].isNull()) - pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); if(!valuePipelineListPipeline["State"].isNull()) pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["Priority"].isNull()) pipelineListObject.priority = valuePipelineListPipeline["Priority"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["Id"].isNull()) + pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); auto notifyConfigNode = value["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/QueryVideoGifJobListRequest.cc b/mts/src/model/QueryVideoGifJobListRequest.cc index f323e670e..810bbf07a 100644 --- a/mts/src/model/QueryVideoGifJobListRequest.cc +++ b/mts/src/model/QueryVideoGifJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryVideoGifJobListRequest; - -QueryVideoGifJobListRequest::QueryVideoGifJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryVideoGifJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryVideoGifJobListRequest::~QueryVideoGifJobListRequest() -{} - -long QueryVideoGifJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryVideoGifJobListRequest; + +QueryVideoGifJobListRequest::QueryVideoGifJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryVideoGifJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryVideoGifJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryVideoGifJobListRequest::~QueryVideoGifJobListRequest() {} + +long QueryVideoGifJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryVideoGifJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryVideoGifJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryVideoGifJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryVideoGifJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryVideoGifJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryVideoGifJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryVideoGifJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryVideoGifJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryVideoGifJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryVideoGifJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryVideoGifJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryVideoGifJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryVideoGifJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryVideoGifJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryVideoGifJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryVideoGifJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryVideoGifJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryVideoGifJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryVideoGifJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryVideoGifJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryVideoGifJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryVideoGifJobListResult.cc b/mts/src/model/QueryVideoGifJobListResult.cc index e3cb29565..5332be04b 100644 --- a/mts/src/model/QueryVideoGifJobListResult.cc +++ b/mts/src/model/QueryVideoGifJobListResult.cc @@ -43,35 +43,35 @@ void QueryVideoGifJobListResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["Id"].isNull()) - jobListObject.id = valueJobListJob["Id"].asString(); - if(!valueJobListJob["UserData"].isNull()) - jobListObject.userData = valueJobListJob["UserData"].asString(); - if(!valueJobListJob["PipelineId"].isNull()) - jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["CreationTime"].isNull()) + jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); if(!valueJobListJob["State"].isNull()) jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["UserData"].isNull()) + jobListObject.userData = valueJobListJob["UserData"].asString(); if(!valueJobListJob["Code"].isNull()) jobListObject.code = valueJobListJob["Code"].asString(); if(!valueJobListJob["Message"].isNull()) jobListObject.message = valueJobListJob["Message"].asString(); - if(!valueJobListJob["CreationTime"].isNull()) - jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - jobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - jobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - jobListObject.input.object = inputNode["Object"].asString(); + if(!valueJobListJob["PipelineId"].isNull()) + jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["Id"].isNull()) + jobListObject.id = valueJobListJob["Id"].asString(); auto videoGifResultNode = value["VideoGifResult"]; auto outputFileNode = videoGifResultNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - jobListObject.videoGifResult.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - jobListObject.videoGifResult.outputFile.location = outputFileNode["Location"].asString(); if(!outputFileNode["Object"].isNull()) jobListObject.videoGifResult.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + jobListObject.videoGifResult.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + jobListObject.videoGifResult.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + jobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + jobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + jobListObject.input.bucket = inputNode["Bucket"].asString(); jobList_.push_back(jobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryVideoPoseJobListRequest.cc b/mts/src/model/QueryVideoPoseJobListRequest.cc index edc4ad50a..889252e00 100644 --- a/mts/src/model/QueryVideoPoseJobListRequest.cc +++ b/mts/src/model/QueryVideoPoseJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryVideoPoseJobListRequest; - -QueryVideoPoseJobListRequest::QueryVideoPoseJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryVideoPoseJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryVideoPoseJobListRequest::~QueryVideoPoseJobListRequest() -{} - -long QueryVideoPoseJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryVideoPoseJobListRequest; + +QueryVideoPoseJobListRequest::QueryVideoPoseJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryVideoPoseJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryVideoPoseJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryVideoPoseJobListRequest::~QueryVideoPoseJobListRequest() {} + +long QueryVideoPoseJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryVideoPoseJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryVideoPoseJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryVideoPoseJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryVideoPoseJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryVideoPoseJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryVideoPoseJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryVideoPoseJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryVideoPoseJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryVideoPoseJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryVideoPoseJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryVideoPoseJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryVideoPoseJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryVideoPoseJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryVideoPoseJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryVideoPoseJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryVideoPoseJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryVideoPoseJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryVideoPoseJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryVideoPoseJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryVideoPoseJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryVideoPoseJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryVideoPoseJobListResult.cc b/mts/src/model/QueryVideoPoseJobListResult.cc index a4e0d68a8..0de03b122 100644 --- a/mts/src/model/QueryVideoPoseJobListResult.cc +++ b/mts/src/model/QueryVideoPoseJobListResult.cc @@ -43,198 +43,33 @@ void QueryVideoPoseJobListResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["JobId"].isNull()) - jobListObject.jobId = valueJobListJob["JobId"].asString(); - if(!valueJobListJob["PipelineId"].isNull()) - jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); - if(!valueJobListJob["UserData"].isNull()) - jobListObject.userData = valueJobListJob["UserData"].asString(); if(!valueJobListJob["State"].isNull()) jobListObject.state = valueJobListJob["State"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - jobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - jobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - jobListObject.input.object = inputNode["Object"].asString(); - if(!inputNode["RoleArn"].isNull()) - jobListObject.input.roleArn = inputNode["RoleArn"].asString(); + if(!valueJobListJob["JobId"].isNull()) + jobListObject.jobId = valueJobListJob["JobId"].asString(); + if(!valueJobListJob["UserData"].isNull()) + jobListObject.userData = valueJobListJob["UserData"].asString(); + if(!valueJobListJob["PipelineId"].isNull()) + jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); auto outputConfigNode = value["OutputConfig"]; - auto videoFileNode = outputConfigNode["VideoFile"]; - if(!videoFileNode["Bucket"].isNull()) - jobListObject.outputConfig.videoFile.bucket = videoFileNode["Bucket"].asString(); - if(!videoFileNode["Location"].isNull()) - jobListObject.outputConfig.videoFile.location = videoFileNode["Location"].asString(); - if(!videoFileNode["Object"].isNull()) - jobListObject.outputConfig.videoFile.object = videoFileNode["Object"].asString(); - if(!videoFileNode["RoleArn"].isNull()) - jobListObject.outputConfig.videoFile.roleArn = videoFileNode["RoleArn"].asString(); auto dataFileNode = outputConfigNode["DataFile"]; - if(!dataFileNode["Bucket"].isNull()) - jobListObject.outputConfig.dataFile.bucket = dataFileNode["Bucket"].asString(); - if(!dataFileNode["Location"].isNull()) - jobListObject.outputConfig.dataFile.location = dataFileNode["Location"].asString(); - if(!dataFileNode["Object"].isNull()) - jobListObject.outputConfig.dataFile.object = dataFileNode["Object"].asString(); if(!dataFileNode["RoleArn"].isNull()) jobListObject.outputConfig.dataFile.roleArn = dataFileNode["RoleArn"].asString(); - auto propertiesNode = value["Properties"]; - if(!propertiesNode["Width"].isNull()) - jobListObject.properties.width = propertiesNode["Width"].asString(); - if(!propertiesNode["Height"].isNull()) - jobListObject.properties.height = propertiesNode["Height"].asString(); - if(!propertiesNode["Bitrate"].isNull()) - jobListObject.properties.bitrate = propertiesNode["Bitrate"].asString(); - if(!propertiesNode["Duration"].isNull()) - jobListObject.properties.duration = propertiesNode["Duration"].asString(); - if(!propertiesNode["Fps"].isNull()) - jobListObject.properties.fps = propertiesNode["Fps"].asString(); - if(!propertiesNode["FileSize"].isNull()) - jobListObject.properties.fileSize = propertiesNode["FileSize"].asString(); - if(!propertiesNode["FileFormat"].isNull()) - jobListObject.properties.fileFormat = propertiesNode["FileFormat"].asString(); - auto streamsNode = propertiesNode["Streams"]; - auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; - for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) - { - Job::Properties::Streams::VideoStream videoStreamObject; - if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) - videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) - videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) - videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) - videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Rotate"].isNull()) - videoStreamObject.rotate = streamsNodeVideoStreamListVideoStream["Rotate"].asString(); - auto networkCostNode = value["NetworkCost"]; - if(!networkCostNode["PreloadTime"].isNull()) - videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); - if(!networkCostNode["AvgBitrate"].isNull()) - videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); - jobListObject.properties.streams.videoStreamList.push_back(videoStreamObject); - } - auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; - for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) - { - Job::Properties::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) - audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) - audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); - jobListObject.properties.streams.audioStreamList.push_back(audioStreamObject); - } - auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; - for (auto streamsNodeSubtitleStreamListSubtitleStream : allSubtitleStreamListNode) - { - Job::Properties::Streams::SubtitleStream subtitleStreamObject; - if(!streamsNodeSubtitleStreamListSubtitleStream["Index"].isNull()) - subtitleStreamObject.index = streamsNodeSubtitleStreamListSubtitleStream["Index"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecName"].isNull()) - subtitleStreamObject.codecName = streamsNodeSubtitleStreamListSubtitleStream["CodecName"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].isNull()) - subtitleStreamObject.codecTimeBase = streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].isNull()) - subtitleStreamObject.codecLongName = streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].isNull()) - subtitleStreamObject.codecTagString = streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].isNull()) - subtitleStreamObject.codecTag = streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Timebase"].isNull()) - subtitleStreamObject.timebase = streamsNodeSubtitleStreamListSubtitleStream["Timebase"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["StartTime"].isNull()) - subtitleStreamObject.startTime = streamsNodeSubtitleStreamListSubtitleStream["StartTime"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Duration"].isNull()) - subtitleStreamObject.duration = streamsNodeSubtitleStreamListSubtitleStream["Duration"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Lang"].isNull()) - subtitleStreamObject.lang = streamsNodeSubtitleStreamListSubtitleStream["Lang"].asString(); - jobListObject.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); - } - auto formatNode = propertiesNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - jobListObject.properties.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - jobListObject.properties.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - jobListObject.properties.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - jobListObject.properties.format.formatLongName = formatNode["FormatLongName"].asString(); - if(!formatNode["StartTime"].isNull()) - jobListObject.properties.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - jobListObject.properties.format.duration = formatNode["Duration"].asString(); - if(!formatNode["Size"].isNull()) - jobListObject.properties.format.size = formatNode["Size"].asString(); - if(!formatNode["Bitrate"].isNull()) - jobListObject.properties.format.bitrate = formatNode["Bitrate"].asString(); + if(!dataFileNode["Object"].isNull()) + jobListObject.outputConfig.dataFile.object = dataFileNode["Object"].asString(); + if(!dataFileNode["Location"].isNull()) + jobListObject.outputConfig.dataFile.location = dataFileNode["Location"].asString(); + if(!dataFileNode["Bucket"].isNull()) + jobListObject.outputConfig.dataFile.bucket = dataFileNode["Bucket"].asString(); + auto videoFileNode = outputConfigNode["VideoFile"]; + if(!videoFileNode["RoleArn"].isNull()) + jobListObject.outputConfig.videoFile.roleArn = videoFileNode["RoleArn"].asString(); + if(!videoFileNode["Object"].isNull()) + jobListObject.outputConfig.videoFile.object = videoFileNode["Object"].asString(); + if(!videoFileNode["Location"].isNull()) + jobListObject.outputConfig.videoFile.location = videoFileNode["Location"].asString(); + if(!videoFileNode["Bucket"].isNull()) + jobListObject.outputConfig.videoFile.bucket = videoFileNode["Bucket"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) jobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); @@ -242,6 +77,171 @@ void QueryVideoPoseJobListResult::parse(const std::string &payload) jobListObject.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString(); if(!mNSMessageResultNode["ErrorCode"].isNull()) jobListObject.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["RoleArn"].isNull()) + jobListObject.input.roleArn = inputNode["RoleArn"].asString(); + if(!inputNode["Object"].isNull()) + jobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + jobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + jobListObject.input.bucket = inputNode["Bucket"].asString(); + auto propertiesNode = value["Properties"]; + if(!propertiesNode["Width"].isNull()) + jobListObject.properties.width = propertiesNode["Width"].asString(); + if(!propertiesNode["Height"].isNull()) + jobListObject.properties.height = propertiesNode["Height"].asString(); + if(!propertiesNode["Duration"].isNull()) + jobListObject.properties.duration = propertiesNode["Duration"].asString(); + if(!propertiesNode["Fps"].isNull()) + jobListObject.properties.fps = propertiesNode["Fps"].asString(); + if(!propertiesNode["Bitrate"].isNull()) + jobListObject.properties.bitrate = propertiesNode["Bitrate"].asString(); + if(!propertiesNode["FileFormat"].isNull()) + jobListObject.properties.fileFormat = propertiesNode["FileFormat"].asString(); + if(!propertiesNode["FileSize"].isNull()) + jobListObject.properties.fileSize = propertiesNode["FileSize"].asString(); + auto streamsNode = propertiesNode["Streams"]; + auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; + for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) + { + Job::Properties::Streams::VideoStream videoStreamObject; + if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) + videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) + videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) + videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) + videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Rotate"].isNull()) + videoStreamObject.rotate = streamsNodeVideoStreamListVideoStream["Rotate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); + auto networkCostNode = value["NetworkCost"]; + if(!networkCostNode["PreloadTime"].isNull()) + videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); + if(!networkCostNode["AvgBitrate"].isNull()) + videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); + jobListObject.properties.streams.videoStreamList.push_back(videoStreamObject); + } + auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; + for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) + { + Job::Properties::Streams::AudioStream audioStreamObject; + if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) + audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) + audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); + jobListObject.properties.streams.audioStreamList.push_back(audioStreamObject); + } + auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; + for (auto streamsNodeSubtitleStreamListSubtitleStream : allSubtitleStreamListNode) + { + Job::Properties::Streams::SubtitleStream subtitleStreamObject; + if(!streamsNodeSubtitleStreamListSubtitleStream["Timebase"].isNull()) + subtitleStreamObject.timebase = streamsNodeSubtitleStreamListSubtitleStream["Timebase"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Index"].isNull()) + subtitleStreamObject.index = streamsNodeSubtitleStreamListSubtitleStream["Index"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["StartTime"].isNull()) + subtitleStreamObject.startTime = streamsNodeSubtitleStreamListSubtitleStream["StartTime"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecName"].isNull()) + subtitleStreamObject.codecName = streamsNodeSubtitleStreamListSubtitleStream["CodecName"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Lang"].isNull()) + subtitleStreamObject.lang = streamsNodeSubtitleStreamListSubtitleStream["Lang"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].isNull()) + subtitleStreamObject.codecLongName = streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Duration"].isNull()) + subtitleStreamObject.duration = streamsNodeSubtitleStreamListSubtitleStream["Duration"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].isNull()) + subtitleStreamObject.codecTag = streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].isNull()) + subtitleStreamObject.codecTimeBase = streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].isNull()) + subtitleStreamObject.codecTagString = streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].asString(); + jobListObject.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); + } + auto formatNode = propertiesNode["Format"]; + if(!formatNode["StartTime"].isNull()) + jobListObject.properties.format.startTime = formatNode["StartTime"].asString(); + if(!formatNode["NumPrograms"].isNull()) + jobListObject.properties.format.numPrograms = formatNode["NumPrograms"].asString(); + if(!formatNode["Size"].isNull()) + jobListObject.properties.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + jobListObject.properties.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + jobListObject.properties.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + jobListObject.properties.format.duration = formatNode["Duration"].asString(); + if(!formatNode["Bitrate"].isNull()) + jobListObject.properties.format.bitrate = formatNode["Bitrate"].asString(); + if(!formatNode["FormatName"].isNull()) + jobListObject.properties.format.formatName = formatNode["FormatName"].asString(); jobList_.push_back(jobListObject); } auto allNonExistJobIds = value["NonExistJobIds"]["String"]; diff --git a/mts/src/model/QueryVideoQualityJobRequest.cc b/mts/src/model/QueryVideoQualityJobRequest.cc new file mode 100644 index 000000000..db0985004 --- /dev/null +++ b/mts/src/model/QueryVideoQualityJobRequest.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 + +using AlibabaCloud::Mts::Model::QueryVideoQualityJobRequest; + +QueryVideoQualityJobRequest::QueryVideoQualityJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryVideoQualityJob") { + setMethod(HttpRequest::Method::Post); +} + +QueryVideoQualityJobRequest::~QueryVideoQualityJobRequest() {} + +long QueryVideoQualityJobRequest::getUserId() const { + return userId_; +} + +void QueryVideoQualityJobRequest::setUserId(long userId) { + userId_ = userId; + setParameter(std::string("UserId"), std::to_string(userId)); +} + +std::string QueryVideoQualityJobRequest::getJobId() const { + return jobId_; +} + +void QueryVideoQualityJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + diff --git a/mts/src/model/QueryVideoQualityJobResult.cc b/mts/src/model/QueryVideoQualityJobResult.cc new file mode 100644 index 000000000..3f6226296 --- /dev/null +++ b/mts/src/model/QueryVideoQualityJobResult.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::Mts; +using namespace AlibabaCloud::Mts::Model; + +QueryVideoQualityJobResult::QueryVideoQualityJobResult() : + ServiceResult() +{} + +QueryVideoQualityJobResult::QueryVideoQualityJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryVideoQualityJobResult::~QueryVideoQualityJobResult() +{} + +void QueryVideoQualityJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto jobNode = value["Job"]; + if(!jobNode["Status"].isNull()) + job_.status = jobNode["Status"].asString(); + if(!jobNode["JobId"].isNull()) + job_.jobId = jobNode["JobId"].asString(); + if(!jobNode["UserId"].isNull()) + job_.userId = std::stol(jobNode["UserId"].asString()); + if(!jobNode["VideoQualityResults"].isNull()) + job_.videoQualityResults = jobNode["VideoQualityResults"].asString(); + if(!jobNode["Message"].isNull()) + job_.message = jobNode["Message"].asString(); + if(!jobNode["Output"].isNull()) + job_.output = jobNode["Output"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + +} + +std::string QueryVideoQualityJobResult::getMessage()const +{ + return message_; +} + +QueryVideoQualityJobResult::Job QueryVideoQualityJobResult::getJob()const +{ + return job_; +} + +std::string QueryVideoQualityJobResult::getCode()const +{ + return code_; +} + diff --git a/mts/src/model/QueryVideoSplitJobListRequest.cc b/mts/src/model/QueryVideoSplitJobListRequest.cc index 54a3e6488..e06c5b8e2 100644 --- a/mts/src/model/QueryVideoSplitJobListRequest.cc +++ b/mts/src/model/QueryVideoSplitJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryVideoSplitJobListRequest; - -QueryVideoSplitJobListRequest::QueryVideoSplitJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryVideoSplitJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryVideoSplitJobListRequest::~QueryVideoSplitJobListRequest() -{} - -long QueryVideoSplitJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryVideoSplitJobListRequest; + +QueryVideoSplitJobListRequest::QueryVideoSplitJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryVideoSplitJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryVideoSplitJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryVideoSplitJobListRequest::~QueryVideoSplitJobListRequest() {} + +long QueryVideoSplitJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryVideoSplitJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryVideoSplitJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryVideoSplitJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryVideoSplitJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryVideoSplitJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryVideoSplitJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryVideoSplitJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryVideoSplitJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryVideoSplitJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryVideoSplitJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryVideoSplitJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryVideoSplitJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryVideoSplitJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryVideoSplitJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryVideoSplitJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryVideoSplitJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryVideoSplitJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryVideoSplitJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryVideoSplitJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryVideoSplitJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryVideoSplitJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryVideoSplitJobListResult.cc b/mts/src/model/QueryVideoSplitJobListResult.cc index 2cb52c466..121c0c637 100644 --- a/mts/src/model/QueryVideoSplitJobListResult.cc +++ b/mts/src/model/QueryVideoSplitJobListResult.cc @@ -43,40 +43,40 @@ void QueryVideoSplitJobListResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["Id"].isNull()) - jobListObject.id = valueJobListJob["Id"].asString(); - if(!valueJobListJob["UserData"].isNull()) - jobListObject.userData = valueJobListJob["UserData"].asString(); - if(!valueJobListJob["PipelineId"].isNull()) - jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["CreationTime"].isNull()) + jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); if(!valueJobListJob["State"].isNull()) jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["UserData"].isNull()) + jobListObject.userData = valueJobListJob["UserData"].asString(); if(!valueJobListJob["Code"].isNull()) jobListObject.code = valueJobListJob["Code"].asString(); if(!valueJobListJob["Message"].isNull()) jobListObject.message = valueJobListJob["Message"].asString(); - if(!valueJobListJob["CreationTime"].isNull()) - jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - jobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - jobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - jobListObject.input.object = inputNode["Object"].asString(); + if(!valueJobListJob["PipelineId"].isNull()) + jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["Id"].isNull()) + jobListObject.id = valueJobListJob["Id"].asString(); auto videoSplitResultNode = value["VideoSplitResult"]; auto allVideoSplitListNode = videoSplitResultNode["VideoSplitList"]["VideoSplit"]; for (auto videoSplitResultNodeVideoSplitListVideoSplit : allVideoSplitListNode) { Job::VideoSplitResult::VideoSplit videoSplitObject; - if(!videoSplitResultNodeVideoSplitListVideoSplit["StartTime"].isNull()) - videoSplitObject.startTime = videoSplitResultNodeVideoSplitListVideoSplit["StartTime"].asString(); if(!videoSplitResultNodeVideoSplitListVideoSplit["EndTime"].isNull()) videoSplitObject.endTime = videoSplitResultNodeVideoSplitListVideoSplit["EndTime"].asString(); + if(!videoSplitResultNodeVideoSplitListVideoSplit["StartTime"].isNull()) + videoSplitObject.startTime = videoSplitResultNodeVideoSplitListVideoSplit["StartTime"].asString(); if(!videoSplitResultNodeVideoSplitListVideoSplit["Path"].isNull()) videoSplitObject.path = videoSplitResultNodeVideoSplitListVideoSplit["Path"].asString(); jobListObject.videoSplitResult.videoSplitList.push_back(videoSplitObject); } + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + jobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + jobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + jobListObject.input.bucket = inputNode["Bucket"].asString(); jobList_.push_back(jobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryVideoSummaryJobListRequest.cc b/mts/src/model/QueryVideoSummaryJobListRequest.cc index 5370f1575..d81c1beb5 100644 --- a/mts/src/model/QueryVideoSummaryJobListRequest.cc +++ b/mts/src/model/QueryVideoSummaryJobListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryVideoSummaryJobListRequest; - -QueryVideoSummaryJobListRequest::QueryVideoSummaryJobListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryVideoSummaryJobList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryVideoSummaryJobListRequest::~QueryVideoSummaryJobListRequest() -{} - -long QueryVideoSummaryJobListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryVideoSummaryJobListRequest; + +QueryVideoSummaryJobListRequest::QueryVideoSummaryJobListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryVideoSummaryJobList") { + setMethod(HttpRequest::Method::Post); } -void QueryVideoSummaryJobListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryVideoSummaryJobListRequest::~QueryVideoSummaryJobListRequest() {} + +long QueryVideoSummaryJobListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryVideoSummaryJobListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryVideoSummaryJobListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryVideoSummaryJobListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryVideoSummaryJobListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryVideoSummaryJobListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryVideoSummaryJobListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryVideoSummaryJobListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryVideoSummaryJobListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryVideoSummaryJobListRequest::getOwnerId()const -{ - return ownerId_; +void QueryVideoSummaryJobListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryVideoSummaryJobListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryVideoSummaryJobListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryVideoSummaryJobListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryVideoSummaryJobListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryVideoSummaryJobListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryVideoSummaryJobListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryVideoSummaryJobListRequest::getJobIds()const -{ - return jobIds_; +void QueryVideoSummaryJobListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryVideoSummaryJobListRequest::setJobIds(const std::string& jobIds) -{ - jobIds_ = jobIds; - setParameter("JobIds", jobIds); +std::string QueryVideoSummaryJobListRequest::getJobIds() const { + return jobIds_; +} + +void QueryVideoSummaryJobListRequest::setJobIds(const std::string &jobIds) { + jobIds_ = jobIds; + setParameter(std::string("JobIds"), jobIds); } diff --git a/mts/src/model/QueryVideoSummaryJobListResult.cc b/mts/src/model/QueryVideoSummaryJobListResult.cc index 20d211901..38efa8682 100644 --- a/mts/src/model/QueryVideoSummaryJobListResult.cc +++ b/mts/src/model/QueryVideoSummaryJobListResult.cc @@ -43,45 +43,45 @@ void QueryVideoSummaryJobListResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["Id"].isNull()) - jobListObject.id = valueJobListJob["Id"].asString(); - if(!valueJobListJob["UserData"].isNull()) - jobListObject.userData = valueJobListJob["UserData"].asString(); - if(!valueJobListJob["PipelineId"].isNull()) - jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["CreationTime"].isNull()) + jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); if(!valueJobListJob["State"].isNull()) jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["UserData"].isNull()) + jobListObject.userData = valueJobListJob["UserData"].asString(); if(!valueJobListJob["Code"].isNull()) jobListObject.code = valueJobListJob["Code"].asString(); if(!valueJobListJob["Message"].isNull()) jobListObject.message = valueJobListJob["Message"].asString(); - if(!valueJobListJob["CreationTime"].isNull()) - jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - jobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - jobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - jobListObject.input.object = inputNode["Object"].asString(); + if(!valueJobListJob["PipelineId"].isNull()) + jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["Id"].isNull()) + jobListObject.id = valueJobListJob["Id"].asString(); auto videoSummaryResultNode = value["VideoSummaryResult"]; auto allVideoSummaryListNode = videoSummaryResultNode["VideoSummaryList"]["VideoSummary"]; for (auto videoSummaryResultNodeVideoSummaryListVideoSummary : allVideoSummaryListNode) { Job::VideoSummaryResult::VideoSummary videoSummaryObject; - if(!videoSummaryResultNodeVideoSummaryListVideoSummary["StartTime"].isNull()) - videoSummaryObject.startTime = videoSummaryResultNodeVideoSummaryListVideoSummary["StartTime"].asString(); if(!videoSummaryResultNodeVideoSummaryListVideoSummary["EndTime"].isNull()) videoSummaryObject.endTime = videoSummaryResultNodeVideoSummaryListVideoSummary["EndTime"].asString(); + if(!videoSummaryResultNodeVideoSummaryListVideoSummary["StartTime"].isNull()) + videoSummaryObject.startTime = videoSummaryResultNodeVideoSummaryListVideoSummary["StartTime"].asString(); jobListObject.videoSummaryResult.videoSummaryList.push_back(videoSummaryObject); } auto outputFileNode = videoSummaryResultNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - jobListObject.videoSummaryResult.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - jobListObject.videoSummaryResult.outputFile.location = outputFileNode["Location"].asString(); if(!outputFileNode["Object"].isNull()) jobListObject.videoSummaryResult.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + jobListObject.videoSummaryResult.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + jobListObject.videoSummaryResult.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + jobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + jobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + jobListObject.input.bucket = inputNode["Bucket"].asString(); jobList_.push_back(jobListObject); } auto allNonExistIds = value["NonExistIds"]["String"]; diff --git a/mts/src/model/QueryWaterMarkTemplateListRequest.cc b/mts/src/model/QueryWaterMarkTemplateListRequest.cc index 2deee0703..ecd2f4dad 100644 --- a/mts/src/model/QueryWaterMarkTemplateListRequest.cc +++ b/mts/src/model/QueryWaterMarkTemplateListRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::QueryWaterMarkTemplateListRequest; - -QueryWaterMarkTemplateListRequest::QueryWaterMarkTemplateListRequest() : - RpcServiceRequest("mts", "2014-06-18", "QueryWaterMarkTemplateList") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryWaterMarkTemplateListRequest::~QueryWaterMarkTemplateListRequest() -{} - -long QueryWaterMarkTemplateListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::QueryWaterMarkTemplateListRequest; + +QueryWaterMarkTemplateListRequest::QueryWaterMarkTemplateListRequest() + : RpcServiceRequest("mts", "2014-06-18", "QueryWaterMarkTemplateList") { + setMethod(HttpRequest::Method::Post); } -void QueryWaterMarkTemplateListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +QueryWaterMarkTemplateListRequest::~QueryWaterMarkTemplateListRequest() {} + +long QueryWaterMarkTemplateListRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string QueryWaterMarkTemplateListRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void QueryWaterMarkTemplateListRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void QueryWaterMarkTemplateListRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string QueryWaterMarkTemplateListRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string QueryWaterMarkTemplateListRequest::getOwnerAccount()const -{ - return ownerAccount_; +void QueryWaterMarkTemplateListRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void QueryWaterMarkTemplateListRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string QueryWaterMarkTemplateListRequest::getOwnerAccount() const { + return ownerAccount_; } -long QueryWaterMarkTemplateListRequest::getOwnerId()const -{ - return ownerId_; +void QueryWaterMarkTemplateListRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void QueryWaterMarkTemplateListRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long QueryWaterMarkTemplateListRequest::getOwnerId() const { + return ownerId_; } -std::string QueryWaterMarkTemplateListRequest::getAccessKeyId()const -{ - return accessKeyId_; +void QueryWaterMarkTemplateListRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void QueryWaterMarkTemplateListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string QueryWaterMarkTemplateListRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string QueryWaterMarkTemplateListRequest::getWaterMarkTemplateIds()const -{ - return waterMarkTemplateIds_; +void QueryWaterMarkTemplateListRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void QueryWaterMarkTemplateListRequest::setWaterMarkTemplateIds(const std::string& waterMarkTemplateIds) -{ - waterMarkTemplateIds_ = waterMarkTemplateIds; - setParameter("WaterMarkTemplateIds", waterMarkTemplateIds); +std::string QueryWaterMarkTemplateListRequest::getWaterMarkTemplateIds() const { + return waterMarkTemplateIds_; +} + +void QueryWaterMarkTemplateListRequest::setWaterMarkTemplateIds(const std::string &waterMarkTemplateIds) { + waterMarkTemplateIds_ = waterMarkTemplateIds; + setParameter(std::string("WaterMarkTemplateIds"), waterMarkTemplateIds); } diff --git a/mts/src/model/QueryWaterMarkTemplateListResult.cc b/mts/src/model/QueryWaterMarkTemplateListResult.cc index baf6ef657..86eb6a335 100644 --- a/mts/src/model/QueryWaterMarkTemplateListResult.cc +++ b/mts/src/model/QueryWaterMarkTemplateListResult.cc @@ -43,38 +43,38 @@ void QueryWaterMarkTemplateListResult::parse(const std::string &payload) for (auto valueWaterMarkTemplateListWaterMarkTemplate : allWaterMarkTemplateListNode) { WaterMarkTemplate waterMarkTemplateListObject; - if(!valueWaterMarkTemplateListWaterMarkTemplate["Id"].isNull()) - waterMarkTemplateListObject.id = valueWaterMarkTemplateListWaterMarkTemplate["Id"].asString(); - if(!valueWaterMarkTemplateListWaterMarkTemplate["Name"].isNull()) - waterMarkTemplateListObject.name = valueWaterMarkTemplateListWaterMarkTemplate["Name"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["Type"].isNull()) + waterMarkTemplateListObject.type = valueWaterMarkTemplateListWaterMarkTemplate["Type"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["ReferPos"].isNull()) + waterMarkTemplateListObject.referPos = valueWaterMarkTemplateListWaterMarkTemplate["ReferPos"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["State"].isNull()) + waterMarkTemplateListObject.state = valueWaterMarkTemplateListWaterMarkTemplate["State"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["Dx"].isNull()) + waterMarkTemplateListObject.dx = valueWaterMarkTemplateListWaterMarkTemplate["Dx"].asString(); if(!valueWaterMarkTemplateListWaterMarkTemplate["Width"].isNull()) waterMarkTemplateListObject.width = valueWaterMarkTemplateListWaterMarkTemplate["Width"].asString(); if(!valueWaterMarkTemplateListWaterMarkTemplate["Height"].isNull()) waterMarkTemplateListObject.height = valueWaterMarkTemplateListWaterMarkTemplate["Height"].asString(); - if(!valueWaterMarkTemplateListWaterMarkTemplate["Dx"].isNull()) - waterMarkTemplateListObject.dx = valueWaterMarkTemplateListWaterMarkTemplate["Dx"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["Name"].isNull()) + waterMarkTemplateListObject.name = valueWaterMarkTemplateListWaterMarkTemplate["Name"].asString(); if(!valueWaterMarkTemplateListWaterMarkTemplate["Dy"].isNull()) waterMarkTemplateListObject.dy = valueWaterMarkTemplateListWaterMarkTemplate["Dy"].asString(); - if(!valueWaterMarkTemplateListWaterMarkTemplate["ReferPos"].isNull()) - waterMarkTemplateListObject.referPos = valueWaterMarkTemplateListWaterMarkTemplate["ReferPos"].asString(); - if(!valueWaterMarkTemplateListWaterMarkTemplate["Type"].isNull()) - waterMarkTemplateListObject.type = valueWaterMarkTemplateListWaterMarkTemplate["Type"].asString(); - if(!valueWaterMarkTemplateListWaterMarkTemplate["State"].isNull()) - waterMarkTemplateListObject.state = valueWaterMarkTemplateListWaterMarkTemplate["State"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["Id"].isNull()) + waterMarkTemplateListObject.id = valueWaterMarkTemplateListWaterMarkTemplate["Id"].asString(); + auto ratioReferNode = value["RatioRefer"]; + if(!ratioReferNode["Dx"].isNull()) + waterMarkTemplateListObject.ratioRefer.dx = ratioReferNode["Dx"].asString(); + if(!ratioReferNode["Width"].isNull()) + waterMarkTemplateListObject.ratioRefer.width = ratioReferNode["Width"].asString(); + if(!ratioReferNode["Height"].isNull()) + waterMarkTemplateListObject.ratioRefer.height = ratioReferNode["Height"].asString(); + if(!ratioReferNode["Dy"].isNull()) + waterMarkTemplateListObject.ratioRefer.dy = ratioReferNode["Dy"].asString(); auto timelineNode = value["Timeline"]; if(!timelineNode["Start"].isNull()) waterMarkTemplateListObject.timeline.start = timelineNode["Start"].asString(); if(!timelineNode["Duration"].isNull()) waterMarkTemplateListObject.timeline.duration = timelineNode["Duration"].asString(); - auto ratioReferNode = value["RatioRefer"]; - if(!ratioReferNode["Dx"].isNull()) - waterMarkTemplateListObject.ratioRefer.dx = ratioReferNode["Dx"].asString(); - if(!ratioReferNode["Dy"].isNull()) - waterMarkTemplateListObject.ratioRefer.dy = ratioReferNode["Dy"].asString(); - if(!ratioReferNode["Width"].isNull()) - waterMarkTemplateListObject.ratioRefer.width = ratioReferNode["Width"].asString(); - if(!ratioReferNode["Height"].isNull()) - waterMarkTemplateListObject.ratioRefer.height = ratioReferNode["Height"].asString(); waterMarkTemplateList_.push_back(waterMarkTemplateListObject); } auto allNonExistWids = value["NonExistWids"]["String"]; diff --git a/mts/src/model/RefreshCdnDomainConfigsCacheRequest.cc b/mts/src/model/RefreshCdnDomainConfigsCacheRequest.cc index 0d1575420..9e072c9f5 100644 --- a/mts/src/model/RefreshCdnDomainConfigsCacheRequest.cc +++ b/mts/src/model/RefreshCdnDomainConfigsCacheRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::RefreshCdnDomainConfigsCacheRequest; - -RefreshCdnDomainConfigsCacheRequest::RefreshCdnDomainConfigsCacheRequest() : - RpcServiceRequest("mts", "2014-06-18", "RefreshCdnDomainConfigsCache") -{ - setMethod(HttpRequest::Method::Post); -} - -RefreshCdnDomainConfigsCacheRequest::~RefreshCdnDomainConfigsCacheRequest() -{} - -std::string RefreshCdnDomainConfigsCacheRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::RefreshCdnDomainConfigsCacheRequest; + +RefreshCdnDomainConfigsCacheRequest::RefreshCdnDomainConfigsCacheRequest() + : RpcServiceRequest("mts", "2014-06-18", "RefreshCdnDomainConfigsCache") { + setMethod(HttpRequest::Method::Post); } -void RefreshCdnDomainConfigsCacheRequest::setResourceOwnerId(const std::string& resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); +RefreshCdnDomainConfigsCacheRequest::~RefreshCdnDomainConfigsCacheRequest() {} + +std::string RefreshCdnDomainConfigsCacheRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RefreshCdnDomainConfigsCacheRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RefreshCdnDomainConfigsCacheRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); } -void RefreshCdnDomainConfigsCacheRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RefreshCdnDomainConfigsCacheRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RefreshCdnDomainConfigsCacheRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RefreshCdnDomainConfigsCacheRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RefreshCdnDomainConfigsCacheRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RefreshCdnDomainConfigsCacheRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string RefreshCdnDomainConfigsCacheRequest::getDomains()const -{ - return domains_; +void RefreshCdnDomainConfigsCacheRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RefreshCdnDomainConfigsCacheRequest::setDomains(const std::string& domains) -{ - domains_ = domains; - setParameter("Domains", domains); +std::string RefreshCdnDomainConfigsCacheRequest::getDomains() const { + return domains_; } -std::string RefreshCdnDomainConfigsCacheRequest::getOwnerId()const -{ - return ownerId_; +void RefreshCdnDomainConfigsCacheRequest::setDomains(const std::string &domains) { + domains_ = domains; + setParameter(std::string("Domains"), domains); } -void RefreshCdnDomainConfigsCacheRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string RefreshCdnDomainConfigsCacheRequest::getOwnerId() const { + return ownerId_; } -std::string RefreshCdnDomainConfigsCacheRequest::getAccessKeyId()const -{ - return accessKeyId_; +void RefreshCdnDomainConfigsCacheRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } -void RefreshCdnDomainConfigsCacheRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string RefreshCdnDomainConfigsCacheRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RefreshCdnDomainConfigsCacheRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } diff --git a/mts/src/model/RegisterCustomFaceRequest.cc b/mts/src/model/RegisterCustomFaceRequest.cc new file mode 100644 index 000000000..fc28b4334 --- /dev/null +++ b/mts/src/model/RegisterCustomFaceRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mts::Model::RegisterCustomFaceRequest; + +RegisterCustomFaceRequest::RegisterCustomFaceRequest() + : RpcServiceRequest("mts", "2014-06-18", "RegisterCustomFace") { + setMethod(HttpRequest::Method::Post); +} + +RegisterCustomFaceRequest::~RegisterCustomFaceRequest() {} + +long RegisterCustomFaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void RegisterCustomFaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string RegisterCustomFaceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void RegisterCustomFaceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string RegisterCustomFaceRequest::getPersonId() const { + return personId_; +} + +void RegisterCustomFaceRequest::setPersonId(const std::string &personId) { + personId_ = personId; + setParameter(std::string("PersonId"), personId); +} + +std::string RegisterCustomFaceRequest::getCategoryId() const { + return categoryId_; +} + +void RegisterCustomFaceRequest::setCategoryId(const std::string &categoryId) { + categoryId_ = categoryId; + setParameter(std::string("CategoryId"), categoryId); +} + +std::string RegisterCustomFaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void RegisterCustomFaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string RegisterCustomFaceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void RegisterCustomFaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long RegisterCustomFaceRequest::getOwnerId() const { + return ownerId_; +} + +void RegisterCustomFaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string RegisterCustomFaceRequest::getImageUrl() const { + return imageUrl_; +} + +void RegisterCustomFaceRequest::setImageUrl(const std::string &imageUrl) { + imageUrl_ = imageUrl; + setParameter(std::string("ImageUrl"), imageUrl); +} + diff --git a/mts/src/model/RegisterCustomFaceResult.cc b/mts/src/model/RegisterCustomFaceResult.cc new file mode 100644 index 000000000..888b787a8 --- /dev/null +++ b/mts/src/model/RegisterCustomFaceResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +RegisterCustomFaceResult::RegisterCustomFaceResult() : + ServiceResult() +{} + +RegisterCustomFaceResult::RegisterCustomFaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RegisterCustomFaceResult::~RegisterCustomFaceResult() +{} + +void RegisterCustomFaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["FaceId"].isNull()) + faceId_ = value["FaceId"].asString(); + +} + +std::string RegisterCustomFaceResult::getFaceId()const +{ + return faceId_; +} + diff --git a/mts/src/model/RegisterMediaDetailPersonRequest.cc b/mts/src/model/RegisterMediaDetailPersonRequest.cc index 5f0696d23..6cb636c8c 100644 --- a/mts/src/model/RegisterMediaDetailPersonRequest.cc +++ b/mts/src/model/RegisterMediaDetailPersonRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::RegisterMediaDetailPersonRequest; - -RegisterMediaDetailPersonRequest::RegisterMediaDetailPersonRequest() : - RpcServiceRequest("mts", "2014-06-18", "RegisterMediaDetailPerson") -{ - setMethod(HttpRequest::Method::Post); -} - -RegisterMediaDetailPersonRequest::~RegisterMediaDetailPersonRequest() -{} - -long RegisterMediaDetailPersonRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::RegisterMediaDetailPersonRequest; + +RegisterMediaDetailPersonRequest::RegisterMediaDetailPersonRequest() + : RpcServiceRequest("mts", "2014-06-18", "RegisterMediaDetailPerson") { + setMethod(HttpRequest::Method::Post); } -void RegisterMediaDetailPersonRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RegisterMediaDetailPersonRequest::~RegisterMediaDetailPersonRequest() {} + +long RegisterMediaDetailPersonRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RegisterMediaDetailPersonRequest::getPersonLib()const -{ - return personLib_; +void RegisterMediaDetailPersonRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RegisterMediaDetailPersonRequest::setPersonLib(const std::string& personLib) -{ - personLib_ = personLib; - setParameter("PersonLib", personLib); +std::string RegisterMediaDetailPersonRequest::getPersonLib() const { + return personLib_; } -std::string RegisterMediaDetailPersonRequest::getAccessKeyId()const -{ - return accessKeyId_; +void RegisterMediaDetailPersonRequest::setPersonLib(const std::string &personLib) { + personLib_ = personLib; + setParameter(std::string("PersonLib"), personLib); } -void RegisterMediaDetailPersonRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string RegisterMediaDetailPersonRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string RegisterMediaDetailPersonRequest::getPersonName()const -{ - return personName_; +void RegisterMediaDetailPersonRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void RegisterMediaDetailPersonRequest::setPersonName(const std::string& personName) -{ - personName_ = personName; - setParameter("PersonName", personName); +std::string RegisterMediaDetailPersonRequest::getPersonName() const { + return personName_; } -std::string RegisterMediaDetailPersonRequest::getImages()const -{ - return images_; +void RegisterMediaDetailPersonRequest::setPersonName(const std::string &personName) { + personName_ = personName; + setParameter(std::string("PersonName"), personName); } -void RegisterMediaDetailPersonRequest::setImages(const std::string& images) -{ - images_ = images; - setParameter("Images", images); +std::string RegisterMediaDetailPersonRequest::getImages() const { + return images_; } -std::string RegisterMediaDetailPersonRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RegisterMediaDetailPersonRequest::setImages(const std::string &images) { + images_ = images; + setParameter(std::string("Images"), images); } -void RegisterMediaDetailPersonRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RegisterMediaDetailPersonRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RegisterMediaDetailPersonRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RegisterMediaDetailPersonRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RegisterMediaDetailPersonRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RegisterMediaDetailPersonRequest::getOwnerAccount() const { + return ownerAccount_; } -long RegisterMediaDetailPersonRequest::getOwnerId()const -{ - return ownerId_; +void RegisterMediaDetailPersonRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RegisterMediaDetailPersonRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RegisterMediaDetailPersonRequest::getOwnerId() const { + return ownerId_; } -std::string RegisterMediaDetailPersonRequest::getCategory()const -{ - return category_; +void RegisterMediaDetailPersonRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void RegisterMediaDetailPersonRequest::setCategory(const std::string& category) -{ - category_ = category; - setParameter("Category", category); +std::string RegisterMediaDetailPersonRequest::getCategory() const { + return category_; +} + +void RegisterMediaDetailPersonRequest::setCategory(const std::string &category) { + category_ = category; + setParameter(std::string("Category"), category); } diff --git a/mts/src/model/RegisterMediaDetailPersonResult.cc b/mts/src/model/RegisterMediaDetailPersonResult.cc index 2d892963b..9ea7782ee 100644 --- a/mts/src/model/RegisterMediaDetailPersonResult.cc +++ b/mts/src/model/RegisterMediaDetailPersonResult.cc @@ -43,42 +43,42 @@ void RegisterMediaDetailPersonResult::parse(const std::string &payload) for (auto valueRegisteredPersonagesRegisteredPersonage : allRegisteredPersonagesNode) { RegisteredPersonage registeredPersonagesObject; + if(!valueRegisteredPersonagesRegisteredPersonage["Quality"].isNull()) + registeredPersonagesObject.quality = valueRegisteredPersonagesRegisteredPersonage["Quality"].asString(); if(!valueRegisteredPersonagesRegisteredPersonage["PersonName"].isNull()) registeredPersonagesObject.personName = valueRegisteredPersonagesRegisteredPersonage["PersonName"].asString(); + if(!valueRegisteredPersonagesRegisteredPersonage["Gender"].isNull()) + registeredPersonagesObject.gender = valueRegisteredPersonagesRegisteredPersonage["Gender"].asString(); if(!valueRegisteredPersonagesRegisteredPersonage["FaceId"].isNull()) registeredPersonagesObject.faceId = valueRegisteredPersonagesRegisteredPersonage["FaceId"].asString(); if(!valueRegisteredPersonagesRegisteredPersonage["Target"].isNull()) registeredPersonagesObject.target = valueRegisteredPersonagesRegisteredPersonage["Target"].asString(); - if(!valueRegisteredPersonagesRegisteredPersonage["Quality"].isNull()) - registeredPersonagesObject.quality = valueRegisteredPersonagesRegisteredPersonage["Quality"].asString(); - if(!valueRegisteredPersonagesRegisteredPersonage["Gender"].isNull()) - registeredPersonagesObject.gender = valueRegisteredPersonagesRegisteredPersonage["Gender"].asString(); if(!valueRegisteredPersonagesRegisteredPersonage["ImageId"].isNull()) registeredPersonagesObject.imageId = valueRegisteredPersonagesRegisteredPersonage["ImageId"].asString(); auto imageFileNode = value["ImageFile"]; - if(!imageFileNode["Bucket"].isNull()) - registeredPersonagesObject.imageFile.bucket = imageFileNode["Bucket"].asString(); - if(!imageFileNode["Location"].isNull()) - registeredPersonagesObject.imageFile.location = imageFileNode["Location"].asString(); if(!imageFileNode["Object"].isNull()) registeredPersonagesObject.imageFile.object = imageFileNode["Object"].asString(); + if(!imageFileNode["Location"].isNull()) + registeredPersonagesObject.imageFile.location = imageFileNode["Location"].asString(); + if(!imageFileNode["Bucket"].isNull()) + registeredPersonagesObject.imageFile.bucket = imageFileNode["Bucket"].asString(); registeredPersonages_.push_back(registeredPersonagesObject); } auto allFailedImagesNode = value["FailedImages"]["FailedImage"]; for (auto valueFailedImagesFailedImage : allFailedImagesNode) { FailedImage failedImagesObject; - if(!valueFailedImagesFailedImage["Code"].isNull()) - failedImagesObject.code = valueFailedImagesFailedImage["Code"].asString(); if(!valueFailedImagesFailedImage["Success"].isNull()) failedImagesObject.success = valueFailedImagesFailedImage["Success"].asString(); + if(!valueFailedImagesFailedImage["Code"].isNull()) + failedImagesObject.code = valueFailedImagesFailedImage["Code"].asString(); auto imageFile1Node = value["ImageFile"]; - if(!imageFile1Node["Bucket"].isNull()) - failedImagesObject.imageFile1.bucket = imageFile1Node["Bucket"].asString(); - if(!imageFile1Node["Location"].isNull()) - failedImagesObject.imageFile1.location = imageFile1Node["Location"].asString(); if(!imageFile1Node["Object"].isNull()) failedImagesObject.imageFile1.object = imageFile1Node["Object"].asString(); + if(!imageFile1Node["Location"].isNull()) + failedImagesObject.imageFile1.location = imageFile1Node["Location"].asString(); + if(!imageFile1Node["Bucket"].isNull()) + failedImagesObject.imageFile1.bucket = imageFile1Node["Bucket"].asString(); failedImages_.push_back(failedImagesObject); } diff --git a/mts/src/model/RegisterMediaDetailScenarioRequest.cc b/mts/src/model/RegisterMediaDetailScenarioRequest.cc index 1483814d3..5f9baf331 100644 --- a/mts/src/model/RegisterMediaDetailScenarioRequest.cc +++ b/mts/src/model/RegisterMediaDetailScenarioRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::RegisterMediaDetailScenarioRequest; - -RegisterMediaDetailScenarioRequest::RegisterMediaDetailScenarioRequest() : - RpcServiceRequest("mts", "2014-06-18", "RegisterMediaDetailScenario") -{ - setMethod(HttpRequest::Method::Post); -} - -RegisterMediaDetailScenarioRequest::~RegisterMediaDetailScenarioRequest() -{} - -long RegisterMediaDetailScenarioRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::RegisterMediaDetailScenarioRequest; + +RegisterMediaDetailScenarioRequest::RegisterMediaDetailScenarioRequest() + : RpcServiceRequest("mts", "2014-06-18", "RegisterMediaDetailScenario") { + setMethod(HttpRequest::Method::Post); } -void RegisterMediaDetailScenarioRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +RegisterMediaDetailScenarioRequest::~RegisterMediaDetailScenarioRequest() {} + +long RegisterMediaDetailScenarioRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string RegisterMediaDetailScenarioRequest::getDescription()const -{ - return description_; +void RegisterMediaDetailScenarioRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void RegisterMediaDetailScenarioRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string RegisterMediaDetailScenarioRequest::getDescription() const { + return description_; } -std::string RegisterMediaDetailScenarioRequest::getAccessKeyId()const -{ - return accessKeyId_; +void RegisterMediaDetailScenarioRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void RegisterMediaDetailScenarioRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string RegisterMediaDetailScenarioRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string RegisterMediaDetailScenarioRequest::getJobId()const -{ - return jobId_; +void RegisterMediaDetailScenarioRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void RegisterMediaDetailScenarioRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string RegisterMediaDetailScenarioRequest::getJobId() const { + return jobId_; } -std::string RegisterMediaDetailScenarioRequest::getScenario()const -{ - return scenario_; +void RegisterMediaDetailScenarioRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void RegisterMediaDetailScenarioRequest::setScenario(const std::string& scenario) -{ - scenario_ = scenario; - setParameter("Scenario", scenario); +std::string RegisterMediaDetailScenarioRequest::getScenario() const { + return scenario_; } -std::string RegisterMediaDetailScenarioRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void RegisterMediaDetailScenarioRequest::setScenario(const std::string &scenario) { + scenario_ = scenario; + setParameter(std::string("Scenario"), scenario); } -void RegisterMediaDetailScenarioRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string RegisterMediaDetailScenarioRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string RegisterMediaDetailScenarioRequest::getOwnerAccount()const -{ - return ownerAccount_; +void RegisterMediaDetailScenarioRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void RegisterMediaDetailScenarioRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string RegisterMediaDetailScenarioRequest::getOwnerAccount() const { + return ownerAccount_; } -long RegisterMediaDetailScenarioRequest::getOwnerId()const -{ - return ownerId_; +void RegisterMediaDetailScenarioRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void RegisterMediaDetailScenarioRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long RegisterMediaDetailScenarioRequest::getOwnerId() const { + return ownerId_; +} + +void RegisterMediaDetailScenarioRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ReportAnnotationJobResultRequest.cc b/mts/src/model/ReportAnnotationJobResultRequest.cc index a5bfe793f..e8850f252 100644 --- a/mts/src/model/ReportAnnotationJobResultRequest.cc +++ b/mts/src/model/ReportAnnotationJobResultRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ReportAnnotationJobResultRequest; - -ReportAnnotationJobResultRequest::ReportAnnotationJobResultRequest() : - RpcServiceRequest("mts", "2014-06-18", "ReportAnnotationJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -ReportAnnotationJobResultRequest::~ReportAnnotationJobResultRequest() -{} - -long ReportAnnotationJobResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ReportAnnotationJobResultRequest; + +ReportAnnotationJobResultRequest::ReportAnnotationJobResultRequest() + : RpcServiceRequest("mts", "2014-06-18", "ReportAnnotationJobResult") { + setMethod(HttpRequest::Method::Post); } -void ReportAnnotationJobResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReportAnnotationJobResultRequest::~ReportAnnotationJobResultRequest() {} + +long ReportAnnotationJobResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReportAnnotationJobResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ReportAnnotationJobResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReportAnnotationJobResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ReportAnnotationJobResultRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ReportAnnotationJobResultRequest::getJobId()const -{ - return jobId_; +void ReportAnnotationJobResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ReportAnnotationJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string ReportAnnotationJobResultRequest::getJobId() const { + return jobId_; } -std::string ReportAnnotationJobResultRequest::getDetails()const -{ - return details_; +void ReportAnnotationJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void ReportAnnotationJobResultRequest::setDetails(const std::string& details) -{ - details_ = details; - setParameter("Details", details); +std::string ReportAnnotationJobResultRequest::getDetails() const { + return details_; } -std::string ReportAnnotationJobResultRequest::getAnnotation()const -{ - return annotation_; +void ReportAnnotationJobResultRequest::setDetails(const std::string &details) { + details_ = details; + setParameter(std::string("Details"), details); } -void ReportAnnotationJobResultRequest::setAnnotation(const std::string& annotation) -{ - annotation_ = annotation; - setParameter("Annotation", annotation); +std::string ReportAnnotationJobResultRequest::getAnnotation() const { + return annotation_; } -std::string ReportAnnotationJobResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReportAnnotationJobResultRequest::setAnnotation(const std::string &annotation) { + annotation_ = annotation; + setParameter(std::string("Annotation"), annotation); } -void ReportAnnotationJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReportAnnotationJobResultRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReportAnnotationJobResultRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReportAnnotationJobResultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReportAnnotationJobResultRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReportAnnotationJobResultRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReportAnnotationJobResultRequest::getOwnerId()const -{ - return ownerId_; +void ReportAnnotationJobResultRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReportAnnotationJobResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReportAnnotationJobResultRequest::getOwnerId() const { + return ownerId_; +} + +void ReportAnnotationJobResultRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ReportCensorJobResultRequest.cc b/mts/src/model/ReportCensorJobResultRequest.cc index 7e9499ccf..5e773b64a 100644 --- a/mts/src/model/ReportCensorJobResultRequest.cc +++ b/mts/src/model/ReportCensorJobResultRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ReportCensorJobResultRequest; - -ReportCensorJobResultRequest::ReportCensorJobResultRequest() : - RpcServiceRequest("mts", "2014-06-18", "ReportCensorJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -ReportCensorJobResultRequest::~ReportCensorJobResultRequest() -{} - -long ReportCensorJobResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ReportCensorJobResultRequest; + +ReportCensorJobResultRequest::ReportCensorJobResultRequest() + : RpcServiceRequest("mts", "2014-06-18", "ReportCensorJobResult") { + setMethod(HttpRequest::Method::Post); } -void ReportCensorJobResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReportCensorJobResultRequest::~ReportCensorJobResultRequest() {} + +long ReportCensorJobResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReportCensorJobResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ReportCensorJobResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReportCensorJobResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ReportCensorJobResultRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ReportCensorJobResultRequest::getJobId()const -{ - return jobId_; +void ReportCensorJobResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ReportCensorJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string ReportCensorJobResultRequest::getJobId() const { + return jobId_; } -std::string ReportCensorJobResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReportCensorJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void ReportCensorJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReportCensorJobResultRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReportCensorJobResultRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReportCensorJobResultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReportCensorJobResultRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReportCensorJobResultRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ReportCensorJobResultRequest::getLabel()const -{ - return label_; +void ReportCensorJobResultRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReportCensorJobResultRequest::setLabel(const std::string& label) -{ - label_ = label; - setParameter("Label", label); +std::string ReportCensorJobResultRequest::getLabel() const { + return label_; } -long ReportCensorJobResultRequest::getOwnerId()const -{ - return ownerId_; +void ReportCensorJobResultRequest::setLabel(const std::string &label) { + label_ = label; + setParameter(std::string("Label"), label); } -void ReportCensorJobResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReportCensorJobResultRequest::getOwnerId() const { + return ownerId_; } -std::string ReportCensorJobResultRequest::getDetail()const -{ - return detail_; +void ReportCensorJobResultRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ReportCensorJobResultRequest::setDetail(const std::string& detail) -{ - detail_ = detail; - setParameter("Detail", detail); +std::string ReportCensorJobResultRequest::getDetail() const { + return detail_; +} + +void ReportCensorJobResultRequest::setDetail(const std::string &detail) { + detail_ = detail; + setParameter(std::string("Detail"), detail); } diff --git a/mts/src/model/ReportCoverJobResultRequest.cc b/mts/src/model/ReportCoverJobResultRequest.cc index 280e0056a..8c586bb2f 100644 --- a/mts/src/model/ReportCoverJobResultRequest.cc +++ b/mts/src/model/ReportCoverJobResultRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ReportCoverJobResultRequest; - -ReportCoverJobResultRequest::ReportCoverJobResultRequest() : - RpcServiceRequest("mts", "2014-06-18", "ReportCoverJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -ReportCoverJobResultRequest::~ReportCoverJobResultRequest() -{} - -long ReportCoverJobResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ReportCoverJobResultRequest; + +ReportCoverJobResultRequest::ReportCoverJobResultRequest() + : RpcServiceRequest("mts", "2014-06-18", "ReportCoverJobResult") { + setMethod(HttpRequest::Method::Post); } -void ReportCoverJobResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReportCoverJobResultRequest::~ReportCoverJobResultRequest() {} + +long ReportCoverJobResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReportCoverJobResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ReportCoverJobResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReportCoverJobResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ReportCoverJobResultRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ReportCoverJobResultRequest::getResult()const -{ - return result_; +void ReportCoverJobResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ReportCoverJobResultRequest::setResult(const std::string& result) -{ - result_ = result; - setParameter("Result", result); +std::string ReportCoverJobResultRequest::getResult() const { + return result_; } -std::string ReportCoverJobResultRequest::getJobId()const -{ - return jobId_; +void ReportCoverJobResultRequest::setResult(const std::string &result) { + result_ = result; + setParameter(std::string("Result"), result); } -void ReportCoverJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string ReportCoverJobResultRequest::getJobId() const { + return jobId_; } -std::string ReportCoverJobResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReportCoverJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void ReportCoverJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReportCoverJobResultRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReportCoverJobResultRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReportCoverJobResultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReportCoverJobResultRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReportCoverJobResultRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReportCoverJobResultRequest::getOwnerId()const -{ - return ownerId_; +void ReportCoverJobResultRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReportCoverJobResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReportCoverJobResultRequest::getOwnerId() const { + return ownerId_; +} + +void ReportCoverJobResultRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ReportFacerecogJobResultRequest.cc b/mts/src/model/ReportFacerecogJobResultRequest.cc index 7efc34977..83e173515 100644 --- a/mts/src/model/ReportFacerecogJobResultRequest.cc +++ b/mts/src/model/ReportFacerecogJobResultRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ReportFacerecogJobResultRequest; - -ReportFacerecogJobResultRequest::ReportFacerecogJobResultRequest() : - RpcServiceRequest("mts", "2014-06-18", "ReportFacerecogJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -ReportFacerecogJobResultRequest::~ReportFacerecogJobResultRequest() -{} - -long ReportFacerecogJobResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ReportFacerecogJobResultRequest; + +ReportFacerecogJobResultRequest::ReportFacerecogJobResultRequest() + : RpcServiceRequest("mts", "2014-06-18", "ReportFacerecogJobResult") { + setMethod(HttpRequest::Method::Post); } -void ReportFacerecogJobResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReportFacerecogJobResultRequest::~ReportFacerecogJobResultRequest() {} + +long ReportFacerecogJobResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReportFacerecogJobResultRequest::getFacerecog()const -{ - return facerecog_; +void ReportFacerecogJobResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReportFacerecogJobResultRequest::setFacerecog(const std::string& facerecog) -{ - facerecog_ = facerecog; - setParameter("Facerecog", facerecog); +std::string ReportFacerecogJobResultRequest::getFacerecog() const { + return facerecog_; } -std::string ReportFacerecogJobResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ReportFacerecogJobResultRequest::setFacerecog(const std::string &facerecog) { + facerecog_ = facerecog; + setParameter(std::string("Facerecog"), facerecog); } -void ReportFacerecogJobResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ReportFacerecogJobResultRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ReportFacerecogJobResultRequest::getJobId()const -{ - return jobId_; +void ReportFacerecogJobResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ReportFacerecogJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string ReportFacerecogJobResultRequest::getJobId() const { + return jobId_; } -std::string ReportFacerecogJobResultRequest::getDetails()const -{ - return details_; +void ReportFacerecogJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void ReportFacerecogJobResultRequest::setDetails(const std::string& details) -{ - details_ = details; - setParameter("Details", details); +std::string ReportFacerecogJobResultRequest::getDetails() const { + return details_; } -std::string ReportFacerecogJobResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReportFacerecogJobResultRequest::setDetails(const std::string &details) { + details_ = details; + setParameter(std::string("Details"), details); } -void ReportFacerecogJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReportFacerecogJobResultRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReportFacerecogJobResultRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReportFacerecogJobResultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReportFacerecogJobResultRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReportFacerecogJobResultRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReportFacerecogJobResultRequest::getOwnerId()const -{ - return ownerId_; +void ReportFacerecogJobResultRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReportFacerecogJobResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReportFacerecogJobResultRequest::getOwnerId() const { + return ownerId_; +} + +void ReportFacerecogJobResultRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ReportFpShotJobResultRequest.cc b/mts/src/model/ReportFpShotJobResultRequest.cc index 9c5a73e97..c75119545 100644 --- a/mts/src/model/ReportFpShotJobResultRequest.cc +++ b/mts/src/model/ReportFpShotJobResultRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ReportFpShotJobResultRequest; - -ReportFpShotJobResultRequest::ReportFpShotJobResultRequest() : - RpcServiceRequest("mts", "2014-06-18", "ReportFpShotJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -ReportFpShotJobResultRequest::~ReportFpShotJobResultRequest() -{} - -long ReportFpShotJobResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ReportFpShotJobResultRequest; + +ReportFpShotJobResultRequest::ReportFpShotJobResultRequest() + : RpcServiceRequest("mts", "2014-06-18", "ReportFpShotJobResult") { + setMethod(HttpRequest::Method::Post); } -void ReportFpShotJobResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReportFpShotJobResultRequest::~ReportFpShotJobResultRequest() {} + +long ReportFpShotJobResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReportFpShotJobResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ReportFpShotJobResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReportFpShotJobResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ReportFpShotJobResultRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ReportFpShotJobResultRequest::getResult()const -{ - return result_; +void ReportFpShotJobResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ReportFpShotJobResultRequest::setResult(const std::string& result) -{ - result_ = result; - setParameter("Result", result); +std::string ReportFpShotJobResultRequest::getResult() const { + return result_; } -std::string ReportFpShotJobResultRequest::getJobId()const -{ - return jobId_; +void ReportFpShotJobResultRequest::setResult(const std::string &result) { + result_ = result; + setParameter(std::string("Result"), result); } -void ReportFpShotJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string ReportFpShotJobResultRequest::getJobId() const { + return jobId_; } -std::string ReportFpShotJobResultRequest::getDetails()const -{ - return details_; +void ReportFpShotJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void ReportFpShotJobResultRequest::setDetails(const std::string& details) -{ - details_ = details; - setParameter("Details", details); +std::string ReportFpShotJobResultRequest::getDetails() const { + return details_; } -std::string ReportFpShotJobResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReportFpShotJobResultRequest::setDetails(const std::string &details) { + details_ = details; + setParameter(std::string("Details"), details); } -void ReportFpShotJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReportFpShotJobResultRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReportFpShotJobResultRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReportFpShotJobResultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReportFpShotJobResultRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReportFpShotJobResultRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReportFpShotJobResultRequest::getOwnerId()const -{ - return ownerId_; +void ReportFpShotJobResultRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReportFpShotJobResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReportFpShotJobResultRequest::getOwnerId() const { + return ownerId_; +} + +void ReportFpShotJobResultRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ReportMediaDetailJobResultRequest.cc b/mts/src/model/ReportMediaDetailJobResultRequest.cc index fbb8ec5ed..09940f9be 100644 --- a/mts/src/model/ReportMediaDetailJobResultRequest.cc +++ b/mts/src/model/ReportMediaDetailJobResultRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ReportMediaDetailJobResultRequest; - -ReportMediaDetailJobResultRequest::ReportMediaDetailJobResultRequest() : - RpcServiceRequest("mts", "2014-06-18", "ReportMediaDetailJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -ReportMediaDetailJobResultRequest::~ReportMediaDetailJobResultRequest() -{} - -long ReportMediaDetailJobResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ReportMediaDetailJobResultRequest; + +ReportMediaDetailJobResultRequest::ReportMediaDetailJobResultRequest() + : RpcServiceRequest("mts", "2014-06-18", "ReportMediaDetailJobResult") { + setMethod(HttpRequest::Method::Post); } -void ReportMediaDetailJobResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReportMediaDetailJobResultRequest::~ReportMediaDetailJobResultRequest() {} + +long ReportMediaDetailJobResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReportMediaDetailJobResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ReportMediaDetailJobResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReportMediaDetailJobResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ReportMediaDetailJobResultRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ReportMediaDetailJobResultRequest::getJobId()const -{ - return jobId_; +void ReportMediaDetailJobResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ReportMediaDetailJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string ReportMediaDetailJobResultRequest::getJobId() const { + return jobId_; } -std::string ReportMediaDetailJobResultRequest::getTag()const -{ - return tag_; +void ReportMediaDetailJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void ReportMediaDetailJobResultRequest::setTag(const std::string& tag) -{ - tag_ = tag; - setParameter("Tag", tag); +std::string ReportMediaDetailJobResultRequest::getTag() const { + return tag_; } -std::string ReportMediaDetailJobResultRequest::getResults()const -{ - return results_; +void ReportMediaDetailJobResultRequest::setTag(const std::string &tag) { + tag_ = tag; + setParameter(std::string("Tag"), tag); } -void ReportMediaDetailJobResultRequest::setResults(const std::string& results) -{ - results_ = results; - setParameter("Results", results); +std::string ReportMediaDetailJobResultRequest::getResults() const { + return results_; } -std::string ReportMediaDetailJobResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReportMediaDetailJobResultRequest::setResults(const std::string &results) { + results_ = results; + setParameter(std::string("Results"), results); } -void ReportMediaDetailJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReportMediaDetailJobResultRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReportMediaDetailJobResultRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReportMediaDetailJobResultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReportMediaDetailJobResultRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReportMediaDetailJobResultRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReportMediaDetailJobResultRequest::getOwnerId()const -{ - return ownerId_; +void ReportMediaDetailJobResultRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReportMediaDetailJobResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReportMediaDetailJobResultRequest::getOwnerId() const { + return ownerId_; +} + +void ReportMediaDetailJobResultRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ReportPornJobResultRequest.cc b/mts/src/model/ReportPornJobResultRequest.cc index 94f43a711..a3c9100dd 100644 --- a/mts/src/model/ReportPornJobResultRequest.cc +++ b/mts/src/model/ReportPornJobResultRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ReportPornJobResultRequest; - -ReportPornJobResultRequest::ReportPornJobResultRequest() : - RpcServiceRequest("mts", "2014-06-18", "ReportPornJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -ReportPornJobResultRequest::~ReportPornJobResultRequest() -{} - -long ReportPornJobResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ReportPornJobResultRequest; + +ReportPornJobResultRequest::ReportPornJobResultRequest() + : RpcServiceRequest("mts", "2014-06-18", "ReportPornJobResult") { + setMethod(HttpRequest::Method::Post); } -void ReportPornJobResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReportPornJobResultRequest::~ReportPornJobResultRequest() {} + +long ReportPornJobResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReportPornJobResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ReportPornJobResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReportPornJobResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ReportPornJobResultRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ReportPornJobResultRequest::getJobId()const -{ - return jobId_; +void ReportPornJobResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ReportPornJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string ReportPornJobResultRequest::getJobId() const { + return jobId_; } -std::string ReportPornJobResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReportPornJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void ReportPornJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReportPornJobResultRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReportPornJobResultRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReportPornJobResultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReportPornJobResultRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReportPornJobResultRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ReportPornJobResultRequest::getLabel()const -{ - return label_; +void ReportPornJobResultRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReportPornJobResultRequest::setLabel(const std::string& label) -{ - label_ = label; - setParameter("Label", label); +std::string ReportPornJobResultRequest::getLabel() const { + return label_; } -long ReportPornJobResultRequest::getOwnerId()const -{ - return ownerId_; +void ReportPornJobResultRequest::setLabel(const std::string &label) { + label_ = label; + setParameter(std::string("Label"), label); } -void ReportPornJobResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReportPornJobResultRequest::getOwnerId() const { + return ownerId_; } -std::string ReportPornJobResultRequest::getDetail()const -{ - return detail_; +void ReportPornJobResultRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ReportPornJobResultRequest::setDetail(const std::string& detail) -{ - detail_ = detail; - setParameter("Detail", detail); +std::string ReportPornJobResultRequest::getDetail() const { + return detail_; +} + +void ReportPornJobResultRequest::setDetail(const std::string &detail) { + detail_ = detail; + setParameter(std::string("Detail"), detail); } diff --git a/mts/src/model/ReportTagJobResultRequest.cc b/mts/src/model/ReportTagJobResultRequest.cc index 5e0259883..773d529e2 100644 --- a/mts/src/model/ReportTagJobResultRequest.cc +++ b/mts/src/model/ReportTagJobResultRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ReportTagJobResultRequest; - -ReportTagJobResultRequest::ReportTagJobResultRequest() : - RpcServiceRequest("mts", "2014-06-18", "ReportTagJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -ReportTagJobResultRequest::~ReportTagJobResultRequest() -{} - -long ReportTagJobResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ReportTagJobResultRequest; + +ReportTagJobResultRequest::ReportTagJobResultRequest() + : RpcServiceRequest("mts", "2014-06-18", "ReportTagJobResult") { + setMethod(HttpRequest::Method::Post); } -void ReportTagJobResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReportTagJobResultRequest::~ReportTagJobResultRequest() {} + +long ReportTagJobResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReportTagJobResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ReportTagJobResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReportTagJobResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ReportTagJobResultRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ReportTagJobResultRequest::getResult()const -{ - return result_; +void ReportTagJobResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ReportTagJobResultRequest::setResult(const std::string& result) -{ - result_ = result; - setParameter("Result", result); +std::string ReportTagJobResultRequest::getResult() const { + return result_; } -std::string ReportTagJobResultRequest::getJobId()const -{ - return jobId_; +void ReportTagJobResultRequest::setResult(const std::string &result) { + result_ = result; + setParameter(std::string("Result"), result); } -void ReportTagJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string ReportTagJobResultRequest::getJobId() const { + return jobId_; } -std::string ReportTagJobResultRequest::getTag()const -{ - return tag_; +void ReportTagJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void ReportTagJobResultRequest::setTag(const std::string& tag) -{ - tag_ = tag; - setParameter("Tag", tag); +std::string ReportTagJobResultRequest::getTag() const { + return tag_; } -std::string ReportTagJobResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReportTagJobResultRequest::setTag(const std::string &tag) { + tag_ = tag; + setParameter(std::string("Tag"), tag); } -void ReportTagJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReportTagJobResultRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReportTagJobResultRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReportTagJobResultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReportTagJobResultRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReportTagJobResultRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReportTagJobResultRequest::getOwnerId()const -{ - return ownerId_; +void ReportTagJobResultRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReportTagJobResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReportTagJobResultRequest::getOwnerId() const { + return ownerId_; +} + +void ReportTagJobResultRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/ReportTerrorismJobResultRequest.cc b/mts/src/model/ReportTerrorismJobResultRequest.cc index 9344d0b9f..63b985ac8 100644 --- a/mts/src/model/ReportTerrorismJobResultRequest.cc +++ b/mts/src/model/ReportTerrorismJobResultRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ReportTerrorismJobResultRequest; - -ReportTerrorismJobResultRequest::ReportTerrorismJobResultRequest() : - RpcServiceRequest("mts", "2014-06-18", "ReportTerrorismJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -ReportTerrorismJobResultRequest::~ReportTerrorismJobResultRequest() -{} - -long ReportTerrorismJobResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ReportTerrorismJobResultRequest; + +ReportTerrorismJobResultRequest::ReportTerrorismJobResultRequest() + : RpcServiceRequest("mts", "2014-06-18", "ReportTerrorismJobResult") { + setMethod(HttpRequest::Method::Post); } -void ReportTerrorismJobResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReportTerrorismJobResultRequest::~ReportTerrorismJobResultRequest() {} + +long ReportTerrorismJobResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReportTerrorismJobResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ReportTerrorismJobResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReportTerrorismJobResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ReportTerrorismJobResultRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ReportTerrorismJobResultRequest::getJobId()const -{ - return jobId_; +void ReportTerrorismJobResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ReportTerrorismJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string ReportTerrorismJobResultRequest::getJobId() const { + return jobId_; } -std::string ReportTerrorismJobResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReportTerrorismJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void ReportTerrorismJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReportTerrorismJobResultRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReportTerrorismJobResultRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReportTerrorismJobResultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReportTerrorismJobResultRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReportTerrorismJobResultRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string ReportTerrorismJobResultRequest::getLabel()const -{ - return label_; +void ReportTerrorismJobResultRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReportTerrorismJobResultRequest::setLabel(const std::string& label) -{ - label_ = label; - setParameter("Label", label); +std::string ReportTerrorismJobResultRequest::getLabel() const { + return label_; } -long ReportTerrorismJobResultRequest::getOwnerId()const -{ - return ownerId_; +void ReportTerrorismJobResultRequest::setLabel(const std::string &label) { + label_ = label; + setParameter(std::string("Label"), label); } -void ReportTerrorismJobResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReportTerrorismJobResultRequest::getOwnerId() const { + return ownerId_; } -std::string ReportTerrorismJobResultRequest::getDetail()const -{ - return detail_; +void ReportTerrorismJobResultRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void ReportTerrorismJobResultRequest::setDetail(const std::string& detail) -{ - detail_ = detail; - setParameter("Detail", detail); +std::string ReportTerrorismJobResultRequest::getDetail() const { + return detail_; +} + +void ReportTerrorismJobResultRequest::setDetail(const std::string &detail) { + detail_ = detail; + setParameter(std::string("Detail"), detail); } diff --git a/mts/src/model/ReportVideoSplitJobResultRequest.cc b/mts/src/model/ReportVideoSplitJobResultRequest.cc index 4deb2f663..06e5e212e 100644 --- a/mts/src/model/ReportVideoSplitJobResultRequest.cc +++ b/mts/src/model/ReportVideoSplitJobResultRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::ReportVideoSplitJobResultRequest; - -ReportVideoSplitJobResultRequest::ReportVideoSplitJobResultRequest() : - RpcServiceRequest("mts", "2014-06-18", "ReportVideoSplitJobResult") -{ - setMethod(HttpRequest::Method::Post); -} - -ReportVideoSplitJobResultRequest::~ReportVideoSplitJobResultRequest() -{} - -long ReportVideoSplitJobResultRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::ReportVideoSplitJobResultRequest; + +ReportVideoSplitJobResultRequest::ReportVideoSplitJobResultRequest() + : RpcServiceRequest("mts", "2014-06-18", "ReportVideoSplitJobResult") { + setMethod(HttpRequest::Method::Post); } -void ReportVideoSplitJobResultRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +ReportVideoSplitJobResultRequest::~ReportVideoSplitJobResultRequest() {} + +long ReportVideoSplitJobResultRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string ReportVideoSplitJobResultRequest::getAccessKeyId()const -{ - return accessKeyId_; +void ReportVideoSplitJobResultRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void ReportVideoSplitJobResultRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string ReportVideoSplitJobResultRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string ReportVideoSplitJobResultRequest::getResult()const -{ - return result_; +void ReportVideoSplitJobResultRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void ReportVideoSplitJobResultRequest::setResult(const std::string& result) -{ - result_ = result; - setParameter("Result", result); +std::string ReportVideoSplitJobResultRequest::getResult() const { + return result_; } -std::string ReportVideoSplitJobResultRequest::getJobId()const -{ - return jobId_; +void ReportVideoSplitJobResultRequest::setResult(const std::string &result) { + result_ = result; + setParameter(std::string("Result"), result); } -void ReportVideoSplitJobResultRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string ReportVideoSplitJobResultRequest::getJobId() const { + return jobId_; } -std::string ReportVideoSplitJobResultRequest::getDetails()const -{ - return details_; +void ReportVideoSplitJobResultRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void ReportVideoSplitJobResultRequest::setDetails(const std::string& details) -{ - details_ = details; - setParameter("Details", details); +std::string ReportVideoSplitJobResultRequest::getDetails() const { + return details_; } -std::string ReportVideoSplitJobResultRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void ReportVideoSplitJobResultRequest::setDetails(const std::string &details) { + details_ = details; + setParameter(std::string("Details"), details); } -void ReportVideoSplitJobResultRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string ReportVideoSplitJobResultRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string ReportVideoSplitJobResultRequest::getOwnerAccount()const -{ - return ownerAccount_; +void ReportVideoSplitJobResultRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void ReportVideoSplitJobResultRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string ReportVideoSplitJobResultRequest::getOwnerAccount() const { + return ownerAccount_; } -long ReportVideoSplitJobResultRequest::getOwnerId()const -{ - return ownerId_; +void ReportVideoSplitJobResultRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void ReportVideoSplitJobResultRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long ReportVideoSplitJobResultRequest::getOwnerId() const { + return ownerId_; +} + +void ReportVideoSplitJobResultRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/SearchMediaRequest.cc b/mts/src/model/SearchMediaRequest.cc index 54f726ca4..f0b36e3ad 100644 --- a/mts/src/model/SearchMediaRequest.cc +++ b/mts/src/model/SearchMediaRequest.cc @@ -1,194 +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 - -using AlibabaCloud::Mts::Model::SearchMediaRequest; - -SearchMediaRequest::SearchMediaRequest() : - RpcServiceRequest("mts", "2014-06-18", "SearchMedia") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchMediaRequest::~SearchMediaRequest() -{} - -long SearchMediaRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SearchMediaRequest; + +SearchMediaRequest::SearchMediaRequest() + : RpcServiceRequest("mts", "2014-06-18", "SearchMedia") { + setMethod(HttpRequest::Method::Post); } -void SearchMediaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SearchMediaRequest::~SearchMediaRequest() {} + +long SearchMediaRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SearchMediaRequest::getDescription()const -{ - return description_; +void SearchMediaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SearchMediaRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string SearchMediaRequest::getDescription() const { + return description_; } -std::string SearchMediaRequest::getTitle()const -{ - return title_; +void SearchMediaRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void SearchMediaRequest::setTitle(const std::string& title) -{ - title_ = title; - setParameter("Title", title); +std::string SearchMediaRequest::getTitle() const { + return title_; } -long SearchMediaRequest::getPageNumber()const -{ - return pageNumber_; +void SearchMediaRequest::setTitle(const std::string &title) { + title_ = title; + setParameter(std::string("Title"), title); } -void SearchMediaRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long SearchMediaRequest::getPageNumber() const { + return pageNumber_; } -std::string SearchMediaRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SearchMediaRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void SearchMediaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SearchMediaRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SearchMediaRequest::getCateId()const -{ - return cateId_; +void SearchMediaRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SearchMediaRequest::setCateId(const std::string& cateId) -{ - cateId_ = cateId; - setParameter("CateId", cateId); +std::string SearchMediaRequest::getCateId() const { + return cateId_; } -long SearchMediaRequest::getPageSize()const -{ - return pageSize_; +void SearchMediaRequest::setCateId(const std::string &cateId) { + cateId_ = cateId; + setParameter(std::string("CateId"), cateId); } -void SearchMediaRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long SearchMediaRequest::getPageSize() const { + return pageSize_; } -std::string SearchMediaRequest::getFrom()const -{ - return from_; +void SearchMediaRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void SearchMediaRequest::setFrom(const std::string& from) -{ - from_ = from; - setParameter("From", from); +std::string SearchMediaRequest::getFrom() const { + return from_; } -std::string SearchMediaRequest::getTag()const -{ - return tag_; +void SearchMediaRequest::setFrom(const std::string &from) { + from_ = from; + setParameter(std::string("From"), from); } -void SearchMediaRequest::setTag(const std::string& tag) -{ - tag_ = tag; - setParameter("Tag", tag); +std::string SearchMediaRequest::getTag() const { + return tag_; } -std::string SearchMediaRequest::getKeyWord()const -{ - return keyWord_; +void SearchMediaRequest::setTag(const std::string &tag) { + tag_ = tag; + setParameter(std::string("Tag"), tag); } -void SearchMediaRequest::setKeyWord(const std::string& keyWord) -{ - keyWord_ = keyWord; - setParameter("KeyWord", keyWord); +std::string SearchMediaRequest::getKeyWord() const { + return keyWord_; } -std::string SearchMediaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SearchMediaRequest::setKeyWord(const std::string &keyWord) { + keyWord_ = keyWord; + setParameter(std::string("KeyWord"), keyWord); } -void SearchMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SearchMediaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SearchMediaRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SearchMediaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SearchMediaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SearchMediaRequest::getOwnerAccount() const { + return ownerAccount_; } -long SearchMediaRequest::getOwnerId()const -{ - return ownerId_; +void SearchMediaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SearchMediaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SearchMediaRequest::getOwnerId() const { + return ownerId_; } -std::string SearchMediaRequest::getSortBy()const -{ - return sortBy_; +void SearchMediaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SearchMediaRequest::setSortBy(const std::string& sortBy) -{ - sortBy_ = sortBy; - setParameter("SortBy", sortBy); +std::string SearchMediaRequest::getSortBy() const { + return sortBy_; } -std::string SearchMediaRequest::getTo()const -{ - return to_; +void SearchMediaRequest::setSortBy(const std::string &sortBy) { + sortBy_ = sortBy; + setParameter(std::string("SortBy"), sortBy); } -void SearchMediaRequest::setTo(const std::string& to) -{ - to_ = to; - setParameter("To", to); +std::string SearchMediaRequest::getTo() const { + return to_; +} + +void SearchMediaRequest::setTo(const std::string &to) { + to_ = to; + setParameter(std::string("To"), to); } diff --git a/mts/src/model/SearchMediaResult.cc b/mts/src/model/SearchMediaResult.cc index 2494168f5..fb48e2b18 100644 --- a/mts/src/model/SearchMediaResult.cc +++ b/mts/src/model/SearchMediaResult.cc @@ -43,39 +43,39 @@ void SearchMediaResult::parse(const std::string &payload) for (auto valueMediaListMedia : allMediaListNode) { Media mediaListObject; - if(!valueMediaListMedia["MediaId"].isNull()) - mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString(); - if(!valueMediaListMedia["Title"].isNull()) - mediaListObject.title = valueMediaListMedia["Title"].asString(); - if(!valueMediaListMedia["Description"].isNull()) - mediaListObject.description = valueMediaListMedia["Description"].asString(); - if(!valueMediaListMedia["CoverURL"].isNull()) - mediaListObject.coverURL = valueMediaListMedia["CoverURL"].asString(); - if(!valueMediaListMedia["CateId"].isNull()) - mediaListObject.cateId = std::stol(valueMediaListMedia["CateId"].asString()); - if(!valueMediaListMedia["Duration"].isNull()) - mediaListObject.duration = valueMediaListMedia["Duration"].asString(); - if(!valueMediaListMedia["Format"].isNull()) - mediaListObject.format = valueMediaListMedia["Format"].asString(); - if(!valueMediaListMedia["Size"].isNull()) - mediaListObject.size = valueMediaListMedia["Size"].asString(); - if(!valueMediaListMedia["Bitrate"].isNull()) - mediaListObject.bitrate = valueMediaListMedia["Bitrate"].asString(); - if(!valueMediaListMedia["Width"].isNull()) - mediaListObject.width = valueMediaListMedia["Width"].asString(); - if(!valueMediaListMedia["Height"].isNull()) - mediaListObject.height = valueMediaListMedia["Height"].asString(); - if(!valueMediaListMedia["Fps"].isNull()) - mediaListObject.fps = valueMediaListMedia["Fps"].asString(); - if(!valueMediaListMedia["PublishState"].isNull()) - mediaListObject.publishState = valueMediaListMedia["PublishState"].asString(); if(!valueMediaListMedia["CreationTime"].isNull()) mediaListObject.creationTime = valueMediaListMedia["CreationTime"].asString(); + if(!valueMediaListMedia["CateId"].isNull()) + mediaListObject.cateId = std::stol(valueMediaListMedia["CateId"].asString()); + if(!valueMediaListMedia["Height"].isNull()) + mediaListObject.height = valueMediaListMedia["Height"].asString(); + if(!valueMediaListMedia["Bitrate"].isNull()) + mediaListObject.bitrate = valueMediaListMedia["Bitrate"].asString(); + if(!valueMediaListMedia["MediaId"].isNull()) + mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString(); + if(!valueMediaListMedia["PublishState"].isNull()) + mediaListObject.publishState = valueMediaListMedia["PublishState"].asString(); + if(!valueMediaListMedia["Description"].isNull()) + mediaListObject.description = valueMediaListMedia["Description"].asString(); + if(!valueMediaListMedia["Width"].isNull()) + mediaListObject.width = valueMediaListMedia["Width"].asString(); + if(!valueMediaListMedia["Size"].isNull()) + mediaListObject.size = valueMediaListMedia["Size"].asString(); + if(!valueMediaListMedia["CoverURL"].isNull()) + mediaListObject.coverURL = valueMediaListMedia["CoverURL"].asString(); + if(!valueMediaListMedia["Duration"].isNull()) + mediaListObject.duration = valueMediaListMedia["Duration"].asString(); + if(!valueMediaListMedia["Fps"].isNull()) + mediaListObject.fps = valueMediaListMedia["Fps"].asString(); + if(!valueMediaListMedia["Title"].isNull()) + mediaListObject.title = valueMediaListMedia["Title"].asString(); + if(!valueMediaListMedia["Format"].isNull()) + mediaListObject.format = valueMediaListMedia["Format"].asString(); auto fileNode = value["File"]; - if(!fileNode["URL"].isNull()) - mediaListObject.file.uRL = fileNode["URL"].asString(); if(!fileNode["State"].isNull()) mediaListObject.file.state = fileNode["State"].asString(); + if(!fileNode["URL"].isNull()) + mediaListObject.file.uRL = fileNode["URL"].asString(); auto allTags = value["Tags"]["Tag"]; for (auto value : allTags) mediaListObject.tags.push_back(value.asString()); @@ -86,10 +86,10 @@ void SearchMediaResult::parse(const std::string &payload) } if(!value["TotalNum"].isNull()) totalNum_ = std::stol(value["TotalNum"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/mts/src/model/SearchMediaWorkflowRequest.cc b/mts/src/model/SearchMediaWorkflowRequest.cc index c52e6fc16..445679b1f 100644 --- a/mts/src/model/SearchMediaWorkflowRequest.cc +++ b/mts/src/model/SearchMediaWorkflowRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::SearchMediaWorkflowRequest; - -SearchMediaWorkflowRequest::SearchMediaWorkflowRequest() : - RpcServiceRequest("mts", "2014-06-18", "SearchMediaWorkflow") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchMediaWorkflowRequest::~SearchMediaWorkflowRequest() -{} - -long SearchMediaWorkflowRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SearchMediaWorkflowRequest; + +SearchMediaWorkflowRequest::SearchMediaWorkflowRequest() + : RpcServiceRequest("mts", "2014-06-18", "SearchMediaWorkflow") { + setMethod(HttpRequest::Method::Post); } -void SearchMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SearchMediaWorkflowRequest::~SearchMediaWorkflowRequest() {} + +long SearchMediaWorkflowRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long SearchMediaWorkflowRequest::getPageNumber()const -{ - return pageNumber_; +void SearchMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SearchMediaWorkflowRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long SearchMediaWorkflowRequest::getPageNumber() const { + return pageNumber_; } -std::string SearchMediaWorkflowRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SearchMediaWorkflowRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void SearchMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SearchMediaWorkflowRequest::getAccessKeyId() const { + return accessKeyId_; } -long SearchMediaWorkflowRequest::getPageSize()const -{ - return pageSize_; +void SearchMediaWorkflowRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SearchMediaWorkflowRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long SearchMediaWorkflowRequest::getPageSize() const { + return pageSize_; } -std::string SearchMediaWorkflowRequest::getStateList()const -{ - return stateList_; +void SearchMediaWorkflowRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void SearchMediaWorkflowRequest::setStateList(const std::string& stateList) -{ - stateList_ = stateList; - setParameter("StateList", stateList); +std::string SearchMediaWorkflowRequest::getStateList() const { + return stateList_; } -std::string SearchMediaWorkflowRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SearchMediaWorkflowRequest::setStateList(const std::string &stateList) { + stateList_ = stateList; + setParameter(std::string("StateList"), stateList); } -void SearchMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SearchMediaWorkflowRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SearchMediaWorkflowRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SearchMediaWorkflowRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SearchMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SearchMediaWorkflowRequest::getOwnerAccount() const { + return ownerAccount_; } -long SearchMediaWorkflowRequest::getOwnerId()const -{ - return ownerId_; +void SearchMediaWorkflowRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SearchMediaWorkflowRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SearchMediaWorkflowRequest::getOwnerId() const { + return ownerId_; +} + +void SearchMediaWorkflowRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/SearchMediaWorkflowResult.cc b/mts/src/model/SearchMediaWorkflowResult.cc index 1059eb137..3542110f9 100644 --- a/mts/src/model/SearchMediaWorkflowResult.cc +++ b/mts/src/model/SearchMediaWorkflowResult.cc @@ -43,26 +43,26 @@ void SearchMediaWorkflowResult::parse(const std::string &payload) for (auto valueMediaWorkflowListMediaWorkflow : allMediaWorkflowListNode) { MediaWorkflow mediaWorkflowListObject; + if(!valueMediaWorkflowListMediaWorkflow["CreationTime"].isNull()) + mediaWorkflowListObject.creationTime = valueMediaWorkflowListMediaWorkflow["CreationTime"].asString(); if(!valueMediaWorkflowListMediaWorkflow["MediaWorkflowId"].isNull()) mediaWorkflowListObject.mediaWorkflowId = valueMediaWorkflowListMediaWorkflow["MediaWorkflowId"].asString(); + if(!valueMediaWorkflowListMediaWorkflow["State"].isNull()) + mediaWorkflowListObject.state = valueMediaWorkflowListMediaWorkflow["State"].asString(); + if(!valueMediaWorkflowListMediaWorkflow["TriggerMode"].isNull()) + mediaWorkflowListObject.triggerMode = valueMediaWorkflowListMediaWorkflow["TriggerMode"].asString(); if(!valueMediaWorkflowListMediaWorkflow["Name"].isNull()) mediaWorkflowListObject.name = valueMediaWorkflowListMediaWorkflow["Name"].asString(); if(!valueMediaWorkflowListMediaWorkflow["Topology"].isNull()) mediaWorkflowListObject.topology = valueMediaWorkflowListMediaWorkflow["Topology"].asString(); - if(!valueMediaWorkflowListMediaWorkflow["TriggerMode"].isNull()) - mediaWorkflowListObject.triggerMode = valueMediaWorkflowListMediaWorkflow["TriggerMode"].asString(); - if(!valueMediaWorkflowListMediaWorkflow["State"].isNull()) - mediaWorkflowListObject.state = valueMediaWorkflowListMediaWorkflow["State"].asString(); - if(!valueMediaWorkflowListMediaWorkflow["CreationTime"].isNull()) - mediaWorkflowListObject.creationTime = valueMediaWorkflowListMediaWorkflow["CreationTime"].asString(); mediaWorkflowList_.push_back(mediaWorkflowListObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/mts/src/model/SearchPipelineRequest.cc b/mts/src/model/SearchPipelineRequest.cc index e3d874438..2e1429ef8 100644 --- a/mts/src/model/SearchPipelineRequest.cc +++ b/mts/src/model/SearchPipelineRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::SearchPipelineRequest; - -SearchPipelineRequest::SearchPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "SearchPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchPipelineRequest::~SearchPipelineRequest() -{} - -long SearchPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SearchPipelineRequest; + +SearchPipelineRequest::SearchPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "SearchPipeline") { + setMethod(HttpRequest::Method::Post); } -void SearchPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SearchPipelineRequest::~SearchPipelineRequest() {} + +long SearchPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long SearchPipelineRequest::getPageNumber()const -{ - return pageNumber_; +void SearchPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SearchPipelineRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long SearchPipelineRequest::getPageNumber() const { + return pageNumber_; } -std::string SearchPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SearchPipelineRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void SearchPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SearchPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -long SearchPipelineRequest::getPageSize()const -{ - return pageSize_; +void SearchPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SearchPipelineRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long SearchPipelineRequest::getPageSize() const { + return pageSize_; } -std::string SearchPipelineRequest::getState()const -{ - return state_; +void SearchPipelineRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void SearchPipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string SearchPipelineRequest::getState() const { + return state_; } -std::string SearchPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SearchPipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void SearchPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SearchPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SearchPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SearchPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SearchPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SearchPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -long SearchPipelineRequest::getOwnerId()const -{ - return ownerId_; +void SearchPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SearchPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SearchPipelineRequest::getOwnerId() const { + return ownerId_; +} + +void SearchPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/SearchPipelineResult.cc b/mts/src/model/SearchPipelineResult.cc index 1920fe0da..a73ad0370 100644 --- a/mts/src/model/SearchPipelineResult.cc +++ b/mts/src/model/SearchPipelineResult.cc @@ -43,37 +43,37 @@ void SearchPipelineResult::parse(const std::string &payload) for (auto valuePipelineListPipeline : allPipelineListNode) { Pipeline pipelineListObject; - if(!valuePipelineListPipeline["Id"].isNull()) - pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); - if(!valuePipelineListPipeline["Name"].isNull()) - pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); - if(!valuePipelineListPipeline["State"].isNull()) - pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["Speed"].isNull()) pipelineListObject.speed = valuePipelineListPipeline["Speed"].asString(); + if(!valuePipelineListPipeline["State"].isNull()) + pipelineListObject.state = valuePipelineListPipeline["State"].asString(); if(!valuePipelineListPipeline["SpeedLevel"].isNull()) pipelineListObject.speedLevel = std::stol(valuePipelineListPipeline["SpeedLevel"].asString()); - if(!valuePipelineListPipeline["QuotaAllocate"].isNull()) - pipelineListObject.quotaAllocate = std::stol(valuePipelineListPipeline["QuotaAllocate"].asString()); if(!valuePipelineListPipeline["Role"].isNull()) pipelineListObject.role = valuePipelineListPipeline["Role"].asString(); + if(!valuePipelineListPipeline["Name"].isNull()) + pipelineListObject.name = valuePipelineListPipeline["Name"].asString(); + if(!valuePipelineListPipeline["Id"].isNull()) + pipelineListObject.id = valuePipelineListPipeline["Id"].asString(); + if(!valuePipelineListPipeline["QuotaAllocate"].isNull()) + pipelineListObject.quotaAllocate = std::stol(valuePipelineListPipeline["QuotaAllocate"].asString()); auto notifyConfigNode = value["NotifyConfig"]; - if(!notifyConfigNode["Topic"].isNull()) - pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); - if(!notifyConfigNode["QueueName"].isNull()) - pipelineListObject.notifyConfig.queueName = notifyConfigNode["QueueName"].asString(); if(!notifyConfigNode["MqTopic"].isNull()) pipelineListObject.notifyConfig.mqTopic = notifyConfigNode["MqTopic"].asString(); + if(!notifyConfigNode["QueueName"].isNull()) + pipelineListObject.notifyConfig.queueName = notifyConfigNode["QueueName"].asString(); if(!notifyConfigNode["MqTag"].isNull()) pipelineListObject.notifyConfig.mqTag = notifyConfigNode["MqTag"].asString(); + if(!notifyConfigNode["Topic"].isNull()) + pipelineListObject.notifyConfig.topic = notifyConfigNode["Topic"].asString(); pipelineList_.push_back(pipelineListObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/mts/src/model/SearchTemplateRequest.cc b/mts/src/model/SearchTemplateRequest.cc index 03ae05050..aa2ff807a 100644 --- a/mts/src/model/SearchTemplateRequest.cc +++ b/mts/src/model/SearchTemplateRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::SearchTemplateRequest; - -SearchTemplateRequest::SearchTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "SearchTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchTemplateRequest::~SearchTemplateRequest() -{} - -long SearchTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SearchTemplateRequest; + +SearchTemplateRequest::SearchTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "SearchTemplate") { + setMethod(HttpRequest::Method::Post); } -void SearchTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SearchTemplateRequest::~SearchTemplateRequest() {} + +long SearchTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long SearchTemplateRequest::getPageNumber()const -{ - return pageNumber_; +void SearchTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SearchTemplateRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long SearchTemplateRequest::getPageNumber() const { + return pageNumber_; } -std::string SearchTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SearchTemplateRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void SearchTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SearchTemplateRequest::getAccessKeyId() const { + return accessKeyId_; } -long SearchTemplateRequest::getPageSize()const -{ - return pageSize_; +void SearchTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SearchTemplateRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long SearchTemplateRequest::getPageSize() const { + return pageSize_; } -std::string SearchTemplateRequest::getState()const -{ - return state_; +void SearchTemplateRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void SearchTemplateRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string SearchTemplateRequest::getState() const { + return state_; } -std::string SearchTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SearchTemplateRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void SearchTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SearchTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SearchTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SearchTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SearchTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SearchTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long SearchTemplateRequest::getOwnerId()const -{ - return ownerId_; +void SearchTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SearchTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SearchTemplateRequest::getOwnerId() const { + return ownerId_; +} + +void SearchTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/SearchTemplateResult.cc b/mts/src/model/SearchTemplateResult.cc index 7b5623446..d8f0daa77 100644 --- a/mts/src/model/SearchTemplateResult.cc +++ b/mts/src/model/SearchTemplateResult.cc @@ -43,114 +43,114 @@ void SearchTemplateResult::parse(const std::string &payload) for (auto valueTemplateListTemplate : allTemplateListNode) { _Template templateListObject; - if(!valueTemplateListTemplate["Id"].isNull()) - templateListObject.id = valueTemplateListTemplate["Id"].asString(); - if(!valueTemplateListTemplate["Name"].isNull()) - templateListObject.name = valueTemplateListTemplate["Name"].asString(); if(!valueTemplateListTemplate["State"].isNull()) templateListObject.state = valueTemplateListTemplate["State"].asString(); - auto containerNode = value["Container"]; - if(!containerNode["Format"].isNull()) - templateListObject.container.format = containerNode["Format"].asString(); + if(!valueTemplateListTemplate["Name"].isNull()) + templateListObject.name = valueTemplateListTemplate["Name"].asString(); + if(!valueTemplateListTemplate["Id"].isNull()) + templateListObject.id = valueTemplateListTemplate["Id"].asString(); auto videoNode = value["Video"]; + if(!videoNode["Bufsize"].isNull()) + templateListObject.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["LongShortMode"].isNull()) + templateListObject.video.longShortMode = videoNode["LongShortMode"].asString(); + if(!videoNode["Degrain"].isNull()) + templateListObject.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + templateListObject.video.pixFmt = videoNode["PixFmt"].asString(); + if(!videoNode["Pad"].isNull()) + templateListObject.video.pad = videoNode["Pad"].asString(); if(!videoNode["Codec"].isNull()) templateListObject.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - templateListObject.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - templateListObject.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - templateListObject.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - templateListObject.video.width = videoNode["Width"].asString(); if(!videoNode["Height"].isNull()) templateListObject.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - templateListObject.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Qscale"].isNull()) + templateListObject.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Crop"].isNull()) + templateListObject.video.crop = videoNode["Crop"].asString(); + if(!videoNode["Bitrate"].isNull()) + templateListObject.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + templateListObject.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["MaxFps"].isNull()) + templateListObject.video.maxFps = videoNode["MaxFps"].asString(); + if(!videoNode["Profile"].isNull()) + templateListObject.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + templateListObject.video.crf = videoNode["Crf"].asString(); + if(!videoNode["Remove"].isNull()) + templateListObject.video.remove = videoNode["Remove"].asString(); if(!videoNode["Gop"].isNull()) templateListObject.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + templateListObject.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + templateListObject.video.fps = videoNode["Fps"].asString(); if(!videoNode["Preset"].isNull()) templateListObject.video.preset = videoNode["Preset"].asString(); if(!videoNode["ScanMode"].isNull()) templateListObject.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - templateListObject.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - templateListObject.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - templateListObject.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - templateListObject.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - templateListObject.video.qscale = videoNode["Qscale"].asString(); - if(!videoNode["LongShortMode"].isNull()) - templateListObject.video.longShortMode = videoNode["LongShortMode"].asString(); - if(!videoNode["Remove"].isNull()) - templateListObject.video.remove = videoNode["Remove"].asString(); - if(!videoNode["Crop"].isNull()) - templateListObject.video.crop = videoNode["Crop"].asString(); - if(!videoNode["Pad"].isNull()) - templateListObject.video.pad = videoNode["Pad"].asString(); - if(!videoNode["MaxFps"].isNull()) - templateListObject.video.maxFps = videoNode["MaxFps"].asString(); auto bitrateBndNode = videoNode["BitrateBnd"]; if(!bitrateBndNode["Max"].isNull()) templateListObject.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); if(!bitrateBndNode["Min"].isNull()) templateListObject.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto audioNode = value["Audio"]; - if(!audioNode["Codec"].isNull()) - templateListObject.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - templateListObject.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - templateListObject.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - templateListObject.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - templateListObject.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - templateListObject.audio.qscale = audioNode["Qscale"].asString(); - if(!audioNode["Remove"].isNull()) - templateListObject.audio.remove = audioNode["Remove"].asString(); auto transConfigNode = value["TransConfig"]; + if(!transConfigNode["IsCheckAudioBitrate"].isNull()) + templateListObject.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); if(!transConfigNode["TransMode"].isNull()) templateListObject.transConfig.transMode = transConfigNode["TransMode"].asString(); if(!transConfigNode["IsCheckReso"].isNull()) templateListObject.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); - if(!transConfigNode["IsCheckResoFail"].isNull()) - templateListObject.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); - if(!transConfigNode["IsCheckVideoBitrate"].isNull()) - templateListObject.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); - if(!transConfigNode["IsCheckAudioBitrate"].isNull()) - templateListObject.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); - if(!transConfigNode["AdjDarMethod"].isNull()) - templateListObject.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) templateListObject.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); + if(!transConfigNode["AdjDarMethod"].isNull()) + templateListObject.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); + if(!transConfigNode["IsCheckVideoBitrate"].isNull()) + templateListObject.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); + if(!transConfigNode["IsCheckResoFail"].isNull()) + templateListObject.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) templateListObject.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); auto muxConfigNode = value["MuxConfig"]; + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + templateListObject.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["DitherMode"].isNull()) + templateListObject.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + if(!gifNode["Loop"].isNull()) + templateListObject.muxConfig.gif.loop = gifNode["Loop"].asString(); + if(!gifNode["IsCustomPalette"].isNull()) + templateListObject.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); auto segmentNode = muxConfigNode["Segment"]; if(!segmentNode["Duration"].isNull()) templateListObject.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - templateListObject.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - templateListObject.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); - if(!gifNode["IsCustomPalette"].isNull()) - templateListObject.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); - if(!gifNode["DitherMode"].isNull()) - templateListObject.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + auto audioNode = value["Audio"]; + if(!audioNode["Profile"].isNull()) + templateListObject.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Remove"].isNull()) + templateListObject.audio.remove = audioNode["Remove"].asString(); + if(!audioNode["Codec"].isNull()) + templateListObject.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + templateListObject.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + templateListObject.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + templateListObject.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + templateListObject.audio.bitrate = audioNode["Bitrate"].asString(); + auto containerNode = value["Container"]; + if(!containerNode["Format"].isNull()) + templateListObject.container.format = containerNode["Format"].asString(); templateList_.push_back(templateListObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/mts/src/model/SearchWaterMarkTemplateRequest.cc b/mts/src/model/SearchWaterMarkTemplateRequest.cc index 931f38c32..a158e4962 100644 --- a/mts/src/model/SearchWaterMarkTemplateRequest.cc +++ b/mts/src/model/SearchWaterMarkTemplateRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::SearchWaterMarkTemplateRequest; - -SearchWaterMarkTemplateRequest::SearchWaterMarkTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "SearchWaterMarkTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -SearchWaterMarkTemplateRequest::~SearchWaterMarkTemplateRequest() -{} - -long SearchWaterMarkTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SearchWaterMarkTemplateRequest; + +SearchWaterMarkTemplateRequest::SearchWaterMarkTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "SearchWaterMarkTemplate") { + setMethod(HttpRequest::Method::Post); } -void SearchWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SearchWaterMarkTemplateRequest::~SearchWaterMarkTemplateRequest() {} + +long SearchWaterMarkTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -long SearchWaterMarkTemplateRequest::getPageNumber()const -{ - return pageNumber_; +void SearchWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SearchWaterMarkTemplateRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +long SearchWaterMarkTemplateRequest::getPageNumber() const { + return pageNumber_; } -std::string SearchWaterMarkTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SearchWaterMarkTemplateRequest::setPageNumber(long pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void SearchWaterMarkTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SearchWaterMarkTemplateRequest::getAccessKeyId() const { + return accessKeyId_; } -long SearchWaterMarkTemplateRequest::getPageSize()const -{ - return pageSize_; +void SearchWaterMarkTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SearchWaterMarkTemplateRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +long SearchWaterMarkTemplateRequest::getPageSize() const { + return pageSize_; } -std::string SearchWaterMarkTemplateRequest::getState()const -{ - return state_; +void SearchWaterMarkTemplateRequest::setPageSize(long pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void SearchWaterMarkTemplateRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string SearchWaterMarkTemplateRequest::getState() const { + return state_; } -std::string SearchWaterMarkTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SearchWaterMarkTemplateRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void SearchWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SearchWaterMarkTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SearchWaterMarkTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SearchWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SearchWaterMarkTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SearchWaterMarkTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long SearchWaterMarkTemplateRequest::getOwnerId()const -{ - return ownerId_; +void SearchWaterMarkTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SearchWaterMarkTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SearchWaterMarkTemplateRequest::getOwnerId() const { + return ownerId_; +} + +void SearchWaterMarkTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/SearchWaterMarkTemplateResult.cc b/mts/src/model/SearchWaterMarkTemplateResult.cc index 83f394b55..33ce8e6c6 100644 --- a/mts/src/model/SearchWaterMarkTemplateResult.cc +++ b/mts/src/model/SearchWaterMarkTemplateResult.cc @@ -43,46 +43,46 @@ void SearchWaterMarkTemplateResult::parse(const std::string &payload) for (auto valueWaterMarkTemplateListWaterMarkTemplate : allWaterMarkTemplateListNode) { WaterMarkTemplate waterMarkTemplateListObject; - if(!valueWaterMarkTemplateListWaterMarkTemplate["Id"].isNull()) - waterMarkTemplateListObject.id = valueWaterMarkTemplateListWaterMarkTemplate["Id"].asString(); - if(!valueWaterMarkTemplateListWaterMarkTemplate["Name"].isNull()) - waterMarkTemplateListObject.name = valueWaterMarkTemplateListWaterMarkTemplate["Name"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["Type"].isNull()) + waterMarkTemplateListObject.type = valueWaterMarkTemplateListWaterMarkTemplate["Type"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["ReferPos"].isNull()) + waterMarkTemplateListObject.referPos = valueWaterMarkTemplateListWaterMarkTemplate["ReferPos"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["State"].isNull()) + waterMarkTemplateListObject.state = valueWaterMarkTemplateListWaterMarkTemplate["State"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["Dx"].isNull()) + waterMarkTemplateListObject.dx = valueWaterMarkTemplateListWaterMarkTemplate["Dx"].asString(); if(!valueWaterMarkTemplateListWaterMarkTemplate["Width"].isNull()) waterMarkTemplateListObject.width = valueWaterMarkTemplateListWaterMarkTemplate["Width"].asString(); if(!valueWaterMarkTemplateListWaterMarkTemplate["Height"].isNull()) waterMarkTemplateListObject.height = valueWaterMarkTemplateListWaterMarkTemplate["Height"].asString(); - if(!valueWaterMarkTemplateListWaterMarkTemplate["Dx"].isNull()) - waterMarkTemplateListObject.dx = valueWaterMarkTemplateListWaterMarkTemplate["Dx"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["Name"].isNull()) + waterMarkTemplateListObject.name = valueWaterMarkTemplateListWaterMarkTemplate["Name"].asString(); if(!valueWaterMarkTemplateListWaterMarkTemplate["Dy"].isNull()) waterMarkTemplateListObject.dy = valueWaterMarkTemplateListWaterMarkTemplate["Dy"].asString(); - if(!valueWaterMarkTemplateListWaterMarkTemplate["ReferPos"].isNull()) - waterMarkTemplateListObject.referPos = valueWaterMarkTemplateListWaterMarkTemplate["ReferPos"].asString(); - if(!valueWaterMarkTemplateListWaterMarkTemplate["Type"].isNull()) - waterMarkTemplateListObject.type = valueWaterMarkTemplateListWaterMarkTemplate["Type"].asString(); - if(!valueWaterMarkTemplateListWaterMarkTemplate["State"].isNull()) - waterMarkTemplateListObject.state = valueWaterMarkTemplateListWaterMarkTemplate["State"].asString(); + if(!valueWaterMarkTemplateListWaterMarkTemplate["Id"].isNull()) + waterMarkTemplateListObject.id = valueWaterMarkTemplateListWaterMarkTemplate["Id"].asString(); + auto ratioReferNode = value["RatioRefer"]; + if(!ratioReferNode["Dx"].isNull()) + waterMarkTemplateListObject.ratioRefer.dx = ratioReferNode["Dx"].asString(); + if(!ratioReferNode["Width"].isNull()) + waterMarkTemplateListObject.ratioRefer.width = ratioReferNode["Width"].asString(); + if(!ratioReferNode["Height"].isNull()) + waterMarkTemplateListObject.ratioRefer.height = ratioReferNode["Height"].asString(); + if(!ratioReferNode["Dy"].isNull()) + waterMarkTemplateListObject.ratioRefer.dy = ratioReferNode["Dy"].asString(); auto timelineNode = value["Timeline"]; if(!timelineNode["Start"].isNull()) waterMarkTemplateListObject.timeline.start = timelineNode["Start"].asString(); if(!timelineNode["Duration"].isNull()) waterMarkTemplateListObject.timeline.duration = timelineNode["Duration"].asString(); - auto ratioReferNode = value["RatioRefer"]; - if(!ratioReferNode["Dx"].isNull()) - waterMarkTemplateListObject.ratioRefer.dx = ratioReferNode["Dx"].asString(); - if(!ratioReferNode["Dy"].isNull()) - waterMarkTemplateListObject.ratioRefer.dy = ratioReferNode["Dy"].asString(); - if(!ratioReferNode["Width"].isNull()) - waterMarkTemplateListObject.ratioRefer.width = ratioReferNode["Width"].asString(); - if(!ratioReferNode["Height"].isNull()) - waterMarkTemplateListObject.ratioRefer.height = ratioReferNode["Height"].asString(); waterMarkTemplateList_.push_back(waterMarkTemplateListObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stol(value["PageNumber"].asString()); } diff --git a/mts/src/model/SetAuthConfigRequest.cc b/mts/src/model/SetAuthConfigRequest.cc index 7929bd084..66bf09a15 100644 --- a/mts/src/model/SetAuthConfigRequest.cc +++ b/mts/src/model/SetAuthConfigRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::SetAuthConfigRequest; - -SetAuthConfigRequest::SetAuthConfigRequest() : - RpcServiceRequest("mts", "2014-06-18", "SetAuthConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -SetAuthConfigRequest::~SetAuthConfigRequest() -{} - -std::string SetAuthConfigRequest::getKey1()const -{ - return key1_; + */ + +#include + +using AlibabaCloud::Mts::Model::SetAuthConfigRequest; + +SetAuthConfigRequest::SetAuthConfigRequest() + : RpcServiceRequest("mts", "2014-06-18", "SetAuthConfig") { + setMethod(HttpRequest::Method::Post); } -void SetAuthConfigRequest::setKey1(const std::string& key1) -{ - key1_ = key1; - setParameter("Key1", key1); +SetAuthConfigRequest::~SetAuthConfigRequest() {} + +std::string SetAuthConfigRequest::getKey1() const { + return key1_; } -std::string SetAuthConfigRequest::getKey2()const -{ - return key2_; +void SetAuthConfigRequest::setKey1(const std::string &key1) { + key1_ = key1; + setParameter(std::string("Key1"), key1); } -void SetAuthConfigRequest::setKey2(const std::string& key2) -{ - key2_ = key2; - setParameter("Key2", key2); +std::string SetAuthConfigRequest::getKey2() const { + return key2_; } -std::string SetAuthConfigRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void SetAuthConfigRequest::setKey2(const std::string &key2) { + key2_ = key2; + setParameter(std::string("Key2"), key2); } -void SetAuthConfigRequest::setResourceOwnerId(const std::string& resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", resourceOwnerId); +std::string SetAuthConfigRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SetAuthConfigRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SetAuthConfigRequest::setResourceOwnerId(const std::string &resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), resourceOwnerId); } -void SetAuthConfigRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SetAuthConfigRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SetAuthConfigRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SetAuthConfigRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SetAuthConfigRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SetAuthConfigRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SetAuthConfigRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SetAuthConfigRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SetAuthConfigRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SetAuthConfigRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string SetAuthConfigRequest::getOwnerId()const -{ - return ownerId_; +void SetAuthConfigRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SetAuthConfigRequest::setOwnerId(const std::string& ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", ownerId); +std::string SetAuthConfigRequest::getOwnerId() const { + return ownerId_; +} + +void SetAuthConfigRequest::setOwnerId(const std::string &ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), ownerId); } diff --git a/mts/src/model/SetAuthConfigResult.cc b/mts/src/model/SetAuthConfigResult.cc index f7bd9015d..5354ae0d9 100644 --- a/mts/src/model/SetAuthConfigResult.cc +++ b/mts/src/model/SetAuthConfigResult.cc @@ -39,10 +39,10 @@ void SetAuthConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Key1"].isNull()) - key1_ = value["Key1"].asString(); if(!value["Key2"].isNull()) key2_ = value["Key2"].asString(); + if(!value["Key1"].isNull()) + key1_ = value["Key1"].asString(); } diff --git a/mts/src/model/StopIProductionJobRequest.cc b/mts/src/model/StopIProductionJobRequest.cc new file mode 100644 index 000000000..18e34a701 --- /dev/null +++ b/mts/src/model/StopIProductionJobRequest.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 + +using AlibabaCloud::Mts::Model::StopIProductionJobRequest; + +StopIProductionJobRequest::StopIProductionJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "StopIProductionJob") { + setMethod(HttpRequest::Method::Post); +} + +StopIProductionJobRequest::~StopIProductionJobRequest() {} + +long StopIProductionJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void StopIProductionJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string StopIProductionJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void StopIProductionJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string StopIProductionJobRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void StopIProductionJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long StopIProductionJobRequest::getOwnerId() const { + return ownerId_; +} + +void StopIProductionJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string StopIProductionJobRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void StopIProductionJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string StopIProductionJobRequest::getJobId() const { + return jobId_; +} + +void StopIProductionJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); +} + diff --git a/mts/src/model/StopIProductionJobResult.cc b/mts/src/model/StopIProductionJobResult.cc new file mode 100644 index 000000000..4dfb3d1e4 --- /dev/null +++ b/mts/src/model/StopIProductionJobResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +StopIProductionJobResult::StopIProductionJobResult() : + ServiceResult() +{} + +StopIProductionJobResult::StopIProductionJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +StopIProductionJobResult::~StopIProductionJobResult() +{} + +void StopIProductionJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string StopIProductionJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/mts/src/model/SubmitAnalysisJobRequest.cc b/mts/src/model/SubmitAnalysisJobRequest.cc index a4c1ffa1b..742a9af25 100644 --- a/mts/src/model/SubmitAnalysisJobRequest.cc +++ b/mts/src/model/SubmitAnalysisJobRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::SubmitAnalysisJobRequest; - -SubmitAnalysisJobRequest::SubmitAnalysisJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitAnalysisJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitAnalysisJobRequest::~SubmitAnalysisJobRequest() -{} - -long SubmitAnalysisJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitAnalysisJobRequest; + +SubmitAnalysisJobRequest::SubmitAnalysisJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitAnalysisJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitAnalysisJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitAnalysisJobRequest::~SubmitAnalysisJobRequest() {} + +long SubmitAnalysisJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitAnalysisJobRequest::getAnalysisConfig()const -{ - return analysisConfig_; +void SubmitAnalysisJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitAnalysisJobRequest::setAnalysisConfig(const std::string& analysisConfig) -{ - analysisConfig_ = analysisConfig; - setParameter("AnalysisConfig", analysisConfig); +std::string SubmitAnalysisJobRequest::getAnalysisConfig() const { + return analysisConfig_; } -std::string SubmitAnalysisJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitAnalysisJobRequest::setAnalysisConfig(const std::string &analysisConfig) { + analysisConfig_ = analysisConfig; + setParameter(std::string("AnalysisConfig"), analysisConfig); } -void SubmitAnalysisJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitAnalysisJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitAnalysisJobRequest::getUserData()const -{ - return userData_; +void SubmitAnalysisJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitAnalysisJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitAnalysisJobRequest::getUserData() const { + return userData_; } -std::string SubmitAnalysisJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitAnalysisJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitAnalysisJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitAnalysisJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitAnalysisJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitAnalysisJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitAnalysisJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitAnalysisJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitAnalysisJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitAnalysisJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitAnalysisJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitAnalysisJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitAnalysisJobRequest::getPriority()const -{ - return priority_; +void SubmitAnalysisJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitAnalysisJobRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); +std::string SubmitAnalysisJobRequest::getPriority() const { + return priority_; } -std::string SubmitAnalysisJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitAnalysisJobRequest::setPriority(const std::string &priority) { + priority_ = priority; + setParameter(std::string("Priority"), priority); } -void SubmitAnalysisJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitAnalysisJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitAnalysisJobRequest::getInput()const -{ - return input_; +void SubmitAnalysisJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitAnalysisJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitAnalysisJobRequest::getInput() const { + return input_; +} + +void SubmitAnalysisJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitAnalysisJobResult.cc b/mts/src/model/SubmitAnalysisJobResult.cc index 344c0e4a0..96d65903d 100644 --- a/mts/src/model/SubmitAnalysisJobResult.cc +++ b/mts/src/model/SubmitAnalysisJobResult.cc @@ -40,127 +40,120 @@ void SubmitAnalysisJobResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto analysisJobNode = value["AnalysisJob"]; - if(!analysisJobNode["Id"].isNull()) - analysisJob_.id = analysisJobNode["Id"].asString(); - if(!analysisJobNode["UserData"].isNull()) - analysisJob_.userData = analysisJobNode["UserData"].asString(); - if(!analysisJobNode["State"].isNull()) - analysisJob_.state = analysisJobNode["State"].asString(); - if(!analysisJobNode["Code"].isNull()) - analysisJob_.code = analysisJobNode["Code"].asString(); - if(!analysisJobNode["Message"].isNull()) - analysisJob_.message = analysisJobNode["Message"].asString(); - if(!analysisJobNode["Percent"].isNull()) - analysisJob_.percent = std::stol(analysisJobNode["Percent"].asString()); if(!analysisJobNode["CreationTime"].isNull()) analysisJob_.creationTime = analysisJobNode["CreationTime"].asString(); - if(!analysisJobNode["PipelineId"].isNull()) - analysisJob_.pipelineId = analysisJobNode["PipelineId"].asString(); + if(!analysisJobNode["Percent"].isNull()) + analysisJob_.percent = std::stol(analysisJobNode["Percent"].asString()); + if(!analysisJobNode["State"].isNull()) + analysisJob_.state = analysisJobNode["State"].asString(); + if(!analysisJobNode["Message"].isNull()) + analysisJob_.message = analysisJobNode["Message"].asString(); if(!analysisJobNode["Priority"].isNull()) analysisJob_.priority = analysisJobNode["Priority"].asString(); + if(!analysisJobNode["UserData"].isNull()) + analysisJob_.userData = analysisJobNode["UserData"].asString(); + if(!analysisJobNode["Code"].isNull()) + analysisJob_.code = analysisJobNode["Code"].asString(); + if(!analysisJobNode["PipelineId"].isNull()) + analysisJob_.pipelineId = analysisJobNode["PipelineId"].asString(); + if(!analysisJobNode["Id"].isNull()) + analysisJob_.id = analysisJobNode["Id"].asString(); auto allTemplateListNode = analysisJobNode["TemplateList"]["Template"]; for (auto analysisJobNodeTemplateListTemplate : allTemplateListNode) { AnalysisJob::_Template _templateObject; - if(!analysisJobNodeTemplateListTemplate["Id"].isNull()) - _templateObject.id = analysisJobNodeTemplateListTemplate["Id"].asString(); - if(!analysisJobNodeTemplateListTemplate["Name"].isNull()) - _templateObject.name = analysisJobNodeTemplateListTemplate["Name"].asString(); if(!analysisJobNodeTemplateListTemplate["State"].isNull()) _templateObject.state = analysisJobNodeTemplateListTemplate["State"].asString(); - auto containerNode = value["Container"]; - if(!containerNode["Format"].isNull()) - _templateObject.container.format = containerNode["Format"].asString(); + if(!analysisJobNodeTemplateListTemplate["Name"].isNull()) + _templateObject.name = analysisJobNodeTemplateListTemplate["Name"].asString(); + if(!analysisJobNodeTemplateListTemplate["Id"].isNull()) + _templateObject.id = analysisJobNodeTemplateListTemplate["Id"].asString(); auto videoNode = value["Video"]; + if(!videoNode["Bufsize"].isNull()) + _templateObject.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["Degrain"].isNull()) + _templateObject.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + _templateObject.video.pixFmt = videoNode["PixFmt"].asString(); if(!videoNode["Codec"].isNull()) _templateObject.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - _templateObject.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - _templateObject.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - _templateObject.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - _templateObject.video.width = videoNode["Width"].asString(); if(!videoNode["Height"].isNull()) _templateObject.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - _templateObject.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Qscale"].isNull()) + _templateObject.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Bitrate"].isNull()) + _templateObject.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + _templateObject.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["Profile"].isNull()) + _templateObject.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + _templateObject.video.crf = videoNode["Crf"].asString(); if(!videoNode["Gop"].isNull()) _templateObject.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + _templateObject.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + _templateObject.video.fps = videoNode["Fps"].asString(); if(!videoNode["Preset"].isNull()) _templateObject.video.preset = videoNode["Preset"].asString(); if(!videoNode["ScanMode"].isNull()) _templateObject.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - _templateObject.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - _templateObject.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - _templateObject.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - _templateObject.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - _templateObject.video.qscale = videoNode["Qscale"].asString(); auto bitrateBndNode = videoNode["BitrateBnd"]; if(!bitrateBndNode["Max"].isNull()) _templateObject.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); if(!bitrateBndNode["Min"].isNull()) _templateObject.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto audioNode = value["Audio"]; - if(!audioNode["Codec"].isNull()) - _templateObject.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - _templateObject.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - _templateObject.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - _templateObject.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - _templateObject.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - _templateObject.audio.qscale = audioNode["Qscale"].asString(); auto transConfigNode = value["TransConfig"]; if(!transConfigNode["TransMode"].isNull()) _templateObject.transConfig.transMode = transConfigNode["TransMode"].asString(); auto muxConfigNode = value["MuxConfig"]; + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + _templateObject.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["Loop"].isNull()) + _templateObject.muxConfig.gif.loop = gifNode["Loop"].asString(); auto segmentNode = muxConfigNode["Segment"]; if(!segmentNode["Duration"].isNull()) _templateObject.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - _templateObject.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - _templateObject.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + auto audioNode = value["Audio"]; + if(!audioNode["Profile"].isNull()) + _templateObject.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Codec"].isNull()) + _templateObject.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + _templateObject.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + _templateObject.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + _templateObject.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + _templateObject.audio.bitrate = audioNode["Bitrate"].asString(); + auto containerNode = value["Container"]; + if(!containerNode["Format"].isNull()) + _templateObject.container.format = containerNode["Format"].asString(); analysisJob_.templateList.push_back(_templateObject); } - auto inputFileNode = analysisJobNode["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - analysisJob_.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - analysisJob_.inputFile.location = inputFileNode["Location"].asString(); - if(!inputFileNode["Object"].isNull()) - analysisJob_.inputFile.object = inputFileNode["Object"].asString(); auto analysisConfigNode = analysisJobNode["AnalysisConfig"]; auto qualityControlNode = analysisConfigNode["QualityControl"]; - if(!qualityControlNode["RateQuality"].isNull()) - analysisJob_.analysisConfig.qualityControl.rateQuality = qualityControlNode["RateQuality"].asString(); if(!qualityControlNode["MethodStreaming"].isNull()) analysisJob_.analysisConfig.qualityControl.methodStreaming = qualityControlNode["MethodStreaming"].asString(); + if(!qualityControlNode["RateQuality"].isNull()) + analysisJob_.analysisConfig.qualityControl.rateQuality = qualityControlNode["RateQuality"].asString(); auto propertiesControlNode = analysisConfigNode["PropertiesControl"]; if(!propertiesControlNode["Deinterlace"].isNull()) analysisJob_.analysisConfig.propertiesControl.deinterlace = propertiesControlNode["Deinterlace"].asString(); auto cropNode = propertiesControlNode["Crop"]; - if(!cropNode["Mode"].isNull()) - analysisJob_.analysisConfig.propertiesControl.crop.mode = cropNode["Mode"].asString(); + if(!cropNode["Top"].isNull()) + analysisJob_.analysisConfig.propertiesControl.crop.top = cropNode["Top"].asString(); if(!cropNode["Width"].isNull()) analysisJob_.analysisConfig.propertiesControl.crop.width = cropNode["Width"].asString(); if(!cropNode["Height"].isNull()) analysisJob_.analysisConfig.propertiesControl.crop.height = cropNode["Height"].asString(); - if(!cropNode["Top"].isNull()) - analysisJob_.analysisConfig.propertiesControl.crop.top = cropNode["Top"].asString(); if(!cropNode["Left"].isNull()) analysisJob_.analysisConfig.propertiesControl.crop.left = cropNode["Left"].asString(); + if(!cropNode["Mode"].isNull()) + analysisJob_.analysisConfig.propertiesControl.crop.mode = cropNode["Mode"].asString(); auto mNSMessageResultNode = analysisJobNode["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) analysisJob_.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); @@ -168,6 +161,13 @@ void SubmitAnalysisJobResult::parse(const std::string &payload) analysisJob_.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString(); if(!mNSMessageResultNode["ErrorCode"].isNull()) analysisJob_.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString(); + auto inputFileNode = analysisJobNode["InputFile"]; + if(!inputFileNode["Object"].isNull()) + analysisJob_.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + analysisJob_.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + analysisJob_.inputFile.bucket = inputFileNode["Bucket"].asString(); } diff --git a/mts/src/model/SubmitAnnotationJobRequest.cc b/mts/src/model/SubmitAnnotationJobRequest.cc index 92111cc04..bd13cc58f 100644 --- a/mts/src/model/SubmitAnnotationJobRequest.cc +++ b/mts/src/model/SubmitAnnotationJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitAnnotationJobRequest; - -SubmitAnnotationJobRequest::SubmitAnnotationJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitAnnotationJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitAnnotationJobRequest::~SubmitAnnotationJobRequest() -{} - -long SubmitAnnotationJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitAnnotationJobRequest; + +SubmitAnnotationJobRequest::SubmitAnnotationJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitAnnotationJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitAnnotationJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitAnnotationJobRequest::~SubmitAnnotationJobRequest() {} + +long SubmitAnnotationJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitAnnotationJobRequest::getAnnotationConfig()const -{ - return annotationConfig_; +void SubmitAnnotationJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitAnnotationJobRequest::setAnnotationConfig(const std::string& annotationConfig) -{ - annotationConfig_ = annotationConfig; - setParameter("AnnotationConfig", annotationConfig); +std::string SubmitAnnotationJobRequest::getAnnotationConfig() const { + return annotationConfig_; } -std::string SubmitAnnotationJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitAnnotationJobRequest::setAnnotationConfig(const std::string &annotationConfig) { + annotationConfig_ = annotationConfig; + setParameter(std::string("AnnotationConfig"), annotationConfig); } -void SubmitAnnotationJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitAnnotationJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitAnnotationJobRequest::getUserData()const -{ - return userData_; +void SubmitAnnotationJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitAnnotationJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitAnnotationJobRequest::getUserData() const { + return userData_; } -std::string SubmitAnnotationJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitAnnotationJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitAnnotationJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitAnnotationJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitAnnotationJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitAnnotationJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitAnnotationJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitAnnotationJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitAnnotationJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitAnnotationJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitAnnotationJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitAnnotationJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitAnnotationJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitAnnotationJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitAnnotationJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitAnnotationJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitAnnotationJobRequest::getInput()const -{ - return input_; +void SubmitAnnotationJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitAnnotationJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitAnnotationJobRequest::getInput() const { + return input_; +} + +void SubmitAnnotationJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitAsrJobRequest.cc b/mts/src/model/SubmitAsrJobRequest.cc index 50167a273..551ed37d0 100644 --- a/mts/src/model/SubmitAsrJobRequest.cc +++ b/mts/src/model/SubmitAsrJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitAsrJobRequest; - -SubmitAsrJobRequest::SubmitAsrJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitAsrJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitAsrJobRequest::~SubmitAsrJobRequest() -{} - -long SubmitAsrJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitAsrJobRequest; + +SubmitAsrJobRequest::SubmitAsrJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitAsrJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitAsrJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitAsrJobRequest::~SubmitAsrJobRequest() {} + +long SubmitAsrJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitAsrJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitAsrJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitAsrJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitAsrJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitAsrJobRequest::getUserData()const -{ - return userData_; +void SubmitAsrJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitAsrJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitAsrJobRequest::getUserData() const { + return userData_; } -std::string SubmitAsrJobRequest::getAsrConfig()const -{ - return asrConfig_; +void SubmitAsrJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitAsrJobRequest::setAsrConfig(const std::string& asrConfig) -{ - asrConfig_ = asrConfig; - setParameter("AsrConfig", asrConfig); +std::string SubmitAsrJobRequest::getAsrConfig() const { + return asrConfig_; } -std::string SubmitAsrJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitAsrJobRequest::setAsrConfig(const std::string &asrConfig) { + asrConfig_ = asrConfig; + setParameter(std::string("AsrConfig"), asrConfig); } -void SubmitAsrJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitAsrJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitAsrJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitAsrJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitAsrJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitAsrJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitAsrJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitAsrJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitAsrJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitAsrJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitAsrJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitAsrJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitAsrJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitAsrJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitAsrJobRequest::getInput()const -{ - return input_; +void SubmitAsrJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitAsrJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitAsrJobRequest::getInput() const { + return input_; +} + +void SubmitAsrJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitBeautifyJobsRequest.cc b/mts/src/model/SubmitBeautifyJobsRequest.cc index c4dc2cf8b..9424ec4f5 100644 --- a/mts/src/model/SubmitBeautifyJobsRequest.cc +++ b/mts/src/model/SubmitBeautifyJobsRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitBeautifyJobsRequest; - -SubmitBeautifyJobsRequest::SubmitBeautifyJobsRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitBeautifyJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitBeautifyJobsRequest::~SubmitBeautifyJobsRequest() -{} - -long SubmitBeautifyJobsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitBeautifyJobsRequest; + +SubmitBeautifyJobsRequest::SubmitBeautifyJobsRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitBeautifyJobs") { + setMethod(HttpRequest::Method::Post); } -void SubmitBeautifyJobsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitBeautifyJobsRequest::~SubmitBeautifyJobsRequest() {} + +long SubmitBeautifyJobsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitBeautifyJobsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitBeautifyJobsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitBeautifyJobsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitBeautifyJobsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitBeautifyJobsRequest::getBeautifyConfig()const -{ - return beautifyConfig_; +void SubmitBeautifyJobsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitBeautifyJobsRequest::setBeautifyConfig(const std::string& beautifyConfig) -{ - beautifyConfig_ = beautifyConfig; - setParameter("BeautifyConfig", beautifyConfig); +std::string SubmitBeautifyJobsRequest::getBeautifyConfig() const { + return beautifyConfig_; } -std::string SubmitBeautifyJobsRequest::getUserData()const -{ - return userData_; +void SubmitBeautifyJobsRequest::setBeautifyConfig(const std::string &beautifyConfig) { + beautifyConfig_ = beautifyConfig; + setParameter(std::string("BeautifyConfig"), beautifyConfig); } -void SubmitBeautifyJobsRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitBeautifyJobsRequest::getUserData() const { + return userData_; } -std::string SubmitBeautifyJobsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitBeautifyJobsRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitBeautifyJobsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitBeautifyJobsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitBeautifyJobsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitBeautifyJobsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitBeautifyJobsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitBeautifyJobsRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitBeautifyJobsRequest::getOwnerId()const -{ - return ownerId_; +void SubmitBeautifyJobsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitBeautifyJobsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitBeautifyJobsRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitBeautifyJobsRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitBeautifyJobsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitBeautifyJobsRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitBeautifyJobsRequest::getPipelineId() const { + return pipelineId_; } -bool SubmitBeautifyJobsRequest::getAsync()const -{ - return async_; +void SubmitBeautifyJobsRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitBeautifyJobsRequest::setAsync(bool async) -{ - async_ = async; - setParameter("Async", async ? "true" : "false"); +bool SubmitBeautifyJobsRequest::getAsync() const { + return async_; +} + +void SubmitBeautifyJobsRequest::setAsync(bool async) { + async_ = async; + setParameter(std::string("Async"), async ? "true" : "false"); } diff --git a/mts/src/model/SubmitBeautifyJobsResult.cc b/mts/src/model/SubmitBeautifyJobsResult.cc index a065c52a1..3a2feadbe 100644 --- a/mts/src/model/SubmitBeautifyJobsResult.cc +++ b/mts/src/model/SubmitBeautifyJobsResult.cc @@ -43,39 +43,39 @@ void SubmitBeautifyJobsResult::parse(const std::string &payload) for (auto valueJobListJob : allJobListNode) { Job jobListObject; - if(!valueJobListJob["Id"].isNull()) - jobListObject.id = valueJobListJob["Id"].asString(); - if(!valueJobListJob["UserData"].isNull()) - jobListObject.userData = valueJobListJob["UserData"].asString(); - if(!valueJobListJob["PipelineId"].isNull()) - jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["CreationTime"].isNull()) + jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); if(!valueJobListJob["State"].isNull()) jobListObject.state = valueJobListJob["State"].asString(); + if(!valueJobListJob["UserData"].isNull()) + jobListObject.userData = valueJobListJob["UserData"].asString(); if(!valueJobListJob["Code"].isNull()) jobListObject.code = valueJobListJob["Code"].asString(); if(!valueJobListJob["Message"].isNull()) jobListObject.message = valueJobListJob["Message"].asString(); - if(!valueJobListJob["CreationTime"].isNull()) - jobListObject.creationTime = valueJobListJob["CreationTime"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - jobListObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - jobListObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - jobListObject.input.object = inputNode["Object"].asString(); - if(!inputNode["RoleArn"].isNull()) - jobListObject.input.roleArn = inputNode["RoleArn"].asString(); + if(!valueJobListJob["PipelineId"].isNull()) + jobListObject.pipelineId = valueJobListJob["PipelineId"].asString(); + if(!valueJobListJob["Id"].isNull()) + jobListObject.id = valueJobListJob["Id"].asString(); auto beautifyConfigNode = value["BeautifyConfig"]; auto outputFileNode = beautifyConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - jobListObject.beautifyConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - jobListObject.beautifyConfig.outputFile.location = outputFileNode["Location"].asString(); - if(!outputFileNode["Object"].isNull()) - jobListObject.beautifyConfig.outputFile.object = outputFileNode["Object"].asString(); if(!outputFileNode["RoleArn"].isNull()) jobListObject.beautifyConfig.outputFile.roleArn = outputFileNode["RoleArn"].asString(); + if(!outputFileNode["Object"].isNull()) + jobListObject.beautifyConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + jobListObject.beautifyConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + jobListObject.beautifyConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["RoleArn"].isNull()) + jobListObject.input.roleArn = inputNode["RoleArn"].asString(); + if(!inputNode["Object"].isNull()) + jobListObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + jobListObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + jobListObject.input.bucket = inputNode["Bucket"].asString(); auto mNSMessageResultNode = value["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) jobListObject.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); diff --git a/mts/src/model/SubmitComplexJobRequest.cc b/mts/src/model/SubmitComplexJobRequest.cc index b9ca72629..956b69b92 100644 --- a/mts/src/model/SubmitComplexJobRequest.cc +++ b/mts/src/model/SubmitComplexJobRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Mts::Model::SubmitComplexJobRequest; - -SubmitComplexJobRequest::SubmitComplexJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitComplexJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitComplexJobRequest::~SubmitComplexJobRequest() -{} - -long SubmitComplexJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitComplexJobRequest; + +SubmitComplexJobRequest::SubmitComplexJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitComplexJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitComplexJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitComplexJobRequest::~SubmitComplexJobRequest() {} + +long SubmitComplexJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitComplexJobRequest::getTranscodeOutput()const -{ - return transcodeOutput_; +void SubmitComplexJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitComplexJobRequest::setTranscodeOutput(const std::string& transcodeOutput) -{ - transcodeOutput_ = transcodeOutput; - setParameter("TranscodeOutput", transcodeOutput); +std::string SubmitComplexJobRequest::getTranscodeOutput() const { + return transcodeOutput_; } -std::string SubmitComplexJobRequest::getInputs()const -{ - return inputs_; +void SubmitComplexJobRequest::setTranscodeOutput(const std::string &transcodeOutput) { + transcodeOutput_ = transcodeOutput; + setParameter(std::string("TranscodeOutput"), transcodeOutput); } -void SubmitComplexJobRequest::setInputs(const std::string& inputs) -{ - inputs_ = inputs; - setParameter("Inputs", inputs); +std::string SubmitComplexJobRequest::getInputs() const { + return inputs_; } -std::string SubmitComplexJobRequest::getOutputLocation()const -{ - return outputLocation_; +void SubmitComplexJobRequest::setInputs(const std::string &inputs) { + inputs_ = inputs; + setParameter(std::string("Inputs"), inputs); } -void SubmitComplexJobRequest::setOutputLocation(const std::string& outputLocation) -{ - outputLocation_ = outputLocation; - setParameter("OutputLocation", outputLocation); +std::string SubmitComplexJobRequest::getOutputLocation() const { + return outputLocation_; } -std::string SubmitComplexJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitComplexJobRequest::setOutputLocation(const std::string &outputLocation) { + outputLocation_ = outputLocation; + setParameter(std::string("OutputLocation"), outputLocation); } -void SubmitComplexJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitComplexJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitComplexJobRequest::getUserData()const -{ - return userData_; +void SubmitComplexJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitComplexJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitComplexJobRequest::getUserData() const { + return userData_; } -std::string SubmitComplexJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitComplexJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitComplexJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitComplexJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitComplexJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitComplexJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitComplexJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitComplexJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitComplexJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitComplexJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitComplexJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitComplexJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitComplexJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitComplexJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitComplexJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitComplexJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitComplexJobRequest::getOutputBucket()const -{ - return outputBucket_; +void SubmitComplexJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitComplexJobRequest::setOutputBucket(const std::string& outputBucket) -{ - outputBucket_ = outputBucket; - setParameter("OutputBucket", outputBucket); +std::string SubmitComplexJobRequest::getOutputBucket() const { + return outputBucket_; } -std::string SubmitComplexJobRequest::getComplexConfigs()const -{ - return complexConfigs_; +void SubmitComplexJobRequest::setOutputBucket(const std::string &outputBucket) { + outputBucket_ = outputBucket; + setParameter(std::string("OutputBucket"), outputBucket); } -void SubmitComplexJobRequest::setComplexConfigs(const std::string& complexConfigs) -{ - complexConfigs_ = complexConfigs; - setParameter("ComplexConfigs", complexConfigs); +std::string SubmitComplexJobRequest::getComplexConfigs() const { + return complexConfigs_; +} + +void SubmitComplexJobRequest::setComplexConfigs(const std::string &complexConfigs) { + complexConfigs_ = complexConfigs; + setParameter(std::string("ComplexConfigs"), complexConfigs); } diff --git a/mts/src/model/SubmitComplexJobResult.cc b/mts/src/model/SubmitComplexJobResult.cc index 7498d0766..8ec06462a 100644 --- a/mts/src/model/SubmitComplexJobResult.cc +++ b/mts/src/model/SubmitComplexJobResult.cc @@ -40,48 +40,22 @@ void SubmitComplexJobResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto complexJobNode = value["ComplexJob"]; - if(!complexJobNode["JobId"].isNull()) - complexJob_.jobId = complexJobNode["JobId"].asString(); - if(!complexJobNode["State"].isNull()) - complexJob_.state = complexJobNode["State"].asString(); - if(!complexJobNode["Code"].isNull()) - complexJob_.code = complexJobNode["Code"].asString(); - if(!complexJobNode["Message"].isNull()) - complexJob_.message = complexJobNode["Message"].asString(); - if(!complexJobNode["Percent"].isNull()) - complexJob_.percent = std::stol(complexJobNode["Percent"].asString()); - if(!complexJobNode["PipelineId"].isNull()) - complexJob_.pipelineId = complexJobNode["PipelineId"].asString(); if(!complexJobNode["CreationTime"].isNull()) complexJob_.creationTime = complexJobNode["CreationTime"].asString(); + if(!complexJobNode["Percent"].isNull()) + complexJob_.percent = std::stol(complexJobNode["Percent"].asString()); if(!complexJobNode["FinishTime"].isNull()) complexJob_.finishTime = complexJobNode["FinishTime"].asString(); - auto allInputsNode = complexJobNode["Inputs"]["InputsItem"]; - for (auto complexJobNodeInputsInputsItem : allInputsNode) - { - ComplexJob::InputsItem inputsItemObject; - auto allEditingInputsNode = allInputsNode["EditingInputs"]["EditingInput"]; - for (auto allInputsNodeEditingInputsEditingInput : allEditingInputsNode) - { - ComplexJob::InputsItem::EditingInput editingInputsObject; - if(!allInputsNodeEditingInputsEditingInput["Id"].isNull()) - editingInputsObject.id = allInputsNodeEditingInputsEditingInput["Id"].asString(); - auto inputFileNode = value["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - editingInputsObject.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - editingInputsObject.inputFile.location = inputFileNode["Location"].asString(); - if(!inputFileNode["Object"].isNull()) - editingInputsObject.inputFile.object = inputFileNode["Object"].asString(); - auto inputConfigNode = value["InputConfig"]; - if(!inputConfigNode["DeinterlaceMethod"].isNull()) - editingInputsObject.inputConfig.deinterlaceMethod = inputConfigNode["DeinterlaceMethod"].asString(); - if(!inputConfigNode["IsNormalSar"].isNull()) - editingInputsObject.inputConfig.isNormalSar = inputConfigNode["IsNormalSar"].asString(); - inputsItemObject.editingInputs.push_back(editingInputsObject); - } - complexJob_.inputs.push_back(inputsItemObject); - } + if(!complexJobNode["State"].isNull()) + complexJob_.state = complexJobNode["State"].asString(); + if(!complexJobNode["Message"].isNull()) + complexJob_.message = complexJobNode["Message"].asString(); + if(!complexJobNode["JobId"].isNull()) + complexJob_.jobId = complexJobNode["JobId"].asString(); + if(!complexJobNode["Code"].isNull()) + complexJob_.code = complexJobNode["Code"].asString(); + if(!complexJobNode["PipelineId"].isNull()) + complexJob_.pipelineId = complexJobNode["PipelineId"].asString(); auto allComplexEditingConfigsNode = complexJobNode["ComplexEditingConfigs"]["ComplexEditingConfigsItem"]; for (auto complexJobNodeComplexEditingConfigsComplexEditingConfigsItem : allComplexEditingConfigsNode) { @@ -91,28 +65,28 @@ void SubmitComplexJobResult::parse(const std::string &payload) for (auto editingNodeClipListClip : allClipListNode) { ComplexJob::ComplexEditingConfigsItem::Editing::Clip clipObject; - if(!editingNodeClipListClip["Id"].isNull()) - clipObject.id = editingNodeClipListClip["Id"].asString(); if(!editingNodeClipListClip["Type"].isNull()) clipObject.type = editingNodeClipListClip["Type"].asString(); - if(!editingNodeClipListClip["SourceType"].isNull()) - clipObject.sourceType = editingNodeClipListClip["SourceType"].asString(); if(!editingNodeClipListClip["SourceID"].isNull()) clipObject.sourceID = editingNodeClipListClip["SourceID"].asString(); + if(!editingNodeClipListClip["SourceType"].isNull()) + clipObject.sourceType = editingNodeClipListClip["SourceType"].asString(); if(!editingNodeClipListClip["SourceStrmMap"].isNull()) clipObject.sourceStrmMap = editingNodeClipListClip["SourceStrmMap"].asString(); - if(!editingNodeClipListClip["In"].isNull()) - clipObject.in = editingNodeClipListClip["In"].asString(); if(!editingNodeClipListClip["Out"].isNull()) clipObject.out = editingNodeClipListClip["Out"].asString(); - auto allEffectsNode = allClipListNode["Effects"]["Effect"]; - for (auto allClipListNodeEffectsEffect : allEffectsNode) + if(!editingNodeClipListClip["In"].isNull()) + clipObject.in = editingNodeClipListClip["In"].asString(); + if(!editingNodeClipListClip["Id"].isNull()) + clipObject.id = editingNodeClipListClip["Id"].asString(); + auto allEffectsNode = editingNodeClipListClip["Effects"]["Effect"]; + for (auto editingNodeClipListClipEffectsEffect : allEffectsNode) { ComplexJob::ComplexEditingConfigsItem::Editing::Clip::Effect effectsObject; - if(!allClipListNodeEffectsEffect["Effect"].isNull()) - effectsObject.effect = allClipListNodeEffectsEffect["Effect"].asString(); - if(!allClipListNodeEffectsEffect["EffectConfig"].isNull()) - effectsObject.effectConfig = allClipListNodeEffectsEffect["EffectConfig"].asString(); + if(!editingNodeClipListClipEffectsEffect["Effect"].isNull()) + effectsObject.effect = editingNodeClipListClipEffectsEffect["Effect"].asString(); + if(!editingNodeClipListClipEffectsEffect["EffectConfig"].isNull()) + effectsObject.effectConfig = editingNodeClipListClipEffectsEffect["EffectConfig"].asString(); clipObject.effects.push_back(effectsObject); } complexEditingConfigsItemObject.editing.clipList.push_back(clipObject); @@ -122,161 +96,330 @@ void SubmitComplexJobResult::parse(const std::string &payload) for (auto timelineNodeTrackListTrack : allTrackListNode) { ComplexJob::ComplexEditingConfigsItem::Editing::Timeline::Track trackObject; - if(!timelineNodeTrackListTrack["Id"].isNull()) - trackObject.id = timelineNodeTrackListTrack["Id"].asString(); if(!timelineNodeTrackListTrack["Type"].isNull()) trackObject.type = timelineNodeTrackListTrack["Type"].asString(); if(!timelineNodeTrackListTrack["Order"].isNull()) trackObject.order = timelineNodeTrackListTrack["Order"].asString(); - auto allClipsNode = allTrackListNode["Clips"]["Clip"]; - for (auto allTrackListNodeClipsClip : allClipsNode) + if(!timelineNodeTrackListTrack["Id"].isNull()) + trackObject.id = timelineNodeTrackListTrack["Id"].asString(); + auto allClipsNode = timelineNodeTrackListTrack["Clips"]["Clip"]; + for (auto timelineNodeTrackListTrackClipsClip : allClipsNode) { ComplexJob::ComplexEditingConfigsItem::Editing::Timeline::Track::Clip1 clipsObject; - if(!allTrackListNodeClipsClip["clipID"].isNull()) - clipsObject.clipID = allTrackListNodeClipsClip["clipID"].asString(); - if(!allTrackListNodeClipsClip["In"].isNull()) - clipsObject.in = allTrackListNodeClipsClip["In"].asString(); - if(!allTrackListNodeClipsClip["Out"].isNull()) - clipsObject.out = allTrackListNodeClipsClip["Out"].asString(); + if(!timelineNodeTrackListTrackClipsClip["Out"].isNull()) + clipsObject.out = timelineNodeTrackListTrackClipsClip["Out"].asString(); + if(!timelineNodeTrackListTrackClipsClip["In"].isNull()) + clipsObject.in = timelineNodeTrackListTrackClipsClip["In"].asString(); + if(!timelineNodeTrackListTrackClipsClip["clipID"].isNull()) + clipsObject.clipID = timelineNodeTrackListTrackClipsClip["clipID"].asString(); auto clipsConfigNode = value["ClipsConfig"]; auto clipsConfigVideoNode = clipsConfigNode["ClipsConfigVideo"]; - if(!clipsConfigVideoNode["L"].isNull()) - clipsObject.clipsConfig.clipsConfigVideo.l = clipsConfigVideoNode["L"].asString(); if(!clipsConfigVideoNode["T"].isNull()) clipsObject.clipsConfig.clipsConfigVideo.t = clipsConfigVideoNode["T"].asString(); + if(!clipsConfigVideoNode["L"].isNull()) + clipsObject.clipsConfig.clipsConfigVideo.l = clipsConfigVideoNode["L"].asString(); trackObject.clips.push_back(clipsObject); } complexEditingConfigsItemObject.editing.timeline.trackList.push_back(trackObject); } auto timelineConfigNode = timelineNode["TimelineConfig"]; - auto timelineConfigVideoNode = timelineConfigNode["TimelineConfigVideo"]; - if(!timelineConfigVideoNode["Width"].isNull()) - complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.width = timelineConfigVideoNode["Width"].asString(); - if(!timelineConfigVideoNode["Height"].isNull()) - complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.height = timelineConfigVideoNode["Height"].asString(); - if(!timelineConfigVideoNode["BgColor"].isNull()) - complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.bgColor = timelineConfigVideoNode["BgColor"].asString(); - if(!timelineConfigVideoNode["Fps"].isNull()) - complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.fps = timelineConfigVideoNode["Fps"].asString(); - if(!timelineConfigVideoNode["RenderRatio"].isNull()) - complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.renderRatio = timelineConfigVideoNode["RenderRatio"].asString(); - if(!timelineConfigVideoNode["ReclosePrec"].isNull()) - complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.reclosePrec = timelineConfigVideoNode["ReclosePrec"].asString(); - if(!timelineConfigVideoNode["IsGpuData"].isNull()) - complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.isGpuData = timelineConfigVideoNode["IsGpuData"].asString(); - if(!timelineConfigVideoNode["IsOneTrackData"].isNull()) - complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.isOneTrackData = timelineConfigVideoNode["IsOneTrackData"].asString(); auto timelineConfigAudioNode = timelineConfigNode["TimelineConfigAudio"]; - if(!timelineConfigAudioNode["Samplerate"].isNull()) - complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigAudio.samplerate = timelineConfigAudioNode["Samplerate"].asString(); if(!timelineConfigAudioNode["ChannelLayout"].isNull()) complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigAudio.channelLayout = timelineConfigAudioNode["ChannelLayout"].asString(); + if(!timelineConfigAudioNode["Samplerate"].isNull()) + complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigAudio.samplerate = timelineConfigAudioNode["Samplerate"].asString(); if(!timelineConfigAudioNode["Channels"].isNull()) complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigAudio.channels = timelineConfigAudioNode["Channels"].asString(); + auto timelineConfigVideoNode = timelineConfigNode["TimelineConfigVideo"]; + if(!timelineConfigVideoNode["BgColor"].isNull()) + complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.bgColor = timelineConfigVideoNode["BgColor"].asString(); + if(!timelineConfigVideoNode["Width"].isNull()) + complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.width = timelineConfigVideoNode["Width"].asString(); + if(!timelineConfigVideoNode["RenderRatio"].isNull()) + complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.renderRatio = timelineConfigVideoNode["RenderRatio"].asString(); + if(!timelineConfigVideoNode["IsGpuData"].isNull()) + complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.isGpuData = timelineConfigVideoNode["IsGpuData"].asString(); + if(!timelineConfigVideoNode["Height"].isNull()) + complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.height = timelineConfigVideoNode["Height"].asString(); + if(!timelineConfigVideoNode["IsOneTrackData"].isNull()) + complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.isOneTrackData = timelineConfigVideoNode["IsOneTrackData"].asString(); + if(!timelineConfigVideoNode["Fps"].isNull()) + complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.fps = timelineConfigVideoNode["Fps"].asString(); + if(!timelineConfigVideoNode["ReclosePrec"].isNull()) + complexEditingConfigsItemObject.editing.timeline.timelineConfig.timelineConfigVideo.reclosePrec = timelineConfigVideoNode["ReclosePrec"].asString(); complexJob_.complexEditingConfigs.push_back(complexEditingConfigsItemObject); } + auto allInputsNode = complexJobNode["Inputs"]["InputsItem"]; + for (auto complexJobNodeInputsInputsItem : allInputsNode) + { + ComplexJob::InputsItem inputsItemObject; + auto allEditingInputsNode = complexJobNodeInputsInputsItem["EditingInputs"]["EditingInput"]; + for (auto complexJobNodeInputsInputsItemEditingInputsEditingInput : allEditingInputsNode) + { + ComplexJob::InputsItem::EditingInput editingInputsObject; + if(!complexJobNodeInputsInputsItemEditingInputsEditingInput["Id"].isNull()) + editingInputsObject.id = complexJobNodeInputsInputsItemEditingInputsEditingInput["Id"].asString(); + auto inputFileNode = value["InputFile"]; + if(!inputFileNode["Object"].isNull()) + editingInputsObject.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + editingInputsObject.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + editingInputsObject.inputFile.bucket = inputFileNode["Bucket"].asString(); + auto inputConfigNode = value["InputConfig"]; + if(!inputConfigNode["IsNormalSar"].isNull()) + editingInputsObject.inputConfig.isNormalSar = inputConfigNode["IsNormalSar"].asString(); + if(!inputConfigNode["DeinterlaceMethod"].isNull()) + editingInputsObject.inputConfig.deinterlaceMethod = inputConfigNode["DeinterlaceMethod"].asString(); + inputsItemObject.editingInputs.push_back(editingInputsObject); + } + complexJob_.inputs.push_back(inputsItemObject); + } auto transcodeOutputNode = complexJobNode["transcodeOutput"]; - if(!transcodeOutputNode["TemplateId"].isNull()) - complexJob_.transcodeOutput.templateId = transcodeOutputNode["TemplateId"].asString(); - if(!transcodeOutputNode["UserData"].isNull()) - complexJob_.transcodeOutput.userData = transcodeOutputNode["UserData"].asString(); - if(!transcodeOutputNode["Rotate"].isNull()) - complexJob_.transcodeOutput.rotate = transcodeOutputNode["Rotate"].asString(); - if(!transcodeOutputNode["VideoStreamMap"].isNull()) - complexJob_.transcodeOutput.videoStreamMap = transcodeOutputNode["VideoStreamMap"].asString(); - if(!transcodeOutputNode["AudioStreamMap"].isNull()) - complexJob_.transcodeOutput.audioStreamMap = transcodeOutputNode["AudioStreamMap"].asString(); if(!transcodeOutputNode["DeWatermark"].isNull()) complexJob_.transcodeOutput.deWatermark = transcodeOutputNode["DeWatermark"].asString(); - if(!transcodeOutputNode["Priority"].isNull()) - complexJob_.transcodeOutput.priority = transcodeOutputNode["Priority"].asString(); if(!transcodeOutputNode["WaterMarkConfigUrl"].isNull()) complexJob_.transcodeOutput.waterMarkConfigUrl = transcodeOutputNode["WaterMarkConfigUrl"].asString(); + if(!transcodeOutputNode["Priority"].isNull()) + complexJob_.transcodeOutput.priority = transcodeOutputNode["Priority"].asString(); + if(!transcodeOutputNode["AudioStreamMap"].isNull()) + complexJob_.transcodeOutput.audioStreamMap = transcodeOutputNode["AudioStreamMap"].asString(); + if(!transcodeOutputNode["UserData"].isNull()) + complexJob_.transcodeOutput.userData = transcodeOutputNode["UserData"].asString(); + if(!transcodeOutputNode["VideoStreamMap"].isNull()) + complexJob_.transcodeOutput.videoStreamMap = transcodeOutputNode["VideoStreamMap"].asString(); + if(!transcodeOutputNode["Rotate"].isNull()) + complexJob_.transcodeOutput.rotate = transcodeOutputNode["Rotate"].asString(); if(!transcodeOutputNode["MergeConfigUrl"].isNull()) complexJob_.transcodeOutput.mergeConfigUrl = transcodeOutputNode["MergeConfigUrl"].asString(); + if(!transcodeOutputNode["TemplateId"].isNull()) + complexJob_.transcodeOutput.templateId = transcodeOutputNode["TemplateId"].asString(); auto allWaterMarkListNode = transcodeOutputNode["WaterMarkList"]["WaterMark"]; for (auto transcodeOutputNodeWaterMarkListWaterMark : allWaterMarkListNode) { ComplexJob::TranscodeOutput::WaterMark waterMarkObject; - if(!transcodeOutputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) - waterMarkObject.waterMarkTemplateId = transcodeOutputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); + if(!transcodeOutputNodeWaterMarkListWaterMark["Type"].isNull()) + waterMarkObject.type = transcodeOutputNodeWaterMarkListWaterMark["Type"].asString(); + if(!transcodeOutputNodeWaterMarkListWaterMark["ReferPos"].isNull()) + waterMarkObject.referPos = transcodeOutputNodeWaterMarkListWaterMark["ReferPos"].asString(); + if(!transcodeOutputNodeWaterMarkListWaterMark["Dx"].isNull()) + waterMarkObject.dx = transcodeOutputNodeWaterMarkListWaterMark["Dx"].asString(); if(!transcodeOutputNodeWaterMarkListWaterMark["Width"].isNull()) waterMarkObject.width = transcodeOutputNodeWaterMarkListWaterMark["Width"].asString(); if(!transcodeOutputNodeWaterMarkListWaterMark["Height"].isNull()) waterMarkObject.height = transcodeOutputNodeWaterMarkListWaterMark["Height"].asString(); - if(!transcodeOutputNodeWaterMarkListWaterMark["Dx"].isNull()) - waterMarkObject.dx = transcodeOutputNodeWaterMarkListWaterMark["Dx"].asString(); + if(!transcodeOutputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) + waterMarkObject.waterMarkTemplateId = transcodeOutputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); if(!transcodeOutputNodeWaterMarkListWaterMark["Dy"].isNull()) waterMarkObject.dy = transcodeOutputNodeWaterMarkListWaterMark["Dy"].asString(); - if(!transcodeOutputNodeWaterMarkListWaterMark["ReferPos"].isNull()) - waterMarkObject.referPos = transcodeOutputNodeWaterMarkListWaterMark["ReferPos"].asString(); - if(!transcodeOutputNodeWaterMarkListWaterMark["Type"].isNull()) - waterMarkObject.type = transcodeOutputNodeWaterMarkListWaterMark["Type"].asString(); auto inputFile2Node = value["InputFile"]; - if(!inputFile2Node["Bucket"].isNull()) - waterMarkObject.inputFile2.bucket = inputFile2Node["Bucket"].asString(); - if(!inputFile2Node["Location"].isNull()) - waterMarkObject.inputFile2.location = inputFile2Node["Location"].asString(); if(!inputFile2Node["Object"].isNull()) waterMarkObject.inputFile2.object = inputFile2Node["Object"].asString(); + if(!inputFile2Node["Location"].isNull()) + waterMarkObject.inputFile2.location = inputFile2Node["Location"].asString(); + if(!inputFile2Node["Bucket"].isNull()) + waterMarkObject.inputFile2.bucket = inputFile2Node["Bucket"].asString(); complexJob_.transcodeOutput.waterMarkList.push_back(waterMarkObject); } auto allMergeListNode = transcodeOutputNode["MergeList"]["Merge"]; for (auto transcodeOutputNodeMergeListMerge : allMergeListNode) { ComplexJob::TranscodeOutput::Merge mergeObject; - if(!transcodeOutputNodeMergeListMerge["MergeURL"].isNull()) - mergeObject.mergeURL = transcodeOutputNodeMergeListMerge["MergeURL"].asString(); if(!transcodeOutputNodeMergeListMerge["Start"].isNull()) mergeObject.start = transcodeOutputNodeMergeListMerge["Start"].asString(); - if(!transcodeOutputNodeMergeListMerge["Duration"].isNull()) - mergeObject.duration = transcodeOutputNodeMergeListMerge["Duration"].asString(); if(!transcodeOutputNodeMergeListMerge["RoleArn"].isNull()) mergeObject.roleArn = transcodeOutputNodeMergeListMerge["RoleArn"].asString(); + if(!transcodeOutputNodeMergeListMerge["MergeURL"].isNull()) + mergeObject.mergeURL = transcodeOutputNodeMergeListMerge["MergeURL"].asString(); + if(!transcodeOutputNodeMergeListMerge["Duration"].isNull()) + mergeObject.duration = transcodeOutputNodeMergeListMerge["Duration"].asString(); complexJob_.transcodeOutput.mergeList.push_back(mergeObject); } + auto videoNode = transcodeOutputNode["Video"]; + if(!videoNode["Bufsize"].isNull()) + complexJob_.transcodeOutput.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["Degrain"].isNull()) + complexJob_.transcodeOutput.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + complexJob_.transcodeOutput.video.pixFmt = videoNode["PixFmt"].asString(); + if(!videoNode["Pad"].isNull()) + complexJob_.transcodeOutput.video.pad = videoNode["Pad"].asString(); + if(!videoNode["Codec"].isNull()) + complexJob_.transcodeOutput.video.codec = videoNode["Codec"].asString(); + if(!videoNode["Height"].isNull()) + complexJob_.transcodeOutput.video.height = videoNode["Height"].asString(); + if(!videoNode["Qscale"].isNull()) + complexJob_.transcodeOutput.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Crop"].isNull()) + complexJob_.transcodeOutput.video.crop = videoNode["Crop"].asString(); + if(!videoNode["Bitrate"].isNull()) + complexJob_.transcodeOutput.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + complexJob_.transcodeOutput.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["MaxFps"].isNull()) + complexJob_.transcodeOutput.video.maxFps = videoNode["MaxFps"].asString(); + if(!videoNode["Profile"].isNull()) + complexJob_.transcodeOutput.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + complexJob_.transcodeOutput.video.crf = videoNode["Crf"].asString(); + if(!videoNode["Gop"].isNull()) + complexJob_.transcodeOutput.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + complexJob_.transcodeOutput.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + complexJob_.transcodeOutput.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Preset"].isNull()) + complexJob_.transcodeOutput.video.preset = videoNode["Preset"].asString(); + if(!videoNode["ScanMode"].isNull()) + complexJob_.transcodeOutput.video.scanMode = videoNode["ScanMode"].asString(); + auto bitrateBndNode = videoNode["BitrateBnd"]; + if(!bitrateBndNode["Max"].isNull()) + complexJob_.transcodeOutput.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); + if(!bitrateBndNode["Min"].isNull()) + complexJob_.transcodeOutput.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); + auto transConfigNode = transcodeOutputNode["TransConfig"]; + if(!transConfigNode["IsCheckAudioBitrate"].isNull()) + complexJob_.transcodeOutput.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); + if(!transConfigNode["IsCheckReso"].isNull()) + complexJob_.transcodeOutput.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); + if(!transConfigNode["TransMode"].isNull()) + complexJob_.transcodeOutput.transConfig.transMode = transConfigNode["TransMode"].asString(); + if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) + complexJob_.transcodeOutput.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); + if(!transConfigNode["AdjDarMethod"].isNull()) + complexJob_.transcodeOutput.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); + if(!transConfigNode["Duration"].isNull()) + complexJob_.transcodeOutput.transConfig.duration = transConfigNode["Duration"].asString(); + if(!transConfigNode["IsCheckVideoBitrate"].isNull()) + complexJob_.transcodeOutput.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); + if(!transConfigNode["IsCheckResoFail"].isNull()) + complexJob_.transcodeOutput.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); + if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) + complexJob_.transcodeOutput.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); + auto encryptionNode = transcodeOutputNode["Encryption"]; + if(!encryptionNode["Type"].isNull()) + complexJob_.transcodeOutput.encryption.type = encryptionNode["Type"].asString(); + if(!encryptionNode["Key"].isNull()) + complexJob_.transcodeOutput.encryption.key = encryptionNode["Key"].asString(); + if(!encryptionNode["KeyType"].isNull()) + complexJob_.transcodeOutput.encryption.keyType = encryptionNode["KeyType"].asString(); + if(!encryptionNode["Id"].isNull()) + complexJob_.transcodeOutput.encryption.id = encryptionNode["Id"].asString(); + if(!encryptionNode["KeyUri"].isNull()) + complexJob_.transcodeOutput.encryption.keyUri = encryptionNode["KeyUri"].asString(); + if(!encryptionNode["SkipCnt"].isNull()) + complexJob_.transcodeOutput.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); + auto m3U8NonStandardSupportNode = transcodeOutputNode["M3U8NonStandardSupport"]; + auto tSNode = m3U8NonStandardSupportNode["TS"]; + if(!tSNode["SizeSupport"].isNull()) + complexJob_.transcodeOutput.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!tSNode["Md5Support"].isNull()) + complexJob_.transcodeOutput.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; + auto audioNode = transcodeOutputNode["Audio"]; + if(!audioNode["Profile"].isNull()) + complexJob_.transcodeOutput.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Codec"].isNull()) + complexJob_.transcodeOutput.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + complexJob_.transcodeOutput.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + complexJob_.transcodeOutput.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + complexJob_.transcodeOutput.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + complexJob_.transcodeOutput.audio.bitrate = audioNode["Bitrate"].asString(); + auto volumeNode = audioNode["Volume"]; + if(!volumeNode["Method"].isNull()) + complexJob_.transcodeOutput.audio.volume.method = volumeNode["Method"].asString(); + if(!volumeNode["Level"].isNull()) + complexJob_.transcodeOutput.audio.volume.level = volumeNode["Level"].asString(); + auto superResoNode = transcodeOutputNode["SuperReso"]; + if(!superResoNode["IsHalfSample"].isNull()) + complexJob_.transcodeOutput.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); auto digiWaterMarkNode = transcodeOutputNode["DigiWaterMark"]; if(!digiWaterMarkNode["Type"].isNull()) complexJob_.transcodeOutput.digiWaterMark.type = digiWaterMarkNode["Type"].asString(); if(!digiWaterMarkNode["Alpha"].isNull()) complexJob_.transcodeOutput.digiWaterMark.alpha = digiWaterMarkNode["Alpha"].asString(); auto inputFile3Node = digiWaterMarkNode["InputFile"]; - if(!inputFile3Node["Bucket"].isNull()) - complexJob_.transcodeOutput.digiWaterMark.inputFile3.bucket = inputFile3Node["Bucket"].asString(); - if(!inputFile3Node["Location"].isNull()) - complexJob_.transcodeOutput.digiWaterMark.inputFile3.location = inputFile3Node["Location"].asString(); if(!inputFile3Node["Object"].isNull()) complexJob_.transcodeOutput.digiWaterMark.inputFile3.object = inputFile3Node["Object"].asString(); + if(!inputFile3Node["Location"].isNull()) + complexJob_.transcodeOutput.digiWaterMark.inputFile3.location = inputFile3Node["Location"].asString(); + if(!inputFile3Node["Bucket"].isNull()) + complexJob_.transcodeOutput.digiWaterMark.inputFile3.bucket = inputFile3Node["Bucket"].asString(); auto outputFileNode = transcodeOutputNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - complexJob_.transcodeOutput.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - complexJob_.transcodeOutput.outputFile.location = outputFileNode["Location"].asString(); - if(!outputFileNode["Object"].isNull()) - complexJob_.transcodeOutput.outputFile.object = outputFileNode["Object"].asString(); if(!outputFileNode["RoleArn"].isNull()) complexJob_.transcodeOutput.outputFile.roleArn = outputFileNode["RoleArn"].asString(); - auto m3U8NonStandardSupportNode = transcodeOutputNode["M3U8NonStandardSupport"]; - auto tSNode = m3U8NonStandardSupportNode["TS"]; - if(!tSNode["Md5Support"].isNull()) - complexJob_.transcodeOutput.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; - if(!tSNode["SizeSupport"].isNull()) - complexJob_.transcodeOutput.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!outputFileNode["Object"].isNull()) + complexJob_.transcodeOutput.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + complexJob_.transcodeOutput.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + complexJob_.transcodeOutput.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto containerNode = transcodeOutputNode["Container"]; + if(!containerNode["Format"].isNull()) + complexJob_.transcodeOutput.container.format = containerNode["Format"].asString(); + auto clip4Node = transcodeOutputNode["Clip"]; + auto timeSpanNode = clip4Node["TimeSpan"]; + if(!timeSpanNode["Seek"].isNull()) + complexJob_.transcodeOutput.clip4.timeSpan.seek = timeSpanNode["Seek"].asString(); + if(!timeSpanNode["Duration"].isNull()) + complexJob_.transcodeOutput.clip4.timeSpan.duration = timeSpanNode["Duration"].asString(); + auto muxConfigNode = transcodeOutputNode["MuxConfig"]; + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + complexJob_.transcodeOutput.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["DitherMode"].isNull()) + complexJob_.transcodeOutput.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + if(!gifNode["Loop"].isNull()) + complexJob_.transcodeOutput.muxConfig.gif.loop = gifNode["Loop"].asString(); + if(!gifNode["IsCustomPalette"].isNull()) + complexJob_.transcodeOutput.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); + auto segmentNode = muxConfigNode["Segment"]; + if(!segmentNode["Duration"].isNull()) + complexJob_.transcodeOutput.muxConfig.segment.duration = segmentNode["Duration"].asString(); + auto subtitleConfigNode = transcodeOutputNode["SubtitleConfig"]; + auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; + for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) + { + ComplexJob::TranscodeOutput::SubtitleConfig::ExtSubtitle extSubtitleObject; + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) + extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) + extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + extSubtitleObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + extSubtitleObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + extSubtitleObject.input.bucket = inputNode["Bucket"].asString(); + complexJob_.transcodeOutput.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); + } + auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; + for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) + { + ComplexJob::TranscodeOutput::SubtitleConfig::Subtitle subtitleObject; + if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) + subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); + complexJob_.transcodeOutput.subtitleConfig.subtitleList.push_back(subtitleObject); + } auto propertiesNode = transcodeOutputNode["Properties"]; if(!propertiesNode["Width"].isNull()) complexJob_.transcodeOutput.properties.width = propertiesNode["Width"].asString(); if(!propertiesNode["Height"].isNull()) complexJob_.transcodeOutput.properties.height = propertiesNode["Height"].asString(); - if(!propertiesNode["Bitrate"].isNull()) - complexJob_.transcodeOutput.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["Duration"].isNull()) complexJob_.transcodeOutput.properties.duration = propertiesNode["Duration"].asString(); if(!propertiesNode["Fps"].isNull()) complexJob_.transcodeOutput.properties.fps = propertiesNode["Fps"].asString(); - if(!propertiesNode["FileSize"].isNull()) - complexJob_.transcodeOutput.properties.fileSize = propertiesNode["FileSize"].asString(); + if(!propertiesNode["Bitrate"].isNull()) + complexJob_.transcodeOutput.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["FileFormat"].isNull()) complexJob_.transcodeOutput.properties.fileFormat = propertiesNode["FileFormat"].asString(); + if(!propertiesNode["FileSize"].isNull()) + complexJob_.transcodeOutput.properties.fileSize = propertiesNode["FileSize"].asString(); auto streamsNode = propertiesNode["Streams"]; auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) @@ -284,93 +427,93 @@ void SubmitComplexJobResult::parse(const std::string &payload) ComplexJob::TranscodeOutput::Properties::Streams::VideoStream videoStreamObject; if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) - videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) + videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); auto networkCostNode = value["NetworkCost"]; if(!networkCostNode["PreloadTime"].isNull()) videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); if(!networkCostNode["AvgBitrate"].isNull()) videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); complexJob_.transcodeOutput.properties.streams.videoStreamList.push_back(videoStreamObject); } auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) { ComplexJob::TranscodeOutput::Properties::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); complexJob_.transcodeOutput.properties.streams.audioStreamList.push_back(audioStreamObject); } auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; @@ -384,165 +527,22 @@ void SubmitComplexJobResult::parse(const std::string &payload) complexJob_.transcodeOutput.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); } auto formatNode = propertiesNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - complexJob_.transcodeOutput.properties.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - complexJob_.transcodeOutput.properties.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - complexJob_.transcodeOutput.properties.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - complexJob_.transcodeOutput.properties.format.formatLongName = formatNode["FormatLongName"].asString(); if(!formatNode["StartTime"].isNull()) complexJob_.transcodeOutput.properties.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - complexJob_.transcodeOutput.properties.format.duration = formatNode["Duration"].asString(); + if(!formatNode["NumPrograms"].isNull()) + complexJob_.transcodeOutput.properties.format.numPrograms = formatNode["NumPrograms"].asString(); if(!formatNode["Size"].isNull()) complexJob_.transcodeOutput.properties.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + complexJob_.transcodeOutput.properties.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + complexJob_.transcodeOutput.properties.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + complexJob_.transcodeOutput.properties.format.duration = formatNode["Duration"].asString(); if(!formatNode["Bitrate"].isNull()) complexJob_.transcodeOutput.properties.format.bitrate = formatNode["Bitrate"].asString(); - auto clip4Node = transcodeOutputNode["Clip"]; - auto timeSpanNode = clip4Node["TimeSpan"]; - if(!timeSpanNode["Seek"].isNull()) - complexJob_.transcodeOutput.clip4.timeSpan.seek = timeSpanNode["Seek"].asString(); - if(!timeSpanNode["Duration"].isNull()) - complexJob_.transcodeOutput.clip4.timeSpan.duration = timeSpanNode["Duration"].asString(); - auto superResoNode = transcodeOutputNode["SuperReso"]; - if(!superResoNode["IsHalfSample"].isNull()) - complexJob_.transcodeOutput.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); - auto subtitleConfigNode = transcodeOutputNode["SubtitleConfig"]; - auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; - for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) - { - ComplexJob::TranscodeOutput::SubtitleConfig::Subtitle subtitleObject; - if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) - subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); - complexJob_.transcodeOutput.subtitleConfig.subtitleList.push_back(subtitleObject); - } - auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; - for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) - { - ComplexJob::TranscodeOutput::SubtitleConfig::ExtSubtitle extSubtitleObject; - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) - extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) - extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - extSubtitleObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - extSubtitleObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - extSubtitleObject.input.object = inputNode["Object"].asString(); - complexJob_.transcodeOutput.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); - } - auto transConfigNode = transcodeOutputNode["TransConfig"]; - if(!transConfigNode["TransMode"].isNull()) - complexJob_.transcodeOutput.transConfig.transMode = transConfigNode["TransMode"].asString(); - if(!transConfigNode["IsCheckReso"].isNull()) - complexJob_.transcodeOutput.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); - if(!transConfigNode["IsCheckResoFail"].isNull()) - complexJob_.transcodeOutput.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); - if(!transConfigNode["IsCheckVideoBitrate"].isNull()) - complexJob_.transcodeOutput.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); - if(!transConfigNode["IsCheckAudioBitrate"].isNull()) - complexJob_.transcodeOutput.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); - if(!transConfigNode["AdjDarMethod"].isNull()) - complexJob_.transcodeOutput.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); - if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) - complexJob_.transcodeOutput.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); - if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) - complexJob_.transcodeOutput.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); - if(!transConfigNode["Duration"].isNull()) - complexJob_.transcodeOutput.transConfig.duration = transConfigNode["Duration"].asString(); - auto muxConfigNode = transcodeOutputNode["MuxConfig"]; - auto segmentNode = muxConfigNode["Segment"]; - if(!segmentNode["Duration"].isNull()) - complexJob_.transcodeOutput.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - complexJob_.transcodeOutput.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - complexJob_.transcodeOutput.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); - if(!gifNode["IsCustomPalette"].isNull()) - complexJob_.transcodeOutput.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); - if(!gifNode["DitherMode"].isNull()) - complexJob_.transcodeOutput.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); - auto audioNode = transcodeOutputNode["Audio"]; - if(!audioNode["Codec"].isNull()) - complexJob_.transcodeOutput.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - complexJob_.transcodeOutput.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - complexJob_.transcodeOutput.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - complexJob_.transcodeOutput.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - complexJob_.transcodeOutput.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - complexJob_.transcodeOutput.audio.qscale = audioNode["Qscale"].asString(); - auto volumeNode = audioNode["Volume"]; - if(!volumeNode["Level"].isNull()) - complexJob_.transcodeOutput.audio.volume.level = volumeNode["Level"].asString(); - if(!volumeNode["Method"].isNull()) - complexJob_.transcodeOutput.audio.volume.method = volumeNode["Method"].asString(); - auto videoNode = transcodeOutputNode["Video"]; - if(!videoNode["Codec"].isNull()) - complexJob_.transcodeOutput.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - complexJob_.transcodeOutput.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - complexJob_.transcodeOutput.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - complexJob_.transcodeOutput.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - complexJob_.transcodeOutput.video.width = videoNode["Width"].asString(); - if(!videoNode["Height"].isNull()) - complexJob_.transcodeOutput.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - complexJob_.transcodeOutput.video.fps = videoNode["Fps"].asString(); - if(!videoNode["Gop"].isNull()) - complexJob_.transcodeOutput.video.gop = videoNode["Gop"].asString(); - if(!videoNode["Preset"].isNull()) - complexJob_.transcodeOutput.video.preset = videoNode["Preset"].asString(); - if(!videoNode["ScanMode"].isNull()) - complexJob_.transcodeOutput.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - complexJob_.transcodeOutput.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - complexJob_.transcodeOutput.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - complexJob_.transcodeOutput.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - complexJob_.transcodeOutput.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - complexJob_.transcodeOutput.video.qscale = videoNode["Qscale"].asString(); - if(!videoNode["Crop"].isNull()) - complexJob_.transcodeOutput.video.crop = videoNode["Crop"].asString(); - if(!videoNode["Pad"].isNull()) - complexJob_.transcodeOutput.video.pad = videoNode["Pad"].asString(); - if(!videoNode["MaxFps"].isNull()) - complexJob_.transcodeOutput.video.maxFps = videoNode["MaxFps"].asString(); - auto bitrateBndNode = videoNode["BitrateBnd"]; - if(!bitrateBndNode["Max"].isNull()) - complexJob_.transcodeOutput.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); - if(!bitrateBndNode["Min"].isNull()) - complexJob_.transcodeOutput.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto containerNode = transcodeOutputNode["Container"]; - if(!containerNode["Format"].isNull()) - complexJob_.transcodeOutput.container.format = containerNode["Format"].asString(); - auto encryptionNode = transcodeOutputNode["Encryption"]; - if(!encryptionNode["Type"].isNull()) - complexJob_.transcodeOutput.encryption.type = encryptionNode["Type"].asString(); - if(!encryptionNode["Id"].isNull()) - complexJob_.transcodeOutput.encryption.id = encryptionNode["Id"].asString(); - if(!encryptionNode["Key"].isNull()) - complexJob_.transcodeOutput.encryption.key = encryptionNode["Key"].asString(); - if(!encryptionNode["KeyUri"].isNull()) - complexJob_.transcodeOutput.encryption.keyUri = encryptionNode["KeyUri"].asString(); - if(!encryptionNode["KeyType"].isNull()) - complexJob_.transcodeOutput.encryption.keyType = encryptionNode["KeyType"].asString(); - if(!encryptionNode["SkipCnt"].isNull()) - complexJob_.transcodeOutput.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); + if(!formatNode["FormatName"].isNull()) + complexJob_.transcodeOutput.properties.format.formatName = formatNode["FormatName"].asString(); auto mNSMessageResultNode = complexJobNode["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) complexJob_.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); diff --git a/mts/src/model/SubmitCoverJobRequest.cc b/mts/src/model/SubmitCoverJobRequest.cc index 63404ebf2..1874a8921 100644 --- a/mts/src/model/SubmitCoverJobRequest.cc +++ b/mts/src/model/SubmitCoverJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitCoverJobRequest; - -SubmitCoverJobRequest::SubmitCoverJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitCoverJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitCoverJobRequest::~SubmitCoverJobRequest() -{} - -long SubmitCoverJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitCoverJobRequest; + +SubmitCoverJobRequest::SubmitCoverJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitCoverJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitCoverJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitCoverJobRequest::~SubmitCoverJobRequest() {} + +long SubmitCoverJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitCoverJobRequest::getCoverConfig()const -{ - return coverConfig_; +void SubmitCoverJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitCoverJobRequest::setCoverConfig(const std::string& coverConfig) -{ - coverConfig_ = coverConfig; - setParameter("CoverConfig", coverConfig); +std::string SubmitCoverJobRequest::getCoverConfig() const { + return coverConfig_; } -std::string SubmitCoverJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitCoverJobRequest::setCoverConfig(const std::string &coverConfig) { + coverConfig_ = coverConfig; + setParameter(std::string("CoverConfig"), coverConfig); } -void SubmitCoverJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitCoverJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitCoverJobRequest::getUserData()const -{ - return userData_; +void SubmitCoverJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitCoverJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitCoverJobRequest::getUserData() const { + return userData_; } -std::string SubmitCoverJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitCoverJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitCoverJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitCoverJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitCoverJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitCoverJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitCoverJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitCoverJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitCoverJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitCoverJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitCoverJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitCoverJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitCoverJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitCoverJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitCoverJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitCoverJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitCoverJobRequest::getInput()const -{ - return input_; +void SubmitCoverJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitCoverJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitCoverJobRequest::getInput() const { + return input_; +} + +void SubmitCoverJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitEditingJobsRequest.cc b/mts/src/model/SubmitEditingJobsRequest.cc index 7cb1abf6a..319e2a3b3 100644 --- a/mts/src/model/SubmitEditingJobsRequest.cc +++ b/mts/src/model/SubmitEditingJobsRequest.cc @@ -1,139 +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 - -using AlibabaCloud::Mts::Model::SubmitEditingJobsRequest; - -SubmitEditingJobsRequest::SubmitEditingJobsRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitEditingJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitEditingJobsRequest::~SubmitEditingJobsRequest() -{} - -long SubmitEditingJobsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitEditingJobsRequest; + +SubmitEditingJobsRequest::SubmitEditingJobsRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitEditingJobs") { + setMethod(HttpRequest::Method::Post); } -void SubmitEditingJobsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitEditingJobsRequest::~SubmitEditingJobsRequest() {} + +long SubmitEditingJobsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitEditingJobsRequest::getOutputLocation()const -{ - return outputLocation_; +void SubmitEditingJobsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitEditingJobsRequest::setOutputLocation(const std::string& outputLocation) -{ - outputLocation_ = outputLocation; - setParameter("OutputLocation", outputLocation); +std::string SubmitEditingJobsRequest::getOutputLocation() const { + return outputLocation_; } -std::string SubmitEditingJobsRequest::getEditingInputs()const -{ - return editingInputs_; +void SubmitEditingJobsRequest::setOutputLocation(const std::string &outputLocation) { + outputLocation_ = outputLocation; + setParameter(std::string("OutputLocation"), outputLocation); } -void SubmitEditingJobsRequest::setEditingInputs(const std::string& editingInputs) -{ - editingInputs_ = editingInputs; - setParameter("EditingInputs", editingInputs); +std::string SubmitEditingJobsRequest::getEditingInputs() const { + return editingInputs_; } -std::string SubmitEditingJobsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitEditingJobsRequest::setEditingInputs(const std::string &editingInputs) { + editingInputs_ = editingInputs; + setParameter(std::string("EditingInputs"), editingInputs); } -void SubmitEditingJobsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitEditingJobsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitEditingJobsRequest::getEditingJobOutputs()const -{ - return editingJobOutputs_; +void SubmitEditingJobsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitEditingJobsRequest::setEditingJobOutputs(const std::string& editingJobOutputs) -{ - editingJobOutputs_ = editingJobOutputs; - setParameter("EditingJobOutputs", editingJobOutputs); +std::string SubmitEditingJobsRequest::getEditingJobURL() const { + return editingJobURL_; } -std::string SubmitEditingJobsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitEditingJobsRequest::setEditingJobURL(const std::string &editingJobURL) { + editingJobURL_ = editingJobURL; + setParameter(std::string("EditingJobURL"), editingJobURL); } -void SubmitEditingJobsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +long SubmitEditingJobsRequest::getEditingJobOssFileUid() const { + return editingJobOssFileUid_; } -std::string SubmitEditingJobsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitEditingJobsRequest::setEditingJobOssFileUid(long editingJobOssFileUid) { + editingJobOssFileUid_ = editingJobOssFileUid; + setParameter(std::string("EditingJobOssFileUid"), std::to_string(editingJobOssFileUid)); } -void SubmitEditingJobsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitEditingJobsRequest::getEditingJobOutputs() const { + return editingJobOutputs_; } -long SubmitEditingJobsRequest::getOwnerId()const -{ - return ownerId_; +void SubmitEditingJobsRequest::setEditingJobOutputs(const std::string &editingJobOutputs) { + editingJobOutputs_ = editingJobOutputs; + setParameter(std::string("EditingJobOutputs"), editingJobOutputs); } -void SubmitEditingJobsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string SubmitEditingJobsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitEditingJobsRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitEditingJobsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitEditingJobsRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitEditingJobsRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string SubmitEditingJobsRequest::getOutputBucket()const -{ - return outputBucket_; +void SubmitEditingJobsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitEditingJobsRequest::setOutputBucket(const std::string& outputBucket) -{ - outputBucket_ = outputBucket; - setParameter("OutputBucket", outputBucket); +long SubmitEditingJobsRequest::getOwnerId() const { + return ownerId_; +} + +void SubmitEditingJobsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SubmitEditingJobsRequest::getPipelineId() const { + return pipelineId_; +} + +void SubmitEditingJobsRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); +} + +std::string SubmitEditingJobsRequest::getOutputBucket() const { + return outputBucket_; +} + +void SubmitEditingJobsRequest::setOutputBucket(const std::string &outputBucket) { + outputBucket_ = outputBucket; + setParameter(std::string("OutputBucket"), outputBucket); +} + +std::string SubmitEditingJobsRequest::getEditingJobOssFileRoleArn() const { + return editingJobOssFileRoleArn_; +} + +void SubmitEditingJobsRequest::setEditingJobOssFileRoleArn(const std::string &editingJobOssFileRoleArn) { + editingJobOssFileRoleArn_ = editingJobOssFileRoleArn; + setParameter(std::string("EditingJobOssFileRoleArn"), editingJobOssFileRoleArn); } diff --git a/mts/src/model/SubmitEditingJobsResult.cc b/mts/src/model/SubmitEditingJobsResult.cc index 04570a117..d0c8a3ec8 100644 --- a/mts/src/model/SubmitEditingJobsResult.cc +++ b/mts/src/model/SubmitEditingJobsResult.cc @@ -50,22 +50,22 @@ void SubmitEditingJobsResult::parse(const std::string &payload) if(!valueJobResultListJobResult["Message"].isNull()) jobResultListObject.message = valueJobResultListJobResult["Message"].asString(); auto jobNode = value["Job"]; - if(!jobNode["JobId"].isNull()) - jobResultListObject.job.jobId = jobNode["JobId"].asString(); + if(!jobNode["CreationTime"].isNull()) + jobResultListObject.job.creationTime = jobNode["CreationTime"].asString(); + if(!jobNode["Percent"].isNull()) + jobResultListObject.job.percent = std::stol(jobNode["Percent"].asString()); + if(!jobNode["FinishTime"].isNull()) + jobResultListObject.job.finishTime = jobNode["FinishTime"].asString(); if(!jobNode["State"].isNull()) jobResultListObject.job.state = jobNode["State"].asString(); + if(!jobNode["JobId"].isNull()) + jobResultListObject.job.jobId = jobNode["JobId"].asString(); if(!jobNode["Code"].isNull()) jobResultListObject.job.code = jobNode["Code"].asString(); if(!jobNode["Message"].isNull()) jobResultListObject.job.message = jobNode["Message"].asString(); - if(!jobNode["Percent"].isNull()) - jobResultListObject.job.percent = std::stol(jobNode["Percent"].asString()); if(!jobNode["PipelineId"].isNull()) jobResultListObject.job.pipelineId = jobNode["PipelineId"].asString(); - if(!jobNode["CreationTime"].isNull()) - jobResultListObject.job.creationTime = jobNode["CreationTime"].asString(); - if(!jobNode["FinishTime"].isNull()) - jobResultListObject.job.finishTime = jobNode["FinishTime"].asString(); auto allEditingInputsNode = jobNode["EditingInputs"]["EditingInput"]; for (auto jobNodeEditingInputsEditingInput : allEditingInputsNode) { @@ -73,121 +73,351 @@ void SubmitEditingJobsResult::parse(const std::string &payload) if(!jobNodeEditingInputsEditingInput["Id"].isNull()) editingInputObject.id = jobNodeEditingInputsEditingInput["Id"].asString(); auto inputFileNode = value["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - editingInputObject.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - editingInputObject.inputFile.location = inputFileNode["Location"].asString(); if(!inputFileNode["Object"].isNull()) editingInputObject.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + editingInputObject.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + editingInputObject.inputFile.bucket = inputFileNode["Bucket"].asString(); auto inputConfigNode = value["InputConfig"]; - if(!inputConfigNode["DeinterlaceMethod"].isNull()) - editingInputObject.inputConfig.deinterlaceMethod = inputConfigNode["DeinterlaceMethod"].asString(); if(!inputConfigNode["IsNormalSar"].isNull()) editingInputObject.inputConfig.isNormalSar = inputConfigNode["IsNormalSar"].asString(); + if(!inputConfigNode["DeinterlaceMethod"].isNull()) + editingInputObject.inputConfig.deinterlaceMethod = inputConfigNode["DeinterlaceMethod"].asString(); jobResultListObject.job.editingInputs.push_back(editingInputObject); } auto editingConfigNode = jobNode["EditingConfig"]; - if(!editingConfigNode["TemplateId"].isNull()) - jobResultListObject.job.editingConfig.templateId = editingConfigNode["TemplateId"].asString(); - if(!editingConfigNode["UserData"].isNull()) - jobResultListObject.job.editingConfig.userData = editingConfigNode["UserData"].asString(); - if(!editingConfigNode["Rotate"].isNull()) - jobResultListObject.job.editingConfig.rotate = editingConfigNode["Rotate"].asString(); - if(!editingConfigNode["VideoStreamMap"].isNull()) - jobResultListObject.job.editingConfig.videoStreamMap = editingConfigNode["VideoStreamMap"].asString(); - if(!editingConfigNode["AudioStreamMap"].isNull()) - jobResultListObject.job.editingConfig.audioStreamMap = editingConfigNode["AudioStreamMap"].asString(); if(!editingConfigNode["DeWatermark"].isNull()) jobResultListObject.job.editingConfig.deWatermark = editingConfigNode["DeWatermark"].asString(); - if(!editingConfigNode["Priority"].isNull()) - jobResultListObject.job.editingConfig.priority = editingConfigNode["Priority"].asString(); if(!editingConfigNode["WaterMarkConfigUrl"].isNull()) jobResultListObject.job.editingConfig.waterMarkConfigUrl = editingConfigNode["WaterMarkConfigUrl"].asString(); + if(!editingConfigNode["Priority"].isNull()) + jobResultListObject.job.editingConfig.priority = editingConfigNode["Priority"].asString(); + if(!editingConfigNode["AudioStreamMap"].isNull()) + jobResultListObject.job.editingConfig.audioStreamMap = editingConfigNode["AudioStreamMap"].asString(); + if(!editingConfigNode["UserData"].isNull()) + jobResultListObject.job.editingConfig.userData = editingConfigNode["UserData"].asString(); + if(!editingConfigNode["VideoStreamMap"].isNull()) + jobResultListObject.job.editingConfig.videoStreamMap = editingConfigNode["VideoStreamMap"].asString(); + if(!editingConfigNode["Rotate"].isNull()) + jobResultListObject.job.editingConfig.rotate = editingConfigNode["Rotate"].asString(); if(!editingConfigNode["MergeConfigUrl"].isNull()) jobResultListObject.job.editingConfig.mergeConfigUrl = editingConfigNode["MergeConfigUrl"].asString(); + if(!editingConfigNode["TemplateId"].isNull()) + jobResultListObject.job.editingConfig.templateId = editingConfigNode["TemplateId"].asString(); auto allWaterMarkListNode = editingConfigNode["WaterMarkList"]["WaterMark"]; for (auto editingConfigNodeWaterMarkListWaterMark : allWaterMarkListNode) { JobResult::Job::EditingConfig::WaterMark waterMarkObject; - if(!editingConfigNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) - waterMarkObject.waterMarkTemplateId = editingConfigNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); + if(!editingConfigNodeWaterMarkListWaterMark["Type"].isNull()) + waterMarkObject.type = editingConfigNodeWaterMarkListWaterMark["Type"].asString(); + if(!editingConfigNodeWaterMarkListWaterMark["ReferPos"].isNull()) + waterMarkObject.referPos = editingConfigNodeWaterMarkListWaterMark["ReferPos"].asString(); + if(!editingConfigNodeWaterMarkListWaterMark["Dx"].isNull()) + waterMarkObject.dx = editingConfigNodeWaterMarkListWaterMark["Dx"].asString(); if(!editingConfigNodeWaterMarkListWaterMark["Width"].isNull()) waterMarkObject.width = editingConfigNodeWaterMarkListWaterMark["Width"].asString(); if(!editingConfigNodeWaterMarkListWaterMark["Height"].isNull()) waterMarkObject.height = editingConfigNodeWaterMarkListWaterMark["Height"].asString(); - if(!editingConfigNodeWaterMarkListWaterMark["Dx"].isNull()) - waterMarkObject.dx = editingConfigNodeWaterMarkListWaterMark["Dx"].asString(); + if(!editingConfigNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) + waterMarkObject.waterMarkTemplateId = editingConfigNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); if(!editingConfigNodeWaterMarkListWaterMark["Dy"].isNull()) waterMarkObject.dy = editingConfigNodeWaterMarkListWaterMark["Dy"].asString(); - if(!editingConfigNodeWaterMarkListWaterMark["ReferPos"].isNull()) - waterMarkObject.referPos = editingConfigNodeWaterMarkListWaterMark["ReferPos"].asString(); - if(!editingConfigNodeWaterMarkListWaterMark["Type"].isNull()) - waterMarkObject.type = editingConfigNodeWaterMarkListWaterMark["Type"].asString(); auto inputFile1Node = value["InputFile"]; - if(!inputFile1Node["Bucket"].isNull()) - waterMarkObject.inputFile1.bucket = inputFile1Node["Bucket"].asString(); - if(!inputFile1Node["Location"].isNull()) - waterMarkObject.inputFile1.location = inputFile1Node["Location"].asString(); if(!inputFile1Node["Object"].isNull()) waterMarkObject.inputFile1.object = inputFile1Node["Object"].asString(); + if(!inputFile1Node["Location"].isNull()) + waterMarkObject.inputFile1.location = inputFile1Node["Location"].asString(); + if(!inputFile1Node["Bucket"].isNull()) + waterMarkObject.inputFile1.bucket = inputFile1Node["Bucket"].asString(); jobResultListObject.job.editingConfig.waterMarkList.push_back(waterMarkObject); } auto allMergeListNode = editingConfigNode["MergeList"]["Merge"]; for (auto editingConfigNodeMergeListMerge : allMergeListNode) { JobResult::Job::EditingConfig::Merge mergeObject; - if(!editingConfigNodeMergeListMerge["MergeURL"].isNull()) - mergeObject.mergeURL = editingConfigNodeMergeListMerge["MergeURL"].asString(); if(!editingConfigNodeMergeListMerge["Start"].isNull()) mergeObject.start = editingConfigNodeMergeListMerge["Start"].asString(); - if(!editingConfigNodeMergeListMerge["Duration"].isNull()) - mergeObject.duration = editingConfigNodeMergeListMerge["Duration"].asString(); if(!editingConfigNodeMergeListMerge["RoleArn"].isNull()) mergeObject.roleArn = editingConfigNodeMergeListMerge["RoleArn"].asString(); + if(!editingConfigNodeMergeListMerge["MergeURL"].isNull()) + mergeObject.mergeURL = editingConfigNodeMergeListMerge["MergeURL"].asString(); + if(!editingConfigNodeMergeListMerge["Duration"].isNull()) + mergeObject.duration = editingConfigNodeMergeListMerge["Duration"].asString(); jobResultListObject.job.editingConfig.mergeList.push_back(mergeObject); } + auto videoNode = editingConfigNode["Video"]; + if(!videoNode["Bufsize"].isNull()) + jobResultListObject.job.editingConfig.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["Degrain"].isNull()) + jobResultListObject.job.editingConfig.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + jobResultListObject.job.editingConfig.video.pixFmt = videoNode["PixFmt"].asString(); + if(!videoNode["Pad"].isNull()) + jobResultListObject.job.editingConfig.video.pad = videoNode["Pad"].asString(); + if(!videoNode["Codec"].isNull()) + jobResultListObject.job.editingConfig.video.codec = videoNode["Codec"].asString(); + if(!videoNode["Height"].isNull()) + jobResultListObject.job.editingConfig.video.height = videoNode["Height"].asString(); + if(!videoNode["Qscale"].isNull()) + jobResultListObject.job.editingConfig.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Crop"].isNull()) + jobResultListObject.job.editingConfig.video.crop = videoNode["Crop"].asString(); + if(!videoNode["Bitrate"].isNull()) + jobResultListObject.job.editingConfig.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + jobResultListObject.job.editingConfig.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["MaxFps"].isNull()) + jobResultListObject.job.editingConfig.video.maxFps = videoNode["MaxFps"].asString(); + if(!videoNode["Profile"].isNull()) + jobResultListObject.job.editingConfig.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + jobResultListObject.job.editingConfig.video.crf = videoNode["Crf"].asString(); + if(!videoNode["Gop"].isNull()) + jobResultListObject.job.editingConfig.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + jobResultListObject.job.editingConfig.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + jobResultListObject.job.editingConfig.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Preset"].isNull()) + jobResultListObject.job.editingConfig.video.preset = videoNode["Preset"].asString(); + if(!videoNode["ScanMode"].isNull()) + jobResultListObject.job.editingConfig.video.scanMode = videoNode["ScanMode"].asString(); + auto bitrateBndNode = videoNode["BitrateBnd"]; + if(!bitrateBndNode["Max"].isNull()) + jobResultListObject.job.editingConfig.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); + if(!bitrateBndNode["Min"].isNull()) + jobResultListObject.job.editingConfig.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); + auto transConfigNode = editingConfigNode["TransConfig"]; + if(!transConfigNode["IsCheckAudioBitrate"].isNull()) + jobResultListObject.job.editingConfig.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); + if(!transConfigNode["IsCheckReso"].isNull()) + jobResultListObject.job.editingConfig.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); + if(!transConfigNode["TransMode"].isNull()) + jobResultListObject.job.editingConfig.transConfig.transMode = transConfigNode["TransMode"].asString(); + if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) + jobResultListObject.job.editingConfig.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); + if(!transConfigNode["AdjDarMethod"].isNull()) + jobResultListObject.job.editingConfig.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); + if(!transConfigNode["Duration"].isNull()) + jobResultListObject.job.editingConfig.transConfig.duration = transConfigNode["Duration"].asString(); + if(!transConfigNode["IsCheckVideoBitrate"].isNull()) + jobResultListObject.job.editingConfig.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); + if(!transConfigNode["IsCheckResoFail"].isNull()) + jobResultListObject.job.editingConfig.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); + if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) + jobResultListObject.job.editingConfig.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); + auto encryptionNode = editingConfigNode["Encryption"]; + if(!encryptionNode["Type"].isNull()) + jobResultListObject.job.editingConfig.encryption.type = encryptionNode["Type"].asString(); + if(!encryptionNode["Key"].isNull()) + jobResultListObject.job.editingConfig.encryption.key = encryptionNode["Key"].asString(); + if(!encryptionNode["KeyType"].isNull()) + jobResultListObject.job.editingConfig.encryption.keyType = encryptionNode["KeyType"].asString(); + if(!encryptionNode["Id"].isNull()) + jobResultListObject.job.editingConfig.encryption.id = encryptionNode["Id"].asString(); + if(!encryptionNode["KeyUri"].isNull()) + jobResultListObject.job.editingConfig.encryption.keyUri = encryptionNode["KeyUri"].asString(); + if(!encryptionNode["SkipCnt"].isNull()) + jobResultListObject.job.editingConfig.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); + auto m3U8NonStandardSupportNode = editingConfigNode["M3U8NonStandardSupport"]; + auto tSNode = m3U8NonStandardSupportNode["TS"]; + if(!tSNode["SizeSupport"].isNull()) + jobResultListObject.job.editingConfig.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!tSNode["Md5Support"].isNull()) + jobResultListObject.job.editingConfig.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; + auto audioNode = editingConfigNode["Audio"]; + if(!audioNode["Profile"].isNull()) + jobResultListObject.job.editingConfig.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Codec"].isNull()) + jobResultListObject.job.editingConfig.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + jobResultListObject.job.editingConfig.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + jobResultListObject.job.editingConfig.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + jobResultListObject.job.editingConfig.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + jobResultListObject.job.editingConfig.audio.bitrate = audioNode["Bitrate"].asString(); + auto volumeNode = audioNode["Volume"]; + if(!volumeNode["Method"].isNull()) + jobResultListObject.job.editingConfig.audio.volume.method = volumeNode["Method"].asString(); + if(!volumeNode["Level"].isNull()) + jobResultListObject.job.editingConfig.audio.volume.level = volumeNode["Level"].asString(); + auto superResoNode = editingConfigNode["SuperReso"]; + if(!superResoNode["IsHalfSample"].isNull()) + jobResultListObject.job.editingConfig.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); auto digiWaterMarkNode = editingConfigNode["DigiWaterMark"]; if(!digiWaterMarkNode["Type"].isNull()) jobResultListObject.job.editingConfig.digiWaterMark.type = digiWaterMarkNode["Type"].asString(); if(!digiWaterMarkNode["Alpha"].isNull()) jobResultListObject.job.editingConfig.digiWaterMark.alpha = digiWaterMarkNode["Alpha"].asString(); auto inputFile2Node = digiWaterMarkNode["InputFile"]; - if(!inputFile2Node["Bucket"].isNull()) - jobResultListObject.job.editingConfig.digiWaterMark.inputFile2.bucket = inputFile2Node["Bucket"].asString(); - if(!inputFile2Node["Location"].isNull()) - jobResultListObject.job.editingConfig.digiWaterMark.inputFile2.location = inputFile2Node["Location"].asString(); if(!inputFile2Node["Object"].isNull()) jobResultListObject.job.editingConfig.digiWaterMark.inputFile2.object = inputFile2Node["Object"].asString(); + if(!inputFile2Node["Location"].isNull()) + jobResultListObject.job.editingConfig.digiWaterMark.inputFile2.location = inputFile2Node["Location"].asString(); + if(!inputFile2Node["Bucket"].isNull()) + jobResultListObject.job.editingConfig.digiWaterMark.inputFile2.bucket = inputFile2Node["Bucket"].asString(); auto outputFileNode = editingConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - jobResultListObject.job.editingConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - jobResultListObject.job.editingConfig.outputFile.location = outputFileNode["Location"].asString(); - if(!outputFileNode["Object"].isNull()) - jobResultListObject.job.editingConfig.outputFile.object = outputFileNode["Object"].asString(); if(!outputFileNode["RoleArn"].isNull()) jobResultListObject.job.editingConfig.outputFile.roleArn = outputFileNode["RoleArn"].asString(); - auto m3U8NonStandardSupportNode = editingConfigNode["M3U8NonStandardSupport"]; - auto tSNode = m3U8NonStandardSupportNode["TS"]; - if(!tSNode["Md5Support"].isNull()) - jobResultListObject.job.editingConfig.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; - if(!tSNode["SizeSupport"].isNull()) - jobResultListObject.job.editingConfig.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!outputFileNode["Object"].isNull()) + jobResultListObject.job.editingConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + jobResultListObject.job.editingConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + jobResultListObject.job.editingConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto editingNode = editingConfigNode["Editing"]; + auto allClipListNode = editingNode["ClipList"]["Clip"]; + for (auto editingNodeClipListClip : allClipListNode) + { + JobResult::Job::EditingConfig::Editing::Clip clipObject; + if(!editingNodeClipListClip["Type"].isNull()) + clipObject.type = editingNodeClipListClip["Type"].asString(); + if(!editingNodeClipListClip["SourceID"].isNull()) + clipObject.sourceID = editingNodeClipListClip["SourceID"].asString(); + if(!editingNodeClipListClip["SourceType"].isNull()) + clipObject.sourceType = editingNodeClipListClip["SourceType"].asString(); + if(!editingNodeClipListClip["SourceStrmMap"].isNull()) + clipObject.sourceStrmMap = editingNodeClipListClip["SourceStrmMap"].asString(); + if(!editingNodeClipListClip["Out"].isNull()) + clipObject.out = editingNodeClipListClip["Out"].asString(); + if(!editingNodeClipListClip["In"].isNull()) + clipObject.in = editingNodeClipListClip["In"].asString(); + if(!editingNodeClipListClip["Id"].isNull()) + clipObject.id = editingNodeClipListClip["Id"].asString(); + auto allEffectsNode = editingNodeClipListClip["Effects"]["Effect"]; + for (auto editingNodeClipListClipEffectsEffect : allEffectsNode) + { + JobResult::Job::EditingConfig::Editing::Clip::Effect effectsObject; + if(!editingNodeClipListClipEffectsEffect["Effect"].isNull()) + effectsObject.effect = editingNodeClipListClipEffectsEffect["Effect"].asString(); + if(!editingNodeClipListClipEffectsEffect["EffectConfig"].isNull()) + effectsObject.effectConfig = editingNodeClipListClipEffectsEffect["EffectConfig"].asString(); + clipObject.effects.push_back(effectsObject); + } + jobResultListObject.job.editingConfig.editing.clipList.push_back(clipObject); + } + auto timelineNode = editingNode["Timeline"]; + auto allTrackListNode = timelineNode["TrackList"]["Track"]; + for (auto timelineNodeTrackListTrack : allTrackListNode) + { + JobResult::Job::EditingConfig::Editing::Timeline::Track trackObject; + if(!timelineNodeTrackListTrack["Type"].isNull()) + trackObject.type = timelineNodeTrackListTrack["Type"].asString(); + if(!timelineNodeTrackListTrack["Order"].isNull()) + trackObject.order = timelineNodeTrackListTrack["Order"].asString(); + if(!timelineNodeTrackListTrack["Id"].isNull()) + trackObject.id = timelineNodeTrackListTrack["Id"].asString(); + auto allClipsNode = timelineNodeTrackListTrack["Clips"]["Clip"]; + for (auto timelineNodeTrackListTrackClipsClip : allClipsNode) + { + JobResult::Job::EditingConfig::Editing::Timeline::Track::Clip3 clipsObject; + if(!timelineNodeTrackListTrackClipsClip["Out"].isNull()) + clipsObject.out = timelineNodeTrackListTrackClipsClip["Out"].asString(); + if(!timelineNodeTrackListTrackClipsClip["In"].isNull()) + clipsObject.in = timelineNodeTrackListTrackClipsClip["In"].asString(); + if(!timelineNodeTrackListTrackClipsClip["clipID"].isNull()) + clipsObject.clipID = timelineNodeTrackListTrackClipsClip["clipID"].asString(); + auto clipsConfigNode = value["ClipsConfig"]; + auto clipsConfigVideoNode = clipsConfigNode["ClipsConfigVideo"]; + if(!clipsConfigVideoNode["T"].isNull()) + clipsObject.clipsConfig.clipsConfigVideo.t = clipsConfigVideoNode["T"].asString(); + if(!clipsConfigVideoNode["L"].isNull()) + clipsObject.clipsConfig.clipsConfigVideo.l = clipsConfigVideoNode["L"].asString(); + trackObject.clips.push_back(clipsObject); + } + jobResultListObject.job.editingConfig.editing.timeline.trackList.push_back(trackObject); + } + auto timelineConfigNode = timelineNode["TimelineConfig"]; + auto timelineConfigAudioNode = timelineConfigNode["TimelineConfigAudio"]; + if(!timelineConfigAudioNode["ChannelLayout"].isNull()) + jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.channelLayout = timelineConfigAudioNode["ChannelLayout"].asString(); + if(!timelineConfigAudioNode["Samplerate"].isNull()) + jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.samplerate = timelineConfigAudioNode["Samplerate"].asString(); + if(!timelineConfigAudioNode["Channels"].isNull()) + jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.channels = timelineConfigAudioNode["Channels"].asString(); + auto timelineConfigVideoNode = timelineConfigNode["TimelineConfigVideo"]; + if(!timelineConfigVideoNode["BgColor"].isNull()) + jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.bgColor = timelineConfigVideoNode["BgColor"].asString(); + if(!timelineConfigVideoNode["Width"].isNull()) + jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.width = timelineConfigVideoNode["Width"].asString(); + if(!timelineConfigVideoNode["RenderRatio"].isNull()) + jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.renderRatio = timelineConfigVideoNode["RenderRatio"].asString(); + if(!timelineConfigVideoNode["IsGpuData"].isNull()) + jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.isGpuData = timelineConfigVideoNode["IsGpuData"].asString(); + if(!timelineConfigVideoNode["Height"].isNull()) + jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.height = timelineConfigVideoNode["Height"].asString(); + if(!timelineConfigVideoNode["IsOneTrackData"].isNull()) + jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.isOneTrackData = timelineConfigVideoNode["IsOneTrackData"].asString(); + if(!timelineConfigVideoNode["Fps"].isNull()) + jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.fps = timelineConfigVideoNode["Fps"].asString(); + if(!timelineConfigVideoNode["ReclosePrec"].isNull()) + jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.reclosePrec = timelineConfigVideoNode["ReclosePrec"].asString(); + auto containerNode = editingConfigNode["Container"]; + if(!containerNode["Format"].isNull()) + jobResultListObject.job.editingConfig.container.format = containerNode["Format"].asString(); + auto clip4Node = editingConfigNode["Clip"]; + auto timeSpanNode = clip4Node["TimeSpan"]; + if(!timeSpanNode["Seek"].isNull()) + jobResultListObject.job.editingConfig.clip4.timeSpan.seek = timeSpanNode["Seek"].asString(); + if(!timeSpanNode["Duration"].isNull()) + jobResultListObject.job.editingConfig.clip4.timeSpan.duration = timeSpanNode["Duration"].asString(); + auto muxConfigNode = editingConfigNode["MuxConfig"]; + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + jobResultListObject.job.editingConfig.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["DitherMode"].isNull()) + jobResultListObject.job.editingConfig.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + if(!gifNode["Loop"].isNull()) + jobResultListObject.job.editingConfig.muxConfig.gif.loop = gifNode["Loop"].asString(); + if(!gifNode["IsCustomPalette"].isNull()) + jobResultListObject.job.editingConfig.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); + auto segmentNode = muxConfigNode["Segment"]; + if(!segmentNode["Duration"].isNull()) + jobResultListObject.job.editingConfig.muxConfig.segment.duration = segmentNode["Duration"].asString(); + auto subtitleConfigNode = editingConfigNode["SubtitleConfig"]; + auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; + for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) + { + JobResult::Job::EditingConfig::SubtitleConfig::ExtSubtitle extSubtitleObject; + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) + extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) + extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); + auto inputNode = value["Input"]; + if(!inputNode["Object"].isNull()) + extSubtitleObject.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + extSubtitleObject.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + extSubtitleObject.input.bucket = inputNode["Bucket"].asString(); + jobResultListObject.job.editingConfig.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); + } + auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; + for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) + { + JobResult::Job::EditingConfig::SubtitleConfig::Subtitle subtitleObject; + if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) + subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); + jobResultListObject.job.editingConfig.subtitleConfig.subtitleList.push_back(subtitleObject); + } auto propertiesNode = editingConfigNode["Properties"]; if(!propertiesNode["Width"].isNull()) jobResultListObject.job.editingConfig.properties.width = propertiesNode["Width"].asString(); if(!propertiesNode["Height"].isNull()) jobResultListObject.job.editingConfig.properties.height = propertiesNode["Height"].asString(); - if(!propertiesNode["Bitrate"].isNull()) - jobResultListObject.job.editingConfig.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["Duration"].isNull()) jobResultListObject.job.editingConfig.properties.duration = propertiesNode["Duration"].asString(); if(!propertiesNode["Fps"].isNull()) jobResultListObject.job.editingConfig.properties.fps = propertiesNode["Fps"].asString(); - if(!propertiesNode["FileSize"].isNull()) - jobResultListObject.job.editingConfig.properties.fileSize = propertiesNode["FileSize"].asString(); + if(!propertiesNode["Bitrate"].isNull()) + jobResultListObject.job.editingConfig.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["FileFormat"].isNull()) jobResultListObject.job.editingConfig.properties.fileFormat = propertiesNode["FileFormat"].asString(); + if(!propertiesNode["FileSize"].isNull()) + jobResultListObject.job.editingConfig.properties.fileSize = propertiesNode["FileSize"].asString(); auto streamsNode = propertiesNode["Streams"]; auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) @@ -195,93 +425,93 @@ void SubmitEditingJobsResult::parse(const std::string &payload) JobResult::Job::EditingConfig::Properties::Streams::VideoStream videoStreamObject; if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) - videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) + videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); auto networkCostNode = value["NetworkCost"]; if(!networkCostNode["PreloadTime"].isNull()) videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); if(!networkCostNode["AvgBitrate"].isNull()) videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); jobResultListObject.job.editingConfig.properties.streams.videoStreamList.push_back(videoStreamObject); } auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) { JobResult::Job::EditingConfig::Properties::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); jobResultListObject.job.editingConfig.properties.streams.audioStreamList.push_back(audioStreamObject); } auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; @@ -295,252 +525,22 @@ void SubmitEditingJobsResult::parse(const std::string &payload) jobResultListObject.job.editingConfig.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); } auto formatNode = propertiesNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - jobResultListObject.job.editingConfig.properties.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - jobResultListObject.job.editingConfig.properties.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - jobResultListObject.job.editingConfig.properties.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - jobResultListObject.job.editingConfig.properties.format.formatLongName = formatNode["FormatLongName"].asString(); if(!formatNode["StartTime"].isNull()) jobResultListObject.job.editingConfig.properties.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - jobResultListObject.job.editingConfig.properties.format.duration = formatNode["Duration"].asString(); + if(!formatNode["NumPrograms"].isNull()) + jobResultListObject.job.editingConfig.properties.format.numPrograms = formatNode["NumPrograms"].asString(); if(!formatNode["Size"].isNull()) jobResultListObject.job.editingConfig.properties.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + jobResultListObject.job.editingConfig.properties.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + jobResultListObject.job.editingConfig.properties.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + jobResultListObject.job.editingConfig.properties.format.duration = formatNode["Duration"].asString(); if(!formatNode["Bitrate"].isNull()) jobResultListObject.job.editingConfig.properties.format.bitrate = formatNode["Bitrate"].asString(); - auto clipNode = editingConfigNode["Clip"]; - auto timeSpanNode = clipNode["TimeSpan"]; - if(!timeSpanNode["Seek"].isNull()) - jobResultListObject.job.editingConfig.clip.timeSpan.seek = timeSpanNode["Seek"].asString(); - if(!timeSpanNode["Duration"].isNull()) - jobResultListObject.job.editingConfig.clip.timeSpan.duration = timeSpanNode["Duration"].asString(); - auto superResoNode = editingConfigNode["SuperReso"]; - if(!superResoNode["IsHalfSample"].isNull()) - jobResultListObject.job.editingConfig.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); - auto subtitleConfigNode = editingConfigNode["SubtitleConfig"]; - auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; - for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) - { - JobResult::Job::EditingConfig::SubtitleConfig::Subtitle subtitleObject; - if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) - subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); - jobResultListObject.job.editingConfig.subtitleConfig.subtitleList.push_back(subtitleObject); - } - auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; - for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) - { - JobResult::Job::EditingConfig::SubtitleConfig::ExtSubtitle extSubtitleObject; - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) - extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) - extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); - auto inputNode = value["Input"]; - if(!inputNode["Bucket"].isNull()) - extSubtitleObject.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - extSubtitleObject.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - extSubtitleObject.input.object = inputNode["Object"].asString(); - jobResultListObject.job.editingConfig.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); - } - auto transConfigNode = editingConfigNode["TransConfig"]; - if(!transConfigNode["TransMode"].isNull()) - jobResultListObject.job.editingConfig.transConfig.transMode = transConfigNode["TransMode"].asString(); - if(!transConfigNode["IsCheckReso"].isNull()) - jobResultListObject.job.editingConfig.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); - if(!transConfigNode["IsCheckResoFail"].isNull()) - jobResultListObject.job.editingConfig.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); - if(!transConfigNode["IsCheckVideoBitrate"].isNull()) - jobResultListObject.job.editingConfig.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); - if(!transConfigNode["IsCheckAudioBitrate"].isNull()) - jobResultListObject.job.editingConfig.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); - if(!transConfigNode["AdjDarMethod"].isNull()) - jobResultListObject.job.editingConfig.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); - if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) - jobResultListObject.job.editingConfig.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); - if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) - jobResultListObject.job.editingConfig.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); - if(!transConfigNode["Duration"].isNull()) - jobResultListObject.job.editingConfig.transConfig.duration = transConfigNode["Duration"].asString(); - auto muxConfigNode = editingConfigNode["MuxConfig"]; - auto segmentNode = muxConfigNode["Segment"]; - if(!segmentNode["Duration"].isNull()) - jobResultListObject.job.editingConfig.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - jobResultListObject.job.editingConfig.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - jobResultListObject.job.editingConfig.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); - if(!gifNode["IsCustomPalette"].isNull()) - jobResultListObject.job.editingConfig.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); - if(!gifNode["DitherMode"].isNull()) - jobResultListObject.job.editingConfig.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); - auto audioNode = editingConfigNode["Audio"]; - if(!audioNode["Codec"].isNull()) - jobResultListObject.job.editingConfig.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - jobResultListObject.job.editingConfig.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - jobResultListObject.job.editingConfig.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - jobResultListObject.job.editingConfig.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - jobResultListObject.job.editingConfig.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - jobResultListObject.job.editingConfig.audio.qscale = audioNode["Qscale"].asString(); - auto volumeNode = audioNode["Volume"]; - if(!volumeNode["Level"].isNull()) - jobResultListObject.job.editingConfig.audio.volume.level = volumeNode["Level"].asString(); - if(!volumeNode["Method"].isNull()) - jobResultListObject.job.editingConfig.audio.volume.method = volumeNode["Method"].asString(); - auto videoNode = editingConfigNode["Video"]; - if(!videoNode["Codec"].isNull()) - jobResultListObject.job.editingConfig.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - jobResultListObject.job.editingConfig.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - jobResultListObject.job.editingConfig.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - jobResultListObject.job.editingConfig.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - jobResultListObject.job.editingConfig.video.width = videoNode["Width"].asString(); - if(!videoNode["Height"].isNull()) - jobResultListObject.job.editingConfig.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - jobResultListObject.job.editingConfig.video.fps = videoNode["Fps"].asString(); - if(!videoNode["Gop"].isNull()) - jobResultListObject.job.editingConfig.video.gop = videoNode["Gop"].asString(); - if(!videoNode["Preset"].isNull()) - jobResultListObject.job.editingConfig.video.preset = videoNode["Preset"].asString(); - if(!videoNode["ScanMode"].isNull()) - jobResultListObject.job.editingConfig.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - jobResultListObject.job.editingConfig.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - jobResultListObject.job.editingConfig.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - jobResultListObject.job.editingConfig.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - jobResultListObject.job.editingConfig.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - jobResultListObject.job.editingConfig.video.qscale = videoNode["Qscale"].asString(); - if(!videoNode["Crop"].isNull()) - jobResultListObject.job.editingConfig.video.crop = videoNode["Crop"].asString(); - if(!videoNode["Pad"].isNull()) - jobResultListObject.job.editingConfig.video.pad = videoNode["Pad"].asString(); - if(!videoNode["MaxFps"].isNull()) - jobResultListObject.job.editingConfig.video.maxFps = videoNode["MaxFps"].asString(); - auto bitrateBndNode = videoNode["BitrateBnd"]; - if(!bitrateBndNode["Max"].isNull()) - jobResultListObject.job.editingConfig.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); - if(!bitrateBndNode["Min"].isNull()) - jobResultListObject.job.editingConfig.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto containerNode = editingConfigNode["Container"]; - if(!containerNode["Format"].isNull()) - jobResultListObject.job.editingConfig.container.format = containerNode["Format"].asString(); - auto encryptionNode = editingConfigNode["Encryption"]; - if(!encryptionNode["Type"].isNull()) - jobResultListObject.job.editingConfig.encryption.type = encryptionNode["Type"].asString(); - if(!encryptionNode["Id"].isNull()) - jobResultListObject.job.editingConfig.encryption.id = encryptionNode["Id"].asString(); - if(!encryptionNode["Key"].isNull()) - jobResultListObject.job.editingConfig.encryption.key = encryptionNode["Key"].asString(); - if(!encryptionNode["KeyUri"].isNull()) - jobResultListObject.job.editingConfig.encryption.keyUri = encryptionNode["KeyUri"].asString(); - if(!encryptionNode["KeyType"].isNull()) - jobResultListObject.job.editingConfig.encryption.keyType = encryptionNode["KeyType"].asString(); - if(!encryptionNode["SkipCnt"].isNull()) - jobResultListObject.job.editingConfig.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); - auto editingNode = editingConfigNode["Editing"]; - auto allClipListNode = editingNode["ClipList"]["Clip"]; - for (auto editingNodeClipListClip : allClipListNode) - { - JobResult::Job::EditingConfig::Editing::Clip3 clip3Object; - if(!editingNodeClipListClip["Id"].isNull()) - clip3Object.id = editingNodeClipListClip["Id"].asString(); - if(!editingNodeClipListClip["Type"].isNull()) - clip3Object.type = editingNodeClipListClip["Type"].asString(); - if(!editingNodeClipListClip["SourceType"].isNull()) - clip3Object.sourceType = editingNodeClipListClip["SourceType"].asString(); - if(!editingNodeClipListClip["SourceID"].isNull()) - clip3Object.sourceID = editingNodeClipListClip["SourceID"].asString(); - if(!editingNodeClipListClip["SourceStrmMap"].isNull()) - clip3Object.sourceStrmMap = editingNodeClipListClip["SourceStrmMap"].asString(); - if(!editingNodeClipListClip["In"].isNull()) - clip3Object.in = editingNodeClipListClip["In"].asString(); - if(!editingNodeClipListClip["Out"].isNull()) - clip3Object.out = editingNodeClipListClip["Out"].asString(); - auto allEffectsNode = allClipListNode["Effects"]["Effect"]; - for (auto allClipListNodeEffectsEffect : allEffectsNode) - { - JobResult::Job::EditingConfig::Editing::Clip3::Effect effectsObject; - if(!allClipListNodeEffectsEffect["Effect"].isNull()) - effectsObject.effect = allClipListNodeEffectsEffect["Effect"].asString(); - if(!allClipListNodeEffectsEffect["EffectConfig"].isNull()) - effectsObject.effectConfig = allClipListNodeEffectsEffect["EffectConfig"].asString(); - clip3Object.effects.push_back(effectsObject); - } - jobResultListObject.job.editingConfig.editing.clipList.push_back(clip3Object); - } - auto timelineNode = editingNode["Timeline"]; - auto allTrackListNode = timelineNode["TrackList"]["Track"]; - for (auto timelineNodeTrackListTrack : allTrackListNode) - { - JobResult::Job::EditingConfig::Editing::Timeline::Track trackObject; - if(!timelineNodeTrackListTrack["Id"].isNull()) - trackObject.id = timelineNodeTrackListTrack["Id"].asString(); - if(!timelineNodeTrackListTrack["Type"].isNull()) - trackObject.type = timelineNodeTrackListTrack["Type"].asString(); - if(!timelineNodeTrackListTrack["Order"].isNull()) - trackObject.order = timelineNodeTrackListTrack["Order"].asString(); - auto allClipsNode = allTrackListNode["Clips"]["Clip"]; - for (auto allTrackListNodeClipsClip : allClipsNode) - { - JobResult::Job::EditingConfig::Editing::Timeline::Track::Clip4 clipsObject; - if(!allTrackListNodeClipsClip["clipID"].isNull()) - clipsObject.clipID = allTrackListNodeClipsClip["clipID"].asString(); - if(!allTrackListNodeClipsClip["In"].isNull()) - clipsObject.in = allTrackListNodeClipsClip["In"].asString(); - if(!allTrackListNodeClipsClip["Out"].isNull()) - clipsObject.out = allTrackListNodeClipsClip["Out"].asString(); - auto clipsConfigNode = value["ClipsConfig"]; - auto clipsConfigVideoNode = clipsConfigNode["ClipsConfigVideo"]; - if(!clipsConfigVideoNode["L"].isNull()) - clipsObject.clipsConfig.clipsConfigVideo.l = clipsConfigVideoNode["L"].asString(); - if(!clipsConfigVideoNode["T"].isNull()) - clipsObject.clipsConfig.clipsConfigVideo.t = clipsConfigVideoNode["T"].asString(); - trackObject.clips.push_back(clipsObject); - } - jobResultListObject.job.editingConfig.editing.timeline.trackList.push_back(trackObject); - } - auto timelineConfigNode = timelineNode["TimelineConfig"]; - auto timelineConfigVideoNode = timelineConfigNode["TimelineConfigVideo"]; - if(!timelineConfigVideoNode["Width"].isNull()) - jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.width = timelineConfigVideoNode["Width"].asString(); - if(!timelineConfigVideoNode["Height"].isNull()) - jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.height = timelineConfigVideoNode["Height"].asString(); - if(!timelineConfigVideoNode["BgColor"].isNull()) - jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.bgColor = timelineConfigVideoNode["BgColor"].asString(); - if(!timelineConfigVideoNode["Fps"].isNull()) - jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.fps = timelineConfigVideoNode["Fps"].asString(); - if(!timelineConfigVideoNode["RenderRatio"].isNull()) - jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.renderRatio = timelineConfigVideoNode["RenderRatio"].asString(); - if(!timelineConfigVideoNode["ReclosePrec"].isNull()) - jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.reclosePrec = timelineConfigVideoNode["ReclosePrec"].asString(); - if(!timelineConfigVideoNode["IsGpuData"].isNull()) - jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.isGpuData = timelineConfigVideoNode["IsGpuData"].asString(); - if(!timelineConfigVideoNode["IsOneTrackData"].isNull()) - jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigVideo.isOneTrackData = timelineConfigVideoNode["IsOneTrackData"].asString(); - auto timelineConfigAudioNode = timelineConfigNode["TimelineConfigAudio"]; - if(!timelineConfigAudioNode["Samplerate"].isNull()) - jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.samplerate = timelineConfigAudioNode["Samplerate"].asString(); - if(!timelineConfigAudioNode["ChannelLayout"].isNull()) - jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.channelLayout = timelineConfigAudioNode["ChannelLayout"].asString(); - if(!timelineConfigAudioNode["Channels"].isNull()) - jobResultListObject.job.editingConfig.editing.timeline.timelineConfig.timelineConfigAudio.channels = timelineConfigAudioNode["Channels"].asString(); + if(!formatNode["FormatName"].isNull()) + jobResultListObject.job.editingConfig.properties.format.formatName = formatNode["FormatName"].asString(); auto mNSMessageResultNode = jobNode["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) jobResultListObject.job.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); diff --git a/mts/src/model/SubmitFacerecogJobRequest.cc b/mts/src/model/SubmitFacerecogJobRequest.cc index 8ebb22056..a1d515bc7 100644 --- a/mts/src/model/SubmitFacerecogJobRequest.cc +++ b/mts/src/model/SubmitFacerecogJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitFacerecogJobRequest; - -SubmitFacerecogJobRequest::SubmitFacerecogJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitFacerecogJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitFacerecogJobRequest::~SubmitFacerecogJobRequest() -{} - -long SubmitFacerecogJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitFacerecogJobRequest; + +SubmitFacerecogJobRequest::SubmitFacerecogJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitFacerecogJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitFacerecogJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitFacerecogJobRequest::~SubmitFacerecogJobRequest() {} + +long SubmitFacerecogJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitFacerecogJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitFacerecogJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitFacerecogJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitFacerecogJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitFacerecogJobRequest::getUserData()const -{ - return userData_; +void SubmitFacerecogJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitFacerecogJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitFacerecogJobRequest::getUserData() const { + return userData_; } -std::string SubmitFacerecogJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitFacerecogJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitFacerecogJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitFacerecogJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitFacerecogJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitFacerecogJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitFacerecogJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitFacerecogJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitFacerecogJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitFacerecogJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitFacerecogJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitFacerecogJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitFacerecogJobRequest::getFacerecogConfig()const -{ - return facerecogConfig_; +void SubmitFacerecogJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitFacerecogJobRequest::setFacerecogConfig(const std::string& facerecogConfig) -{ - facerecogConfig_ = facerecogConfig; - setParameter("FacerecogConfig", facerecogConfig); +std::string SubmitFacerecogJobRequest::getFacerecogConfig() const { + return facerecogConfig_; } -std::string SubmitFacerecogJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitFacerecogJobRequest::setFacerecogConfig(const std::string &facerecogConfig) { + facerecogConfig_ = facerecogConfig; + setParameter(std::string("FacerecogConfig"), facerecogConfig); } -void SubmitFacerecogJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitFacerecogJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitFacerecogJobRequest::getInput()const -{ - return input_; +void SubmitFacerecogJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitFacerecogJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitFacerecogJobRequest::getInput() const { + return input_; +} + +void SubmitFacerecogJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitFpCompareJobRequest.cc b/mts/src/model/SubmitFpCompareJobRequest.cc index c8f7acce7..f49edc1bc 100644 --- a/mts/src/model/SubmitFpCompareJobRequest.cc +++ b/mts/src/model/SubmitFpCompareJobRequest.cc @@ -1,150 +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::Mts::Model::SubmitFpCompareJobRequest; - -SubmitFpCompareJobRequest::SubmitFpCompareJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitFpCompareJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitFpCompareJobRequest::~SubmitFpCompareJobRequest() -{} - -long SubmitFpCompareJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitFpCompareJobRequest; + +SubmitFpCompareJobRequest::SubmitFpCompareJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitFpCompareJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitFpCompareJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitFpCompareJobRequest::~SubmitFpCompareJobRequest() {} + +long SubmitFpCompareJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitFpCompareJobRequest::getFpDBId()const -{ - return fpDBId_; +void SubmitFpCompareJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitFpCompareJobRequest::setFpDBId(const std::string& fpDBId) -{ - fpDBId_ = fpDBId; - setParameter("FpDBId", fpDBId); +std::string SubmitFpCompareJobRequest::getFpDBId() const { + return fpDBId_; } -std::string SubmitFpCompareJobRequest::getMasterMedia()const -{ - return masterMedia_; +void SubmitFpCompareJobRequest::setFpDBId(const std::string &fpDBId) { + fpDBId_ = fpDBId; + setParameter(std::string("FpDBId"), fpDBId); } -void SubmitFpCompareJobRequest::setMasterMedia(const std::string& masterMedia) -{ - masterMedia_ = masterMedia; - setParameter("MasterMedia", masterMedia); +std::string SubmitFpCompareJobRequest::getMasterMedia() const { + return masterMedia_; } -std::string SubmitFpCompareJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitFpCompareJobRequest::setMasterMedia(const std::string &masterMedia) { + masterMedia_ = masterMedia; + setParameter(std::string("MasterMedia"), masterMedia); } -void SubmitFpCompareJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitFpCompareJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitFpCompareJobRequest::getUserData()const -{ - return userData_; +void SubmitFpCompareJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitFpCompareJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitFpCompareJobRequest::getUserData() const { + return userData_; } -std::string SubmitFpCompareJobRequest::getQueryMedia()const -{ - return queryMedia_; +void SubmitFpCompareJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitFpCompareJobRequest::setQueryMedia(const std::string& queryMedia) -{ - queryMedia_ = queryMedia; - setParameter("QueryMedia", queryMedia); +std::string SubmitFpCompareJobRequest::getQueryMedia() const { + return queryMedia_; } -std::string SubmitFpCompareJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitFpCompareJobRequest::setQueryMedia(const std::string &queryMedia) { + queryMedia_ = queryMedia; + setParameter(std::string("QueryMedia"), queryMedia); } -void SubmitFpCompareJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitFpCompareJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitFpCompareJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitFpCompareJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitFpCompareJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitFpCompareJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitFpCompareJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitFpCompareJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitFpCompareJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitFpCompareJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitFpCompareJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitFpCompareJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitFpCompareJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitFpCompareJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitFpCompareJobRequest::getMatchedFrameStorage()const -{ - return matchedFrameStorage_; +void SubmitFpCompareJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitFpCompareJobRequest::setMatchedFrameStorage(const std::string& matchedFrameStorage) -{ - matchedFrameStorage_ = matchedFrameStorage; - setParameter("MatchedFrameStorage", matchedFrameStorage); +std::string SubmitFpCompareJobRequest::getMatchedFrameStorage() const { + return matchedFrameStorage_; +} + +void SubmitFpCompareJobRequest::setMatchedFrameStorage(const std::string &matchedFrameStorage) { + matchedFrameStorage_ = matchedFrameStorage; + setParameter(std::string("MatchedFrameStorage"), matchedFrameStorage); } diff --git a/mts/src/model/SubmitFpDBDeleteJobRequest.cc b/mts/src/model/SubmitFpDBDeleteJobRequest.cc new file mode 100644 index 000000000..17f8c404a --- /dev/null +++ b/mts/src/model/SubmitFpDBDeleteJobRequest.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 + +using AlibabaCloud::Mts::Model::SubmitFpDBDeleteJobRequest; + +SubmitFpDBDeleteJobRequest::SubmitFpDBDeleteJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitFpDBDeleteJob") { + setMethod(HttpRequest::Method::Post); +} + +SubmitFpDBDeleteJobRequest::~SubmitFpDBDeleteJobRequest() {} + +long SubmitFpDBDeleteJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SubmitFpDBDeleteJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SubmitFpDBDeleteJobRequest::getFpDBId() const { + return fpDBId_; +} + +void SubmitFpDBDeleteJobRequest::setFpDBId(const std::string &fpDBId) { + fpDBId_ = fpDBId; + setParameter(std::string("FpDBId"), fpDBId); +} + +std::string SubmitFpDBDeleteJobRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SubmitFpDBDeleteJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string SubmitFpDBDeleteJobRequest::getUserData() const { + return userData_; +} + +void SubmitFpDBDeleteJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string SubmitFpDBDeleteJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SubmitFpDBDeleteJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SubmitFpDBDeleteJobRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SubmitFpDBDeleteJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SubmitFpDBDeleteJobRequest::getOwnerId() const { + return ownerId_; +} + +void SubmitFpDBDeleteJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SubmitFpDBDeleteJobRequest::getPipelineId() const { + return pipelineId_; +} + +void SubmitFpDBDeleteJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); +} + +std::string SubmitFpDBDeleteJobRequest::getDelType() const { + return delType_; +} + +void SubmitFpDBDeleteJobRequest::setDelType(const std::string &delType) { + delType_ = delType; + setParameter(std::string("DelType"), delType); +} + diff --git a/mts/src/model/SubmitFpDBDeleteJobResult.cc b/mts/src/model/SubmitFpDBDeleteJobResult.cc new file mode 100644 index 000000000..944e9e2a0 --- /dev/null +++ b/mts/src/model/SubmitFpDBDeleteJobResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +SubmitFpDBDeleteJobResult::SubmitFpDBDeleteJobResult() : + ServiceResult() +{} + +SubmitFpDBDeleteJobResult::SubmitFpDBDeleteJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitFpDBDeleteJobResult::~SubmitFpDBDeleteJobResult() +{} + +void SubmitFpDBDeleteJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string SubmitFpDBDeleteJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/mts/src/model/SubmitFpFileDeleteJobRequest.cc b/mts/src/model/SubmitFpFileDeleteJobRequest.cc new file mode 100644 index 000000000..596838ac9 --- /dev/null +++ b/mts/src/model/SubmitFpFileDeleteJobRequest.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 + +using AlibabaCloud::Mts::Model::SubmitFpFileDeleteJobRequest; + +SubmitFpFileDeleteJobRequest::SubmitFpFileDeleteJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitFpFileDeleteJob") { + setMethod(HttpRequest::Method::Post); +} + +SubmitFpFileDeleteJobRequest::~SubmitFpFileDeleteJobRequest() {} + +long SubmitFpFileDeleteJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SubmitFpFileDeleteJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SubmitFpFileDeleteJobRequest::getFpDBId() const { + return fpDBId_; +} + +void SubmitFpFileDeleteJobRequest::setFpDBId(const std::string &fpDBId) { + fpDBId_ = fpDBId; + setParameter(std::string("FpDBId"), fpDBId); +} + +std::string SubmitFpFileDeleteJobRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SubmitFpFileDeleteJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string SubmitFpFileDeleteJobRequest::getUserData() const { + return userData_; +} + +void SubmitFpFileDeleteJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string SubmitFpFileDeleteJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SubmitFpFileDeleteJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string SubmitFpFileDeleteJobRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void SubmitFpFileDeleteJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long SubmitFpFileDeleteJobRequest::getOwnerId() const { + return ownerId_; +} + +void SubmitFpFileDeleteJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SubmitFpFileDeleteJobRequest::getPipelineId() const { + return pipelineId_; +} + +void SubmitFpFileDeleteJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); +} + +std::string SubmitFpFileDeleteJobRequest::getFileIds() const { + return fileIds_; +} + +void SubmitFpFileDeleteJobRequest::setFileIds(const std::string &fileIds) { + fileIds_ = fileIds; + setParameter(std::string("FileIds"), fileIds); +} + diff --git a/mts/src/model/SubmitFpFileDeleteJobResult.cc b/mts/src/model/SubmitFpFileDeleteJobResult.cc new file mode 100644 index 000000000..5ee4ef700 --- /dev/null +++ b/mts/src/model/SubmitFpFileDeleteJobResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +SubmitFpFileDeleteJobResult::SubmitFpFileDeleteJobResult() : + ServiceResult() +{} + +SubmitFpFileDeleteJobResult::SubmitFpFileDeleteJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitFpFileDeleteJobResult::~SubmitFpFileDeleteJobResult() +{} + +void SubmitFpFileDeleteJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string SubmitFpFileDeleteJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/mts/src/model/SubmitFpShotJobRequest.cc b/mts/src/model/SubmitFpShotJobRequest.cc index 710bae97c..57491186d 100644 --- a/mts/src/model/SubmitFpShotJobRequest.cc +++ b/mts/src/model/SubmitFpShotJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitFpShotJobRequest; - -SubmitFpShotJobRequest::SubmitFpShotJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitFpShotJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitFpShotJobRequest::~SubmitFpShotJobRequest() -{} - -long SubmitFpShotJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitFpShotJobRequest; + +SubmitFpShotJobRequest::SubmitFpShotJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitFpShotJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitFpShotJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitFpShotJobRequest::~SubmitFpShotJobRequest() {} + +long SubmitFpShotJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitFpShotJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitFpShotJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitFpShotJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitFpShotJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitFpShotJobRequest::getUserData()const -{ - return userData_; +void SubmitFpShotJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitFpShotJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitFpShotJobRequest::getUserData() const { + return userData_; } -std::string SubmitFpShotJobRequest::getFpShotConfig()const -{ - return fpShotConfig_; +void SubmitFpShotJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitFpShotJobRequest::setFpShotConfig(const std::string& fpShotConfig) -{ - fpShotConfig_ = fpShotConfig; - setParameter("FpShotConfig", fpShotConfig); +std::string SubmitFpShotJobRequest::getFpShotConfig() const { + return fpShotConfig_; } -std::string SubmitFpShotJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitFpShotJobRequest::setFpShotConfig(const std::string &fpShotConfig) { + fpShotConfig_ = fpShotConfig; + setParameter(std::string("FpShotConfig"), fpShotConfig); } -void SubmitFpShotJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitFpShotJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitFpShotJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitFpShotJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitFpShotJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitFpShotJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitFpShotJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitFpShotJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitFpShotJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitFpShotJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitFpShotJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitFpShotJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitFpShotJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitFpShotJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitFpShotJobRequest::getInput()const -{ - return input_; +void SubmitFpShotJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitFpShotJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitFpShotJobRequest::getInput() const { + return input_; +} + +void SubmitFpShotJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitIProductionJobRequest.cc b/mts/src/model/SubmitIProductionJobRequest.cc index 7b413bc36..a6823a151 100644 --- a/mts/src/model/SubmitIProductionJobRequest.cc +++ b/mts/src/model/SubmitIProductionJobRequest.cc @@ -1,161 +1,153 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Mts::Model::SubmitIProductionJobRequest; - -SubmitIProductionJobRequest::SubmitIProductionJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitIProductionJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitIProductionJobRequest::~SubmitIProductionJobRequest() -{} - -long SubmitIProductionJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitIProductionJobRequest; + +SubmitIProductionJobRequest::SubmitIProductionJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitIProductionJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitIProductionJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitIProductionJobRequest::~SubmitIProductionJobRequest() {} + +long SubmitIProductionJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitIProductionJobRequest::getJobParams()const -{ - return jobParams_; +void SubmitIProductionJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitIProductionJobRequest::setJobParams(const std::string& jobParams) -{ - jobParams_ = jobParams; - setParameter("JobParams", jobParams); +std::string SubmitIProductionJobRequest::getJobParams() const { + return jobParams_; } -std::string SubmitIProductionJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitIProductionJobRequest::setJobParams(const std::string &jobParams) { + jobParams_ = jobParams; + setParameter(std::string("JobParams"), jobParams); } -void SubmitIProductionJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitIProductionJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitIProductionJobRequest::getUserData()const -{ - return userData_; +void SubmitIProductionJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitIProductionJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitIProductionJobRequest::getOutput() const { + return output_; } -std::string SubmitIProductionJobRequest::getFunctionName()const -{ - return functionName_; +void SubmitIProductionJobRequest::setOutput(const std::string &output) { + output_ = output; + setParameter(std::string("Output"), output); } -void SubmitIProductionJobRequest::setFunctionName(const std::string& functionName) -{ - functionName_ = functionName; - setParameter("FunctionName", functionName); +std::string SubmitIProductionJobRequest::getUserData() const { + return userData_; } -std::string SubmitIProductionJobRequest::getNotifyUrl()const -{ - return notifyUrl_; +void SubmitIProductionJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitIProductionJobRequest::setNotifyUrl(const std::string& notifyUrl) -{ - notifyUrl_ = notifyUrl; - setParameter("NotifyUrl", notifyUrl); +std::string SubmitIProductionJobRequest::getFunctionName() const { + return functionName_; } -std::string SubmitIProductionJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitIProductionJobRequest::setFunctionName(const std::string &functionName) { + functionName_ = functionName; + setParameter(std::string("FunctionName"), functionName); } -void SubmitIProductionJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitIProductionJobRequest::getNotifyUrl() const { + return notifyUrl_; } -std::string SubmitIProductionJobRequest::getModelId()const -{ - return modelId_; +void SubmitIProductionJobRequest::setNotifyUrl(const std::string ¬ifyUrl) { + notifyUrl_ = notifyUrl; + setParameter(std::string("NotifyUrl"), notifyUrl); } -void SubmitIProductionJobRequest::setModelId(const std::string& modelId) -{ - modelId_ = modelId; - setParameter("ModelId", modelId); +std::string SubmitIProductionJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitIProductionJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitIProductionJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitIProductionJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitIProductionJobRequest::getModelId() const { + return modelId_; } -long SubmitIProductionJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitIProductionJobRequest::setModelId(const std::string &modelId) { + modelId_ = modelId; + setParameter(std::string("ModelId"), modelId); } -void SubmitIProductionJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +std::string SubmitIProductionJobRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string SubmitIProductionJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitIProductionJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitIProductionJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +long SubmitIProductionJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitIProductionJobRequest::getScheduleParams()const -{ - return scheduleParams_; +void SubmitIProductionJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitIProductionJobRequest::setScheduleParams(const std::string& scheduleParams) -{ - scheduleParams_ = scheduleParams; - setParameter("ScheduleParams", scheduleParams); +std::string SubmitIProductionJobRequest::getPipelineId() const { + return pipelineId_; +} + +void SubmitIProductionJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); +} + +std::string SubmitIProductionJobRequest::getInput() const { + return input_; +} + +void SubmitIProductionJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); +} + +std::string SubmitIProductionJobRequest::getScheduleParams() const { + return scheduleParams_; +} + +void SubmitIProductionJobRequest::setScheduleParams(const std::string &scheduleParams) { + scheduleParams_ = scheduleParams; + setParameter(std::string("ScheduleParams"), scheduleParams); } diff --git a/mts/src/model/SubmitIProductionJobResult.cc b/mts/src/model/SubmitIProductionJobResult.cc index 2d2d840ee..dda1bf449 100644 --- a/mts/src/model/SubmitIProductionJobResult.cc +++ b/mts/src/model/SubmitIProductionJobResult.cc @@ -41,6 +41,8 @@ void SubmitIProductionJobResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["JobId"].isNull()) jobId_ = value["JobId"].asString(); + if(!value["Result"].isNull()) + result_ = value["Result"].asString(); } @@ -49,3 +51,8 @@ std::string SubmitIProductionJobResult::getJobId()const return jobId_; } +std::string SubmitIProductionJobResult::getResult()const +{ + return result_; +} + diff --git a/mts/src/model/SubmitImageQualityJobRequest.cc b/mts/src/model/SubmitImageQualityJobRequest.cc index 27f45158e..0a30a9392 100644 --- a/mts/src/model/SubmitImageQualityJobRequest.cc +++ b/mts/src/model/SubmitImageQualityJobRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::SubmitImageQualityJobRequest; - -SubmitImageQualityJobRequest::SubmitImageQualityJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitImageQualityJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitImageQualityJobRequest::~SubmitImageQualityJobRequest() -{} - -long SubmitImageQualityJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitImageQualityJobRequest; + +SubmitImageQualityJobRequest::SubmitImageQualityJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitImageQualityJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitImageQualityJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitImageQualityJobRequest::~SubmitImageQualityJobRequest() {} + +long SubmitImageQualityJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitImageQualityJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitImageQualityJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitImageQualityJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitImageQualityJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitImageQualityJobRequest::getUserData()const -{ - return userData_; +void SubmitImageQualityJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitImageQualityJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitImageQualityJobRequest::getUserData() const { + return userData_; } -std::string SubmitImageQualityJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitImageQualityJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitImageQualityJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitImageQualityJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitImageQualityJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitImageQualityJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitImageQualityJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitImageQualityJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitImageQualityJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitImageQualityJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitImageQualityJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitImageQualityJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitImageQualityJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitImageQualityJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitImageQualityJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitImageQualityJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitImageQualityJobRequest::getInput()const -{ - return input_; +void SubmitImageQualityJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitImageQualityJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitImageQualityJobRequest::getInput() const { + return input_; +} + +void SubmitImageQualityJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitImageQualityJobResult.cc b/mts/src/model/SubmitImageQualityJobResult.cc index af640d18e..a8b97d1a2 100644 --- a/mts/src/model/SubmitImageQualityJobResult.cc +++ b/mts/src/model/SubmitImageQualityJobResult.cc @@ -40,25 +40,16 @@ void SubmitImageQualityJobResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto imageQualityJobNode = value["ImageQualityJob"]; + if(!imageQualityJobNode["CreationTime"].isNull()) + imageQualityJob_.creationTime = imageQualityJobNode["CreationTime"].asString(); + if(!imageQualityJobNode["State"].isNull()) + imageQualityJob_.state = imageQualityJobNode["State"].asString(); if(!imageQualityJobNode["JobId"].isNull()) imageQualityJob_.jobId = imageQualityJobNode["JobId"].asString(); if(!imageQualityJobNode["UserData"].isNull()) imageQualityJob_.userData = imageQualityJobNode["UserData"].asString(); if(!imageQualityJobNode["PipelineId"].isNull()) imageQualityJob_.pipelineId = imageQualityJobNode["PipelineId"].asString(); - if(!imageQualityJobNode["State"].isNull()) - imageQualityJob_.state = imageQualityJobNode["State"].asString(); - if(!imageQualityJobNode["CreationTime"].isNull()) - imageQualityJob_.creationTime = imageQualityJobNode["CreationTime"].asString(); - auto inputNode = imageQualityJobNode["Input"]; - if(!inputNode["Bucket"].isNull()) - imageQualityJob_.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - imageQualityJob_.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - imageQualityJob_.input.object = inputNode["Object"].asString(); - if(!inputNode["Url"].isNull()) - imageQualityJob_.input.url = inputNode["Url"].asString(); auto resultNode = imageQualityJobNode["Result"]; if(!resultNode["Code"].isNull()) imageQualityJob_.result.code = resultNode["Code"].asString(); @@ -66,6 +57,15 @@ void SubmitImageQualityJobResult::parse(const std::string &payload) imageQualityJob_.result.message = resultNode["Message"].asString(); if(!resultNode["Score"].isNull()) imageQualityJob_.result.score = resultNode["Score"].asString(); + auto inputNode = imageQualityJobNode["Input"]; + if(!inputNode["Url"].isNull()) + imageQualityJob_.input.url = inputNode["Url"].asString(); + if(!inputNode["Object"].isNull()) + imageQualityJob_.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + imageQualityJob_.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + imageQualityJob_.input.bucket = inputNode["Bucket"].asString(); } diff --git a/mts/src/model/SubmitImageSearchJobRequest.cc b/mts/src/model/SubmitImageSearchJobRequest.cc index 888569dc8..6d8b510e9 100644 --- a/mts/src/model/SubmitImageSearchJobRequest.cc +++ b/mts/src/model/SubmitImageSearchJobRequest.cc @@ -1,150 +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::Mts::Model::SubmitImageSearchJobRequest; - -SubmitImageSearchJobRequest::SubmitImageSearchJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitImageSearchJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitImageSearchJobRequest::~SubmitImageSearchJobRequest() -{} - -long SubmitImageSearchJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitImageSearchJobRequest; + +SubmitImageSearchJobRequest::SubmitImageSearchJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitImageSearchJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitImageSearchJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitImageSearchJobRequest::~SubmitImageSearchJobRequest() {} + +long SubmitImageSearchJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitImageSearchJobRequest::getFpDBId()const -{ - return fpDBId_; +void SubmitImageSearchJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitImageSearchJobRequest::setFpDBId(const std::string& fpDBId) -{ - fpDBId_ = fpDBId; - setParameter("FpDBId", fpDBId); +std::string SubmitImageSearchJobRequest::getFpDBId() const { + return fpDBId_; } -std::string SubmitImageSearchJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitImageSearchJobRequest::setFpDBId(const std::string &fpDBId) { + fpDBId_ = fpDBId; + setParameter(std::string("FpDBId"), fpDBId); } -void SubmitImageSearchJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitImageSearchJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitImageSearchJobRequest::getUserData()const -{ - return userData_; +void SubmitImageSearchJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitImageSearchJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitImageSearchJobRequest::getUserData() const { + return userData_; } -std::string SubmitImageSearchJobRequest::getInputVideo()const -{ - return inputVideo_; +void SubmitImageSearchJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitImageSearchJobRequest::setInputVideo(const std::string& inputVideo) -{ - inputVideo_ = inputVideo; - setParameter("InputVideo", inputVideo); +std::string SubmitImageSearchJobRequest::getInputVideo() const { + return inputVideo_; } -std::string SubmitImageSearchJobRequest::getInputImage()const -{ - return inputImage_; +void SubmitImageSearchJobRequest::setInputVideo(const std::string &inputVideo) { + inputVideo_ = inputVideo; + setParameter(std::string("InputVideo"), inputVideo); } -void SubmitImageSearchJobRequest::setInputImage(const std::string& inputImage) -{ - inputImage_ = inputImage; - setParameter("InputImage", inputImage); +std::string SubmitImageSearchJobRequest::getInputImage() const { + return inputImage_; } -std::string SubmitImageSearchJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitImageSearchJobRequest::setInputImage(const std::string &inputImage) { + inputImage_ = inputImage; + setParameter(std::string("InputImage"), inputImage); } -void SubmitImageSearchJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitImageSearchJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitImageSearchJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitImageSearchJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitImageSearchJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitImageSearchJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitImageSearchJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitImageSearchJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitImageSearchJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitImageSearchJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitImageSearchJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitImageSearchJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitImageSearchJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitImageSearchJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitImageSearchJobRequest::getConfig()const -{ - return config_; +void SubmitImageSearchJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitImageSearchJobRequest::setConfig(const std::string& config) -{ - config_ = config; - setParameter("Config", config); +std::string SubmitImageSearchJobRequest::getConfig() const { + return config_; +} + +void SubmitImageSearchJobRequest::setConfig(const std::string &config) { + config_ = config; + setParameter(std::string("Config"), config); } diff --git a/mts/src/model/SubmitInferenceJobRequest.cc b/mts/src/model/SubmitInferenceJobRequest.cc new file mode 100644 index 000000000..f991818c9 --- /dev/null +++ b/mts/src/model/SubmitInferenceJobRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitInferenceJobRequest; + +SubmitInferenceJobRequest::SubmitInferenceJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitInferenceJob") { + setMethod(HttpRequest::Method::Post); +} + +SubmitInferenceJobRequest::~SubmitInferenceJobRequest() {} + +std::string SubmitInferenceJobRequest::getInput() const { + return input_; +} + +void SubmitInferenceJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); +} + +std::string SubmitInferenceJobRequest::getModelType() const { + return modelType_; +} + +void SubmitInferenceJobRequest::setModelType(const std::string &modelType) { + modelType_ = modelType; + setParameter(std::string("ModelType"), modelType); +} + +std::string SubmitInferenceJobRequest::getServerName() const { + return serverName_; +} + +void SubmitInferenceJobRequest::setServerName(const std::string &serverName) { + serverName_ = serverName; + setParameter(std::string("ServerName"), serverName); +} + diff --git a/mts/src/model/SubmitInferenceJobResult.cc b/mts/src/model/SubmitInferenceJobResult.cc new file mode 100644 index 000000000..a237cb44b --- /dev/null +++ b/mts/src/model/SubmitInferenceJobResult.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::Mts; +using namespace AlibabaCloud::Mts::Model; + +SubmitInferenceJobResult::SubmitInferenceJobResult() : + ServiceResult() +{} + +SubmitInferenceJobResult::SubmitInferenceJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitInferenceJobResult::~SubmitInferenceJobResult() +{} + +void SubmitInferenceJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["TestId"].isNull()) + testId_ = value["TestId"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string SubmitInferenceJobResult::getTestId()const +{ + return testId_; +} + +std::string SubmitInferenceJobResult::getMessage()const +{ + return message_; +} + +std::string SubmitInferenceJobResult::getCode()const +{ + return code_; +} + +std::string SubmitInferenceJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/mts/src/model/SubmitInnerJobRequest.cc b/mts/src/model/SubmitInnerJobRequest.cc new file mode 100644 index 000000000..d7c787ac1 --- /dev/null +++ b/mts/src/model/SubmitInnerJobRequest.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 + +using AlibabaCloud::Mts::Model::SubmitInnerJobRequest; + +SubmitInnerJobRequest::SubmitInnerJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitInnerJob") { + setMethod(HttpRequest::Method::Post); +} + +SubmitInnerJobRequest::~SubmitInnerJobRequest() {} + +long SubmitInnerJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void SubmitInnerJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string SubmitInnerJobRequest::getVideo() const { + return video_; +} + +void SubmitInnerJobRequest::setVideo(const std::string &video) { + video_ = video; + setParameter(std::string("Video"), video); +} + +std::string SubmitInnerJobRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void SubmitInnerJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +long SubmitInnerJobRequest::getUid() const { + return uid_; +} + +void SubmitInnerJobRequest::setUid(long uid) { + uid_ = uid; + setParameter(std::string("Uid"), std::to_string(uid)); +} + +std::string SubmitInnerJobRequest::getImages() const { + return images_; +} + +void SubmitInnerJobRequest::setImages(const std::string &images) { + images_ = images; + setParameter(std::string("Images"), images); +} + +std::string SubmitInnerJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void SubmitInnerJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +long SubmitInnerJobRequest::getOwnerId() const { + return ownerId_; +} + +void SubmitInnerJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string SubmitInnerJobRequest::getPipelineId() const { + return pipelineId_; +} + +void SubmitInnerJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); +} + +std::string SubmitInnerJobRequest::getConfig() const { + return config_; +} + +void SubmitInnerJobRequest::setConfig(const std::string &config) { + config_ = config; + setParameter(std::string("Config"), config); +} + diff --git a/mts/src/model/SubmitInnerJobResult.cc b/mts/src/model/SubmitInnerJobResult.cc new file mode 100644 index 000000000..d0279e5e3 --- /dev/null +++ b/mts/src/model/SubmitInnerJobResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +SubmitInnerJobResult::SubmitInnerJobResult() : + ServiceResult() +{} + +SubmitInnerJobResult::SubmitInnerJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitInnerJobResult::~SubmitInnerJobResult() +{} + +void SubmitInnerJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string SubmitInnerJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/mts/src/model/SubmitJobsRequest.cc b/mts/src/model/SubmitJobsRequest.cc index 5915a1e20..233fabb30 100644 --- a/mts/src/model/SubmitJobsRequest.cc +++ b/mts/src/model/SubmitJobsRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::SubmitJobsRequest; - -SubmitJobsRequest::SubmitJobsRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitJobsRequest::~SubmitJobsRequest() -{} - -std::string SubmitJobsRequest::getOutputs()const -{ - return outputs_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitJobsRequest; + +SubmitJobsRequest::SubmitJobsRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitJobs") { + setMethod(HttpRequest::Method::Post); } -void SubmitJobsRequest::setOutputs(const std::string& outputs) -{ - outputs_ = outputs; - setParameter("Outputs", outputs); +SubmitJobsRequest::~SubmitJobsRequest() {} + +std::string SubmitJobsRequest::getOutputs() const { + return outputs_; } -long SubmitJobsRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void SubmitJobsRequest::setOutputs(const std::string &outputs) { + outputs_ = outputs; + setParameter(std::string("Outputs"), outputs); } -void SubmitJobsRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long SubmitJobsRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitJobsRequest::getOutputLocation()const -{ - return outputLocation_; +void SubmitJobsRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitJobsRequest::setOutputLocation(const std::string& outputLocation) -{ - outputLocation_ = outputLocation; - setParameter("OutputLocation", outputLocation); +std::string SubmitJobsRequest::getOutputLocation() const { + return outputLocation_; } -std::string SubmitJobsRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitJobsRequest::setOutputLocation(const std::string &outputLocation) { + outputLocation_ = outputLocation; + setParameter(std::string("OutputLocation"), outputLocation); } -void SubmitJobsRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitJobsRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitJobsRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitJobsRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitJobsRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitJobsRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitJobsRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitJobsRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitJobsRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitJobsRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitJobsRequest::getOwnerId()const -{ - return ownerId_; +void SubmitJobsRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitJobsRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitJobsRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitJobsRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitJobsRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitJobsRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitJobsRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitJobsRequest::getInput()const -{ - return input_; +void SubmitJobsRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitJobsRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitJobsRequest::getInput() const { + return input_; } -std::string SubmitJobsRequest::getOutputBucket()const -{ - return outputBucket_; +void SubmitJobsRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } -void SubmitJobsRequest::setOutputBucket(const std::string& outputBucket) -{ - outputBucket_ = outputBucket; - setParameter("OutputBucket", outputBucket); +std::string SubmitJobsRequest::getOutputBucket() const { + return outputBucket_; +} + +void SubmitJobsRequest::setOutputBucket(const std::string &outputBucket) { + outputBucket_ = outputBucket; + setParameter(std::string("OutputBucket"), outputBucket); } diff --git a/mts/src/model/SubmitJobsResult.cc b/mts/src/model/SubmitJobsResult.cc index bebbe047a..e720b9a92 100644 --- a/mts/src/model/SubmitJobsResult.cc +++ b/mts/src/model/SubmitJobsResult.cc @@ -50,89 +50,119 @@ void SubmitJobsResult::parse(const std::string &payload) if(!valueJobResultListJobResult["Message"].isNull()) jobResultListObject.message = valueJobResultListJobResult["Message"].asString(); auto jobNode = value["Job"]; - if(!jobNode["JobId"].isNull()) - jobResultListObject.job.jobId = jobNode["JobId"].asString(); + if(!jobNode["CreationTime"].isNull()) + jobResultListObject.job.creationTime = jobNode["CreationTime"].asString(); + if(!jobNode["Percent"].isNull()) + jobResultListObject.job.percent = std::stol(jobNode["Percent"].asString()); + if(!jobNode["FinishTime"].isNull()) + jobResultListObject.job.finishTime = jobNode["FinishTime"].asString(); if(!jobNode["State"].isNull()) jobResultListObject.job.state = jobNode["State"].asString(); + if(!jobNode["JobId"].isNull()) + jobResultListObject.job.jobId = jobNode["JobId"].asString(); if(!jobNode["Code"].isNull()) jobResultListObject.job.code = jobNode["Code"].asString(); if(!jobNode["Message"].isNull()) jobResultListObject.job.message = jobNode["Message"].asString(); - if(!jobNode["Percent"].isNull()) - jobResultListObject.job.percent = std::stol(jobNode["Percent"].asString()); if(!jobNode["PipelineId"].isNull()) jobResultListObject.job.pipelineId = jobNode["PipelineId"].asString(); - if(!jobNode["CreationTime"].isNull()) - jobResultListObject.job.creationTime = jobNode["CreationTime"].asString(); - if(!jobNode["FinishTime"].isNull()) - jobResultListObject.job.finishTime = jobNode["FinishTime"].asString(); - auto inputNode = jobNode["Input"]; - if(!inputNode["Bucket"].isNull()) - jobResultListObject.job.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - jobResultListObject.job.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - jobResultListObject.job.input.object = inputNode["Object"].asString(); auto outputNode = jobNode["Output"]; - if(!outputNode["TemplateId"].isNull()) - jobResultListObject.job.output.templateId = outputNode["TemplateId"].asString(); - if(!outputNode["UserData"].isNull()) - jobResultListObject.job.output.userData = outputNode["UserData"].asString(); - if(!outputNode["Rotate"].isNull()) - jobResultListObject.job.output.rotate = outputNode["Rotate"].asString(); - if(!outputNode["VideoStreamMap"].isNull()) - jobResultListObject.job.output.videoStreamMap = outputNode["VideoStreamMap"].asString(); - if(!outputNode["AudioStreamMap"].isNull()) - jobResultListObject.job.output.audioStreamMap = outputNode["AudioStreamMap"].asString(); + if(!outputNode["WaterMarkConfigUrl"].isNull()) + jobResultListObject.job.output.waterMarkConfigUrl = outputNode["WaterMarkConfigUrl"].asString(); if(!outputNode["DeWatermark"].isNull()) jobResultListObject.job.output.deWatermark = outputNode["DeWatermark"].asString(); if(!outputNode["Priority"].isNull()) jobResultListObject.job.output.priority = outputNode["Priority"].asString(); - if(!outputNode["WaterMarkConfigUrl"].isNull()) - jobResultListObject.job.output.waterMarkConfigUrl = outputNode["WaterMarkConfigUrl"].asString(); + if(!outputNode["AudioStreamMap"].isNull()) + jobResultListObject.job.output.audioStreamMap = outputNode["AudioStreamMap"].asString(); + if(!outputNode["UserData"].isNull()) + jobResultListObject.job.output.userData = outputNode["UserData"].asString(); + if(!outputNode["VideoStreamMap"].isNull()) + jobResultListObject.job.output.videoStreamMap = outputNode["VideoStreamMap"].asString(); + if(!outputNode["Rotate"].isNull()) + jobResultListObject.job.output.rotate = outputNode["Rotate"].asString(); if(!outputNode["MergeConfigUrl"].isNull()) jobResultListObject.job.output.mergeConfigUrl = outputNode["MergeConfigUrl"].asString(); + if(!outputNode["TemplateId"].isNull()) + jobResultListObject.job.output.templateId = outputNode["TemplateId"].asString(); auto allWaterMarkListNode = outputNode["WaterMarkList"]["WaterMark"]; for (auto outputNodeWaterMarkListWaterMark : allWaterMarkListNode) { JobResult::Job::Output::WaterMark waterMarkObject; - if(!outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) - waterMarkObject.waterMarkTemplateId = outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); + if(!outputNodeWaterMarkListWaterMark["Type"].isNull()) + waterMarkObject.type = outputNodeWaterMarkListWaterMark["Type"].asString(); + if(!outputNodeWaterMarkListWaterMark["ReferPos"].isNull()) + waterMarkObject.referPos = outputNodeWaterMarkListWaterMark["ReferPos"].asString(); + if(!outputNodeWaterMarkListWaterMark["Dx"].isNull()) + waterMarkObject.dx = outputNodeWaterMarkListWaterMark["Dx"].asString(); if(!outputNodeWaterMarkListWaterMark["Width"].isNull()) waterMarkObject.width = outputNodeWaterMarkListWaterMark["Width"].asString(); if(!outputNodeWaterMarkListWaterMark["Height"].isNull()) waterMarkObject.height = outputNodeWaterMarkListWaterMark["Height"].asString(); - if(!outputNodeWaterMarkListWaterMark["Dx"].isNull()) - waterMarkObject.dx = outputNodeWaterMarkListWaterMark["Dx"].asString(); + if(!outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].isNull()) + waterMarkObject.waterMarkTemplateId = outputNodeWaterMarkListWaterMark["WaterMarkTemplateId"].asString(); if(!outputNodeWaterMarkListWaterMark["Dy"].isNull()) waterMarkObject.dy = outputNodeWaterMarkListWaterMark["Dy"].asString(); - if(!outputNodeWaterMarkListWaterMark["ReferPos"].isNull()) - waterMarkObject.referPos = outputNodeWaterMarkListWaterMark["ReferPos"].asString(); - if(!outputNodeWaterMarkListWaterMark["Type"].isNull()) - waterMarkObject.type = outputNodeWaterMarkListWaterMark["Type"].asString(); auto inputFileNode = value["InputFile"]; - if(!inputFileNode["Bucket"].isNull()) - waterMarkObject.inputFile.bucket = inputFileNode["Bucket"].asString(); - if(!inputFileNode["Location"].isNull()) - waterMarkObject.inputFile.location = inputFileNode["Location"].asString(); if(!inputFileNode["Object"].isNull()) waterMarkObject.inputFile.object = inputFileNode["Object"].asString(); + if(!inputFileNode["Location"].isNull()) + waterMarkObject.inputFile.location = inputFileNode["Location"].asString(); + if(!inputFileNode["Bucket"].isNull()) + waterMarkObject.inputFile.bucket = inputFileNode["Bucket"].asString(); jobResultListObject.job.output.waterMarkList.push_back(waterMarkObject); } auto allMergeListNode = outputNode["MergeList"]["Merge"]; for (auto outputNodeMergeListMerge : allMergeListNode) { JobResult::Job::Output::Merge mergeObject; - if(!outputNodeMergeListMerge["MergeURL"].isNull()) - mergeObject.mergeURL = outputNodeMergeListMerge["MergeURL"].asString(); if(!outputNodeMergeListMerge["Start"].isNull()) mergeObject.start = outputNodeMergeListMerge["Start"].asString(); - if(!outputNodeMergeListMerge["Duration"].isNull()) - mergeObject.duration = outputNodeMergeListMerge["Duration"].asString(); if(!outputNodeMergeListMerge["RoleArn"].isNull()) mergeObject.roleArn = outputNodeMergeListMerge["RoleArn"].asString(); + if(!outputNodeMergeListMerge["MergeURL"].isNull()) + mergeObject.mergeURL = outputNodeMergeListMerge["MergeURL"].asString(); + if(!outputNodeMergeListMerge["Duration"].isNull()) + mergeObject.duration = outputNodeMergeListMerge["Duration"].asString(); jobResultListObject.job.output.mergeList.push_back(mergeObject); } + auto allOutSubtitleListNode = outputNode["OutSubtitleList"]["OutSubtitle"]; + for (auto outputNodeOutSubtitleListOutSubtitle : allOutSubtitleListNode) + { + JobResult::Job::Output::OutSubtitle outSubtitleObject; + if(!outputNodeOutSubtitleListOutSubtitle["Map"].isNull()) + outSubtitleObject.map = outputNodeOutSubtitleListOutSubtitle["Map"].asString(); + if(!outputNodeOutSubtitleListOutSubtitle["Success"].isNull()) + outSubtitleObject.success = outputNodeOutSubtitleListOutSubtitle["Success"].asString() == "true"; + if(!outputNodeOutSubtitleListOutSubtitle["Message"].isNull()) + outSubtitleObject.message = outputNodeOutSubtitleListOutSubtitle["Message"].asString(); + auto outSubtitleFileNode = value["OutSubtitleFile"]; + if(!outSubtitleFileNode["RoleArn"].isNull()) + outSubtitleObject.outSubtitleFile.roleArn = outSubtitleFileNode["RoleArn"].asString(); + if(!outSubtitleFileNode["Object"].isNull()) + outSubtitleObject.outSubtitleFile.object = outSubtitleFileNode["Object"].asString(); + if(!outSubtitleFileNode["Location"].isNull()) + outSubtitleObject.outSubtitleFile.location = outSubtitleFileNode["Location"].asString(); + if(!outSubtitleFileNode["Bucket"].isNull()) + outSubtitleObject.outSubtitleFile.bucket = outSubtitleFileNode["Bucket"].asString(); + jobResultListObject.job.output.outSubtitleList.push_back(outSubtitleObject); + } + auto allAmixListNode = outputNode["AmixList"]["Amix"]; + for (auto outputNodeAmixListAmix : allAmixListNode) + { + JobResult::Job::Output::Amix amixObject; + if(!outputNodeAmixListAmix["Map"].isNull()) + amixObject.map = outputNodeAmixListAmix["Map"].asString(); + if(!outputNodeAmixListAmix["Start"].isNull()) + amixObject.start = outputNodeAmixListAmix["Start"].asString(); + if(!outputNodeAmixListAmix["AmixURL"].isNull()) + amixObject.amixURL = outputNodeAmixListAmix["AmixURL"].asString(); + if(!outputNodeAmixListAmix["Duration"].isNull()) + amixObject.duration = outputNodeAmixListAmix["Duration"].asString(); + if(!outputNodeAmixListAmix["MixDurMode"].isNull()) + amixObject.mixDurMode = outputNodeAmixListAmix["MixDurMode"].asString(); + jobResultListObject.job.output.amixList.push_back(amixObject); + } auto allOpeningListNode = outputNode["OpeningList"]["Opening"]; for (auto outputNodeOpeningListOpening : allOpeningListNode) { @@ -151,101 +181,210 @@ void SubmitJobsResult::parse(const std::string &payload) for (auto outputNodeTailSlateListTailSlate : allTailSlateListNode) { JobResult::Job::Output::TailSlate tailSlateObject; - if(!outputNodeTailSlateListTailSlate["TailUrl"].isNull()) - tailSlateObject.tailUrl = outputNodeTailSlateListTailSlate["TailUrl"].asString(); if(!outputNodeTailSlateListTailSlate["Start"].isNull()) tailSlateObject.start = outputNodeTailSlateListTailSlate["Start"].asString(); - if(!outputNodeTailSlateListTailSlate["BlendDuration"].isNull()) - tailSlateObject.blendDuration = outputNodeTailSlateListTailSlate["BlendDuration"].asString(); + if(!outputNodeTailSlateListTailSlate["BgColor"].isNull()) + tailSlateObject.bgColor = outputNodeTailSlateListTailSlate["BgColor"].asString(); + if(!outputNodeTailSlateListTailSlate["IsMergeAudio"].isNull()) + tailSlateObject.isMergeAudio = outputNodeTailSlateListTailSlate["IsMergeAudio"].asString() == "true"; if(!outputNodeTailSlateListTailSlate["Width"].isNull()) tailSlateObject.width = outputNodeTailSlateListTailSlate["Width"].asString(); if(!outputNodeTailSlateListTailSlate["Height"].isNull()) tailSlateObject.height = outputNodeTailSlateListTailSlate["Height"].asString(); - if(!outputNodeTailSlateListTailSlate["IsMergeAudio"].isNull()) - tailSlateObject.isMergeAudio = outputNodeTailSlateListTailSlate["IsMergeAudio"].asString() == "true"; - if(!outputNodeTailSlateListTailSlate["BgColor"].isNull()) - tailSlateObject.bgColor = outputNodeTailSlateListTailSlate["BgColor"].asString(); + if(!outputNodeTailSlateListTailSlate["BlendDuration"].isNull()) + tailSlateObject.blendDuration = outputNodeTailSlateListTailSlate["BlendDuration"].asString(); + if(!outputNodeTailSlateListTailSlate["TailUrl"].isNull()) + tailSlateObject.tailUrl = outputNodeTailSlateListTailSlate["TailUrl"].asString(); jobResultListObject.job.output.tailSlateList.push_back(tailSlateObject); } - auto allOutSubtitleListNode = outputNode["OutSubtitleList"]["OutSubtitle"]; - for (auto outputNodeOutSubtitleListOutSubtitle : allOutSubtitleListNode) - { - JobResult::Job::Output::OutSubtitle outSubtitleObject; - if(!outputNodeOutSubtitleListOutSubtitle["Map"].isNull()) - outSubtitleObject.map = outputNodeOutSubtitleListOutSubtitle["Map"].asString(); - if(!outputNodeOutSubtitleListOutSubtitle["Success"].isNull()) - outSubtitleObject.success = outputNodeOutSubtitleListOutSubtitle["Success"].asString() == "true"; - if(!outputNodeOutSubtitleListOutSubtitle["Message"].isNull()) - outSubtitleObject.message = outputNodeOutSubtitleListOutSubtitle["Message"].asString(); - auto outSubtitleFileNode = value["OutSubtitleFile"]; - if(!outSubtitleFileNode["Bucket"].isNull()) - outSubtitleObject.outSubtitleFile.bucket = outSubtitleFileNode["Bucket"].asString(); - if(!outSubtitleFileNode["Location"].isNull()) - outSubtitleObject.outSubtitleFile.location = outSubtitleFileNode["Location"].asString(); - if(!outSubtitleFileNode["Object"].isNull()) - outSubtitleObject.outSubtitleFile.object = outSubtitleFileNode["Object"].asString(); - if(!outSubtitleFileNode["RoleArn"].isNull()) - outSubtitleObject.outSubtitleFile.roleArn = outSubtitleFileNode["RoleArn"].asString(); - jobResultListObject.job.output.outSubtitleList.push_back(outSubtitleObject); - } - auto allAmixListNode = outputNode["AmixList"]["Amix"]; - for (auto outputNodeAmixListAmix : allAmixListNode) - { - JobResult::Job::Output::Amix amixObject; - if(!outputNodeAmixListAmix["AmixURL"].isNull()) - amixObject.amixURL = outputNodeAmixListAmix["AmixURL"].asString(); - if(!outputNodeAmixListAmix["Map"].isNull()) - amixObject.map = outputNodeAmixListAmix["Map"].asString(); - if(!outputNodeAmixListAmix["MixDurMode"].isNull()) - amixObject.mixDurMode = outputNodeAmixListAmix["MixDurMode"].asString(); - if(!outputNodeAmixListAmix["Start"].isNull()) - amixObject.start = outputNodeAmixListAmix["Start"].asString(); - if(!outputNodeAmixListAmix["Duration"].isNull()) - amixObject.duration = outputNodeAmixListAmix["Duration"].asString(); - jobResultListObject.job.output.amixList.push_back(amixObject); - } + auto videoNode = outputNode["Video"]; + if(!videoNode["Bufsize"].isNull()) + jobResultListObject.job.output.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["Degrain"].isNull()) + jobResultListObject.job.output.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + jobResultListObject.job.output.video.pixFmt = videoNode["PixFmt"].asString(); + if(!videoNode["Pad"].isNull()) + jobResultListObject.job.output.video.pad = videoNode["Pad"].asString(); + if(!videoNode["Codec"].isNull()) + jobResultListObject.job.output.video.codec = videoNode["Codec"].asString(); + if(!videoNode["Height"].isNull()) + jobResultListObject.job.output.video.height = videoNode["Height"].asString(); + if(!videoNode["Qscale"].isNull()) + jobResultListObject.job.output.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Crop"].isNull()) + jobResultListObject.job.output.video.crop = videoNode["Crop"].asString(); + if(!videoNode["Bitrate"].isNull()) + jobResultListObject.job.output.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + jobResultListObject.job.output.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["MaxFps"].isNull()) + jobResultListObject.job.output.video.maxFps = videoNode["MaxFps"].asString(); + if(!videoNode["Profile"].isNull()) + jobResultListObject.job.output.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + jobResultListObject.job.output.video.crf = videoNode["Crf"].asString(); + if(!videoNode["Gop"].isNull()) + jobResultListObject.job.output.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + jobResultListObject.job.output.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + jobResultListObject.job.output.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Preset"].isNull()) + jobResultListObject.job.output.video.preset = videoNode["Preset"].asString(); + if(!videoNode["ScanMode"].isNull()) + jobResultListObject.job.output.video.scanMode = videoNode["ScanMode"].asString(); + if(!videoNode["ResoPriority"].isNull()) + jobResultListObject.job.output.video.resoPriority = videoNode["ResoPriority"].asString(); + auto bitrateBndNode = videoNode["BitrateBnd"]; + if(!bitrateBndNode["Max"].isNull()) + jobResultListObject.job.output.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); + if(!bitrateBndNode["Min"].isNull()) + jobResultListObject.job.output.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); + auto transConfigNode = outputNode["TransConfig"]; + if(!transConfigNode["IsCheckAudioBitrate"].isNull()) + jobResultListObject.job.output.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); + if(!transConfigNode["TransMode"].isNull()) + jobResultListObject.job.output.transConfig.transMode = transConfigNode["TransMode"].asString(); + if(!transConfigNode["IsCheckReso"].isNull()) + jobResultListObject.job.output.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); + if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) + jobResultListObject.job.output.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); + if(!transConfigNode["AdjDarMethod"].isNull()) + jobResultListObject.job.output.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); + if(!transConfigNode["IsCheckVideoBitrate"].isNull()) + jobResultListObject.job.output.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); + if(!transConfigNode["IsCheckResoFail"].isNull()) + jobResultListObject.job.output.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); + if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) + jobResultListObject.job.output.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); + auto encryptionNode = outputNode["Encryption"]; + if(!encryptionNode["Type"].isNull()) + jobResultListObject.job.output.encryption.type = encryptionNode["Type"].asString(); + if(!encryptionNode["Key"].isNull()) + jobResultListObject.job.output.encryption.key = encryptionNode["Key"].asString(); + if(!encryptionNode["KeyType"].isNull()) + jobResultListObject.job.output.encryption.keyType = encryptionNode["KeyType"].asString(); + if(!encryptionNode["Id"].isNull()) + jobResultListObject.job.output.encryption.id = encryptionNode["Id"].asString(); + if(!encryptionNode["KeyUri"].isNull()) + jobResultListObject.job.output.encryption.keyUri = encryptionNode["KeyUri"].asString(); + if(!encryptionNode["SkipCnt"].isNull()) + jobResultListObject.job.output.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); + auto m3U8NonStandardSupportNode = outputNode["M3U8NonStandardSupport"]; + auto tSNode = m3U8NonStandardSupportNode["TS"]; + if(!tSNode["SizeSupport"].isNull()) + jobResultListObject.job.output.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!tSNode["Md5Support"].isNull()) + jobResultListObject.job.output.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; + auto audioNode = outputNode["Audio"]; + if(!audioNode["Profile"].isNull()) + jobResultListObject.job.output.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Codec"].isNull()) + jobResultListObject.job.output.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + jobResultListObject.job.output.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + jobResultListObject.job.output.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + jobResultListObject.job.output.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + jobResultListObject.job.output.audio.bitrate = audioNode["Bitrate"].asString(); + auto volumeNode = audioNode["Volume"]; + if(!volumeNode["Method"].isNull()) + jobResultListObject.job.output.audio.volume.method = volumeNode["Method"].asString(); + if(!volumeNode["Level"].isNull()) + jobResultListObject.job.output.audio.volume.level = volumeNode["Level"].asString(); + auto superResoNode = outputNode["SuperReso"]; + if(!superResoNode["IsHalfSample"].isNull()) + jobResultListObject.job.output.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); auto digiWaterMarkNode = outputNode["DigiWaterMark"]; if(!digiWaterMarkNode["Type"].isNull()) jobResultListObject.job.output.digiWaterMark.type = digiWaterMarkNode["Type"].asString(); if(!digiWaterMarkNode["Alpha"].isNull()) jobResultListObject.job.output.digiWaterMark.alpha = digiWaterMarkNode["Alpha"].asString(); auto inputFile1Node = digiWaterMarkNode["InputFile"]; - if(!inputFile1Node["Bucket"].isNull()) - jobResultListObject.job.output.digiWaterMark.inputFile1.bucket = inputFile1Node["Bucket"].asString(); - if(!inputFile1Node["Location"].isNull()) - jobResultListObject.job.output.digiWaterMark.inputFile1.location = inputFile1Node["Location"].asString(); if(!inputFile1Node["Object"].isNull()) jobResultListObject.job.output.digiWaterMark.inputFile1.object = inputFile1Node["Object"].asString(); + if(!inputFile1Node["Location"].isNull()) + jobResultListObject.job.output.digiWaterMark.inputFile1.location = inputFile1Node["Location"].asString(); + if(!inputFile1Node["Bucket"].isNull()) + jobResultListObject.job.output.digiWaterMark.inputFile1.bucket = inputFile1Node["Bucket"].asString(); auto outputFileNode = outputNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - jobResultListObject.job.output.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - jobResultListObject.job.output.outputFile.location = outputFileNode["Location"].asString(); - if(!outputFileNode["Object"].isNull()) - jobResultListObject.job.output.outputFile.object = outputFileNode["Object"].asString(); if(!outputFileNode["RoleArn"].isNull()) jobResultListObject.job.output.outputFile.roleArn = outputFileNode["RoleArn"].asString(); - auto m3U8NonStandardSupportNode = outputNode["M3U8NonStandardSupport"]; - auto tSNode = m3U8NonStandardSupportNode["TS"]; - if(!tSNode["Md5Support"].isNull()) - jobResultListObject.job.output.m3U8NonStandardSupport.tS.md5Support = tSNode["Md5Support"].asString() == "true"; - if(!tSNode["SizeSupport"].isNull()) - jobResultListObject.job.output.m3U8NonStandardSupport.tS.sizeSupport = tSNode["SizeSupport"].asString() == "true"; + if(!outputFileNode["Object"].isNull()) + jobResultListObject.job.output.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + jobResultListObject.job.output.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + jobResultListObject.job.output.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto containerNode = outputNode["Container"]; + if(!containerNode["Format"].isNull()) + jobResultListObject.job.output.container.format = containerNode["Format"].asString(); + auto clipNode = outputNode["Clip"]; + auto timeSpanNode = clipNode["TimeSpan"]; + if(!timeSpanNode["Seek"].isNull()) + jobResultListObject.job.output.clip.timeSpan.seek = timeSpanNode["Seek"].asString(); + if(!timeSpanNode["Duration"].isNull()) + jobResultListObject.job.output.clip.timeSpan.duration = timeSpanNode["Duration"].asString(); + auto muxConfigNode = outputNode["MuxConfig"]; + auto webpNode = muxConfigNode["Webp"]; + if(!webpNode["Loop"].isNull()) + jobResultListObject.job.output.muxConfig.webp.loop = webpNode["Loop"].asString(); + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + jobResultListObject.job.output.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["DitherMode"].isNull()) + jobResultListObject.job.output.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + if(!gifNode["Loop"].isNull()) + jobResultListObject.job.output.muxConfig.gif.loop = gifNode["Loop"].asString(); + if(!gifNode["IsCustomPalette"].isNull()) + jobResultListObject.job.output.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); + auto segmentNode = muxConfigNode["Segment"]; + if(!segmentNode["Duration"].isNull()) + jobResultListObject.job.output.muxConfig.segment.duration = segmentNode["Duration"].asString(); + auto subtitleConfigNode = outputNode["SubtitleConfig"]; + auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; + for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) + { + JobResult::Job::Output::SubtitleConfig::ExtSubtitle extSubtitleObject; + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) + extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); + if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) + extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); + auto input2Node = value["Input"]; + if(!input2Node["Object"].isNull()) + extSubtitleObject.input2.object = input2Node["Object"].asString(); + if(!input2Node["Location"].isNull()) + extSubtitleObject.input2.location = input2Node["Location"].asString(); + if(!input2Node["Bucket"].isNull()) + extSubtitleObject.input2.bucket = input2Node["Bucket"].asString(); + jobResultListObject.job.output.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); + } + auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; + for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) + { + JobResult::Job::Output::SubtitleConfig::Subtitle subtitleObject; + if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) + subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); + jobResultListObject.job.output.subtitleConfig.subtitleList.push_back(subtitleObject); + } auto propertiesNode = outputNode["Properties"]; if(!propertiesNode["Width"].isNull()) jobResultListObject.job.output.properties.width = propertiesNode["Width"].asString(); if(!propertiesNode["Height"].isNull()) jobResultListObject.job.output.properties.height = propertiesNode["Height"].asString(); - if(!propertiesNode["Bitrate"].isNull()) - jobResultListObject.job.output.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["Duration"].isNull()) jobResultListObject.job.output.properties.duration = propertiesNode["Duration"].asString(); if(!propertiesNode["Fps"].isNull()) jobResultListObject.job.output.properties.fps = propertiesNode["Fps"].asString(); - if(!propertiesNode["FileSize"].isNull()) - jobResultListObject.job.output.properties.fileSize = propertiesNode["FileSize"].asString(); + if(!propertiesNode["Bitrate"].isNull()) + jobResultListObject.job.output.properties.bitrate = propertiesNode["Bitrate"].asString(); if(!propertiesNode["FileFormat"].isNull()) jobResultListObject.job.output.properties.fileFormat = propertiesNode["FileFormat"].asString(); + if(!propertiesNode["FileSize"].isNull()) + jobResultListObject.job.output.properties.fileSize = propertiesNode["FileSize"].asString(); auto streamsNode = propertiesNode["Streams"]; auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) @@ -253,93 +392,93 @@ void SubmitJobsResult::parse(const std::string &payload) JobResult::Job::Output::Properties::Streams::VideoStream videoStreamObject; if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) - videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) + videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); auto networkCostNode = value["NetworkCost"]; if(!networkCostNode["PreloadTime"].isNull()) videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); if(!networkCostNode["AvgBitrate"].isNull()) videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); jobResultListObject.job.output.properties.streams.videoStreamList.push_back(videoStreamObject); } auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) { JobResult::Job::Output::Properties::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); jobResultListObject.job.output.properties.streams.audioStreamList.push_back(audioStreamObject); } auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; @@ -353,168 +492,29 @@ void SubmitJobsResult::parse(const std::string &payload) jobResultListObject.job.output.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); } auto formatNode = propertiesNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - jobResultListObject.job.output.properties.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - jobResultListObject.job.output.properties.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - jobResultListObject.job.output.properties.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - jobResultListObject.job.output.properties.format.formatLongName = formatNode["FormatLongName"].asString(); if(!formatNode["StartTime"].isNull()) jobResultListObject.job.output.properties.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - jobResultListObject.job.output.properties.format.duration = formatNode["Duration"].asString(); + if(!formatNode["NumPrograms"].isNull()) + jobResultListObject.job.output.properties.format.numPrograms = formatNode["NumPrograms"].asString(); if(!formatNode["Size"].isNull()) jobResultListObject.job.output.properties.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + jobResultListObject.job.output.properties.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + jobResultListObject.job.output.properties.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + jobResultListObject.job.output.properties.format.duration = formatNode["Duration"].asString(); if(!formatNode["Bitrate"].isNull()) jobResultListObject.job.output.properties.format.bitrate = formatNode["Bitrate"].asString(); - auto clipNode = outputNode["Clip"]; - auto timeSpanNode = clipNode["TimeSpan"]; - if(!timeSpanNode["Seek"].isNull()) - jobResultListObject.job.output.clip.timeSpan.seek = timeSpanNode["Seek"].asString(); - if(!timeSpanNode["Duration"].isNull()) - jobResultListObject.job.output.clip.timeSpan.duration = timeSpanNode["Duration"].asString(); - auto superResoNode = outputNode["SuperReso"]; - if(!superResoNode["IsHalfSample"].isNull()) - jobResultListObject.job.output.superReso.isHalfSample = superResoNode["IsHalfSample"].asString(); - auto subtitleConfigNode = outputNode["SubtitleConfig"]; - auto allSubtitleListNode = subtitleConfigNode["SubtitleList"]["Subtitle"]; - for (auto subtitleConfigNodeSubtitleListSubtitle : allSubtitleListNode) - { - JobResult::Job::Output::SubtitleConfig::Subtitle subtitleObject; - if(!subtitleConfigNodeSubtitleListSubtitle["Map"].isNull()) - subtitleObject.map = subtitleConfigNodeSubtitleListSubtitle["Map"].asString(); - jobResultListObject.job.output.subtitleConfig.subtitleList.push_back(subtitleObject); - } - auto allExtSubtitleListNode = subtitleConfigNode["ExtSubtitleList"]["ExtSubtitle"]; - for (auto subtitleConfigNodeExtSubtitleListExtSubtitle : allExtSubtitleListNode) - { - JobResult::Job::Output::SubtitleConfig::ExtSubtitle extSubtitleObject; - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].isNull()) - extSubtitleObject.fontName = subtitleConfigNodeExtSubtitleListExtSubtitle["FontName"].asString(); - if(!subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].isNull()) - extSubtitleObject.charEnc = subtitleConfigNodeExtSubtitleListExtSubtitle["CharEnc"].asString(); - auto input2Node = value["Input"]; - if(!input2Node["Bucket"].isNull()) - extSubtitleObject.input2.bucket = input2Node["Bucket"].asString(); - if(!input2Node["Location"].isNull()) - extSubtitleObject.input2.location = input2Node["Location"].asString(); - if(!input2Node["Object"].isNull()) - extSubtitleObject.input2.object = input2Node["Object"].asString(); - jobResultListObject.job.output.subtitleConfig.extSubtitleList.push_back(extSubtitleObject); - } - auto transConfigNode = outputNode["TransConfig"]; - if(!transConfigNode["TransMode"].isNull()) - jobResultListObject.job.output.transConfig.transMode = transConfigNode["TransMode"].asString(); - if(!transConfigNode["IsCheckReso"].isNull()) - jobResultListObject.job.output.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); - if(!transConfigNode["IsCheckResoFail"].isNull()) - jobResultListObject.job.output.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); - if(!transConfigNode["IsCheckVideoBitrate"].isNull()) - jobResultListObject.job.output.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); - if(!transConfigNode["IsCheckAudioBitrate"].isNull()) - jobResultListObject.job.output.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); - if(!transConfigNode["AdjDarMethod"].isNull()) - jobResultListObject.job.output.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); - if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) - jobResultListObject.job.output.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); - if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) - jobResultListObject.job.output.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); - auto muxConfigNode = outputNode["MuxConfig"]; - auto segmentNode = muxConfigNode["Segment"]; - if(!segmentNode["Duration"].isNull()) - jobResultListObject.job.output.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - jobResultListObject.job.output.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - jobResultListObject.job.output.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); - if(!gifNode["IsCustomPalette"].isNull()) - jobResultListObject.job.output.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); - if(!gifNode["DitherMode"].isNull()) - jobResultListObject.job.output.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); - auto webpNode = muxConfigNode["Webp"]; - if(!webpNode["Loop"].isNull()) - jobResultListObject.job.output.muxConfig.webp.loop = webpNode["Loop"].asString(); - auto audioNode = outputNode["Audio"]; - if(!audioNode["Codec"].isNull()) - jobResultListObject.job.output.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - jobResultListObject.job.output.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - jobResultListObject.job.output.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - jobResultListObject.job.output.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - jobResultListObject.job.output.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - jobResultListObject.job.output.audio.qscale = audioNode["Qscale"].asString(); - auto volumeNode = audioNode["Volume"]; - if(!volumeNode["Level"].isNull()) - jobResultListObject.job.output.audio.volume.level = volumeNode["Level"].asString(); - if(!volumeNode["Method"].isNull()) - jobResultListObject.job.output.audio.volume.method = volumeNode["Method"].asString(); - auto videoNode = outputNode["Video"]; - if(!videoNode["Codec"].isNull()) - jobResultListObject.job.output.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - jobResultListObject.job.output.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - jobResultListObject.job.output.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - jobResultListObject.job.output.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - jobResultListObject.job.output.video.width = videoNode["Width"].asString(); - if(!videoNode["Height"].isNull()) - jobResultListObject.job.output.video.height = videoNode["Height"].asString(); - if(!videoNode["Fps"].isNull()) - jobResultListObject.job.output.video.fps = videoNode["Fps"].asString(); - if(!videoNode["Gop"].isNull()) - jobResultListObject.job.output.video.gop = videoNode["Gop"].asString(); - if(!videoNode["Preset"].isNull()) - jobResultListObject.job.output.video.preset = videoNode["Preset"].asString(); - if(!videoNode["ScanMode"].isNull()) - jobResultListObject.job.output.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - jobResultListObject.job.output.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - jobResultListObject.job.output.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - jobResultListObject.job.output.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - jobResultListObject.job.output.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - jobResultListObject.job.output.video.qscale = videoNode["Qscale"].asString(); - if(!videoNode["Crop"].isNull()) - jobResultListObject.job.output.video.crop = videoNode["Crop"].asString(); - if(!videoNode["Pad"].isNull()) - jobResultListObject.job.output.video.pad = videoNode["Pad"].asString(); - if(!videoNode["MaxFps"].isNull()) - jobResultListObject.job.output.video.maxFps = videoNode["MaxFps"].asString(); - if(!videoNode["ResoPriority"].isNull()) - jobResultListObject.job.output.video.resoPriority = videoNode["ResoPriority"].asString(); - auto bitrateBndNode = videoNode["BitrateBnd"]; - if(!bitrateBndNode["Max"].isNull()) - jobResultListObject.job.output.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); - if(!bitrateBndNode["Min"].isNull()) - jobResultListObject.job.output.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto containerNode = outputNode["Container"]; - if(!containerNode["Format"].isNull()) - jobResultListObject.job.output.container.format = containerNode["Format"].asString(); - auto encryptionNode = outputNode["Encryption"]; - if(!encryptionNode["Type"].isNull()) - jobResultListObject.job.output.encryption.type = encryptionNode["Type"].asString(); - if(!encryptionNode["Id"].isNull()) - jobResultListObject.job.output.encryption.id = encryptionNode["Id"].asString(); - if(!encryptionNode["Key"].isNull()) - jobResultListObject.job.output.encryption.key = encryptionNode["Key"].asString(); - if(!encryptionNode["KeyUri"].isNull()) - jobResultListObject.job.output.encryption.keyUri = encryptionNode["KeyUri"].asString(); - if(!encryptionNode["KeyType"].isNull()) - jobResultListObject.job.output.encryption.keyType = encryptionNode["KeyType"].asString(); - if(!encryptionNode["SkipCnt"].isNull()) - jobResultListObject.job.output.encryption.skipCnt = encryptionNode["SkipCnt"].asString(); + if(!formatNode["FormatName"].isNull()) + jobResultListObject.job.output.properties.format.formatName = formatNode["FormatName"].asString(); + auto inputNode = jobNode["Input"]; + if(!inputNode["Object"].isNull()) + jobResultListObject.job.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + jobResultListObject.job.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + jobResultListObject.job.input.bucket = inputNode["Bucket"].asString(); auto mNSMessageResultNode = jobNode["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) jobResultListObject.job.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); diff --git a/mts/src/model/SubmitMCJobRequest.cc b/mts/src/model/SubmitMCJobRequest.cc index 300acfe06..fc56834e5 100644 --- a/mts/src/model/SubmitMCJobRequest.cc +++ b/mts/src/model/SubmitMCJobRequest.cc @@ -1,150 +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::Mts::Model::SubmitMCJobRequest; - -SubmitMCJobRequest::SubmitMCJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitMCJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitMCJobRequest::~SubmitMCJobRequest() -{} - -long SubmitMCJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitMCJobRequest; + +SubmitMCJobRequest::SubmitMCJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitMCJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitMCJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitMCJobRequest::~SubmitMCJobRequest() {} + +long SubmitMCJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitMCJobRequest::getVideo()const -{ - return video_; +void SubmitMCJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitMCJobRequest::setVideo(const std::string& video) -{ - video_ = video; - setParameter("Video", video); +std::string SubmitMCJobRequest::getVideo() const { + return video_; } -std::string SubmitMCJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitMCJobRequest::setVideo(const std::string &video) { + video_ = video; + setParameter(std::string("Video"), video); } -void SubmitMCJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitMCJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitMCJobRequest::getUserData()const -{ - return userData_; +void SubmitMCJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitMCJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitMCJobRequest::getUserData() const { + return userData_; } -std::string SubmitMCJobRequest::getImages()const -{ - return images_; +void SubmitMCJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitMCJobRequest::setImages(const std::string& images) -{ - images_ = images; - setParameter("Images", images); +std::string SubmitMCJobRequest::getImages() const { + return images_; } -std::string SubmitMCJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitMCJobRequest::setImages(const std::string &images) { + images_ = images; + setParameter(std::string("Images"), images); } -void SubmitMCJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitMCJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitMCJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitMCJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitMCJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitMCJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitMCJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitMCJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitMCJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitMCJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitMCJobRequest::getCensorConfig()const -{ - return censorConfig_; +void SubmitMCJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitMCJobRequest::setCensorConfig(const std::string& censorConfig) -{ - censorConfig_ = censorConfig; - setParameter("CensorConfig", censorConfig); +std::string SubmitMCJobRequest::getCensorConfig() const { + return censorConfig_; } -std::string SubmitMCJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitMCJobRequest::setCensorConfig(const std::string &censorConfig) { + censorConfig_ = censorConfig; + setParameter(std::string("CensorConfig"), censorConfig); } -void SubmitMCJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitMCJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitMCJobRequest::getTexts()const -{ - return texts_; +void SubmitMCJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitMCJobRequest::setTexts(const std::string& texts) -{ - texts_ = texts; - setParameter("Texts", texts); +std::string SubmitMCJobRequest::getTexts() const { + return texts_; +} + +void SubmitMCJobRequest::setTexts(const std::string &texts) { + texts_ = texts; + setParameter(std::string("Texts"), texts); } diff --git a/mts/src/model/SubmitMcuJobRequest.cc b/mts/src/model/SubmitMcuJobRequest.cc index 9126c2b3c..bfa2b4dbf 100644 --- a/mts/src/model/SubmitMcuJobRequest.cc +++ b/mts/src/model/SubmitMcuJobRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::SubmitMcuJobRequest; - -SubmitMcuJobRequest::SubmitMcuJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitMcuJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitMcuJobRequest::~SubmitMcuJobRequest() -{} - -std::string SubmitMcuJobRequest::get_Template()const -{ - return _template_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitMcuJobRequest; + +SubmitMcuJobRequest::SubmitMcuJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitMcuJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitMcuJobRequest::set_Template(const std::string& _template) -{ - _template_ = _template; - setParameter("_Template", _template); +SubmitMcuJobRequest::~SubmitMcuJobRequest() {} + +std::string SubmitMcuJobRequest::get_Template() const { + return _template_; } -long SubmitMcuJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void SubmitMcuJobRequest::set_Template(const std::string &_template) { + _template_ = _template; + setParameter(std::string("Template"), _template); } -void SubmitMcuJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long SubmitMcuJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitMcuJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitMcuJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitMcuJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitMcuJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitMcuJobRequest::getUserData()const -{ - return userData_; +void SubmitMcuJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitMcuJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitMcuJobRequest::getUserData() const { + return userData_; } -std::string SubmitMcuJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitMcuJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitMcuJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitMcuJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitMcuJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitMcuJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitMcuJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitMcuJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitMcuJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitMcuJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitMcuJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitMcuJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitMcuJobRequest::getTemplateId()const -{ - return templateId_; +void SubmitMcuJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitMcuJobRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string SubmitMcuJobRequest::getTemplateId() const { + return templateId_; } -std::string SubmitMcuJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitMcuJobRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void SubmitMcuJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitMcuJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitMcuJobRequest::getInput()const -{ - return input_; +void SubmitMcuJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitMcuJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitMcuJobRequest::getInput() const { + return input_; +} + +void SubmitMcuJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitMediaCensorJobRequest.cc b/mts/src/model/SubmitMediaCensorJobRequest.cc index 2d36a6d9a..8669a177e 100644 --- a/mts/src/model/SubmitMediaCensorJobRequest.cc +++ b/mts/src/model/SubmitMediaCensorJobRequest.cc @@ -1,172 +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 - -using AlibabaCloud::Mts::Model::SubmitMediaCensorJobRequest; - -SubmitMediaCensorJobRequest::SubmitMediaCensorJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitMediaCensorJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitMediaCensorJobRequest::~SubmitMediaCensorJobRequest() -{} - -long SubmitMediaCensorJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitMediaCensorJobRequest; + +SubmitMediaCensorJobRequest::SubmitMediaCensorJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitMediaCensorJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitMediaCensorJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitMediaCensorJobRequest::~SubmitMediaCensorJobRequest() {} + +long SubmitMediaCensorJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitMediaCensorJobRequest::getDescription()const -{ - return description_; +void SubmitMediaCensorJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitMediaCensorJobRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string SubmitMediaCensorJobRequest::getDescription() const { + return description_; } -std::string SubmitMediaCensorJobRequest::getTitle()const -{ - return title_; +void SubmitMediaCensorJobRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void SubmitMediaCensorJobRequest::setTitle(const std::string& title) -{ - title_ = title; - setParameter("Title", title); +std::string SubmitMediaCensorJobRequest::getTitle() const { + return title_; } -std::string SubmitMediaCensorJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitMediaCensorJobRequest::setTitle(const std::string &title) { + title_ = title; + setParameter(std::string("Title"), title); } -void SubmitMediaCensorJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitMediaCensorJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitMediaCensorJobRequest::getVideoCensorConfig()const -{ - return videoCensorConfig_; +void SubmitMediaCensorJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitMediaCensorJobRequest::setVideoCensorConfig(const std::string& videoCensorConfig) -{ - videoCensorConfig_ = videoCensorConfig; - setParameter("VideoCensorConfig", videoCensorConfig); +std::string SubmitMediaCensorJobRequest::getVideoCensorConfig() const { + return videoCensorConfig_; } -std::string SubmitMediaCensorJobRequest::getUserData()const -{ - return userData_; +void SubmitMediaCensorJobRequest::setVideoCensorConfig(const std::string &videoCensorConfig) { + videoCensorConfig_ = videoCensorConfig; + setParameter(std::string("VideoCensorConfig"), videoCensorConfig); } -void SubmitMediaCensorJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitMediaCensorJobRequest::getUserData() const { + return userData_; } -std::string SubmitMediaCensorJobRequest::getCoverImages()const -{ - return coverImages_; +void SubmitMediaCensorJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitMediaCensorJobRequest::setCoverImages(const std::string& coverImages) -{ - coverImages_ = coverImages; - setParameter("CoverImages", coverImages); +std::string SubmitMediaCensorJobRequest::getCoverImages() const { + return coverImages_; } -std::string SubmitMediaCensorJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitMediaCensorJobRequest::setCoverImages(const std::string &coverImages) { + coverImages_ = coverImages; + setParameter(std::string("CoverImages"), coverImages); } -void SubmitMediaCensorJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitMediaCensorJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitMediaCensorJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitMediaCensorJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitMediaCensorJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitMediaCensorJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitMediaCensorJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitMediaCensorJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitMediaCensorJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitMediaCensorJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitMediaCensorJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitMediaCensorJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitMediaCensorJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitMediaCensorJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitMediaCensorJobRequest::getInput()const -{ - return input_; +void SubmitMediaCensorJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitMediaCensorJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitMediaCensorJobRequest::getInput() const { + return input_; } -std::string SubmitMediaCensorJobRequest::getBarrages()const -{ - return barrages_; +void SubmitMediaCensorJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } -void SubmitMediaCensorJobRequest::setBarrages(const std::string& barrages) -{ - barrages_ = barrages; - setParameter("Barrages", barrages); +std::string SubmitMediaCensorJobRequest::getBarrages() const { + return barrages_; +} + +void SubmitMediaCensorJobRequest::setBarrages(const std::string &barrages) { + barrages_ = barrages; + setParameter(std::string("Barrages"), barrages); } diff --git a/mts/src/model/SubmitMediaDetailJobRequest.cc b/mts/src/model/SubmitMediaDetailJobRequest.cc index 8ccbb5731..addf61dfc 100644 --- a/mts/src/model/SubmitMediaDetailJobRequest.cc +++ b/mts/src/model/SubmitMediaDetailJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitMediaDetailJobRequest; - -SubmitMediaDetailJobRequest::SubmitMediaDetailJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitMediaDetailJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitMediaDetailJobRequest::~SubmitMediaDetailJobRequest() -{} - -long SubmitMediaDetailJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitMediaDetailJobRequest; + +SubmitMediaDetailJobRequest::SubmitMediaDetailJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitMediaDetailJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitMediaDetailJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitMediaDetailJobRequest::~SubmitMediaDetailJobRequest() {} + +long SubmitMediaDetailJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitMediaDetailJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitMediaDetailJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitMediaDetailJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitMediaDetailJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitMediaDetailJobRequest::getUserData()const -{ - return userData_; +void SubmitMediaDetailJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitMediaDetailJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitMediaDetailJobRequest::getUserData() const { + return userData_; } -std::string SubmitMediaDetailJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitMediaDetailJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitMediaDetailJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitMediaDetailJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitMediaDetailJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitMediaDetailJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitMediaDetailJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitMediaDetailJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitMediaDetailJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitMediaDetailJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitMediaDetailJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitMediaDetailJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitMediaDetailJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitMediaDetailJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitMediaDetailJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitMediaDetailJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitMediaDetailJobRequest::getInput()const -{ - return input_; +void SubmitMediaDetailJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitMediaDetailJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitMediaDetailJobRequest::getInput() const { + return input_; } -std::string SubmitMediaDetailJobRequest::getMediaDetailConfig()const -{ - return mediaDetailConfig_; +void SubmitMediaDetailJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } -void SubmitMediaDetailJobRequest::setMediaDetailConfig(const std::string& mediaDetailConfig) -{ - mediaDetailConfig_ = mediaDetailConfig; - setParameter("MediaDetailConfig", mediaDetailConfig); +std::string SubmitMediaDetailJobRequest::getMediaDetailConfig() const { + return mediaDetailConfig_; +} + +void SubmitMediaDetailJobRequest::setMediaDetailConfig(const std::string &mediaDetailConfig) { + mediaDetailConfig_ = mediaDetailConfig; + setParameter(std::string("MediaDetailConfig"), mediaDetailConfig); } diff --git a/mts/src/model/SubmitMediaFpDeleteJobRequest.cc b/mts/src/model/SubmitMediaFpDeleteJobRequest.cc index 28d5ff912..1f72018a4 100644 --- a/mts/src/model/SubmitMediaFpDeleteJobRequest.cc +++ b/mts/src/model/SubmitMediaFpDeleteJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitMediaFpDeleteJobRequest; - -SubmitMediaFpDeleteJobRequest::SubmitMediaFpDeleteJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitMediaFpDeleteJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitMediaFpDeleteJobRequest::~SubmitMediaFpDeleteJobRequest() -{} - -long SubmitMediaFpDeleteJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitMediaFpDeleteJobRequest; + +SubmitMediaFpDeleteJobRequest::SubmitMediaFpDeleteJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitMediaFpDeleteJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitMediaFpDeleteJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitMediaFpDeleteJobRequest::~SubmitMediaFpDeleteJobRequest() {} + +long SubmitMediaFpDeleteJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitMediaFpDeleteJobRequest::getFpDBId()const -{ - return fpDBId_; +void SubmitMediaFpDeleteJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitMediaFpDeleteJobRequest::setFpDBId(const std::string& fpDBId) -{ - fpDBId_ = fpDBId; - setParameter("FpDBId", fpDBId); +std::string SubmitMediaFpDeleteJobRequest::getFpDBId() const { + return fpDBId_; } -std::string SubmitMediaFpDeleteJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitMediaFpDeleteJobRequest::setFpDBId(const std::string &fpDBId) { + fpDBId_ = fpDBId; + setParameter(std::string("FpDBId"), fpDBId); } -void SubmitMediaFpDeleteJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitMediaFpDeleteJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitMediaFpDeleteJobRequest::getUserData()const -{ - return userData_; +void SubmitMediaFpDeleteJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitMediaFpDeleteJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitMediaFpDeleteJobRequest::getUserData() const { + return userData_; } -std::string SubmitMediaFpDeleteJobRequest::getPrimaryKey()const -{ - return primaryKey_; +void SubmitMediaFpDeleteJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitMediaFpDeleteJobRequest::setPrimaryKey(const std::string& primaryKey) -{ - primaryKey_ = primaryKey; - setParameter("PrimaryKey", primaryKey); +std::string SubmitMediaFpDeleteJobRequest::getPrimaryKey() const { + return primaryKey_; } -std::string SubmitMediaFpDeleteJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitMediaFpDeleteJobRequest::setPrimaryKey(const std::string &primaryKey) { + primaryKey_ = primaryKey; + setParameter(std::string("PrimaryKey"), primaryKey); } -void SubmitMediaFpDeleteJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitMediaFpDeleteJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitMediaFpDeleteJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitMediaFpDeleteJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitMediaFpDeleteJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitMediaFpDeleteJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitMediaFpDeleteJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitMediaFpDeleteJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitMediaFpDeleteJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitMediaFpDeleteJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitMediaFpDeleteJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitMediaFpDeleteJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitMediaFpDeleteJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitMediaFpDeleteJobRequest::getPipelineId() const { + return pipelineId_; +} + +void SubmitMediaFpDeleteJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } diff --git a/mts/src/model/SubmitMediaInfoJobRequest.cc b/mts/src/model/SubmitMediaInfoJobRequest.cc index 5a0ff0f09..ad4235239 100644 --- a/mts/src/model/SubmitMediaInfoJobRequest.cc +++ b/mts/src/model/SubmitMediaInfoJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitMediaInfoJobRequest; - -SubmitMediaInfoJobRequest::SubmitMediaInfoJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitMediaInfoJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitMediaInfoJobRequest::~SubmitMediaInfoJobRequest() -{} - -long SubmitMediaInfoJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitMediaInfoJobRequest; + +SubmitMediaInfoJobRequest::SubmitMediaInfoJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitMediaInfoJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitMediaInfoJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitMediaInfoJobRequest::~SubmitMediaInfoJobRequest() {} + +long SubmitMediaInfoJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitMediaInfoJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitMediaInfoJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitMediaInfoJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitMediaInfoJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitMediaInfoJobRequest::getUserData()const -{ - return userData_; +void SubmitMediaInfoJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitMediaInfoJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitMediaInfoJobRequest::getUserData() const { + return userData_; } -std::string SubmitMediaInfoJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitMediaInfoJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitMediaInfoJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitMediaInfoJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitMediaInfoJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitMediaInfoJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitMediaInfoJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitMediaInfoJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitMediaInfoJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitMediaInfoJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitMediaInfoJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitMediaInfoJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitMediaInfoJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitMediaInfoJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitMediaInfoJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitMediaInfoJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitMediaInfoJobRequest::getInput()const -{ - return input_; +void SubmitMediaInfoJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitMediaInfoJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitMediaInfoJobRequest::getInput() const { + return input_; } -bool SubmitMediaInfoJobRequest::getAsync()const -{ - return async_; +void SubmitMediaInfoJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } -void SubmitMediaInfoJobRequest::setAsync(bool async) -{ - async_ = async; - setParameter("Async", async ? "true" : "false"); +bool SubmitMediaInfoJobRequest::getAsync() const { + return async_; +} + +void SubmitMediaInfoJobRequest::setAsync(bool async) { + async_ = async; + setParameter(std::string("Async"), async ? "true" : "false"); } diff --git a/mts/src/model/SubmitMediaInfoJobResult.cc b/mts/src/model/SubmitMediaInfoJobResult.cc index 3a4a4cc43..32624015e 100644 --- a/mts/src/model/SubmitMediaInfoJobResult.cc +++ b/mts/src/model/SubmitMediaInfoJobResult.cc @@ -40,185 +40,29 @@ void SubmitMediaInfoJobResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto mediaInfoJobNode = value["MediaInfoJob"]; + if(!mediaInfoJobNode["CreationTime"].isNull()) + mediaInfoJob_.creationTime = mediaInfoJobNode["CreationTime"].asString(); + if(!mediaInfoJobNode["State"].isNull()) + mediaInfoJob_.state = mediaInfoJobNode["State"].asString(); if(!mediaInfoJobNode["JobId"].isNull()) mediaInfoJob_.jobId = mediaInfoJobNode["JobId"].asString(); if(!mediaInfoJobNode["UserData"].isNull()) mediaInfoJob_.userData = mediaInfoJobNode["UserData"].asString(); - if(!mediaInfoJobNode["PipelineId"].isNull()) - mediaInfoJob_.pipelineId = mediaInfoJobNode["PipelineId"].asString(); - if(!mediaInfoJobNode["Async"].isNull()) - mediaInfoJob_.async = mediaInfoJobNode["Async"].asString() == "true"; - if(!mediaInfoJobNode["State"].isNull()) - mediaInfoJob_.state = mediaInfoJobNode["State"].asString(); if(!mediaInfoJobNode["Code"].isNull()) mediaInfoJob_.code = mediaInfoJobNode["Code"].asString(); if(!mediaInfoJobNode["Message"].isNull()) mediaInfoJob_.message = mediaInfoJobNode["Message"].asString(); - if(!mediaInfoJobNode["CreationTime"].isNull()) - mediaInfoJob_.creationTime = mediaInfoJobNode["CreationTime"].asString(); + if(!mediaInfoJobNode["PipelineId"].isNull()) + mediaInfoJob_.pipelineId = mediaInfoJobNode["PipelineId"].asString(); + if(!mediaInfoJobNode["Async"].isNull()) + mediaInfoJob_.async = mediaInfoJobNode["Async"].asString() == "true"; auto inputNode = mediaInfoJobNode["Input"]; - if(!inputNode["Bucket"].isNull()) - mediaInfoJob_.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - mediaInfoJob_.input.location = inputNode["Location"].asString(); if(!inputNode["Object"].isNull()) mediaInfoJob_.input.object = inputNode["Object"].asString(); - auto propertiesNode = mediaInfoJobNode["Properties"]; - if(!propertiesNode["Width"].isNull()) - mediaInfoJob_.properties.width = propertiesNode["Width"].asString(); - if(!propertiesNode["Height"].isNull()) - mediaInfoJob_.properties.height = propertiesNode["Height"].asString(); - if(!propertiesNode["Bitrate"].isNull()) - mediaInfoJob_.properties.bitrate = propertiesNode["Bitrate"].asString(); - if(!propertiesNode["Duration"].isNull()) - mediaInfoJob_.properties.duration = propertiesNode["Duration"].asString(); - if(!propertiesNode["Fps"].isNull()) - mediaInfoJob_.properties.fps = propertiesNode["Fps"].asString(); - if(!propertiesNode["FileSize"].isNull()) - mediaInfoJob_.properties.fileSize = propertiesNode["FileSize"].asString(); - if(!propertiesNode["FileFormat"].isNull()) - mediaInfoJob_.properties.fileFormat = propertiesNode["FileFormat"].asString(); - auto streamsNode = propertiesNode["Streams"]; - auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; - for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) - { - MediaInfoJob::Properties::Streams::VideoStream videoStreamObject; - if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) - videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) - videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) - videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) - videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Rotate"].isNull()) - videoStreamObject.rotate = streamsNodeVideoStreamListVideoStream["Rotate"].asString(); - auto networkCostNode = value["NetworkCost"]; - if(!networkCostNode["PreloadTime"].isNull()) - videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); - if(!networkCostNode["AvgBitrate"].isNull()) - videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); - mediaInfoJob_.properties.streams.videoStreamList.push_back(videoStreamObject); - } - auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; - for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) - { - MediaInfoJob::Properties::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) - audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) - audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); - mediaInfoJob_.properties.streams.audioStreamList.push_back(audioStreamObject); - } - auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; - for (auto streamsNodeSubtitleStreamListSubtitleStream : allSubtitleStreamListNode) - { - MediaInfoJob::Properties::Streams::SubtitleStream subtitleStreamObject; - if(!streamsNodeSubtitleStreamListSubtitleStream["Index"].isNull()) - subtitleStreamObject.index = streamsNodeSubtitleStreamListSubtitleStream["Index"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecName"].isNull()) - subtitleStreamObject.codecName = streamsNodeSubtitleStreamListSubtitleStream["CodecName"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].isNull()) - subtitleStreamObject.codecTimeBase = streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].isNull()) - subtitleStreamObject.codecLongName = streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].isNull()) - subtitleStreamObject.codecTagString = streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].isNull()) - subtitleStreamObject.codecTag = streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Timebase"].isNull()) - subtitleStreamObject.timebase = streamsNodeSubtitleStreamListSubtitleStream["Timebase"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["StartTime"].isNull()) - subtitleStreamObject.startTime = streamsNodeSubtitleStreamListSubtitleStream["StartTime"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Duration"].isNull()) - subtitleStreamObject.duration = streamsNodeSubtitleStreamListSubtitleStream["Duration"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Lang"].isNull()) - subtitleStreamObject.lang = streamsNodeSubtitleStreamListSubtitleStream["Lang"].asString(); - mediaInfoJob_.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); - } - auto formatNode = propertiesNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - mediaInfoJob_.properties.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - mediaInfoJob_.properties.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - mediaInfoJob_.properties.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - mediaInfoJob_.properties.format.formatLongName = formatNode["FormatLongName"].asString(); - if(!formatNode["StartTime"].isNull()) - mediaInfoJob_.properties.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - mediaInfoJob_.properties.format.duration = formatNode["Duration"].asString(); - if(!formatNode["Size"].isNull()) - mediaInfoJob_.properties.format.size = formatNode["Size"].asString(); - if(!formatNode["Bitrate"].isNull()) - mediaInfoJob_.properties.format.bitrate = formatNode["Bitrate"].asString(); + if(!inputNode["Location"].isNull()) + mediaInfoJob_.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + mediaInfoJob_.input.bucket = inputNode["Bucket"].asString(); auto mNSMessageResultNode = mediaInfoJobNode["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) mediaInfoJob_.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); @@ -226,6 +70,168 @@ void SubmitMediaInfoJobResult::parse(const std::string &payload) mediaInfoJob_.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString(); if(!mNSMessageResultNode["ErrorCode"].isNull()) mediaInfoJob_.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString(); + auto propertiesNode = mediaInfoJobNode["Properties"]; + if(!propertiesNode["Width"].isNull()) + mediaInfoJob_.properties.width = propertiesNode["Width"].asString(); + if(!propertiesNode["Height"].isNull()) + mediaInfoJob_.properties.height = propertiesNode["Height"].asString(); + if(!propertiesNode["Duration"].isNull()) + mediaInfoJob_.properties.duration = propertiesNode["Duration"].asString(); + if(!propertiesNode["Fps"].isNull()) + mediaInfoJob_.properties.fps = propertiesNode["Fps"].asString(); + if(!propertiesNode["Bitrate"].isNull()) + mediaInfoJob_.properties.bitrate = propertiesNode["Bitrate"].asString(); + if(!propertiesNode["FileFormat"].isNull()) + mediaInfoJob_.properties.fileFormat = propertiesNode["FileFormat"].asString(); + if(!propertiesNode["FileSize"].isNull()) + mediaInfoJob_.properties.fileSize = propertiesNode["FileSize"].asString(); + auto streamsNode = propertiesNode["Streams"]; + auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; + for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) + { + MediaInfoJob::Properties::Streams::VideoStream videoStreamObject; + if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) + videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) + videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) + videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) + videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Rotate"].isNull()) + videoStreamObject.rotate = streamsNodeVideoStreamListVideoStream["Rotate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); + if(!streamsNodeVideoStreamListVideoStream["ColorRange"].isNull()) + videoStreamObject.colorRange = streamsNodeVideoStreamListVideoStream["ColorRange"].asString(); + if(!streamsNodeVideoStreamListVideoStream["ColorTransfer"].isNull()) + videoStreamObject.colorTransfer = streamsNodeVideoStreamListVideoStream["ColorTransfer"].asString(); + if(!streamsNodeVideoStreamListVideoStream["ColorPrimaries"].isNull()) + videoStreamObject.colorPrimaries = streamsNodeVideoStreamListVideoStream["ColorPrimaries"].asString(); + auto networkCostNode = value["NetworkCost"]; + if(!networkCostNode["PreloadTime"].isNull()) + videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); + if(!networkCostNode["AvgBitrate"].isNull()) + videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); + mediaInfoJob_.properties.streams.videoStreamList.push_back(videoStreamObject); + } + auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; + for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) + { + MediaInfoJob::Properties::Streams::AudioStream audioStreamObject; + if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) + audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) + audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); + mediaInfoJob_.properties.streams.audioStreamList.push_back(audioStreamObject); + } + auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; + for (auto streamsNodeSubtitleStreamListSubtitleStream : allSubtitleStreamListNode) + { + MediaInfoJob::Properties::Streams::SubtitleStream subtitleStreamObject; + if(!streamsNodeSubtitleStreamListSubtitleStream["Timebase"].isNull()) + subtitleStreamObject.timebase = streamsNodeSubtitleStreamListSubtitleStream["Timebase"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Index"].isNull()) + subtitleStreamObject.index = streamsNodeSubtitleStreamListSubtitleStream["Index"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["StartTime"].isNull()) + subtitleStreamObject.startTime = streamsNodeSubtitleStreamListSubtitleStream["StartTime"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecName"].isNull()) + subtitleStreamObject.codecName = streamsNodeSubtitleStreamListSubtitleStream["CodecName"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Lang"].isNull()) + subtitleStreamObject.lang = streamsNodeSubtitleStreamListSubtitleStream["Lang"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].isNull()) + subtitleStreamObject.codecLongName = streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Duration"].isNull()) + subtitleStreamObject.duration = streamsNodeSubtitleStreamListSubtitleStream["Duration"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].isNull()) + subtitleStreamObject.codecTag = streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].isNull()) + subtitleStreamObject.codecTimeBase = streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].isNull()) + subtitleStreamObject.codecTagString = streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].asString(); + mediaInfoJob_.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); + } + auto formatNode = propertiesNode["Format"]; + if(!formatNode["StartTime"].isNull()) + mediaInfoJob_.properties.format.startTime = formatNode["StartTime"].asString(); + if(!formatNode["NumPrograms"].isNull()) + mediaInfoJob_.properties.format.numPrograms = formatNode["NumPrograms"].asString(); + if(!formatNode["Size"].isNull()) + mediaInfoJob_.properties.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + mediaInfoJob_.properties.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + mediaInfoJob_.properties.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + mediaInfoJob_.properties.format.duration = formatNode["Duration"].asString(); + if(!formatNode["Bitrate"].isNull()) + mediaInfoJob_.properties.format.bitrate = formatNode["Bitrate"].asString(); + if(!formatNode["FormatName"].isNull()) + mediaInfoJob_.properties.format.formatName = formatNode["FormatName"].asString(); } diff --git a/mts/src/model/SubmitPornJobRequest.cc b/mts/src/model/SubmitPornJobRequest.cc index dd9bc6db9..8edc77202 100644 --- a/mts/src/model/SubmitPornJobRequest.cc +++ b/mts/src/model/SubmitPornJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitPornJobRequest; - -SubmitPornJobRequest::SubmitPornJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitPornJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitPornJobRequest::~SubmitPornJobRequest() -{} - -long SubmitPornJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitPornJobRequest; + +SubmitPornJobRequest::SubmitPornJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitPornJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitPornJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitPornJobRequest::~SubmitPornJobRequest() {} + +long SubmitPornJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitPornJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitPornJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitPornJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitPornJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitPornJobRequest::getUserData()const -{ - return userData_; +void SubmitPornJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitPornJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitPornJobRequest::getUserData() const { + return userData_; } -std::string SubmitPornJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitPornJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitPornJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitPornJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitPornJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitPornJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitPornJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitPornJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitPornJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitPornJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitPornJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitPornJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitPornJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitPornJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitPornJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitPornJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitPornJobRequest::getInput()const -{ - return input_; +void SubmitPornJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitPornJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitPornJobRequest::getInput() const { + return input_; } -std::string SubmitPornJobRequest::getPornConfig()const -{ - return pornConfig_; +void SubmitPornJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } -void SubmitPornJobRequest::setPornConfig(const std::string& pornConfig) -{ - pornConfig_ = pornConfig; - setParameter("PornConfig", pornConfig); +std::string SubmitPornJobRequest::getPornConfig() const { + return pornConfig_; +} + +void SubmitPornJobRequest::setPornConfig(const std::string &pornConfig) { + pornConfig_ = pornConfig; + setParameter(std::string("PornConfig"), pornConfig); } diff --git a/mts/src/model/SubmitSmarttagJobRequest.cc b/mts/src/model/SubmitSmarttagJobRequest.cc index ec57d75d5..50f8c51a5 100644 --- a/mts/src/model/SubmitSmarttagJobRequest.cc +++ b/mts/src/model/SubmitSmarttagJobRequest.cc @@ -1,194 +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 - -using AlibabaCloud::Mts::Model::SubmitSmarttagJobRequest; - -SubmitSmarttagJobRequest::SubmitSmarttagJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitSmarttagJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitSmarttagJobRequest::~SubmitSmarttagJobRequest() -{} - -long SubmitSmarttagJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitSmarttagJobRequest; + +SubmitSmarttagJobRequest::SubmitSmarttagJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitSmarttagJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitSmarttagJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitSmarttagJobRequest::~SubmitSmarttagJobRequest() {} + +long SubmitSmarttagJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitSmarttagJobRequest::getTitle()const -{ - return title_; +void SubmitSmarttagJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitSmarttagJobRequest::setTitle(const std::string& title) -{ - title_ = title; - setParameter("Title", title); +std::string SubmitSmarttagJobRequest::getTitle() const { + return title_; } -std::string SubmitSmarttagJobRequest::getContent()const -{ - return content_; +void SubmitSmarttagJobRequest::setTitle(const std::string &title) { + title_ = title; + setParameter(std::string("Title"), title); } -void SubmitSmarttagJobRequest::setContent(const std::string& content) -{ - content_ = content; - setParameter("Content", content); +std::string SubmitSmarttagJobRequest::getContent() const { + return content_; } -std::string SubmitSmarttagJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitSmarttagJobRequest::setContent(const std::string &content) { + content_ = content; + setParameter(std::string("Content"), content); } -void SubmitSmarttagJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitSmarttagJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitSmarttagJobRequest::getUserData()const -{ - return userData_; +void SubmitSmarttagJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitSmarttagJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitSmarttagJobRequest::getUserData() const { + return userData_; } -std::string SubmitSmarttagJobRequest::getNotifyUrl()const -{ - return notifyUrl_; +void SubmitSmarttagJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitSmarttagJobRequest::setNotifyUrl(const std::string& notifyUrl) -{ - notifyUrl_ = notifyUrl; - setParameter("NotifyUrl", notifyUrl); +std::string SubmitSmarttagJobRequest::getNotifyUrl() const { + return notifyUrl_; } -std::string SubmitSmarttagJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitSmarttagJobRequest::setNotifyUrl(const std::string ¬ifyUrl) { + notifyUrl_ = notifyUrl; + setParameter(std::string("NotifyUrl"), notifyUrl); } -void SubmitSmarttagJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitSmarttagJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitSmarttagJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitSmarttagJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitSmarttagJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitSmarttagJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitSmarttagJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitSmarttagJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitSmarttagJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitSmarttagJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitSmarttagJobRequest::getParams()const -{ - return params_; +void SubmitSmarttagJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitSmarttagJobRequest::setParams(const std::string& params) -{ - params_ = params; - setParameter("Params", params); +std::string SubmitSmarttagJobRequest::getParams() const { + return params_; } -std::string SubmitSmarttagJobRequest::getTemplateId()const -{ - return templateId_; +void SubmitSmarttagJobRequest::setParams(const std::string ¶ms) { + params_ = params; + setParameter(std::string("Params"), params); } -void SubmitSmarttagJobRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string SubmitSmarttagJobRequest::getTemplateId() const { + return templateId_; } -std::string SubmitSmarttagJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitSmarttagJobRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void SubmitSmarttagJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitSmarttagJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitSmarttagJobRequest::getContentType()const -{ - return contentType_; +void SubmitSmarttagJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitSmarttagJobRequest::setContentType(const std::string& contentType) -{ - contentType_ = contentType; - setParameter("ContentType", contentType); +std::string SubmitSmarttagJobRequest::getContentType() const { + return contentType_; } -std::string SubmitSmarttagJobRequest::getInput()const -{ - return input_; +void SubmitSmarttagJobRequest::setContentType(const std::string &contentType) { + contentType_ = contentType; + setParameter(std::string("ContentType"), contentType); } -void SubmitSmarttagJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitSmarttagJobRequest::getInput() const { + return input_; } -std::string SubmitSmarttagJobRequest::getContentAddr()const -{ - return contentAddr_; +void SubmitSmarttagJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } -void SubmitSmarttagJobRequest::setContentAddr(const std::string& contentAddr) -{ - contentAddr_ = contentAddr; - setParameter("ContentAddr", contentAddr); +std::string SubmitSmarttagJobRequest::getContentAddr() const { + return contentAddr_; +} + +void SubmitSmarttagJobRequest::setContentAddr(const std::string &contentAddr) { + contentAddr_ = contentAddr; + setParameter(std::string("ContentAddr"), contentAddr); } diff --git a/mts/src/model/SubmitSnapshotJobRequest.cc b/mts/src/model/SubmitSnapshotJobRequest.cc index 0a8b5482f..aa5118f2c 100644 --- a/mts/src/model/SubmitSnapshotJobRequest.cc +++ b/mts/src/model/SubmitSnapshotJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitSnapshotJobRequest; - -SubmitSnapshotJobRequest::SubmitSnapshotJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitSnapshotJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitSnapshotJobRequest::~SubmitSnapshotJobRequest() -{} - -long SubmitSnapshotJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitSnapshotJobRequest; + +SubmitSnapshotJobRequest::SubmitSnapshotJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitSnapshotJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitSnapshotJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitSnapshotJobRequest::~SubmitSnapshotJobRequest() {} + +long SubmitSnapshotJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitSnapshotJobRequest::getSnapshotConfig()const -{ - return snapshotConfig_; +void SubmitSnapshotJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitSnapshotJobRequest::setSnapshotConfig(const std::string& snapshotConfig) -{ - snapshotConfig_ = snapshotConfig; - setParameter("SnapshotConfig", snapshotConfig); +std::string SubmitSnapshotJobRequest::getSnapshotConfig() const { + return snapshotConfig_; } -std::string SubmitSnapshotJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitSnapshotJobRequest::setSnapshotConfig(const std::string &snapshotConfig) { + snapshotConfig_ = snapshotConfig; + setParameter(std::string("SnapshotConfig"), snapshotConfig); } -void SubmitSnapshotJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitSnapshotJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitSnapshotJobRequest::getUserData()const -{ - return userData_; +void SubmitSnapshotJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitSnapshotJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitSnapshotJobRequest::getUserData() const { + return userData_; } -std::string SubmitSnapshotJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitSnapshotJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitSnapshotJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitSnapshotJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitSnapshotJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitSnapshotJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitSnapshotJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitSnapshotJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitSnapshotJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitSnapshotJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitSnapshotJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitSnapshotJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitSnapshotJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitSnapshotJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitSnapshotJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitSnapshotJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitSnapshotJobRequest::getInput()const -{ - return input_; +void SubmitSnapshotJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitSnapshotJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitSnapshotJobRequest::getInput() const { + return input_; +} + +void SubmitSnapshotJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitSnapshotJobResult.cc b/mts/src/model/SubmitSnapshotJobResult.cc index 140df28da..96c6a968d 100644 --- a/mts/src/model/SubmitSnapshotJobResult.cc +++ b/mts/src/model/SubmitSnapshotJobResult.cc @@ -40,83 +40,74 @@ void SubmitSnapshotJobResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto snapshotJobNode = value["SnapshotJob"]; - if(!snapshotJobNode["Id"].isNull()) - snapshotJob_.id = snapshotJobNode["Id"].asString(); - if(!snapshotJobNode["UserData"].isNull()) - snapshotJob_.userData = snapshotJobNode["UserData"].asString(); - if(!snapshotJobNode["PipelineId"].isNull()) - snapshotJob_.pipelineId = snapshotJobNode["PipelineId"].asString(); + if(!snapshotJobNode["CreationTime"].isNull()) + snapshotJob_.creationTime = snapshotJobNode["CreationTime"].asString(); if(!snapshotJobNode["State"].isNull()) snapshotJob_.state = snapshotJobNode["State"].asString(); - if(!snapshotJobNode["Code"].isNull()) - snapshotJob_.code = snapshotJobNode["Code"].asString(); + if(!snapshotJobNode["Message"].isNull()) + snapshotJob_.message = snapshotJobNode["Message"].asString(); if(!snapshotJobNode["Count"].isNull()) snapshotJob_.count = snapshotJobNode["Count"].asString(); if(!snapshotJobNode["TileCount"].isNull()) snapshotJob_.tileCount = snapshotJobNode["TileCount"].asString(); - if(!snapshotJobNode["Message"].isNull()) - snapshotJob_.message = snapshotJobNode["Message"].asString(); - if(!snapshotJobNode["CreationTime"].isNull()) - snapshotJob_.creationTime = snapshotJobNode["CreationTime"].asString(); - auto inputNode = snapshotJobNode["Input"]; - if(!inputNode["Bucket"].isNull()) - snapshotJob_.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - snapshotJob_.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - snapshotJob_.input.object = inputNode["Object"].asString(); - if(!inputNode["RoleArn"].isNull()) - snapshotJob_.input.roleArn = inputNode["RoleArn"].asString(); + if(!snapshotJobNode["UserData"].isNull()) + snapshotJob_.userData = snapshotJobNode["UserData"].asString(); + if(!snapshotJobNode["Code"].isNull()) + snapshotJob_.code = snapshotJobNode["Code"].asString(); + if(!snapshotJobNode["PipelineId"].isNull()) + snapshotJob_.pipelineId = snapshotJobNode["PipelineId"].asString(); + if(!snapshotJobNode["Id"].isNull()) + snapshotJob_.id = snapshotJobNode["Id"].asString(); auto snapshotConfigNode = snapshotJobNode["SnapshotConfig"]; if(!snapshotConfigNode["Time"].isNull()) snapshotJob_.snapshotConfig.time = snapshotConfigNode["Time"].asString(); if(!snapshotConfigNode["Interval"].isNull()) snapshotJob_.snapshotConfig.interval = snapshotConfigNode["Interval"].asString(); - if(!snapshotConfigNode["Num"].isNull()) - snapshotJob_.snapshotConfig.num = snapshotConfigNode["Num"].asString(); + if(!snapshotConfigNode["FrameType"].isNull()) + snapshotJob_.snapshotConfig.frameType = snapshotConfigNode["FrameType"].asString(); if(!snapshotConfigNode["Width"].isNull()) snapshotJob_.snapshotConfig.width = snapshotConfigNode["Width"].asString(); if(!snapshotConfigNode["Height"].isNull()) snapshotJob_.snapshotConfig.height = snapshotConfigNode["Height"].asString(); - if(!snapshotConfigNode["FrameType"].isNull()) - snapshotJob_.snapshotConfig.frameType = snapshotConfigNode["FrameType"].asString(); - auto outputFileNode = snapshotConfigNode["OutputFile"]; - if(!outputFileNode["Bucket"].isNull()) - snapshotJob_.snapshotConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); - if(!outputFileNode["Location"].isNull()) - snapshotJob_.snapshotConfig.outputFile.location = outputFileNode["Location"].asString(); - if(!outputFileNode["Object"].isNull()) - snapshotJob_.snapshotConfig.outputFile.object = outputFileNode["Object"].asString(); - if(!outputFileNode["RoleArn"].isNull()) - snapshotJob_.snapshotConfig.outputFile.roleArn = outputFileNode["RoleArn"].asString(); - auto tileOutputFileNode = snapshotConfigNode["TileOutputFile"]; - if(!tileOutputFileNode["Bucket"].isNull()) - snapshotJob_.snapshotConfig.tileOutputFile.bucket = tileOutputFileNode["Bucket"].asString(); - if(!tileOutputFileNode["Location"].isNull()) - snapshotJob_.snapshotConfig.tileOutputFile.location = tileOutputFileNode["Location"].asString(); - if(!tileOutputFileNode["Object"].isNull()) - snapshotJob_.snapshotConfig.tileOutputFile.object = tileOutputFileNode["Object"].asString(); - if(!tileOutputFileNode["RoleArn"].isNull()) - snapshotJob_.snapshotConfig.tileOutputFile.roleArn = tileOutputFileNode["RoleArn"].asString(); + if(!snapshotConfigNode["Num"].isNull()) + snapshotJob_.snapshotConfig.num = snapshotConfigNode["Num"].asString(); auto tileOutNode = snapshotConfigNode["TileOut"]; - if(!tileOutNode["Lines"].isNull()) - snapshotJob_.snapshotConfig.tileOut.lines = tileOutNode["Lines"].asString(); - if(!tileOutNode["Columns"].isNull()) - snapshotJob_.snapshotConfig.tileOut.columns = tileOutNode["Columns"].asString(); - if(!tileOutNode["CellWidth"].isNull()) - snapshotJob_.snapshotConfig.tileOut.cellWidth = tileOutNode["CellWidth"].asString(); - if(!tileOutNode["CellHeight"].isNull()) - snapshotJob_.snapshotConfig.tileOut.cellHeight = tileOutNode["CellHeight"].asString(); - if(!tileOutNode["Margin"].isNull()) - snapshotJob_.snapshotConfig.tileOut.margin = tileOutNode["Margin"].asString(); if(!tileOutNode["Padding"].isNull()) snapshotJob_.snapshotConfig.tileOut.padding = tileOutNode["Padding"].asString(); if(!tileOutNode["Color"].isNull()) snapshotJob_.snapshotConfig.tileOut.color = tileOutNode["Color"].asString(); - if(!tileOutNode["IsKeepCellPic"].isNull()) - snapshotJob_.snapshotConfig.tileOut.isKeepCellPic = tileOutNode["IsKeepCellPic"].asString(); if(!tileOutNode["CellSelStep"].isNull()) snapshotJob_.snapshotConfig.tileOut.cellSelStep = tileOutNode["CellSelStep"].asString(); + if(!tileOutNode["CellHeight"].isNull()) + snapshotJob_.snapshotConfig.tileOut.cellHeight = tileOutNode["CellHeight"].asString(); + if(!tileOutNode["CellWidth"].isNull()) + snapshotJob_.snapshotConfig.tileOut.cellWidth = tileOutNode["CellWidth"].asString(); + if(!tileOutNode["Margin"].isNull()) + snapshotJob_.snapshotConfig.tileOut.margin = tileOutNode["Margin"].asString(); + if(!tileOutNode["Columns"].isNull()) + snapshotJob_.snapshotConfig.tileOut.columns = tileOutNode["Columns"].asString(); + if(!tileOutNode["IsKeepCellPic"].isNull()) + snapshotJob_.snapshotConfig.tileOut.isKeepCellPic = tileOutNode["IsKeepCellPic"].asString(); + if(!tileOutNode["Lines"].isNull()) + snapshotJob_.snapshotConfig.tileOut.lines = tileOutNode["Lines"].asString(); + auto outputFileNode = snapshotConfigNode["OutputFile"]; + if(!outputFileNode["RoleArn"].isNull()) + snapshotJob_.snapshotConfig.outputFile.roleArn = outputFileNode["RoleArn"].asString(); + if(!outputFileNode["Object"].isNull()) + snapshotJob_.snapshotConfig.outputFile.object = outputFileNode["Object"].asString(); + if(!outputFileNode["Location"].isNull()) + snapshotJob_.snapshotConfig.outputFile.location = outputFileNode["Location"].asString(); + if(!outputFileNode["Bucket"].isNull()) + snapshotJob_.snapshotConfig.outputFile.bucket = outputFileNode["Bucket"].asString(); + auto tileOutputFileNode = snapshotConfigNode["TileOutputFile"]; + if(!tileOutputFileNode["RoleArn"].isNull()) + snapshotJob_.snapshotConfig.tileOutputFile.roleArn = tileOutputFileNode["RoleArn"].asString(); + if(!tileOutputFileNode["Object"].isNull()) + snapshotJob_.snapshotConfig.tileOutputFile.object = tileOutputFileNode["Object"].asString(); + if(!tileOutputFileNode["Location"].isNull()) + snapshotJob_.snapshotConfig.tileOutputFile.location = tileOutputFileNode["Location"].asString(); + if(!tileOutputFileNode["Bucket"].isNull()) + snapshotJob_.snapshotConfig.tileOutputFile.bucket = tileOutputFileNode["Bucket"].asString(); auto mNSMessageResultNode = snapshotJobNode["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) snapshotJob_.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); @@ -124,6 +115,15 @@ void SubmitSnapshotJobResult::parse(const std::string &payload) snapshotJob_.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString(); if(!mNSMessageResultNode["ErrorCode"].isNull()) snapshotJob_.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString(); + auto inputNode = snapshotJobNode["Input"]; + if(!inputNode["RoleArn"].isNull()) + snapshotJob_.input.roleArn = inputNode["RoleArn"].asString(); + if(!inputNode["Object"].isNull()) + snapshotJob_.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + snapshotJob_.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + snapshotJob_.input.bucket = inputNode["Bucket"].asString(); } diff --git a/mts/src/model/SubmitSubtitleJobRequest.cc b/mts/src/model/SubmitSubtitleJobRequest.cc index 8c7c57943..dde358494 100644 --- a/mts/src/model/SubmitSubtitleJobRequest.cc +++ b/mts/src/model/SubmitSubtitleJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitSubtitleJobRequest; - -SubmitSubtitleJobRequest::SubmitSubtitleJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitSubtitleJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitSubtitleJobRequest::~SubmitSubtitleJobRequest() -{} - -long SubmitSubtitleJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitSubtitleJobRequest; + +SubmitSubtitleJobRequest::SubmitSubtitleJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitSubtitleJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitSubtitleJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitSubtitleJobRequest::~SubmitSubtitleJobRequest() {} + +long SubmitSubtitleJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitSubtitleJobRequest::getOutputConfig()const -{ - return outputConfig_; +void SubmitSubtitleJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitSubtitleJobRequest::setOutputConfig(const std::string& outputConfig) -{ - outputConfig_ = outputConfig; - setParameter("OutputConfig", outputConfig); +std::string SubmitSubtitleJobRequest::getOutputConfig() const { + return outputConfig_; } -std::string SubmitSubtitleJobRequest::getInputConfig()const -{ - return inputConfig_; +void SubmitSubtitleJobRequest::setOutputConfig(const std::string &outputConfig) { + outputConfig_ = outputConfig; + setParameter(std::string("OutputConfig"), outputConfig); } -void SubmitSubtitleJobRequest::setInputConfig(const std::string& inputConfig) -{ - inputConfig_ = inputConfig; - setParameter("InputConfig", inputConfig); +std::string SubmitSubtitleJobRequest::getInputConfig() const { + return inputConfig_; } -std::string SubmitSubtitleJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitSubtitleJobRequest::setInputConfig(const std::string &inputConfig) { + inputConfig_ = inputConfig; + setParameter(std::string("InputConfig"), inputConfig); } -void SubmitSubtitleJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitSubtitleJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitSubtitleJobRequest::getUserData()const -{ - return userData_; +void SubmitSubtitleJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitSubtitleJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitSubtitleJobRequest::getUserData() const { + return userData_; } -std::string SubmitSubtitleJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitSubtitleJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitSubtitleJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitSubtitleJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitSubtitleJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitSubtitleJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitSubtitleJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitSubtitleJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitSubtitleJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitSubtitleJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitSubtitleJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitSubtitleJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitSubtitleJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitSubtitleJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitSubtitleJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitSubtitleJobRequest::getPipelineId() const { + return pipelineId_; +} + +void SubmitSubtitleJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } diff --git a/mts/src/model/SubmitSubtitleJobResult.cc b/mts/src/model/SubmitSubtitleJobResult.cc index 28b2d7e93..d27676080 100644 --- a/mts/src/model/SubmitSubtitleJobResult.cc +++ b/mts/src/model/SubmitSubtitleJobResult.cc @@ -40,16 +40,16 @@ void SubmitSubtitleJobResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto subtitleJobNode = value["SubtitleJob"]; - if(!subtitleJobNode["JobId"].isNull()) - subtitleJob_.jobId = subtitleJobNode["JobId"].asString(); - if(!subtitleJobNode["InputConfig"].isNull()) - subtitleJob_.inputConfig = subtitleJobNode["InputConfig"].asString(); - if(!subtitleJobNode["InputConfig"].isNull()) - subtitleJob_.inputConfig1 = subtitleJobNode["InputConfig"].asString(); - if(!subtitleJobNode["UserData"].isNull()) - subtitleJob_.userData = subtitleJobNode["UserData"].asString(); + if(!subtitleJobNode["OutputConfig"].isNull()) + subtitleJob_.outputConfig = subtitleJobNode["OutputConfig"].asString(); if(!subtitleJobNode["State"].isNull()) subtitleJob_.state = subtitleJobNode["State"].asString(); + if(!subtitleJobNode["JobId"].isNull()) + subtitleJob_.jobId = subtitleJobNode["JobId"].asString(); + if(!subtitleJobNode["UserData"].isNull()) + subtitleJob_.userData = subtitleJobNode["UserData"].asString(); + if(!subtitleJobNode["InputConfig"].isNull()) + subtitleJob_.inputConfig = subtitleJobNode["InputConfig"].asString(); } diff --git a/mts/src/model/SubmitTagJobRequest.cc b/mts/src/model/SubmitTagJobRequest.cc index 9ee27af79..05e28050d 100644 --- a/mts/src/model/SubmitTagJobRequest.cc +++ b/mts/src/model/SubmitTagJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitTagJobRequest; - -SubmitTagJobRequest::SubmitTagJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitTagJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitTagJobRequest::~SubmitTagJobRequest() -{} - -long SubmitTagJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitTagJobRequest; + +SubmitTagJobRequest::SubmitTagJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitTagJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitTagJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitTagJobRequest::~SubmitTagJobRequest() {} + +long SubmitTagJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitTagJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitTagJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitTagJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitTagJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitTagJobRequest::getUserData()const -{ - return userData_; +void SubmitTagJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitTagJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitTagJobRequest::getUserData() const { + return userData_; } -std::string SubmitTagJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitTagJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitTagJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitTagJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitTagJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitTagJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitTagJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitTagJobRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string SubmitTagJobRequest::getTagConfig()const -{ - return tagConfig_; +void SubmitTagJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitTagJobRequest::setTagConfig(const std::string& tagConfig) -{ - tagConfig_ = tagConfig; - setParameter("TagConfig", tagConfig); +std::string SubmitTagJobRequest::getTagConfig() const { + return tagConfig_; } -long SubmitTagJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitTagJobRequest::setTagConfig(const std::string &tagConfig) { + tagConfig_ = tagConfig; + setParameter(std::string("TagConfig"), tagConfig); } -void SubmitTagJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitTagJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitTagJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitTagJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitTagJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitTagJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitTagJobRequest::getInput()const -{ - return input_; +void SubmitTagJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitTagJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitTagJobRequest::getInput() const { + return input_; +} + +void SubmitTagJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitTerrorismJobRequest.cc b/mts/src/model/SubmitTerrorismJobRequest.cc index 75f211c05..d29582a49 100644 --- a/mts/src/model/SubmitTerrorismJobRequest.cc +++ b/mts/src/model/SubmitTerrorismJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitTerrorismJobRequest; - -SubmitTerrorismJobRequest::SubmitTerrorismJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitTerrorismJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitTerrorismJobRequest::~SubmitTerrorismJobRequest() -{} - -long SubmitTerrorismJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitTerrorismJobRequest; + +SubmitTerrorismJobRequest::SubmitTerrorismJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitTerrorismJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitTerrorismJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitTerrorismJobRequest::~SubmitTerrorismJobRequest() {} + +long SubmitTerrorismJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitTerrorismJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitTerrorismJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitTerrorismJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitTerrorismJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitTerrorismJobRequest::getTerrorismConfig()const -{ - return terrorismConfig_; +void SubmitTerrorismJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitTerrorismJobRequest::setTerrorismConfig(const std::string& terrorismConfig) -{ - terrorismConfig_ = terrorismConfig; - setParameter("TerrorismConfig", terrorismConfig); +std::string SubmitTerrorismJobRequest::getTerrorismConfig() const { + return terrorismConfig_; } -std::string SubmitTerrorismJobRequest::getUserData()const -{ - return userData_; +void SubmitTerrorismJobRequest::setTerrorismConfig(const std::string &terrorismConfig) { + terrorismConfig_ = terrorismConfig; + setParameter(std::string("TerrorismConfig"), terrorismConfig); } -void SubmitTerrorismJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitTerrorismJobRequest::getUserData() const { + return userData_; } -std::string SubmitTerrorismJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitTerrorismJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitTerrorismJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitTerrorismJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitTerrorismJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitTerrorismJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitTerrorismJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitTerrorismJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitTerrorismJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitTerrorismJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitTerrorismJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitTerrorismJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitTerrorismJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitTerrorismJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitTerrorismJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitTerrorismJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitTerrorismJobRequest::getInput()const -{ - return input_; +void SubmitTerrorismJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitTerrorismJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitTerrorismJobRequest::getInput() const { + return input_; +} + +void SubmitTerrorismJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitURLUploadJobRequest.cc b/mts/src/model/SubmitURLUploadJobRequest.cc new file mode 100644 index 000000000..1ebcea747 --- /dev/null +++ b/mts/src/model/SubmitURLUploadJobRequest.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 + +using AlibabaCloud::Mts::Model::SubmitURLUploadJobRequest; + +SubmitURLUploadJobRequest::SubmitURLUploadJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitURLUploadJob") { + setMethod(HttpRequest::Method::Post); +} + +SubmitURLUploadJobRequest::~SubmitURLUploadJobRequest() {} + +SubmitURLUploadJobRequest::TargetStorage SubmitURLUploadJobRequest::getTargetStorage() const { + return targetStorage_; +} + +void SubmitURLUploadJobRequest::setTargetStorage(const SubmitURLUploadJobRequest::TargetStorage &targetStorage) { + targetStorage_ = targetStorage; + setParameter(std::string("TargetStorage") + ".Bucket", targetStorage.bucket); + setParameter(std::string("TargetStorage") + ".BucketOwnerId", targetStorage.bucketOwnerId); + setParameter(std::string("TargetStorage") + ".S3Provider", targetStorage.s3Provider); + setParameter(std::string("TargetStorage") + ".S3Endpoint", targetStorage.s3Endpoint); + setParameter(std::string("TargetStorage") + ".ObjectKey", targetStorage.objectKey); + setParameter(std::string("TargetStorage") + ".S3AccessKey", targetStorage.s3AccessKey); + setParameter(std::string("TargetStorage") + ".S3SecretKey", targetStorage.s3SecretKey); + setParameter(std::string("TargetStorage") + ".S3SessionToken", targetStorage.s3SessionToken); + setParameter(std::string("TargetStorage") + ".ObjectRoleName", targetStorage.objectRoleName); +} + +std::string SubmitURLUploadJobRequest::getSourceFileURL() const { + return sourceFileURL_; +} + +void SubmitURLUploadJobRequest::setSourceFileURL(const std::string &sourceFileURL) { + sourceFileURL_ = sourceFileURL; + setParameter(std::string("SourceFileURL"), sourceFileURL); +} + +std::string SubmitURLUploadJobRequest::getNotify() const { + return notify_; +} + +void SubmitURLUploadJobRequest::setNotify(const std::string ¬ify) { + notify_ = notify; + setParameter(std::string("Notify"), notify); +} + +std::string SubmitURLUploadJobRequest::getUserData() const { + return userData_; +} + +void SubmitURLUploadJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string SubmitURLUploadJobRequest::getRegion() const { + return region_; +} + +void SubmitURLUploadJobRequest::setRegion(const std::string ®ion) { + region_ = region; + setParameter(std::string("Region"), region); +} + diff --git a/mts/src/model/SubmitURLUploadJobResult.cc b/mts/src/model/SubmitURLUploadJobResult.cc new file mode 100644 index 000000000..9a488278f --- /dev/null +++ b/mts/src/model/SubmitURLUploadJobResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +SubmitURLUploadJobResult::SubmitURLUploadJobResult() : + ServiceResult() +{} + +SubmitURLUploadJobResult::SubmitURLUploadJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitURLUploadJobResult::~SubmitURLUploadJobResult() +{} + +void SubmitURLUploadJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string SubmitURLUploadJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/mts/src/model/SubmitVideoGifJobRequest.cc b/mts/src/model/SubmitVideoGifJobRequest.cc index 1b86aa5a8..8db84a418 100644 --- a/mts/src/model/SubmitVideoGifJobRequest.cc +++ b/mts/src/model/SubmitVideoGifJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitVideoGifJobRequest; - -SubmitVideoGifJobRequest::SubmitVideoGifJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitVideoGifJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitVideoGifJobRequest::~SubmitVideoGifJobRequest() -{} - -long SubmitVideoGifJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitVideoGifJobRequest; + +SubmitVideoGifJobRequest::SubmitVideoGifJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitVideoGifJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitVideoGifJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitVideoGifJobRequest::~SubmitVideoGifJobRequest() {} + +long SubmitVideoGifJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitVideoGifJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitVideoGifJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitVideoGifJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitVideoGifJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitVideoGifJobRequest::getUserData()const -{ - return userData_; +void SubmitVideoGifJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitVideoGifJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitVideoGifJobRequest::getUserData() const { + return userData_; } -std::string SubmitVideoGifJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitVideoGifJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitVideoGifJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitVideoGifJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitVideoGifJobRequest::getVideoGifConfig()const -{ - return videoGifConfig_; +void SubmitVideoGifJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitVideoGifJobRequest::setVideoGifConfig(const std::string& videoGifConfig) -{ - videoGifConfig_ = videoGifConfig; - setParameter("VideoGifConfig", videoGifConfig); +std::string SubmitVideoGifJobRequest::getVideoGifConfig() const { + return videoGifConfig_; } -std::string SubmitVideoGifJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitVideoGifJobRequest::setVideoGifConfig(const std::string &videoGifConfig) { + videoGifConfig_ = videoGifConfig; + setParameter(std::string("VideoGifConfig"), videoGifConfig); } -void SubmitVideoGifJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitVideoGifJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitVideoGifJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitVideoGifJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitVideoGifJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitVideoGifJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitVideoGifJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitVideoGifJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitVideoGifJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitVideoGifJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitVideoGifJobRequest::getInput()const -{ - return input_; +void SubmitVideoGifJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitVideoGifJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitVideoGifJobRequest::getInput() const { + return input_; +} + +void SubmitVideoGifJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitVideoPoseJobRequest.cc b/mts/src/model/SubmitVideoPoseJobRequest.cc index d4333aad8..30379d004 100644 --- a/mts/src/model/SubmitVideoPoseJobRequest.cc +++ b/mts/src/model/SubmitVideoPoseJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitVideoPoseJobRequest; - -SubmitVideoPoseJobRequest::SubmitVideoPoseJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitVideoPoseJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitVideoPoseJobRequest::~SubmitVideoPoseJobRequest() -{} - -long SubmitVideoPoseJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitVideoPoseJobRequest; + +SubmitVideoPoseJobRequest::SubmitVideoPoseJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitVideoPoseJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitVideoPoseJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitVideoPoseJobRequest::~SubmitVideoPoseJobRequest() {} + +long SubmitVideoPoseJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitVideoPoseJobRequest::getOutputConfig()const -{ - return outputConfig_; +void SubmitVideoPoseJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitVideoPoseJobRequest::setOutputConfig(const std::string& outputConfig) -{ - outputConfig_ = outputConfig; - setParameter("OutputConfig", outputConfig); +std::string SubmitVideoPoseJobRequest::getOutputConfig() const { + return outputConfig_; } -std::string SubmitVideoPoseJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitVideoPoseJobRequest::setOutputConfig(const std::string &outputConfig) { + outputConfig_ = outputConfig; + setParameter(std::string("OutputConfig"), outputConfig); } -void SubmitVideoPoseJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitVideoPoseJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitVideoPoseJobRequest::getUserData()const -{ - return userData_; +void SubmitVideoPoseJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitVideoPoseJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitVideoPoseJobRequest::getUserData() const { + return userData_; } -std::string SubmitVideoPoseJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitVideoPoseJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitVideoPoseJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitVideoPoseJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitVideoPoseJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitVideoPoseJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitVideoPoseJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitVideoPoseJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitVideoPoseJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitVideoPoseJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitVideoPoseJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitVideoPoseJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitVideoPoseJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitVideoPoseJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitVideoPoseJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitVideoPoseJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitVideoPoseJobRequest::getInput()const -{ - return input_; +void SubmitVideoPoseJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitVideoPoseJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitVideoPoseJobRequest::getInput() const { + return input_; +} + +void SubmitVideoPoseJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitVideoPoseJobResult.cc b/mts/src/model/SubmitVideoPoseJobResult.cc index 313ed3b63..d2caa1fe4 100644 --- a/mts/src/model/SubmitVideoPoseJobResult.cc +++ b/mts/src/model/SubmitVideoPoseJobResult.cc @@ -40,198 +40,33 @@ void SubmitVideoPoseJobResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto videoPoseJobNode = value["VideoPoseJob"]; - if(!videoPoseJobNode["JobId"].isNull()) - videoPoseJob_.jobId = videoPoseJobNode["JobId"].asString(); - if(!videoPoseJobNode["PipelineId"].isNull()) - videoPoseJob_.pipelineId = videoPoseJobNode["PipelineId"].asString(); - if(!videoPoseJobNode["UserData"].isNull()) - videoPoseJob_.userData = videoPoseJobNode["UserData"].asString(); if(!videoPoseJobNode["State"].isNull()) videoPoseJob_.state = videoPoseJobNode["State"].asString(); - auto inputNode = videoPoseJobNode["Input"]; - if(!inputNode["Bucket"].isNull()) - videoPoseJob_.input.bucket = inputNode["Bucket"].asString(); - if(!inputNode["Location"].isNull()) - videoPoseJob_.input.location = inputNode["Location"].asString(); - if(!inputNode["Object"].isNull()) - videoPoseJob_.input.object = inputNode["Object"].asString(); - if(!inputNode["RoleArn"].isNull()) - videoPoseJob_.input.roleArn = inputNode["RoleArn"].asString(); + if(!videoPoseJobNode["JobId"].isNull()) + videoPoseJob_.jobId = videoPoseJobNode["JobId"].asString(); + if(!videoPoseJobNode["UserData"].isNull()) + videoPoseJob_.userData = videoPoseJobNode["UserData"].asString(); + if(!videoPoseJobNode["PipelineId"].isNull()) + videoPoseJob_.pipelineId = videoPoseJobNode["PipelineId"].asString(); auto outputConfigNode = videoPoseJobNode["OutputConfig"]; - auto videoFileNode = outputConfigNode["VideoFile"]; - if(!videoFileNode["Bucket"].isNull()) - videoPoseJob_.outputConfig.videoFile.bucket = videoFileNode["Bucket"].asString(); - if(!videoFileNode["Location"].isNull()) - videoPoseJob_.outputConfig.videoFile.location = videoFileNode["Location"].asString(); - if(!videoFileNode["Object"].isNull()) - videoPoseJob_.outputConfig.videoFile.object = videoFileNode["Object"].asString(); - if(!videoFileNode["RoleArn"].isNull()) - videoPoseJob_.outputConfig.videoFile.roleArn = videoFileNode["RoleArn"].asString(); auto dataFileNode = outputConfigNode["DataFile"]; - if(!dataFileNode["Bucket"].isNull()) - videoPoseJob_.outputConfig.dataFile.bucket = dataFileNode["Bucket"].asString(); - if(!dataFileNode["Location"].isNull()) - videoPoseJob_.outputConfig.dataFile.location = dataFileNode["Location"].asString(); - if(!dataFileNode["Object"].isNull()) - videoPoseJob_.outputConfig.dataFile.object = dataFileNode["Object"].asString(); if(!dataFileNode["RoleArn"].isNull()) videoPoseJob_.outputConfig.dataFile.roleArn = dataFileNode["RoleArn"].asString(); - auto propertiesNode = videoPoseJobNode["Properties"]; - if(!propertiesNode["Width"].isNull()) - videoPoseJob_.properties.width = propertiesNode["Width"].asString(); - if(!propertiesNode["Height"].isNull()) - videoPoseJob_.properties.height = propertiesNode["Height"].asString(); - if(!propertiesNode["Bitrate"].isNull()) - videoPoseJob_.properties.bitrate = propertiesNode["Bitrate"].asString(); - if(!propertiesNode["Duration"].isNull()) - videoPoseJob_.properties.duration = propertiesNode["Duration"].asString(); - if(!propertiesNode["Fps"].isNull()) - videoPoseJob_.properties.fps = propertiesNode["Fps"].asString(); - if(!propertiesNode["FileSize"].isNull()) - videoPoseJob_.properties.fileSize = propertiesNode["FileSize"].asString(); - if(!propertiesNode["FileFormat"].isNull()) - videoPoseJob_.properties.fileFormat = propertiesNode["FileFormat"].asString(); - auto streamsNode = propertiesNode["Streams"]; - auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; - for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) - { - VideoPoseJob::Properties::Streams::VideoStream videoStreamObject; - if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) - videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) - videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) - videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) - videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) - videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) - videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); - if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) - videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) - videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) - videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); - if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) - videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) - videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) - videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); - if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) - videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) - videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) - videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); - if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) - videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) - videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); - if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) - videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) - videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) - videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); - if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) - videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) - videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); - if(!streamsNodeVideoStreamListVideoStream["Rotate"].isNull()) - videoStreamObject.rotate = streamsNodeVideoStreamListVideoStream["Rotate"].asString(); - auto networkCostNode = value["NetworkCost"]; - if(!networkCostNode["PreloadTime"].isNull()) - videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); - if(!networkCostNode["CostBandwidth"].isNull()) - videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); - if(!networkCostNode["AvgBitrate"].isNull()) - videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); - videoPoseJob_.properties.streams.videoStreamList.push_back(videoStreamObject); - } - auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; - for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) - { - VideoPoseJob::Properties::Streams::AudioStream audioStreamObject; - if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) - audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) - audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) - audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) - audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) - audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); - if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) - audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); - if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) - audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) - audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) - audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); - if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) - audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) - audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); - if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) - audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) - audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) - audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); - if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) - audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); - if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) - audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); - videoPoseJob_.properties.streams.audioStreamList.push_back(audioStreamObject); - } - auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; - for (auto streamsNodeSubtitleStreamListSubtitleStream : allSubtitleStreamListNode) - { - VideoPoseJob::Properties::Streams::SubtitleStream subtitleStreamObject; - if(!streamsNodeSubtitleStreamListSubtitleStream["Index"].isNull()) - subtitleStreamObject.index = streamsNodeSubtitleStreamListSubtitleStream["Index"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecName"].isNull()) - subtitleStreamObject.codecName = streamsNodeSubtitleStreamListSubtitleStream["CodecName"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].isNull()) - subtitleStreamObject.codecTimeBase = streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].isNull()) - subtitleStreamObject.codecLongName = streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].isNull()) - subtitleStreamObject.codecTagString = streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].isNull()) - subtitleStreamObject.codecTag = streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Timebase"].isNull()) - subtitleStreamObject.timebase = streamsNodeSubtitleStreamListSubtitleStream["Timebase"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["StartTime"].isNull()) - subtitleStreamObject.startTime = streamsNodeSubtitleStreamListSubtitleStream["StartTime"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Duration"].isNull()) - subtitleStreamObject.duration = streamsNodeSubtitleStreamListSubtitleStream["Duration"].asString(); - if(!streamsNodeSubtitleStreamListSubtitleStream["Lang"].isNull()) - subtitleStreamObject.lang = streamsNodeSubtitleStreamListSubtitleStream["Lang"].asString(); - videoPoseJob_.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); - } - auto formatNode = propertiesNode["Format"]; - if(!formatNode["NumStreams"].isNull()) - videoPoseJob_.properties.format.numStreams = formatNode["NumStreams"].asString(); - if(!formatNode["NumPrograms"].isNull()) - videoPoseJob_.properties.format.numPrograms = formatNode["NumPrograms"].asString(); - if(!formatNode["FormatName"].isNull()) - videoPoseJob_.properties.format.formatName = formatNode["FormatName"].asString(); - if(!formatNode["FormatLongName"].isNull()) - videoPoseJob_.properties.format.formatLongName = formatNode["FormatLongName"].asString(); - if(!formatNode["StartTime"].isNull()) - videoPoseJob_.properties.format.startTime = formatNode["StartTime"].asString(); - if(!formatNode["Duration"].isNull()) - videoPoseJob_.properties.format.duration = formatNode["Duration"].asString(); - if(!formatNode["Size"].isNull()) - videoPoseJob_.properties.format.size = formatNode["Size"].asString(); - if(!formatNode["Bitrate"].isNull()) - videoPoseJob_.properties.format.bitrate = formatNode["Bitrate"].asString(); + if(!dataFileNode["Object"].isNull()) + videoPoseJob_.outputConfig.dataFile.object = dataFileNode["Object"].asString(); + if(!dataFileNode["Location"].isNull()) + videoPoseJob_.outputConfig.dataFile.location = dataFileNode["Location"].asString(); + if(!dataFileNode["Bucket"].isNull()) + videoPoseJob_.outputConfig.dataFile.bucket = dataFileNode["Bucket"].asString(); + auto videoFileNode = outputConfigNode["VideoFile"]; + if(!videoFileNode["RoleArn"].isNull()) + videoPoseJob_.outputConfig.videoFile.roleArn = videoFileNode["RoleArn"].asString(); + if(!videoFileNode["Object"].isNull()) + videoPoseJob_.outputConfig.videoFile.object = videoFileNode["Object"].asString(); + if(!videoFileNode["Location"].isNull()) + videoPoseJob_.outputConfig.videoFile.location = videoFileNode["Location"].asString(); + if(!videoFileNode["Bucket"].isNull()) + videoPoseJob_.outputConfig.videoFile.bucket = videoFileNode["Bucket"].asString(); auto mNSMessageResultNode = videoPoseJobNode["MNSMessageResult"]; if(!mNSMessageResultNode["MessageId"].isNull()) videoPoseJob_.mNSMessageResult.messageId = mNSMessageResultNode["MessageId"].asString(); @@ -239,6 +74,171 @@ void SubmitVideoPoseJobResult::parse(const std::string &payload) videoPoseJob_.mNSMessageResult.errorMessage = mNSMessageResultNode["ErrorMessage"].asString(); if(!mNSMessageResultNode["ErrorCode"].isNull()) videoPoseJob_.mNSMessageResult.errorCode = mNSMessageResultNode["ErrorCode"].asString(); + auto inputNode = videoPoseJobNode["Input"]; + if(!inputNode["RoleArn"].isNull()) + videoPoseJob_.input.roleArn = inputNode["RoleArn"].asString(); + if(!inputNode["Object"].isNull()) + videoPoseJob_.input.object = inputNode["Object"].asString(); + if(!inputNode["Location"].isNull()) + videoPoseJob_.input.location = inputNode["Location"].asString(); + if(!inputNode["Bucket"].isNull()) + videoPoseJob_.input.bucket = inputNode["Bucket"].asString(); + auto propertiesNode = videoPoseJobNode["Properties"]; + if(!propertiesNode["Width"].isNull()) + videoPoseJob_.properties.width = propertiesNode["Width"].asString(); + if(!propertiesNode["Height"].isNull()) + videoPoseJob_.properties.height = propertiesNode["Height"].asString(); + if(!propertiesNode["Duration"].isNull()) + videoPoseJob_.properties.duration = propertiesNode["Duration"].asString(); + if(!propertiesNode["Fps"].isNull()) + videoPoseJob_.properties.fps = propertiesNode["Fps"].asString(); + if(!propertiesNode["Bitrate"].isNull()) + videoPoseJob_.properties.bitrate = propertiesNode["Bitrate"].asString(); + if(!propertiesNode["FileFormat"].isNull()) + videoPoseJob_.properties.fileFormat = propertiesNode["FileFormat"].asString(); + if(!propertiesNode["FileSize"].isNull()) + videoPoseJob_.properties.fileSize = propertiesNode["FileSize"].asString(); + auto streamsNode = propertiesNode["Streams"]; + auto allVideoStreamListNode = streamsNode["VideoStreamList"]["VideoStream"]; + for (auto streamsNodeVideoStreamListVideoStream : allVideoStreamListNode) + { + VideoPoseJob::Properties::Streams::VideoStream videoStreamObject; + if(!streamsNodeVideoStreamListVideoStream["Sar"].isNull()) + videoStreamObject.sar = streamsNodeVideoStreamListVideoStream["Sar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Height"].isNull()) + videoStreamObject.height = streamsNodeVideoStreamListVideoStream["Height"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTagString"].isNull()) + videoStreamObject.codecTagString = streamsNodeVideoStreamListVideoStream["CodecTagString"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Width"].isNull()) + videoStreamObject.width = streamsNodeVideoStreamListVideoStream["Width"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Index"].isNull()) + videoStreamObject.index = streamsNodeVideoStreamListVideoStream["Index"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Timebase"].isNull()) + videoStreamObject.timebase = streamsNodeVideoStreamListVideoStream["Timebase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["AvgFPS"].isNull()) + videoStreamObject.avgFPS = streamsNodeVideoStreamListVideoStream["AvgFPS"].asString(); + if(!streamsNodeVideoStreamListVideoStream["PixFmt"].isNull()) + videoStreamObject.pixFmt = streamsNodeVideoStreamListVideoStream["PixFmt"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Lang"].isNull()) + videoStreamObject.lang = streamsNodeVideoStreamListVideoStream["Lang"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecLongName"].isNull()) + videoStreamObject.codecLongName = streamsNodeVideoStreamListVideoStream["CodecLongName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["NumFrames"].isNull()) + videoStreamObject.numFrames = streamsNodeVideoStreamListVideoStream["NumFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Rotate"].isNull()) + videoStreamObject.rotate = streamsNodeVideoStreamListVideoStream["Rotate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Bitrate"].isNull()) + videoStreamObject.bitrate = streamsNodeVideoStreamListVideoStream["Bitrate"].asString(); + if(!streamsNodeVideoStreamListVideoStream["HasBFrames"].isNull()) + videoStreamObject.hasBFrames = streamsNodeVideoStreamListVideoStream["HasBFrames"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Profile"].isNull()) + videoStreamObject.profile = streamsNodeVideoStreamListVideoStream["Profile"].asString(); + if(!streamsNodeVideoStreamListVideoStream["StartTime"].isNull()) + videoStreamObject.startTime = streamsNodeVideoStreamListVideoStream["StartTime"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Dar"].isNull()) + videoStreamObject.dar = streamsNodeVideoStreamListVideoStream["Dar"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecName"].isNull()) + videoStreamObject.codecName = streamsNodeVideoStreamListVideoStream["CodecName"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Duration"].isNull()) + videoStreamObject.duration = streamsNodeVideoStreamListVideoStream["Duration"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Fps"].isNull()) + videoStreamObject.fps = streamsNodeVideoStreamListVideoStream["Fps"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTag"].isNull()) + videoStreamObject.codecTag = streamsNodeVideoStreamListVideoStream["CodecTag"].asString(); + if(!streamsNodeVideoStreamListVideoStream["CodecTimeBase"].isNull()) + videoStreamObject.codecTimeBase = streamsNodeVideoStreamListVideoStream["CodecTimeBase"].asString(); + if(!streamsNodeVideoStreamListVideoStream["Level"].isNull()) + videoStreamObject.level = streamsNodeVideoStreamListVideoStream["Level"].asString(); + auto networkCostNode = value["NetworkCost"]; + if(!networkCostNode["PreloadTime"].isNull()) + videoStreamObject.networkCost.preloadTime = networkCostNode["PreloadTime"].asString(); + if(!networkCostNode["AvgBitrate"].isNull()) + videoStreamObject.networkCost.avgBitrate = networkCostNode["AvgBitrate"].asString(); + if(!networkCostNode["CostBandwidth"].isNull()) + videoStreamObject.networkCost.costBandwidth = networkCostNode["CostBandwidth"].asString(); + videoPoseJob_.properties.streams.videoStreamList.push_back(videoStreamObject); + } + auto allAudioStreamListNode = streamsNode["AudioStreamList"]["AudioStream"]; + for (auto streamsNodeAudioStreamListAudioStream : allAudioStreamListNode) + { + VideoPoseJob::Properties::Streams::AudioStream audioStreamObject; + if(!streamsNodeAudioStreamListAudioStream["Timebase"].isNull()) + audioStreamObject.timebase = streamsNodeAudioStreamListAudioStream["Timebase"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Index"].isNull()) + audioStreamObject.index = streamsNodeAudioStreamListAudioStream["Index"].asString(); + if(!streamsNodeAudioStreamListAudioStream["SampleFmt"].isNull()) + audioStreamObject.sampleFmt = streamsNodeAudioStreamListAudioStream["SampleFmt"].asString(); + if(!streamsNodeAudioStreamListAudioStream["ChannelLayout"].isNull()) + audioStreamObject.channelLayout = streamsNodeAudioStreamListAudioStream["ChannelLayout"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Lang"].isNull()) + audioStreamObject.lang = streamsNodeAudioStreamListAudioStream["Lang"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Samplerate"].isNull()) + audioStreamObject.samplerate = streamsNodeAudioStreamListAudioStream["Samplerate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecLongName"].isNull()) + audioStreamObject.codecLongName = streamsNodeAudioStreamListAudioStream["CodecLongName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Channels"].isNull()) + audioStreamObject.channels = streamsNodeAudioStreamListAudioStream["Channels"].asString(); + if(!streamsNodeAudioStreamListAudioStream["NumFrames"].isNull()) + audioStreamObject.numFrames = streamsNodeAudioStreamListAudioStream["NumFrames"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Bitrate"].isNull()) + audioStreamObject.bitrate = streamsNodeAudioStreamListAudioStream["Bitrate"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTagString"].isNull()) + audioStreamObject.codecTagString = streamsNodeAudioStreamListAudioStream["CodecTagString"].asString(); + if(!streamsNodeAudioStreamListAudioStream["StartTime"].isNull()) + audioStreamObject.startTime = streamsNodeAudioStreamListAudioStream["StartTime"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecName"].isNull()) + audioStreamObject.codecName = streamsNodeAudioStreamListAudioStream["CodecName"].asString(); + if(!streamsNodeAudioStreamListAudioStream["Duration"].isNull()) + audioStreamObject.duration = streamsNodeAudioStreamListAudioStream["Duration"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTag"].isNull()) + audioStreamObject.codecTag = streamsNodeAudioStreamListAudioStream["CodecTag"].asString(); + if(!streamsNodeAudioStreamListAudioStream["CodecTimeBase"].isNull()) + audioStreamObject.codecTimeBase = streamsNodeAudioStreamListAudioStream["CodecTimeBase"].asString(); + videoPoseJob_.properties.streams.audioStreamList.push_back(audioStreamObject); + } + auto allSubtitleStreamListNode = streamsNode["SubtitleStreamList"]["SubtitleStream"]; + for (auto streamsNodeSubtitleStreamListSubtitleStream : allSubtitleStreamListNode) + { + VideoPoseJob::Properties::Streams::SubtitleStream subtitleStreamObject; + if(!streamsNodeSubtitleStreamListSubtitleStream["Timebase"].isNull()) + subtitleStreamObject.timebase = streamsNodeSubtitleStreamListSubtitleStream["Timebase"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Index"].isNull()) + subtitleStreamObject.index = streamsNodeSubtitleStreamListSubtitleStream["Index"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["StartTime"].isNull()) + subtitleStreamObject.startTime = streamsNodeSubtitleStreamListSubtitleStream["StartTime"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecName"].isNull()) + subtitleStreamObject.codecName = streamsNodeSubtitleStreamListSubtitleStream["CodecName"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Lang"].isNull()) + subtitleStreamObject.lang = streamsNodeSubtitleStreamListSubtitleStream["Lang"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].isNull()) + subtitleStreamObject.codecLongName = streamsNodeSubtitleStreamListSubtitleStream["CodecLongName"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["Duration"].isNull()) + subtitleStreamObject.duration = streamsNodeSubtitleStreamListSubtitleStream["Duration"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].isNull()) + subtitleStreamObject.codecTag = streamsNodeSubtitleStreamListSubtitleStream["CodecTag"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].isNull()) + subtitleStreamObject.codecTimeBase = streamsNodeSubtitleStreamListSubtitleStream["CodecTimeBase"].asString(); + if(!streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].isNull()) + subtitleStreamObject.codecTagString = streamsNodeSubtitleStreamListSubtitleStream["CodecTagString"].asString(); + videoPoseJob_.properties.streams.subtitleStreamList.push_back(subtitleStreamObject); + } + auto formatNode = propertiesNode["Format"]; + if(!formatNode["StartTime"].isNull()) + videoPoseJob_.properties.format.startTime = formatNode["StartTime"].asString(); + if(!formatNode["NumPrograms"].isNull()) + videoPoseJob_.properties.format.numPrograms = formatNode["NumPrograms"].asString(); + if(!formatNode["Size"].isNull()) + videoPoseJob_.properties.format.size = formatNode["Size"].asString(); + if(!formatNode["NumStreams"].isNull()) + videoPoseJob_.properties.format.numStreams = formatNode["NumStreams"].asString(); + if(!formatNode["FormatLongName"].isNull()) + videoPoseJob_.properties.format.formatLongName = formatNode["FormatLongName"].asString(); + if(!formatNode["Duration"].isNull()) + videoPoseJob_.properties.format.duration = formatNode["Duration"].asString(); + if(!formatNode["Bitrate"].isNull()) + videoPoseJob_.properties.format.bitrate = formatNode["Bitrate"].asString(); + if(!formatNode["FormatName"].isNull()) + videoPoseJob_.properties.format.formatName = formatNode["FormatName"].asString(); } diff --git a/mts/src/model/SubmitVideoQualityJobRequest.cc b/mts/src/model/SubmitVideoQualityJobRequest.cc new file mode 100644 index 000000000..9641873a8 --- /dev/null +++ b/mts/src/model/SubmitVideoQualityJobRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitVideoQualityJobRequest; + +SubmitVideoQualityJobRequest::SubmitVideoQualityJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitVideoQualityJob") { + setMethod(HttpRequest::Method::Post); +} + +SubmitVideoQualityJobRequest::~SubmitVideoQualityJobRequest() {} + +std::string SubmitVideoQualityJobRequest::getJobParams() const { + return jobParams_; +} + +void SubmitVideoQualityJobRequest::setJobParams(const std::string &jobParams) { + jobParams_ = jobParams; + setParameter(std::string("JobParams"), jobParams); +} + +long SubmitVideoQualityJobRequest::getUserId() const { + return userId_; +} + +void SubmitVideoQualityJobRequest::setUserId(long userId) { + userId_ = userId; + setParameter(std::string("UserId"), std::to_string(userId)); +} + +std::string SubmitVideoQualityJobRequest::getOutput() const { + return output_; +} + +void SubmitVideoQualityJobRequest::setOutput(const std::string &output) { + output_ = output; + setParameter(std::string("Output"), output); +} + +std::string SubmitVideoQualityJobRequest::getUserData() const { + return userData_; +} + +void SubmitVideoQualityJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); +} + +std::string SubmitVideoQualityJobRequest::getNotifyUrl() const { + return notifyUrl_; +} + +void SubmitVideoQualityJobRequest::setNotifyUrl(const std::string ¬ifyUrl) { + notifyUrl_ = notifyUrl; + setParameter(std::string("NotifyUrl"), notifyUrl); +} + +std::string SubmitVideoQualityJobRequest::getSourceType() const { + return sourceType_; +} + +void SubmitVideoQualityJobRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); +} + +std::string SubmitVideoQualityJobRequest::getModelId() const { + return modelId_; +} + +void SubmitVideoQualityJobRequest::setModelId(const std::string &modelId) { + modelId_ = modelId; + setParameter(std::string("ModelId"), modelId); +} + +std::string SubmitVideoQualityJobRequest::getPipelineId() const { + return pipelineId_; +} + +void SubmitVideoQualityJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); +} + +std::string SubmitVideoQualityJobRequest::getInput() const { + return input_; +} + +void SubmitVideoQualityJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); +} + +std::string SubmitVideoQualityJobRequest::getScheduleParams() const { + return scheduleParams_; +} + +void SubmitVideoQualityJobRequest::setScheduleParams(const std::string &scheduleParams) { + scheduleParams_ = scheduleParams; + setParameter(std::string("ScheduleParams"), scheduleParams); +} + diff --git a/mts/src/model/SubmitVideoQualityJobResult.cc b/mts/src/model/SubmitVideoQualityJobResult.cc new file mode 100644 index 000000000..f25045f07 --- /dev/null +++ b/mts/src/model/SubmitVideoQualityJobResult.cc @@ -0,0 +1,65 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Mts; +using namespace AlibabaCloud::Mts::Model; + +SubmitVideoQualityJobResult::SubmitVideoQualityJobResult() : + ServiceResult() +{} + +SubmitVideoQualityJobResult::SubmitVideoQualityJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SubmitVideoQualityJobResult::~SubmitVideoQualityJobResult() +{} + +void SubmitVideoQualityJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["JobId"].isNull()) + jobId_ = value["JobId"].asString(); + +} + +std::string SubmitVideoQualityJobResult::getMessage()const +{ + return message_; +} + +std::string SubmitVideoQualityJobResult::getCode()const +{ + return code_; +} + +std::string SubmitVideoQualityJobResult::getJobId()const +{ + return jobId_; +} + diff --git a/mts/src/model/SubmitVideoSplitJobRequest.cc b/mts/src/model/SubmitVideoSplitJobRequest.cc index 31ccece8e..918e49814 100644 --- a/mts/src/model/SubmitVideoSplitJobRequest.cc +++ b/mts/src/model/SubmitVideoSplitJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitVideoSplitJobRequest; - -SubmitVideoSplitJobRequest::SubmitVideoSplitJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitVideoSplitJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitVideoSplitJobRequest::~SubmitVideoSplitJobRequest() -{} - -std::string SubmitVideoSplitJobRequest::getVideoSplitConfig()const -{ - return videoSplitConfig_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitVideoSplitJobRequest; + +SubmitVideoSplitJobRequest::SubmitVideoSplitJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitVideoSplitJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitVideoSplitJobRequest::setVideoSplitConfig(const std::string& videoSplitConfig) -{ - videoSplitConfig_ = videoSplitConfig; - setParameter("VideoSplitConfig", videoSplitConfig); +SubmitVideoSplitJobRequest::~SubmitVideoSplitJobRequest() {} + +std::string SubmitVideoSplitJobRequest::getVideoSplitConfig() const { + return videoSplitConfig_; } -long SubmitVideoSplitJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void SubmitVideoSplitJobRequest::setVideoSplitConfig(const std::string &videoSplitConfig) { + videoSplitConfig_ = videoSplitConfig; + setParameter(std::string("VideoSplitConfig"), videoSplitConfig); } -void SubmitVideoSplitJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long SubmitVideoSplitJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitVideoSplitJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitVideoSplitJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitVideoSplitJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitVideoSplitJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitVideoSplitJobRequest::getUserData()const -{ - return userData_; +void SubmitVideoSplitJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitVideoSplitJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitVideoSplitJobRequest::getUserData() const { + return userData_; } -std::string SubmitVideoSplitJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitVideoSplitJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitVideoSplitJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitVideoSplitJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitVideoSplitJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitVideoSplitJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitVideoSplitJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitVideoSplitJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitVideoSplitJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitVideoSplitJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitVideoSplitJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitVideoSplitJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitVideoSplitJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitVideoSplitJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitVideoSplitJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitVideoSplitJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitVideoSplitJobRequest::getInput()const -{ - return input_; +void SubmitVideoSplitJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitVideoSplitJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitVideoSplitJobRequest::getInput() const { + return input_; +} + +void SubmitVideoSplitJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/SubmitVideoSummaryJobRequest.cc b/mts/src/model/SubmitVideoSummaryJobRequest.cc index 4746bead4..29d9d217c 100644 --- a/mts/src/model/SubmitVideoSummaryJobRequest.cc +++ b/mts/src/model/SubmitVideoSummaryJobRequest.cc @@ -1,128 +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 - -using AlibabaCloud::Mts::Model::SubmitVideoSummaryJobRequest; - -SubmitVideoSummaryJobRequest::SubmitVideoSummaryJobRequest() : - RpcServiceRequest("mts", "2014-06-18", "SubmitVideoSummaryJob") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitVideoSummaryJobRequest::~SubmitVideoSummaryJobRequest() -{} - -long SubmitVideoSummaryJobRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::SubmitVideoSummaryJobRequest; + +SubmitVideoSummaryJobRequest::SubmitVideoSummaryJobRequest() + : RpcServiceRequest("mts", "2014-06-18", "SubmitVideoSummaryJob") { + setMethod(HttpRequest::Method::Post); } -void SubmitVideoSummaryJobRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +SubmitVideoSummaryJobRequest::~SubmitVideoSummaryJobRequest() {} + +long SubmitVideoSummaryJobRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string SubmitVideoSummaryJobRequest::getAccessKeyId()const -{ - return accessKeyId_; +void SubmitVideoSummaryJobRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void SubmitVideoSummaryJobRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string SubmitVideoSummaryJobRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string SubmitVideoSummaryJobRequest::getUserData()const -{ - return userData_; +void SubmitVideoSummaryJobRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void SubmitVideoSummaryJobRequest::setUserData(const std::string& userData) -{ - userData_ = userData; - setParameter("UserData", userData); +std::string SubmitVideoSummaryJobRequest::getUserData() const { + return userData_; } -std::string SubmitVideoSummaryJobRequest::getVideoSummaryConfig()const -{ - return videoSummaryConfig_; +void SubmitVideoSummaryJobRequest::setUserData(const std::string &userData) { + userData_ = userData; + setParameter(std::string("UserData"), userData); } -void SubmitVideoSummaryJobRequest::setVideoSummaryConfig(const std::string& videoSummaryConfig) -{ - videoSummaryConfig_ = videoSummaryConfig; - setParameter("VideoSummaryConfig", videoSummaryConfig); +std::string SubmitVideoSummaryJobRequest::getVideoSummaryConfig() const { + return videoSummaryConfig_; } -std::string SubmitVideoSummaryJobRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void SubmitVideoSummaryJobRequest::setVideoSummaryConfig(const std::string &videoSummaryConfig) { + videoSummaryConfig_ = videoSummaryConfig; + setParameter(std::string("VideoSummaryConfig"), videoSummaryConfig); } -void SubmitVideoSummaryJobRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string SubmitVideoSummaryJobRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string SubmitVideoSummaryJobRequest::getOwnerAccount()const -{ - return ownerAccount_; +void SubmitVideoSummaryJobRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void SubmitVideoSummaryJobRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string SubmitVideoSummaryJobRequest::getOwnerAccount() const { + return ownerAccount_; } -long SubmitVideoSummaryJobRequest::getOwnerId()const -{ - return ownerId_; +void SubmitVideoSummaryJobRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void SubmitVideoSummaryJobRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long SubmitVideoSummaryJobRequest::getOwnerId() const { + return ownerId_; } -std::string SubmitVideoSummaryJobRequest::getPipelineId()const -{ - return pipelineId_; +void SubmitVideoSummaryJobRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void SubmitVideoSummaryJobRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string SubmitVideoSummaryJobRequest::getPipelineId() const { + return pipelineId_; } -std::string SubmitVideoSummaryJobRequest::getInput()const -{ - return input_; +void SubmitVideoSummaryJobRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void SubmitVideoSummaryJobRequest::setInput(const std::string& input) -{ - input_ = input; - setParameter("Input", input); +std::string SubmitVideoSummaryJobRequest::getInput() const { + return input_; +} + +void SubmitVideoSummaryJobRequest::setInput(const std::string &input) { + input_ = input; + setParameter(std::string("Input"), input); } diff --git a/mts/src/model/TagCustomPersonRequest.cc b/mts/src/model/TagCustomPersonRequest.cc new file mode 100644 index 000000000..e265e4a1b --- /dev/null +++ b/mts/src/model/TagCustomPersonRequest.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::Mts::Model::TagCustomPersonRequest; + +TagCustomPersonRequest::TagCustomPersonRequest() + : RpcServiceRequest("mts", "2014-06-18", "TagCustomPerson") { + setMethod(HttpRequest::Method::Post); +} + +TagCustomPersonRequest::~TagCustomPersonRequest() {} + +long TagCustomPersonRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void TagCustomPersonRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string TagCustomPersonRequest::getPersonDescription() const { + return personDescription_; +} + +void TagCustomPersonRequest::setPersonDescription(const std::string &personDescription) { + personDescription_ = personDescription; + setParameter(std::string("PersonDescription"), personDescription); +} + +std::string TagCustomPersonRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void TagCustomPersonRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string TagCustomPersonRequest::getCategoryDescription() const { + return categoryDescription_; +} + +void TagCustomPersonRequest::setCategoryDescription(const std::string &categoryDescription) { + categoryDescription_ = categoryDescription; + setParameter(std::string("CategoryDescription"), categoryDescription); +} + +std::string TagCustomPersonRequest::getPersonId() const { + return personId_; +} + +void TagCustomPersonRequest::setPersonId(const std::string &personId) { + personId_ = personId; + setParameter(std::string("PersonId"), personId); +} + +std::string TagCustomPersonRequest::getCategoryId() const { + return categoryId_; +} + +void TagCustomPersonRequest::setCategoryId(const std::string &categoryId) { + categoryId_ = categoryId; + setParameter(std::string("CategoryId"), categoryId); +} + +std::string TagCustomPersonRequest::getPersonName() const { + return personName_; +} + +void TagCustomPersonRequest::setPersonName(const std::string &personName) { + personName_ = personName; + setParameter(std::string("PersonName"), personName); +} + +std::string TagCustomPersonRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void TagCustomPersonRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string TagCustomPersonRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void TagCustomPersonRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long TagCustomPersonRequest::getOwnerId() const { + return ownerId_; +} + +void TagCustomPersonRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string TagCustomPersonRequest::getCategoryName() const { + return categoryName_; +} + +void TagCustomPersonRequest::setCategoryName(const std::string &categoryName) { + categoryName_ = categoryName; + setParameter(std::string("CategoryName"), categoryName); +} + diff --git a/mts/src/model/TagCustomPersonResult.cc b/mts/src/model/TagCustomPersonResult.cc new file mode 100644 index 000000000..44cc785ce --- /dev/null +++ b/mts/src/model/TagCustomPersonResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts; +using namespace AlibabaCloud::Mts::Model; + +TagCustomPersonResult::TagCustomPersonResult() : + ServiceResult() +{} + +TagCustomPersonResult::TagCustomPersonResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagCustomPersonResult::~TagCustomPersonResult() +{} + +void TagCustomPersonResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/mts/src/model/UnbindInputBucketRequest.cc b/mts/src/model/UnbindInputBucketRequest.cc index 20bb19857..eb5785240 100644 --- a/mts/src/model/UnbindInputBucketRequest.cc +++ b/mts/src/model/UnbindInputBucketRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UnbindInputBucketRequest; - -UnbindInputBucketRequest::UnbindInputBucketRequest() : - RpcServiceRequest("mts", "2014-06-18", "UnbindInputBucket") -{ - setMethod(HttpRequest::Method::Post); -} - -UnbindInputBucketRequest::~UnbindInputBucketRequest() -{} - -long UnbindInputBucketRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UnbindInputBucketRequest; + +UnbindInputBucketRequest::UnbindInputBucketRequest() + : RpcServiceRequest("mts", "2014-06-18", "UnbindInputBucket") { + setMethod(HttpRequest::Method::Post); } -void UnbindInputBucketRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnbindInputBucketRequest::~UnbindInputBucketRequest() {} + +long UnbindInputBucketRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnbindInputBucketRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UnbindInputBucketRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnbindInputBucketRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UnbindInputBucketRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UnbindInputBucketRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnbindInputBucketRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UnbindInputBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnbindInputBucketRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnbindInputBucketRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnbindInputBucketRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnbindInputBucketRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnbindInputBucketRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnbindInputBucketRequest::getOwnerId()const -{ - return ownerId_; +void UnbindInputBucketRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnbindInputBucketRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnbindInputBucketRequest::getOwnerId() const { + return ownerId_; } -std::string UnbindInputBucketRequest::getBucket()const -{ - return bucket_; +void UnbindInputBucketRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnbindInputBucketRequest::setBucket(const std::string& bucket) -{ - bucket_ = bucket; - setParameter("Bucket", bucket); +std::string UnbindInputBucketRequest::getBucket() const { + return bucket_; } -std::string UnbindInputBucketRequest::getRoleArn()const -{ - return roleArn_; +void UnbindInputBucketRequest::setBucket(const std::string &bucket) { + bucket_ = bucket; + setParameter(std::string("Bucket"), bucket); } -void UnbindInputBucketRequest::setRoleArn(const std::string& roleArn) -{ - roleArn_ = roleArn; - setParameter("RoleArn", roleArn); +std::string UnbindInputBucketRequest::getRoleArn() const { + return roleArn_; +} + +void UnbindInputBucketRequest::setRoleArn(const std::string &roleArn) { + roleArn_ = roleArn; + setParameter(std::string("RoleArn"), roleArn); } diff --git a/mts/src/model/UnbindOutputBucketRequest.cc b/mts/src/model/UnbindOutputBucketRequest.cc index 134c9b5fa..325b7dc80 100644 --- a/mts/src/model/UnbindOutputBucketRequest.cc +++ b/mts/src/model/UnbindOutputBucketRequest.cc @@ -1,95 +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 - -using AlibabaCloud::Mts::Model::UnbindOutputBucketRequest; - -UnbindOutputBucketRequest::UnbindOutputBucketRequest() : - RpcServiceRequest("mts", "2014-06-18", "UnbindOutputBucket") -{ - setMethod(HttpRequest::Method::Post); -} - -UnbindOutputBucketRequest::~UnbindOutputBucketRequest() -{} - -long UnbindOutputBucketRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UnbindOutputBucketRequest; + +UnbindOutputBucketRequest::UnbindOutputBucketRequest() + : RpcServiceRequest("mts", "2014-06-18", "UnbindOutputBucket") { + setMethod(HttpRequest::Method::Post); } -void UnbindOutputBucketRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UnbindOutputBucketRequest::~UnbindOutputBucketRequest() {} + +long UnbindOutputBucketRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UnbindOutputBucketRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UnbindOutputBucketRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UnbindOutputBucketRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UnbindOutputBucketRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UnbindOutputBucketRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UnbindOutputBucketRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UnbindOutputBucketRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UnbindOutputBucketRequest::getOwnerAccount() const { + return ownerAccount_; } -long UnbindOutputBucketRequest::getOwnerId()const -{ - return ownerId_; +void UnbindOutputBucketRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UnbindOutputBucketRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UnbindOutputBucketRequest::getOwnerId() const { + return ownerId_; } -std::string UnbindOutputBucketRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UnbindOutputBucketRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UnbindOutputBucketRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UnbindOutputBucketRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UnbindOutputBucketRequest::getBucket()const -{ - return bucket_; +void UnbindOutputBucketRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UnbindOutputBucketRequest::setBucket(const std::string& bucket) -{ - bucket_ = bucket; - setParameter("Bucket", bucket); +std::string UnbindOutputBucketRequest::getBucket() const { + return bucket_; +} + +void UnbindOutputBucketRequest::setBucket(const std::string &bucket) { + bucket_ = bucket; + setParameter(std::string("Bucket"), bucket); } diff --git a/mts/src/model/UnregisterCustomFaceRequest.cc b/mts/src/model/UnregisterCustomFaceRequest.cc new file mode 100644 index 000000000..b1dd12392 --- /dev/null +++ b/mts/src/model/UnregisterCustomFaceRequest.cc @@ -0,0 +1,99 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Mts::Model::UnregisterCustomFaceRequest; + +UnregisterCustomFaceRequest::UnregisterCustomFaceRequest() + : RpcServiceRequest("mts", "2014-06-18", "UnregisterCustomFace") { + setMethod(HttpRequest::Method::Post); +} + +UnregisterCustomFaceRequest::~UnregisterCustomFaceRequest() {} + +long UnregisterCustomFaceRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UnregisterCustomFaceRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UnregisterCustomFaceRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UnregisterCustomFaceRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UnregisterCustomFaceRequest::getPersonId() const { + return personId_; +} + +void UnregisterCustomFaceRequest::setPersonId(const std::string &personId) { + personId_ = personId; + setParameter(std::string("PersonId"), personId); +} + +std::string UnregisterCustomFaceRequest::getCategoryId() const { + return categoryId_; +} + +void UnregisterCustomFaceRequest::setCategoryId(const std::string &categoryId) { + categoryId_ = categoryId; + setParameter(std::string("CategoryId"), categoryId); +} + +std::string UnregisterCustomFaceRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UnregisterCustomFaceRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UnregisterCustomFaceRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UnregisterCustomFaceRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +std::string UnregisterCustomFaceRequest::getFaceId() const { + return faceId_; +} + +void UnregisterCustomFaceRequest::setFaceId(const std::string &faceId) { + faceId_ = faceId; + setParameter(std::string("FaceId"), faceId); +} + +long UnregisterCustomFaceRequest::getOwnerId() const { + return ownerId_; +} + +void UnregisterCustomFaceRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + diff --git a/mts/src/model/UnregisterCustomFaceResult.cc b/mts/src/model/UnregisterCustomFaceResult.cc new file mode 100644 index 000000000..e5a2a3be0 --- /dev/null +++ b/mts/src/model/UnregisterCustomFaceResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts; +using namespace AlibabaCloud::Mts::Model; + +UnregisterCustomFaceResult::UnregisterCustomFaceResult() : + ServiceResult() +{} + +UnregisterCustomFaceResult::UnregisterCustomFaceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UnregisterCustomFaceResult::~UnregisterCustomFaceResult() +{} + +void UnregisterCustomFaceResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/mts/src/model/UpdateAsrPipelineRequest.cc b/mts/src/model/UpdateAsrPipelineRequest.cc index f37b072af..637d0ad25 100644 --- a/mts/src/model/UpdateAsrPipelineRequest.cc +++ b/mts/src/model/UpdateAsrPipelineRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdateAsrPipelineRequest; - -UpdateAsrPipelineRequest::UpdateAsrPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateAsrPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateAsrPipelineRequest::~UpdateAsrPipelineRequest() -{} - -long UpdateAsrPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateAsrPipelineRequest; + +UpdateAsrPipelineRequest::UpdateAsrPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateAsrPipeline") { + setMethod(HttpRequest::Method::Post); } -void UpdateAsrPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateAsrPipelineRequest::~UpdateAsrPipelineRequest() {} + +long UpdateAsrPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateAsrPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateAsrPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateAsrPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateAsrPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateAsrPipelineRequest::getState()const -{ - return state_; +void UpdateAsrPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateAsrPipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string UpdateAsrPipelineRequest::getState() const { + return state_; } -std::string UpdateAsrPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateAsrPipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void UpdateAsrPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateAsrPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateAsrPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateAsrPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateAsrPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateAsrPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string UpdateAsrPipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void UpdateAsrPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateAsrPipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string UpdateAsrPipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long UpdateAsrPipelineRequest::getOwnerId()const -{ - return ownerId_; +void UpdateAsrPipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void UpdateAsrPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateAsrPipelineRequest::getOwnerId() const { + return ownerId_; } -int UpdateAsrPipelineRequest::getPriority()const -{ - return priority_; +void UpdateAsrPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateAsrPipelineRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int UpdateAsrPipelineRequest::getPriority() const { + return priority_; } -std::string UpdateAsrPipelineRequest::getPipelineId()const -{ - return pipelineId_; +void UpdateAsrPipelineRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void UpdateAsrPipelineRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string UpdateAsrPipelineRequest::getPipelineId() const { + return pipelineId_; } -std::string UpdateAsrPipelineRequest::getName()const -{ - return name_; +void UpdateAsrPipelineRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void UpdateAsrPipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateAsrPipelineRequest::getName() const { + return name_; +} + +void UpdateAsrPipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/UpdateAsrPipelineResult.cc b/mts/src/model/UpdateAsrPipelineResult.cc index 447af3681..e7c796a83 100644 --- a/mts/src/model/UpdateAsrPipelineResult.cc +++ b/mts/src/model/UpdateAsrPipelineResult.cc @@ -40,19 +40,19 @@ void UpdateAsrPipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); if(!pipelineNode["State"].isNull()) pipeline_.state = pipelineNode["State"].asString(); if(!pipelineNode["Priority"].isNull()) pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); auto notifyConfigNode = pipelineNode["NotifyConfig"]; - if(!notifyConfigNode["Topic"].isNull()) - pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); if(!notifyConfigNode["QueueName"].isNull()) pipeline_.notifyConfig.queueName = notifyConfigNode["QueueName"].asString(); + if(!notifyConfigNode["Topic"].isNull()) + pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); } diff --git a/mts/src/model/UpdateCategoryNameRequest.cc b/mts/src/model/UpdateCategoryNameRequest.cc index 1085fd9d0..91af21375 100644 --- a/mts/src/model/UpdateCategoryNameRequest.cc +++ b/mts/src/model/UpdateCategoryNameRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdateCategoryNameRequest; - -UpdateCategoryNameRequest::UpdateCategoryNameRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateCategoryName") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateCategoryNameRequest::~UpdateCategoryNameRequest() -{} - -long UpdateCategoryNameRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateCategoryNameRequest; + +UpdateCategoryNameRequest::UpdateCategoryNameRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateCategoryName") { + setMethod(HttpRequest::Method::Post); } -void UpdateCategoryNameRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateCategoryNameRequest::~UpdateCategoryNameRequest() {} + +long UpdateCategoryNameRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateCategoryNameRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateCategoryNameRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateCategoryNameRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateCategoryNameRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateCategoryNameRequest::getCateId()const -{ - return cateId_; +void UpdateCategoryNameRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateCategoryNameRequest::setCateId(const std::string& cateId) -{ - cateId_ = cateId; - setParameter("CateId", cateId); +std::string UpdateCategoryNameRequest::getCateId() const { + return cateId_; } -std::string UpdateCategoryNameRequest::getCateName()const -{ - return cateName_; +void UpdateCategoryNameRequest::setCateId(const std::string &cateId) { + cateId_ = cateId; + setParameter(std::string("CateId"), cateId); } -void UpdateCategoryNameRequest::setCateName(const std::string& cateName) -{ - cateName_ = cateName; - setParameter("CateName", cateName); +std::string UpdateCategoryNameRequest::getCateName() const { + return cateName_; } -std::string UpdateCategoryNameRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateCategoryNameRequest::setCateName(const std::string &cateName) { + cateName_ = cateName; + setParameter(std::string("CateName"), cateName); } -void UpdateCategoryNameRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateCategoryNameRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateCategoryNameRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateCategoryNameRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateCategoryNameRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateCategoryNameRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateCategoryNameRequest::getOwnerId()const -{ - return ownerId_; +void UpdateCategoryNameRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateCategoryNameRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateCategoryNameRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateCategoryNameRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/UpdateCensorPipelineRequest.cc b/mts/src/model/UpdateCensorPipelineRequest.cc index 2f4e1cedc..7809c9306 100644 --- a/mts/src/model/UpdateCensorPipelineRequest.cc +++ b/mts/src/model/UpdateCensorPipelineRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdateCensorPipelineRequest; - -UpdateCensorPipelineRequest::UpdateCensorPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateCensorPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateCensorPipelineRequest::~UpdateCensorPipelineRequest() -{} - -long UpdateCensorPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateCensorPipelineRequest; + +UpdateCensorPipelineRequest::UpdateCensorPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateCensorPipeline") { + setMethod(HttpRequest::Method::Post); } -void UpdateCensorPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateCensorPipelineRequest::~UpdateCensorPipelineRequest() {} + +long UpdateCensorPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateCensorPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateCensorPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateCensorPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateCensorPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateCensorPipelineRequest::getState()const -{ - return state_; +void UpdateCensorPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateCensorPipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string UpdateCensorPipelineRequest::getState() const { + return state_; } -std::string UpdateCensorPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateCensorPipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void UpdateCensorPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateCensorPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateCensorPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateCensorPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateCensorPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateCensorPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string UpdateCensorPipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void UpdateCensorPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateCensorPipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string UpdateCensorPipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long UpdateCensorPipelineRequest::getOwnerId()const -{ - return ownerId_; +void UpdateCensorPipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void UpdateCensorPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateCensorPipelineRequest::getOwnerId() const { + return ownerId_; } -int UpdateCensorPipelineRequest::getPriority()const -{ - return priority_; +void UpdateCensorPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateCensorPipelineRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int UpdateCensorPipelineRequest::getPriority() const { + return priority_; } -std::string UpdateCensorPipelineRequest::getPipelineId()const -{ - return pipelineId_; +void UpdateCensorPipelineRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void UpdateCensorPipelineRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string UpdateCensorPipelineRequest::getPipelineId() const { + return pipelineId_; } -std::string UpdateCensorPipelineRequest::getName()const -{ - return name_; +void UpdateCensorPipelineRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void UpdateCensorPipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateCensorPipelineRequest::getName() const { + return name_; +} + +void UpdateCensorPipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/UpdateCensorPipelineResult.cc b/mts/src/model/UpdateCensorPipelineResult.cc index c43c255fa..b5e7f96ca 100644 --- a/mts/src/model/UpdateCensorPipelineResult.cc +++ b/mts/src/model/UpdateCensorPipelineResult.cc @@ -40,14 +40,14 @@ void UpdateCensorPipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); if(!pipelineNode["State"].isNull()) pipeline_.state = pipelineNode["State"].asString(); if(!pipelineNode["Priority"].isNull()) pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); auto notifyConfigNode = pipelineNode["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/UpdateCoverPipelineRequest.cc b/mts/src/model/UpdateCoverPipelineRequest.cc index 4acdbc943..7a003421f 100644 --- a/mts/src/model/UpdateCoverPipelineRequest.cc +++ b/mts/src/model/UpdateCoverPipelineRequest.cc @@ -1,150 +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::Mts::Model::UpdateCoverPipelineRequest; - -UpdateCoverPipelineRequest::UpdateCoverPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateCoverPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateCoverPipelineRequest::~UpdateCoverPipelineRequest() -{} - -long UpdateCoverPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateCoverPipelineRequest; + +UpdateCoverPipelineRequest::UpdateCoverPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateCoverPipeline") { + setMethod(HttpRequest::Method::Post); } -void UpdateCoverPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateCoverPipelineRequest::~UpdateCoverPipelineRequest() {} + +long UpdateCoverPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateCoverPipelineRequest::getRole()const -{ - return role_; +void UpdateCoverPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateCoverPipelineRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); +std::string UpdateCoverPipelineRequest::getRole() const { + return role_; } -std::string UpdateCoverPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateCoverPipelineRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); } -void UpdateCoverPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateCoverPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateCoverPipelineRequest::getState()const -{ - return state_; +void UpdateCoverPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateCoverPipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string UpdateCoverPipelineRequest::getState() const { + return state_; } -std::string UpdateCoverPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateCoverPipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void UpdateCoverPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateCoverPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateCoverPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateCoverPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateCoverPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateCoverPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string UpdateCoverPipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void UpdateCoverPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateCoverPipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string UpdateCoverPipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long UpdateCoverPipelineRequest::getOwnerId()const -{ - return ownerId_; +void UpdateCoverPipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void UpdateCoverPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateCoverPipelineRequest::getOwnerId() const { + return ownerId_; } -int UpdateCoverPipelineRequest::getPriority()const -{ - return priority_; +void UpdateCoverPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateCoverPipelineRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int UpdateCoverPipelineRequest::getPriority() const { + return priority_; } -std::string UpdateCoverPipelineRequest::getPipelineId()const -{ - return pipelineId_; +void UpdateCoverPipelineRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void UpdateCoverPipelineRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string UpdateCoverPipelineRequest::getPipelineId() const { + return pipelineId_; } -std::string UpdateCoverPipelineRequest::getName()const -{ - return name_; +void UpdateCoverPipelineRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void UpdateCoverPipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateCoverPipelineRequest::getName() const { + return name_; +} + +void UpdateCoverPipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/UpdateCoverPipelineResult.cc b/mts/src/model/UpdateCoverPipelineResult.cc index 8b66ba420..0f8f5a9aa 100644 --- a/mts/src/model/UpdateCoverPipelineResult.cc +++ b/mts/src/model/UpdateCoverPipelineResult.cc @@ -40,16 +40,16 @@ void UpdateCoverPipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); if(!pipelineNode["State"].isNull()) pipeline_.state = pipelineNode["State"].asString(); if(!pipelineNode["Priority"].isNull()) pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); if(!pipelineNode["Role"].isNull()) pipeline_.role = pipelineNode["Role"].asString(); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); auto notifyConfigNode = pipelineNode["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/UpdateMCTemplateRequest.cc b/mts/src/model/UpdateMCTemplateRequest.cc index 7b9e114c1..4346709cd 100644 --- a/mts/src/model/UpdateMCTemplateRequest.cc +++ b/mts/src/model/UpdateMCTemplateRequest.cc @@ -1,216 +1,180 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Mts::Model::UpdateMCTemplateRequest; - -UpdateMCTemplateRequest::UpdateMCTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateMCTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateMCTemplateRequest::~UpdateMCTemplateRequest() -{} - -std::string UpdateMCTemplateRequest::getPolitics()const -{ - return politics_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateMCTemplateRequest; + +UpdateMCTemplateRequest::UpdateMCTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateMCTemplate") { + setMethod(HttpRequest::Method::Post); } -void UpdateMCTemplateRequest::setPolitics(const std::string& politics) -{ - politics_ = politics; - setParameter("Politics", politics); +UpdateMCTemplateRequest::~UpdateMCTemplateRequest() {} + +std::string UpdateMCTemplateRequest::getPolitics() const { + return politics_; } -long UpdateMCTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void UpdateMCTemplateRequest::setPolitics(const std::string &politics) { + politics_ = politics; + setParameter(std::string("Politics"), politics); } -void UpdateMCTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long UpdateMCTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateMCTemplateRequest::getAbuse()const -{ - return abuse_; +void UpdateMCTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateMCTemplateRequest::setAbuse(const std::string& abuse) -{ - abuse_ = abuse; - setParameter("Abuse", abuse); +std::string UpdateMCTemplateRequest::getAbuse() const { + return abuse_; } -std::string UpdateMCTemplateRequest::getQrcode()const -{ - return qrcode_; +void UpdateMCTemplateRequest::setAbuse(const std::string &abuse) { + abuse_ = abuse; + setParameter(std::string("Abuse"), abuse); } -void UpdateMCTemplateRequest::setQrcode(const std::string& qrcode) -{ - qrcode_ = qrcode; - setParameter("Qrcode", qrcode); +std::string UpdateMCTemplateRequest::getQrcode() const { + return qrcode_; } -std::string UpdateMCTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateMCTemplateRequest::setQrcode(const std::string &qrcode) { + qrcode_ = qrcode; + setParameter(std::string("Qrcode"), qrcode); } -void UpdateMCTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateMCTemplateRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateMCTemplateRequest::getPorn()const -{ - return porn_; +void UpdateMCTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateMCTemplateRequest::setPorn(const std::string& porn) -{ - porn_ = porn; - setParameter("Porn", porn); +std::string UpdateMCTemplateRequest::getPorn() const { + return porn_; } -std::string UpdateMCTemplateRequest::getTerrorism()const -{ - return terrorism_; +void UpdateMCTemplateRequest::setPorn(const std::string &porn) { + porn_ = porn; + setParameter(std::string("Porn"), porn); } -void UpdateMCTemplateRequest::setTerrorism(const std::string& terrorism) -{ - terrorism_ = terrorism; - setParameter("Terrorism", terrorism); +std::string UpdateMCTemplateRequest::getTerrorism() const { + return terrorism_; } -std::string UpdateMCTemplateRequest::getLogo()const -{ - return logo_; +void UpdateMCTemplateRequest::setTerrorism(const std::string &terrorism) { + terrorism_ = terrorism; + setParameter(std::string("Terrorism"), terrorism); } -void UpdateMCTemplateRequest::setLogo(const std::string& logo) -{ - logo_ = logo; - setParameter("Logo", logo); +std::string UpdateMCTemplateRequest::getLogo() const { + return logo_; } -std::string UpdateMCTemplateRequest::getLive()const -{ - return live_; +void UpdateMCTemplateRequest::setLogo(const std::string &logo) { + logo_ = logo; + setParameter(std::string("Logo"), logo); } -void UpdateMCTemplateRequest::setLive(const std::string& live) -{ - live_ = live; - setParameter("Live", live); +std::string UpdateMCTemplateRequest::getLive() const { + return live_; } -std::string UpdateMCTemplateRequest::getContraband()const -{ - return contraband_; +void UpdateMCTemplateRequest::setLive(const std::string &live) { + live_ = live; + setParameter(std::string("Live"), live); } -void UpdateMCTemplateRequest::setContraband(const std::string& contraband) -{ - contraband_ = contraband; - setParameter("Contraband", contraband); +std::string UpdateMCTemplateRequest::getContraband() const { + return contraband_; } -std::string UpdateMCTemplateRequest::getAd()const -{ - return ad_; +void UpdateMCTemplateRequest::setContraband(const std::string &contraband) { + contraband_ = contraband; + setParameter(std::string("Contraband"), contraband); } -void UpdateMCTemplateRequest::setAd(const std::string& ad) -{ - ad_ = ad; - setParameter("Ad", ad); +std::string UpdateMCTemplateRequest::getAd() const { + return ad_; } -std::string UpdateMCTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateMCTemplateRequest::setAd(const std::string &ad) { + ad_ = ad; + setParameter(std::string("Ad"), ad); } -void UpdateMCTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateMCTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateMCTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateMCTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateMCTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateMCTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateMCTemplateRequest::getOwnerId()const -{ - return ownerId_; +void UpdateMCTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateMCTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateMCTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateMCTemplateRequest::getTemplateId()const -{ - return templateId_; +void UpdateMCTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateMCTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string UpdateMCTemplateRequest::getTemplateId() const { + return templateId_; } -std::string UpdateMCTemplateRequest::getName()const -{ - return name_; +void UpdateMCTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void UpdateMCTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateMCTemplateRequest::getName() const { + return name_; } -std::string UpdateMCTemplateRequest::getSpam()const -{ - return spam_; +void UpdateMCTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void UpdateMCTemplateRequest::setSpam(const std::string& spam) -{ - spam_ = spam; - setParameter("Spam", spam); +std::string UpdateMCTemplateRequest::getSpam() const { + return spam_; +} + +void UpdateMCTemplateRequest::setSpam(const std::string &spam) { + spam_ = spam; + setParameter(std::string("spam"), spam); } diff --git a/mts/src/model/UpdateMCTemplateResult.cc b/mts/src/model/UpdateMCTemplateResult.cc index e431b152f..d0e901d3e 100644 --- a/mts/src/model/UpdateMCTemplateResult.cc +++ b/mts/src/model/UpdateMCTemplateResult.cc @@ -40,32 +40,32 @@ void UpdateMCTemplateResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto _templateNode = value["Template"]; - if(!_templateNode["TemplateId"].isNull()) - _template_.templateId = _templateNode["TemplateId"].asString(); - if(!_templateNode["Name"].isNull()) - _template_.name = _templateNode["Name"].asString(); - if(!_templateNode["State"].isNull()) - _template_.state = _templateNode["State"].asString(); - if(!_templateNode["Porn"].isNull()) - _template_.porn = _templateNode["Porn"].asString(); - if(!_templateNode["Terrorism"].isNull()) - _template_.terrorism = _templateNode["Terrorism"].asString(); - if(!_templateNode["Politics"].isNull()) - _template_.politics = _templateNode["Politics"].asString(); - if(!_templateNode["Ad"].isNull()) - _template_.ad = _templateNode["Ad"].asString(); - if(!_templateNode["Qrcode"].isNull()) - _template_.qrcode = _templateNode["Qrcode"].asString(); - if(!_templateNode["Live"].isNull()) - _template_.live = _templateNode["Live"].asString(); if(!_templateNode["Logo"].isNull()) _template_.logo = _templateNode["Logo"].asString(); if(!_templateNode["Abuse"].isNull()) _template_.abuse = _templateNode["Abuse"].asString(); - if(!_templateNode["Contraband"].isNull()) - _template_.contraband = _templateNode["Contraband"].asString(); + if(!_templateNode["State"].isNull()) + _template_.state = _templateNode["State"].asString(); + if(!_templateNode["Terrorism"].isNull()) + _template_.terrorism = _templateNode["Terrorism"].asString(); + if(!_templateNode["Politics"].isNull()) + _template_.politics = _templateNode["Politics"].asString(); + if(!_templateNode["Qrcode"].isNull()) + _template_.qrcode = _templateNode["Qrcode"].asString(); + if(!_templateNode["Live"].isNull()) + _template_.live = _templateNode["Live"].asString(); if(!_templateNode["Spam"].isNull()) _template_.spam = _templateNode["Spam"].asString(); + if(!_templateNode["Contraband"].isNull()) + _template_.contraband = _templateNode["Contraband"].asString(); + if(!_templateNode["Ad"].isNull()) + _template_.ad = _templateNode["Ad"].asString(); + if(!_templateNode["Porn"].isNull()) + _template_.porn = _templateNode["Porn"].asString(); + if(!_templateNode["Name"].isNull()) + _template_.name = _templateNode["Name"].asString(); + if(!_templateNode["TemplateId"].isNull()) + _template_.templateId = _templateNode["TemplateId"].asString(); } diff --git a/mts/src/model/UpdateMcuTemplateRequest.cc b/mts/src/model/UpdateMcuTemplateRequest.cc index 883ff3de8..37f6118c2 100644 --- a/mts/src/model/UpdateMcuTemplateRequest.cc +++ b/mts/src/model/UpdateMcuTemplateRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdateMcuTemplateRequest; - -UpdateMcuTemplateRequest::UpdateMcuTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateMcuTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateMcuTemplateRequest::~UpdateMcuTemplateRequest() -{} - -std::string UpdateMcuTemplateRequest::get_Template()const -{ - return _template_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateMcuTemplateRequest; + +UpdateMcuTemplateRequest::UpdateMcuTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateMcuTemplate") { + setMethod(HttpRequest::Method::Post); } -void UpdateMcuTemplateRequest::set_Template(const std::string& _template) -{ - _template_ = _template; - setParameter("_Template", _template); +UpdateMcuTemplateRequest::~UpdateMcuTemplateRequest() {} + +std::string UpdateMcuTemplateRequest::get_Template() const { + return _template_; } -long UpdateMcuTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void UpdateMcuTemplateRequest::set_Template(const std::string &_template) { + _template_ = _template; + setParameter(std::string("Template"), _template); } -void UpdateMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long UpdateMcuTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateMcuTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateMcuTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateMcuTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateMcuTemplateRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateMcuTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateMcuTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateMcuTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateMcuTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateMcuTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateMcuTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateMcuTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateMcuTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateMcuTemplateRequest::getOwnerId()const -{ - return ownerId_; +void UpdateMcuTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateMcuTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateMcuTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateMcuTemplateRequest::getTemplateId()const -{ - return templateId_; +void UpdateMcuTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateMcuTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string UpdateMcuTemplateRequest::getTemplateId() const { + return templateId_; +} + +void UpdateMcuTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } diff --git a/mts/src/model/UpdateMediaCategoryRequest.cc b/mts/src/model/UpdateMediaCategoryRequest.cc index 21933179c..793f53b09 100644 --- a/mts/src/model/UpdateMediaCategoryRequest.cc +++ b/mts/src/model/UpdateMediaCategoryRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdateMediaCategoryRequest; - -UpdateMediaCategoryRequest::UpdateMediaCategoryRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateMediaCategory") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateMediaCategoryRequest::~UpdateMediaCategoryRequest() -{} - -long UpdateMediaCategoryRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateMediaCategoryRequest; + +UpdateMediaCategoryRequest::UpdateMediaCategoryRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateMediaCategory") { + setMethod(HttpRequest::Method::Post); } -void UpdateMediaCategoryRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateMediaCategoryRequest::~UpdateMediaCategoryRequest() {} + +long UpdateMediaCategoryRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateMediaCategoryRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateMediaCategoryRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateMediaCategoryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateMediaCategoryRequest::getAccessKeyId() const { + return accessKeyId_; } -long UpdateMediaCategoryRequest::getCateId()const -{ - return cateId_; +void UpdateMediaCategoryRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateMediaCategoryRequest::setCateId(long cateId) -{ - cateId_ = cateId; - setParameter("CateId", std::to_string(cateId)); +long UpdateMediaCategoryRequest::getCateId() const { + return cateId_; } -std::string UpdateMediaCategoryRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateMediaCategoryRequest::setCateId(long cateId) { + cateId_ = cateId; + setParameter(std::string("CateId"), std::to_string(cateId)); } -void UpdateMediaCategoryRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateMediaCategoryRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateMediaCategoryRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateMediaCategoryRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateMediaCategoryRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateMediaCategoryRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateMediaCategoryRequest::getOwnerId()const -{ - return ownerId_; +void UpdateMediaCategoryRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateMediaCategoryRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateMediaCategoryRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateMediaCategoryRequest::getMediaId()const -{ - return mediaId_; +void UpdateMediaCategoryRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateMediaCategoryRequest::setMediaId(const std::string& mediaId) -{ - mediaId_ = mediaId; - setParameter("MediaId", mediaId); +std::string UpdateMediaCategoryRequest::getMediaId() const { + return mediaId_; +} + +void UpdateMediaCategoryRequest::setMediaId(const std::string &mediaId) { + mediaId_ = mediaId; + setParameter(std::string("MediaId"), mediaId); } diff --git a/mts/src/model/UpdateMediaCoverRequest.cc b/mts/src/model/UpdateMediaCoverRequest.cc index eb3577b8f..7fde6cd12 100644 --- a/mts/src/model/UpdateMediaCoverRequest.cc +++ b/mts/src/model/UpdateMediaCoverRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdateMediaCoverRequest; - -UpdateMediaCoverRequest::UpdateMediaCoverRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateMediaCover") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateMediaCoverRequest::~UpdateMediaCoverRequest() -{} - -long UpdateMediaCoverRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateMediaCoverRequest; + +UpdateMediaCoverRequest::UpdateMediaCoverRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateMediaCover") { + setMethod(HttpRequest::Method::Post); } -void UpdateMediaCoverRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateMediaCoverRequest::~UpdateMediaCoverRequest() {} + +long UpdateMediaCoverRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateMediaCoverRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateMediaCoverRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateMediaCoverRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateMediaCoverRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateMediaCoverRequest::getCoverURL()const -{ - return coverURL_; +void UpdateMediaCoverRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateMediaCoverRequest::setCoverURL(const std::string& coverURL) -{ - coverURL_ = coverURL; - setParameter("CoverURL", coverURL); +std::string UpdateMediaCoverRequest::getCoverURL() const { + return coverURL_; } -std::string UpdateMediaCoverRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateMediaCoverRequest::setCoverURL(const std::string &coverURL) { + coverURL_ = coverURL; + setParameter(std::string("CoverURL"), coverURL); } -void UpdateMediaCoverRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateMediaCoverRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateMediaCoverRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateMediaCoverRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateMediaCoverRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateMediaCoverRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateMediaCoverRequest::getOwnerId()const -{ - return ownerId_; +void UpdateMediaCoverRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateMediaCoverRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateMediaCoverRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateMediaCoverRequest::getMediaId()const -{ - return mediaId_; +void UpdateMediaCoverRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateMediaCoverRequest::setMediaId(const std::string& mediaId) -{ - mediaId_ = mediaId; - setParameter("MediaId", mediaId); +std::string UpdateMediaCoverRequest::getMediaId() const { + return mediaId_; +} + +void UpdateMediaCoverRequest::setMediaId(const std::string &mediaId) { + mediaId_ = mediaId; + setParameter(std::string("MediaId"), mediaId); } diff --git a/mts/src/model/UpdateMediaPublishStateRequest.cc b/mts/src/model/UpdateMediaPublishStateRequest.cc index ca3eac257..a47eb6653 100644 --- a/mts/src/model/UpdateMediaPublishStateRequest.cc +++ b/mts/src/model/UpdateMediaPublishStateRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdateMediaPublishStateRequest; - -UpdateMediaPublishStateRequest::UpdateMediaPublishStateRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateMediaPublishState") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateMediaPublishStateRequest::~UpdateMediaPublishStateRequest() -{} - -long UpdateMediaPublishStateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateMediaPublishStateRequest; + +UpdateMediaPublishStateRequest::UpdateMediaPublishStateRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateMediaPublishState") { + setMethod(HttpRequest::Method::Post); } -void UpdateMediaPublishStateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateMediaPublishStateRequest::~UpdateMediaPublishStateRequest() {} + +long UpdateMediaPublishStateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateMediaPublishStateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateMediaPublishStateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateMediaPublishStateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateMediaPublishStateRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateMediaPublishStateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateMediaPublishStateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateMediaPublishStateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateMediaPublishStateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateMediaPublishStateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateMediaPublishStateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateMediaPublishStateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateMediaPublishStateRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateMediaPublishStateRequest::getOwnerId()const -{ - return ownerId_; +void UpdateMediaPublishStateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateMediaPublishStateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateMediaPublishStateRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateMediaPublishStateRequest::getMediaId()const -{ - return mediaId_; +void UpdateMediaPublishStateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateMediaPublishStateRequest::setMediaId(const std::string& mediaId) -{ - mediaId_ = mediaId; - setParameter("MediaId", mediaId); +std::string UpdateMediaPublishStateRequest::getMediaId() const { + return mediaId_; } -bool UpdateMediaPublishStateRequest::getPublish()const -{ - return publish_; +void UpdateMediaPublishStateRequest::setMediaId(const std::string &mediaId) { + mediaId_ = mediaId; + setParameter(std::string("MediaId"), mediaId); } -void UpdateMediaPublishStateRequest::setPublish(bool publish) -{ - publish_ = publish; - setParameter("Publish", publish ? "true" : "false"); +bool UpdateMediaPublishStateRequest::getPublish() const { + return publish_; +} + +void UpdateMediaPublishStateRequest::setPublish(bool publish) { + publish_ = publish; + setParameter(std::string("Publish"), publish ? "true" : "false"); } diff --git a/mts/src/model/UpdateMediaRequest.cc b/mts/src/model/UpdateMediaRequest.cc index 0327cea3a..06856bc1a 100644 --- a/mts/src/model/UpdateMediaRequest.cc +++ b/mts/src/model/UpdateMediaRequest.cc @@ -1,150 +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::Mts::Model::UpdateMediaRequest; - -UpdateMediaRequest::UpdateMediaRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateMedia") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateMediaRequest::~UpdateMediaRequest() -{} - -long UpdateMediaRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateMediaRequest; + +UpdateMediaRequest::UpdateMediaRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateMedia") { + setMethod(HttpRequest::Method::Post); } -void UpdateMediaRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateMediaRequest::~UpdateMediaRequest() {} + +long UpdateMediaRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateMediaRequest::getDescription()const -{ - return description_; +void UpdateMediaRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateMediaRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string UpdateMediaRequest::getDescription() const { + return description_; } -std::string UpdateMediaRequest::getTitle()const -{ - return title_; +void UpdateMediaRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void UpdateMediaRequest::setTitle(const std::string& title) -{ - title_ = title; - setParameter("Title", title); +std::string UpdateMediaRequest::getTitle() const { + return title_; } -std::string UpdateMediaRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateMediaRequest::setTitle(const std::string &title) { + title_ = title; + setParameter(std::string("Title"), title); } -void UpdateMediaRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateMediaRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateMediaRequest::getCoverURL()const -{ - return coverURL_; +void UpdateMediaRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateMediaRequest::setCoverURL(const std::string& coverURL) -{ - coverURL_ = coverURL; - setParameter("CoverURL", coverURL); +std::string UpdateMediaRequest::getCoverURL() const { + return coverURL_; } -long UpdateMediaRequest::getCateId()const -{ - return cateId_; +void UpdateMediaRequest::setCoverURL(const std::string &coverURL) { + coverURL_ = coverURL; + setParameter(std::string("CoverURL"), coverURL); } -void UpdateMediaRequest::setCateId(long cateId) -{ - cateId_ = cateId; - setParameter("CateId", std::to_string(cateId)); +long UpdateMediaRequest::getCateId() const { + return cateId_; } -std::string UpdateMediaRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateMediaRequest::setCateId(long cateId) { + cateId_ = cateId; + setParameter(std::string("CateId"), std::to_string(cateId)); } -void UpdateMediaRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateMediaRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateMediaRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateMediaRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateMediaRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateMediaRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateMediaRequest::getOwnerId()const -{ - return ownerId_; +void UpdateMediaRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateMediaRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateMediaRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateMediaRequest::getMediaId()const -{ - return mediaId_; +void UpdateMediaRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateMediaRequest::setMediaId(const std::string& mediaId) -{ - mediaId_ = mediaId; - setParameter("MediaId", mediaId); +std::string UpdateMediaRequest::getMediaId() const { + return mediaId_; } -std::string UpdateMediaRequest::getTags()const -{ - return tags_; +void UpdateMediaRequest::setMediaId(const std::string &mediaId) { + mediaId_ = mediaId; + setParameter(std::string("MediaId"), mediaId); } -void UpdateMediaRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +std::string UpdateMediaRequest::getTags() const { + return tags_; +} + +void UpdateMediaRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); } diff --git a/mts/src/model/UpdateMediaResult.cc b/mts/src/model/UpdateMediaResult.cc index 683c7b09b..5507b7b9a 100644 --- a/mts/src/model/UpdateMediaResult.cc +++ b/mts/src/model/UpdateMediaResult.cc @@ -40,41 +40,41 @@ void UpdateMediaResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto mediaNode = value["Media"]; - if(!mediaNode["MediaId"].isNull()) - media_.mediaId = mediaNode["MediaId"].asString(); - if(!mediaNode["Title"].isNull()) - media_.title = mediaNode["Title"].asString(); - if(!mediaNode["Description"].isNull()) - media_.description = mediaNode["Description"].asString(); - if(!mediaNode["CoverURL"].isNull()) - media_.coverURL = mediaNode["CoverURL"].asString(); - if(!mediaNode["CateId"].isNull()) - media_.cateId = std::stol(mediaNode["CateId"].asString()); - if(!mediaNode["Duration"].isNull()) - media_.duration = mediaNode["Duration"].asString(); - if(!mediaNode["Format"].isNull()) - media_.format = mediaNode["Format"].asString(); - if(!mediaNode["Size"].isNull()) - media_.size = mediaNode["Size"].asString(); - if(!mediaNode["Bitrate"].isNull()) - media_.bitrate = mediaNode["Bitrate"].asString(); - if(!mediaNode["Width"].isNull()) - media_.width = mediaNode["Width"].asString(); - if(!mediaNode["Height"].isNull()) - media_.height = mediaNode["Height"].asString(); - if(!mediaNode["Fps"].isNull()) - media_.fps = mediaNode["Fps"].asString(); - if(!mediaNode["PublishState"].isNull()) - media_.publishState = mediaNode["PublishState"].asString(); - if(!mediaNode["CensorState"].isNull()) - media_.censorState = mediaNode["CensorState"].asString(); if(!mediaNode["CreationTime"].isNull()) media_.creationTime = mediaNode["CreationTime"].asString(); + if(!mediaNode["CateId"].isNull()) + media_.cateId = std::stol(mediaNode["CateId"].asString()); + if(!mediaNode["Height"].isNull()) + media_.height = mediaNode["Height"].asString(); + if(!mediaNode["CensorState"].isNull()) + media_.censorState = mediaNode["CensorState"].asString(); + if(!mediaNode["Bitrate"].isNull()) + media_.bitrate = mediaNode["Bitrate"].asString(); + if(!mediaNode["MediaId"].isNull()) + media_.mediaId = mediaNode["MediaId"].asString(); + if(!mediaNode["PublishState"].isNull()) + media_.publishState = mediaNode["PublishState"].asString(); + if(!mediaNode["Description"].isNull()) + media_.description = mediaNode["Description"].asString(); + if(!mediaNode["Width"].isNull()) + media_.width = mediaNode["Width"].asString(); + if(!mediaNode["Size"].isNull()) + media_.size = mediaNode["Size"].asString(); + if(!mediaNode["CoverURL"].isNull()) + media_.coverURL = mediaNode["CoverURL"].asString(); + if(!mediaNode["Duration"].isNull()) + media_.duration = mediaNode["Duration"].asString(); + if(!mediaNode["Fps"].isNull()) + media_.fps = mediaNode["Fps"].asString(); + if(!mediaNode["Title"].isNull()) + media_.title = mediaNode["Title"].asString(); + if(!mediaNode["Format"].isNull()) + media_.format = mediaNode["Format"].asString(); auto fileNode = mediaNode["File"]; - if(!fileNode["URL"].isNull()) - media_.file.uRL = fileNode["URL"].asString(); if(!fileNode["State"].isNull()) media_.file.state = fileNode["State"].asString(); + if(!fileNode["URL"].isNull()) + media_.file.uRL = fileNode["URL"].asString(); auto allTags = mediaNode["Tags"]["Tag"]; for (auto value : allTags) media_.tags.push_back(value.asString()); diff --git a/mts/src/model/UpdateMediaWorkflowRequest.cc b/mts/src/model/UpdateMediaWorkflowRequest.cc index 06a1ec9cd..69f4dc6fe 100644 --- a/mts/src/model/UpdateMediaWorkflowRequest.cc +++ b/mts/src/model/UpdateMediaWorkflowRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdateMediaWorkflowRequest; - -UpdateMediaWorkflowRequest::UpdateMediaWorkflowRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateMediaWorkflow") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateMediaWorkflowRequest::~UpdateMediaWorkflowRequest() -{} - -long UpdateMediaWorkflowRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateMediaWorkflowRequest; + +UpdateMediaWorkflowRequest::UpdateMediaWorkflowRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateMediaWorkflow") { + setMethod(HttpRequest::Method::Post); } -void UpdateMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateMediaWorkflowRequest::~UpdateMediaWorkflowRequest() {} + +long UpdateMediaWorkflowRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateMediaWorkflowRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateMediaWorkflowRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateMediaWorkflowRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateMediaWorkflowRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateMediaWorkflowRequest::getMediaWorkflowId()const -{ - return mediaWorkflowId_; +void UpdateMediaWorkflowRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateMediaWorkflowRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) -{ - mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); +std::string UpdateMediaWorkflowRequest::getMediaWorkflowId() const { + return mediaWorkflowId_; } -std::string UpdateMediaWorkflowRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateMediaWorkflowRequest::setMediaWorkflowId(const std::string &mediaWorkflowId) { + mediaWorkflowId_ = mediaWorkflowId; + setParameter(std::string("MediaWorkflowId"), mediaWorkflowId); } -void UpdateMediaWorkflowRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateMediaWorkflowRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateMediaWorkflowRequest::getTopology()const -{ - return topology_; +void UpdateMediaWorkflowRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateMediaWorkflowRequest::setTopology(const std::string& topology) -{ - topology_ = topology; - setParameter("Topology", topology); +std::string UpdateMediaWorkflowRequest::getTopology() const { + return topology_; } -std::string UpdateMediaWorkflowRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateMediaWorkflowRequest::setTopology(const std::string &topology) { + topology_ = topology; + setParameter(std::string("Topology"), topology); } -void UpdateMediaWorkflowRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateMediaWorkflowRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateMediaWorkflowRequest::getOwnerId()const -{ - return ownerId_; +void UpdateMediaWorkflowRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateMediaWorkflowRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateMediaWorkflowRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateMediaWorkflowRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } diff --git a/mts/src/model/UpdateMediaWorkflowResult.cc b/mts/src/model/UpdateMediaWorkflowResult.cc index fc2961348..1f55e01ea 100644 --- a/mts/src/model/UpdateMediaWorkflowResult.cc +++ b/mts/src/model/UpdateMediaWorkflowResult.cc @@ -40,18 +40,18 @@ void UpdateMediaWorkflowResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; + if(!mediaWorkflowNode["CreationTime"].isNull()) + mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) mediaWorkflow_.mediaWorkflowId = mediaWorkflowNode["MediaWorkflowId"].asString(); + if(!mediaWorkflowNode["State"].isNull()) + mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); + if(!mediaWorkflowNode["TriggerMode"].isNull()) + mediaWorkflow_.triggerMode = mediaWorkflowNode["TriggerMode"].asString(); if(!mediaWorkflowNode["Name"].isNull()) mediaWorkflow_.name = mediaWorkflowNode["Name"].asString(); if(!mediaWorkflowNode["Topology"].isNull()) mediaWorkflow_.topology = mediaWorkflowNode["Topology"].asString(); - if(!mediaWorkflowNode["TriggerMode"].isNull()) - mediaWorkflow_.triggerMode = mediaWorkflowNode["TriggerMode"].asString(); - if(!mediaWorkflowNode["State"].isNull()) - mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); - if(!mediaWorkflowNode["CreationTime"].isNull()) - mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); } diff --git a/mts/src/model/UpdateMediaWorkflowTriggerModeRequest.cc b/mts/src/model/UpdateMediaWorkflowTriggerModeRequest.cc index edb9f7d4e..e55e7fa33 100644 --- a/mts/src/model/UpdateMediaWorkflowTriggerModeRequest.cc +++ b/mts/src/model/UpdateMediaWorkflowTriggerModeRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdateMediaWorkflowTriggerModeRequest; - -UpdateMediaWorkflowTriggerModeRequest::UpdateMediaWorkflowTriggerModeRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateMediaWorkflowTriggerMode") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateMediaWorkflowTriggerModeRequest::~UpdateMediaWorkflowTriggerModeRequest() -{} - -long UpdateMediaWorkflowTriggerModeRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateMediaWorkflowTriggerModeRequest; + +UpdateMediaWorkflowTriggerModeRequest::UpdateMediaWorkflowTriggerModeRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateMediaWorkflowTriggerMode") { + setMethod(HttpRequest::Method::Post); } -void UpdateMediaWorkflowTriggerModeRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateMediaWorkflowTriggerModeRequest::~UpdateMediaWorkflowTriggerModeRequest() {} + +long UpdateMediaWorkflowTriggerModeRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateMediaWorkflowTriggerModeRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateMediaWorkflowTriggerModeRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateMediaWorkflowTriggerModeRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateMediaWorkflowTriggerModeRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateMediaWorkflowTriggerModeRequest::getMediaWorkflowId()const -{ - return mediaWorkflowId_; +void UpdateMediaWorkflowTriggerModeRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateMediaWorkflowTriggerModeRequest::setMediaWorkflowId(const std::string& mediaWorkflowId) -{ - mediaWorkflowId_ = mediaWorkflowId; - setParameter("MediaWorkflowId", mediaWorkflowId); +std::string UpdateMediaWorkflowTriggerModeRequest::getMediaWorkflowId() const { + return mediaWorkflowId_; } -std::string UpdateMediaWorkflowTriggerModeRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateMediaWorkflowTriggerModeRequest::setMediaWorkflowId(const std::string &mediaWorkflowId) { + mediaWorkflowId_ = mediaWorkflowId; + setParameter(std::string("MediaWorkflowId"), mediaWorkflowId); } -void UpdateMediaWorkflowTriggerModeRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateMediaWorkflowTriggerModeRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateMediaWorkflowTriggerModeRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateMediaWorkflowTriggerModeRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateMediaWorkflowTriggerModeRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateMediaWorkflowTriggerModeRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateMediaWorkflowTriggerModeRequest::getOwnerId()const -{ - return ownerId_; +void UpdateMediaWorkflowTriggerModeRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateMediaWorkflowTriggerModeRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateMediaWorkflowTriggerModeRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateMediaWorkflowTriggerModeRequest::getTriggerMode()const -{ - return triggerMode_; +void UpdateMediaWorkflowTriggerModeRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateMediaWorkflowTriggerModeRequest::setTriggerMode(const std::string& triggerMode) -{ - triggerMode_ = triggerMode; - setParameter("TriggerMode", triggerMode); +std::string UpdateMediaWorkflowTriggerModeRequest::getTriggerMode() const { + return triggerMode_; +} + +void UpdateMediaWorkflowTriggerModeRequest::setTriggerMode(const std::string &triggerMode) { + triggerMode_ = triggerMode; + setParameter(std::string("TriggerMode"), triggerMode); } diff --git a/mts/src/model/UpdateMediaWorkflowTriggerModeResult.cc b/mts/src/model/UpdateMediaWorkflowTriggerModeResult.cc index 011520f0a..eab4ebd71 100644 --- a/mts/src/model/UpdateMediaWorkflowTriggerModeResult.cc +++ b/mts/src/model/UpdateMediaWorkflowTriggerModeResult.cc @@ -40,18 +40,18 @@ void UpdateMediaWorkflowTriggerModeResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto mediaWorkflowNode = value["MediaWorkflow"]; + if(!mediaWorkflowNode["CreationTime"].isNull()) + mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); if(!mediaWorkflowNode["MediaWorkflowId"].isNull()) mediaWorkflow_.mediaWorkflowId = mediaWorkflowNode["MediaWorkflowId"].asString(); + if(!mediaWorkflowNode["State"].isNull()) + mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); + if(!mediaWorkflowNode["TriggerMode"].isNull()) + mediaWorkflow_.triggerMode = mediaWorkflowNode["TriggerMode"].asString(); if(!mediaWorkflowNode["Name"].isNull()) mediaWorkflow_.name = mediaWorkflowNode["Name"].asString(); if(!mediaWorkflowNode["Topology"].isNull()) mediaWorkflow_.topology = mediaWorkflowNode["Topology"].asString(); - if(!mediaWorkflowNode["TriggerMode"].isNull()) - mediaWorkflow_.triggerMode = mediaWorkflowNode["TriggerMode"].asString(); - if(!mediaWorkflowNode["State"].isNull()) - mediaWorkflow_.state = mediaWorkflowNode["State"].asString(); - if(!mediaWorkflowNode["CreationTime"].isNull()) - mediaWorkflow_.creationTime = mediaWorkflowNode["CreationTime"].asString(); } diff --git a/mts/src/model/UpdatePipelineRequest.cc b/mts/src/model/UpdatePipelineRequest.cc index d63cb8ca5..ad292d44c 100644 --- a/mts/src/model/UpdatePipelineRequest.cc +++ b/mts/src/model/UpdatePipelineRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdatePipelineRequest; - -UpdatePipelineRequest::UpdatePipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdatePipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdatePipelineRequest::~UpdatePipelineRequest() -{} - -long UpdatePipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdatePipelineRequest; + +UpdatePipelineRequest::UpdatePipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdatePipeline") { + setMethod(HttpRequest::Method::Post); } -void UpdatePipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdatePipelineRequest::~UpdatePipelineRequest() {} + +long UpdatePipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdatePipelineRequest::getRole()const -{ - return role_; +void UpdatePipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdatePipelineRequest::setRole(const std::string& role) -{ - role_ = role; - setParameter("Role", role); +std::string UpdatePipelineRequest::getRole() const { + return role_; } -std::string UpdatePipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdatePipelineRequest::setRole(const std::string &role) { + role_ = role; + setParameter(std::string("Role"), role); } -void UpdatePipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdatePipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdatePipelineRequest::getState()const -{ - return state_; +void UpdatePipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdatePipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string UpdatePipelineRequest::getState() const { + return state_; } -std::string UpdatePipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdatePipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void UpdatePipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdatePipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdatePipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdatePipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdatePipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdatePipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string UpdatePipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void UpdatePipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdatePipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string UpdatePipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long UpdatePipelineRequest::getOwnerId()const -{ - return ownerId_; +void UpdatePipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void UpdatePipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdatePipelineRequest::getOwnerId() const { + return ownerId_; } -std::string UpdatePipelineRequest::getPipelineId()const -{ - return pipelineId_; +void UpdatePipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdatePipelineRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string UpdatePipelineRequest::getPipelineId() const { + return pipelineId_; } -std::string UpdatePipelineRequest::getName()const -{ - return name_; +void UpdatePipelineRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void UpdatePipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdatePipelineRequest::getName() const { + return name_; +} + +void UpdatePipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/UpdatePipelineResult.cc b/mts/src/model/UpdatePipelineResult.cc index ae02de732..13c974e3f 100644 --- a/mts/src/model/UpdatePipelineResult.cc +++ b/mts/src/model/UpdatePipelineResult.cc @@ -40,27 +40,27 @@ void UpdatePipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); - if(!pipelineNode["State"].isNull()) - pipeline_.state = pipelineNode["State"].asString(); if(!pipelineNode["Speed"].isNull()) pipeline_.speed = pipelineNode["Speed"].asString(); - if(!pipelineNode["QuotaAllocate"].isNull()) - pipeline_.quotaAllocate = std::stol(pipelineNode["QuotaAllocate"].asString()); + if(!pipelineNode["State"].isNull()) + pipeline_.state = pipelineNode["State"].asString(); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); if(!pipelineNode["Role"].isNull()) pipeline_.role = pipelineNode["Role"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); + if(!pipelineNode["QuotaAllocate"].isNull()) + pipeline_.quotaAllocate = std::stol(pipelineNode["QuotaAllocate"].asString()); auto notifyConfigNode = pipelineNode["NotifyConfig"]; - if(!notifyConfigNode["Topic"].isNull()) - pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); - if(!notifyConfigNode["QueueName"].isNull()) - pipeline_.notifyConfig.queueName = notifyConfigNode["QueueName"].asString(); if(!notifyConfigNode["MqTopic"].isNull()) pipeline_.notifyConfig.mqTopic = notifyConfigNode["MqTopic"].asString(); + if(!notifyConfigNode["QueueName"].isNull()) + pipeline_.notifyConfig.queueName = notifyConfigNode["QueueName"].asString(); if(!notifyConfigNode["MqTag"].isNull()) pipeline_.notifyConfig.mqTag = notifyConfigNode["MqTag"].asString(); + if(!notifyConfigNode["Topic"].isNull()) + pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); } diff --git a/mts/src/model/UpdatePornPipelineRequest.cc b/mts/src/model/UpdatePornPipelineRequest.cc index 4a9784167..7482c5e9a 100644 --- a/mts/src/model/UpdatePornPipelineRequest.cc +++ b/mts/src/model/UpdatePornPipelineRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdatePornPipelineRequest; - -UpdatePornPipelineRequest::UpdatePornPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdatePornPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdatePornPipelineRequest::~UpdatePornPipelineRequest() -{} - -long UpdatePornPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdatePornPipelineRequest; + +UpdatePornPipelineRequest::UpdatePornPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdatePornPipeline") { + setMethod(HttpRequest::Method::Post); } -void UpdatePornPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdatePornPipelineRequest::~UpdatePornPipelineRequest() {} + +long UpdatePornPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdatePornPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdatePornPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdatePornPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdatePornPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdatePornPipelineRequest::getState()const -{ - return state_; +void UpdatePornPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdatePornPipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string UpdatePornPipelineRequest::getState() const { + return state_; } -std::string UpdatePornPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdatePornPipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void UpdatePornPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdatePornPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdatePornPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdatePornPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdatePornPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdatePornPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string UpdatePornPipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void UpdatePornPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdatePornPipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string UpdatePornPipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long UpdatePornPipelineRequest::getOwnerId()const -{ - return ownerId_; +void UpdatePornPipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void UpdatePornPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdatePornPipelineRequest::getOwnerId() const { + return ownerId_; } -int UpdatePornPipelineRequest::getPriority()const -{ - return priority_; +void UpdatePornPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdatePornPipelineRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int UpdatePornPipelineRequest::getPriority() const { + return priority_; } -std::string UpdatePornPipelineRequest::getPipelineId()const -{ - return pipelineId_; +void UpdatePornPipelineRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void UpdatePornPipelineRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string UpdatePornPipelineRequest::getPipelineId() const { + return pipelineId_; } -std::string UpdatePornPipelineRequest::getName()const -{ - return name_; +void UpdatePornPipelineRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void UpdatePornPipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdatePornPipelineRequest::getName() const { + return name_; +} + +void UpdatePornPipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/UpdatePornPipelineResult.cc b/mts/src/model/UpdatePornPipelineResult.cc index e78876a1a..6614859ee 100644 --- a/mts/src/model/UpdatePornPipelineResult.cc +++ b/mts/src/model/UpdatePornPipelineResult.cc @@ -40,14 +40,14 @@ void UpdatePornPipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); if(!pipelineNode["State"].isNull()) pipeline_.state = pipelineNode["State"].asString(); if(!pipelineNode["Priority"].isNull()) pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); auto notifyConfigNode = pipelineNode["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/UpdateSmarttagTemplateRequest.cc b/mts/src/model/UpdateSmarttagTemplateRequest.cc new file mode 100644 index 000000000..79c8300c2 --- /dev/null +++ b/mts/src/model/UpdateSmarttagTemplateRequest.cc @@ -0,0 +1,135 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts::Model::UpdateSmarttagTemplateRequest; + +UpdateSmarttagTemplateRequest::UpdateSmarttagTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateSmarttagTemplate") { + setMethod(HttpRequest::Method::Post); +} + +UpdateSmarttagTemplateRequest::~UpdateSmarttagTemplateRequest() {} + +long UpdateSmarttagTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; +} + +void UpdateSmarttagTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); +} + +std::string UpdateSmarttagTemplateRequest::getIndustry() const { + return industry_; +} + +void UpdateSmarttagTemplateRequest::setIndustry(const std::string &industry) { + industry_ = industry; + setParameter(std::string("Industry"), industry); +} + +std::string UpdateSmarttagTemplateRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void UpdateSmarttagTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string UpdateSmarttagTemplateRequest::getScene() const { + return scene_; +} + +void UpdateSmarttagTemplateRequest::setScene(const std::string &scene) { + scene_ = scene; + setParameter(std::string("Scene"), scene); +} + +std::string UpdateSmarttagTemplateRequest::getTemplateName() const { + return templateName_; +} + +void UpdateSmarttagTemplateRequest::setTemplateName(const std::string &templateName) { + templateName_ = templateName; + setParameter(std::string("TemplateName"), templateName); +} + +bool UpdateSmarttagTemplateRequest::getIsDefault() const { + return isDefault_; +} + +void UpdateSmarttagTemplateRequest::setIsDefault(bool isDefault) { + isDefault_ = isDefault; + setParameter(std::string("IsDefault"), isDefault ? "true" : "false"); +} + +std::string UpdateSmarttagTemplateRequest::getFaceCategoryIds() const { + return faceCategoryIds_; +} + +void UpdateSmarttagTemplateRequest::setFaceCategoryIds(const std::string &faceCategoryIds) { + faceCategoryIds_ = faceCategoryIds; + setParameter(std::string("FaceCategoryIds"), faceCategoryIds); +} + +std::string UpdateSmarttagTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; +} + +void UpdateSmarttagTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); +} + +std::string UpdateSmarttagTemplateRequest::getOwnerAccount() const { + return ownerAccount_; +} + +void UpdateSmarttagTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); +} + +long UpdateSmarttagTemplateRequest::getOwnerId() const { + return ownerId_; +} + +void UpdateSmarttagTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); +} + +std::string UpdateSmarttagTemplateRequest::getTemplateId() const { + return templateId_; +} + +void UpdateSmarttagTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); +} + +std::string UpdateSmarttagTemplateRequest::getAnalyseTypes() const { + return analyseTypes_; +} + +void UpdateSmarttagTemplateRequest::setAnalyseTypes(const std::string &analyseTypes) { + analyseTypes_ = analyseTypes; + setParameter(std::string("AnalyseTypes"), analyseTypes); +} + diff --git a/mts/src/model/UpdateSmarttagTemplateResult.cc b/mts/src/model/UpdateSmarttagTemplateResult.cc new file mode 100644 index 000000000..3e73bec51 --- /dev/null +++ b/mts/src/model/UpdateSmarttagTemplateResult.cc @@ -0,0 +1,44 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::Mts; +using namespace AlibabaCloud::Mts::Model; + +UpdateSmarttagTemplateResult::UpdateSmarttagTemplateResult() : + ServiceResult() +{} + +UpdateSmarttagTemplateResult::UpdateSmarttagTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UpdateSmarttagTemplateResult::~UpdateSmarttagTemplateResult() +{} + +void UpdateSmarttagTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + +} + diff --git a/mts/src/model/UpdateTemplateRequest.cc b/mts/src/model/UpdateTemplateRequest.cc index 09832eeea..798809569 100644 --- a/mts/src/model/UpdateTemplateRequest.cc +++ b/mts/src/model/UpdateTemplateRequest.cc @@ -1,161 +1,135 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES 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::Mts::Model::UpdateTemplateRequest; - -UpdateTemplateRequest::UpdateTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateTemplateRequest::~UpdateTemplateRequest() -{} - -std::string UpdateTemplateRequest::getContainer()const -{ - return container_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateTemplateRequest; + +UpdateTemplateRequest::UpdateTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateTemplate") { + setMethod(HttpRequest::Method::Post); } -void UpdateTemplateRequest::setContainer(const std::string& container) -{ - container_ = container; - setParameter("Container", container); +UpdateTemplateRequest::~UpdateTemplateRequest() {} + +std::string UpdateTemplateRequest::getContainer() const { + return container_; } -long UpdateTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; +void UpdateTemplateRequest::setContainer(const std::string &container) { + container_ = container; + setParameter(std::string("Container"), container); } -void UpdateTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +long UpdateTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateTemplateRequest::getVideo()const -{ - return video_; +void UpdateTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateTemplateRequest::setVideo(const std::string& video) -{ - video_ = video; - setParameter("Video", video); +std::string UpdateTemplateRequest::getVideo() const { + return video_; } -std::string UpdateTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateTemplateRequest::setVideo(const std::string &video) { + video_ = video; + setParameter(std::string("Video"), video); } -void UpdateTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateTemplateRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateTemplateRequest::getTransConfig()const -{ - return transConfig_; +void UpdateTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateTemplateRequest::setTransConfig(const std::string& transConfig) -{ - transConfig_ = transConfig; - setParameter("TransConfig", transConfig); +std::string UpdateTemplateRequest::getTransConfig() const { + return transConfig_; } -std::string UpdateTemplateRequest::getAudio()const -{ - return audio_; +void UpdateTemplateRequest::setTransConfig(const std::string &transConfig) { + transConfig_ = transConfig; + setParameter(std::string("TransConfig"), transConfig); } -void UpdateTemplateRequest::setAudio(const std::string& audio) -{ - audio_ = audio; - setParameter("Audio", audio); +std::string UpdateTemplateRequest::getAudio() const { + return audio_; } -std::string UpdateTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateTemplateRequest::setAudio(const std::string &audio) { + audio_ = audio; + setParameter(std::string("Audio"), audio); } -void UpdateTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string UpdateTemplateRequest::getMuxConfig()const -{ - return muxConfig_; +void UpdateTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateTemplateRequest::setMuxConfig(const std::string& muxConfig) -{ - muxConfig_ = muxConfig; - setParameter("MuxConfig", muxConfig); +std::string UpdateTemplateRequest::getMuxConfig() const { + return muxConfig_; } -long UpdateTemplateRequest::getOwnerId()const -{ - return ownerId_; +void UpdateTemplateRequest::setMuxConfig(const std::string &muxConfig) { + muxConfig_ = muxConfig; + setParameter(std::string("MuxConfig"), muxConfig); } -void UpdateTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateTemplateRequest::getTemplateId()const -{ - return templateId_; +void UpdateTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateTemplateRequest::setTemplateId(const std::string& templateId) -{ - templateId_ = templateId; - setParameter("TemplateId", templateId); +std::string UpdateTemplateRequest::getTemplateId() const { + return templateId_; } -std::string UpdateTemplateRequest::getName()const -{ - return name_; +void UpdateTemplateRequest::setTemplateId(const std::string &templateId) { + templateId_ = templateId; + setParameter(std::string("TemplateId"), templateId); } -void UpdateTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateTemplateRequest::getName() const { + return name_; +} + +void UpdateTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/UpdateTemplateResult.cc b/mts/src/model/UpdateTemplateResult.cc index cadb4b475..39cb4e457 100644 --- a/mts/src/model/UpdateTemplateResult.cc +++ b/mts/src/model/UpdateTemplateResult.cc @@ -40,56 +40,53 @@ void UpdateTemplateResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto _templateNode = value["Template"]; - if(!_templateNode["Id"].isNull()) - _template_.id = _templateNode["Id"].asString(); - if(!_templateNode["Name"].isNull()) - _template_.name = _templateNode["Name"].asString(); if(!_templateNode["State"].isNull()) _template_.state = _templateNode["State"].asString(); - auto containerNode = _templateNode["Container"]; - if(!containerNode["Format"].isNull()) - _template_.container.format = containerNode["Format"].asString(); + if(!_templateNode["Name"].isNull()) + _template_.name = _templateNode["Name"].asString(); + if(!_templateNode["Id"].isNull()) + _template_.id = _templateNode["Id"].asString(); auto videoNode = _templateNode["Video"]; - if(!videoNode["Codec"].isNull()) - _template_.video.codec = videoNode["Codec"].asString(); - if(!videoNode["Profile"].isNull()) - _template_.video.profile = videoNode["Profile"].asString(); - if(!videoNode["Bitrate"].isNull()) - _template_.video.bitrate = videoNode["Bitrate"].asString(); - if(!videoNode["Crf"].isNull()) - _template_.video.crf = videoNode["Crf"].asString(); - if(!videoNode["Width"].isNull()) - _template_.video.width = videoNode["Width"].asString(); - if(!videoNode["Height"].isNull()) - _template_.video.height = videoNode["Height"].asString(); if(!videoNode["LongShortMode"].isNull()) _template_.video.longShortMode = videoNode["LongShortMode"].asString(); - if(!videoNode["Fps"].isNull()) - _template_.video.fps = videoNode["Fps"].asString(); + if(!videoNode["Bufsize"].isNull()) + _template_.video.bufsize = videoNode["Bufsize"].asString(); + if(!videoNode["Degrain"].isNull()) + _template_.video.degrain = videoNode["Degrain"].asString(); + if(!videoNode["PixFmt"].isNull()) + _template_.video.pixFmt = videoNode["PixFmt"].asString(); + if(!videoNode["Pad"].isNull()) + _template_.video.pad = videoNode["Pad"].asString(); + if(!videoNode["Codec"].isNull()) + _template_.video.codec = videoNode["Codec"].asString(); + if(!videoNode["Height"].isNull()) + _template_.video.height = videoNode["Height"].asString(); + if(!videoNode["Qscale"].isNull()) + _template_.video.qscale = videoNode["Qscale"].asString(); + if(!videoNode["Crop"].isNull()) + _template_.video.crop = videoNode["Crop"].asString(); + if(!videoNode["Bitrate"].isNull()) + _template_.video.bitrate = videoNode["Bitrate"].asString(); + if(!videoNode["Maxrate"].isNull()) + _template_.video.maxrate = videoNode["Maxrate"].asString(); + if(!videoNode["MaxFps"].isNull()) + _template_.video.maxFps = videoNode["MaxFps"].asString(); + if(!videoNode["Profile"].isNull()) + _template_.video.profile = videoNode["Profile"].asString(); + if(!videoNode["Crf"].isNull()) + _template_.video.crf = videoNode["Crf"].asString(); + if(!videoNode["Remove"].isNull()) + _template_.video.remove = videoNode["Remove"].asString(); if(!videoNode["Gop"].isNull()) _template_.video.gop = videoNode["Gop"].asString(); + if(!videoNode["Width"].isNull()) + _template_.video.width = videoNode["Width"].asString(); + if(!videoNode["Fps"].isNull()) + _template_.video.fps = videoNode["Fps"].asString(); if(!videoNode["Preset"].isNull()) _template_.video.preset = videoNode["Preset"].asString(); if(!videoNode["ScanMode"].isNull()) _template_.video.scanMode = videoNode["ScanMode"].asString(); - if(!videoNode["Bufsize"].isNull()) - _template_.video.bufsize = videoNode["Bufsize"].asString(); - if(!videoNode["Maxrate"].isNull()) - _template_.video.maxrate = videoNode["Maxrate"].asString(); - if(!videoNode["PixFmt"].isNull()) - _template_.video.pixFmt = videoNode["PixFmt"].asString(); - if(!videoNode["Degrain"].isNull()) - _template_.video.degrain = videoNode["Degrain"].asString(); - if(!videoNode["Qscale"].isNull()) - _template_.video.qscale = videoNode["Qscale"].asString(); - if(!videoNode["Remove"].isNull()) - _template_.video.remove = videoNode["Remove"].asString(); - if(!videoNode["Crop"].isNull()) - _template_.video.crop = videoNode["Crop"].asString(); - if(!videoNode["Pad"].isNull()) - _template_.video.pad = videoNode["Pad"].asString(); - if(!videoNode["MaxFps"].isNull()) - _template_.video.maxFps = videoNode["MaxFps"].asString(); if(!videoNode["ResoPriority"].isNull()) _template_.video.resoPriority = videoNode["ResoPriority"].asString(); auto bitrateBndNode = videoNode["BitrateBnd"]; @@ -97,54 +94,57 @@ void UpdateTemplateResult::parse(const std::string &payload) _template_.video.bitrateBnd.max = bitrateBndNode["Max"].asString(); if(!bitrateBndNode["Min"].isNull()) _template_.video.bitrateBnd.min = bitrateBndNode["Min"].asString(); - auto audioNode = _templateNode["Audio"]; - if(!audioNode["Codec"].isNull()) - _template_.audio.codec = audioNode["Codec"].asString(); - if(!audioNode["Profile"].isNull()) - _template_.audio.profile = audioNode["Profile"].asString(); - if(!audioNode["Samplerate"].isNull()) - _template_.audio.samplerate = audioNode["Samplerate"].asString(); - if(!audioNode["Bitrate"].isNull()) - _template_.audio.bitrate = audioNode["Bitrate"].asString(); - if(!audioNode["Channels"].isNull()) - _template_.audio.channels = audioNode["Channels"].asString(); - if(!audioNode["Qscale"].isNull()) - _template_.audio.qscale = audioNode["Qscale"].asString(); - if(!audioNode["Remove"].isNull()) - _template_.audio.remove = audioNode["Remove"].asString(); auto transConfigNode = _templateNode["TransConfig"]; + if(!transConfigNode["IsCheckAudioBitrate"].isNull()) + _template_.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); if(!transConfigNode["TransMode"].isNull()) _template_.transConfig.transMode = transConfigNode["TransMode"].asString(); if(!transConfigNode["IsCheckReso"].isNull()) _template_.transConfig.isCheckReso = transConfigNode["IsCheckReso"].asString(); - if(!transConfigNode["IsCheckResoFail"].isNull()) - _template_.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); - if(!transConfigNode["IsCheckVideoBitrate"].isNull()) - _template_.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); - if(!transConfigNode["IsCheckAudioBitrate"].isNull()) - _template_.transConfig.isCheckAudioBitrate = transConfigNode["IsCheckAudioBitrate"].asString(); - if(!transConfigNode["AdjDarMethod"].isNull()) - _template_.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); if(!transConfigNode["IsCheckVideoBitrateFail"].isNull()) _template_.transConfig.isCheckVideoBitrateFail = transConfigNode["IsCheckVideoBitrateFail"].asString(); + if(!transConfigNode["AdjDarMethod"].isNull()) + _template_.transConfig.adjDarMethod = transConfigNode["AdjDarMethod"].asString(); + if(!transConfigNode["IsCheckVideoBitrate"].isNull()) + _template_.transConfig.isCheckVideoBitrate = transConfigNode["IsCheckVideoBitrate"].asString(); + if(!transConfigNode["IsCheckResoFail"].isNull()) + _template_.transConfig.isCheckResoFail = transConfigNode["IsCheckResoFail"].asString(); if(!transConfigNode["IsCheckAudioBitrateFail"].isNull()) _template_.transConfig.isCheckAudioBitrateFail = transConfigNode["IsCheckAudioBitrateFail"].asString(); auto muxConfigNode = _templateNode["MuxConfig"]; - auto segmentNode = muxConfigNode["Segment"]; - if(!segmentNode["Duration"].isNull()) - _template_.muxConfig.segment.duration = segmentNode["Duration"].asString(); - auto gifNode = muxConfigNode["Gif"]; - if(!gifNode["Loop"].isNull()) - _template_.muxConfig.gif.loop = gifNode["Loop"].asString(); - if(!gifNode["FinalDelay"].isNull()) - _template_.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); - if(!gifNode["IsCustomPalette"].isNull()) - _template_.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); - if(!gifNode["DitherMode"].isNull()) - _template_.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); auto webpNode = muxConfigNode["Webp"]; if(!webpNode["Loop"].isNull()) _template_.muxConfig.webp.loop = webpNode["Loop"].asString(); + auto gifNode = muxConfigNode["Gif"]; + if(!gifNode["FinalDelay"].isNull()) + _template_.muxConfig.gif.finalDelay = gifNode["FinalDelay"].asString(); + if(!gifNode["DitherMode"].isNull()) + _template_.muxConfig.gif.ditherMode = gifNode["DitherMode"].asString(); + if(!gifNode["Loop"].isNull()) + _template_.muxConfig.gif.loop = gifNode["Loop"].asString(); + if(!gifNode["IsCustomPalette"].isNull()) + _template_.muxConfig.gif.isCustomPalette = gifNode["IsCustomPalette"].asString(); + auto segmentNode = muxConfigNode["Segment"]; + if(!segmentNode["Duration"].isNull()) + _template_.muxConfig.segment.duration = segmentNode["Duration"].asString(); + auto audioNode = _templateNode["Audio"]; + if(!audioNode["Profile"].isNull()) + _template_.audio.profile = audioNode["Profile"].asString(); + if(!audioNode["Remove"].isNull()) + _template_.audio.remove = audioNode["Remove"].asString(); + if(!audioNode["Codec"].isNull()) + _template_.audio.codec = audioNode["Codec"].asString(); + if(!audioNode["Samplerate"].isNull()) + _template_.audio.samplerate = audioNode["Samplerate"].asString(); + if(!audioNode["Qscale"].isNull()) + _template_.audio.qscale = audioNode["Qscale"].asString(); + if(!audioNode["Channels"].isNull()) + _template_.audio.channels = audioNode["Channels"].asString(); + if(!audioNode["Bitrate"].isNull()) + _template_.audio.bitrate = audioNode["Bitrate"].asString(); + auto containerNode = _templateNode["Container"]; + if(!containerNode["Format"].isNull()) + _template_.container.format = containerNode["Format"].asString(); } diff --git a/mts/src/model/UpdateTerrorismPipelineRequest.cc b/mts/src/model/UpdateTerrorismPipelineRequest.cc index 892a0ce72..68ee7b26d 100644 --- a/mts/src/model/UpdateTerrorismPipelineRequest.cc +++ b/mts/src/model/UpdateTerrorismPipelineRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdateTerrorismPipelineRequest; - -UpdateTerrorismPipelineRequest::UpdateTerrorismPipelineRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateTerrorismPipeline") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateTerrorismPipelineRequest::~UpdateTerrorismPipelineRequest() -{} - -long UpdateTerrorismPipelineRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateTerrorismPipelineRequest; + +UpdateTerrorismPipelineRequest::UpdateTerrorismPipelineRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateTerrorismPipeline") { + setMethod(HttpRequest::Method::Post); } -void UpdateTerrorismPipelineRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateTerrorismPipelineRequest::~UpdateTerrorismPipelineRequest() {} + +long UpdateTerrorismPipelineRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateTerrorismPipelineRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateTerrorismPipelineRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateTerrorismPipelineRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateTerrorismPipelineRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateTerrorismPipelineRequest::getState()const -{ - return state_; +void UpdateTerrorismPipelineRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateTerrorismPipelineRequest::setState(const std::string& state) -{ - state_ = state; - setParameter("State", state); +std::string UpdateTerrorismPipelineRequest::getState() const { + return state_; } -std::string UpdateTerrorismPipelineRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateTerrorismPipelineRequest::setState(const std::string &state) { + state_ = state; + setParameter(std::string("State"), state); } -void UpdateTerrorismPipelineRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateTerrorismPipelineRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateTerrorismPipelineRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateTerrorismPipelineRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateTerrorismPipelineRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateTerrorismPipelineRequest::getOwnerAccount() const { + return ownerAccount_; } -std::string UpdateTerrorismPipelineRequest::getNotifyConfig()const -{ - return notifyConfig_; +void UpdateTerrorismPipelineRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateTerrorismPipelineRequest::setNotifyConfig(const std::string& notifyConfig) -{ - notifyConfig_ = notifyConfig; - setParameter("NotifyConfig", notifyConfig); +std::string UpdateTerrorismPipelineRequest::getNotifyConfig() const { + return notifyConfig_; } -long UpdateTerrorismPipelineRequest::getOwnerId()const -{ - return ownerId_; +void UpdateTerrorismPipelineRequest::setNotifyConfig(const std::string ¬ifyConfig) { + notifyConfig_ = notifyConfig; + setParameter(std::string("NotifyConfig"), notifyConfig); } -void UpdateTerrorismPipelineRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateTerrorismPipelineRequest::getOwnerId() const { + return ownerId_; } -int UpdateTerrorismPipelineRequest::getPriority()const -{ - return priority_; +void UpdateTerrorismPipelineRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateTerrorismPipelineRequest::setPriority(int priority) -{ - priority_ = priority; - setParameter("Priority", std::to_string(priority)); +int UpdateTerrorismPipelineRequest::getPriority() const { + return priority_; } -std::string UpdateTerrorismPipelineRequest::getPipelineId()const -{ - return pipelineId_; +void UpdateTerrorismPipelineRequest::setPriority(int priority) { + priority_ = priority; + setParameter(std::string("Priority"), std::to_string(priority)); } -void UpdateTerrorismPipelineRequest::setPipelineId(const std::string& pipelineId) -{ - pipelineId_ = pipelineId; - setParameter("PipelineId", pipelineId); +std::string UpdateTerrorismPipelineRequest::getPipelineId() const { + return pipelineId_; } -std::string UpdateTerrorismPipelineRequest::getName()const -{ - return name_; +void UpdateTerrorismPipelineRequest::setPipelineId(const std::string &pipelineId) { + pipelineId_ = pipelineId; + setParameter(std::string("PipelineId"), pipelineId); } -void UpdateTerrorismPipelineRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateTerrorismPipelineRequest::getName() const { + return name_; +} + +void UpdateTerrorismPipelineRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/mts/src/model/UpdateTerrorismPipelineResult.cc b/mts/src/model/UpdateTerrorismPipelineResult.cc index 8f18dcd58..d4952d204 100644 --- a/mts/src/model/UpdateTerrorismPipelineResult.cc +++ b/mts/src/model/UpdateTerrorismPipelineResult.cc @@ -40,14 +40,14 @@ void UpdateTerrorismPipelineResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto pipelineNode = value["Pipeline"]; - if(!pipelineNode["Id"].isNull()) - pipeline_.id = pipelineNode["Id"].asString(); - if(!pipelineNode["Name"].isNull()) - pipeline_.name = pipelineNode["Name"].asString(); if(!pipelineNode["State"].isNull()) pipeline_.state = pipelineNode["State"].asString(); if(!pipelineNode["Priority"].isNull()) pipeline_.priority = std::stoi(pipelineNode["Priority"].asString()); + if(!pipelineNode["Name"].isNull()) + pipeline_.name = pipelineNode["Name"].asString(); + if(!pipelineNode["Id"].isNull()) + pipeline_.id = pipelineNode["Id"].asString(); auto notifyConfigNode = pipelineNode["NotifyConfig"]; if(!notifyConfigNode["Topic"].isNull()) pipeline_.notifyConfig.topic = notifyConfigNode["Topic"].asString(); diff --git a/mts/src/model/UpdateWaterMarkTemplateRequest.cc b/mts/src/model/UpdateWaterMarkTemplateRequest.cc index 9da273916..078c18097 100644 --- a/mts/src/model/UpdateWaterMarkTemplateRequest.cc +++ b/mts/src/model/UpdateWaterMarkTemplateRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::Mts::Model::UpdateWaterMarkTemplateRequest; - -UpdateWaterMarkTemplateRequest::UpdateWaterMarkTemplateRequest() : - RpcServiceRequest("mts", "2014-06-18", "UpdateWaterMarkTemplate") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateWaterMarkTemplateRequest::~UpdateWaterMarkTemplateRequest() -{} - -long UpdateWaterMarkTemplateRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; + */ + +#include + +using AlibabaCloud::Mts::Model::UpdateWaterMarkTemplateRequest; + +UpdateWaterMarkTemplateRequest::UpdateWaterMarkTemplateRequest() + : RpcServiceRequest("mts", "2014-06-18", "UpdateWaterMarkTemplate") { + setMethod(HttpRequest::Method::Post); } -void UpdateWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); +UpdateWaterMarkTemplateRequest::~UpdateWaterMarkTemplateRequest() {} + +long UpdateWaterMarkTemplateRequest::getResourceOwnerId() const { + return resourceOwnerId_; } -std::string UpdateWaterMarkTemplateRequest::getWaterMarkTemplateId()const -{ - return waterMarkTemplateId_; +void UpdateWaterMarkTemplateRequest::setResourceOwnerId(long resourceOwnerId) { + resourceOwnerId_ = resourceOwnerId; + setParameter(std::string("ResourceOwnerId"), std::to_string(resourceOwnerId)); } -void UpdateWaterMarkTemplateRequest::setWaterMarkTemplateId(const std::string& waterMarkTemplateId) -{ - waterMarkTemplateId_ = waterMarkTemplateId; - setParameter("WaterMarkTemplateId", waterMarkTemplateId); +std::string UpdateWaterMarkTemplateRequest::getWaterMarkTemplateId() const { + return waterMarkTemplateId_; } -std::string UpdateWaterMarkTemplateRequest::getAccessKeyId()const -{ - return accessKeyId_; +void UpdateWaterMarkTemplateRequest::setWaterMarkTemplateId(const std::string &waterMarkTemplateId) { + waterMarkTemplateId_ = waterMarkTemplateId; + setParameter(std::string("WaterMarkTemplateId"), waterMarkTemplateId); } -void UpdateWaterMarkTemplateRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setParameter("AccessKeyId", accessKeyId); +std::string UpdateWaterMarkTemplateRequest::getAccessKeyId() const { + return accessKeyId_; } -std::string UpdateWaterMarkTemplateRequest::getResourceOwnerAccount()const -{ - return resourceOwnerAccount_; +void UpdateWaterMarkTemplateRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setParameter(std::string("AccessKeyId"), accessKeyId); } -void UpdateWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string& resourceOwnerAccount) -{ - resourceOwnerAccount_ = resourceOwnerAccount; - setParameter("ResourceOwnerAccount", resourceOwnerAccount); +std::string UpdateWaterMarkTemplateRequest::getResourceOwnerAccount() const { + return resourceOwnerAccount_; } -std::string UpdateWaterMarkTemplateRequest::getOwnerAccount()const -{ - return ownerAccount_; +void UpdateWaterMarkTemplateRequest::setResourceOwnerAccount(const std::string &resourceOwnerAccount) { + resourceOwnerAccount_ = resourceOwnerAccount; + setParameter(std::string("ResourceOwnerAccount"), resourceOwnerAccount); } -void UpdateWaterMarkTemplateRequest::setOwnerAccount(const std::string& ownerAccount) -{ - ownerAccount_ = ownerAccount; - setParameter("OwnerAccount", ownerAccount); +std::string UpdateWaterMarkTemplateRequest::getOwnerAccount() const { + return ownerAccount_; } -long UpdateWaterMarkTemplateRequest::getOwnerId()const -{ - return ownerId_; +void UpdateWaterMarkTemplateRequest::setOwnerAccount(const std::string &ownerAccount) { + ownerAccount_ = ownerAccount; + setParameter(std::string("OwnerAccount"), ownerAccount); } -void UpdateWaterMarkTemplateRequest::setOwnerId(long ownerId) -{ - ownerId_ = ownerId; - setParameter("OwnerId", std::to_string(ownerId)); +long UpdateWaterMarkTemplateRequest::getOwnerId() const { + return ownerId_; } -std::string UpdateWaterMarkTemplateRequest::getName()const -{ - return name_; +void UpdateWaterMarkTemplateRequest::setOwnerId(long ownerId) { + ownerId_ = ownerId; + setParameter(std::string("OwnerId"), std::to_string(ownerId)); } -void UpdateWaterMarkTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string UpdateWaterMarkTemplateRequest::getName() const { + return name_; } -std::string UpdateWaterMarkTemplateRequest::getConfig()const -{ - return config_; +void UpdateWaterMarkTemplateRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void UpdateWaterMarkTemplateRequest::setConfig(const std::string& config) -{ - config_ = config; - setParameter("Config", config); +std::string UpdateWaterMarkTemplateRequest::getConfig() const { + return config_; +} + +void UpdateWaterMarkTemplateRequest::setConfig(const std::string &config) { + config_ = config; + setParameter(std::string("Config"), config); } diff --git a/mts/src/model/UpdateWaterMarkTemplateResult.cc b/mts/src/model/UpdateWaterMarkTemplateResult.cc index 3b8cd7957..a05371d0f 100644 --- a/mts/src/model/UpdateWaterMarkTemplateResult.cc +++ b/mts/src/model/UpdateWaterMarkTemplateResult.cc @@ -40,38 +40,38 @@ void UpdateWaterMarkTemplateResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto waterMarkTemplateNode = value["WaterMarkTemplate"]; - if(!waterMarkTemplateNode["Id"].isNull()) - waterMarkTemplate_.id = waterMarkTemplateNode["Id"].asString(); - if(!waterMarkTemplateNode["Name"].isNull()) - waterMarkTemplate_.name = waterMarkTemplateNode["Name"].asString(); + if(!waterMarkTemplateNode["Type"].isNull()) + waterMarkTemplate_.type = waterMarkTemplateNode["Type"].asString(); + if(!waterMarkTemplateNode["ReferPos"].isNull()) + waterMarkTemplate_.referPos = waterMarkTemplateNode["ReferPos"].asString(); + if(!waterMarkTemplateNode["State"].isNull()) + waterMarkTemplate_.state = waterMarkTemplateNode["State"].asString(); + if(!waterMarkTemplateNode["Dx"].isNull()) + waterMarkTemplate_.dx = waterMarkTemplateNode["Dx"].asString(); if(!waterMarkTemplateNode["Width"].isNull()) waterMarkTemplate_.width = waterMarkTemplateNode["Width"].asString(); if(!waterMarkTemplateNode["Height"].isNull()) waterMarkTemplate_.height = waterMarkTemplateNode["Height"].asString(); - if(!waterMarkTemplateNode["Dx"].isNull()) - waterMarkTemplate_.dx = waterMarkTemplateNode["Dx"].asString(); + if(!waterMarkTemplateNode["Name"].isNull()) + waterMarkTemplate_.name = waterMarkTemplateNode["Name"].asString(); if(!waterMarkTemplateNode["Dy"].isNull()) waterMarkTemplate_.dy = waterMarkTemplateNode["Dy"].asString(); - if(!waterMarkTemplateNode["ReferPos"].isNull()) - waterMarkTemplate_.referPos = waterMarkTemplateNode["ReferPos"].asString(); - if(!waterMarkTemplateNode["Type"].isNull()) - waterMarkTemplate_.type = waterMarkTemplateNode["Type"].asString(); - if(!waterMarkTemplateNode["State"].isNull()) - waterMarkTemplate_.state = waterMarkTemplateNode["State"].asString(); + if(!waterMarkTemplateNode["Id"].isNull()) + waterMarkTemplate_.id = waterMarkTemplateNode["Id"].asString(); + auto ratioReferNode = waterMarkTemplateNode["RatioRefer"]; + if(!ratioReferNode["Dx"].isNull()) + waterMarkTemplate_.ratioRefer.dx = ratioReferNode["Dx"].asString(); + if(!ratioReferNode["Width"].isNull()) + waterMarkTemplate_.ratioRefer.width = ratioReferNode["Width"].asString(); + if(!ratioReferNode["Height"].isNull()) + waterMarkTemplate_.ratioRefer.height = ratioReferNode["Height"].asString(); + if(!ratioReferNode["Dy"].isNull()) + waterMarkTemplate_.ratioRefer.dy = ratioReferNode["Dy"].asString(); auto timelineNode = waterMarkTemplateNode["Timeline"]; if(!timelineNode["Start"].isNull()) waterMarkTemplate_.timeline.start = timelineNode["Start"].asString(); if(!timelineNode["Duration"].isNull()) waterMarkTemplate_.timeline.duration = timelineNode["Duration"].asString(); - auto ratioReferNode = waterMarkTemplateNode["RatioRefer"]; - if(!ratioReferNode["Dx"].isNull()) - waterMarkTemplate_.ratioRefer.dx = ratioReferNode["Dx"].asString(); - if(!ratioReferNode["Dy"].isNull()) - waterMarkTemplate_.ratioRefer.dy = ratioReferNode["Dy"].asString(); - if(!ratioReferNode["Width"].isNull()) - waterMarkTemplate_.ratioRefer.width = ratioReferNode["Width"].asString(); - if(!ratioReferNode["Height"].isNull()) - waterMarkTemplate_.ratioRefer.height = ratioReferNode["Height"].asString(); }