From c89b84b7debd45f81efa0ec52019d4eed9f5877f Mon Sep 17 00:00:00 2001 From: sdk-team Date: Fri, 25 Jun 2021 06:29:05 +0000 Subject: [PATCH] Supported new features for outbound. --- CHANGELOG | 3 + VERSION | 2 +- outboundbot/CMakeLists.txt | 156 +- .../outboundbot/OutboundBotClient.h | 312 +++- .../outboundbot/model/AssignJobsRequest.h | 9 + .../outboundbot/model/AssignJobsResult.h | 2 + .../model/ChangeResourceGroupRequest.h | 51 + .../model/ChangeResourceGroupResult.h | 57 + .../model/CreateBatchRepeatJobRequest.h | 69 + ...aResult.h => CreateBatchRepeatJobResult.h} | 29 +- .../outboundbot/model/CreateInstanceRequest.h | 3 + .../outboundbot/model/CreateInstanceResult.h | 10 +- .../model/CreateJobDataParsingTaskRequest.h | 51 + .../model/CreateJobDataParsingTaskResult.h | 59 + .../model/CreateJobGroupExportTaskRequest.h | 54 + .../model/CreateJobGroupExportTaskResult.h | 59 + .../outboundbot/model/CreateJobGroupResult.h | 16 +- .../model/DeleteContactBlockListRequest.h | 54 + .../model/DeleteContactBlockListResult.h | 59 + .../model/DeleteContactWhiteListRequest.h | 54 + .../model/DeleteContactWhiteListResult.h | 59 + .../DescribeDialogueNodeStatisticsRequest.h | 54 + .../DescribeDialogueNodeStatisticsResult.h | 76 + .../model/DescribeDsReportsRequest.h | 51 + .../model/DescribeDsReportsResult.h | 59 + .../model/DescribeGroupExecutingInfoRequest.h | 51 + .../model/DescribeGroupExecutingInfoResult.h | 87 + .../model/DescribeInstanceResult.h | 10 +- .../model/DescribeIntentStatisticsRequest.h | 54 + .../model/DescribeIntentStatisticsResult.h | 85 + ...escribeJobDataParsingTaskProgressRequest.h | 51 + ...DescribeJobDataParsingTaskProgressResult.h | 67 + ...escribeJobGroupExportTaskProgressRequest.h | 51 + ...DescribeJobGroupExportTaskProgressResult.h | 61 + .../model/DescribeJobGroupResult.h | 26 +- .../outboundbot/model/DescribeJobResult.h | 9 + .../outboundbot/model/DescribeScriptResult.h | 11 +- .../GetAfterAnswerDelayPlaybackRequest.h | 51 + .../model/GetAfterAnswerDelayPlaybackResult.h | 59 + .../model/GetAsrServerInfoRequest.h | 51 + .../model/GetAsrServerInfoResult.h | 57 + .../model/GetBaseStrategyPeriodRequest.h | 51 + .../model/GetBaseStrategyPeriodResult.h | 68 + ...Request.h => GetContactBlockListRequest.h} | 18 +- .../model/GetContactBlockListResult.h | 77 + .../model/GetContactWhiteListRequest.h | 57 + .../model/GetContactWhiteListResult.h | 77 + .../model/GetEffectiveDaysRequest.h | 51 + .../model/GetEffectiveDaysResult.h | 59 + .../GetEmptyNumberNoMoreCallsInfoRequest.h | 51 + .../GetEmptyNumberNoMoreCallsInfoResult.h | 59 + .../model/GetMaxAttemptsPerDayRequest.h | 51 + .../model/GetMaxAttemptsPerDayResult.h | 59 + .../outboundbot/model/GetSummaryInfoRequest.h | 48 + .../outboundbot/model/GetSummaryInfoResult.h | 66 + .../outboundbot/model/GetTaskByUuidRequest.h | 54 + .../outboundbot/model/GetTaskByUuidResult.h | 65 + .../outboundbot/model/GetVersionRequest.h | 45 + .../outboundbot/model/GetVersionResult.h | 59 + .../outboundbot/model/ListInstancesRequest.h | 12 + .../outboundbot/model/ListInstancesResult.h | 16 +- .../model/ListJobGroupsAsyncRequest.h | 48 + .../model/ListJobGroupsAsyncResult.h | 110 ++ .../outboundbot/model/ListJobGroupsRequest.h | 9 + .../outboundbot/model/ListJobGroupsResult.h | 24 +- .../model/ListResourceTagsRequest.h | 54 + .../model/ListResourceTagsResult.h | 71 + .../model/ListTagResourcesRequest.h | 66 + .../model/ListTagResourcesResult.h | 68 + .../ModifyEmptyNumberNoMoreCallsInfoRequest.h | 54 + .../ModifyEmptyNumberNoMoreCallsInfoResult.h | 57 + .../outboundbot/model/ModifyInstanceResult.h | 3 + .../outboundbot/model/ModifyJobGroupResult.h | 16 +- .../model/QueryJobsWithResultRequest.h | 72 + .../model/QueryJobsWithResultResult.h | 109 ++ .../SaveAfterAnswerDelayPlaybackRequest.h | 54 + .../SaveAfterAnswerDelayPlaybackResult.h | 57 + .../model/SaveBaseStrategyPeriodRequest.h | 60 + .../model/SaveBaseStrategyPeriodResult.h | 57 + .../model/SaveContactBlockListRequest.h | 54 + .../model/SaveContactBlockListResult.h | 59 + .../model/SaveContactWhiteListRequest.h | 54 + .../model/SaveContactWhiteListResult.h | 59 + .../model/SaveEffectiveDaysRequest.h | 54 + .../model/SaveEffectiveDaysResult.h | 57 + .../model/SaveMaxAttemptsPerDayRequest.h | 54 + .../model/SaveMaxAttemptsPerDayResult.h | 57 + .../outboundbot/model/SuspendCallRequest.h | 54 + .../outboundbot/model/SuspendCallResult.h | 57 + .../model/SuspendCallWithFileRequest.h | 54 + .../model/SuspendCallWithFileResult.h | 57 + .../outboundbot/model/TagResourcesRequest.h | 63 + .../outboundbot/model/TagResourcesResult.h | 57 + .../outboundbot/model/UntagResourcesRequest.h | 60 + .../outboundbot/model/UntagResourcesResult.h | 57 + outboundbot/src/OutboundBotClient.cc | 1404 ++++++++++++++++- outboundbot/src/model/AssignJobsRequest.cc | 33 + outboundbot/src/model/AssignJobsResult.cc | 8 + .../src/model/ChangeResourceGroupRequest.cc | 51 + .../src/model/ChangeResourceGroupResult.cc | 72 + .../src/model/CreateBatchRepeatJobRequest.cc | 119 ++ .../src/model/CreateBatchRepeatJobResult.cc | 80 + .../src/model/CreateInstanceRequest.cc | 11 + outboundbot/src/model/CreateInstanceResult.cc | 16 +- .../model/CreateJobDataParsingTaskRequest.cc | 51 + .../model/CreateJobDataParsingTaskResult.cc | 79 + .../model/CreateJobGroupExportTaskRequest.cc | 64 + .../model/CreateJobGroupExportTaskResult.cc | 79 + outboundbot/src/model/CreateJobGroupResult.cc | 17 + .../model/DeleteContactBlockListRequest.cc | 62 + .../src/model/DeleteContactBlockListResult.cc | 79 + .../model/DeleteContactWhiteListRequest.cc | 62 + .../src/model/DeleteContactWhiteListResult.cc | 79 + .../DescribeDialogueNodeStatisticsRequest.cc | 62 + .../DescribeDialogueNodeStatisticsResult.cc | 120 ++ .../src/model/DescribeDsReportsRequest.cc | 51 + .../src/model/DescribeDsReportsResult.cc | 79 + .../DescribeGroupExecutingInfoRequest.cc | 51 + .../model/DescribeGroupExecutingInfoResult.cc | 127 ++ .../src/model/DescribeInstanceResult.cc | 16 +- .../model/DescribeIntentStatisticsRequest.cc | 62 + .../model/DescribeIntentStatisticsResult.cc | 163 ++ ...scribeJobDataParsingTaskProgressRequest.cc | 51 + ...escribeJobDataParsingTaskProgressResult.cc | 88 ++ ...scribeJobGroupExportTaskProgressRequest.cc | 51 + ...escribeJobGroupExportTaskProgressResult.cc | 86 + .../src/model/DescribeJobGroupResult.cc | 26 + outboundbot/src/model/DescribeJobResult.cc | 18 + outboundbot/src/model/DescribeScriptResult.cc | 6 + .../GetAfterAnswerDelayPlaybackRequest.cc | 51 + .../GetAfterAnswerDelayPlaybackResult.cc | 79 + .../src/model/GetAsrServerInfoRequest.cc | 51 + .../src/model/GetAsrServerInfoResult.cc | 72 + .../src/model/GetBaseStrategyPeriodRequest.cc | 51 + .../src/model/GetBaseStrategyPeriodResult.cc | 98 ++ ...quest.cc => GetContactBlockListRequest.cc} | 44 +- .../src/model/GetContactBlockListResult.cc | 106 ++ .../src/model/GetContactWhiteListRequest.cc | 73 + .../src/model/GetContactWhiteListResult.cc | 106 ++ .../src/model/GetEffectiveDaysRequest.cc | 51 + .../src/model/GetEffectiveDaysResult.cc | 79 + .../GetEmptyNumberNoMoreCallsInfoRequest.cc | 51 + .../GetEmptyNumberNoMoreCallsInfoResult.cc | 79 + .../src/model/GetMaxAttemptsPerDayRequest.cc | 51 + .../src/model/GetMaxAttemptsPerDayResult.cc | 79 + .../src/model/GetSummaryInfoRequest.cc | 42 + outboundbot/src/model/GetSummaryInfoResult.cc | 91 ++ outboundbot/src/model/GetTaskByUuidRequest.cc | 62 + outboundbot/src/model/GetTaskByUuidResult.cc | 72 + outboundbot/src/model/GetVersionRequest.cc | 29 + outboundbot/src/model/GetVersionResult.cc | 79 + outboundbot/src/model/ListInstancesRequest.cc | 27 + outboundbot/src/model/ListInstancesResult.cc | 26 +- .../src/model/ListJobGroupsAsyncRequest.cc | 40 + .../src/model/ListJobGroupsAsyncResult.cc | 173 ++ outboundbot/src/model/ListJobGroupsRequest.cc | 33 + outboundbot/src/model/ListJobGroupsResult.cc | 32 + outboundbot/src/model/ListMediaResult.cc | 108 -- .../src/model/ListResourceTagsRequest.cc | 62 + .../src/model/ListResourceTagsResult.cc | 94 ++ .../src/model/ListTagResourcesRequest.cc | 91 ++ .../src/model/ListTagResourcesResult.cc | 98 ++ ...ModifyEmptyNumberNoMoreCallsInfoRequest.cc | 62 + .../ModifyEmptyNumberNoMoreCallsInfoResult.cc | 72 + outboundbot/src/model/ModifyInstanceResult.cc | 14 +- outboundbot/src/model/ModifyJobGroupResult.cc | 17 + .../src/model/QueryJobsWithResultRequest.cc | 128 ++ .../src/model/QueryJobsWithResultResult.cc | 158 ++ .../SaveAfterAnswerDelayPlaybackRequest.cc | 62 + .../SaveAfterAnswerDelayPlaybackResult.cc | 72 + .../model/SaveBaseStrategyPeriodRequest.cc | 86 + .../src/model/SaveBaseStrategyPeriodResult.cc | 72 + .../src/model/SaveContactBlockListRequest.cc | 64 + .../src/model/SaveContactBlockListResult.cc | 79 + .../src/model/SaveContactWhiteListRequest.cc | 64 + .../src/model/SaveContactWhiteListResult.cc | 79 + .../src/model/SaveEffectiveDaysRequest.cc | 62 + .../src/model/SaveEffectiveDaysResult.cc | 72 + .../src/model/SaveMaxAttemptsPerDayRequest.cc | 62 + .../src/model/SaveMaxAttemptsPerDayResult.cc | 72 + outboundbot/src/model/SuspendCallRequest.cc | 64 + outboundbot/src/model/SuspendCallResult.cc | 72 + .../src/model/SuspendCallWithFileRequest.cc | 62 + .../src/model/SuspendCallWithFileResult.cc | 72 + outboundbot/src/model/TagResourcesRequest.cc | 80 + outboundbot/src/model/TagResourcesResult.cc | 72 + .../src/model/UntagResourcesRequest.cc | 88 ++ outboundbot/src/model/UntagResourcesResult.cc | 72 + 188 files changed, 12465 insertions(+), 245 deletions(-) create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/CreateBatchRepeatJobRequest.h rename outboundbot/include/alibabacloud/outboundbot/model/{ListMediaResult.h => CreateBatchRepeatJobResult.h} (64%) create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodResult.h rename outboundbot/include/alibabacloud/outboundbot/model/{ListMediaRequest.h => GetContactBlockListRequest.h} (70%) create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetVersionRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GetVersionResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SuspendCallRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SuspendCallResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/TagResourcesRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/TagResourcesResult.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesResult.h create mode 100644 outboundbot/src/model/ChangeResourceGroupRequest.cc create mode 100644 outboundbot/src/model/ChangeResourceGroupResult.cc create mode 100644 outboundbot/src/model/CreateBatchRepeatJobRequest.cc create mode 100644 outboundbot/src/model/CreateBatchRepeatJobResult.cc create mode 100644 outboundbot/src/model/CreateJobDataParsingTaskRequest.cc create mode 100644 outboundbot/src/model/CreateJobDataParsingTaskResult.cc create mode 100644 outboundbot/src/model/CreateJobGroupExportTaskRequest.cc create mode 100644 outboundbot/src/model/CreateJobGroupExportTaskResult.cc create mode 100644 outboundbot/src/model/DeleteContactBlockListRequest.cc create mode 100644 outboundbot/src/model/DeleteContactBlockListResult.cc create mode 100644 outboundbot/src/model/DeleteContactWhiteListRequest.cc create mode 100644 outboundbot/src/model/DeleteContactWhiteListResult.cc create mode 100644 outboundbot/src/model/DescribeDialogueNodeStatisticsRequest.cc create mode 100644 outboundbot/src/model/DescribeDialogueNodeStatisticsResult.cc create mode 100644 outboundbot/src/model/DescribeDsReportsRequest.cc create mode 100644 outboundbot/src/model/DescribeDsReportsResult.cc create mode 100644 outboundbot/src/model/DescribeGroupExecutingInfoRequest.cc create mode 100644 outboundbot/src/model/DescribeGroupExecutingInfoResult.cc create mode 100644 outboundbot/src/model/DescribeIntentStatisticsRequest.cc create mode 100644 outboundbot/src/model/DescribeIntentStatisticsResult.cc create mode 100644 outboundbot/src/model/DescribeJobDataParsingTaskProgressRequest.cc create mode 100644 outboundbot/src/model/DescribeJobDataParsingTaskProgressResult.cc create mode 100644 outboundbot/src/model/DescribeJobGroupExportTaskProgressRequest.cc create mode 100644 outboundbot/src/model/DescribeJobGroupExportTaskProgressResult.cc create mode 100644 outboundbot/src/model/GetAfterAnswerDelayPlaybackRequest.cc create mode 100644 outboundbot/src/model/GetAfterAnswerDelayPlaybackResult.cc create mode 100644 outboundbot/src/model/GetAsrServerInfoRequest.cc create mode 100644 outboundbot/src/model/GetAsrServerInfoResult.cc create mode 100644 outboundbot/src/model/GetBaseStrategyPeriodRequest.cc create mode 100644 outboundbot/src/model/GetBaseStrategyPeriodResult.cc rename outboundbot/src/model/{ListMediaRequest.cc => GetContactBlockListRequest.cc} (50%) create mode 100644 outboundbot/src/model/GetContactBlockListResult.cc create mode 100644 outboundbot/src/model/GetContactWhiteListRequest.cc create mode 100644 outboundbot/src/model/GetContactWhiteListResult.cc create mode 100644 outboundbot/src/model/GetEffectiveDaysRequest.cc create mode 100644 outboundbot/src/model/GetEffectiveDaysResult.cc create mode 100644 outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoRequest.cc create mode 100644 outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoResult.cc create mode 100644 outboundbot/src/model/GetMaxAttemptsPerDayRequest.cc create mode 100644 outboundbot/src/model/GetMaxAttemptsPerDayResult.cc create mode 100644 outboundbot/src/model/GetSummaryInfoRequest.cc create mode 100644 outboundbot/src/model/GetSummaryInfoResult.cc create mode 100644 outboundbot/src/model/GetTaskByUuidRequest.cc create mode 100644 outboundbot/src/model/GetTaskByUuidResult.cc create mode 100644 outboundbot/src/model/GetVersionRequest.cc create mode 100644 outboundbot/src/model/GetVersionResult.cc create mode 100644 outboundbot/src/model/ListJobGroupsAsyncRequest.cc create mode 100644 outboundbot/src/model/ListJobGroupsAsyncResult.cc delete mode 100644 outboundbot/src/model/ListMediaResult.cc create mode 100644 outboundbot/src/model/ListResourceTagsRequest.cc create mode 100644 outboundbot/src/model/ListResourceTagsResult.cc create mode 100644 outboundbot/src/model/ListTagResourcesRequest.cc create mode 100644 outboundbot/src/model/ListTagResourcesResult.cc create mode 100644 outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoRequest.cc create mode 100644 outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoResult.cc create mode 100644 outboundbot/src/model/QueryJobsWithResultRequest.cc create mode 100644 outboundbot/src/model/QueryJobsWithResultResult.cc create mode 100644 outboundbot/src/model/SaveAfterAnswerDelayPlaybackRequest.cc create mode 100644 outboundbot/src/model/SaveAfterAnswerDelayPlaybackResult.cc create mode 100644 outboundbot/src/model/SaveBaseStrategyPeriodRequest.cc create mode 100644 outboundbot/src/model/SaveBaseStrategyPeriodResult.cc create mode 100644 outboundbot/src/model/SaveContactBlockListRequest.cc create mode 100644 outboundbot/src/model/SaveContactBlockListResult.cc create mode 100644 outboundbot/src/model/SaveContactWhiteListRequest.cc create mode 100644 outboundbot/src/model/SaveContactWhiteListResult.cc create mode 100644 outboundbot/src/model/SaveEffectiveDaysRequest.cc create mode 100644 outboundbot/src/model/SaveEffectiveDaysResult.cc create mode 100644 outboundbot/src/model/SaveMaxAttemptsPerDayRequest.cc create mode 100644 outboundbot/src/model/SaveMaxAttemptsPerDayResult.cc create mode 100644 outboundbot/src/model/SuspendCallRequest.cc create mode 100644 outboundbot/src/model/SuspendCallResult.cc create mode 100644 outboundbot/src/model/SuspendCallWithFileRequest.cc create mode 100644 outboundbot/src/model/SuspendCallWithFileResult.cc create mode 100644 outboundbot/src/model/TagResourcesRequest.cc create mode 100644 outboundbot/src/model/TagResourcesResult.cc create mode 100644 outboundbot/src/model/UntagResourcesRequest.cc create mode 100644 outboundbot/src/model/UntagResourcesResult.cc diff --git a/CHANGELOG b/CHANGELOG index 70457d7d9..b17aac76d 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-06-25 Version: 1.36.801 +- Supported new features for outbound. + 2021-06-25 Version: 1.36.800 - Update DescribeSplitItemBill to support daily report. diff --git a/VERSION b/VERSION index ebdd4f337..76bc82c16 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.800 \ No newline at end of file +1.36.801 \ No newline at end of file diff --git a/outboundbot/CMakeLists.txt b/outboundbot/CMakeLists.txt index 346f6804d..fcfef832d 100644 --- a/outboundbot/CMakeLists.txt +++ b/outboundbot/CMakeLists.txt @@ -25,8 +25,12 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/AssignJobsResult.h include/alibabacloud/outboundbot/model/CancelJobsRequest.h include/alibabacloud/outboundbot/model/CancelJobsResult.h + include/alibabacloud/outboundbot/model/ChangeResourceGroupRequest.h + include/alibabacloud/outboundbot/model/ChangeResourceGroupResult.h include/alibabacloud/outboundbot/model/CreateBatchJobsRequest.h include/alibabacloud/outboundbot/model/CreateBatchJobsResult.h + include/alibabacloud/outboundbot/model/CreateBatchRepeatJobRequest.h + include/alibabacloud/outboundbot/model/CreateBatchRepeatJobResult.h include/alibabacloud/outboundbot/model/CreateDialogueFlowRequest.h include/alibabacloud/outboundbot/model/CreateDialogueFlowResult.h include/alibabacloud/outboundbot/model/CreateGlobalQuestionRequest.h @@ -35,8 +39,12 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/CreateInstanceResult.h include/alibabacloud/outboundbot/model/CreateIntentRequest.h include/alibabacloud/outboundbot/model/CreateIntentResult.h + include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.h + include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskResult.h include/alibabacloud/outboundbot/model/CreateJobGroupRequest.h include/alibabacloud/outboundbot/model/CreateJobGroupResult.h + include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskRequest.h + include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskResult.h include/alibabacloud/outboundbot/model/CreateOutboundCallNumberRequest.h include/alibabacloud/outboundbot/model/CreateOutboundCallNumberResult.h include/alibabacloud/outboundbot/model/CreateScriptRequest.h @@ -45,6 +53,10 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/CreateScriptWaveformResult.h include/alibabacloud/outboundbot/model/CreateTagRequest.h include/alibabacloud/outboundbot/model/CreateTagResult.h + include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h + include/alibabacloud/outboundbot/model/DeleteContactBlockListResult.h + include/alibabacloud/outboundbot/model/DeleteContactWhiteListRequest.h + include/alibabacloud/outboundbot/model/DeleteContactWhiteListResult.h include/alibabacloud/outboundbot/model/DeleteDialogueFlowRequest.h include/alibabacloud/outboundbot/model/DeleteDialogueFlowResult.h include/alibabacloud/outboundbot/model/DeleteGlobalQuestionRequest.h @@ -61,16 +73,28 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/DeleteScriptResult.h include/alibabacloud/outboundbot/model/DeleteScriptWaveformRequest.h include/alibabacloud/outboundbot/model/DeleteScriptWaveformResult.h + include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsRequest.h + include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsResult.h + include/alibabacloud/outboundbot/model/DescribeDsReportsRequest.h + include/alibabacloud/outboundbot/model/DescribeDsReportsResult.h include/alibabacloud/outboundbot/model/DescribeGlobalQuestionRequest.h include/alibabacloud/outboundbot/model/DescribeGlobalQuestionResult.h + include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoRequest.h + include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoResult.h include/alibabacloud/outboundbot/model/DescribeInstanceRequest.h include/alibabacloud/outboundbot/model/DescribeInstanceResult.h include/alibabacloud/outboundbot/model/DescribeIntentRequest.h include/alibabacloud/outboundbot/model/DescribeIntentResult.h + include/alibabacloud/outboundbot/model/DescribeIntentStatisticsRequest.h + include/alibabacloud/outboundbot/model/DescribeIntentStatisticsResult.h include/alibabacloud/outboundbot/model/DescribeJobRequest.h include/alibabacloud/outboundbot/model/DescribeJobResult.h + include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressRequest.h + include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressResult.h include/alibabacloud/outboundbot/model/DescribeJobGroupRequest.h include/alibabacloud/outboundbot/model/DescribeJobGroupResult.h + include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.h + include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressResult.h include/alibabacloud/outboundbot/model/DescribeScriptRequest.h include/alibabacloud/outboundbot/model/DescribeScriptResult.h include/alibabacloud/outboundbot/model/DescribeScriptVoiceConfigRequest.h @@ -89,6 +113,28 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/DuplicateScriptResult.h include/alibabacloud/outboundbot/model/ExportScriptRequest.h include/alibabacloud/outboundbot/model/ExportScriptResult.h + include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.h + include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackResult.h + include/alibabacloud/outboundbot/model/GetAsrServerInfoRequest.h + include/alibabacloud/outboundbot/model/GetAsrServerInfoResult.h + include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.h + include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodResult.h + include/alibabacloud/outboundbot/model/GetContactBlockListRequest.h + include/alibabacloud/outboundbot/model/GetContactBlockListResult.h + include/alibabacloud/outboundbot/model/GetContactWhiteListRequest.h + include/alibabacloud/outboundbot/model/GetContactWhiteListResult.h + include/alibabacloud/outboundbot/model/GetEffectiveDaysRequest.h + include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h + include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h + include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoResult.h + include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.h + include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayResult.h + include/alibabacloud/outboundbot/model/GetSummaryInfoRequest.h + include/alibabacloud/outboundbot/model/GetSummaryInfoResult.h + include/alibabacloud/outboundbot/model/GetTaskByUuidRequest.h + include/alibabacloud/outboundbot/model/GetTaskByUuidResult.h + include/alibabacloud/outboundbot/model/GetVersionRequest.h + include/alibabacloud/outboundbot/model/GetVersionResult.h include/alibabacloud/outboundbot/model/ImportScriptRequest.h include/alibabacloud/outboundbot/model/ImportScriptResult.h include/alibabacloud/outboundbot/model/InflightTaskTimeoutRequest.h @@ -103,14 +149,16 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/ListIntentsResult.h include/alibabacloud/outboundbot/model/ListJobGroupsRequest.h include/alibabacloud/outboundbot/model/ListJobGroupsResult.h + include/alibabacloud/outboundbot/model/ListJobGroupsAsyncRequest.h + include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h include/alibabacloud/outboundbot/model/ListJobsRequest.h include/alibabacloud/outboundbot/model/ListJobsResult.h include/alibabacloud/outboundbot/model/ListJobsByGroupRequest.h include/alibabacloud/outboundbot/model/ListJobsByGroupResult.h - include/alibabacloud/outboundbot/model/ListMediaRequest.h - include/alibabacloud/outboundbot/model/ListMediaResult.h include/alibabacloud/outboundbot/model/ListOutboundCallNumbersRequest.h include/alibabacloud/outboundbot/model/ListOutboundCallNumbersResult.h + include/alibabacloud/outboundbot/model/ListResourceTagsRequest.h + include/alibabacloud/outboundbot/model/ListResourceTagsResult.h include/alibabacloud/outboundbot/model/ListSchedulerInstancesRequest.h include/alibabacloud/outboundbot/model/ListSchedulerInstancesResult.h include/alibabacloud/outboundbot/model/ListScriptPublishHistoriesRequest.h @@ -119,12 +167,16 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/ListScriptVoiceConfigsResult.h include/alibabacloud/outboundbot/model/ListScriptsRequest.h include/alibabacloud/outboundbot/model/ListScriptsResult.h + include/alibabacloud/outboundbot/model/ListTagResourcesRequest.h + include/alibabacloud/outboundbot/model/ListTagResourcesResult.h include/alibabacloud/outboundbot/model/ListTagsRequest.h include/alibabacloud/outboundbot/model/ListTagsResult.h include/alibabacloud/outboundbot/model/ModifyBatchJobsRequest.h include/alibabacloud/outboundbot/model/ModifyBatchJobsResult.h include/alibabacloud/outboundbot/model/ModifyDialogueFlowRequest.h include/alibabacloud/outboundbot/model/ModifyDialogueFlowResult.h + include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoRequest.h + include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoResult.h include/alibabacloud/outboundbot/model/ModifyGlobalQuestionRequest.h include/alibabacloud/outboundbot/model/ModifyGlobalQuestionResult.h include/alibabacloud/outboundbot/model/ModifyInstanceRequest.h @@ -149,6 +201,8 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/PublishScriptForDebugResult.h include/alibabacloud/outboundbot/model/QueryJobsRequest.h include/alibabacloud/outboundbot/model/QueryJobsResult.h + include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h + include/alibabacloud/outboundbot/model/QueryJobsWithResultResult.h include/alibabacloud/outboundbot/model/QueryScriptWaveformsRequest.h include/alibabacloud/outboundbot/model/QueryScriptWaveformsResult.h include/alibabacloud/outboundbot/model/QueryScriptsByStatusRequest.h @@ -159,6 +213,18 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/ResumeJobsResult.h include/alibabacloud/outboundbot/model/RollbackScriptRequest.h include/alibabacloud/outboundbot/model/RollbackScriptResult.h + include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackRequest.h + include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackResult.h + include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodRequest.h + include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodResult.h + include/alibabacloud/outboundbot/model/SaveContactBlockListRequest.h + include/alibabacloud/outboundbot/model/SaveContactBlockListResult.h + include/alibabacloud/outboundbot/model/SaveContactWhiteListRequest.h + include/alibabacloud/outboundbot/model/SaveContactWhiteListResult.h + include/alibabacloud/outboundbot/model/SaveEffectiveDaysRequest.h + include/alibabacloud/outboundbot/model/SaveEffectiveDaysResult.h + include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayRequest.h + include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayResult.h include/alibabacloud/outboundbot/model/StartJobRequest.h include/alibabacloud/outboundbot/model/StartJobResult.h include/alibabacloud/outboundbot/model/SubmitBatchJobsRequest.h @@ -167,10 +233,18 @@ set(outboundbot_public_header_model include/alibabacloud/outboundbot/model/SubmitRecordingResult.h include/alibabacloud/outboundbot/model/SubmitScriptReviewRequest.h include/alibabacloud/outboundbot/model/SubmitScriptReviewResult.h + include/alibabacloud/outboundbot/model/SuspendCallRequest.h + include/alibabacloud/outboundbot/model/SuspendCallResult.h + include/alibabacloud/outboundbot/model/SuspendCallWithFileRequest.h + include/alibabacloud/outboundbot/model/SuspendCallWithFileResult.h include/alibabacloud/outboundbot/model/SuspendJobsRequest.h include/alibabacloud/outboundbot/model/SuspendJobsResult.h + include/alibabacloud/outboundbot/model/TagResourcesRequest.h + include/alibabacloud/outboundbot/model/TagResourcesResult.h include/alibabacloud/outboundbot/model/TaskPreparingRequest.h include/alibabacloud/outboundbot/model/TaskPreparingResult.h + include/alibabacloud/outboundbot/model/UntagResourcesRequest.h + include/alibabacloud/outboundbot/model/UntagResourcesResult.h include/alibabacloud/outboundbot/model/WithdrawScriptReviewRequest.h include/alibabacloud/outboundbot/model/WithdrawScriptReviewResult.h ) @@ -180,8 +254,12 @@ set(outboundbot_src src/model/AssignJobsResult.cc src/model/CancelJobsRequest.cc src/model/CancelJobsResult.cc + src/model/ChangeResourceGroupRequest.cc + src/model/ChangeResourceGroupResult.cc src/model/CreateBatchJobsRequest.cc src/model/CreateBatchJobsResult.cc + src/model/CreateBatchRepeatJobRequest.cc + src/model/CreateBatchRepeatJobResult.cc src/model/CreateDialogueFlowRequest.cc src/model/CreateDialogueFlowResult.cc src/model/CreateGlobalQuestionRequest.cc @@ -190,8 +268,12 @@ set(outboundbot_src src/model/CreateInstanceResult.cc src/model/CreateIntentRequest.cc src/model/CreateIntentResult.cc + src/model/CreateJobDataParsingTaskRequest.cc + src/model/CreateJobDataParsingTaskResult.cc src/model/CreateJobGroupRequest.cc src/model/CreateJobGroupResult.cc + src/model/CreateJobGroupExportTaskRequest.cc + src/model/CreateJobGroupExportTaskResult.cc src/model/CreateOutboundCallNumberRequest.cc src/model/CreateOutboundCallNumberResult.cc src/model/CreateScriptRequest.cc @@ -200,6 +282,10 @@ set(outboundbot_src src/model/CreateScriptWaveformResult.cc src/model/CreateTagRequest.cc src/model/CreateTagResult.cc + src/model/DeleteContactBlockListRequest.cc + src/model/DeleteContactBlockListResult.cc + src/model/DeleteContactWhiteListRequest.cc + src/model/DeleteContactWhiteListResult.cc src/model/DeleteDialogueFlowRequest.cc src/model/DeleteDialogueFlowResult.cc src/model/DeleteGlobalQuestionRequest.cc @@ -216,16 +302,28 @@ set(outboundbot_src src/model/DeleteScriptResult.cc src/model/DeleteScriptWaveformRequest.cc src/model/DeleteScriptWaveformResult.cc + src/model/DescribeDialogueNodeStatisticsRequest.cc + src/model/DescribeDialogueNodeStatisticsResult.cc + src/model/DescribeDsReportsRequest.cc + src/model/DescribeDsReportsResult.cc src/model/DescribeGlobalQuestionRequest.cc src/model/DescribeGlobalQuestionResult.cc + src/model/DescribeGroupExecutingInfoRequest.cc + src/model/DescribeGroupExecutingInfoResult.cc src/model/DescribeInstanceRequest.cc src/model/DescribeInstanceResult.cc src/model/DescribeIntentRequest.cc src/model/DescribeIntentResult.cc + src/model/DescribeIntentStatisticsRequest.cc + src/model/DescribeIntentStatisticsResult.cc src/model/DescribeJobRequest.cc src/model/DescribeJobResult.cc + src/model/DescribeJobDataParsingTaskProgressRequest.cc + src/model/DescribeJobDataParsingTaskProgressResult.cc src/model/DescribeJobGroupRequest.cc src/model/DescribeJobGroupResult.cc + src/model/DescribeJobGroupExportTaskProgressRequest.cc + src/model/DescribeJobGroupExportTaskProgressResult.cc src/model/DescribeScriptRequest.cc src/model/DescribeScriptResult.cc src/model/DescribeScriptVoiceConfigRequest.cc @@ -244,6 +342,28 @@ set(outboundbot_src src/model/DuplicateScriptResult.cc src/model/ExportScriptRequest.cc src/model/ExportScriptResult.cc + src/model/GetAfterAnswerDelayPlaybackRequest.cc + src/model/GetAfterAnswerDelayPlaybackResult.cc + src/model/GetAsrServerInfoRequest.cc + src/model/GetAsrServerInfoResult.cc + src/model/GetBaseStrategyPeriodRequest.cc + src/model/GetBaseStrategyPeriodResult.cc + src/model/GetContactBlockListRequest.cc + src/model/GetContactBlockListResult.cc + src/model/GetContactWhiteListRequest.cc + src/model/GetContactWhiteListResult.cc + src/model/GetEffectiveDaysRequest.cc + src/model/GetEffectiveDaysResult.cc + src/model/GetEmptyNumberNoMoreCallsInfoRequest.cc + src/model/GetEmptyNumberNoMoreCallsInfoResult.cc + src/model/GetMaxAttemptsPerDayRequest.cc + src/model/GetMaxAttemptsPerDayResult.cc + src/model/GetSummaryInfoRequest.cc + src/model/GetSummaryInfoResult.cc + src/model/GetTaskByUuidRequest.cc + src/model/GetTaskByUuidResult.cc + src/model/GetVersionRequest.cc + src/model/GetVersionResult.cc src/model/ImportScriptRequest.cc src/model/ImportScriptResult.cc src/model/InflightTaskTimeoutRequest.cc @@ -258,14 +378,16 @@ set(outboundbot_src src/model/ListIntentsResult.cc src/model/ListJobGroupsRequest.cc src/model/ListJobGroupsResult.cc + src/model/ListJobGroupsAsyncRequest.cc + src/model/ListJobGroupsAsyncResult.cc src/model/ListJobsRequest.cc src/model/ListJobsResult.cc src/model/ListJobsByGroupRequest.cc src/model/ListJobsByGroupResult.cc - src/model/ListMediaRequest.cc - src/model/ListMediaResult.cc src/model/ListOutboundCallNumbersRequest.cc src/model/ListOutboundCallNumbersResult.cc + src/model/ListResourceTagsRequest.cc + src/model/ListResourceTagsResult.cc src/model/ListSchedulerInstancesRequest.cc src/model/ListSchedulerInstancesResult.cc src/model/ListScriptPublishHistoriesRequest.cc @@ -274,12 +396,16 @@ set(outboundbot_src src/model/ListScriptVoiceConfigsResult.cc src/model/ListScriptsRequest.cc src/model/ListScriptsResult.cc + src/model/ListTagResourcesRequest.cc + src/model/ListTagResourcesResult.cc src/model/ListTagsRequest.cc src/model/ListTagsResult.cc src/model/ModifyBatchJobsRequest.cc src/model/ModifyBatchJobsResult.cc src/model/ModifyDialogueFlowRequest.cc src/model/ModifyDialogueFlowResult.cc + src/model/ModifyEmptyNumberNoMoreCallsInfoRequest.cc + src/model/ModifyEmptyNumberNoMoreCallsInfoResult.cc src/model/ModifyGlobalQuestionRequest.cc src/model/ModifyGlobalQuestionResult.cc src/model/ModifyInstanceRequest.cc @@ -304,6 +430,8 @@ set(outboundbot_src src/model/PublishScriptForDebugResult.cc src/model/QueryJobsRequest.cc src/model/QueryJobsResult.cc + src/model/QueryJobsWithResultRequest.cc + src/model/QueryJobsWithResultResult.cc src/model/QueryScriptWaveformsRequest.cc src/model/QueryScriptWaveformsResult.cc src/model/QueryScriptsByStatusRequest.cc @@ -314,6 +442,18 @@ set(outboundbot_src src/model/ResumeJobsResult.cc src/model/RollbackScriptRequest.cc src/model/RollbackScriptResult.cc + src/model/SaveAfterAnswerDelayPlaybackRequest.cc + src/model/SaveAfterAnswerDelayPlaybackResult.cc + src/model/SaveBaseStrategyPeriodRequest.cc + src/model/SaveBaseStrategyPeriodResult.cc + src/model/SaveContactBlockListRequest.cc + src/model/SaveContactBlockListResult.cc + src/model/SaveContactWhiteListRequest.cc + src/model/SaveContactWhiteListResult.cc + src/model/SaveEffectiveDaysRequest.cc + src/model/SaveEffectiveDaysResult.cc + src/model/SaveMaxAttemptsPerDayRequest.cc + src/model/SaveMaxAttemptsPerDayResult.cc src/model/StartJobRequest.cc src/model/StartJobResult.cc src/model/SubmitBatchJobsRequest.cc @@ -322,10 +462,18 @@ set(outboundbot_src src/model/SubmitRecordingResult.cc src/model/SubmitScriptReviewRequest.cc src/model/SubmitScriptReviewResult.cc + src/model/SuspendCallRequest.cc + src/model/SuspendCallResult.cc + src/model/SuspendCallWithFileRequest.cc + src/model/SuspendCallWithFileResult.cc src/model/SuspendJobsRequest.cc src/model/SuspendJobsResult.cc + src/model/TagResourcesRequest.cc + src/model/TagResourcesResult.cc src/model/TaskPreparingRequest.cc src/model/TaskPreparingResult.cc + src/model/UntagResourcesRequest.cc + src/model/UntagResourcesResult.cc src/model/WithdrawScriptReviewRequest.cc src/model/WithdrawScriptReviewResult.cc ) diff --git a/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h b/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h index 1e35a39ad..4718ce079 100644 --- a/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h +++ b/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h @@ -26,8 +26,12 @@ #include "model/AssignJobsResult.h" #include "model/CancelJobsRequest.h" #include "model/CancelJobsResult.h" +#include "model/ChangeResourceGroupRequest.h" +#include "model/ChangeResourceGroupResult.h" #include "model/CreateBatchJobsRequest.h" #include "model/CreateBatchJobsResult.h" +#include "model/CreateBatchRepeatJobRequest.h" +#include "model/CreateBatchRepeatJobResult.h" #include "model/CreateDialogueFlowRequest.h" #include "model/CreateDialogueFlowResult.h" #include "model/CreateGlobalQuestionRequest.h" @@ -36,8 +40,12 @@ #include "model/CreateInstanceResult.h" #include "model/CreateIntentRequest.h" #include "model/CreateIntentResult.h" +#include "model/CreateJobDataParsingTaskRequest.h" +#include "model/CreateJobDataParsingTaskResult.h" #include "model/CreateJobGroupRequest.h" #include "model/CreateJobGroupResult.h" +#include "model/CreateJobGroupExportTaskRequest.h" +#include "model/CreateJobGroupExportTaskResult.h" #include "model/CreateOutboundCallNumberRequest.h" #include "model/CreateOutboundCallNumberResult.h" #include "model/CreateScriptRequest.h" @@ -46,6 +54,10 @@ #include "model/CreateScriptWaveformResult.h" #include "model/CreateTagRequest.h" #include "model/CreateTagResult.h" +#include "model/DeleteContactBlockListRequest.h" +#include "model/DeleteContactBlockListResult.h" +#include "model/DeleteContactWhiteListRequest.h" +#include "model/DeleteContactWhiteListResult.h" #include "model/DeleteDialogueFlowRequest.h" #include "model/DeleteDialogueFlowResult.h" #include "model/DeleteGlobalQuestionRequest.h" @@ -62,16 +74,28 @@ #include "model/DeleteScriptResult.h" #include "model/DeleteScriptWaveformRequest.h" #include "model/DeleteScriptWaveformResult.h" +#include "model/DescribeDialogueNodeStatisticsRequest.h" +#include "model/DescribeDialogueNodeStatisticsResult.h" +#include "model/DescribeDsReportsRequest.h" +#include "model/DescribeDsReportsResult.h" #include "model/DescribeGlobalQuestionRequest.h" #include "model/DescribeGlobalQuestionResult.h" +#include "model/DescribeGroupExecutingInfoRequest.h" +#include "model/DescribeGroupExecutingInfoResult.h" #include "model/DescribeInstanceRequest.h" #include "model/DescribeInstanceResult.h" #include "model/DescribeIntentRequest.h" #include "model/DescribeIntentResult.h" +#include "model/DescribeIntentStatisticsRequest.h" +#include "model/DescribeIntentStatisticsResult.h" #include "model/DescribeJobRequest.h" #include "model/DescribeJobResult.h" +#include "model/DescribeJobDataParsingTaskProgressRequest.h" +#include "model/DescribeJobDataParsingTaskProgressResult.h" #include "model/DescribeJobGroupRequest.h" #include "model/DescribeJobGroupResult.h" +#include "model/DescribeJobGroupExportTaskProgressRequest.h" +#include "model/DescribeJobGroupExportTaskProgressResult.h" #include "model/DescribeScriptRequest.h" #include "model/DescribeScriptResult.h" #include "model/DescribeScriptVoiceConfigRequest.h" @@ -90,6 +114,28 @@ #include "model/DuplicateScriptResult.h" #include "model/ExportScriptRequest.h" #include "model/ExportScriptResult.h" +#include "model/GetAfterAnswerDelayPlaybackRequest.h" +#include "model/GetAfterAnswerDelayPlaybackResult.h" +#include "model/GetAsrServerInfoRequest.h" +#include "model/GetAsrServerInfoResult.h" +#include "model/GetBaseStrategyPeriodRequest.h" +#include "model/GetBaseStrategyPeriodResult.h" +#include "model/GetContactBlockListRequest.h" +#include "model/GetContactBlockListResult.h" +#include "model/GetContactWhiteListRequest.h" +#include "model/GetContactWhiteListResult.h" +#include "model/GetEffectiveDaysRequest.h" +#include "model/GetEffectiveDaysResult.h" +#include "model/GetEmptyNumberNoMoreCallsInfoRequest.h" +#include "model/GetEmptyNumberNoMoreCallsInfoResult.h" +#include "model/GetMaxAttemptsPerDayRequest.h" +#include "model/GetMaxAttemptsPerDayResult.h" +#include "model/GetSummaryInfoRequest.h" +#include "model/GetSummaryInfoResult.h" +#include "model/GetTaskByUuidRequest.h" +#include "model/GetTaskByUuidResult.h" +#include "model/GetVersionRequest.h" +#include "model/GetVersionResult.h" #include "model/ImportScriptRequest.h" #include "model/ImportScriptResult.h" #include "model/InflightTaskTimeoutRequest.h" @@ -104,14 +150,16 @@ #include "model/ListIntentsResult.h" #include "model/ListJobGroupsRequest.h" #include "model/ListJobGroupsResult.h" +#include "model/ListJobGroupsAsyncRequest.h" +#include "model/ListJobGroupsAsyncResult.h" #include "model/ListJobsRequest.h" #include "model/ListJobsResult.h" #include "model/ListJobsByGroupRequest.h" #include "model/ListJobsByGroupResult.h" -#include "model/ListMediaRequest.h" -#include "model/ListMediaResult.h" #include "model/ListOutboundCallNumbersRequest.h" #include "model/ListOutboundCallNumbersResult.h" +#include "model/ListResourceTagsRequest.h" +#include "model/ListResourceTagsResult.h" #include "model/ListSchedulerInstancesRequest.h" #include "model/ListSchedulerInstancesResult.h" #include "model/ListScriptPublishHistoriesRequest.h" @@ -120,12 +168,16 @@ #include "model/ListScriptVoiceConfigsResult.h" #include "model/ListScriptsRequest.h" #include "model/ListScriptsResult.h" +#include "model/ListTagResourcesRequest.h" +#include "model/ListTagResourcesResult.h" #include "model/ListTagsRequest.h" #include "model/ListTagsResult.h" #include "model/ModifyBatchJobsRequest.h" #include "model/ModifyBatchJobsResult.h" #include "model/ModifyDialogueFlowRequest.h" #include "model/ModifyDialogueFlowResult.h" +#include "model/ModifyEmptyNumberNoMoreCallsInfoRequest.h" +#include "model/ModifyEmptyNumberNoMoreCallsInfoResult.h" #include "model/ModifyGlobalQuestionRequest.h" #include "model/ModifyGlobalQuestionResult.h" #include "model/ModifyInstanceRequest.h" @@ -150,6 +202,8 @@ #include "model/PublishScriptForDebugResult.h" #include "model/QueryJobsRequest.h" #include "model/QueryJobsResult.h" +#include "model/QueryJobsWithResultRequest.h" +#include "model/QueryJobsWithResultResult.h" #include "model/QueryScriptWaveformsRequest.h" #include "model/QueryScriptWaveformsResult.h" #include "model/QueryScriptsByStatusRequest.h" @@ -160,6 +214,18 @@ #include "model/ResumeJobsResult.h" #include "model/RollbackScriptRequest.h" #include "model/RollbackScriptResult.h" +#include "model/SaveAfterAnswerDelayPlaybackRequest.h" +#include "model/SaveAfterAnswerDelayPlaybackResult.h" +#include "model/SaveBaseStrategyPeriodRequest.h" +#include "model/SaveBaseStrategyPeriodResult.h" +#include "model/SaveContactBlockListRequest.h" +#include "model/SaveContactBlockListResult.h" +#include "model/SaveContactWhiteListRequest.h" +#include "model/SaveContactWhiteListResult.h" +#include "model/SaveEffectiveDaysRequest.h" +#include "model/SaveEffectiveDaysResult.h" +#include "model/SaveMaxAttemptsPerDayRequest.h" +#include "model/SaveMaxAttemptsPerDayResult.h" #include "model/StartJobRequest.h" #include "model/StartJobResult.h" #include "model/SubmitBatchJobsRequest.h" @@ -168,10 +234,18 @@ #include "model/SubmitRecordingResult.h" #include "model/SubmitScriptReviewRequest.h" #include "model/SubmitScriptReviewResult.h" +#include "model/SuspendCallRequest.h" +#include "model/SuspendCallResult.h" +#include "model/SuspendCallWithFileRequest.h" +#include "model/SuspendCallWithFileResult.h" #include "model/SuspendJobsRequest.h" #include "model/SuspendJobsResult.h" +#include "model/TagResourcesRequest.h" +#include "model/TagResourcesResult.h" #include "model/TaskPreparingRequest.h" #include "model/TaskPreparingResult.h" +#include "model/UntagResourcesRequest.h" +#include "model/UntagResourcesResult.h" #include "model/WithdrawScriptReviewRequest.h" #include "model/WithdrawScriptReviewResult.h" @@ -189,9 +263,15 @@ namespace AlibabaCloud typedef Outcome CancelJobsOutcome; typedef std::future CancelJobsOutcomeCallable; typedef std::function&)> CancelJobsAsyncHandler; + typedef Outcome ChangeResourceGroupOutcome; + typedef std::future ChangeResourceGroupOutcomeCallable; + typedef std::function&)> ChangeResourceGroupAsyncHandler; typedef Outcome CreateBatchJobsOutcome; typedef std::future CreateBatchJobsOutcomeCallable; typedef std::function&)> CreateBatchJobsAsyncHandler; + typedef Outcome CreateBatchRepeatJobOutcome; + typedef std::future CreateBatchRepeatJobOutcomeCallable; + typedef std::function&)> CreateBatchRepeatJobAsyncHandler; typedef Outcome CreateDialogueFlowOutcome; typedef std::future CreateDialogueFlowOutcomeCallable; typedef std::function&)> CreateDialogueFlowAsyncHandler; @@ -204,9 +284,15 @@ namespace AlibabaCloud typedef Outcome CreateIntentOutcome; typedef std::future CreateIntentOutcomeCallable; typedef std::function&)> CreateIntentAsyncHandler; + typedef Outcome CreateJobDataParsingTaskOutcome; + typedef std::future CreateJobDataParsingTaskOutcomeCallable; + typedef std::function&)> CreateJobDataParsingTaskAsyncHandler; typedef Outcome CreateJobGroupOutcome; typedef std::future CreateJobGroupOutcomeCallable; typedef std::function&)> CreateJobGroupAsyncHandler; + typedef Outcome CreateJobGroupExportTaskOutcome; + typedef std::future CreateJobGroupExportTaskOutcomeCallable; + typedef std::function&)> CreateJobGroupExportTaskAsyncHandler; typedef Outcome CreateOutboundCallNumberOutcome; typedef std::future CreateOutboundCallNumberOutcomeCallable; typedef std::function&)> CreateOutboundCallNumberAsyncHandler; @@ -219,6 +305,12 @@ namespace AlibabaCloud typedef Outcome CreateTagOutcome; typedef std::future CreateTagOutcomeCallable; typedef std::function&)> CreateTagAsyncHandler; + typedef Outcome DeleteContactBlockListOutcome; + typedef std::future DeleteContactBlockListOutcomeCallable; + typedef std::function&)> DeleteContactBlockListAsyncHandler; + typedef Outcome DeleteContactWhiteListOutcome; + typedef std::future DeleteContactWhiteListOutcomeCallable; + typedef std::function&)> DeleteContactWhiteListAsyncHandler; typedef Outcome DeleteDialogueFlowOutcome; typedef std::future DeleteDialogueFlowOutcomeCallable; typedef std::function&)> DeleteDialogueFlowAsyncHandler; @@ -243,21 +335,39 @@ namespace AlibabaCloud typedef Outcome DeleteScriptWaveformOutcome; typedef std::future DeleteScriptWaveformOutcomeCallable; typedef std::function&)> DeleteScriptWaveformAsyncHandler; + typedef Outcome DescribeDialogueNodeStatisticsOutcome; + typedef std::future DescribeDialogueNodeStatisticsOutcomeCallable; + typedef std::function&)> DescribeDialogueNodeStatisticsAsyncHandler; + typedef Outcome DescribeDsReportsOutcome; + typedef std::future DescribeDsReportsOutcomeCallable; + typedef std::function&)> DescribeDsReportsAsyncHandler; typedef Outcome DescribeGlobalQuestionOutcome; typedef std::future DescribeGlobalQuestionOutcomeCallable; typedef std::function&)> DescribeGlobalQuestionAsyncHandler; + typedef Outcome DescribeGroupExecutingInfoOutcome; + typedef std::future DescribeGroupExecutingInfoOutcomeCallable; + typedef std::function&)> DescribeGroupExecutingInfoAsyncHandler; typedef Outcome DescribeInstanceOutcome; typedef std::future DescribeInstanceOutcomeCallable; typedef std::function&)> DescribeInstanceAsyncHandler; typedef Outcome DescribeIntentOutcome; typedef std::future DescribeIntentOutcomeCallable; typedef std::function&)> DescribeIntentAsyncHandler; + typedef Outcome DescribeIntentStatisticsOutcome; + typedef std::future DescribeIntentStatisticsOutcomeCallable; + typedef std::function&)> DescribeIntentStatisticsAsyncHandler; typedef Outcome DescribeJobOutcome; typedef std::future DescribeJobOutcomeCallable; typedef std::function&)> DescribeJobAsyncHandler; + typedef Outcome DescribeJobDataParsingTaskProgressOutcome; + typedef std::future DescribeJobDataParsingTaskProgressOutcomeCallable; + typedef std::function&)> DescribeJobDataParsingTaskProgressAsyncHandler; typedef Outcome DescribeJobGroupOutcome; typedef std::future DescribeJobGroupOutcomeCallable; typedef std::function&)> DescribeJobGroupAsyncHandler; + typedef Outcome DescribeJobGroupExportTaskProgressOutcome; + typedef std::future DescribeJobGroupExportTaskProgressOutcomeCallable; + typedef std::function&)> DescribeJobGroupExportTaskProgressAsyncHandler; typedef Outcome DescribeScriptOutcome; typedef std::future DescribeScriptOutcomeCallable; typedef std::function&)> DescribeScriptAsyncHandler; @@ -285,6 +395,39 @@ namespace AlibabaCloud typedef Outcome ExportScriptOutcome; typedef std::future ExportScriptOutcomeCallable; typedef std::function&)> ExportScriptAsyncHandler; + typedef Outcome GetAfterAnswerDelayPlaybackOutcome; + typedef std::future GetAfterAnswerDelayPlaybackOutcomeCallable; + typedef std::function&)> GetAfterAnswerDelayPlaybackAsyncHandler; + typedef Outcome GetAsrServerInfoOutcome; + typedef std::future GetAsrServerInfoOutcomeCallable; + typedef std::function&)> GetAsrServerInfoAsyncHandler; + typedef Outcome GetBaseStrategyPeriodOutcome; + typedef std::future GetBaseStrategyPeriodOutcomeCallable; + typedef std::function&)> GetBaseStrategyPeriodAsyncHandler; + typedef Outcome GetContactBlockListOutcome; + typedef std::future GetContactBlockListOutcomeCallable; + typedef std::function&)> GetContactBlockListAsyncHandler; + typedef Outcome GetContactWhiteListOutcome; + typedef std::future GetContactWhiteListOutcomeCallable; + typedef std::function&)> GetContactWhiteListAsyncHandler; + typedef Outcome GetEffectiveDaysOutcome; + typedef std::future GetEffectiveDaysOutcomeCallable; + typedef std::function&)> GetEffectiveDaysAsyncHandler; + typedef Outcome GetEmptyNumberNoMoreCallsInfoOutcome; + typedef std::future GetEmptyNumberNoMoreCallsInfoOutcomeCallable; + typedef std::function&)> GetEmptyNumberNoMoreCallsInfoAsyncHandler; + typedef Outcome GetMaxAttemptsPerDayOutcome; + typedef std::future GetMaxAttemptsPerDayOutcomeCallable; + typedef std::function&)> GetMaxAttemptsPerDayAsyncHandler; + typedef Outcome GetSummaryInfoOutcome; + typedef std::future GetSummaryInfoOutcomeCallable; + typedef std::function&)> GetSummaryInfoAsyncHandler; + typedef Outcome GetTaskByUuidOutcome; + typedef std::future GetTaskByUuidOutcomeCallable; + typedef std::function&)> GetTaskByUuidAsyncHandler; + typedef Outcome GetVersionOutcome; + typedef std::future GetVersionOutcomeCallable; + typedef std::function&)> GetVersionAsyncHandler; typedef Outcome ImportScriptOutcome; typedef std::future ImportScriptOutcomeCallable; typedef std::function&)> ImportScriptAsyncHandler; @@ -306,18 +449,21 @@ namespace AlibabaCloud typedef Outcome ListJobGroupsOutcome; typedef std::future ListJobGroupsOutcomeCallable; typedef std::function&)> ListJobGroupsAsyncHandler; + typedef Outcome ListJobGroupsAsyncOutcome; + typedef std::future ListJobGroupsAsyncOutcomeCallable; + typedef std::function&)> ListJobGroupsAsyncAsyncHandler; typedef Outcome ListJobsOutcome; typedef std::future ListJobsOutcomeCallable; typedef std::function&)> ListJobsAsyncHandler; typedef Outcome ListJobsByGroupOutcome; typedef std::future ListJobsByGroupOutcomeCallable; typedef std::function&)> ListJobsByGroupAsyncHandler; - typedef Outcome ListMediaOutcome; - typedef std::future ListMediaOutcomeCallable; - typedef std::function&)> ListMediaAsyncHandler; typedef Outcome ListOutboundCallNumbersOutcome; typedef std::future ListOutboundCallNumbersOutcomeCallable; typedef std::function&)> ListOutboundCallNumbersAsyncHandler; + typedef Outcome ListResourceTagsOutcome; + typedef std::future ListResourceTagsOutcomeCallable; + typedef std::function&)> ListResourceTagsAsyncHandler; typedef Outcome ListSchedulerInstancesOutcome; typedef std::future ListSchedulerInstancesOutcomeCallable; typedef std::function&)> ListSchedulerInstancesAsyncHandler; @@ -330,6 +476,9 @@ namespace AlibabaCloud typedef Outcome ListScriptsOutcome; typedef std::future ListScriptsOutcomeCallable; typedef std::function&)> ListScriptsAsyncHandler; + typedef Outcome ListTagResourcesOutcome; + typedef std::future ListTagResourcesOutcomeCallable; + typedef std::function&)> ListTagResourcesAsyncHandler; typedef Outcome ListTagsOutcome; typedef std::future ListTagsOutcomeCallable; typedef std::function&)> ListTagsAsyncHandler; @@ -339,6 +488,9 @@ namespace AlibabaCloud typedef Outcome ModifyDialogueFlowOutcome; typedef std::future ModifyDialogueFlowOutcomeCallable; typedef std::function&)> ModifyDialogueFlowAsyncHandler; + typedef Outcome ModifyEmptyNumberNoMoreCallsInfoOutcome; + typedef std::future ModifyEmptyNumberNoMoreCallsInfoOutcomeCallable; + typedef std::function&)> ModifyEmptyNumberNoMoreCallsInfoAsyncHandler; typedef Outcome ModifyGlobalQuestionOutcome; typedef std::future ModifyGlobalQuestionOutcomeCallable; typedef std::function&)> ModifyGlobalQuestionAsyncHandler; @@ -375,6 +527,9 @@ namespace AlibabaCloud typedef Outcome QueryJobsOutcome; typedef std::future QueryJobsOutcomeCallable; typedef std::function&)> QueryJobsAsyncHandler; + typedef Outcome QueryJobsWithResultOutcome; + typedef std::future QueryJobsWithResultOutcomeCallable; + typedef std::function&)> QueryJobsWithResultAsyncHandler; typedef Outcome QueryScriptWaveformsOutcome; typedef std::future QueryScriptWaveformsOutcomeCallable; typedef std::function&)> QueryScriptWaveformsAsyncHandler; @@ -390,6 +545,24 @@ namespace AlibabaCloud typedef Outcome RollbackScriptOutcome; typedef std::future RollbackScriptOutcomeCallable; typedef std::function&)> RollbackScriptAsyncHandler; + typedef Outcome SaveAfterAnswerDelayPlaybackOutcome; + typedef std::future SaveAfterAnswerDelayPlaybackOutcomeCallable; + typedef std::function&)> SaveAfterAnswerDelayPlaybackAsyncHandler; + typedef Outcome SaveBaseStrategyPeriodOutcome; + typedef std::future SaveBaseStrategyPeriodOutcomeCallable; + typedef std::function&)> SaveBaseStrategyPeriodAsyncHandler; + typedef Outcome SaveContactBlockListOutcome; + typedef std::future SaveContactBlockListOutcomeCallable; + typedef std::function&)> SaveContactBlockListAsyncHandler; + typedef Outcome SaveContactWhiteListOutcome; + typedef std::future SaveContactWhiteListOutcomeCallable; + typedef std::function&)> SaveContactWhiteListAsyncHandler; + typedef Outcome SaveEffectiveDaysOutcome; + typedef std::future SaveEffectiveDaysOutcomeCallable; + typedef std::function&)> SaveEffectiveDaysAsyncHandler; + typedef Outcome SaveMaxAttemptsPerDayOutcome; + typedef std::future SaveMaxAttemptsPerDayOutcomeCallable; + typedef std::function&)> SaveMaxAttemptsPerDayAsyncHandler; typedef Outcome StartJobOutcome; typedef std::future StartJobOutcomeCallable; typedef std::function&)> StartJobAsyncHandler; @@ -402,12 +575,24 @@ namespace AlibabaCloud typedef Outcome SubmitScriptReviewOutcome; typedef std::future SubmitScriptReviewOutcomeCallable; typedef std::function&)> SubmitScriptReviewAsyncHandler; + typedef Outcome SuspendCallOutcome; + typedef std::future SuspendCallOutcomeCallable; + typedef std::function&)> SuspendCallAsyncHandler; + typedef Outcome SuspendCallWithFileOutcome; + typedef std::future SuspendCallWithFileOutcomeCallable; + typedef std::function&)> SuspendCallWithFileAsyncHandler; typedef Outcome SuspendJobsOutcome; typedef std::future SuspendJobsOutcomeCallable; typedef std::function&)> SuspendJobsAsyncHandler; + typedef Outcome TagResourcesOutcome; + typedef std::future TagResourcesOutcomeCallable; + typedef std::function&)> TagResourcesAsyncHandler; typedef Outcome TaskPreparingOutcome; typedef std::future TaskPreparingOutcomeCallable; typedef std::function&)> TaskPreparingAsyncHandler; + typedef Outcome UntagResourcesOutcome; + typedef std::future UntagResourcesOutcomeCallable; + typedef std::function&)> UntagResourcesAsyncHandler; typedef Outcome WithdrawScriptReviewOutcome; typedef std::future WithdrawScriptReviewOutcomeCallable; typedef std::function&)> WithdrawScriptReviewAsyncHandler; @@ -422,9 +607,15 @@ namespace AlibabaCloud CancelJobsOutcome cancelJobs(const Model::CancelJobsRequest &request)const; void cancelJobsAsync(const Model::CancelJobsRequest& request, const CancelJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CancelJobsOutcomeCallable cancelJobsCallable(const Model::CancelJobsRequest& request) const; + ChangeResourceGroupOutcome changeResourceGroup(const Model::ChangeResourceGroupRequest &request)const; + void changeResourceGroupAsync(const Model::ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ChangeResourceGroupOutcomeCallable changeResourceGroupCallable(const Model::ChangeResourceGroupRequest& request) const; CreateBatchJobsOutcome createBatchJobs(const Model::CreateBatchJobsRequest &request)const; void createBatchJobsAsync(const Model::CreateBatchJobsRequest& request, const CreateBatchJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateBatchJobsOutcomeCallable createBatchJobsCallable(const Model::CreateBatchJobsRequest& request) const; + CreateBatchRepeatJobOutcome createBatchRepeatJob(const Model::CreateBatchRepeatJobRequest &request)const; + void createBatchRepeatJobAsync(const Model::CreateBatchRepeatJobRequest& request, const CreateBatchRepeatJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateBatchRepeatJobOutcomeCallable createBatchRepeatJobCallable(const Model::CreateBatchRepeatJobRequest& request) const; CreateDialogueFlowOutcome createDialogueFlow(const Model::CreateDialogueFlowRequest &request)const; void createDialogueFlowAsync(const Model::CreateDialogueFlowRequest& request, const CreateDialogueFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateDialogueFlowOutcomeCallable createDialogueFlowCallable(const Model::CreateDialogueFlowRequest& request) const; @@ -437,9 +628,15 @@ namespace AlibabaCloud CreateIntentOutcome createIntent(const Model::CreateIntentRequest &request)const; void createIntentAsync(const Model::CreateIntentRequest& request, const CreateIntentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateIntentOutcomeCallable createIntentCallable(const Model::CreateIntentRequest& request) const; + CreateJobDataParsingTaskOutcome createJobDataParsingTask(const Model::CreateJobDataParsingTaskRequest &request)const; + void createJobDataParsingTaskAsync(const Model::CreateJobDataParsingTaskRequest& request, const CreateJobDataParsingTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateJobDataParsingTaskOutcomeCallable createJobDataParsingTaskCallable(const Model::CreateJobDataParsingTaskRequest& request) const; CreateJobGroupOutcome createJobGroup(const Model::CreateJobGroupRequest &request)const; void createJobGroupAsync(const Model::CreateJobGroupRequest& request, const CreateJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateJobGroupOutcomeCallable createJobGroupCallable(const Model::CreateJobGroupRequest& request) const; + CreateJobGroupExportTaskOutcome createJobGroupExportTask(const Model::CreateJobGroupExportTaskRequest &request)const; + void createJobGroupExportTaskAsync(const Model::CreateJobGroupExportTaskRequest& request, const CreateJobGroupExportTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateJobGroupExportTaskOutcomeCallable createJobGroupExportTaskCallable(const Model::CreateJobGroupExportTaskRequest& request) const; CreateOutboundCallNumberOutcome createOutboundCallNumber(const Model::CreateOutboundCallNumberRequest &request)const; void createOutboundCallNumberAsync(const Model::CreateOutboundCallNumberRequest& request, const CreateOutboundCallNumberAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateOutboundCallNumberOutcomeCallable createOutboundCallNumberCallable(const Model::CreateOutboundCallNumberRequest& request) const; @@ -452,6 +649,12 @@ namespace AlibabaCloud CreateTagOutcome createTag(const Model::CreateTagRequest &request)const; void createTagAsync(const Model::CreateTagRequest& request, const CreateTagAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; CreateTagOutcomeCallable createTagCallable(const Model::CreateTagRequest& request) const; + DeleteContactBlockListOutcome deleteContactBlockList(const Model::DeleteContactBlockListRequest &request)const; + void deleteContactBlockListAsync(const Model::DeleteContactBlockListRequest& request, const DeleteContactBlockListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteContactBlockListOutcomeCallable deleteContactBlockListCallable(const Model::DeleteContactBlockListRequest& request) const; + DeleteContactWhiteListOutcome deleteContactWhiteList(const Model::DeleteContactWhiteListRequest &request)const; + void deleteContactWhiteListAsync(const Model::DeleteContactWhiteListRequest& request, const DeleteContactWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteContactWhiteListOutcomeCallable deleteContactWhiteListCallable(const Model::DeleteContactWhiteListRequest& request) const; DeleteDialogueFlowOutcome deleteDialogueFlow(const Model::DeleteDialogueFlowRequest &request)const; void deleteDialogueFlowAsync(const Model::DeleteDialogueFlowRequest& request, const DeleteDialogueFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteDialogueFlowOutcomeCallable deleteDialogueFlowCallable(const Model::DeleteDialogueFlowRequest& request) const; @@ -476,21 +679,39 @@ namespace AlibabaCloud DeleteScriptWaveformOutcome deleteScriptWaveform(const Model::DeleteScriptWaveformRequest &request)const; void deleteScriptWaveformAsync(const Model::DeleteScriptWaveformRequest& request, const DeleteScriptWaveformAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteScriptWaveformOutcomeCallable deleteScriptWaveformCallable(const Model::DeleteScriptWaveformRequest& request) const; + DescribeDialogueNodeStatisticsOutcome describeDialogueNodeStatistics(const Model::DescribeDialogueNodeStatisticsRequest &request)const; + void describeDialogueNodeStatisticsAsync(const Model::DescribeDialogueNodeStatisticsRequest& request, const DescribeDialogueNodeStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDialogueNodeStatisticsOutcomeCallable describeDialogueNodeStatisticsCallable(const Model::DescribeDialogueNodeStatisticsRequest& request) const; + DescribeDsReportsOutcome describeDsReports(const Model::DescribeDsReportsRequest &request)const; + void describeDsReportsAsync(const Model::DescribeDsReportsRequest& request, const DescribeDsReportsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeDsReportsOutcomeCallable describeDsReportsCallable(const Model::DescribeDsReportsRequest& request) const; DescribeGlobalQuestionOutcome describeGlobalQuestion(const Model::DescribeGlobalQuestionRequest &request)const; void describeGlobalQuestionAsync(const Model::DescribeGlobalQuestionRequest& request, const DescribeGlobalQuestionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeGlobalQuestionOutcomeCallable describeGlobalQuestionCallable(const Model::DescribeGlobalQuestionRequest& request) const; + DescribeGroupExecutingInfoOutcome describeGroupExecutingInfo(const Model::DescribeGroupExecutingInfoRequest &request)const; + void describeGroupExecutingInfoAsync(const Model::DescribeGroupExecutingInfoRequest& request, const DescribeGroupExecutingInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeGroupExecutingInfoOutcomeCallable describeGroupExecutingInfoCallable(const Model::DescribeGroupExecutingInfoRequest& request) const; DescribeInstanceOutcome describeInstance(const Model::DescribeInstanceRequest &request)const; void describeInstanceAsync(const Model::DescribeInstanceRequest& request, const DescribeInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeInstanceOutcomeCallable describeInstanceCallable(const Model::DescribeInstanceRequest& request) const; DescribeIntentOutcome describeIntent(const Model::DescribeIntentRequest &request)const; void describeIntentAsync(const Model::DescribeIntentRequest& request, const DescribeIntentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeIntentOutcomeCallable describeIntentCallable(const Model::DescribeIntentRequest& request) const; + DescribeIntentStatisticsOutcome describeIntentStatistics(const Model::DescribeIntentStatisticsRequest &request)const; + void describeIntentStatisticsAsync(const Model::DescribeIntentStatisticsRequest& request, const DescribeIntentStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeIntentStatisticsOutcomeCallable describeIntentStatisticsCallable(const Model::DescribeIntentStatisticsRequest& request) const; DescribeJobOutcome describeJob(const Model::DescribeJobRequest &request)const; void describeJobAsync(const Model::DescribeJobRequest& request, const DescribeJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeJobOutcomeCallable describeJobCallable(const Model::DescribeJobRequest& request) const; + DescribeJobDataParsingTaskProgressOutcome describeJobDataParsingTaskProgress(const Model::DescribeJobDataParsingTaskProgressRequest &request)const; + void describeJobDataParsingTaskProgressAsync(const Model::DescribeJobDataParsingTaskProgressRequest& request, const DescribeJobDataParsingTaskProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeJobDataParsingTaskProgressOutcomeCallable describeJobDataParsingTaskProgressCallable(const Model::DescribeJobDataParsingTaskProgressRequest& request) const; DescribeJobGroupOutcome describeJobGroup(const Model::DescribeJobGroupRequest &request)const; void describeJobGroupAsync(const Model::DescribeJobGroupRequest& request, const DescribeJobGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeJobGroupOutcomeCallable describeJobGroupCallable(const Model::DescribeJobGroupRequest& request) const; + DescribeJobGroupExportTaskProgressOutcome describeJobGroupExportTaskProgress(const Model::DescribeJobGroupExportTaskProgressRequest &request)const; + void describeJobGroupExportTaskProgressAsync(const Model::DescribeJobGroupExportTaskProgressRequest& request, const DescribeJobGroupExportTaskProgressAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeJobGroupExportTaskProgressOutcomeCallable describeJobGroupExportTaskProgressCallable(const Model::DescribeJobGroupExportTaskProgressRequest& request) const; DescribeScriptOutcome describeScript(const Model::DescribeScriptRequest &request)const; void describeScriptAsync(const Model::DescribeScriptRequest& request, const DescribeScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeScriptOutcomeCallable describeScriptCallable(const Model::DescribeScriptRequest& request) const; @@ -518,6 +739,39 @@ namespace AlibabaCloud ExportScriptOutcome exportScript(const Model::ExportScriptRequest &request)const; void exportScriptAsync(const Model::ExportScriptRequest& request, const ExportScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExportScriptOutcomeCallable exportScriptCallable(const Model::ExportScriptRequest& request) const; + GetAfterAnswerDelayPlaybackOutcome getAfterAnswerDelayPlayback(const Model::GetAfterAnswerDelayPlaybackRequest &request)const; + void getAfterAnswerDelayPlaybackAsync(const Model::GetAfterAnswerDelayPlaybackRequest& request, const GetAfterAnswerDelayPlaybackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAfterAnswerDelayPlaybackOutcomeCallable getAfterAnswerDelayPlaybackCallable(const Model::GetAfterAnswerDelayPlaybackRequest& request) const; + GetAsrServerInfoOutcome getAsrServerInfo(const Model::GetAsrServerInfoRequest &request)const; + void getAsrServerInfoAsync(const Model::GetAsrServerInfoRequest& request, const GetAsrServerInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAsrServerInfoOutcomeCallable getAsrServerInfoCallable(const Model::GetAsrServerInfoRequest& request) const; + GetBaseStrategyPeriodOutcome getBaseStrategyPeriod(const Model::GetBaseStrategyPeriodRequest &request)const; + void getBaseStrategyPeriodAsync(const Model::GetBaseStrategyPeriodRequest& request, const GetBaseStrategyPeriodAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetBaseStrategyPeriodOutcomeCallable getBaseStrategyPeriodCallable(const Model::GetBaseStrategyPeriodRequest& request) const; + GetContactBlockListOutcome getContactBlockList(const Model::GetContactBlockListRequest &request)const; + void getContactBlockListAsync(const Model::GetContactBlockListRequest& request, const GetContactBlockListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetContactBlockListOutcomeCallable getContactBlockListCallable(const Model::GetContactBlockListRequest& request) const; + GetContactWhiteListOutcome getContactWhiteList(const Model::GetContactWhiteListRequest &request)const; + void getContactWhiteListAsync(const Model::GetContactWhiteListRequest& request, const GetContactWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetContactWhiteListOutcomeCallable getContactWhiteListCallable(const Model::GetContactWhiteListRequest& request) const; + GetEffectiveDaysOutcome getEffectiveDays(const Model::GetEffectiveDaysRequest &request)const; + void getEffectiveDaysAsync(const Model::GetEffectiveDaysRequest& request, const GetEffectiveDaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEffectiveDaysOutcomeCallable getEffectiveDaysCallable(const Model::GetEffectiveDaysRequest& request) const; + GetEmptyNumberNoMoreCallsInfoOutcome getEmptyNumberNoMoreCallsInfo(const Model::GetEmptyNumberNoMoreCallsInfoRequest &request)const; + void getEmptyNumberNoMoreCallsInfoAsync(const Model::GetEmptyNumberNoMoreCallsInfoRequest& request, const GetEmptyNumberNoMoreCallsInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetEmptyNumberNoMoreCallsInfoOutcomeCallable getEmptyNumberNoMoreCallsInfoCallable(const Model::GetEmptyNumberNoMoreCallsInfoRequest& request) const; + GetMaxAttemptsPerDayOutcome getMaxAttemptsPerDay(const Model::GetMaxAttemptsPerDayRequest &request)const; + void getMaxAttemptsPerDayAsync(const Model::GetMaxAttemptsPerDayRequest& request, const GetMaxAttemptsPerDayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetMaxAttemptsPerDayOutcomeCallable getMaxAttemptsPerDayCallable(const Model::GetMaxAttemptsPerDayRequest& request) const; + GetSummaryInfoOutcome getSummaryInfo(const Model::GetSummaryInfoRequest &request)const; + void getSummaryInfoAsync(const Model::GetSummaryInfoRequest& request, const GetSummaryInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetSummaryInfoOutcomeCallable getSummaryInfoCallable(const Model::GetSummaryInfoRequest& request) const; + GetTaskByUuidOutcome getTaskByUuid(const Model::GetTaskByUuidRequest &request)const; + void getTaskByUuidAsync(const Model::GetTaskByUuidRequest& request, const GetTaskByUuidAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetTaskByUuidOutcomeCallable getTaskByUuidCallable(const Model::GetTaskByUuidRequest& request) const; + GetVersionOutcome getVersion(const Model::GetVersionRequest &request)const; + void getVersionAsync(const Model::GetVersionRequest& request, const GetVersionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetVersionOutcomeCallable getVersionCallable(const Model::GetVersionRequest& request) const; ImportScriptOutcome importScript(const Model::ImportScriptRequest &request)const; void importScriptAsync(const Model::ImportScriptRequest& request, const ImportScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ImportScriptOutcomeCallable importScriptCallable(const Model::ImportScriptRequest& request) const; @@ -539,18 +793,21 @@ namespace AlibabaCloud ListJobGroupsOutcome listJobGroups(const Model::ListJobGroupsRequest &request)const; void listJobGroupsAsync(const Model::ListJobGroupsRequest& request, const ListJobGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListJobGroupsOutcomeCallable listJobGroupsCallable(const Model::ListJobGroupsRequest& request) const; + ListJobGroupsAsyncOutcome listJobGroupsAsync(const Model::ListJobGroupsAsyncRequest &request)const; + void listJobGroupsAsyncAsync(const Model::ListJobGroupsAsyncRequest& request, const ListJobGroupsAsyncAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListJobGroupsAsyncOutcomeCallable listJobGroupsAsyncCallable(const Model::ListJobGroupsAsyncRequest& request) const; ListJobsOutcome listJobs(const Model::ListJobsRequest &request)const; void listJobsAsync(const Model::ListJobsRequest& request, const ListJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListJobsOutcomeCallable listJobsCallable(const Model::ListJobsRequest& request) const; ListJobsByGroupOutcome listJobsByGroup(const Model::ListJobsByGroupRequest &request)const; void listJobsByGroupAsync(const Model::ListJobsByGroupRequest& request, const ListJobsByGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListJobsByGroupOutcomeCallable listJobsByGroupCallable(const Model::ListJobsByGroupRequest& request) const; - ListMediaOutcome listMedia(const Model::ListMediaRequest &request)const; - void listMediaAsync(const Model::ListMediaRequest& request, const ListMediaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListMediaOutcomeCallable listMediaCallable(const Model::ListMediaRequest& request) const; ListOutboundCallNumbersOutcome listOutboundCallNumbers(const Model::ListOutboundCallNumbersRequest &request)const; void listOutboundCallNumbersAsync(const Model::ListOutboundCallNumbersRequest& request, const ListOutboundCallNumbersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListOutboundCallNumbersOutcomeCallable listOutboundCallNumbersCallable(const Model::ListOutboundCallNumbersRequest& request) const; + ListResourceTagsOutcome listResourceTags(const Model::ListResourceTagsRequest &request)const; + void listResourceTagsAsync(const Model::ListResourceTagsRequest& request, const ListResourceTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListResourceTagsOutcomeCallable listResourceTagsCallable(const Model::ListResourceTagsRequest& request) const; ListSchedulerInstancesOutcome listSchedulerInstances(const Model::ListSchedulerInstancesRequest &request)const; void listSchedulerInstancesAsync(const Model::ListSchedulerInstancesRequest& request, const ListSchedulerInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListSchedulerInstancesOutcomeCallable listSchedulerInstancesCallable(const Model::ListSchedulerInstancesRequest& request) const; @@ -563,6 +820,9 @@ namespace AlibabaCloud ListScriptsOutcome listScripts(const Model::ListScriptsRequest &request)const; void listScriptsAsync(const Model::ListScriptsRequest& request, const ListScriptsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListScriptsOutcomeCallable listScriptsCallable(const Model::ListScriptsRequest& request) const; + ListTagResourcesOutcome listTagResources(const Model::ListTagResourcesRequest &request)const; + void listTagResourcesAsync(const Model::ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ListTagResourcesOutcomeCallable listTagResourcesCallable(const Model::ListTagResourcesRequest& request) const; ListTagsOutcome listTags(const Model::ListTagsRequest &request)const; void listTagsAsync(const Model::ListTagsRequest& request, const ListTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListTagsOutcomeCallable listTagsCallable(const Model::ListTagsRequest& request) const; @@ -572,6 +832,9 @@ namespace AlibabaCloud ModifyDialogueFlowOutcome modifyDialogueFlow(const Model::ModifyDialogueFlowRequest &request)const; void modifyDialogueFlowAsync(const Model::ModifyDialogueFlowRequest& request, const ModifyDialogueFlowAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyDialogueFlowOutcomeCallable modifyDialogueFlowCallable(const Model::ModifyDialogueFlowRequest& request) const; + ModifyEmptyNumberNoMoreCallsInfoOutcome modifyEmptyNumberNoMoreCallsInfo(const Model::ModifyEmptyNumberNoMoreCallsInfoRequest &request)const; + void modifyEmptyNumberNoMoreCallsInfoAsync(const Model::ModifyEmptyNumberNoMoreCallsInfoRequest& request, const ModifyEmptyNumberNoMoreCallsInfoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyEmptyNumberNoMoreCallsInfoOutcomeCallable modifyEmptyNumberNoMoreCallsInfoCallable(const Model::ModifyEmptyNumberNoMoreCallsInfoRequest& request) const; ModifyGlobalQuestionOutcome modifyGlobalQuestion(const Model::ModifyGlobalQuestionRequest &request)const; void modifyGlobalQuestionAsync(const Model::ModifyGlobalQuestionRequest& request, const ModifyGlobalQuestionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyGlobalQuestionOutcomeCallable modifyGlobalQuestionCallable(const Model::ModifyGlobalQuestionRequest& request) const; @@ -608,6 +871,9 @@ namespace AlibabaCloud QueryJobsOutcome queryJobs(const Model::QueryJobsRequest &request)const; void queryJobsAsync(const Model::QueryJobsRequest& request, const QueryJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryJobsOutcomeCallable queryJobsCallable(const Model::QueryJobsRequest& request) const; + QueryJobsWithResultOutcome queryJobsWithResult(const Model::QueryJobsWithResultRequest &request)const; + void queryJobsWithResultAsync(const Model::QueryJobsWithResultRequest& request, const QueryJobsWithResultAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + QueryJobsWithResultOutcomeCallable queryJobsWithResultCallable(const Model::QueryJobsWithResultRequest& request) const; QueryScriptWaveformsOutcome queryScriptWaveforms(const Model::QueryScriptWaveformsRequest &request)const; void queryScriptWaveformsAsync(const Model::QueryScriptWaveformsRequest& request, const QueryScriptWaveformsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; QueryScriptWaveformsOutcomeCallable queryScriptWaveformsCallable(const Model::QueryScriptWaveformsRequest& request) const; @@ -623,6 +889,24 @@ namespace AlibabaCloud RollbackScriptOutcome rollbackScript(const Model::RollbackScriptRequest &request)const; void rollbackScriptAsync(const Model::RollbackScriptRequest& request, const RollbackScriptAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; RollbackScriptOutcomeCallable rollbackScriptCallable(const Model::RollbackScriptRequest& request) const; + SaveAfterAnswerDelayPlaybackOutcome saveAfterAnswerDelayPlayback(const Model::SaveAfterAnswerDelayPlaybackRequest &request)const; + void saveAfterAnswerDelayPlaybackAsync(const Model::SaveAfterAnswerDelayPlaybackRequest& request, const SaveAfterAnswerDelayPlaybackAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveAfterAnswerDelayPlaybackOutcomeCallable saveAfterAnswerDelayPlaybackCallable(const Model::SaveAfterAnswerDelayPlaybackRequest& request) const; + SaveBaseStrategyPeriodOutcome saveBaseStrategyPeriod(const Model::SaveBaseStrategyPeriodRequest &request)const; + void saveBaseStrategyPeriodAsync(const Model::SaveBaseStrategyPeriodRequest& request, const SaveBaseStrategyPeriodAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveBaseStrategyPeriodOutcomeCallable saveBaseStrategyPeriodCallable(const Model::SaveBaseStrategyPeriodRequest& request) const; + SaveContactBlockListOutcome saveContactBlockList(const Model::SaveContactBlockListRequest &request)const; + void saveContactBlockListAsync(const Model::SaveContactBlockListRequest& request, const SaveContactBlockListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveContactBlockListOutcomeCallable saveContactBlockListCallable(const Model::SaveContactBlockListRequest& request) const; + SaveContactWhiteListOutcome saveContactWhiteList(const Model::SaveContactWhiteListRequest &request)const; + void saveContactWhiteListAsync(const Model::SaveContactWhiteListRequest& request, const SaveContactWhiteListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveContactWhiteListOutcomeCallable saveContactWhiteListCallable(const Model::SaveContactWhiteListRequest& request) const; + SaveEffectiveDaysOutcome saveEffectiveDays(const Model::SaveEffectiveDaysRequest &request)const; + void saveEffectiveDaysAsync(const Model::SaveEffectiveDaysRequest& request, const SaveEffectiveDaysAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveEffectiveDaysOutcomeCallable saveEffectiveDaysCallable(const Model::SaveEffectiveDaysRequest& request) const; + SaveMaxAttemptsPerDayOutcome saveMaxAttemptsPerDay(const Model::SaveMaxAttemptsPerDayRequest &request)const; + void saveMaxAttemptsPerDayAsync(const Model::SaveMaxAttemptsPerDayRequest& request, const SaveMaxAttemptsPerDayAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SaveMaxAttemptsPerDayOutcomeCallable saveMaxAttemptsPerDayCallable(const Model::SaveMaxAttemptsPerDayRequest& request) const; StartJobOutcome startJob(const Model::StartJobRequest &request)const; void startJobAsync(const Model::StartJobRequest& request, const StartJobAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; StartJobOutcomeCallable startJobCallable(const Model::StartJobRequest& request) const; @@ -635,12 +919,24 @@ namespace AlibabaCloud SubmitScriptReviewOutcome submitScriptReview(const Model::SubmitScriptReviewRequest &request)const; void submitScriptReviewAsync(const Model::SubmitScriptReviewRequest& request, const SubmitScriptReviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SubmitScriptReviewOutcomeCallable submitScriptReviewCallable(const Model::SubmitScriptReviewRequest& request) const; + SuspendCallOutcome suspendCall(const Model::SuspendCallRequest &request)const; + void suspendCallAsync(const Model::SuspendCallRequest& request, const SuspendCallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SuspendCallOutcomeCallable suspendCallCallable(const Model::SuspendCallRequest& request) const; + SuspendCallWithFileOutcome suspendCallWithFile(const Model::SuspendCallWithFileRequest &request)const; + void suspendCallWithFileAsync(const Model::SuspendCallWithFileRequest& request, const SuspendCallWithFileAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + SuspendCallWithFileOutcomeCallable suspendCallWithFileCallable(const Model::SuspendCallWithFileRequest& request) const; SuspendJobsOutcome suspendJobs(const Model::SuspendJobsRequest &request)const; void suspendJobsAsync(const Model::SuspendJobsRequest& request, const SuspendJobsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SuspendJobsOutcomeCallable suspendJobsCallable(const Model::SuspendJobsRequest& request) const; + TagResourcesOutcome tagResources(const Model::TagResourcesRequest &request)const; + void tagResourcesAsync(const Model::TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + TagResourcesOutcomeCallable tagResourcesCallable(const Model::TagResourcesRequest& request) const; TaskPreparingOutcome taskPreparing(const Model::TaskPreparingRequest &request)const; void taskPreparingAsync(const Model::TaskPreparingRequest& request, const TaskPreparingAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; TaskPreparingOutcomeCallable taskPreparingCallable(const Model::TaskPreparingRequest& request) const; + UntagResourcesOutcome untagResources(const Model::UntagResourcesRequest &request)const; + void untagResourcesAsync(const Model::UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UntagResourcesOutcomeCallable untagResourcesCallable(const Model::UntagResourcesRequest& request) const; WithdrawScriptReviewOutcome withdrawScriptReview(const Model::WithdrawScriptReviewRequest &request)const; void withdrawScriptReviewAsync(const Model::WithdrawScriptReviewRequest& request, const WithdrawScriptReviewAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; WithdrawScriptReviewOutcomeCallable withdrawScriptReviewCallable(const Model::WithdrawScriptReviewRequest& request) const; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsRequest.h index 84ee30b53..5ecef5fbb 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsRequest.h @@ -41,17 +41,26 @@ namespace AlibabaCloud void setCallingNumber(const std::vector& callingNumber); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getRosterType()const; + void setRosterType(const std::string& rosterType); + std::string getJobDataParsingTaskId()const; + void setJobDataParsingTaskId(const std::string& jobDataParsingTaskId); std::string getStrategyJson()const; void setStrategyJson(const std::string& strategyJson); std::string getJobGroupId()const; void setJobGroupId(const std::string& jobGroupId); + bool getIsAsynchrony()const; + void setIsAsynchrony(bool isAsynchrony); private: std::vector jobsJson_; std::vector callingNumber_; std::string instanceId_; + std::string rosterType_; + std::string jobDataParsingTaskId_; std::string strategyJson_; std::string jobGroupId_; + bool isAsynchrony_; }; } diff --git a/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsResult.h index 524b62a47..a2f5b5133 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsResult.h @@ -37,6 +37,7 @@ namespace AlibabaCloud AssignJobsResult(); explicit AssignJobsResult(const std::string &payload); ~AssignJobsResult(); + std::vector getJobsId()const; std::string getJobGroupId()const; std::string getMessage()const; int getHttpStatusCode()const; @@ -46,6 +47,7 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: + std::vector jobsId_; std::string jobGroupId_; std::string message_; int httpStatusCode_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupRequest.h new file mode 100644 index 000000000..38000096c --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupRequest.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_OUTBOUNDBOT_MODEL_CHANGERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CHANGERESOURCEGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ChangeResourceGroupRequest : public RpcServiceRequest + { + + public: + ChangeResourceGroupRequest(); + ~ChangeResourceGroupRequest(); + + std::string getResourceId()const; + void setResourceId(const std::string& resourceId); + std::string getNewResourceGroupId()const; + void setNewResourceGroupId(const std::string& newResourceGroupId); + + private: + std::string resourceId_; + std::string newResourceGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CHANGERESOURCEGROUPREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupResult.h new file mode 100644 index 000000000..743247090 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupResult.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_OUTBOUNDBOT_MODEL_CHANGERESOURCEGROUPRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CHANGERESOURCEGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ChangeResourceGroupResult : public ServiceResult + { + public: + + + ChangeResourceGroupResult(); + explicit ChangeResourceGroupResult(const std::string &payload); + ~ChangeResourceGroupResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CHANGERESOURCEGROUPRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchRepeatJobRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchRepeatJobRequest.h new file mode 100644 index 000000000..65d1549f4 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchRepeatJobRequest.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_OUTBOUNDBOT_MODEL_CREATEBATCHREPEATJOBREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHREPEATJOBREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateBatchRepeatJobRequest : public RpcServiceRequest + { + + public: + CreateBatchRepeatJobRequest(); + ~CreateBatchRepeatJobRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getScriptId()const; + void setScriptId(const std::string& scriptId); + std::vector getCallingNumber()const; + void setCallingNumber(const std::vector& callingNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getFilterStatus()const; + void setFilterStatus(const std::string& filterStatus); + std::string getStrategyJson()const; + void setStrategyJson(const std::string& strategyJson); + std::string getName()const; + void setName(const std::string& name); + std::string getSourceGroupId()const; + void setSourceGroupId(const std::string& sourceGroupId); + + private: + std::string description_; + std::string scriptId_; + std::vector callingNumber_; + std::string instanceId_; + std::string filterStatus_; + std::string strategyJson_; + std::string name_; + std::string sourceGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHREPEATJOBREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListMediaResult.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchRepeatJobResult.h similarity index 64% rename from outboundbot/include/alibabacloud/outboundbot/model/ListMediaResult.h rename to outboundbot/include/alibabacloud/outboundbot/model/CreateBatchRepeatJobResult.h index 6a42cbf2f..73f7dc47a 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListMediaResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchRepeatJobResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIARESULT_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIARESULT_H_ +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHREPEATJOBRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHREPEATJOBRESULT_H_ #include #include @@ -29,24 +29,20 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListMediaResult : public ServiceResult + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateBatchRepeatJobResult : public ServiceResult { public: - struct Media + struct JobGroup { - std::string mediaId; - std::string name; + std::string id; }; - ListMediaResult(); - explicit ListMediaResult(const std::string &payload); - ~ListMediaResult(); - std::vector getMediaList()const; - int getTotalCount()const; + CreateBatchRepeatJobResult(); + explicit CreateBatchRepeatJobResult(const std::string &payload); + ~CreateBatchRepeatJobResult(); + JobGroup getJobGroup()const; std::string getMessage()const; - int getPageSize()const; - int getPageNumber()const; int getHttpStatusCode()const; std::string getCode()const; bool getSuccess()const; @@ -54,11 +50,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::vector mediaList_; - int totalCount_; + JobGroup jobGroup_; std::string message_; - int pageSize_; - int pageNumber_; int httpStatusCode_; std::string code_; bool success_; @@ -67,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIARESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHREPEATJOBRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h index 7edabc717..208c3b12f 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h @@ -39,6 +39,8 @@ namespace AlibabaCloud void setMaxConcurrentConversation(int maxConcurrentConversation); std::string getSecretKey()const; void setSecretKey(const std::string& secretKey); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); std::string getEndpoint()const; void setEndpoint(const std::string& endpoint); std::string getInstanceName()const; @@ -55,6 +57,7 @@ namespace AlibabaCloud private: int maxConcurrentConversation_; std::string secretKey_; + std::string resourceGroupId_; std::string endpoint_; std::string instanceName_; std::string callCenterInstanceId_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceResult.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceResult.h index 18e5c3307..3621a7e61 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceResult.h @@ -40,15 +40,19 @@ namespace AlibabaCloud std::string endpoint; std::string accessKey; }; - std::string instanceName; std::string owner; - int maxConcurrentConversation; + std::string ownerName; + std::string resourceGroupId; std::string instanceId; + long creatorId; + std::string callCenterInstanceId; + std::string instanceName; + int maxConcurrentConversation; long creationTime; std::string instanceDescription; std::string nluServiceType; NluProfile nluProfile; - std::string callCenterInstanceId; + std::string creatorName; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.h new file mode 100644 index 000000000..0431a8c9d --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.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_OUTBOUNDBOT_MODEL_CREATEJOBDATAPARSINGTASKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBDATAPARSINGTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateJobDataParsingTaskRequest : public RpcServiceRequest + { + + public: + CreateJobDataParsingTaskRequest(); + ~CreateJobDataParsingTaskRequest(); + + std::string getJobFilePath()const; + void setJobFilePath(const std::string& jobFilePath); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string jobFilePath_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBDATAPARSINGTASKREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskResult.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskResult.h new file mode 100644 index 000000000..38b6d0e88 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBDATAPARSINGTASKRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBDATAPARSINGTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateJobDataParsingTaskResult : public ServiceResult + { + public: + + + CreateJobDataParsingTaskResult(); + explicit CreateJobDataParsingTaskResult(const std::string &payload); + ~CreateJobDataParsingTaskResult(); + std::string getJobDataParsingTaskId()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string jobDataParsingTaskId_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBDATAPARSINGTASKRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskRequest.h new file mode 100644 index 000000000..96edfda63 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskRequest.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_OUTBOUNDBOT_MODEL_CREATEJOBGROUPEXPORTTASKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPEXPORTTASKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateJobGroupExportTaskRequest : public RpcServiceRequest + { + + public: + CreateJobGroupExportTaskRequest(); + ~CreateJobGroupExportTaskRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + std::vector getOption()const; + void setOption(const std::vector& option); + + private: + std::string instanceId_; + std::string jobGroupId_; + std::vector option_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPEXPORTTASKREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskResult.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskResult.h new file mode 100644 index 000000000..e098b537c --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPEXPORTTASKRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPEXPORTTASKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateJobGroupExportTaskResult : public ServiceResult + { + public: + + + CreateJobGroupExportTaskResult(); + explicit CreateJobGroupExportTaskResult(const std::string &payload); + ~CreateJobGroupExportTaskResult(); + std::string getTaskId()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string taskId_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPEXPORTTASKRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupResult.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupResult.h index 0d60cfd5f..70412fe5e 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupResult.h @@ -34,6 +34,12 @@ namespace AlibabaCloud public: struct JobGroup { + struct ExportProgress + { + std::string status; + std::string progress; + std::string fileHttpUrl; + }; struct Strategy { struct TimeFrame @@ -57,13 +63,19 @@ namespace AlibabaCloud std::string routingStrategy; std::vector repeatDays; }; - std::string jobGroupId; + std::string status; + std::string modifyTime; + std::string jobDataParsingTaskId; std::string scenarioId; std::string jobGroupName; + std::string scriptVersion; + std::string jobGroupDescription; + std::string jobGroupId; + std::string scriptName; long creationTime; Strategy strategy; std::string jobFilePath; - std::string jobGroupDescription; + ExportProgress exportProgress; std::vector callingNumbers; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h new file mode 100644 index 000000000..5629f93f4 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.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_OUTBOUNDBOT_MODEL_DELETECONTACTBLOCKLISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTBLOCKLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteContactBlockListRequest : public RpcServiceRequest + { + + public: + DeleteContactBlockListRequest(); + ~DeleteContactBlockListRequest(); + + std::string getContactBlockListId()const; + void setContactBlockListId(const std::string& contactBlockListId); + std::string get_Operator()const; + void set_Operator(const std::string& _operator); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string contactBlockListId_; + std::string _operator_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTBLOCKLISTREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListResult.h new file mode 100644 index 000000000..329b7e393 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTBLOCKLISTRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTBLOCKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteContactBlockListResult : public ServiceResult + { + public: + + + DeleteContactBlockListResult(); + explicit DeleteContactBlockListResult(const std::string &payload); + ~DeleteContactBlockListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + int getAffectedRows()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + int affectedRows_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTBLOCKLISTRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListRequest.h new file mode 100644 index 000000000..f2ebdd4d5 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListRequest.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_OUTBOUNDBOT_MODEL_DELETECONTACTWHITELISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTWHITELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteContactWhiteListRequest : public RpcServiceRequest + { + + public: + DeleteContactWhiteListRequest(); + ~DeleteContactWhiteListRequest(); + + std::string get_Operator()const; + void set_Operator(const std::string& _operator); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactWhiteListId()const; + void setContactWhiteListId(const std::string& contactWhiteListId); + + private: + std::string _operator_; + std::string instanceId_; + std::string contactWhiteListId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTWHITELISTREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListResult.h new file mode 100644 index 000000000..b5707e682 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTWHITELISTRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteContactWhiteListResult : public ServiceResult + { + public: + + + DeleteContactWhiteListResult(); + explicit DeleteContactWhiteListResult(const std::string &payload); + ~DeleteContactWhiteListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + int getAffectedRows()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + int affectedRows_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTWHITELISTRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsRequest.h new file mode 100644 index 000000000..93325066b --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsRequest.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_OUTBOUNDBOT_MODEL_DESCRIBEDIALOGUENODESTATISTICSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDIALOGUENODESTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeDialogueNodeStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeDialogueNodeStatisticsRequest(); + ~DescribeDialogueNodeStatisticsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + int getLimit()const; + void setLimit(int limit); + + private: + std::string instanceId_; + std::string jobGroupId_; + int limit_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDIALOGUENODESTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsResult.h new file mode 100644 index 000000000..7bab425c2 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsResult.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDIALOGUENODESTATISTICSRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDIALOGUENODESTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeDialogueNodeStatisticsResult : public ServiceResult + { + public: + struct NoAnswerDialogueNode + { + std::string instanceId; + std::string nodeName; + std::string nodeId; + int hitNum; + int hangUpNum; + std::string id; + int noAnswerNum; + std::string groupId; + }; + + + DescribeDialogueNodeStatisticsResult(); + explicit DescribeDialogueNodeStatisticsResult(const std::string &payload); + ~DescribeDialogueNodeStatisticsResult(); + std::string getMessage()const; + std::vector getNoAnswerDialogueNodes()const; + std::string getInstanceId()const; + int getHttpStatusCode()const; + int getTotalCompleted()const; + std::string getCode()const; + bool getSuccess()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector noAnswerDialogueNodes_; + std::string instanceId_; + int httpStatusCode_; + int totalCompleted_; + std::string code_; + bool success_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDIALOGUENODESTATISTICSRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsRequest.h new file mode 100644 index 000000000..ac2b4c11b --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsRequest.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_OUTBOUNDBOT_MODEL_DESCRIBEDSREPORTSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDSREPORTSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeDsReportsRequest : public RpcServiceRequest + { + + public: + DescribeDsReportsRequest(); + ~DescribeDsReportsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDSREPORTSREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsResult.h new file mode 100644 index 000000000..a6a64d613 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDSREPORTSRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDSREPORTSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeDsReportsResult : public ServiceResult + { + public: + + + DescribeDsReportsResult(); + explicit DescribeDsReportsResult(const std::string &payload); + ~DescribeDsReportsResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getDsReports()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string dsReports_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDSREPORTSRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoRequest.h new file mode 100644 index 000000000..b32215eb3 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoRequest.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_OUTBOUNDBOT_MODEL_DESCRIBEGROUPEXECUTINGINFOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGROUPEXECUTINGINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeGroupExecutingInfoRequest : public RpcServiceRequest + { + + public: + DescribeGroupExecutingInfoRequest(); + ~DescribeGroupExecutingInfoRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + std::string instanceId_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGROUPEXECUTINGINFOREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoResult.h new file mode 100644 index 000000000..765a106ea --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGROUPEXECUTINGINFORESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGROUPEXECUTINGINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeGroupExecutingInfoResult : public ServiceResult + { + public: + struct ExecutingInfo + { + struct JobsProgress + { + int pausedNum; + int schedulingNum; + int totalCompletedNum; + int totalNotAnsweredNum; + int failedNum; + int cancelledNum; + int executingNum; + int totalJobs; + }; + int callNum; + long endTime; + long startTime; + int transferByNoAnswer; + int finishedNum; + int callFailedNum; + JobsProgress jobsProgress; + std::string creatorName; + int hangUpByClientNum; + int transferByIntentNum; + }; + + + DescribeGroupExecutingInfoResult(); + explicit DescribeGroupExecutingInfoResult(const std::string &payload); + ~DescribeGroupExecutingInfoResult(); + std::string getMessage()const; + std::string getInstanceId()const; + ExecutingInfo getExecutingInfo()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string instanceId_; + ExecutingInfo executingInfo_; + int httpStatusCode_; + std::string code_; + bool success_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGROUPEXECUTINGINFORESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceResult.h index c5dce2392..1892dfa2a 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceResult.h @@ -40,15 +40,19 @@ namespace AlibabaCloud std::string endpoint; std::string accessKey; }; - std::string instanceName; std::string owner; - int maxConcurrentConversation; + std::string ownerName; + std::string resourceGroupId; std::string instanceId; + long creatorId; + std::string callCenterInstanceId; + std::string instanceName; + int maxConcurrentConversation; long creationTime; std::string instanceDescription; std::string nluServiceType; NluProfile nluProfile; - std::string callCenterInstanceId; + std::string creatorName; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsRequest.h new file mode 100644 index 000000000..f2c435524 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsRequest.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_OUTBOUNDBOT_MODEL_DESCRIBEINTENTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTSTATISTICSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeIntentStatisticsRequest : public RpcServiceRequest + { + + public: + DescribeIntentStatisticsRequest(); + ~DescribeIntentStatisticsRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + int getLimit()const; + void setLimit(int limit); + + private: + std::string instanceId_; + std::string jobGroupId_; + int limit_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsResult.h new file mode 100644 index 000000000..47a10f126 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsResult.h @@ -0,0 +1,85 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTSTATISTICSRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeIntentStatisticsResult : public ServiceResult + { + public: + struct IntentStatisticsItem + { + std::string type; + std::string intentName; + std::string instanceId; + int hitNum; + int hitAfterNoAnswer; + std::string groupId; + std::string intentId; + }; + struct IntentStatisticsItem1 + { + std::string instanceId; + }; + + + DescribeIntentStatisticsResult(); + explicit DescribeIntentStatisticsResult(const std::string &payload); + ~DescribeIntentStatisticsResult(); + std::vector getIntentsAfterNoAnswer()const; + int getGlobalIntentNum()const; + std::vector getProcessIntents()const; + std::string getMessage()const; + std::string getInstanceId()const; + int getHttpStatusCode()const; + std::string getCode()const; + int getProcessIntentNum()const; + std::vector getGlobalIntents()const; + bool getSuccess()const; + std::string getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::vector intentsAfterNoAnswer_; + int globalIntentNum_; + std::vector processIntents_; + std::string message_; + std::string instanceId_; + int httpStatusCode_; + std::string code_; + int processIntentNum_; + std::vector globalIntents_; + bool success_; + std::string groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressRequest.h new file mode 100644 index 000000000..c134c3545 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressRequest.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_OUTBOUNDBOT_MODEL_DESCRIBEJOBDATAPARSINGTASKPROGRESSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBDATAPARSINGTASKPROGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeJobDataParsingTaskProgressRequest : public RpcServiceRequest + { + + public: + DescribeJobDataParsingTaskProgressRequest(); + ~DescribeJobDataParsingTaskProgressRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobDataParsingTaskId()const; + void setJobDataParsingTaskId(const std::string& jobDataParsingTaskId); + + private: + std::string instanceId_; + std::string jobDataParsingTaskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBDATAPARSINGTASKPROGRESSREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressResult.h new file mode 100644 index 000000000..a5b2a48cd --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressResult.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_OUTBOUNDBOT_MODEL_DESCRIBEJOBDATAPARSINGTASKPROGRESSRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBDATAPARSINGTASKPROGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeJobDataParsingTaskProgressResult : public ServiceResult + { + public: + struct Progress + { + std::string status; + int totalJobCount; + int handledJobCount; + std::string failReason; + std::string failErrorCode; + }; + + + DescribeJobDataParsingTaskProgressResult(); + explicit DescribeJobDataParsingTaskProgressResult(const std::string &payload); + ~DescribeJobDataParsingTaskProgressResult(); + Progress getProgress()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + Progress progress_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBDATAPARSINGTASKPROGRESSRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.h new file mode 100644 index 000000000..bb081f2ea --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.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_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPEXPORTTASKPROGRESSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPEXPORTTASKPROGRESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeJobGroupExportTaskProgressRequest : public RpcServiceRequest + { + + public: + DescribeJobGroupExportTaskProgressRequest(); + ~DescribeJobGroupExportTaskProgressRequest(); + + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + std::string instanceId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPEXPORTTASKPROGRESSREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressResult.h new file mode 100644 index 000000000..851103777 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressResult.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_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPEXPORTTASKPROGRESSRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPEXPORTTASKPROGRESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeJobGroupExportTaskProgressResult : public ServiceResult + { + public: + + + DescribeJobGroupExportTaskProgressResult(); + explicit DescribeJobGroupExportTaskProgressResult(const std::string &payload); + ~DescribeJobGroupExportTaskProgressResult(); + float getProgress()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getFileHttpUrl()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + float progress_; + std::string message_; + int httpStatusCode_; + std::string fileHttpUrl_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPEXPORTTASKPROGRESSRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupResult.h index 3ba1ff9c6..e2930dc96 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupResult.h @@ -34,6 +34,12 @@ namespace AlibabaCloud public: struct JobGroup { + struct ExportProgress + { + std::string status; + std::string progress; + std::string fileHttpUrl; + }; struct Progress { struct KeyValuePair @@ -78,16 +84,30 @@ namespace AlibabaCloud std::string routingStrategy; std::vector repeatDays; }; + struct Result + { + int unrecognizedNum; + int noInteractNum; + int finishedNum; + int clientHangupNum; + int timeoutHangupNum; + }; + std::string status; + std::string modifyTime; Progress progress; - std::string jobGroupId; + std::string jobDataParsingTaskId; std::string scenarioId; std::string jobGroupName; + std::string scriptVersion; + std::string scriptId; + std::string jobGroupDescription; + Result result; + std::string jobGroupId; std::string scriptName; long creationTime; Strategy strategy; std::string jobFilePath; - std::string scriptId; - std::string jobGroupDescription; + ExportProgress exportProgress; std::vector callingNumbers; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h index cf348f4de..2e655067c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h @@ -78,7 +78,9 @@ namespace AlibabaCloud std::string summaryName; }; std::string script; + std::string action; std::vector summary1; + std::string actionParams; long timestamp; std::string speaker; }; @@ -88,6 +90,7 @@ namespace AlibabaCloud std::string calledNumber; std::string scenarioId; std::string taskId; + long endTime; long actualTime; std::string callId; std::vector conversation; @@ -98,12 +101,18 @@ namespace AlibabaCloud std::string jobId; }; std::string status; + std::string calledNumber; std::vector tasks; std::string scenarioId; + std::string instanceId; int priority; + long actualTime; std::string strategyId; std::vector extras; + std::string dsReport; + long nextExecutionTime; std::string jobGroupId; + int endReason; std::vector contacts; std::string referenceId; std::string failureReason; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h index 76edb272b..856ee2796 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptResult.h @@ -34,16 +34,19 @@ namespace AlibabaCloud public: struct Script { - std::string industry; std::string status; - bool isDrafted; - std::string scriptName; + std::string chatbotId; std::string scriptDescription; - long updateTime; std::string scriptId; std::string debugStatus; std::string scene; bool isDebugDrafted; + std::string industry; + std::string asrConfig; + bool isDrafted; + std::string scriptName; + long updateTime; + std::string ttsConfig; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.h new file mode 100644 index 000000000..05de143f1 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.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_OUTBOUNDBOT_MODEL_GETAFTERANSWERDELAYPLAYBACKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETAFTERANSWERDELAYPLAYBACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetAfterAnswerDelayPlaybackRequest : public RpcServiceRequest + { + + public: + GetAfterAnswerDelayPlaybackRequest(); + ~GetAfterAnswerDelayPlaybackRequest(); + + int getStrategyLevel()const; + void setStrategyLevel(int strategyLevel); + std::string getEntryId()const; + void setEntryId(const std::string& entryId); + + private: + int strategyLevel_; + std::string entryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETAFTERANSWERDELAYPLAYBACKREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackResult.h new file mode 100644 index 000000000..8364d35b5 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETAFTERANSWERDELAYPLAYBACKRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETAFTERANSWERDELAYPLAYBACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetAfterAnswerDelayPlaybackResult : public ServiceResult + { + public: + + + GetAfterAnswerDelayPlaybackResult(); + explicit GetAfterAnswerDelayPlaybackResult(const std::string &payload); + ~GetAfterAnswerDelayPlaybackResult(); + int getAfterAnswerDelayPlayback()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + int afterAnswerDelayPlayback_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETAFTERANSWERDELAYPLAYBACKRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoRequest.h new file mode 100644 index 000000000..c58c51bf6 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoRequest.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_OUTBOUNDBOT_MODEL_GETASRSERVERINFOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETASRSERVERINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetAsrServerInfoRequest : public RpcServiceRequest + { + + public: + GetAsrServerInfoRequest(); + ~GetAsrServerInfoRequest(); + + int getStrategyLevel()const; + void setStrategyLevel(int strategyLevel); + std::string getEntryId()const; + void setEntryId(const std::string& entryId); + + private: + int strategyLevel_; + std::string entryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETASRSERVERINFOREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoResult.h new file mode 100644 index 000000000..323b59cde --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoResult.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_OUTBOUNDBOT_MODEL_GETASRSERVERINFORESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETASRSERVERINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetAsrServerInfoResult : public ServiceResult + { + public: + + + GetAsrServerInfoResult(); + explicit GetAsrServerInfoResult(const std::string &payload); + ~GetAsrServerInfoResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETASRSERVERINFORESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.h new file mode 100644 index 000000000..820a2566d --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.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_OUTBOUNDBOT_MODEL_GETBASESTRATEGYPERIODREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETBASESTRATEGYPERIODREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetBaseStrategyPeriodRequest : public RpcServiceRequest + { + + public: + GetBaseStrategyPeriodRequest(); + ~GetBaseStrategyPeriodRequest(); + + int getStrategyLevel()const; + void setStrategyLevel(int strategyLevel); + std::string getEntryId()const; + void setEntryId(const std::string& entryId); + + private: + int strategyLevel_; + std::string entryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETBASESTRATEGYPERIODREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodResult.h new file mode 100644 index 000000000..2bcf99c25 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETBASESTRATEGYPERIODRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETBASESTRATEGYPERIODRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetBaseStrategyPeriodResult : public ServiceResult + { + public: + struct TimeFrame + { + std::string endTime; + long endTimeMillis; + long beginTimeMillis; + std::string beginTime; + }; + + + GetBaseStrategyPeriodResult(); + explicit GetBaseStrategyPeriodResult(const std::string &payload); + ~GetBaseStrategyPeriodResult(); + std::vector getWorkingTime()const; + std::string getMessage()const; + bool getOnlyWeekdays()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector workingTime_; + std::string message_; + bool onlyWeekdays_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETBASESTRATEGYPERIODRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListMediaRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListRequest.h similarity index 70% rename from outboundbot/include/alibabacloud/outboundbot/model/ListMediaRequest.h rename to outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListRequest.h index 41ec3d60d..2020e7f64 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListMediaRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIAREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIAREQUEST_H_ +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTBLOCKLISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTBLOCKLISTREQUEST_H_ #include #include @@ -28,30 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListMediaRequest : public RpcServiceRequest + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetContactBlockListRequest : public RpcServiceRequest { public: - ListMediaRequest(); - ~ListMediaRequest(); + GetContactBlockListRequest(); + ~GetContactBlockListRequest(); + bool getCountTotalRow()const; + void setCountTotalRow(bool countTotalRow); int getPageNumber()const; void setPageNumber(int pageNumber); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getPageSize()const; void setPageSize(int pageSize); - std::string getNamePrefix()const; - void setNamePrefix(const std::string& namePrefix); private: + bool countTotalRow_; int pageNumber_; std::string instanceId_; int pageSize_; - std::string namePrefix_; }; } } } -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTMEDIAREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTBLOCKLISTREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListResult.h new file mode 100644 index 000000000..c4a1987d1 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTBLOCKLISTRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTBLOCKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetContactBlockListResult : public ServiceResult + { + public: + struct ContactBlocklistList + { + struct ContactBlockList + { + std::string instanceId; + long creationTime; + std::string phoneNumber; + std::string _operator; + std::string contactBlockListId; + std::string creator; + std::string name; + std::string remark; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + GetContactBlockListResult(); + explicit GetContactBlockListResult(const std::string &payload); + ~GetContactBlockListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + ContactBlocklistList getContactBlocklistList()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + ContactBlocklistList contactBlocklistList_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTBLOCKLISTRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListRequest.h new file mode 100644 index 000000000..042d0dd40 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListRequest.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_OUTBOUNDBOT_MODEL_GETCONTACTWHITELISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTWHITELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetContactWhiteListRequest : public RpcServiceRequest + { + + public: + GetContactWhiteListRequest(); + ~GetContactWhiteListRequest(); + + bool getCountTotalRow()const; + void setCountTotalRow(bool countTotalRow); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + bool countTotalRow_; + int pageNumber_; + std::string instanceId_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTWHITELISTREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListResult.h new file mode 100644 index 000000000..c16dabf16 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListResult.h @@ -0,0 +1,77 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTWHITELISTRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetContactWhiteListResult : public ServiceResult + { + public: + struct ContactWhitelistList + { + struct ContactWhitelistList1 + { + std::string instanceId; + long creationTime; + std::string phoneNumber; + std::string _operator; + std::string creator; + std::string contactWhiteListId; + std::string name; + std::string remark; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + GetContactWhiteListResult(); + explicit GetContactWhiteListResult(const std::string &payload); + ~GetContactWhiteListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + ContactWhitelistList getContactWhitelistList()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + ContactWhitelistList contactWhitelistList_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTWHITELISTRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysRequest.h new file mode 100644 index 000000000..fa1c9fb25 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysRequest.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_OUTBOUNDBOT_MODEL_GETEFFECTIVEDAYSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEFFECTIVEDAYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetEffectiveDaysRequest : public RpcServiceRequest + { + + public: + GetEffectiveDaysRequest(); + ~GetEffectiveDaysRequest(); + + int getStrategyLevel()const; + void setStrategyLevel(int strategyLevel); + std::string getEntryId()const; + void setEntryId(const std::string& entryId); + + private: + int strategyLevel_; + std::string entryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEFFECTIVEDAYSREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h new file mode 100644 index 000000000..c7265a442 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEFFECTIVEDAYSRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEFFECTIVEDAYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetEffectiveDaysResult : public ServiceResult + { + public: + + + GetEffectiveDaysResult(); + explicit GetEffectiveDaysResult(const std::string &payload); + ~GetEffectiveDaysResult(); + std::string getMessage()const; + int getEffectiveDays()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int effectiveDays_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEFFECTIVEDAYSRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h new file mode 100644 index 000000000..182c4d81e --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.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_OUTBOUNDBOT_MODEL_GETEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetEmptyNumberNoMoreCallsInfoRequest : public RpcServiceRequest + { + + public: + GetEmptyNumberNoMoreCallsInfoRequest(); + ~GetEmptyNumberNoMoreCallsInfoRequest(); + + int getStrategyLevel()const; + void setStrategyLevel(int strategyLevel); + std::string getEntryId()const; + void setEntryId(const std::string& entryId); + + private: + int strategyLevel_; + std::string entryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoResult.h new file mode 100644 index 000000000..5d3af97d3 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEMPTYNUMBERNOMORECALLSINFORESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEMPTYNUMBERNOMORECALLSINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetEmptyNumberNoMoreCallsInfoResult : public ServiceResult + { + public: + + + GetEmptyNumberNoMoreCallsInfoResult(); + explicit GetEmptyNumberNoMoreCallsInfoResult(const std::string &payload); + ~GetEmptyNumberNoMoreCallsInfoResult(); + bool getEmptyNumberNoMoreCalls()const; + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool emptyNumberNoMoreCalls_; + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEMPTYNUMBERNOMORECALLSINFORESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.h new file mode 100644 index 000000000..acf20e04b --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.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_OUTBOUNDBOT_MODEL_GETMAXATTEMPTSPERDAYREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETMAXATTEMPTSPERDAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetMaxAttemptsPerDayRequest : public RpcServiceRequest + { + + public: + GetMaxAttemptsPerDayRequest(); + ~GetMaxAttemptsPerDayRequest(); + + int getStrategyLevel()const; + void setStrategyLevel(int strategyLevel); + std::string getEntryId()const; + void setEntryId(const std::string& entryId); + + private: + int strategyLevel_; + std::string entryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETMAXATTEMPTSPERDAYREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayResult.h new file mode 100644 index 000000000..bdd581aa3 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETMAXATTEMPTSPERDAYRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETMAXATTEMPTSPERDAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetMaxAttemptsPerDayResult : public ServiceResult + { + public: + + + GetMaxAttemptsPerDayResult(); + explicit GetMaxAttemptsPerDayResult(const std::string &payload); + ~GetMaxAttemptsPerDayResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + int getMaxAttemptsPerDay()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + int maxAttemptsPerDay_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETMAXATTEMPTSPERDAYRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoRequest.h new file mode 100644 index 000000000..a9a3cc089 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoRequest.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_OUTBOUNDBOT_MODEL_GETSUMMARYINFOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETSUMMARYINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetSummaryInfoRequest : public RpcServiceRequest + { + + public: + GetSummaryInfoRequest(); + ~GetSummaryInfoRequest(); + + std::vector getInstanceIdList()const; + void setInstanceIdList(const std::vector& instanceIdList); + + private: + std::vector instanceIdList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETSUMMARYINFOREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoResult.h new file mode 100644 index 000000000..28892e8fc --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoResult.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_OUTBOUNDBOT_MODEL_GETSUMMARYINFORESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETSUMMARYINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetSummaryInfoResult : public ServiceResult + { + public: + struct AgentBotInstanceSummary + { + std::string instanceId; + long totalCallTime; + int usedRecordingStorageSpace; + long totalCallCount; + }; + + + GetSummaryInfoResult(); + explicit GetSummaryInfoResult(const std::string &payload); + ~GetSummaryInfoResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::vector getAgentBotInstanceSummaryList()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::vector agentBotInstanceSummaryList_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETSUMMARYINFORESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidRequest.h new file mode 100644 index 000000000..f7070d487 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidRequest.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_OUTBOUNDBOT_MODEL_GETTASKBYUUIDREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTASKBYUUIDREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetTaskByUuidRequest : public RpcServiceRequest + { + + public: + GetTaskByUuidRequest(); + ~GetTaskByUuidRequest(); + + bool getWithConversations()const; + void setWithConversations(bool withConversations); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); + + private: + bool withConversations_; + std::string instanceId_; + std::string taskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTASKBYUUIDREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidResult.h new file mode 100644 index 000000000..886d56dba --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidResult.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_OUTBOUNDBOT_MODEL_GETTASKBYUUIDRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTASKBYUUIDRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetTaskByUuidResult : public ServiceResult + { + public: + struct Task + { + std::string calledNumber; + std::string jobGroupId; + long plannedTime; + int endReason; + long endTime; + std::string instanceId; + long actualTime; + std::string callId; + std::string id; + std::string jobId; + std::string callingNumber; + }; + + + GetTaskByUuidResult(); + explicit GetTaskByUuidResult(const std::string &payload); + ~GetTaskByUuidResult(); + Task getTask()const; + + protected: + void parse(const std::string &payload); + private: + Task task_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTASKBYUUIDRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetVersionRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetVersionRequest.h new file mode 100644 index 000000000..12212dffa --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetVersionRequest.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_OUTBOUNDBOT_MODEL_GETVERSIONREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETVERSIONREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetVersionRequest : public RpcServiceRequest + { + + public: + GetVersionRequest(); + ~GetVersionRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETVERSIONREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetVersionResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetVersionResult.h new file mode 100644 index 000000000..9f16ec1d4 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetVersionResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETVERSIONRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETVERSIONRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetVersionResult : public ServiceResult + { + public: + + + GetVersionResult(); + explicit GetVersionResult(const std::string &payload); + ~GetVersionResult(); + std::string getMessage()const; + std::string getVersion()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string version_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETVERSIONRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesRequest.h index 901f68d7a..2f423dba8 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesRequest.h @@ -30,13 +30,25 @@ namespace AlibabaCloud { class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListInstancesRequest : public RpcServiceRequest { + public: + struct Tag + { + std::string value; + std::string key; + }; public: ListInstancesRequest(); ~ListInstancesRequest(); + std::string getResourceGroupId()const; + void setResourceGroupId(const std::string& resourceGroupId); + std::vector getTag()const; + void setTag(const std::vector& tag); private: + std::string resourceGroupId_; + std::vector tag_; }; } diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h index 63a25cc4f..b88d1a6a8 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h @@ -40,16 +40,26 @@ namespace AlibabaCloud std::string endpoint; std::string accessKey; }; - std::string instanceName; + struct ResourceTag + { + std::string value; + std::string key; + }; + std::string ownerName; std::string owner; - int maxConcurrentConversation; + std::string resourceGroupId; + std::vector resourceTags; std::string instanceId; + long creatorId; + std::string callCenterInstanceId; + std::string instanceName; + int maxConcurrentConversation; long creationTime; std::string instanceDescription; std::string nluServiceType; NluProfile nluProfile; bool isTemplateContainer; - std::string callCenterInstanceId; + std::string creatorName; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncRequest.h new file mode 100644 index 000000000..f85a68ee6 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncRequest.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_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobGroupsAsyncRequest : public RpcServiceRequest + { + + public: + ListJobGroupsAsyncRequest(); + ~ListJobGroupsAsyncRequest(); + + std::string getAsyncTaskId()const; + void setAsyncTaskId(const std::string& asyncTaskId); + + private: + std::string asyncTaskId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h new file mode 100644 index 000000000..99fa8cd15 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h @@ -0,0 +1,110 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobGroupsAsyncResult : public ServiceResult + { + public: + struct JobGroup + { + struct Strategy + { + long endTime; + long startTime; + }; + struct Progress + { + std::string status; + int pausedNum; + int failedNum; + long startTime; + int executingNum; + int cancelledNum; + int duration; + int scheduling; + int totalCompleted; + int totalNotAnswered; + int totalJobs; + }; + struct ExportProgress + { + std::string status; + std::string progress; + std::string fileHttpUrl; + }; + std::string status; + std::string modifyTime; + Progress progress; + std::string jobDataParsingTaskId; + std::string jobGroupName; + std::string scriptVersion; + std::string scriptId; + std::string jobGroupDescription; + std::string jobGroupId; + std::string scriptName; + long creationTime; + Strategy strategy; + ExportProgress exportProgress; + }; + + + ListJobGroupsAsyncResult(); + explicit ListJobGroupsAsyncResult(const std::string &payload); + ~ListJobGroupsAsyncResult(); + int getTotalCount()const; + std::string getMessage()const; + int getPageSize()const; + int getPageNumber()const; + bool getTimeout()const; + int getHttpStatusCode()const; + std::string getCode()const; + std::vector getJobGroups()const; + bool getSuccess()const; + bool getVaild()const; + + protected: + void parse(const std::string &payload); + private: + int totalCount_; + std::string message_; + int pageSize_; + int pageNumber_; + bool timeout_; + int httpStatusCode_; + std::string code_; + std::vector jobGroups_; + bool success_; + bool vaild_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsRequest.h index 4178e80d2..fbbc3195b 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsRequest.h @@ -35,6 +35,10 @@ namespace AlibabaCloud ListJobGroupsRequest(); ~ListJobGroupsRequest(); + bool getAsyncQuery()const; + void setAsyncQuery(bool asyncQuery); + std::string getSearchText()const; + void setSearchText(const std::string& searchText); long getEndTime()const; void setEndTime(long endTime); long getStartTime()const; @@ -43,14 +47,19 @@ namespace AlibabaCloud void setPageNumber(int pageNumber); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getJobGroupStatusFilter()const; + void setJobGroupStatusFilter(const std::string& jobGroupStatusFilter); int getPageSize()const; void setPageSize(int pageSize); private: + bool asyncQuery_; + std::string searchText_; long endTime_; long startTime_; int pageNumber_; std::string instanceId_; + std::string jobGroupStatusFilter_; int pageSize_; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h index 4973f0471..ab97be4a7 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h @@ -39,25 +39,41 @@ namespace AlibabaCloud struct Progress { std::string status; + int pausedNum; + int failedNum; long startTime; + int cancelledNum; + int executingNum; int duration; + int scheduling; int totalCompleted; int totalNotAnswered; int totalJobs; }; + struct ExportProgress + { + std::string status; + std::string progress; + std::string fileHttpUrl; + }; struct Strategy { long endTime; long startTime; }; + std::string status; + std::string modifyTime; Progress progress; - std::string jobGroupId; + std::string jobDataParsingTaskId; std::string jobGroupName; + std::string scriptVersion; + std::string scriptId; + std::string jobGroupDescription; + std::string jobGroupId; std::string scriptName; long creationTime; Strategy strategy; - std::string scriptId; - std::string jobGroupDescription; + ExportProgress exportProgress; }; int totalCount; int pageSize; @@ -71,6 +87,7 @@ namespace AlibabaCloud ~ListJobGroupsResult(); std::string getMessage()const; int getHttpStatusCode()const; + std::string getAsyncTaskId()const; std::string getCode()const; JobGroups getJobGroups()const; bool getSuccess()const; @@ -80,6 +97,7 @@ namespace AlibabaCloud private: std::string message_; int httpStatusCode_; + std::string asyncTaskId_; std::string code_; JobGroups jobGroups_; bool success_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsRequest.h new file mode 100644 index 000000000..4bdc8fd60 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsRequest.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_OUTBOUNDBOT_MODEL_LISTRESOURCETAGSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTRESOURCETAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListResourceTagsRequest : public RpcServiceRequest + { + + public: + ListResourceTagsRequest(); + ~ListResourceTagsRequest(); + + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + std::string resourceType_; + int pageNumber_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTRESOURCETAGSREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsResult.h new file mode 100644 index 000000000..21ffac41b --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsResult.h @@ -0,0 +1,71 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTRESOURCETAGSRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTRESOURCETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListResourceTagsResult : public ServiceResult + { + public: + struct ResourceTags + { + struct ResourceTag + { + std::string value; + std::string key; + }; + int totalCount; + int pageSize; + int pageNumber; + std::vector list; + }; + + + ListResourceTagsResult(); + explicit ListResourceTagsResult(const std::string &payload); + ~ListResourceTagsResult(); + std::string getMessage()const; + ResourceTags getResourceTags()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + ResourceTags resourceTags_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTRESOURCETAGSRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesRequest.h new file mode 100644 index 000000000..6196d95c9 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesRequest.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_OUTBOUNDBOT_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListTagResourcesRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string value; + std::string key; + }; + + public: + ListTagResourcesRequest(); + ~ListTagResourcesRequest(); + + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::vector getTag()const; + void setTag(const std::vector& tag); + + private: + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::string nextToken_; + std::vector tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesResult.h new file mode 100644 index 000000000..bdbdc611c --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListTagResourcesResult : public ServiceResult + { + public: + struct TagResource + { + std::string resourceId; + std::string tagKey; + std::string resourceType; + std::string tagValue; + }; + + + ListTagResourcesResult(); + explicit ListTagResourcesResult(const std::string &payload); + ~ListTagResourcesResult(); + std::string getMessage()const; + std::string getNextToken()const; + std::vector getTagResources()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string nextToken_; + std::vector tagResources_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoRequest.h new file mode 100644 index 000000000..bdaa0f1d8 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoRequest.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_OUTBOUNDBOT_MODEL_MODIFYEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyEmptyNumberNoMoreCallsInfoRequest : public RpcServiceRequest + { + + public: + ModifyEmptyNumberNoMoreCallsInfoRequest(); + ~ModifyEmptyNumberNoMoreCallsInfoRequest(); + + int getStrategyLevel()const; + void setStrategyLevel(int strategyLevel); + bool getEmptyNumberNoMoreCalls()const; + void setEmptyNumberNoMoreCalls(bool emptyNumberNoMoreCalls); + std::string getEntryId()const; + void setEntryId(const std::string& entryId); + + private: + int strategyLevel_; + bool emptyNumberNoMoreCalls_; + std::string entryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoResult.h new file mode 100644 index 000000000..32519d3b2 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoResult.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_OUTBOUNDBOT_MODEL_MODIFYEMPTYNUMBERNOMORECALLSINFORESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYEMPTYNUMBERNOMORECALLSINFORESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyEmptyNumberNoMoreCallsInfoResult : public ServiceResult + { + public: + + + ModifyEmptyNumberNoMoreCallsInfoResult(); + explicit ModifyEmptyNumberNoMoreCallsInfoResult(const std::string &payload); + ~ModifyEmptyNumberNoMoreCallsInfoResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYEMPTYNUMBERNOMORECALLSINFORESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceResult.h index b63bf85ec..f0cc6e681 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceResult.h @@ -42,12 +42,15 @@ namespace AlibabaCloud }; std::string instanceName; std::string owner; + std::string ownerName; int maxConcurrentConversation; std::string instanceId; + long creatorId; long creationTime; std::string instanceDescription; std::string nluServiceType; NluProfile nluProfile; + std::string creatorName; std::string callCenterInstanceId; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyJobGroupResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyJobGroupResult.h index db3f12db9..2902923bf 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyJobGroupResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyJobGroupResult.h @@ -34,6 +34,12 @@ namespace AlibabaCloud public: struct JobGroup { + struct ExportProgress + { + std::string status; + std::string progress; + std::string fileHttpUrl; + }; struct Strategy { struct TimeFrame @@ -57,13 +63,19 @@ namespace AlibabaCloud std::string routingStrategy; std::vector repeatDays; }; - std::string jobGroupId; + std::string status; + std::string modifyTime; + std::string jobDataParsingTaskId; std::string scenarioId; std::string jobGroupName; + std::string scriptVersion; + std::string jobGroupDescription; + std::string jobGroupId; + std::string scriptName; long creationTime; Strategy strategy; std::string jobFilePath; - std::string jobGroupDescription; + ExportProgress exportProgress; std::vector callingNumbers; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h new file mode 100644 index 000000000..5f8c22ca3 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.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_OUTBOUNDBOT_MODEL_QUERYJOBSWITHRESULTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSWITHRESULTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT QueryJobsWithResultRequest : public RpcServiceRequest + { + + public: + QueryJobsWithResultRequest(); + ~QueryJobsWithResultRequest(); + + bool getHasReachedEndOfFlowFilter()const; + void setHasReachedEndOfFlowFilter(bool hasReachedEndOfFlowFilter); + bool getHasAnsweredFilter()const; + void setHasAnsweredFilter(bool hasAnsweredFilter); + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getQueryText()const; + void setQueryText(const std::string& queryText); + bool getHasHangUpByRejectionFilter()const; + void setHasHangUpByRejectionFilter(bool hasHangUpByRejectionFilter); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getJobStatusFilter()const; + void setJobStatusFilter(const std::string& jobStatusFilter); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getJobGroupId()const; + void setJobGroupId(const std::string& jobGroupId); + + private: + bool hasReachedEndOfFlowFilter_; + bool hasAnsweredFilter_; + int pageNumber_; + std::string queryText_; + bool hasHangUpByRejectionFilter_; + std::string instanceId_; + std::string jobStatusFilter_; + int pageSize_; + std::string jobGroupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSWITHRESULTREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultResult.h b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultResult.h new file mode 100644 index 000000000..0fe7ddef9 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultResult.h @@ -0,0 +1,109 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSWITHRESULTRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSWITHRESULTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT QueryJobsWithResultResult : public ServiceResult + { + public: + struct Jobs + { + struct Job + { + struct LatestTask + { + struct Contact + { + std::string role; + std::string honorific; + std::string referenceId; + std::string state; + std::string phoneNumber; + int round; + std::string id; + std::string jobUuid; + std::string preferredPhoneNumber; + std::string name; + }; + struct Extra + { + std::string value; + std::string key; + }; + bool hasAnswered; + std::string status; + bool hasHangUpByRejection; + std::string taskEndReason; + std::string callDurationDisplay; + std::string statusName; + long callTime; + std::vector extras; + int callDuration; + bool hasReachedEndOfFlow; + Contact contact; + }; + std::string status; + std::string statusName; + std::string id; + LatestTask latestTask; + std::string jobFailureReason; + }; + int pageCount; + int pageSize; + int pageNumber; + std::vector list; + int rowCount; + }; + + + QueryJobsWithResultResult(); + explicit QueryJobsWithResultResult(const std::string &payload); + ~QueryJobsWithResultResult(); + std::vector getVariableNames()const; + std::string getMessage()const; + Jobs getJobs()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector variableNames_; + std::string message_; + Jobs jobs_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSWITHRESULTRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackRequest.h new file mode 100644 index 000000000..7f7fe0296 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackRequest.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_OUTBOUNDBOT_MODEL_SAVEAFTERANSWERDELAYPLAYBACKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEAFTERANSWERDELAYPLAYBACKREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveAfterAnswerDelayPlaybackRequest : public RpcServiceRequest + { + + public: + SaveAfterAnswerDelayPlaybackRequest(); + ~SaveAfterAnswerDelayPlaybackRequest(); + + int getStrategyLevel()const; + void setStrategyLevel(int strategyLevel); + std::string getEntryId()const; + void setEntryId(const std::string& entryId); + int getAfterAnswerDelayPlayback()const; + void setAfterAnswerDelayPlayback(int afterAnswerDelayPlayback); + + private: + int strategyLevel_; + std::string entryId_; + int afterAnswerDelayPlayback_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEAFTERANSWERDELAYPLAYBACKREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackResult.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackResult.h new file mode 100644 index 000000000..7c4ebf805 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackResult.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_OUTBOUNDBOT_MODEL_SAVEAFTERANSWERDELAYPLAYBACKRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEAFTERANSWERDELAYPLAYBACKRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveAfterAnswerDelayPlaybackResult : public ServiceResult + { + public: + + + SaveAfterAnswerDelayPlaybackResult(); + explicit SaveAfterAnswerDelayPlaybackResult(const std::string &payload); + ~SaveAfterAnswerDelayPlaybackResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEAFTERANSWERDELAYPLAYBACKRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodRequest.h new file mode 100644 index 000000000..1415b4fa7 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodRequest.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_OUTBOUNDBOT_MODEL_SAVEBASESTRATEGYPERIODREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEBASESTRATEGYPERIODREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveBaseStrategyPeriodRequest : public RpcServiceRequest + { + + public: + SaveBaseStrategyPeriodRequest(); + ~SaveBaseStrategyPeriodRequest(); + + int getStrategyLevel()const; + void setStrategyLevel(int strategyLevel); + std::string getEntryId()const; + void setEntryId(const std::string& entryId); + bool getOnlyWeekdays()const; + void setOnlyWeekdays(bool onlyWeekdays); + std::string getWorkingTimeFramesJson()const; + void setWorkingTimeFramesJson(const std::string& workingTimeFramesJson); + std::vector getWorkingTime()const; + void setWorkingTime(const std::vector& workingTime); + + private: + int strategyLevel_; + std::string entryId_; + bool onlyWeekdays_; + std::string workingTimeFramesJson_; + std::vector workingTime_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEBASESTRATEGYPERIODREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodResult.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodResult.h new file mode 100644 index 000000000..a8086c2e7 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodResult.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_OUTBOUNDBOT_MODEL_SAVEBASESTRATEGYPERIODRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEBASESTRATEGYPERIODRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveBaseStrategyPeriodResult : public ServiceResult + { + public: + + + SaveBaseStrategyPeriodResult(); + explicit SaveBaseStrategyPeriodResult(const std::string &payload); + ~SaveBaseStrategyPeriodResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEBASESTRATEGYPERIODRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListRequest.h new file mode 100644 index 000000000..3042c0237 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListRequest.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_OUTBOUNDBOT_MODEL_SAVECONTACTBLOCKLISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTBLOCKLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveContactBlockListRequest : public RpcServiceRequest + { + + public: + SaveContactBlockListRequest(); + ~SaveContactBlockListRequest(); + + std::vector getContactBlockListList()const; + void setContactBlockListList(const std::vector& contactBlockListList); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getContactBlockListsJson()const; + void setContactBlockListsJson(const std::string& contactBlockListsJson); + + private: + std::vector contactBlockListList_; + std::string instanceId_; + std::string contactBlockListsJson_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTBLOCKLISTREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListResult.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListResult.h new file mode 100644 index 000000000..98b665398 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTBLOCKLISTRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTBLOCKLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveContactBlockListResult : public ServiceResult + { + public: + + + SaveContactBlockListResult(); + explicit SaveContactBlockListResult(const std::string &payload); + ~SaveContactBlockListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + int getAffectedRows()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + int affectedRows_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTBLOCKLISTRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListRequest.h new file mode 100644 index 000000000..94e6c08b0 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListRequest.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_OUTBOUNDBOT_MODEL_SAVECONTACTWHITELISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTWHITELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveContactWhiteListRequest : public RpcServiceRequest + { + + public: + SaveContactWhiteListRequest(); + ~SaveContactWhiteListRequest(); + + std::vector getContactWhiteListList()const; + void setContactWhiteListList(const std::vector& contactWhiteListList); + std::string getContactWhiteListsJson()const; + void setContactWhiteListsJson(const std::string& contactWhiteListsJson); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::vector contactWhiteListList_; + std::string contactWhiteListsJson_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTWHITELISTREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListResult.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListResult.h new file mode 100644 index 000000000..6609c6f03 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListResult.h @@ -0,0 +1,59 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTWHITELISTRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTWHITELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveContactWhiteListResult : public ServiceResult + { + public: + + + SaveContactWhiteListResult(); + explicit SaveContactWhiteListResult(const std::string &payload); + ~SaveContactWhiteListResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + int getAffectedRows()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + int affectedRows_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTWHITELISTRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysRequest.h new file mode 100644 index 000000000..35515fefa --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysRequest.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_OUTBOUNDBOT_MODEL_SAVEEFFECTIVEDAYSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEEFFECTIVEDAYSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveEffectiveDaysRequest : public RpcServiceRequest + { + + public: + SaveEffectiveDaysRequest(); + ~SaveEffectiveDaysRequest(); + + int getEffectiveDays()const; + void setEffectiveDays(int effectiveDays); + int getStrategyLevel()const; + void setStrategyLevel(int strategyLevel); + std::string getEntryId()const; + void setEntryId(const std::string& entryId); + + private: + int effectiveDays_; + int strategyLevel_; + std::string entryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEEFFECTIVEDAYSREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysResult.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysResult.h new file mode 100644 index 000000000..b91f644e3 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysResult.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_OUTBOUNDBOT_MODEL_SAVEEFFECTIVEDAYSRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEEFFECTIVEDAYSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveEffectiveDaysResult : public ServiceResult + { + public: + + + SaveEffectiveDaysResult(); + explicit SaveEffectiveDaysResult(const std::string &payload); + ~SaveEffectiveDaysResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEEFFECTIVEDAYSRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayRequest.h new file mode 100644 index 000000000..f16f7f47f --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayRequest.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_OUTBOUNDBOT_MODEL_SAVEMAXATTEMPTSPERDAYREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEMAXATTEMPTSPERDAYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveMaxAttemptsPerDayRequest : public RpcServiceRequest + { + + public: + SaveMaxAttemptsPerDayRequest(); + ~SaveMaxAttemptsPerDayRequest(); + + int getMaxAttemptsPerDay()const; + void setMaxAttemptsPerDay(int maxAttemptsPerDay); + int getStrategyLevel()const; + void setStrategyLevel(int strategyLevel); + std::string getEntryId()const; + void setEntryId(const std::string& entryId); + + private: + int maxAttemptsPerDay_; + int strategyLevel_; + std::string entryId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEMAXATTEMPTSPERDAYREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayResult.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayResult.h new file mode 100644 index 000000000..ac20ba22a --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayResult.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_OUTBOUNDBOT_MODEL_SAVEMAXATTEMPTSPERDAYRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEMAXATTEMPTSPERDAYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SaveMaxAttemptsPerDayResult : public ServiceResult + { + public: + + + SaveMaxAttemptsPerDayResult(); + explicit SaveMaxAttemptsPerDayResult(const std::string &payload); + ~SaveMaxAttemptsPerDayResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEMAXATTEMPTSPERDAYRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallRequest.h new file mode 100644 index 000000000..30920c105 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallRequest.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_OUTBOUNDBOT_MODEL_SUSPENDCALLREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SuspendCallRequest : public RpcServiceRequest + { + + public: + SuspendCallRequest(); + ~SuspendCallRequest(); + + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::vector getCalledNumbers()const; + void setCalledNumbers(const std::vector& calledNumbers); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + + private: + std::string groupId_; + std::vector calledNumbers_; + std::string instanceId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallResult.h b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallResult.h new file mode 100644 index 000000000..8dd4fe8d7 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallResult.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_OUTBOUNDBOT_MODEL_SUSPENDCALLRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SuspendCallResult : public ServiceResult + { + public: + + + SuspendCallResult(); + explicit SuspendCallResult(const std::string &payload); + ~SuspendCallResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileRequest.h new file mode 100644 index 000000000..60d76838b --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileRequest.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_OUTBOUNDBOT_MODEL_SUSPENDCALLWITHFILEREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLWITHFILEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SuspendCallWithFileRequest : public RpcServiceRequest + { + + public: + SuspendCallWithFileRequest(); + ~SuspendCallWithFileRequest(); + + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getInstanceId()const; + void setInstanceId(const std::string& instanceId); + std::string getFilePath()const; + void setFilePath(const std::string& filePath); + + private: + std::string groupId_; + std::string instanceId_; + std::string filePath_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLWITHFILEREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileResult.h b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileResult.h new file mode 100644 index 000000000..23bbbe45e --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileResult.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_OUTBOUNDBOT_MODEL_SUSPENDCALLWITHFILERESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLWITHFILERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SuspendCallWithFileResult : public ServiceResult + { + public: + + + SuspendCallWithFileResult(); + explicit SuspendCallWithFileResult(const std::string &payload); + ~SuspendCallWithFileResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLWITHFILERESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/TagResourcesRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/TagResourcesRequest.h new file mode 100644 index 000000000..ecbf23e7e --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/TagResourcesRequest.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_OUTBOUNDBOT_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT TagResourcesRequest : public RpcServiceRequest + { + public: + struct Tag + { + std::string value; + std::string key; + }; + + public: + TagResourcesRequest(); + ~TagResourcesRequest(); + + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTag()const; + void setTag(const std::vector& tag); + + private: + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::vector tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/TagResourcesResult.h b/outboundbot/include/alibabacloud/outboundbot/model/TagResourcesResult.h new file mode 100644 index 000000000..72dd4e683 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/TagResourcesResult.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_OUTBOUNDBOT_MODEL_TAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT TagResourcesResult : public ServiceResult + { + public: + + + TagResourcesResult(); + explicit TagResourcesResult(const std::string &payload); + ~TagResourcesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesRequest.h new file mode 100644 index 000000000..b19854b4f --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesRequest.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_OUTBOUNDBOT_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT UntagResourcesRequest : public RpcServiceRequest + { + + public: + UntagResourcesRequest(); + ~UntagResourcesRequest(); + + bool getAll()const; + void setAll(bool all); + std::vector getResourceId()const; + void setResourceId(const std::vector& resourceId); + std::string getResourceType()const; + void setResourceType(const std::string& resourceType); + std::string getRegionId()const; + void setRegionId(const std::string& regionId); + std::vector getTagKey()const; + void setTagKey(const std::vector& tagKey); + + private: + bool all_; + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::vector tagKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_UNTAGRESOURCESREQUEST_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesResult.h b/outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesResult.h new file mode 100644 index 000000000..1b2c11b6c --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesResult.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_OUTBOUNDBOT_MODEL_UNTAGRESOURCESRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_UNTAGRESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT UntagResourcesResult : public ServiceResult + { + public: + + + UntagResourcesResult(); + explicit UntagResourcesResult(const std::string &payload); + ~UntagResourcesResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_UNTAGRESOURCESRESULT_H_ \ No newline at end of file diff --git a/outboundbot/src/OutboundBotClient.cc b/outboundbot/src/OutboundBotClient.cc index 97654e164..5f9513c00 100644 --- a/outboundbot/src/OutboundBotClient.cc +++ b/outboundbot/src/OutboundBotClient.cc @@ -123,6 +123,42 @@ OutboundBotClient::CancelJobsOutcomeCallable OutboundBotClient::cancelJobsCallab return task->get_future(); } +OutboundBotClient::ChangeResourceGroupOutcome OutboundBotClient::changeResourceGroup(const ChangeResourceGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ChangeResourceGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ChangeResourceGroupOutcome(ChangeResourceGroupResult(outcome.result())); + else + return ChangeResourceGroupOutcome(outcome.error()); +} + +void OutboundBotClient::changeResourceGroupAsync(const ChangeResourceGroupRequest& request, const ChangeResourceGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, changeResourceGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::ChangeResourceGroupOutcomeCallable OutboundBotClient::changeResourceGroupCallable(const ChangeResourceGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->changeResourceGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::CreateBatchJobsOutcome OutboundBotClient::createBatchJobs(const CreateBatchJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -159,6 +195,42 @@ OutboundBotClient::CreateBatchJobsOutcomeCallable OutboundBotClient::createBatch return task->get_future(); } +OutboundBotClient::CreateBatchRepeatJobOutcome OutboundBotClient::createBatchRepeatJob(const CreateBatchRepeatJobRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateBatchRepeatJobOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateBatchRepeatJobOutcome(CreateBatchRepeatJobResult(outcome.result())); + else + return CreateBatchRepeatJobOutcome(outcome.error()); +} + +void OutboundBotClient::createBatchRepeatJobAsync(const CreateBatchRepeatJobRequest& request, const CreateBatchRepeatJobAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createBatchRepeatJob(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::CreateBatchRepeatJobOutcomeCallable OutboundBotClient::createBatchRepeatJobCallable(const CreateBatchRepeatJobRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createBatchRepeatJob(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::CreateDialogueFlowOutcome OutboundBotClient::createDialogueFlow(const CreateDialogueFlowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -303,6 +375,42 @@ OutboundBotClient::CreateIntentOutcomeCallable OutboundBotClient::createIntentCa return task->get_future(); } +OutboundBotClient::CreateJobDataParsingTaskOutcome OutboundBotClient::createJobDataParsingTask(const CreateJobDataParsingTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateJobDataParsingTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateJobDataParsingTaskOutcome(CreateJobDataParsingTaskResult(outcome.result())); + else + return CreateJobDataParsingTaskOutcome(outcome.error()); +} + +void OutboundBotClient::createJobDataParsingTaskAsync(const CreateJobDataParsingTaskRequest& request, const CreateJobDataParsingTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createJobDataParsingTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::CreateJobDataParsingTaskOutcomeCallable OutboundBotClient::createJobDataParsingTaskCallable(const CreateJobDataParsingTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createJobDataParsingTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::CreateJobGroupOutcome OutboundBotClient::createJobGroup(const CreateJobGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -339,6 +447,42 @@ OutboundBotClient::CreateJobGroupOutcomeCallable OutboundBotClient::createJobGro return task->get_future(); } +OutboundBotClient::CreateJobGroupExportTaskOutcome OutboundBotClient::createJobGroupExportTask(const CreateJobGroupExportTaskRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateJobGroupExportTaskOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateJobGroupExportTaskOutcome(CreateJobGroupExportTaskResult(outcome.result())); + else + return CreateJobGroupExportTaskOutcome(outcome.error()); +} + +void OutboundBotClient::createJobGroupExportTaskAsync(const CreateJobGroupExportTaskRequest& request, const CreateJobGroupExportTaskAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createJobGroupExportTask(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::CreateJobGroupExportTaskOutcomeCallable OutboundBotClient::createJobGroupExportTaskCallable(const CreateJobGroupExportTaskRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createJobGroupExportTask(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::CreateOutboundCallNumberOutcome OutboundBotClient::createOutboundCallNumber(const CreateOutboundCallNumberRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -483,6 +627,78 @@ OutboundBotClient::CreateTagOutcomeCallable OutboundBotClient::createTagCallable return task->get_future(); } +OutboundBotClient::DeleteContactBlockListOutcome OutboundBotClient::deleteContactBlockList(const DeleteContactBlockListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteContactBlockListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteContactBlockListOutcome(DeleteContactBlockListResult(outcome.result())); + else + return DeleteContactBlockListOutcome(outcome.error()); +} + +void OutboundBotClient::deleteContactBlockListAsync(const DeleteContactBlockListRequest& request, const DeleteContactBlockListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteContactBlockList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::DeleteContactBlockListOutcomeCallable OutboundBotClient::deleteContactBlockListCallable(const DeleteContactBlockListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteContactBlockList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::DeleteContactWhiteListOutcome OutboundBotClient::deleteContactWhiteList(const DeleteContactWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteContactWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteContactWhiteListOutcome(DeleteContactWhiteListResult(outcome.result())); + else + return DeleteContactWhiteListOutcome(outcome.error()); +} + +void OutboundBotClient::deleteContactWhiteListAsync(const DeleteContactWhiteListRequest& request, const DeleteContactWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteContactWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::DeleteContactWhiteListOutcomeCallable OutboundBotClient::deleteContactWhiteListCallable(const DeleteContactWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteContactWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::DeleteDialogueFlowOutcome OutboundBotClient::deleteDialogueFlow(const DeleteDialogueFlowRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -771,6 +987,78 @@ OutboundBotClient::DeleteScriptWaveformOutcomeCallable OutboundBotClient::delete return task->get_future(); } +OutboundBotClient::DescribeDialogueNodeStatisticsOutcome OutboundBotClient::describeDialogueNodeStatistics(const DescribeDialogueNodeStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDialogueNodeStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDialogueNodeStatisticsOutcome(DescribeDialogueNodeStatisticsResult(outcome.result())); + else + return DescribeDialogueNodeStatisticsOutcome(outcome.error()); +} + +void OutboundBotClient::describeDialogueNodeStatisticsAsync(const DescribeDialogueNodeStatisticsRequest& request, const DescribeDialogueNodeStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDialogueNodeStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::DescribeDialogueNodeStatisticsOutcomeCallable OutboundBotClient::describeDialogueNodeStatisticsCallable(const DescribeDialogueNodeStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDialogueNodeStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::DescribeDsReportsOutcome OutboundBotClient::describeDsReports(const DescribeDsReportsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeDsReportsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeDsReportsOutcome(DescribeDsReportsResult(outcome.result())); + else + return DescribeDsReportsOutcome(outcome.error()); +} + +void OutboundBotClient::describeDsReportsAsync(const DescribeDsReportsRequest& request, const DescribeDsReportsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeDsReports(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::DescribeDsReportsOutcomeCallable OutboundBotClient::describeDsReportsCallable(const DescribeDsReportsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeDsReports(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::DescribeGlobalQuestionOutcome OutboundBotClient::describeGlobalQuestion(const DescribeGlobalQuestionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,6 +1095,42 @@ OutboundBotClient::DescribeGlobalQuestionOutcomeCallable OutboundBotClient::desc return task->get_future(); } +OutboundBotClient::DescribeGroupExecutingInfoOutcome OutboundBotClient::describeGroupExecutingInfo(const DescribeGroupExecutingInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGroupExecutingInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGroupExecutingInfoOutcome(DescribeGroupExecutingInfoResult(outcome.result())); + else + return DescribeGroupExecutingInfoOutcome(outcome.error()); +} + +void OutboundBotClient::describeGroupExecutingInfoAsync(const DescribeGroupExecutingInfoRequest& request, const DescribeGroupExecutingInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGroupExecutingInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::DescribeGroupExecutingInfoOutcomeCallable OutboundBotClient::describeGroupExecutingInfoCallable(const DescribeGroupExecutingInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGroupExecutingInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::DescribeInstanceOutcome OutboundBotClient::describeInstance(const DescribeInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -879,6 +1203,42 @@ OutboundBotClient::DescribeIntentOutcomeCallable OutboundBotClient::describeInte return task->get_future(); } +OutboundBotClient::DescribeIntentStatisticsOutcome OutboundBotClient::describeIntentStatistics(const DescribeIntentStatisticsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeIntentStatisticsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeIntentStatisticsOutcome(DescribeIntentStatisticsResult(outcome.result())); + else + return DescribeIntentStatisticsOutcome(outcome.error()); +} + +void OutboundBotClient::describeIntentStatisticsAsync(const DescribeIntentStatisticsRequest& request, const DescribeIntentStatisticsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeIntentStatistics(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::DescribeIntentStatisticsOutcomeCallable OutboundBotClient::describeIntentStatisticsCallable(const DescribeIntentStatisticsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeIntentStatistics(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::DescribeJobOutcome OutboundBotClient::describeJob(const DescribeJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,6 +1275,42 @@ OutboundBotClient::DescribeJobOutcomeCallable OutboundBotClient::describeJobCall return task->get_future(); } +OutboundBotClient::DescribeJobDataParsingTaskProgressOutcome OutboundBotClient::describeJobDataParsingTaskProgress(const DescribeJobDataParsingTaskProgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeJobDataParsingTaskProgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeJobDataParsingTaskProgressOutcome(DescribeJobDataParsingTaskProgressResult(outcome.result())); + else + return DescribeJobDataParsingTaskProgressOutcome(outcome.error()); +} + +void OutboundBotClient::describeJobDataParsingTaskProgressAsync(const DescribeJobDataParsingTaskProgressRequest& request, const DescribeJobDataParsingTaskProgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeJobDataParsingTaskProgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::DescribeJobDataParsingTaskProgressOutcomeCallable OutboundBotClient::describeJobDataParsingTaskProgressCallable(const DescribeJobDataParsingTaskProgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeJobDataParsingTaskProgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::DescribeJobGroupOutcome OutboundBotClient::describeJobGroup(const DescribeJobGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -951,6 +1347,42 @@ OutboundBotClient::DescribeJobGroupOutcomeCallable OutboundBotClient::describeJo return task->get_future(); } +OutboundBotClient::DescribeJobGroupExportTaskProgressOutcome OutboundBotClient::describeJobGroupExportTaskProgress(const DescribeJobGroupExportTaskProgressRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeJobGroupExportTaskProgressOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeJobGroupExportTaskProgressOutcome(DescribeJobGroupExportTaskProgressResult(outcome.result())); + else + return DescribeJobGroupExportTaskProgressOutcome(outcome.error()); +} + +void OutboundBotClient::describeJobGroupExportTaskProgressAsync(const DescribeJobGroupExportTaskProgressRequest& request, const DescribeJobGroupExportTaskProgressAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeJobGroupExportTaskProgress(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::DescribeJobGroupExportTaskProgressOutcomeCallable OutboundBotClient::describeJobGroupExportTaskProgressCallable(const DescribeJobGroupExportTaskProgressRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeJobGroupExportTaskProgress(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::DescribeScriptOutcome OutboundBotClient::describeScript(const DescribeScriptRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1275,6 +1707,402 @@ OutboundBotClient::ExportScriptOutcomeCallable OutboundBotClient::exportScriptCa return task->get_future(); } +OutboundBotClient::GetAfterAnswerDelayPlaybackOutcome OutboundBotClient::getAfterAnswerDelayPlayback(const GetAfterAnswerDelayPlaybackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAfterAnswerDelayPlaybackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAfterAnswerDelayPlaybackOutcome(GetAfterAnswerDelayPlaybackResult(outcome.result())); + else + return GetAfterAnswerDelayPlaybackOutcome(outcome.error()); +} + +void OutboundBotClient::getAfterAnswerDelayPlaybackAsync(const GetAfterAnswerDelayPlaybackRequest& request, const GetAfterAnswerDelayPlaybackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAfterAnswerDelayPlayback(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetAfterAnswerDelayPlaybackOutcomeCallable OutboundBotClient::getAfterAnswerDelayPlaybackCallable(const GetAfterAnswerDelayPlaybackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAfterAnswerDelayPlayback(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::GetAsrServerInfoOutcome OutboundBotClient::getAsrServerInfo(const GetAsrServerInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetAsrServerInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetAsrServerInfoOutcome(GetAsrServerInfoResult(outcome.result())); + else + return GetAsrServerInfoOutcome(outcome.error()); +} + +void OutboundBotClient::getAsrServerInfoAsync(const GetAsrServerInfoRequest& request, const GetAsrServerInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getAsrServerInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetAsrServerInfoOutcomeCallable OutboundBotClient::getAsrServerInfoCallable(const GetAsrServerInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getAsrServerInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::GetBaseStrategyPeriodOutcome OutboundBotClient::getBaseStrategyPeriod(const GetBaseStrategyPeriodRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetBaseStrategyPeriodOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetBaseStrategyPeriodOutcome(GetBaseStrategyPeriodResult(outcome.result())); + else + return GetBaseStrategyPeriodOutcome(outcome.error()); +} + +void OutboundBotClient::getBaseStrategyPeriodAsync(const GetBaseStrategyPeriodRequest& request, const GetBaseStrategyPeriodAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getBaseStrategyPeriod(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetBaseStrategyPeriodOutcomeCallable OutboundBotClient::getBaseStrategyPeriodCallable(const GetBaseStrategyPeriodRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getBaseStrategyPeriod(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::GetContactBlockListOutcome OutboundBotClient::getContactBlockList(const GetContactBlockListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetContactBlockListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetContactBlockListOutcome(GetContactBlockListResult(outcome.result())); + else + return GetContactBlockListOutcome(outcome.error()); +} + +void OutboundBotClient::getContactBlockListAsync(const GetContactBlockListRequest& request, const GetContactBlockListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getContactBlockList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetContactBlockListOutcomeCallable OutboundBotClient::getContactBlockListCallable(const GetContactBlockListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getContactBlockList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::GetContactWhiteListOutcome OutboundBotClient::getContactWhiteList(const GetContactWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetContactWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetContactWhiteListOutcome(GetContactWhiteListResult(outcome.result())); + else + return GetContactWhiteListOutcome(outcome.error()); +} + +void OutboundBotClient::getContactWhiteListAsync(const GetContactWhiteListRequest& request, const GetContactWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getContactWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetContactWhiteListOutcomeCallable OutboundBotClient::getContactWhiteListCallable(const GetContactWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getContactWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::GetEffectiveDaysOutcome OutboundBotClient::getEffectiveDays(const GetEffectiveDaysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEffectiveDaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEffectiveDaysOutcome(GetEffectiveDaysResult(outcome.result())); + else + return GetEffectiveDaysOutcome(outcome.error()); +} + +void OutboundBotClient::getEffectiveDaysAsync(const GetEffectiveDaysRequest& request, const GetEffectiveDaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEffectiveDays(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetEffectiveDaysOutcomeCallable OutboundBotClient::getEffectiveDaysCallable(const GetEffectiveDaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEffectiveDays(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::GetEmptyNumberNoMoreCallsInfoOutcome OutboundBotClient::getEmptyNumberNoMoreCallsInfo(const GetEmptyNumberNoMoreCallsInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetEmptyNumberNoMoreCallsInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetEmptyNumberNoMoreCallsInfoOutcome(GetEmptyNumberNoMoreCallsInfoResult(outcome.result())); + else + return GetEmptyNumberNoMoreCallsInfoOutcome(outcome.error()); +} + +void OutboundBotClient::getEmptyNumberNoMoreCallsInfoAsync(const GetEmptyNumberNoMoreCallsInfoRequest& request, const GetEmptyNumberNoMoreCallsInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getEmptyNumberNoMoreCallsInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetEmptyNumberNoMoreCallsInfoOutcomeCallable OutboundBotClient::getEmptyNumberNoMoreCallsInfoCallable(const GetEmptyNumberNoMoreCallsInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getEmptyNumberNoMoreCallsInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::GetMaxAttemptsPerDayOutcome OutboundBotClient::getMaxAttemptsPerDay(const GetMaxAttemptsPerDayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetMaxAttemptsPerDayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetMaxAttemptsPerDayOutcome(GetMaxAttemptsPerDayResult(outcome.result())); + else + return GetMaxAttemptsPerDayOutcome(outcome.error()); +} + +void OutboundBotClient::getMaxAttemptsPerDayAsync(const GetMaxAttemptsPerDayRequest& request, const GetMaxAttemptsPerDayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getMaxAttemptsPerDay(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetMaxAttemptsPerDayOutcomeCallable OutboundBotClient::getMaxAttemptsPerDayCallable(const GetMaxAttemptsPerDayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getMaxAttemptsPerDay(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::GetSummaryInfoOutcome OutboundBotClient::getSummaryInfo(const GetSummaryInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetSummaryInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetSummaryInfoOutcome(GetSummaryInfoResult(outcome.result())); + else + return GetSummaryInfoOutcome(outcome.error()); +} + +void OutboundBotClient::getSummaryInfoAsync(const GetSummaryInfoRequest& request, const GetSummaryInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getSummaryInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetSummaryInfoOutcomeCallable OutboundBotClient::getSummaryInfoCallable(const GetSummaryInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getSummaryInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::GetTaskByUuidOutcome OutboundBotClient::getTaskByUuid(const GetTaskByUuidRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetTaskByUuidOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetTaskByUuidOutcome(GetTaskByUuidResult(outcome.result())); + else + return GetTaskByUuidOutcome(outcome.error()); +} + +void OutboundBotClient::getTaskByUuidAsync(const GetTaskByUuidRequest& request, const GetTaskByUuidAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getTaskByUuid(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetTaskByUuidOutcomeCallable OutboundBotClient::getTaskByUuidCallable(const GetTaskByUuidRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getTaskByUuid(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::GetVersionOutcome OutboundBotClient::getVersion(const GetVersionRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GetVersionOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GetVersionOutcome(GetVersionResult(outcome.result())); + else + return GetVersionOutcome(outcome.error()); +} + +void OutboundBotClient::getVersionAsync(const GetVersionRequest& request, const GetVersionAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, getVersion(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GetVersionOutcomeCallable OutboundBotClient::getVersionCallable(const GetVersionRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->getVersion(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::ImportScriptOutcome OutboundBotClient::importScript(const ImportScriptRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1527,6 +2355,42 @@ OutboundBotClient::ListJobGroupsOutcomeCallable OutboundBotClient::listJobGroups return task->get_future(); } +OutboundBotClient::ListJobGroupsAsyncOutcome OutboundBotClient::listJobGroupsAsync(const ListJobGroupsAsyncRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListJobGroupsAsyncOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListJobGroupsAsyncOutcome(ListJobGroupsAsyncResult(outcome.result())); + else + return ListJobGroupsAsyncOutcome(outcome.error()); +} + +void OutboundBotClient::listJobGroupsAsyncAsync(const ListJobGroupsAsyncRequest& request, const ListJobGroupsAsyncAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listJobGroupsAsync(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::ListJobGroupsAsyncOutcomeCallable OutboundBotClient::listJobGroupsAsyncCallable(const ListJobGroupsAsyncRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listJobGroupsAsync(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::ListJobsOutcome OutboundBotClient::listJobs(const ListJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1599,42 +2463,6 @@ OutboundBotClient::ListJobsByGroupOutcomeCallable OutboundBotClient::listJobsByG return task->get_future(); } -OutboundBotClient::ListMediaOutcome OutboundBotClient::listMedia(const ListMediaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ListMediaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ListMediaOutcome(ListMediaResult(outcome.result())); - else - return ListMediaOutcome(outcome.error()); -} - -void OutboundBotClient::listMediaAsync(const ListMediaRequest& request, const ListMediaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, listMedia(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -OutboundBotClient::ListMediaOutcomeCallable OutboundBotClient::listMediaCallable(const ListMediaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->listMedia(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - OutboundBotClient::ListOutboundCallNumbersOutcome OutboundBotClient::listOutboundCallNumbers(const ListOutboundCallNumbersRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1671,6 +2499,42 @@ OutboundBotClient::ListOutboundCallNumbersOutcomeCallable OutboundBotClient::lis return task->get_future(); } +OutboundBotClient::ListResourceTagsOutcome OutboundBotClient::listResourceTags(const ListResourceTagsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListResourceTagsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListResourceTagsOutcome(ListResourceTagsResult(outcome.result())); + else + return ListResourceTagsOutcome(outcome.error()); +} + +void OutboundBotClient::listResourceTagsAsync(const ListResourceTagsRequest& request, const ListResourceTagsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listResourceTags(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::ListResourceTagsOutcomeCallable OutboundBotClient::listResourceTagsCallable(const ListResourceTagsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listResourceTags(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::ListSchedulerInstancesOutcome OutboundBotClient::listSchedulerInstances(const ListSchedulerInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1815,6 +2679,42 @@ OutboundBotClient::ListScriptsOutcomeCallable OutboundBotClient::listScriptsCall return task->get_future(); } +OutboundBotClient::ListTagResourcesOutcome OutboundBotClient::listTagResources(const ListTagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ListTagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ListTagResourcesOutcome(ListTagResourcesResult(outcome.result())); + else + return ListTagResourcesOutcome(outcome.error()); +} + +void OutboundBotClient::listTagResourcesAsync(const ListTagResourcesRequest& request, const ListTagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, listTagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::ListTagResourcesOutcomeCallable OutboundBotClient::listTagResourcesCallable(const ListTagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->listTagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::ListTagsOutcome OutboundBotClient::listTags(const ListTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1923,6 +2823,42 @@ OutboundBotClient::ModifyDialogueFlowOutcomeCallable OutboundBotClient::modifyDi return task->get_future(); } +OutboundBotClient::ModifyEmptyNumberNoMoreCallsInfoOutcome OutboundBotClient::modifyEmptyNumberNoMoreCallsInfo(const ModifyEmptyNumberNoMoreCallsInfoRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return ModifyEmptyNumberNoMoreCallsInfoOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return ModifyEmptyNumberNoMoreCallsInfoOutcome(ModifyEmptyNumberNoMoreCallsInfoResult(outcome.result())); + else + return ModifyEmptyNumberNoMoreCallsInfoOutcome(outcome.error()); +} + +void OutboundBotClient::modifyEmptyNumberNoMoreCallsInfoAsync(const ModifyEmptyNumberNoMoreCallsInfoRequest& request, const ModifyEmptyNumberNoMoreCallsInfoAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, modifyEmptyNumberNoMoreCallsInfo(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::ModifyEmptyNumberNoMoreCallsInfoOutcomeCallable OutboundBotClient::modifyEmptyNumberNoMoreCallsInfoCallable(const ModifyEmptyNumberNoMoreCallsInfoRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->modifyEmptyNumberNoMoreCallsInfo(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::ModifyGlobalQuestionOutcome OutboundBotClient::modifyGlobalQuestion(const ModifyGlobalQuestionRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2355,6 +3291,42 @@ OutboundBotClient::QueryJobsOutcomeCallable OutboundBotClient::queryJobsCallable return task->get_future(); } +OutboundBotClient::QueryJobsWithResultOutcome OutboundBotClient::queryJobsWithResult(const QueryJobsWithResultRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return QueryJobsWithResultOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return QueryJobsWithResultOutcome(QueryJobsWithResultResult(outcome.result())); + else + return QueryJobsWithResultOutcome(outcome.error()); +} + +void OutboundBotClient::queryJobsWithResultAsync(const QueryJobsWithResultRequest& request, const QueryJobsWithResultAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, queryJobsWithResult(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::QueryJobsWithResultOutcomeCallable OutboundBotClient::queryJobsWithResultCallable(const QueryJobsWithResultRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->queryJobsWithResult(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::QueryScriptWaveformsOutcome OutboundBotClient::queryScriptWaveforms(const QueryScriptWaveformsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2535,6 +3507,222 @@ OutboundBotClient::RollbackScriptOutcomeCallable OutboundBotClient::rollbackScri return task->get_future(); } +OutboundBotClient::SaveAfterAnswerDelayPlaybackOutcome OutboundBotClient::saveAfterAnswerDelayPlayback(const SaveAfterAnswerDelayPlaybackRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveAfterAnswerDelayPlaybackOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveAfterAnswerDelayPlaybackOutcome(SaveAfterAnswerDelayPlaybackResult(outcome.result())); + else + return SaveAfterAnswerDelayPlaybackOutcome(outcome.error()); +} + +void OutboundBotClient::saveAfterAnswerDelayPlaybackAsync(const SaveAfterAnswerDelayPlaybackRequest& request, const SaveAfterAnswerDelayPlaybackAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveAfterAnswerDelayPlayback(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::SaveAfterAnswerDelayPlaybackOutcomeCallable OutboundBotClient::saveAfterAnswerDelayPlaybackCallable(const SaveAfterAnswerDelayPlaybackRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveAfterAnswerDelayPlayback(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::SaveBaseStrategyPeriodOutcome OutboundBotClient::saveBaseStrategyPeriod(const SaveBaseStrategyPeriodRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveBaseStrategyPeriodOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveBaseStrategyPeriodOutcome(SaveBaseStrategyPeriodResult(outcome.result())); + else + return SaveBaseStrategyPeriodOutcome(outcome.error()); +} + +void OutboundBotClient::saveBaseStrategyPeriodAsync(const SaveBaseStrategyPeriodRequest& request, const SaveBaseStrategyPeriodAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveBaseStrategyPeriod(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::SaveBaseStrategyPeriodOutcomeCallable OutboundBotClient::saveBaseStrategyPeriodCallable(const SaveBaseStrategyPeriodRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveBaseStrategyPeriod(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::SaveContactBlockListOutcome OutboundBotClient::saveContactBlockList(const SaveContactBlockListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveContactBlockListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveContactBlockListOutcome(SaveContactBlockListResult(outcome.result())); + else + return SaveContactBlockListOutcome(outcome.error()); +} + +void OutboundBotClient::saveContactBlockListAsync(const SaveContactBlockListRequest& request, const SaveContactBlockListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveContactBlockList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::SaveContactBlockListOutcomeCallable OutboundBotClient::saveContactBlockListCallable(const SaveContactBlockListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveContactBlockList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::SaveContactWhiteListOutcome OutboundBotClient::saveContactWhiteList(const SaveContactWhiteListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveContactWhiteListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveContactWhiteListOutcome(SaveContactWhiteListResult(outcome.result())); + else + return SaveContactWhiteListOutcome(outcome.error()); +} + +void OutboundBotClient::saveContactWhiteListAsync(const SaveContactWhiteListRequest& request, const SaveContactWhiteListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveContactWhiteList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::SaveContactWhiteListOutcomeCallable OutboundBotClient::saveContactWhiteListCallable(const SaveContactWhiteListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveContactWhiteList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::SaveEffectiveDaysOutcome OutboundBotClient::saveEffectiveDays(const SaveEffectiveDaysRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveEffectiveDaysOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveEffectiveDaysOutcome(SaveEffectiveDaysResult(outcome.result())); + else + return SaveEffectiveDaysOutcome(outcome.error()); +} + +void OutboundBotClient::saveEffectiveDaysAsync(const SaveEffectiveDaysRequest& request, const SaveEffectiveDaysAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveEffectiveDays(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::SaveEffectiveDaysOutcomeCallable OutboundBotClient::saveEffectiveDaysCallable(const SaveEffectiveDaysRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveEffectiveDays(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::SaveMaxAttemptsPerDayOutcome OutboundBotClient::saveMaxAttemptsPerDay(const SaveMaxAttemptsPerDayRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SaveMaxAttemptsPerDayOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SaveMaxAttemptsPerDayOutcome(SaveMaxAttemptsPerDayResult(outcome.result())); + else + return SaveMaxAttemptsPerDayOutcome(outcome.error()); +} + +void OutboundBotClient::saveMaxAttemptsPerDayAsync(const SaveMaxAttemptsPerDayRequest& request, const SaveMaxAttemptsPerDayAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, saveMaxAttemptsPerDay(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::SaveMaxAttemptsPerDayOutcomeCallable OutboundBotClient::saveMaxAttemptsPerDayCallable(const SaveMaxAttemptsPerDayRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->saveMaxAttemptsPerDay(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::StartJobOutcome OutboundBotClient::startJob(const StartJobRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2679,6 +3867,78 @@ OutboundBotClient::SubmitScriptReviewOutcomeCallable OutboundBotClient::submitSc return task->get_future(); } +OutboundBotClient::SuspendCallOutcome OutboundBotClient::suspendCall(const SuspendCallRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SuspendCallOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SuspendCallOutcome(SuspendCallResult(outcome.result())); + else + return SuspendCallOutcome(outcome.error()); +} + +void OutboundBotClient::suspendCallAsync(const SuspendCallRequest& request, const SuspendCallAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, suspendCall(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::SuspendCallOutcomeCallable OutboundBotClient::suspendCallCallable(const SuspendCallRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->suspendCall(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +OutboundBotClient::SuspendCallWithFileOutcome OutboundBotClient::suspendCallWithFile(const SuspendCallWithFileRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return SuspendCallWithFileOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return SuspendCallWithFileOutcome(SuspendCallWithFileResult(outcome.result())); + else + return SuspendCallWithFileOutcome(outcome.error()); +} + +void OutboundBotClient::suspendCallWithFileAsync(const SuspendCallWithFileRequest& request, const SuspendCallWithFileAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, suspendCallWithFile(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::SuspendCallWithFileOutcomeCallable OutboundBotClient::suspendCallWithFileCallable(const SuspendCallWithFileRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->suspendCallWithFile(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::SuspendJobsOutcome OutboundBotClient::suspendJobs(const SuspendJobsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2715,6 +3975,42 @@ OutboundBotClient::SuspendJobsOutcomeCallable OutboundBotClient::suspendJobsCall return task->get_future(); } +OutboundBotClient::TagResourcesOutcome OutboundBotClient::tagResources(const TagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return TagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return TagResourcesOutcome(TagResourcesResult(outcome.result())); + else + return TagResourcesOutcome(outcome.error()); +} + +void OutboundBotClient::tagResourcesAsync(const TagResourcesRequest& request, const TagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, tagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::TagResourcesOutcomeCallable OutboundBotClient::tagResourcesCallable(const TagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->tagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::TaskPreparingOutcome OutboundBotClient::taskPreparing(const TaskPreparingRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2751,6 +4047,42 @@ OutboundBotClient::TaskPreparingOutcomeCallable OutboundBotClient::taskPreparing return task->get_future(); } +OutboundBotClient::UntagResourcesOutcome OutboundBotClient::untagResources(const UntagResourcesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return UntagResourcesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return UntagResourcesOutcome(UntagResourcesResult(outcome.result())); + else + return UntagResourcesOutcome(outcome.error()); +} + +void OutboundBotClient::untagResourcesAsync(const UntagResourcesRequest& request, const UntagResourcesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, untagResources(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::UntagResourcesOutcomeCallable OutboundBotClient::untagResourcesCallable(const UntagResourcesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->untagResources(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::WithdrawScriptReviewOutcome OutboundBotClient::withdrawScriptReview(const WithdrawScriptReviewRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/outboundbot/src/model/AssignJobsRequest.cc b/outboundbot/src/model/AssignJobsRequest.cc index 702cf2da7..0e48a84f2 100644 --- a/outboundbot/src/model/AssignJobsRequest.cc +++ b/outboundbot/src/model/AssignJobsRequest.cc @@ -64,6 +64,28 @@ void AssignJobsRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } +std::string AssignJobsRequest::getRosterType()const +{ + return rosterType_; +} + +void AssignJobsRequest::setRosterType(const std::string& rosterType) +{ + rosterType_ = rosterType; + setParameter("RosterType", rosterType); +} + +std::string AssignJobsRequest::getJobDataParsingTaskId()const +{ + return jobDataParsingTaskId_; +} + +void AssignJobsRequest::setJobDataParsingTaskId(const std::string& jobDataParsingTaskId) +{ + jobDataParsingTaskId_ = jobDataParsingTaskId; + setParameter("JobDataParsingTaskId", jobDataParsingTaskId); +} + std::string AssignJobsRequest::getStrategyJson()const { return strategyJson_; @@ -86,3 +108,14 @@ void AssignJobsRequest::setJobGroupId(const std::string& jobGroupId) setParameter("JobGroupId", jobGroupId); } +bool AssignJobsRequest::getIsAsynchrony()const +{ + return isAsynchrony_; +} + +void AssignJobsRequest::setIsAsynchrony(bool isAsynchrony) +{ + isAsynchrony_ = isAsynchrony; + setParameter("IsAsynchrony", isAsynchrony ? "true" : "false"); +} + diff --git a/outboundbot/src/model/AssignJobsResult.cc b/outboundbot/src/model/AssignJobsResult.cc index e316225ac..e82782f87 100644 --- a/outboundbot/src/model/AssignJobsResult.cc +++ b/outboundbot/src/model/AssignJobsResult.cc @@ -39,6 +39,9 @@ void AssignJobsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allJobsId = value["JobsId"]["JobsId"]; + for (const auto &item : allJobsId) + jobsId_.push_back(item.asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) @@ -52,6 +55,11 @@ void AssignJobsResult::parse(const std::string &payload) } +std::vector AssignJobsResult::getJobsId()const +{ + return jobsId_; +} + std::string AssignJobsResult::getJobGroupId()const { return jobGroupId_; diff --git a/outboundbot/src/model/ChangeResourceGroupRequest.cc b/outboundbot/src/model/ChangeResourceGroupRequest.cc new file mode 100644 index 000000000..97476694f --- /dev/null +++ b/outboundbot/src/model/ChangeResourceGroupRequest.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 + +using AlibabaCloud::OutboundBot::Model::ChangeResourceGroupRequest; + +ChangeResourceGroupRequest::ChangeResourceGroupRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "ChangeResourceGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +ChangeResourceGroupRequest::~ChangeResourceGroupRequest() +{} + +std::string ChangeResourceGroupRequest::getResourceId()const +{ + return resourceId_; +} + +void ChangeResourceGroupRequest::setResourceId(const std::string& resourceId) +{ + resourceId_ = resourceId; + setParameter("ResourceId", resourceId); +} + +std::string ChangeResourceGroupRequest::getNewResourceGroupId()const +{ + return newResourceGroupId_; +} + +void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId) +{ + newResourceGroupId_ = newResourceGroupId; + setParameter("NewResourceGroupId", newResourceGroupId); +} + diff --git a/outboundbot/src/model/ChangeResourceGroupResult.cc b/outboundbot/src/model/ChangeResourceGroupResult.cc new file mode 100644 index 000000000..f7f503d25 --- /dev/null +++ b/outboundbot/src/model/ChangeResourceGroupResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +ChangeResourceGroupResult::ChangeResourceGroupResult() : + ServiceResult() +{} + +ChangeResourceGroupResult::ChangeResourceGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ChangeResourceGroupResult::~ChangeResourceGroupResult() +{} + +void ChangeResourceGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ChangeResourceGroupResult::getMessage()const +{ + return message_; +} + +int ChangeResourceGroupResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ChangeResourceGroupResult::getCode()const +{ + return code_; +} + +bool ChangeResourceGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/CreateBatchRepeatJobRequest.cc b/outboundbot/src/model/CreateBatchRepeatJobRequest.cc new file mode 100644 index 000000000..6c5e7e80b --- /dev/null +++ b/outboundbot/src/model/CreateBatchRepeatJobRequest.cc @@ -0,0 +1,119 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateBatchRepeatJobRequest; + +CreateBatchRepeatJobRequest::CreateBatchRepeatJobRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "CreateBatchRepeatJob") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateBatchRepeatJobRequest::~CreateBatchRepeatJobRequest() +{} + +std::string CreateBatchRepeatJobRequest::getDescription()const +{ + return description_; +} + +void CreateBatchRepeatJobRequest::setDescription(const std::string& description) +{ + description_ = description; + setParameter("Description", description); +} + +std::string CreateBatchRepeatJobRequest::getScriptId()const +{ + return scriptId_; +} + +void CreateBatchRepeatJobRequest::setScriptId(const std::string& scriptId) +{ + scriptId_ = scriptId; + setParameter("ScriptId", scriptId); +} + +std::vector CreateBatchRepeatJobRequest::getCallingNumber()const +{ + return callingNumber_; +} + +void CreateBatchRepeatJobRequest::setCallingNumber(const std::vector& callingNumber) +{ + callingNumber_ = callingNumber; + for(int dep1 = 0; dep1!= callingNumber.size(); dep1++) { + setParameter("CallingNumber."+ std::to_string(dep1), callingNumber.at(dep1)); + } +} + +std::string CreateBatchRepeatJobRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateBatchRepeatJobRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateBatchRepeatJobRequest::getFilterStatus()const +{ + return filterStatus_; +} + +void CreateBatchRepeatJobRequest::setFilterStatus(const std::string& filterStatus) +{ + filterStatus_ = filterStatus; + setParameter("FilterStatus", filterStatus); +} + +std::string CreateBatchRepeatJobRequest::getStrategyJson()const +{ + return strategyJson_; +} + +void CreateBatchRepeatJobRequest::setStrategyJson(const std::string& strategyJson) +{ + strategyJson_ = strategyJson; + setParameter("StrategyJson", strategyJson); +} + +std::string CreateBatchRepeatJobRequest::getName()const +{ + return name_; +} + +void CreateBatchRepeatJobRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + +std::string CreateBatchRepeatJobRequest::getSourceGroupId()const +{ + return sourceGroupId_; +} + +void CreateBatchRepeatJobRequest::setSourceGroupId(const std::string& sourceGroupId) +{ + sourceGroupId_ = sourceGroupId; + setParameter("SourceGroupId", sourceGroupId); +} + diff --git a/outboundbot/src/model/CreateBatchRepeatJobResult.cc b/outboundbot/src/model/CreateBatchRepeatJobResult.cc new file mode 100644 index 000000000..3986c0d2d --- /dev/null +++ b/outboundbot/src/model/CreateBatchRepeatJobResult.cc @@ -0,0 +1,80 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +CreateBatchRepeatJobResult::CreateBatchRepeatJobResult() : + ServiceResult() +{} + +CreateBatchRepeatJobResult::CreateBatchRepeatJobResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateBatchRepeatJobResult::~CreateBatchRepeatJobResult() +{} + +void CreateBatchRepeatJobResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto jobGroupNode = value["JobGroup"]; + if(!jobGroupNode["Id"].isNull()) + jobGroup_.id = jobGroupNode["Id"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +CreateBatchRepeatJobResult::JobGroup CreateBatchRepeatJobResult::getJobGroup()const +{ + return jobGroup_; +} + +std::string CreateBatchRepeatJobResult::getMessage()const +{ + return message_; +} + +int CreateBatchRepeatJobResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateBatchRepeatJobResult::getCode()const +{ + return code_; +} + +bool CreateBatchRepeatJobResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/CreateInstanceRequest.cc b/outboundbot/src/model/CreateInstanceRequest.cc index a32d70c8c..d8fbf5b74 100644 --- a/outboundbot/src/model/CreateInstanceRequest.cc +++ b/outboundbot/src/model/CreateInstanceRequest.cc @@ -49,6 +49,17 @@ void CreateInstanceRequest::setSecretKey(const std::string& secretKey) setParameter("SecretKey", secretKey); } +std::string CreateInstanceRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void CreateInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + std::string CreateInstanceRequest::getEndpoint()const { return endpoint_; diff --git a/outboundbot/src/model/CreateInstanceResult.cc b/outboundbot/src/model/CreateInstanceResult.cc index 6b3c1f551..148ce61a9 100644 --- a/outboundbot/src/model/CreateInstanceResult.cc +++ b/outboundbot/src/model/CreateInstanceResult.cc @@ -52,15 +52,23 @@ void CreateInstanceResult::parse(const std::string &payload) instance_.instanceName = instanceNode["InstanceName"].asString(); if(!instanceNode["MaxConcurrentConversation"].isNull()) instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); - if(!instanceNode["Owner"].isNull()) - instance_.owner = instanceNode["Owner"].asString(); if(!instanceNode["NluServiceType"].isNull()) instance_.nluServiceType = instanceNode["NluServiceType"].asString(); + if(!instanceNode["Owner"].isNull()) + instance_.owner = instanceNode["Owner"].asString(); + if(!instanceNode["CreatorId"].isNull()) + instance_.creatorId = std::stol(instanceNode["CreatorId"].asString()); + if(!instanceNode["CreatorName"].isNull()) + instance_.creatorName = instanceNode["CreatorName"].asString(); + if(!instanceNode["OwnerName"].isNull()) + instance_.ownerName = instanceNode["OwnerName"].asString(); + if(!instanceNode["ResourceGroupId"].isNull()) + instance_.resourceGroupId = instanceNode["ResourceGroupId"].asString(); auto nluProfileNode = instanceNode["NluProfile"]; - if(!nluProfileNode["Endpoint"].isNull()) - instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); if(!nluProfileNode["AccessKey"].isNull()) instance_.nluProfile.accessKey = nluProfileNode["AccessKey"].asString(); + if(!nluProfileNode["Endpoint"].isNull()) + instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); if(!nluProfileNode["SecretKey"].isNull()) instance_.nluProfile.secretKey = nluProfileNode["SecretKey"].asString(); if(!value["Code"].isNull()) diff --git a/outboundbot/src/model/CreateJobDataParsingTaskRequest.cc b/outboundbot/src/model/CreateJobDataParsingTaskRequest.cc new file mode 100644 index 000000000..6dc227d5e --- /dev/null +++ b/outboundbot/src/model/CreateJobDataParsingTaskRequest.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 + +using AlibabaCloud::OutboundBot::Model::CreateJobDataParsingTaskRequest; + +CreateJobDataParsingTaskRequest::CreateJobDataParsingTaskRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobDataParsingTask") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateJobDataParsingTaskRequest::~CreateJobDataParsingTaskRequest() +{} + +std::string CreateJobDataParsingTaskRequest::getJobFilePath()const +{ + return jobFilePath_; +} + +void CreateJobDataParsingTaskRequest::setJobFilePath(const std::string& jobFilePath) +{ + jobFilePath_ = jobFilePath; + setParameter("JobFilePath", jobFilePath); +} + +std::string CreateJobDataParsingTaskRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateJobDataParsingTaskRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/outboundbot/src/model/CreateJobDataParsingTaskResult.cc b/outboundbot/src/model/CreateJobDataParsingTaskResult.cc new file mode 100644 index 000000000..13c4242f4 --- /dev/null +++ b/outboundbot/src/model/CreateJobDataParsingTaskResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +CreateJobDataParsingTaskResult::CreateJobDataParsingTaskResult() : + ServiceResult() +{} + +CreateJobDataParsingTaskResult::CreateJobDataParsingTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateJobDataParsingTaskResult::~CreateJobDataParsingTaskResult() +{} + +void CreateJobDataParsingTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["JobDataParsingTaskId"].isNull()) + jobDataParsingTaskId_ = value["JobDataParsingTaskId"].asString(); + +} + +std::string CreateJobDataParsingTaskResult::getJobDataParsingTaskId()const +{ + return jobDataParsingTaskId_; +} + +std::string CreateJobDataParsingTaskResult::getMessage()const +{ + return message_; +} + +int CreateJobDataParsingTaskResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateJobDataParsingTaskResult::getCode()const +{ + return code_; +} + +bool CreateJobDataParsingTaskResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/CreateJobGroupExportTaskRequest.cc b/outboundbot/src/model/CreateJobGroupExportTaskRequest.cc new file mode 100644 index 000000000..511be6748 --- /dev/null +++ b/outboundbot/src/model/CreateJobGroupExportTaskRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateJobGroupExportTaskRequest; + +CreateJobGroupExportTaskRequest::CreateJobGroupExportTaskRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobGroupExportTask") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateJobGroupExportTaskRequest::~CreateJobGroupExportTaskRequest() +{} + +std::string CreateJobGroupExportTaskRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateJobGroupExportTaskRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string CreateJobGroupExportTaskRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void CreateJobGroupExportTaskRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + +std::vector CreateJobGroupExportTaskRequest::getOption()const +{ + return option_; +} + +void CreateJobGroupExportTaskRequest::setOption(const std::vector& option) +{ + option_ = option; + for(int dep1 = 0; dep1!= option.size(); dep1++) { + setParameter("Option."+ std::to_string(dep1), option.at(dep1)); + } +} + diff --git a/outboundbot/src/model/CreateJobGroupExportTaskResult.cc b/outboundbot/src/model/CreateJobGroupExportTaskResult.cc new file mode 100644 index 000000000..a2cdfcac3 --- /dev/null +++ b/outboundbot/src/model/CreateJobGroupExportTaskResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +CreateJobGroupExportTaskResult::CreateJobGroupExportTaskResult() : + ServiceResult() +{} + +CreateJobGroupExportTaskResult::CreateJobGroupExportTaskResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateJobGroupExportTaskResult::~CreateJobGroupExportTaskResult() +{} + +void CreateJobGroupExportTaskResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["TaskId"].isNull()) + taskId_ = value["TaskId"].asString(); + +} + +std::string CreateJobGroupExportTaskResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateJobGroupExportTaskResult::getMessage()const +{ + return message_; +} + +int CreateJobGroupExportTaskResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string CreateJobGroupExportTaskResult::getCode()const +{ + return code_; +} + +bool CreateJobGroupExportTaskResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/CreateJobGroupResult.cc b/outboundbot/src/model/CreateJobGroupResult.cc index 1cf2a56af..2237e7da3 100644 --- a/outboundbot/src/model/CreateJobGroupResult.cc +++ b/outboundbot/src/model/CreateJobGroupResult.cc @@ -42,6 +42,8 @@ void CreateJobGroupResult::parse(const std::string &payload) auto jobGroupNode = value["JobGroup"]; if(!jobGroupNode["CreationTime"].isNull()) jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString()); + if(!jobGroupNode["JobDataParsingTaskId"].isNull()) + jobGroup_.jobDataParsingTaskId = jobGroupNode["JobDataParsingTaskId"].asString(); if(!jobGroupNode["JobFilePath"].isNull()) jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString(); if(!jobGroupNode["JobGroupDescription"].isNull()) @@ -50,8 +52,23 @@ void CreateJobGroupResult::parse(const std::string &payload) jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString(); if(!jobGroupNode["JobGroupName"].isNull()) jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString(); + if(!jobGroupNode["ModifyTime"].isNull()) + jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString(); if(!jobGroupNode["ScenarioId"].isNull()) jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString(); + if(!jobGroupNode["ScriptName"].isNull()) + jobGroup_.scriptName = jobGroupNode["ScriptName"].asString(); + if(!jobGroupNode["ScriptVersion"].isNull()) + jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString(); + if(!jobGroupNode["Status"].isNull()) + jobGroup_.status = jobGroupNode["Status"].asString(); + auto exportProgressNode = jobGroupNode["ExportProgress"]; + if(!exportProgressNode["FileHttpUrl"].isNull()) + jobGroup_.exportProgress.fileHttpUrl = exportProgressNode["FileHttpUrl"].asString(); + if(!exportProgressNode["Progress"].isNull()) + jobGroup_.exportProgress.progress = exportProgressNode["Progress"].asString(); + if(!exportProgressNode["Status"].isNull()) + jobGroup_.exportProgress.status = exportProgressNode["Status"].asString(); auto strategyNode = jobGroupNode["Strategy"]; if(!strategyNode["Customized"].isNull()) jobGroup_.strategy.customized = strategyNode["Customized"].asString(); diff --git a/outboundbot/src/model/DeleteContactBlockListRequest.cc b/outboundbot/src/model/DeleteContactBlockListRequest.cc new file mode 100644 index 000000000..d063525d4 --- /dev/null +++ b/outboundbot/src/model/DeleteContactBlockListRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteContactBlockListRequest; + +DeleteContactBlockListRequest::DeleteContactBlockListRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "DeleteContactBlockList") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteContactBlockListRequest::~DeleteContactBlockListRequest() +{} + +std::string DeleteContactBlockListRequest::getContactBlockListId()const +{ + return contactBlockListId_; +} + +void DeleteContactBlockListRequest::setContactBlockListId(const std::string& contactBlockListId) +{ + contactBlockListId_ = contactBlockListId; + setParameter("ContactBlockListId", contactBlockListId); +} + +std::string DeleteContactBlockListRequest::get_Operator()const +{ + return _operator_; +} + +void DeleteContactBlockListRequest::set_Operator(const std::string& _operator) +{ + _operator_ = _operator; + setParameter("_Operator", _operator); +} + +std::string DeleteContactBlockListRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteContactBlockListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/outboundbot/src/model/DeleteContactBlockListResult.cc b/outboundbot/src/model/DeleteContactBlockListResult.cc new file mode 100644 index 000000000..7f44249ba --- /dev/null +++ b/outboundbot/src/model/DeleteContactBlockListResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +DeleteContactBlockListResult::DeleteContactBlockListResult() : + ServiceResult() +{} + +DeleteContactBlockListResult::DeleteContactBlockListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteContactBlockListResult::~DeleteContactBlockListResult() +{} + +void DeleteContactBlockListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["AffectedRows"].isNull()) + affectedRows_ = std::stoi(value["AffectedRows"].asString()); + +} + +std::string DeleteContactBlockListResult::getMessage()const +{ + return message_; +} + +int DeleteContactBlockListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +int DeleteContactBlockListResult::getAffectedRows()const +{ + return affectedRows_; +} + +std::string DeleteContactBlockListResult::getCode()const +{ + return code_; +} + +bool DeleteContactBlockListResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/DeleteContactWhiteListRequest.cc b/outboundbot/src/model/DeleteContactWhiteListRequest.cc new file mode 100644 index 000000000..5b189d94e --- /dev/null +++ b/outboundbot/src/model/DeleteContactWhiteListRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteContactWhiteListRequest; + +DeleteContactWhiteListRequest::DeleteContactWhiteListRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "DeleteContactWhiteList") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteContactWhiteListRequest::~DeleteContactWhiteListRequest() +{} + +std::string DeleteContactWhiteListRequest::get_Operator()const +{ + return _operator_; +} + +void DeleteContactWhiteListRequest::set_Operator(const std::string& _operator) +{ + _operator_ = _operator; + setParameter("_Operator", _operator); +} + +std::string DeleteContactWhiteListRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteContactWhiteListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DeleteContactWhiteListRequest::getContactWhiteListId()const +{ + return contactWhiteListId_; +} + +void DeleteContactWhiteListRequest::setContactWhiteListId(const std::string& contactWhiteListId) +{ + contactWhiteListId_ = contactWhiteListId; + setParameter("ContactWhiteListId", contactWhiteListId); +} + diff --git a/outboundbot/src/model/DeleteContactWhiteListResult.cc b/outboundbot/src/model/DeleteContactWhiteListResult.cc new file mode 100644 index 000000000..a1d2dc352 --- /dev/null +++ b/outboundbot/src/model/DeleteContactWhiteListResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +DeleteContactWhiteListResult::DeleteContactWhiteListResult() : + ServiceResult() +{} + +DeleteContactWhiteListResult::DeleteContactWhiteListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteContactWhiteListResult::~DeleteContactWhiteListResult() +{} + +void DeleteContactWhiteListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["AffectedRows"].isNull()) + affectedRows_ = std::stoi(value["AffectedRows"].asString()); + +} + +std::string DeleteContactWhiteListResult::getMessage()const +{ + return message_; +} + +int DeleteContactWhiteListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +int DeleteContactWhiteListResult::getAffectedRows()const +{ + return affectedRows_; +} + +std::string DeleteContactWhiteListResult::getCode()const +{ + return code_; +} + +bool DeleteContactWhiteListResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/DescribeDialogueNodeStatisticsRequest.cc b/outboundbot/src/model/DescribeDialogueNodeStatisticsRequest.cc new file mode 100644 index 000000000..7cab0e992 --- /dev/null +++ b/outboundbot/src/model/DescribeDialogueNodeStatisticsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeDialogueNodeStatisticsRequest; + +DescribeDialogueNodeStatisticsRequest::DescribeDialogueNodeStatisticsRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "DescribeDialogueNodeStatistics") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeDialogueNodeStatisticsRequest::~DescribeDialogueNodeStatisticsRequest() +{} + +std::string DescribeDialogueNodeStatisticsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeDialogueNodeStatisticsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeDialogueNodeStatisticsRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void DescribeDialogueNodeStatisticsRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + +int DescribeDialogueNodeStatisticsRequest::getLimit()const +{ + return limit_; +} + +void DescribeDialogueNodeStatisticsRequest::setLimit(int limit) +{ + limit_ = limit; + setParameter("Limit", std::to_string(limit)); +} + diff --git a/outboundbot/src/model/DescribeDialogueNodeStatisticsResult.cc b/outboundbot/src/model/DescribeDialogueNodeStatisticsResult.cc new file mode 100644 index 000000000..d8bacf1fa --- /dev/null +++ b/outboundbot/src/model/DescribeDialogueNodeStatisticsResult.cc @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +DescribeDialogueNodeStatisticsResult::DescribeDialogueNodeStatisticsResult() : + ServiceResult() +{} + +DescribeDialogueNodeStatisticsResult::DescribeDialogueNodeStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDialogueNodeStatisticsResult::~DescribeDialogueNodeStatisticsResult() +{} + +void DescribeDialogueNodeStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allNoAnswerDialogueNodesNode = value["NoAnswerDialogueNodes"]["NoAnswerDialogueNode"]; + for (auto valueNoAnswerDialogueNodesNoAnswerDialogueNode : allNoAnswerDialogueNodesNode) + { + NoAnswerDialogueNode noAnswerDialogueNodesObject; + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["Id"].isNull()) + noAnswerDialogueNodesObject.id = valueNoAnswerDialogueNodesNoAnswerDialogueNode["Id"].asString(); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["InstanceId"].isNull()) + noAnswerDialogueNodesObject.instanceId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["InstanceId"].asString(); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["GroupId"].isNull()) + noAnswerDialogueNodesObject.groupId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["GroupId"].asString(); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeId"].isNull()) + noAnswerDialogueNodesObject.nodeId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeId"].asString(); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeName"].isNull()) + noAnswerDialogueNodesObject.nodeName = valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeName"].asString(); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["HitNum"].isNull()) + noAnswerDialogueNodesObject.hitNum = std::stoi(valueNoAnswerDialogueNodesNoAnswerDialogueNode["HitNum"].asString()); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["HangUpNum"].isNull()) + noAnswerDialogueNodesObject.hangUpNum = std::stoi(valueNoAnswerDialogueNodesNoAnswerDialogueNode["HangUpNum"].asString()); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["NoAnswerNum"].isNull()) + noAnswerDialogueNodesObject.noAnswerNum = std::stoi(valueNoAnswerDialogueNodesNoAnswerDialogueNode["NoAnswerNum"].asString()); + noAnswerDialogueNodes_.push_back(noAnswerDialogueNodesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["TotalCompleted"].isNull()) + totalCompleted_ = std::stoi(value["TotalCompleted"].asString()); + +} + +std::string DescribeDialogueNodeStatisticsResult::getMessage()const +{ + return message_; +} + +std::vector DescribeDialogueNodeStatisticsResult::getNoAnswerDialogueNodes()const +{ + return noAnswerDialogueNodes_; +} + +std::string DescribeDialogueNodeStatisticsResult::getInstanceId()const +{ + return instanceId_; +} + +int DescribeDialogueNodeStatisticsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +int DescribeDialogueNodeStatisticsResult::getTotalCompleted()const +{ + return totalCompleted_; +} + +std::string DescribeDialogueNodeStatisticsResult::getCode()const +{ + return code_; +} + +bool DescribeDialogueNodeStatisticsResult::getSuccess()const +{ + return success_; +} + +std::string DescribeDialogueNodeStatisticsResult::getGroupId()const +{ + return groupId_; +} + diff --git a/outboundbot/src/model/DescribeDsReportsRequest.cc b/outboundbot/src/model/DescribeDsReportsRequest.cc new file mode 100644 index 000000000..a640ef6bb --- /dev/null +++ b/outboundbot/src/model/DescribeDsReportsRequest.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 + +using AlibabaCloud::OutboundBot::Model::DescribeDsReportsRequest; + +DescribeDsReportsRequest::DescribeDsReportsRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "DescribeDsReports") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeDsReportsRequest::~DescribeDsReportsRequest() +{} + +std::string DescribeDsReportsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeDsReportsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeDsReportsRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void DescribeDsReportsRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/outboundbot/src/model/DescribeDsReportsResult.cc b/outboundbot/src/model/DescribeDsReportsResult.cc new file mode 100644 index 000000000..3b95f11e7 --- /dev/null +++ b/outboundbot/src/model/DescribeDsReportsResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +DescribeDsReportsResult::DescribeDsReportsResult() : + ServiceResult() +{} + +DescribeDsReportsResult::DescribeDsReportsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeDsReportsResult::~DescribeDsReportsResult() +{} + +void DescribeDsReportsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["DsReports"].isNull()) + dsReports_ = value["DsReports"].asString(); + +} + +std::string DescribeDsReportsResult::getMessage()const +{ + return message_; +} + +int DescribeDsReportsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DescribeDsReportsResult::getDsReports()const +{ + return dsReports_; +} + +std::string DescribeDsReportsResult::getCode()const +{ + return code_; +} + +bool DescribeDsReportsResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/DescribeGroupExecutingInfoRequest.cc b/outboundbot/src/model/DescribeGroupExecutingInfoRequest.cc new file mode 100644 index 000000000..6bdfb7377 --- /dev/null +++ b/outboundbot/src/model/DescribeGroupExecutingInfoRequest.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 + +using AlibabaCloud::OutboundBot::Model::DescribeGroupExecutingInfoRequest; + +DescribeGroupExecutingInfoRequest::DescribeGroupExecutingInfoRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "DescribeGroupExecutingInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGroupExecutingInfoRequest::~DescribeGroupExecutingInfoRequest() +{} + +std::string DescribeGroupExecutingInfoRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeGroupExecutingInfoRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeGroupExecutingInfoRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void DescribeGroupExecutingInfoRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/outboundbot/src/model/DescribeGroupExecutingInfoResult.cc b/outboundbot/src/model/DescribeGroupExecutingInfoResult.cc new file mode 100644 index 000000000..ac8200adf --- /dev/null +++ b/outboundbot/src/model/DescribeGroupExecutingInfoResult.cc @@ -0,0 +1,127 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +DescribeGroupExecutingInfoResult::DescribeGroupExecutingInfoResult() : + ServiceResult() +{} + +DescribeGroupExecutingInfoResult::DescribeGroupExecutingInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGroupExecutingInfoResult::~DescribeGroupExecutingInfoResult() +{} + +void DescribeGroupExecutingInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto executingInfoNode = value["ExecutingInfo"]; + if(!executingInfoNode["StartTime"].isNull()) + executingInfo_.startTime = std::stol(executingInfoNode["StartTime"].asString()); + if(!executingInfoNode["EndTime"].isNull()) + executingInfo_.endTime = std::stol(executingInfoNode["EndTime"].asString()); + if(!executingInfoNode["CallFailedNum"].isNull()) + executingInfo_.callFailedNum = std::stoi(executingInfoNode["CallFailedNum"].asString()); + if(!executingInfoNode["CallNum"].isNull()) + executingInfo_.callNum = std::stoi(executingInfoNode["CallNum"].asString()); + if(!executingInfoNode["CreatorName"].isNull()) + executingInfo_.creatorName = executingInfoNode["CreatorName"].asString(); + if(!executingInfoNode["FinishedNum"].isNull()) + executingInfo_.finishedNum = std::stoi(executingInfoNode["FinishedNum"].asString()); + if(!executingInfoNode["HangUpByClientNum"].isNull()) + executingInfo_.hangUpByClientNum = std::stoi(executingInfoNode["HangUpByClientNum"].asString()); + if(!executingInfoNode["TransferByIntentNum"].isNull()) + executingInfo_.transferByIntentNum = std::stoi(executingInfoNode["TransferByIntentNum"].asString()); + if(!executingInfoNode["TransferByNoAnswer"].isNull()) + executingInfo_.transferByNoAnswer = std::stoi(executingInfoNode["TransferByNoAnswer"].asString()); + auto jobsProgressNode = executingInfoNode["JobsProgress"]; + if(!jobsProgressNode["TotalJobs"].isNull()) + executingInfo_.jobsProgress.totalJobs = std::stoi(jobsProgressNode["TotalJobs"].asString()); + if(!jobsProgressNode["TotalCompletedNum"].isNull()) + executingInfo_.jobsProgress.totalCompletedNum = std::stoi(jobsProgressNode["TotalCompletedNum"].asString()); + if(!jobsProgressNode["FailedNum"].isNull()) + executingInfo_.jobsProgress.failedNum = std::stoi(jobsProgressNode["FailedNum"].asString()); + if(!jobsProgressNode["CancelledNum"].isNull()) + executingInfo_.jobsProgress.cancelledNum = std::stoi(jobsProgressNode["CancelledNum"].asString()); + if(!jobsProgressNode["TotalNotAnsweredNum"].isNull()) + executingInfo_.jobsProgress.totalNotAnsweredNum = std::stoi(jobsProgressNode["TotalNotAnsweredNum"].asString()); + if(!jobsProgressNode["ExecutingNum"].isNull()) + executingInfo_.jobsProgress.executingNum = std::stoi(jobsProgressNode["ExecutingNum"].asString()); + if(!jobsProgressNode["PausedNum"].isNull()) + executingInfo_.jobsProgress.pausedNum = std::stoi(jobsProgressNode["PausedNum"].asString()); + if(!jobsProgressNode["SchedulingNum"].isNull()) + executingInfo_.jobsProgress.schedulingNum = std::stoi(jobsProgressNode["SchedulingNum"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + +} + +std::string DescribeGroupExecutingInfoResult::getMessage()const +{ + return message_; +} + +std::string DescribeGroupExecutingInfoResult::getInstanceId()const +{ + return instanceId_; +} + +DescribeGroupExecutingInfoResult::ExecutingInfo DescribeGroupExecutingInfoResult::getExecutingInfo()const +{ + return executingInfo_; +} + +int DescribeGroupExecutingInfoResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DescribeGroupExecutingInfoResult::getCode()const +{ + return code_; +} + +bool DescribeGroupExecutingInfoResult::getSuccess()const +{ + return success_; +} + +std::string DescribeGroupExecutingInfoResult::getGroupId()const +{ + return groupId_; +} + diff --git a/outboundbot/src/model/DescribeInstanceResult.cc b/outboundbot/src/model/DescribeInstanceResult.cc index 720802b7c..7b0980e2f 100644 --- a/outboundbot/src/model/DescribeInstanceResult.cc +++ b/outboundbot/src/model/DescribeInstanceResult.cc @@ -52,15 +52,23 @@ void DescribeInstanceResult::parse(const std::string &payload) instance_.instanceName = instanceNode["InstanceName"].asString(); if(!instanceNode["MaxConcurrentConversation"].isNull()) instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); - if(!instanceNode["Owner"].isNull()) - instance_.owner = instanceNode["Owner"].asString(); if(!instanceNode["NluServiceType"].isNull()) instance_.nluServiceType = instanceNode["NluServiceType"].asString(); + if(!instanceNode["Owner"].isNull()) + instance_.owner = instanceNode["Owner"].asString(); + if(!instanceNode["CreatorId"].isNull()) + instance_.creatorId = std::stol(instanceNode["CreatorId"].asString()); + if(!instanceNode["CreatorName"].isNull()) + instance_.creatorName = instanceNode["CreatorName"].asString(); + if(!instanceNode["OwnerName"].isNull()) + instance_.ownerName = instanceNode["OwnerName"].asString(); + if(!instanceNode["ResourceGroupId"].isNull()) + instance_.resourceGroupId = instanceNode["ResourceGroupId"].asString(); auto nluProfileNode = instanceNode["NluProfile"]; - if(!nluProfileNode["Endpoint"].isNull()) - instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); if(!nluProfileNode["AccessKey"].isNull()) instance_.nluProfile.accessKey = nluProfileNode["AccessKey"].asString(); + if(!nluProfileNode["Endpoint"].isNull()) + instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); if(!nluProfileNode["SecretKey"].isNull()) instance_.nluProfile.secretKey = nluProfileNode["SecretKey"].asString(); if(!value["Code"].isNull()) diff --git a/outboundbot/src/model/DescribeIntentStatisticsRequest.cc b/outboundbot/src/model/DescribeIntentStatisticsRequest.cc new file mode 100644 index 000000000..cc22c8a65 --- /dev/null +++ b/outboundbot/src/model/DescribeIntentStatisticsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeIntentStatisticsRequest; + +DescribeIntentStatisticsRequest::DescribeIntentStatisticsRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "DescribeIntentStatistics") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeIntentStatisticsRequest::~DescribeIntentStatisticsRequest() +{} + +std::string DescribeIntentStatisticsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeIntentStatisticsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeIntentStatisticsRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void DescribeIntentStatisticsRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + +int DescribeIntentStatisticsRequest::getLimit()const +{ + return limit_; +} + +void DescribeIntentStatisticsRequest::setLimit(int limit) +{ + limit_ = limit; + setParameter("Limit", std::to_string(limit)); +} + diff --git a/outboundbot/src/model/DescribeIntentStatisticsResult.cc b/outboundbot/src/model/DescribeIntentStatisticsResult.cc new file mode 100644 index 000000000..d3211fb75 --- /dev/null +++ b/outboundbot/src/model/DescribeIntentStatisticsResult.cc @@ -0,0 +1,163 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +DescribeIntentStatisticsResult::DescribeIntentStatisticsResult() : + ServiceResult() +{} + +DescribeIntentStatisticsResult::DescribeIntentStatisticsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeIntentStatisticsResult::~DescribeIntentStatisticsResult() +{} + +void DescribeIntentStatisticsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProcessIntentsNode = value["ProcessIntents"]["IntentStatisticsItem"]; + for (auto valueProcessIntentsIntentStatisticsItem : allProcessIntentsNode) + { + IntentStatisticsItem processIntentsObject; + if(!valueProcessIntentsIntentStatisticsItem["InstanceId"].isNull()) + processIntentsObject.instanceId = valueProcessIntentsIntentStatisticsItem["InstanceId"].asString(); + if(!valueProcessIntentsIntentStatisticsItem["GroupId"].isNull()) + processIntentsObject.groupId = valueProcessIntentsIntentStatisticsItem["GroupId"].asString(); + if(!valueProcessIntentsIntentStatisticsItem["IntentId"].isNull()) + processIntentsObject.intentId = valueProcessIntentsIntentStatisticsItem["IntentId"].asString(); + if(!valueProcessIntentsIntentStatisticsItem["IntentName"].isNull()) + processIntentsObject.intentName = valueProcessIntentsIntentStatisticsItem["IntentName"].asString(); + if(!valueProcessIntentsIntentStatisticsItem["Type"].isNull()) + processIntentsObject.type = valueProcessIntentsIntentStatisticsItem["Type"].asString(); + if(!valueProcessIntentsIntentStatisticsItem["HitNum"].isNull()) + processIntentsObject.hitNum = std::stoi(valueProcessIntentsIntentStatisticsItem["HitNum"].asString()); + if(!valueProcessIntentsIntentStatisticsItem["HitAfterNoAnswer"].isNull()) + processIntentsObject.hitAfterNoAnswer = std::stoi(valueProcessIntentsIntentStatisticsItem["HitAfterNoAnswer"].asString()); + processIntents_.push_back(processIntentsObject); + } + auto allGlobalIntentsNode = value["GlobalIntents"]["IntentStatisticsItem"]; + for (auto valueGlobalIntentsIntentStatisticsItem : allGlobalIntentsNode) + { + IntentStatisticsItem globalIntentsObject; + if(!valueGlobalIntentsIntentStatisticsItem["InstanceId"].isNull()) + globalIntentsObject.instanceId = valueGlobalIntentsIntentStatisticsItem["InstanceId"].asString(); + if(!valueGlobalIntentsIntentStatisticsItem["GroupId"].isNull()) + globalIntentsObject.groupId = valueGlobalIntentsIntentStatisticsItem["GroupId"].asString(); + if(!valueGlobalIntentsIntentStatisticsItem["IntentId"].isNull()) + globalIntentsObject.intentId = valueGlobalIntentsIntentStatisticsItem["IntentId"].asString(); + if(!valueGlobalIntentsIntentStatisticsItem["IntentName"].isNull()) + globalIntentsObject.intentName = valueGlobalIntentsIntentStatisticsItem["IntentName"].asString(); + if(!valueGlobalIntentsIntentStatisticsItem["Type"].isNull()) + globalIntentsObject.type = valueGlobalIntentsIntentStatisticsItem["Type"].asString(); + if(!valueGlobalIntentsIntentStatisticsItem["HitNum"].isNull()) + globalIntentsObject.hitNum = std::stoi(valueGlobalIntentsIntentStatisticsItem["HitNum"].asString()); + if(!valueGlobalIntentsIntentStatisticsItem["HitAfterNoAnswer"].isNull()) + globalIntentsObject.hitAfterNoAnswer = std::stoi(valueGlobalIntentsIntentStatisticsItem["HitAfterNoAnswer"].asString()); + globalIntents_.push_back(globalIntentsObject); + } + auto allIntentsAfterNoAnswerNode = value["IntentsAfterNoAnswer"]["IntentStatisticsItem"]; + for (auto valueIntentsAfterNoAnswerIntentStatisticsItem : allIntentsAfterNoAnswerNode) + { + IntentStatisticsItem1 intentsAfterNoAnswerObject; + if(!valueIntentsAfterNoAnswerIntentStatisticsItem["InstanceId"].isNull()) + intentsAfterNoAnswerObject.instanceId = valueIntentsAfterNoAnswerIntentStatisticsItem["InstanceId"].asString(); + intentsAfterNoAnswer_.push_back(intentsAfterNoAnswerObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].asString(); + if(!value["ProcessIntentNum"].isNull()) + processIntentNum_ = std::stoi(value["ProcessIntentNum"].asString()); + if(!value["GlobalIntentNum"].isNull()) + globalIntentNum_ = std::stoi(value["GlobalIntentNum"].asString()); + +} + +std::vector DescribeIntentStatisticsResult::getIntentsAfterNoAnswer()const +{ + return intentsAfterNoAnswer_; +} + +int DescribeIntentStatisticsResult::getGlobalIntentNum()const +{ + return globalIntentNum_; +} + +std::vector DescribeIntentStatisticsResult::getProcessIntents()const +{ + return processIntents_; +} + +std::string DescribeIntentStatisticsResult::getMessage()const +{ + return message_; +} + +std::string DescribeIntentStatisticsResult::getInstanceId()const +{ + return instanceId_; +} + +int DescribeIntentStatisticsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DescribeIntentStatisticsResult::getCode()const +{ + return code_; +} + +int DescribeIntentStatisticsResult::getProcessIntentNum()const +{ + return processIntentNum_; +} + +std::vector DescribeIntentStatisticsResult::getGlobalIntents()const +{ + return globalIntents_; +} + +bool DescribeIntentStatisticsResult::getSuccess()const +{ + return success_; +} + +std::string DescribeIntentStatisticsResult::getGroupId()const +{ + return groupId_; +} + diff --git a/outboundbot/src/model/DescribeJobDataParsingTaskProgressRequest.cc b/outboundbot/src/model/DescribeJobDataParsingTaskProgressRequest.cc new file mode 100644 index 000000000..d821233a4 --- /dev/null +++ b/outboundbot/src/model/DescribeJobDataParsingTaskProgressRequest.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 + +using AlibabaCloud::OutboundBot::Model::DescribeJobDataParsingTaskProgressRequest; + +DescribeJobDataParsingTaskProgressRequest::DescribeJobDataParsingTaskProgressRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobDataParsingTaskProgress") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeJobDataParsingTaskProgressRequest::~DescribeJobDataParsingTaskProgressRequest() +{} + +std::string DescribeJobDataParsingTaskProgressRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeJobDataParsingTaskProgressRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeJobDataParsingTaskProgressRequest::getJobDataParsingTaskId()const +{ + return jobDataParsingTaskId_; +} + +void DescribeJobDataParsingTaskProgressRequest::setJobDataParsingTaskId(const std::string& jobDataParsingTaskId) +{ + jobDataParsingTaskId_ = jobDataParsingTaskId; + setParameter("JobDataParsingTaskId", jobDataParsingTaskId); +} + diff --git a/outboundbot/src/model/DescribeJobDataParsingTaskProgressResult.cc b/outboundbot/src/model/DescribeJobDataParsingTaskProgressResult.cc new file mode 100644 index 000000000..aa9c8b448 --- /dev/null +++ b/outboundbot/src/model/DescribeJobDataParsingTaskProgressResult.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +DescribeJobDataParsingTaskProgressResult::DescribeJobDataParsingTaskProgressResult() : + ServiceResult() +{} + +DescribeJobDataParsingTaskProgressResult::DescribeJobDataParsingTaskProgressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeJobDataParsingTaskProgressResult::~DescribeJobDataParsingTaskProgressResult() +{} + +void DescribeJobDataParsingTaskProgressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto progressNode = value["Progress"]; + if(!progressNode["Status"].isNull()) + progress_.status = progressNode["Status"].asString(); + if(!progressNode["FailErrorCode"].isNull()) + progress_.failErrorCode = progressNode["FailErrorCode"].asString(); + if(!progressNode["FailReason"].isNull()) + progress_.failReason = progressNode["FailReason"].asString(); + if(!progressNode["TotalJobCount"].isNull()) + progress_.totalJobCount = std::stoi(progressNode["TotalJobCount"].asString()); + if(!progressNode["HandledJobCount"].isNull()) + progress_.handledJobCount = std::stoi(progressNode["HandledJobCount"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +DescribeJobDataParsingTaskProgressResult::Progress DescribeJobDataParsingTaskProgressResult::getProgress()const +{ + return progress_; +} + +std::string DescribeJobDataParsingTaskProgressResult::getMessage()const +{ + return message_; +} + +int DescribeJobDataParsingTaskProgressResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DescribeJobDataParsingTaskProgressResult::getCode()const +{ + return code_; +} + +bool DescribeJobDataParsingTaskProgressResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/DescribeJobGroupExportTaskProgressRequest.cc b/outboundbot/src/model/DescribeJobGroupExportTaskProgressRequest.cc new file mode 100644 index 000000000..9c4e67a81 --- /dev/null +++ b/outboundbot/src/model/DescribeJobGroupExportTaskProgressRequest.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 + +using AlibabaCloud::OutboundBot::Model::DescribeJobGroupExportTaskProgressRequest; + +DescribeJobGroupExportTaskProgressRequest::DescribeJobGroupExportTaskProgressRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobGroupExportTaskProgress") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeJobGroupExportTaskProgressRequest::~DescribeJobGroupExportTaskProgressRequest() +{} + +std::string DescribeJobGroupExportTaskProgressRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeJobGroupExportTaskProgressRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string DescribeJobGroupExportTaskProgressRequest::getTaskId()const +{ + return taskId_; +} + +void DescribeJobGroupExportTaskProgressRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/outboundbot/src/model/DescribeJobGroupExportTaskProgressResult.cc b/outboundbot/src/model/DescribeJobGroupExportTaskProgressResult.cc new file mode 100644 index 000000000..d223530b6 --- /dev/null +++ b/outboundbot/src/model/DescribeJobGroupExportTaskProgressResult.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +DescribeJobGroupExportTaskProgressResult::DescribeJobGroupExportTaskProgressResult() : + ServiceResult() +{} + +DescribeJobGroupExportTaskProgressResult::DescribeJobGroupExportTaskProgressResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeJobGroupExportTaskProgressResult::~DescribeJobGroupExportTaskProgressResult() +{} + +void DescribeJobGroupExportTaskProgressResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["FileHttpUrl"].isNull()) + fileHttpUrl_ = value["FileHttpUrl"].asString(); + if(!value["Progress"].isNull()) + progress_ = std::stof(value["Progress"].asString()); + +} + +float DescribeJobGroupExportTaskProgressResult::getProgress()const +{ + return progress_; +} + +std::string DescribeJobGroupExportTaskProgressResult::getMessage()const +{ + return message_; +} + +int DescribeJobGroupExportTaskProgressResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string DescribeJobGroupExportTaskProgressResult::getFileHttpUrl()const +{ + return fileHttpUrl_; +} + +std::string DescribeJobGroupExportTaskProgressResult::getCode()const +{ + return code_; +} + +bool DescribeJobGroupExportTaskProgressResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/DescribeJobGroupResult.cc b/outboundbot/src/model/DescribeJobGroupResult.cc index 0889a5720..5b1f9663c 100644 --- a/outboundbot/src/model/DescribeJobGroupResult.cc +++ b/outboundbot/src/model/DescribeJobGroupResult.cc @@ -42,6 +42,8 @@ void DescribeJobGroupResult::parse(const std::string &payload) auto jobGroupNode = value["JobGroup"]; if(!jobGroupNode["CreationTime"].isNull()) jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString()); + if(!jobGroupNode["JobDataParsingTaskId"].isNull()) + jobGroup_.jobDataParsingTaskId = jobGroupNode["JobDataParsingTaskId"].asString(); if(!jobGroupNode["JobFilePath"].isNull()) jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString(); if(!jobGroupNode["JobGroupDescription"].isNull()) @@ -50,12 +52,25 @@ void DescribeJobGroupResult::parse(const std::string &payload) jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString(); if(!jobGroupNode["JobGroupName"].isNull()) jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString(); + if(!jobGroupNode["ModifyTime"].isNull()) + jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString(); if(!jobGroupNode["ScenarioId"].isNull()) jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString(); if(!jobGroupNode["ScriptId"].isNull()) jobGroup_.scriptId = jobGroupNode["ScriptId"].asString(); if(!jobGroupNode["ScriptName"].isNull()) jobGroup_.scriptName = jobGroupNode["ScriptName"].asString(); + if(!jobGroupNode["ScriptVersion"].isNull()) + jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString(); + if(!jobGroupNode["Status"].isNull()) + jobGroup_.status = jobGroupNode["Status"].asString(); + auto exportProgressNode = jobGroupNode["ExportProgress"]; + if(!exportProgressNode["FileHttpUrl"].isNull()) + jobGroup_.exportProgress.fileHttpUrl = exportProgressNode["FileHttpUrl"].asString(); + if(!exportProgressNode["Progress"].isNull()) + jobGroup_.exportProgress.progress = exportProgressNode["Progress"].asString(); + if(!exportProgressNode["Status"].isNull()) + jobGroup_.exportProgress.status = exportProgressNode["Status"].asString(); auto progressNode = jobGroupNode["Progress"]; if(!progressNode["Cancelled"].isNull()) jobGroup_.progress.cancelled = std::stoi(progressNode["Cancelled"].asString()); @@ -139,6 +154,17 @@ void DescribeJobGroupResult::parse(const std::string &payload) auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; for (auto value : allRepeatDays) jobGroup_.strategy.repeatDays.push_back(value.asString()); + auto resultNode = jobGroupNode["Result"]; + if(!resultNode["NoInteractNum"].isNull()) + jobGroup_.result.noInteractNum = std::stoi(resultNode["NoInteractNum"].asString()); + if(!resultNode["FinishedNum"].isNull()) + jobGroup_.result.finishedNum = std::stoi(resultNode["FinishedNum"].asString()); + if(!resultNode["ClientHangupNum"].isNull()) + jobGroup_.result.clientHangupNum = std::stoi(resultNode["ClientHangupNum"].asString()); + if(!resultNode["TimeoutHangupNum"].isNull()) + jobGroup_.result.timeoutHangupNum = std::stoi(resultNode["TimeoutHangupNum"].asString()); + if(!resultNode["UnrecognizedNum"].isNull()) + jobGroup_.result.unrecognizedNum = std::stoi(resultNode["UnrecognizedNum"].asString()); auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"]; for (auto value : allCallingNumbers) jobGroup_.callingNumbers.push_back(value.asString()); diff --git a/outboundbot/src/model/DescribeJobResult.cc b/outboundbot/src/model/DescribeJobResult.cc index 7c9307381..f8dcaa562 100644 --- a/outboundbot/src/model/DescribeJobResult.cc +++ b/outboundbot/src/model/DescribeJobResult.cc @@ -58,6 +58,18 @@ void DescribeJobResult::parse(const std::string &payload) job_.strategyId = jobNode["StrategyId"].asString(); if(!jobNode["SystemPriority"].isNull()) job_.systemPriority = std::stoi(jobNode["SystemPriority"].asString()); + if(!jobNode["InstanceId"].isNull()) + job_.instanceId = jobNode["InstanceId"].asString(); + if(!jobNode["DsReport"].isNull()) + job_.dsReport = jobNode["DsReport"].asString(); + if(!jobNode["EndReason"].isNull()) + job_.endReason = std::stoi(jobNode["EndReason"].asString()); + if(!jobNode["ActualTime"].isNull()) + job_.actualTime = std::stol(jobNode["ActualTime"].asString()); + if(!jobNode["CalledNumber"].isNull()) + job_.calledNumber = jobNode["CalledNumber"].asString(); + if(!jobNode["NextExecutionTime"].isNull()) + job_.nextExecutionTime = std::stol(jobNode["NextExecutionTime"].asString()); auto allContactsNode = jobNode["Contacts"]["Contact"]; for (auto jobNodeContactsContact : allContactsNode) { @@ -130,6 +142,8 @@ void DescribeJobResult::parse(const std::string &payload) taskObject.status = jobNodeTasksTask["Status"].asString(); if(!jobNodeTasksTask["TaskId"].isNull()) taskObject.taskId = jobNodeTasksTask["TaskId"].asString(); + if(!jobNodeTasksTask["EndTime"].isNull()) + taskObject.endTime = std::stol(jobNodeTasksTask["EndTime"].asString()); auto allConversationNode = jobNodeTasksTask["Conversation"]["ConversationDetail"]; for (auto jobNodeTasksTaskConversationConversationDetail : allConversationNode) { @@ -140,6 +154,10 @@ void DescribeJobResult::parse(const std::string &payload) conversationObject.speaker = jobNodeTasksTaskConversationConversationDetail["Speaker"].asString(); if(!jobNodeTasksTaskConversationConversationDetail["Timestamp"].isNull()) conversationObject.timestamp = std::stol(jobNodeTasksTaskConversationConversationDetail["Timestamp"].asString()); + if(!jobNodeTasksTaskConversationConversationDetail["Action"].isNull()) + conversationObject.action = jobNodeTasksTaskConversationConversationDetail["Action"].asString(); + if(!jobNodeTasksTaskConversationConversationDetail["ActionParams"].isNull()) + conversationObject.actionParams = jobNodeTasksTaskConversationConversationDetail["ActionParams"].asString(); auto allSummary1Node = jobNodeTasksTaskConversationConversationDetail["Summary"]["SummaryItem"]; for (auto jobNodeTasksTaskConversationConversationDetailSummarySummaryItem : allSummary1Node) { diff --git a/outboundbot/src/model/DescribeScriptResult.cc b/outboundbot/src/model/DescribeScriptResult.cc index 400d7f1dc..6aa446277 100644 --- a/outboundbot/src/model/DescribeScriptResult.cc +++ b/outboundbot/src/model/DescribeScriptResult.cc @@ -60,6 +60,12 @@ void DescribeScriptResult::parse(const std::string &payload) script_.status = scriptNode["Status"].asString(); if(!scriptNode["UpdateTime"].isNull()) script_.updateTime = std::stol(scriptNode["UpdateTime"].asString()); + if(!scriptNode["ChatbotId"].isNull()) + script_.chatbotId = scriptNode["ChatbotId"].asString(); + if(!scriptNode["AsrConfig"].isNull()) + script_.asrConfig = scriptNode["AsrConfig"].asString(); + if(!scriptNode["TtsConfig"].isNull()) + script_.ttsConfig = scriptNode["TtsConfig"].asString(); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) diff --git a/outboundbot/src/model/GetAfterAnswerDelayPlaybackRequest.cc b/outboundbot/src/model/GetAfterAnswerDelayPlaybackRequest.cc new file mode 100644 index 000000000..ed610557a --- /dev/null +++ b/outboundbot/src/model/GetAfterAnswerDelayPlaybackRequest.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 + +using AlibabaCloud::OutboundBot::Model::GetAfterAnswerDelayPlaybackRequest; + +GetAfterAnswerDelayPlaybackRequest::GetAfterAnswerDelayPlaybackRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetAfterAnswerDelayPlayback") +{ + setMethod(HttpRequest::Method::Post); +} + +GetAfterAnswerDelayPlaybackRequest::~GetAfterAnswerDelayPlaybackRequest() +{} + +int GetAfterAnswerDelayPlaybackRequest::getStrategyLevel()const +{ + return strategyLevel_; +} + +void GetAfterAnswerDelayPlaybackRequest::setStrategyLevel(int strategyLevel) +{ + strategyLevel_ = strategyLevel; + setParameter("StrategyLevel", std::to_string(strategyLevel)); +} + +std::string GetAfterAnswerDelayPlaybackRequest::getEntryId()const +{ + return entryId_; +} + +void GetAfterAnswerDelayPlaybackRequest::setEntryId(const std::string& entryId) +{ + entryId_ = entryId; + setParameter("EntryId", entryId); +} + diff --git a/outboundbot/src/model/GetAfterAnswerDelayPlaybackResult.cc b/outboundbot/src/model/GetAfterAnswerDelayPlaybackResult.cc new file mode 100644 index 000000000..b0592b759 --- /dev/null +++ b/outboundbot/src/model/GetAfterAnswerDelayPlaybackResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetAfterAnswerDelayPlaybackResult::GetAfterAnswerDelayPlaybackResult() : + ServiceResult() +{} + +GetAfterAnswerDelayPlaybackResult::GetAfterAnswerDelayPlaybackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAfterAnswerDelayPlaybackResult::~GetAfterAnswerDelayPlaybackResult() +{} + +void GetAfterAnswerDelayPlaybackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["AfterAnswerDelayPlayback"].isNull()) + afterAnswerDelayPlayback_ = std::stoi(value["AfterAnswerDelayPlayback"].asString()); + +} + +int GetAfterAnswerDelayPlaybackResult::getAfterAnswerDelayPlayback()const +{ + return afterAnswerDelayPlayback_; +} + +std::string GetAfterAnswerDelayPlaybackResult::getMessage()const +{ + return message_; +} + +int GetAfterAnswerDelayPlaybackResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetAfterAnswerDelayPlaybackResult::getCode()const +{ + return code_; +} + +bool GetAfterAnswerDelayPlaybackResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/GetAsrServerInfoRequest.cc b/outboundbot/src/model/GetAsrServerInfoRequest.cc new file mode 100644 index 000000000..b49e8ec30 --- /dev/null +++ b/outboundbot/src/model/GetAsrServerInfoRequest.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 + +using AlibabaCloud::OutboundBot::Model::GetAsrServerInfoRequest; + +GetAsrServerInfoRequest::GetAsrServerInfoRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetAsrServerInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetAsrServerInfoRequest::~GetAsrServerInfoRequest() +{} + +int GetAsrServerInfoRequest::getStrategyLevel()const +{ + return strategyLevel_; +} + +void GetAsrServerInfoRequest::setStrategyLevel(int strategyLevel) +{ + strategyLevel_ = strategyLevel; + setParameter("StrategyLevel", std::to_string(strategyLevel)); +} + +std::string GetAsrServerInfoRequest::getEntryId()const +{ + return entryId_; +} + +void GetAsrServerInfoRequest::setEntryId(const std::string& entryId) +{ + entryId_ = entryId; + setParameter("EntryId", entryId); +} + diff --git a/outboundbot/src/model/GetAsrServerInfoResult.cc b/outboundbot/src/model/GetAsrServerInfoResult.cc new file mode 100644 index 000000000..486b54823 --- /dev/null +++ b/outboundbot/src/model/GetAsrServerInfoResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetAsrServerInfoResult::GetAsrServerInfoResult() : + ServiceResult() +{} + +GetAsrServerInfoResult::GetAsrServerInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetAsrServerInfoResult::~GetAsrServerInfoResult() +{} + +void GetAsrServerInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetAsrServerInfoResult::getMessage()const +{ + return message_; +} + +int GetAsrServerInfoResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetAsrServerInfoResult::getCode()const +{ + return code_; +} + +bool GetAsrServerInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/GetBaseStrategyPeriodRequest.cc b/outboundbot/src/model/GetBaseStrategyPeriodRequest.cc new file mode 100644 index 000000000..f153c65a9 --- /dev/null +++ b/outboundbot/src/model/GetBaseStrategyPeriodRequest.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 + +using AlibabaCloud::OutboundBot::Model::GetBaseStrategyPeriodRequest; + +GetBaseStrategyPeriodRequest::GetBaseStrategyPeriodRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetBaseStrategyPeriod") +{ + setMethod(HttpRequest::Method::Post); +} + +GetBaseStrategyPeriodRequest::~GetBaseStrategyPeriodRequest() +{} + +int GetBaseStrategyPeriodRequest::getStrategyLevel()const +{ + return strategyLevel_; +} + +void GetBaseStrategyPeriodRequest::setStrategyLevel(int strategyLevel) +{ + strategyLevel_ = strategyLevel; + setParameter("StrategyLevel", std::to_string(strategyLevel)); +} + +std::string GetBaseStrategyPeriodRequest::getEntryId()const +{ + return entryId_; +} + +void GetBaseStrategyPeriodRequest::setEntryId(const std::string& entryId) +{ + entryId_ = entryId; + setParameter("EntryId", entryId); +} + diff --git a/outboundbot/src/model/GetBaseStrategyPeriodResult.cc b/outboundbot/src/model/GetBaseStrategyPeriodResult.cc new file mode 100644 index 000000000..4df9bbdc0 --- /dev/null +++ b/outboundbot/src/model/GetBaseStrategyPeriodResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetBaseStrategyPeriodResult::GetBaseStrategyPeriodResult() : + ServiceResult() +{} + +GetBaseStrategyPeriodResult::GetBaseStrategyPeriodResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetBaseStrategyPeriodResult::~GetBaseStrategyPeriodResult() +{} + +void GetBaseStrategyPeriodResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allWorkingTimeNode = value["WorkingTime"]["TimeFrame"]; + for (auto valueWorkingTimeTimeFrame : allWorkingTimeNode) + { + TimeFrame workingTimeObject; + if(!valueWorkingTimeTimeFrame["BeginTimeMillis"].isNull()) + workingTimeObject.beginTimeMillis = std::stol(valueWorkingTimeTimeFrame["BeginTimeMillis"].asString()); + if(!valueWorkingTimeTimeFrame["BeginTime"].isNull()) + workingTimeObject.beginTime = valueWorkingTimeTimeFrame["BeginTime"].asString(); + if(!valueWorkingTimeTimeFrame["EndTimeMillis"].isNull()) + workingTimeObject.endTimeMillis = std::stol(valueWorkingTimeTimeFrame["EndTimeMillis"].asString()); + if(!valueWorkingTimeTimeFrame["EndTime"].isNull()) + workingTimeObject.endTime = valueWorkingTimeTimeFrame["EndTime"].asString(); + workingTime_.push_back(workingTimeObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["OnlyWeekdays"].isNull()) + onlyWeekdays_ = value["OnlyWeekdays"].asString() == "true"; + +} + +std::vector GetBaseStrategyPeriodResult::getWorkingTime()const +{ + return workingTime_; +} + +std::string GetBaseStrategyPeriodResult::getMessage()const +{ + return message_; +} + +bool GetBaseStrategyPeriodResult::getOnlyWeekdays()const +{ + return onlyWeekdays_; +} + +int GetBaseStrategyPeriodResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetBaseStrategyPeriodResult::getCode()const +{ + return code_; +} + +bool GetBaseStrategyPeriodResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/ListMediaRequest.cc b/outboundbot/src/model/GetContactBlockListRequest.cc similarity index 50% rename from outboundbot/src/model/ListMediaRequest.cc rename to outboundbot/src/model/GetContactBlockListRequest.cc index 7a6ae281b..ee04cf64d 100644 --- a/outboundbot/src/model/ListMediaRequest.cc +++ b/outboundbot/src/model/GetContactBlockListRequest.cc @@ -14,60 +14,60 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::OutboundBot::Model::ListMediaRequest; +using AlibabaCloud::OutboundBot::Model::GetContactBlockListRequest; -ListMediaRequest::ListMediaRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListMedia") +GetContactBlockListRequest::GetContactBlockListRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetContactBlockList") { setMethod(HttpRequest::Method::Post); } -ListMediaRequest::~ListMediaRequest() +GetContactBlockListRequest::~GetContactBlockListRequest() {} -int ListMediaRequest::getPageNumber()const +bool GetContactBlockListRequest::getCountTotalRow()const +{ + return countTotalRow_; +} + +void GetContactBlockListRequest::setCountTotalRow(bool countTotalRow) +{ + countTotalRow_ = countTotalRow; + setParameter("CountTotalRow", countTotalRow ? "true" : "false"); +} + +int GetContactBlockListRequest::getPageNumber()const { return pageNumber_; } -void ListMediaRequest::setPageNumber(int pageNumber) +void GetContactBlockListRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setParameter("PageNumber", std::to_string(pageNumber)); } -std::string ListMediaRequest::getInstanceId()const +std::string GetContactBlockListRequest::getInstanceId()const { return instanceId_; } -void ListMediaRequest::setInstanceId(const std::string& instanceId) +void GetContactBlockListRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setParameter("InstanceId", instanceId); } -int ListMediaRequest::getPageSize()const +int GetContactBlockListRequest::getPageSize()const { return pageSize_; } -void ListMediaRequest::setPageSize(int pageSize) +void GetContactBlockListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setParameter("PageSize", std::to_string(pageSize)); } -std::string ListMediaRequest::getNamePrefix()const -{ - return namePrefix_; -} - -void ListMediaRequest::setNamePrefix(const std::string& namePrefix) -{ - namePrefix_ = namePrefix; - setParameter("NamePrefix", namePrefix); -} - diff --git a/outboundbot/src/model/GetContactBlockListResult.cc b/outboundbot/src/model/GetContactBlockListResult.cc new file mode 100644 index 000000000..1a67b0dab --- /dev/null +++ b/outboundbot/src/model/GetContactBlockListResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetContactBlockListResult::GetContactBlockListResult() : + ServiceResult() +{} + +GetContactBlockListResult::GetContactBlockListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetContactBlockListResult::~GetContactBlockListResult() +{} + +void GetContactBlockListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto contactBlocklistListNode = value["ContactBlocklistList"]; + if(!contactBlocklistListNode["PageNumber"].isNull()) + contactBlocklistList_.pageNumber = std::stoi(contactBlocklistListNode["PageNumber"].asString()); + if(!contactBlocklistListNode["PageSize"].isNull()) + contactBlocklistList_.pageSize = std::stoi(contactBlocklistListNode["PageSize"].asString()); + if(!contactBlocklistListNode["TotalCount"].isNull()) + contactBlocklistList_.totalCount = std::stoi(contactBlocklistListNode["TotalCount"].asString()); + auto allListNode = contactBlocklistListNode["List"]["ContactBlockList"]; + for (auto contactBlocklistListNodeListContactBlockList : allListNode) + { + ContactBlocklistList::ContactBlockList contactBlockListObject; + if(!contactBlocklistListNodeListContactBlockList["ContactBlockListId"].isNull()) + contactBlockListObject.contactBlockListId = contactBlocklistListNodeListContactBlockList["ContactBlockListId"].asString(); + if(!contactBlocklistListNodeListContactBlockList["InstanceId"].isNull()) + contactBlockListObject.instanceId = contactBlocklistListNodeListContactBlockList["InstanceId"].asString(); + if(!contactBlocklistListNodeListContactBlockList["CreationTime"].isNull()) + contactBlockListObject.creationTime = std::stol(contactBlocklistListNodeListContactBlockList["CreationTime"].asString()); + if(!contactBlocklistListNodeListContactBlockList["PhoneNumber"].isNull()) + contactBlockListObject.phoneNumber = contactBlocklistListNodeListContactBlockList["PhoneNumber"].asString(); + if(!contactBlocklistListNodeListContactBlockList["Name"].isNull()) + contactBlockListObject.name = contactBlocklistListNodeListContactBlockList["Name"].asString(); + if(!contactBlocklistListNodeListContactBlockList["Creator"].isNull()) + contactBlockListObject.creator = contactBlocklistListNodeListContactBlockList["Creator"].asString(); + if(!contactBlocklistListNodeListContactBlockList["Operator"].isNull()) + contactBlockListObject._operator = contactBlocklistListNodeListContactBlockList["Operator"].asString(); + if(!contactBlocklistListNodeListContactBlockList["Remark"].isNull()) + contactBlockListObject.remark = contactBlocklistListNodeListContactBlockList["Remark"].asString(); + contactBlocklistList_.list.push_back(contactBlockListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetContactBlockListResult::getMessage()const +{ + return message_; +} + +int GetContactBlockListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetContactBlockListResult::getCode()const +{ + return code_; +} + +GetContactBlockListResult::ContactBlocklistList GetContactBlockListResult::getContactBlocklistList()const +{ + return contactBlocklistList_; +} + +bool GetContactBlockListResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/GetContactWhiteListRequest.cc b/outboundbot/src/model/GetContactWhiteListRequest.cc new file mode 100644 index 000000000..61dbec94b --- /dev/null +++ b/outboundbot/src/model/GetContactWhiteListRequest.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 + +using AlibabaCloud::OutboundBot::Model::GetContactWhiteListRequest; + +GetContactWhiteListRequest::GetContactWhiteListRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetContactWhiteList") +{ + setMethod(HttpRequest::Method::Post); +} + +GetContactWhiteListRequest::~GetContactWhiteListRequest() +{} + +bool GetContactWhiteListRequest::getCountTotalRow()const +{ + return countTotalRow_; +} + +void GetContactWhiteListRequest::setCountTotalRow(bool countTotalRow) +{ + countTotalRow_ = countTotalRow; + setParameter("CountTotalRow", countTotalRow ? "true" : "false"); +} + +int GetContactWhiteListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void GetContactWhiteListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string GetContactWhiteListRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetContactWhiteListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +int GetContactWhiteListRequest::getPageSize()const +{ + return pageSize_; +} + +void GetContactWhiteListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/outboundbot/src/model/GetContactWhiteListResult.cc b/outboundbot/src/model/GetContactWhiteListResult.cc new file mode 100644 index 000000000..1663455d4 --- /dev/null +++ b/outboundbot/src/model/GetContactWhiteListResult.cc @@ -0,0 +1,106 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetContactWhiteListResult::GetContactWhiteListResult() : + ServiceResult() +{} + +GetContactWhiteListResult::GetContactWhiteListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetContactWhiteListResult::~GetContactWhiteListResult() +{} + +void GetContactWhiteListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto contactWhitelistListNode = value["ContactWhitelistList"]; + if(!contactWhitelistListNode["PageSize"].isNull()) + contactWhitelistList_.pageSize = std::stoi(contactWhitelistListNode["PageSize"].asString()); + if(!contactWhitelistListNode["PageNumber"].isNull()) + contactWhitelistList_.pageNumber = std::stoi(contactWhitelistListNode["PageNumber"].asString()); + if(!contactWhitelistListNode["TotalCount"].isNull()) + contactWhitelistList_.totalCount = std::stoi(contactWhitelistListNode["TotalCount"].asString()); + auto allListNode = contactWhitelistListNode["List"]["ContactWhitelistList"]; + for (auto contactWhitelistListNodeListContactWhitelistList : allListNode) + { + ContactWhitelistList::ContactWhitelistList1 contactWhitelistList1Object; + if(!contactWhitelistListNodeListContactWhitelistList["ContactWhiteListId"].isNull()) + contactWhitelistList1Object.contactWhiteListId = contactWhitelistListNodeListContactWhitelistList["ContactWhiteListId"].asString(); + if(!contactWhitelistListNodeListContactWhitelistList["InstanceId"].isNull()) + contactWhitelistList1Object.instanceId = contactWhitelistListNodeListContactWhitelistList["InstanceId"].asString(); + if(!contactWhitelistListNodeListContactWhitelistList["CreationTime"].isNull()) + contactWhitelistList1Object.creationTime = std::stol(contactWhitelistListNodeListContactWhitelistList["CreationTime"].asString()); + if(!contactWhitelistListNodeListContactWhitelistList["PhoneNumber"].isNull()) + contactWhitelistList1Object.phoneNumber = contactWhitelistListNodeListContactWhitelistList["PhoneNumber"].asString(); + if(!contactWhitelistListNodeListContactWhitelistList["Name"].isNull()) + contactWhitelistList1Object.name = contactWhitelistListNodeListContactWhitelistList["Name"].asString(); + if(!contactWhitelistListNodeListContactWhitelistList["Creator"].isNull()) + contactWhitelistList1Object.creator = contactWhitelistListNodeListContactWhitelistList["Creator"].asString(); + if(!contactWhitelistListNodeListContactWhitelistList["Operator"].isNull()) + contactWhitelistList1Object._operator = contactWhitelistListNodeListContactWhitelistList["Operator"].asString(); + if(!contactWhitelistListNodeListContactWhitelistList["Remark"].isNull()) + contactWhitelistList1Object.remark = contactWhitelistListNodeListContactWhitelistList["Remark"].asString(); + contactWhitelistList_.list.push_back(contactWhitelistList1Object); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetContactWhiteListResult::getMessage()const +{ + return message_; +} + +int GetContactWhiteListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GetContactWhiteListResult::ContactWhitelistList GetContactWhiteListResult::getContactWhitelistList()const +{ + return contactWhitelistList_; +} + +std::string GetContactWhiteListResult::getCode()const +{ + return code_; +} + +bool GetContactWhiteListResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/GetEffectiveDaysRequest.cc b/outboundbot/src/model/GetEffectiveDaysRequest.cc new file mode 100644 index 000000000..6d6b9d2c3 --- /dev/null +++ b/outboundbot/src/model/GetEffectiveDaysRequest.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 + +using AlibabaCloud::OutboundBot::Model::GetEffectiveDaysRequest; + +GetEffectiveDaysRequest::GetEffectiveDaysRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetEffectiveDays") +{ + setMethod(HttpRequest::Method::Post); +} + +GetEffectiveDaysRequest::~GetEffectiveDaysRequest() +{} + +int GetEffectiveDaysRequest::getStrategyLevel()const +{ + return strategyLevel_; +} + +void GetEffectiveDaysRequest::setStrategyLevel(int strategyLevel) +{ + strategyLevel_ = strategyLevel; + setParameter("StrategyLevel", std::to_string(strategyLevel)); +} + +std::string GetEffectiveDaysRequest::getEntryId()const +{ + return entryId_; +} + +void GetEffectiveDaysRequest::setEntryId(const std::string& entryId) +{ + entryId_ = entryId; + setParameter("EntryId", entryId); +} + diff --git a/outboundbot/src/model/GetEffectiveDaysResult.cc b/outboundbot/src/model/GetEffectiveDaysResult.cc new file mode 100644 index 000000000..58625b08a --- /dev/null +++ b/outboundbot/src/model/GetEffectiveDaysResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetEffectiveDaysResult::GetEffectiveDaysResult() : + ServiceResult() +{} + +GetEffectiveDaysResult::GetEffectiveDaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEffectiveDaysResult::~GetEffectiveDaysResult() +{} + +void GetEffectiveDaysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["EffectiveDays"].isNull()) + effectiveDays_ = std::stoi(value["EffectiveDays"].asString()); + +} + +std::string GetEffectiveDaysResult::getMessage()const +{ + return message_; +} + +int GetEffectiveDaysResult::getEffectiveDays()const +{ + return effectiveDays_; +} + +int GetEffectiveDaysResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetEffectiveDaysResult::getCode()const +{ + return code_; +} + +bool GetEffectiveDaysResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoRequest.cc b/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoRequest.cc new file mode 100644 index 000000000..df0bb15ef --- /dev/null +++ b/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoRequest.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 + +using AlibabaCloud::OutboundBot::Model::GetEmptyNumberNoMoreCallsInfoRequest; + +GetEmptyNumberNoMoreCallsInfoRequest::GetEmptyNumberNoMoreCallsInfoRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetEmptyNumberNoMoreCallsInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetEmptyNumberNoMoreCallsInfoRequest::~GetEmptyNumberNoMoreCallsInfoRequest() +{} + +int GetEmptyNumberNoMoreCallsInfoRequest::getStrategyLevel()const +{ + return strategyLevel_; +} + +void GetEmptyNumberNoMoreCallsInfoRequest::setStrategyLevel(int strategyLevel) +{ + strategyLevel_ = strategyLevel; + setParameter("StrategyLevel", std::to_string(strategyLevel)); +} + +std::string GetEmptyNumberNoMoreCallsInfoRequest::getEntryId()const +{ + return entryId_; +} + +void GetEmptyNumberNoMoreCallsInfoRequest::setEntryId(const std::string& entryId) +{ + entryId_ = entryId; + setParameter("EntryId", entryId); +} + diff --git a/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoResult.cc b/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoResult.cc new file mode 100644 index 000000000..5e26949e4 --- /dev/null +++ b/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetEmptyNumberNoMoreCallsInfoResult::GetEmptyNumberNoMoreCallsInfoResult() : + ServiceResult() +{} + +GetEmptyNumberNoMoreCallsInfoResult::GetEmptyNumberNoMoreCallsInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetEmptyNumberNoMoreCallsInfoResult::~GetEmptyNumberNoMoreCallsInfoResult() +{} + +void GetEmptyNumberNoMoreCallsInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["EmptyNumberNoMoreCalls"].isNull()) + emptyNumberNoMoreCalls_ = value["EmptyNumberNoMoreCalls"].asString() == "true"; + +} + +bool GetEmptyNumberNoMoreCallsInfoResult::getEmptyNumberNoMoreCalls()const +{ + return emptyNumberNoMoreCalls_; +} + +std::string GetEmptyNumberNoMoreCallsInfoResult::getMessage()const +{ + return message_; +} + +int GetEmptyNumberNoMoreCallsInfoResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetEmptyNumberNoMoreCallsInfoResult::getCode()const +{ + return code_; +} + +bool GetEmptyNumberNoMoreCallsInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/GetMaxAttemptsPerDayRequest.cc b/outboundbot/src/model/GetMaxAttemptsPerDayRequest.cc new file mode 100644 index 000000000..64db361f8 --- /dev/null +++ b/outboundbot/src/model/GetMaxAttemptsPerDayRequest.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 + +using AlibabaCloud::OutboundBot::Model::GetMaxAttemptsPerDayRequest; + +GetMaxAttemptsPerDayRequest::GetMaxAttemptsPerDayRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetMaxAttemptsPerDay") +{ + setMethod(HttpRequest::Method::Post); +} + +GetMaxAttemptsPerDayRequest::~GetMaxAttemptsPerDayRequest() +{} + +int GetMaxAttemptsPerDayRequest::getStrategyLevel()const +{ + return strategyLevel_; +} + +void GetMaxAttemptsPerDayRequest::setStrategyLevel(int strategyLevel) +{ + strategyLevel_ = strategyLevel; + setParameter("StrategyLevel", std::to_string(strategyLevel)); +} + +std::string GetMaxAttemptsPerDayRequest::getEntryId()const +{ + return entryId_; +} + +void GetMaxAttemptsPerDayRequest::setEntryId(const std::string& entryId) +{ + entryId_ = entryId; + setParameter("EntryId", entryId); +} + diff --git a/outboundbot/src/model/GetMaxAttemptsPerDayResult.cc b/outboundbot/src/model/GetMaxAttemptsPerDayResult.cc new file mode 100644 index 000000000..37dbe8502 --- /dev/null +++ b/outboundbot/src/model/GetMaxAttemptsPerDayResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetMaxAttemptsPerDayResult::GetMaxAttemptsPerDayResult() : + ServiceResult() +{} + +GetMaxAttemptsPerDayResult::GetMaxAttemptsPerDayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetMaxAttemptsPerDayResult::~GetMaxAttemptsPerDayResult() +{} + +void GetMaxAttemptsPerDayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["MaxAttemptsPerDay"].isNull()) + maxAttemptsPerDay_ = std::stoi(value["MaxAttemptsPerDay"].asString()); + +} + +std::string GetMaxAttemptsPerDayResult::getMessage()const +{ + return message_; +} + +int GetMaxAttemptsPerDayResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +int GetMaxAttemptsPerDayResult::getMaxAttemptsPerDay()const +{ + return maxAttemptsPerDay_; +} + +std::string GetMaxAttemptsPerDayResult::getCode()const +{ + return code_; +} + +bool GetMaxAttemptsPerDayResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/GetSummaryInfoRequest.cc b/outboundbot/src/model/GetSummaryInfoRequest.cc new file mode 100644 index 000000000..c70acaa40 --- /dev/null +++ b/outboundbot/src/model/GetSummaryInfoRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetSummaryInfoRequest; + +GetSummaryInfoRequest::GetSummaryInfoRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetSummaryInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +GetSummaryInfoRequest::~GetSummaryInfoRequest() +{} + +std::vector GetSummaryInfoRequest::getInstanceIdList()const +{ + return instanceIdList_; +} + +void GetSummaryInfoRequest::setInstanceIdList(const std::vector& instanceIdList) +{ + instanceIdList_ = instanceIdList; + for(int dep1 = 0; dep1!= instanceIdList.size(); dep1++) { + setParameter("InstanceIdList."+ std::to_string(dep1), instanceIdList.at(dep1)); + } +} + diff --git a/outboundbot/src/model/GetSummaryInfoResult.cc b/outboundbot/src/model/GetSummaryInfoResult.cc new file mode 100644 index 000000000..6edd929f9 --- /dev/null +++ b/outboundbot/src/model/GetSummaryInfoResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetSummaryInfoResult::GetSummaryInfoResult() : + ServiceResult() +{} + +GetSummaryInfoResult::GetSummaryInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetSummaryInfoResult::~GetSummaryInfoResult() +{} + +void GetSummaryInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAgentBotInstanceSummaryListNode = value["AgentBotInstanceSummaryList"]["AgentBotInstanceSummary"]; + for (auto valueAgentBotInstanceSummaryListAgentBotInstanceSummary : allAgentBotInstanceSummaryListNode) + { + AgentBotInstanceSummary agentBotInstanceSummaryListObject; + if(!valueAgentBotInstanceSummaryListAgentBotInstanceSummary["TotalCallTime"].isNull()) + agentBotInstanceSummaryListObject.totalCallTime = std::stol(valueAgentBotInstanceSummaryListAgentBotInstanceSummary["TotalCallTime"].asString()); + if(!valueAgentBotInstanceSummaryListAgentBotInstanceSummary["TotalCallCount"].isNull()) + agentBotInstanceSummaryListObject.totalCallCount = std::stol(valueAgentBotInstanceSummaryListAgentBotInstanceSummary["TotalCallCount"].asString()); + if(!valueAgentBotInstanceSummaryListAgentBotInstanceSummary["UsedRecordingStorageSpace"].isNull()) + agentBotInstanceSummaryListObject.usedRecordingStorageSpace = std::stoi(valueAgentBotInstanceSummaryListAgentBotInstanceSummary["UsedRecordingStorageSpace"].asString()); + if(!valueAgentBotInstanceSummaryListAgentBotInstanceSummary["InstanceId"].isNull()) + agentBotInstanceSummaryListObject.instanceId = valueAgentBotInstanceSummaryListAgentBotInstanceSummary["InstanceId"].asString(); + agentBotInstanceSummaryList_.push_back(agentBotInstanceSummaryListObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string GetSummaryInfoResult::getMessage()const +{ + return message_; +} + +int GetSummaryInfoResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::vector GetSummaryInfoResult::getAgentBotInstanceSummaryList()const +{ + return agentBotInstanceSummaryList_; +} + +std::string GetSummaryInfoResult::getCode()const +{ + return code_; +} + +bool GetSummaryInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/GetTaskByUuidRequest.cc b/outboundbot/src/model/GetTaskByUuidRequest.cc new file mode 100644 index 000000000..af8f13ac9 --- /dev/null +++ b/outboundbot/src/model/GetTaskByUuidRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetTaskByUuidRequest; + +GetTaskByUuidRequest::GetTaskByUuidRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetTaskByUuid") +{ + setMethod(HttpRequest::Method::Get); +} + +GetTaskByUuidRequest::~GetTaskByUuidRequest() +{} + +bool GetTaskByUuidRequest::getWithConversations()const +{ + return withConversations_; +} + +void GetTaskByUuidRequest::setWithConversations(bool withConversations) +{ + withConversations_ = withConversations; + setParameter("WithConversations", withConversations ? "true" : "false"); +} + +std::string GetTaskByUuidRequest::getInstanceId()const +{ + return instanceId_; +} + +void GetTaskByUuidRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string GetTaskByUuidRequest::getTaskId()const +{ + return taskId_; +} + +void GetTaskByUuidRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setParameter("TaskId", taskId); +} + diff --git a/outboundbot/src/model/GetTaskByUuidResult.cc b/outboundbot/src/model/GetTaskByUuidResult.cc new file mode 100644 index 000000000..09e0f0d9f --- /dev/null +++ b/outboundbot/src/model/GetTaskByUuidResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetTaskByUuidResult::GetTaskByUuidResult() : + ServiceResult() +{} + +GetTaskByUuidResult::GetTaskByUuidResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetTaskByUuidResult::~GetTaskByUuidResult() +{} + +void GetTaskByUuidResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto taskNode = value["Task"]; + if(!taskNode["Id"].isNull()) + task_.id = taskNode["Id"].asString(); + if(!taskNode["JobId"].isNull()) + task_.jobId = taskNode["JobId"].asString(); + if(!taskNode["PlannedTime"].isNull()) + task_.plannedTime = std::stol(taskNode["PlannedTime"].asString()); + if(!taskNode["ActualTime"].isNull()) + task_.actualTime = std::stol(taskNode["ActualTime"].asString()); + if(!taskNode["EndTime"].isNull()) + task_.endTime = std::stol(taskNode["EndTime"].asString()); + if(!taskNode["CallingNumber"].isNull()) + task_.callingNumber = taskNode["CallingNumber"].asString(); + if(!taskNode["CalledNumber"].isNull()) + task_.calledNumber = taskNode["CalledNumber"].asString(); + if(!taskNode["CallId"].isNull()) + task_.callId = taskNode["CallId"].asString(); + if(!taskNode["EndReason"].isNull()) + task_.endReason = std::stoi(taskNode["EndReason"].asString()); + if(!taskNode["InstanceId"].isNull()) + task_.instanceId = taskNode["InstanceId"].asString(); + if(!taskNode["JobGroupId"].isNull()) + task_.jobGroupId = taskNode["JobGroupId"].asString(); + +} + +GetTaskByUuidResult::Task GetTaskByUuidResult::getTask()const +{ + return task_; +} + diff --git a/outboundbot/src/model/GetVersionRequest.cc b/outboundbot/src/model/GetVersionRequest.cc new file mode 100644 index 000000000..f628b583a --- /dev/null +++ b/outboundbot/src/model/GetVersionRequest.cc @@ -0,0 +1,29 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetVersionRequest; + +GetVersionRequest::GetVersionRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "GetVersion") +{ + setMethod(HttpRequest::Method::Post); +} + +GetVersionRequest::~GetVersionRequest() +{} + diff --git a/outboundbot/src/model/GetVersionResult.cc b/outboundbot/src/model/GetVersionResult.cc new file mode 100644 index 000000000..a080946d6 --- /dev/null +++ b/outboundbot/src/model/GetVersionResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +GetVersionResult::GetVersionResult() : + ServiceResult() +{} + +GetVersionResult::GetVersionResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GetVersionResult::~GetVersionResult() +{} + +void GetVersionResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Version"].isNull()) + version_ = value["Version"].asString(); + +} + +std::string GetVersionResult::getMessage()const +{ + return message_; +} + +std::string GetVersionResult::getVersion()const +{ + return version_; +} + +int GetVersionResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string GetVersionResult::getCode()const +{ + return code_; +} + +bool GetVersionResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/ListInstancesRequest.cc b/outboundbot/src/model/ListInstancesRequest.cc index 9a7edbb39..05daf73d7 100644 --- a/outboundbot/src/model/ListInstancesRequest.cc +++ b/outboundbot/src/model/ListInstancesRequest.cc @@ -27,3 +27,30 @@ ListInstancesRequest::ListInstancesRequest() : ListInstancesRequest::~ListInstancesRequest() {} +std::string ListInstancesRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void ListInstancesRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + +std::vector ListInstancesRequest::getTag()const +{ + return tag_; +} + +void ListInstancesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/outboundbot/src/model/ListInstancesResult.cc b/outboundbot/src/model/ListInstancesResult.cc index 61ee4d0b0..10516cf6c 100644 --- a/outboundbot/src/model/ListInstancesResult.cc +++ b/outboundbot/src/model/ListInstancesResult.cc @@ -57,15 +57,33 @@ void ListInstancesResult::parse(const std::string &payload) instancesObject.isTemplateContainer = valueInstancesInstance["IsTemplateContainer"].asString() == "true"; if(!valueInstancesInstance["MaxConcurrentConversation"].isNull()) instancesObject.maxConcurrentConversation = std::stoi(valueInstancesInstance["MaxConcurrentConversation"].asString()); - if(!valueInstancesInstance["Owner"].isNull()) - instancesObject.owner = valueInstancesInstance["Owner"].asString(); + if(!valueInstancesInstance["OwnerName"].isNull()) + instancesObject.ownerName = valueInstancesInstance["OwnerName"].asString(); + if(!valueInstancesInstance["CreatorId"].isNull()) + instancesObject.creatorId = std::stol(valueInstancesInstance["CreatorId"].asString()); + if(!valueInstancesInstance["CreatorName"].isNull()) + instancesObject.creatorName = valueInstancesInstance["CreatorName"].asString(); if(!valueInstancesInstance["NluServiceType"].isNull()) instancesObject.nluServiceType = valueInstancesInstance["NluServiceType"].asString(); + if(!valueInstancesInstance["Owner"].isNull()) + instancesObject.owner = valueInstancesInstance["Owner"].asString(); + if(!valueInstancesInstance["ResourceGroupId"].isNull()) + instancesObject.resourceGroupId = valueInstancesInstance["ResourceGroupId"].asString(); + auto allResourceTagsNode = valueInstancesInstance["ResourceTags"]["ResourceTag"]; + for (auto valueInstancesInstanceResourceTagsResourceTag : allResourceTagsNode) + { + Instance::ResourceTag resourceTagsObject; + if(!valueInstancesInstanceResourceTagsResourceTag["Key"].isNull()) + resourceTagsObject.key = valueInstancesInstanceResourceTagsResourceTag["Key"].asString(); + if(!valueInstancesInstanceResourceTagsResourceTag["Value"].isNull()) + resourceTagsObject.value = valueInstancesInstanceResourceTagsResourceTag["Value"].asString(); + instancesObject.resourceTags.push_back(resourceTagsObject); + } auto nluProfileNode = value["NluProfile"]; - if(!nluProfileNode["Endpoint"].isNull()) - instancesObject.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); if(!nluProfileNode["AccessKey"].isNull()) instancesObject.nluProfile.accessKey = nluProfileNode["AccessKey"].asString(); + if(!nluProfileNode["Endpoint"].isNull()) + instancesObject.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); if(!nluProfileNode["SecretKey"].isNull()) instancesObject.nluProfile.secretKey = nluProfileNode["SecretKey"].asString(); instances_.push_back(instancesObject); diff --git a/outboundbot/src/model/ListJobGroupsAsyncRequest.cc b/outboundbot/src/model/ListJobGroupsAsyncRequest.cc new file mode 100644 index 000000000..171ee62a8 --- /dev/null +++ b/outboundbot/src/model/ListJobGroupsAsyncRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListJobGroupsAsyncRequest; + +ListJobGroupsAsyncRequest::ListJobGroupsAsyncRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "ListJobGroupsAsync") +{ + setMethod(HttpRequest::Method::Get); +} + +ListJobGroupsAsyncRequest::~ListJobGroupsAsyncRequest() +{} + +std::string ListJobGroupsAsyncRequest::getAsyncTaskId()const +{ + return asyncTaskId_; +} + +void ListJobGroupsAsyncRequest::setAsyncTaskId(const std::string& asyncTaskId) +{ + asyncTaskId_ = asyncTaskId; + setParameter("AsyncTaskId", asyncTaskId); +} + diff --git a/outboundbot/src/model/ListJobGroupsAsyncResult.cc b/outboundbot/src/model/ListJobGroupsAsyncResult.cc new file mode 100644 index 000000000..e97e55942 --- /dev/null +++ b/outboundbot/src/model/ListJobGroupsAsyncResult.cc @@ -0,0 +1,173 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES 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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +ListJobGroupsAsyncResult::ListJobGroupsAsyncResult() : + ServiceResult() +{} + +ListJobGroupsAsyncResult::ListJobGroupsAsyncResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListJobGroupsAsyncResult::~ListJobGroupsAsyncResult() +{} + +void ListJobGroupsAsyncResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allJobGroupsNode = value["JobGroups"]["JobGroup"]; + for (auto valueJobGroupsJobGroup : allJobGroupsNode) + { + JobGroup jobGroupsObject; + if(!valueJobGroupsJobGroup["JobGroupId"].isNull()) + jobGroupsObject.jobGroupId = valueJobGroupsJobGroup["JobGroupId"].asString(); + if(!valueJobGroupsJobGroup["JobGroupName"].isNull()) + jobGroupsObject.jobGroupName = valueJobGroupsJobGroup["JobGroupName"].asString(); + if(!valueJobGroupsJobGroup["JobGroupDescription"].isNull()) + jobGroupsObject.jobGroupDescription = valueJobGroupsJobGroup["JobGroupDescription"].asString(); + if(!valueJobGroupsJobGroup["ScriptId"].isNull()) + jobGroupsObject.scriptId = valueJobGroupsJobGroup["ScriptId"].asString(); + if(!valueJobGroupsJobGroup["ScriptName"].isNull()) + jobGroupsObject.scriptName = valueJobGroupsJobGroup["ScriptName"].asString(); + if(!valueJobGroupsJobGroup["CreationTime"].isNull()) + jobGroupsObject.creationTime = std::stol(valueJobGroupsJobGroup["CreationTime"].asString()); + if(!valueJobGroupsJobGroup["Status"].isNull()) + jobGroupsObject.status = valueJobGroupsJobGroup["Status"].asString(); + if(!valueJobGroupsJobGroup["JobDataParsingTaskId"].isNull()) + jobGroupsObject.jobDataParsingTaskId = valueJobGroupsJobGroup["JobDataParsingTaskId"].asString(); + if(!valueJobGroupsJobGroup["ModifyTime"].isNull()) + jobGroupsObject.modifyTime = valueJobGroupsJobGroup["ModifyTime"].asString(); + if(!valueJobGroupsJobGroup["ScriptVersion"].isNull()) + jobGroupsObject.scriptVersion = valueJobGroupsJobGroup["ScriptVersion"].asString(); + auto strategyNode = value["Strategy"]; + if(!strategyNode["StartTime"].isNull()) + jobGroupsObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["EndTime"].isNull()) + jobGroupsObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + auto progressNode = value["Progress"]; + if(!progressNode["TotalJobs"].isNull()) + jobGroupsObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString()); + if(!progressNode["Status"].isNull()) + jobGroupsObject.progress.status = progressNode["Status"].asString(); + if(!progressNode["TotalNotAnswered"].isNull()) + jobGroupsObject.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString()); + if(!progressNode["TotalCompleted"].isNull()) + jobGroupsObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString()); + if(!progressNode["StartTime"].isNull()) + jobGroupsObject.progress.startTime = std::stol(progressNode["StartTime"].asString()); + if(!progressNode["Duration"].isNull()) + jobGroupsObject.progress.duration = std::stoi(progressNode["Duration"].asString()); + if(!progressNode["ExecutingNum"].isNull()) + jobGroupsObject.progress.executingNum = std::stoi(progressNode["ExecutingNum"].asString()); + if(!progressNode["CancelledNum"].isNull()) + jobGroupsObject.progress.cancelledNum = std::stoi(progressNode["CancelledNum"].asString()); + if(!progressNode["Scheduling"].isNull()) + jobGroupsObject.progress.scheduling = std::stoi(progressNode["Scheduling"].asString()); + if(!progressNode["FailedNum"].isNull()) + jobGroupsObject.progress.failedNum = std::stoi(progressNode["FailedNum"].asString()); + if(!progressNode["PausedNum"].isNull()) + jobGroupsObject.progress.pausedNum = std::stoi(progressNode["PausedNum"].asString()); + auto exportProgressNode = value["ExportProgress"]; + if(!exportProgressNode["FileHttpUrl"].isNull()) + jobGroupsObject.exportProgress.fileHttpUrl = exportProgressNode["FileHttpUrl"].asString(); + if(!exportProgressNode["Progress"].isNull()) + jobGroupsObject.exportProgress.progress = exportProgressNode["Progress"].asString(); + if(!exportProgressNode["Status"].isNull()) + jobGroupsObject.exportProgress.status = exportProgressNode["Status"].asString(); + jobGroups_.push_back(jobGroupsObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["Vaild"].isNull()) + vaild_ = value["Vaild"].asString() == "true"; + if(!value["Timeout"].isNull()) + timeout_ = value["Timeout"].asString() == "true"; + +} + +int ListJobGroupsAsyncResult::getTotalCount()const +{ + return totalCount_; +} + +std::string ListJobGroupsAsyncResult::getMessage()const +{ + return message_; +} + +int ListJobGroupsAsyncResult::getPageSize()const +{ + return pageSize_; +} + +int ListJobGroupsAsyncResult::getPageNumber()const +{ + return pageNumber_; +} + +bool ListJobGroupsAsyncResult::getTimeout()const +{ + return timeout_; +} + +int ListJobGroupsAsyncResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListJobGroupsAsyncResult::getCode()const +{ + return code_; +} + +std::vector ListJobGroupsAsyncResult::getJobGroups()const +{ + return jobGroups_; +} + +bool ListJobGroupsAsyncResult::getSuccess()const +{ + return success_; +} + +bool ListJobGroupsAsyncResult::getVaild()const +{ + return vaild_; +} + diff --git a/outboundbot/src/model/ListJobGroupsRequest.cc b/outboundbot/src/model/ListJobGroupsRequest.cc index 4451047cc..6d4bd1e89 100644 --- a/outboundbot/src/model/ListJobGroupsRequest.cc +++ b/outboundbot/src/model/ListJobGroupsRequest.cc @@ -27,6 +27,28 @@ ListJobGroupsRequest::ListJobGroupsRequest() : ListJobGroupsRequest::~ListJobGroupsRequest() {} +bool ListJobGroupsRequest::getAsyncQuery()const +{ + return asyncQuery_; +} + +void ListJobGroupsRequest::setAsyncQuery(bool asyncQuery) +{ + asyncQuery_ = asyncQuery; + setParameter("AsyncQuery", asyncQuery ? "true" : "false"); +} + +std::string ListJobGroupsRequest::getSearchText()const +{ + return searchText_; +} + +void ListJobGroupsRequest::setSearchText(const std::string& searchText) +{ + searchText_ = searchText; + setParameter("SearchText", searchText); +} + long ListJobGroupsRequest::getEndTime()const { return endTime_; @@ -71,6 +93,17 @@ void ListJobGroupsRequest::setInstanceId(const std::string& instanceId) setParameter("InstanceId", instanceId); } +std::string ListJobGroupsRequest::getJobGroupStatusFilter()const +{ + return jobGroupStatusFilter_; +} + +void ListJobGroupsRequest::setJobGroupStatusFilter(const std::string& jobGroupStatusFilter) +{ + jobGroupStatusFilter_ = jobGroupStatusFilter; + setParameter("JobGroupStatusFilter", jobGroupStatusFilter); +} + int ListJobGroupsRequest::getPageSize()const { return pageSize_; diff --git a/outboundbot/src/model/ListJobGroupsResult.cc b/outboundbot/src/model/ListJobGroupsResult.cc index 1622934db..6f077f139 100644 --- a/outboundbot/src/model/ListJobGroupsResult.cc +++ b/outboundbot/src/model/ListJobGroupsResult.cc @@ -62,6 +62,14 @@ void ListJobGroupsResult::parse(const std::string &payload) jobGroupObject.scriptId = jobGroupsNodeListJobGroup["ScriptId"].asString(); if(!jobGroupsNodeListJobGroup["ScriptName"].isNull()) jobGroupObject.scriptName = jobGroupsNodeListJobGroup["ScriptName"].asString(); + if(!jobGroupsNodeListJobGroup["JobDataParsingTaskId"].isNull()) + jobGroupObject.jobDataParsingTaskId = jobGroupsNodeListJobGroup["JobDataParsingTaskId"].asString(); + if(!jobGroupsNodeListJobGroup["ModifyTime"].isNull()) + jobGroupObject.modifyTime = jobGroupsNodeListJobGroup["ModifyTime"].asString(); + if(!jobGroupsNodeListJobGroup["ScriptVersion"].isNull()) + jobGroupObject.scriptVersion = jobGroupsNodeListJobGroup["ScriptVersion"].asString(); + if(!jobGroupsNodeListJobGroup["Status"].isNull()) + jobGroupObject.status = jobGroupsNodeListJobGroup["Status"].asString(); auto progressNode = value["Progress"]; if(!progressNode["Duration"].isNull()) jobGroupObject.progress.duration = std::stoi(progressNode["Duration"].asString()); @@ -75,6 +83,23 @@ void ListJobGroupsResult::parse(const std::string &payload) jobGroupObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString()); if(!progressNode["TotalNotAnswered"].isNull()) jobGroupObject.progress.totalNotAnswered = std::stoi(progressNode["TotalNotAnswered"].asString()); + if(!progressNode["CancelledNum"].isNull()) + jobGroupObject.progress.cancelledNum = std::stoi(progressNode["CancelledNum"].asString()); + if(!progressNode["FailedNum"].isNull()) + jobGroupObject.progress.failedNum = std::stoi(progressNode["FailedNum"].asString()); + if(!progressNode["Scheduling"].isNull()) + jobGroupObject.progress.scheduling = std::stoi(progressNode["Scheduling"].asString()); + if(!progressNode["PausedNum"].isNull()) + jobGroupObject.progress.pausedNum = std::stoi(progressNode["PausedNum"].asString()); + if(!progressNode["ExecutingNum"].isNull()) + jobGroupObject.progress.executingNum = std::stoi(progressNode["ExecutingNum"].asString()); + auto exportProgressNode = value["ExportProgress"]; + if(!exportProgressNode["FileHttpUrl"].isNull()) + jobGroupObject.exportProgress.fileHttpUrl = exportProgressNode["FileHttpUrl"].asString(); + if(!exportProgressNode["Progress"].isNull()) + jobGroupObject.exportProgress.progress = exportProgressNode["Progress"].asString(); + if(!exportProgressNode["Status"].isNull()) + jobGroupObject.exportProgress.status = exportProgressNode["Status"].asString(); auto strategyNode = value["Strategy"]; if(!strategyNode["EndTime"].isNull()) jobGroupObject.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); @@ -90,6 +115,8 @@ void ListJobGroupsResult::parse(const std::string &payload) message_ = value["Message"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["AsyncTaskId"].isNull()) + asyncTaskId_ = value["AsyncTaskId"].asString(); } @@ -103,6 +130,11 @@ int ListJobGroupsResult::getHttpStatusCode()const return httpStatusCode_; } +std::string ListJobGroupsResult::getAsyncTaskId()const +{ + return asyncTaskId_; +} + std::string ListJobGroupsResult::getCode()const { return code_; diff --git a/outboundbot/src/model/ListMediaResult.cc b/outboundbot/src/model/ListMediaResult.cc deleted file mode 100644 index 1754b1fcd..000000000 --- a/outboundbot/src/model/ListMediaResult.cc +++ /dev/null @@ -1,108 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::OutboundBot; -using namespace AlibabaCloud::OutboundBot::Model; - -ListMediaResult::ListMediaResult() : - ServiceResult() -{} - -ListMediaResult::ListMediaResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListMediaResult::~ListMediaResult() -{} - -void ListMediaResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allMediaListNode = value["MediaList"]["Media"]; - for (auto valueMediaListMedia : allMediaListNode) - { - Media mediaListObject; - if(!valueMediaListMedia["MediaId"].isNull()) - mediaListObject.mediaId = valueMediaListMedia["MediaId"].asString(); - if(!valueMediaListMedia["Name"].isNull()) - mediaListObject.name = valueMediaListMedia["Name"].asString(); - mediaList_.push_back(mediaListObject); - } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - -std::vector ListMediaResult::getMediaList()const -{ - return mediaList_; -} - -int ListMediaResult::getTotalCount()const -{ - return totalCount_; -} - -std::string ListMediaResult::getMessage()const -{ - return message_; -} - -int ListMediaResult::getPageSize()const -{ - return pageSize_; -} - -int ListMediaResult::getPageNumber()const -{ - return pageNumber_; -} - -int ListMediaResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string ListMediaResult::getCode()const -{ - return code_; -} - -bool ListMediaResult::getSuccess()const -{ - return success_; -} - diff --git a/outboundbot/src/model/ListResourceTagsRequest.cc b/outboundbot/src/model/ListResourceTagsRequest.cc new file mode 100644 index 000000000..dc578d492 --- /dev/null +++ b/outboundbot/src/model/ListResourceTagsRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListResourceTagsRequest; + +ListResourceTagsRequest::ListResourceTagsRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "ListResourceTags") +{ + setMethod(HttpRequest::Method::Post); +} + +ListResourceTagsRequest::~ListResourceTagsRequest() +{} + +std::string ListResourceTagsRequest::getResourceType()const +{ + return resourceType_; +} + +void ListResourceTagsRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +int ListResourceTagsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void ListResourceTagsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +int ListResourceTagsRequest::getPageSize()const +{ + return pageSize_; +} + +void ListResourceTagsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/outboundbot/src/model/ListResourceTagsResult.cc b/outboundbot/src/model/ListResourceTagsResult.cc new file mode 100644 index 000000000..c94562211 --- /dev/null +++ b/outboundbot/src/model/ListResourceTagsResult.cc @@ -0,0 +1,94 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +ListResourceTagsResult::ListResourceTagsResult() : + ServiceResult() +{} + +ListResourceTagsResult::ListResourceTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListResourceTagsResult::~ListResourceTagsResult() +{} + +void ListResourceTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceTagsNode = value["ResourceTags"]; + if(!resourceTagsNode["TotalCount"].isNull()) + resourceTags_.totalCount = std::stoi(resourceTagsNode["TotalCount"].asString()); + if(!resourceTagsNode["PageNumber"].isNull()) + resourceTags_.pageNumber = std::stoi(resourceTagsNode["PageNumber"].asString()); + if(!resourceTagsNode["PageSize"].isNull()) + resourceTags_.pageSize = std::stoi(resourceTagsNode["PageSize"].asString()); + auto allListNode = resourceTagsNode["List"]["ResourceTag"]; + for (auto resourceTagsNodeListResourceTag : allListNode) + { + ResourceTags::ResourceTag resourceTagObject; + if(!resourceTagsNodeListResourceTag["Key"].isNull()) + resourceTagObject.key = resourceTagsNodeListResourceTag["Key"].asString(); + if(!resourceTagsNodeListResourceTag["Value"].isNull()) + resourceTagObject.value = resourceTagsNodeListResourceTag["Value"].asString(); + resourceTags_.list.push_back(resourceTagObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ListResourceTagsResult::getMessage()const +{ + return message_; +} + +ListResourceTagsResult::ResourceTags ListResourceTagsResult::getResourceTags()const +{ + return resourceTags_; +} + +int ListResourceTagsResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListResourceTagsResult::getCode()const +{ + return code_; +} + +bool ListResourceTagsResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/ListTagResourcesRequest.cc b/outboundbot/src/model/ListTagResourcesRequest.cc new file mode 100644 index 000000000..6c6b333c4 --- /dev/null +++ b/outboundbot/src/model/ListTagResourcesRequest.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "ListTagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +ListTagResourcesRequest::~ListTagResourcesRequest() +{} + +std::vector ListTagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void ListTagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string ListTagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void ListTagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string ListTagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void ListTagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::string ListTagResourcesRequest::getNextToken()const +{ + return nextToken_; +} + +void ListTagResourcesRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setParameter("NextToken", nextToken); +} + +std::vector ListTagResourcesRequest::getTag()const +{ + return tag_; +} + +void ListTagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/outboundbot/src/model/ListTagResourcesResult.cc b/outboundbot/src/model/ListTagResourcesResult.cc new file mode 100644 index 000000000..04611f345 --- /dev/null +++ b/outboundbot/src/model/ListTagResourcesResult.cc @@ -0,0 +1,98 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +ListTagResourcesResult::ListTagResourcesResult() : + ServiceResult() +{} + +ListTagResourcesResult::ListTagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ListTagResourcesResult::~ListTagResourcesResult() +{} + +void ListTagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagResourcesNode = value["TagResources"]["TagResource"]; + for (auto valueTagResourcesTagResource : allTagResourcesNode) + { + TagResource tagResourcesObject; + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + if(!valueTagResourcesTagResource["TagValue"].isNull()) + tagResourcesObject.tagValue = valueTagResourcesTagResource["TagValue"].asString(); + if(!valueTagResourcesTagResource["ResourceId"].isNull()) + tagResourcesObject.resourceId = valueTagResourcesTagResource["ResourceId"].asString(); + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].asString(); + tagResources_.push_back(tagResourcesObject); + } + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); + +} + +std::string ListTagResourcesResult::getMessage()const +{ + return message_; +} + +std::string ListTagResourcesResult::getNextToken()const +{ + return nextToken_; +} + +std::vector ListTagResourcesResult::getTagResources()const +{ + return tagResources_; +} + +int ListTagResourcesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ListTagResourcesResult::getCode()const +{ + return code_; +} + +bool ListTagResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoRequest.cc b/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoRequest.cc new file mode 100644 index 000000000..26ff9d3b5 --- /dev/null +++ b/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyEmptyNumberNoMoreCallsInfoRequest; + +ModifyEmptyNumberNoMoreCallsInfoRequest::ModifyEmptyNumberNoMoreCallsInfoRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "ModifyEmptyNumberNoMoreCallsInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyEmptyNumberNoMoreCallsInfoRequest::~ModifyEmptyNumberNoMoreCallsInfoRequest() +{} + +int ModifyEmptyNumberNoMoreCallsInfoRequest::getStrategyLevel()const +{ + return strategyLevel_; +} + +void ModifyEmptyNumberNoMoreCallsInfoRequest::setStrategyLevel(int strategyLevel) +{ + strategyLevel_ = strategyLevel; + setParameter("StrategyLevel", std::to_string(strategyLevel)); +} + +bool ModifyEmptyNumberNoMoreCallsInfoRequest::getEmptyNumberNoMoreCalls()const +{ + return emptyNumberNoMoreCalls_; +} + +void ModifyEmptyNumberNoMoreCallsInfoRequest::setEmptyNumberNoMoreCalls(bool emptyNumberNoMoreCalls) +{ + emptyNumberNoMoreCalls_ = emptyNumberNoMoreCalls; + setParameter("EmptyNumberNoMoreCalls", emptyNumberNoMoreCalls ? "true" : "false"); +} + +std::string ModifyEmptyNumberNoMoreCallsInfoRequest::getEntryId()const +{ + return entryId_; +} + +void ModifyEmptyNumberNoMoreCallsInfoRequest::setEntryId(const std::string& entryId) +{ + entryId_ = entryId; + setParameter("EntryId", entryId); +} + diff --git a/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoResult.cc b/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoResult.cc new file mode 100644 index 000000000..76b2e9769 --- /dev/null +++ b/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +ModifyEmptyNumberNoMoreCallsInfoResult::ModifyEmptyNumberNoMoreCallsInfoResult() : + ServiceResult() +{} + +ModifyEmptyNumberNoMoreCallsInfoResult::ModifyEmptyNumberNoMoreCallsInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyEmptyNumberNoMoreCallsInfoResult::~ModifyEmptyNumberNoMoreCallsInfoResult() +{} + +void ModifyEmptyNumberNoMoreCallsInfoResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string ModifyEmptyNumberNoMoreCallsInfoResult::getMessage()const +{ + return message_; +} + +int ModifyEmptyNumberNoMoreCallsInfoResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string ModifyEmptyNumberNoMoreCallsInfoResult::getCode()const +{ + return code_; +} + +bool ModifyEmptyNumberNoMoreCallsInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/ModifyInstanceResult.cc b/outboundbot/src/model/ModifyInstanceResult.cc index 8e5951ad1..7da27a4e5 100644 --- a/outboundbot/src/model/ModifyInstanceResult.cc +++ b/outboundbot/src/model/ModifyInstanceResult.cc @@ -52,15 +52,21 @@ void ModifyInstanceResult::parse(const std::string &payload) instance_.instanceName = instanceNode["InstanceName"].asString(); if(!instanceNode["MaxConcurrentConversation"].isNull()) instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); - if(!instanceNode["Owner"].isNull()) - instance_.owner = instanceNode["Owner"].asString(); if(!instanceNode["NluServiceType"].isNull()) instance_.nluServiceType = instanceNode["NluServiceType"].asString(); + if(!instanceNode["Owner"].isNull()) + instance_.owner = instanceNode["Owner"].asString(); + if(!instanceNode["CreatorId"].isNull()) + instance_.creatorId = std::stol(instanceNode["CreatorId"].asString()); + if(!instanceNode["CreatorName"].isNull()) + instance_.creatorName = instanceNode["CreatorName"].asString(); + if(!instanceNode["OwnerName"].isNull()) + instance_.ownerName = instanceNode["OwnerName"].asString(); auto nluProfileNode = instanceNode["NluProfile"]; - if(!nluProfileNode["Endpoint"].isNull()) - instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); if(!nluProfileNode["AccessKey"].isNull()) instance_.nluProfile.accessKey = nluProfileNode["AccessKey"].asString(); + if(!nluProfileNode["Endpoint"].isNull()) + instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); if(!nluProfileNode["SecretKey"].isNull()) instance_.nluProfile.secretKey = nluProfileNode["SecretKey"].asString(); if(!value["Code"].isNull()) diff --git a/outboundbot/src/model/ModifyJobGroupResult.cc b/outboundbot/src/model/ModifyJobGroupResult.cc index c901d9075..b4beb5b64 100644 --- a/outboundbot/src/model/ModifyJobGroupResult.cc +++ b/outboundbot/src/model/ModifyJobGroupResult.cc @@ -42,6 +42,8 @@ void ModifyJobGroupResult::parse(const std::string &payload) auto jobGroupNode = value["JobGroup"]; if(!jobGroupNode["CreationTime"].isNull()) jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString()); + if(!jobGroupNode["JobDataParsingTaskId"].isNull()) + jobGroup_.jobDataParsingTaskId = jobGroupNode["JobDataParsingTaskId"].asString(); if(!jobGroupNode["JobFilePath"].isNull()) jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString(); if(!jobGroupNode["JobGroupDescription"].isNull()) @@ -50,8 +52,23 @@ void ModifyJobGroupResult::parse(const std::string &payload) jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString(); if(!jobGroupNode["JobGroupName"].isNull()) jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString(); + if(!jobGroupNode["ModifyTime"].isNull()) + jobGroup_.modifyTime = jobGroupNode["ModifyTime"].asString(); if(!jobGroupNode["ScenarioId"].isNull()) jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString(); + if(!jobGroupNode["ScriptName"].isNull()) + jobGroup_.scriptName = jobGroupNode["ScriptName"].asString(); + if(!jobGroupNode["ScriptVersion"].isNull()) + jobGroup_.scriptVersion = jobGroupNode["ScriptVersion"].asString(); + if(!jobGroupNode["Status"].isNull()) + jobGroup_.status = jobGroupNode["Status"].asString(); + auto exportProgressNode = jobGroupNode["ExportProgress"]; + if(!exportProgressNode["FileHttpUrl"].isNull()) + jobGroup_.exportProgress.fileHttpUrl = exportProgressNode["FileHttpUrl"].asString(); + if(!exportProgressNode["Progress"].isNull()) + jobGroup_.exportProgress.progress = exportProgressNode["Progress"].asString(); + if(!exportProgressNode["Status"].isNull()) + jobGroup_.exportProgress.status = exportProgressNode["Status"].asString(); auto strategyNode = jobGroupNode["Strategy"]; if(!strategyNode["Customized"].isNull()) jobGroup_.strategy.customized = strategyNode["Customized"].asString(); diff --git a/outboundbot/src/model/QueryJobsWithResultRequest.cc b/outboundbot/src/model/QueryJobsWithResultRequest.cc new file mode 100644 index 000000000..85d668ed4 --- /dev/null +++ b/outboundbot/src/model/QueryJobsWithResultRequest.cc @@ -0,0 +1,128 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::QueryJobsWithResultRequest; + +QueryJobsWithResultRequest::QueryJobsWithResultRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "QueryJobsWithResult") +{ + setMethod(HttpRequest::Method::Post); +} + +QueryJobsWithResultRequest::~QueryJobsWithResultRequest() +{} + +bool QueryJobsWithResultRequest::getHasReachedEndOfFlowFilter()const +{ + return hasReachedEndOfFlowFilter_; +} + +void QueryJobsWithResultRequest::setHasReachedEndOfFlowFilter(bool hasReachedEndOfFlowFilter) +{ + hasReachedEndOfFlowFilter_ = hasReachedEndOfFlowFilter; + setParameter("HasReachedEndOfFlowFilter", hasReachedEndOfFlowFilter ? "true" : "false"); +} + +bool QueryJobsWithResultRequest::getHasAnsweredFilter()const +{ + return hasAnsweredFilter_; +} + +void QueryJobsWithResultRequest::setHasAnsweredFilter(bool hasAnsweredFilter) +{ + hasAnsweredFilter_ = hasAnsweredFilter; + setParameter("HasAnsweredFilter", hasAnsweredFilter ? "true" : "false"); +} + +int QueryJobsWithResultRequest::getPageNumber()const +{ + return pageNumber_; +} + +void QueryJobsWithResultRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string QueryJobsWithResultRequest::getQueryText()const +{ + return queryText_; +} + +void QueryJobsWithResultRequest::setQueryText(const std::string& queryText) +{ + queryText_ = queryText; + setParameter("QueryText", queryText); +} + +bool QueryJobsWithResultRequest::getHasHangUpByRejectionFilter()const +{ + return hasHangUpByRejectionFilter_; +} + +void QueryJobsWithResultRequest::setHasHangUpByRejectionFilter(bool hasHangUpByRejectionFilter) +{ + hasHangUpByRejectionFilter_ = hasHangUpByRejectionFilter; + setParameter("HasHangUpByRejectionFilter", hasHangUpByRejectionFilter ? "true" : "false"); +} + +std::string QueryJobsWithResultRequest::getInstanceId()const +{ + return instanceId_; +} + +void QueryJobsWithResultRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string QueryJobsWithResultRequest::getJobStatusFilter()const +{ + return jobStatusFilter_; +} + +void QueryJobsWithResultRequest::setJobStatusFilter(const std::string& jobStatusFilter) +{ + jobStatusFilter_ = jobStatusFilter; + setParameter("JobStatusFilter", jobStatusFilter); +} + +int QueryJobsWithResultRequest::getPageSize()const +{ + return pageSize_; +} + +void QueryJobsWithResultRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string QueryJobsWithResultRequest::getJobGroupId()const +{ + return jobGroupId_; +} + +void QueryJobsWithResultRequest::setJobGroupId(const std::string& jobGroupId) +{ + jobGroupId_ = jobGroupId; + setParameter("JobGroupId", jobGroupId); +} + diff --git a/outboundbot/src/model/QueryJobsWithResultResult.cc b/outboundbot/src/model/QueryJobsWithResultResult.cc new file mode 100644 index 000000000..39279fe17 --- /dev/null +++ b/outboundbot/src/model/QueryJobsWithResultResult.cc @@ -0,0 +1,158 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +QueryJobsWithResultResult::QueryJobsWithResultResult() : + ServiceResult() +{} + +QueryJobsWithResultResult::QueryJobsWithResultResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +QueryJobsWithResultResult::~QueryJobsWithResultResult() +{} + +void QueryJobsWithResultResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto jobsNode = value["Jobs"]; + if(!jobsNode["PageCount"].isNull()) + jobs_.pageCount = std::stoi(jobsNode["PageCount"].asString()); + if(!jobsNode["PageNumber"].isNull()) + jobs_.pageNumber = std::stoi(jobsNode["PageNumber"].asString()); + if(!jobsNode["PageSize"].isNull()) + jobs_.pageSize = std::stoi(jobsNode["PageSize"].asString()); + if(!jobsNode["RowCount"].isNull()) + jobs_.rowCount = std::stoi(jobsNode["RowCount"].asString()); + auto allListNode = jobsNode["List"]["Job"]; + for (auto jobsNodeListJob : allListNode) + { + Jobs::Job jobObject; + if(!jobsNodeListJob["JobFailureReason"].isNull()) + jobObject.jobFailureReason = jobsNodeListJob["JobFailureReason"].asString(); + if(!jobsNodeListJob["StatusName"].isNull()) + jobObject.statusName = jobsNodeListJob["StatusName"].asString(); + if(!jobsNodeListJob["Id"].isNull()) + jobObject.id = jobsNodeListJob["Id"].asString(); + if(!jobsNodeListJob["Status"].isNull()) + jobObject.status = jobsNodeListJob["Status"].asString(); + auto latestTaskNode = value["LatestTask"]; + if(!latestTaskNode["TaskEndReason"].isNull()) + jobObject.latestTask.taskEndReason = latestTaskNode["TaskEndReason"].asString(); + if(!latestTaskNode["CallDuration"].isNull()) + jobObject.latestTask.callDuration = std::stoi(latestTaskNode["CallDuration"].asString()); + if(!latestTaskNode["CallDurationDisplay"].isNull()) + jobObject.latestTask.callDurationDisplay = latestTaskNode["CallDurationDisplay"].asString(); + if(!latestTaskNode["StatusName"].isNull()) + jobObject.latestTask.statusName = latestTaskNode["StatusName"].asString(); + if(!latestTaskNode["HasAnswered"].isNull()) + jobObject.latestTask.hasAnswered = latestTaskNode["HasAnswered"].asString() == "true"; + if(!latestTaskNode["HasReachedEndOfFlow"].isNull()) + jobObject.latestTask.hasReachedEndOfFlow = latestTaskNode["HasReachedEndOfFlow"].asString() == "true"; + if(!latestTaskNode["CallTime"].isNull()) + jobObject.latestTask.callTime = std::stol(latestTaskNode["CallTime"].asString()); + if(!latestTaskNode["HasHangUpByRejection"].isNull()) + jobObject.latestTask.hasHangUpByRejection = latestTaskNode["HasHangUpByRejection"].asString() == "true"; + if(!latestTaskNode["Status"].isNull()) + jobObject.latestTask.status = latestTaskNode["Status"].asString(); + auto allExtrasNode = latestTaskNode["Extras"]["Extra"]; + for (auto latestTaskNodeExtrasExtra : allExtrasNode) + { + Jobs::Job::LatestTask::Extra extraObject; + if(!latestTaskNodeExtrasExtra["Key"].isNull()) + extraObject.key = latestTaskNodeExtrasExtra["Key"].asString(); + if(!latestTaskNodeExtrasExtra["Value"].isNull()) + extraObject.value = latestTaskNodeExtrasExtra["Value"].asString(); + jobObject.latestTask.extras.push_back(extraObject); + } + auto contactNode = latestTaskNode["Contact"]; + if(!contactNode["PreferredPhoneNumber"].isNull()) + jobObject.latestTask.contact.preferredPhoneNumber = contactNode["PreferredPhoneNumber"].asString(); + if(!contactNode["JobUuid"].isNull()) + jobObject.latestTask.contact.jobUuid = contactNode["JobUuid"].asString(); + if(!contactNode["PhoneNumber"].isNull()) + jobObject.latestTask.contact.phoneNumber = contactNode["PhoneNumber"].asString(); + if(!contactNode["Role"].isNull()) + jobObject.latestTask.contact.role = contactNode["Role"].asString(); + if(!contactNode["Round"].isNull()) + jobObject.latestTask.contact.round = std::stoi(contactNode["Round"].asString()); + if(!contactNode["Name"].isNull()) + jobObject.latestTask.contact.name = contactNode["Name"].asString(); + if(!contactNode["Id"].isNull()) + jobObject.latestTask.contact.id = contactNode["Id"].asString(); + if(!contactNode["State"].isNull()) + jobObject.latestTask.contact.state = contactNode["State"].asString(); + if(!contactNode["ReferenceId"].isNull()) + jobObject.latestTask.contact.referenceId = contactNode["ReferenceId"].asString(); + if(!contactNode["Honorific"].isNull()) + jobObject.latestTask.contact.honorific = contactNode["Honorific"].asString(); + jobs_.list.push_back(jobObject); + } + auto allVariableNames = value["VariableNames"]["VariableName"]; + for (const auto &item : allVariableNames) + variableNames_.push_back(item.asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::vector QueryJobsWithResultResult::getVariableNames()const +{ + return variableNames_; +} + +std::string QueryJobsWithResultResult::getMessage()const +{ + return message_; +} + +QueryJobsWithResultResult::Jobs QueryJobsWithResultResult::getJobs()const +{ + return jobs_; +} + +int QueryJobsWithResultResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string QueryJobsWithResultResult::getCode()const +{ + return code_; +} + +bool QueryJobsWithResultResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/SaveAfterAnswerDelayPlaybackRequest.cc b/outboundbot/src/model/SaveAfterAnswerDelayPlaybackRequest.cc new file mode 100644 index 000000000..1211271fe --- /dev/null +++ b/outboundbot/src/model/SaveAfterAnswerDelayPlaybackRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveAfterAnswerDelayPlaybackRequest; + +SaveAfterAnswerDelayPlaybackRequest::SaveAfterAnswerDelayPlaybackRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "SaveAfterAnswerDelayPlayback") +{ + setMethod(HttpRequest::Method::Post); +} + +SaveAfterAnswerDelayPlaybackRequest::~SaveAfterAnswerDelayPlaybackRequest() +{} + +int SaveAfterAnswerDelayPlaybackRequest::getStrategyLevel()const +{ + return strategyLevel_; +} + +void SaveAfterAnswerDelayPlaybackRequest::setStrategyLevel(int strategyLevel) +{ + strategyLevel_ = strategyLevel; + setParameter("StrategyLevel", std::to_string(strategyLevel)); +} + +std::string SaveAfterAnswerDelayPlaybackRequest::getEntryId()const +{ + return entryId_; +} + +void SaveAfterAnswerDelayPlaybackRequest::setEntryId(const std::string& entryId) +{ + entryId_ = entryId; + setParameter("EntryId", entryId); +} + +int SaveAfterAnswerDelayPlaybackRequest::getAfterAnswerDelayPlayback()const +{ + return afterAnswerDelayPlayback_; +} + +void SaveAfterAnswerDelayPlaybackRequest::setAfterAnswerDelayPlayback(int afterAnswerDelayPlayback) +{ + afterAnswerDelayPlayback_ = afterAnswerDelayPlayback; + setParameter("AfterAnswerDelayPlayback", std::to_string(afterAnswerDelayPlayback)); +} + diff --git a/outboundbot/src/model/SaveAfterAnswerDelayPlaybackResult.cc b/outboundbot/src/model/SaveAfterAnswerDelayPlaybackResult.cc new file mode 100644 index 000000000..35f42ff26 --- /dev/null +++ b/outboundbot/src/model/SaveAfterAnswerDelayPlaybackResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +SaveAfterAnswerDelayPlaybackResult::SaveAfterAnswerDelayPlaybackResult() : + ServiceResult() +{} + +SaveAfterAnswerDelayPlaybackResult::SaveAfterAnswerDelayPlaybackResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveAfterAnswerDelayPlaybackResult::~SaveAfterAnswerDelayPlaybackResult() +{} + +void SaveAfterAnswerDelayPlaybackResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string SaveAfterAnswerDelayPlaybackResult::getMessage()const +{ + return message_; +} + +int SaveAfterAnswerDelayPlaybackResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SaveAfterAnswerDelayPlaybackResult::getCode()const +{ + return code_; +} + +bool SaveAfterAnswerDelayPlaybackResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/SaveBaseStrategyPeriodRequest.cc b/outboundbot/src/model/SaveBaseStrategyPeriodRequest.cc new file mode 100644 index 000000000..0a395f165 --- /dev/null +++ b/outboundbot/src/model/SaveBaseStrategyPeriodRequest.cc @@ -0,0 +1,86 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveBaseStrategyPeriodRequest; + +SaveBaseStrategyPeriodRequest::SaveBaseStrategyPeriodRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "SaveBaseStrategyPeriod") +{ + setMethod(HttpRequest::Method::Post); +} + +SaveBaseStrategyPeriodRequest::~SaveBaseStrategyPeriodRequest() +{} + +int SaveBaseStrategyPeriodRequest::getStrategyLevel()const +{ + return strategyLevel_; +} + +void SaveBaseStrategyPeriodRequest::setStrategyLevel(int strategyLevel) +{ + strategyLevel_ = strategyLevel; + setParameter("StrategyLevel", std::to_string(strategyLevel)); +} + +std::string SaveBaseStrategyPeriodRequest::getEntryId()const +{ + return entryId_; +} + +void SaveBaseStrategyPeriodRequest::setEntryId(const std::string& entryId) +{ + entryId_ = entryId; + setParameter("EntryId", entryId); +} + +bool SaveBaseStrategyPeriodRequest::getOnlyWeekdays()const +{ + return onlyWeekdays_; +} + +void SaveBaseStrategyPeriodRequest::setOnlyWeekdays(bool onlyWeekdays) +{ + onlyWeekdays_ = onlyWeekdays; + setParameter("OnlyWeekdays", onlyWeekdays ? "true" : "false"); +} + +std::string SaveBaseStrategyPeriodRequest::getWorkingTimeFramesJson()const +{ + return workingTimeFramesJson_; +} + +void SaveBaseStrategyPeriodRequest::setWorkingTimeFramesJson(const std::string& workingTimeFramesJson) +{ + workingTimeFramesJson_ = workingTimeFramesJson; + setParameter("WorkingTimeFramesJson", workingTimeFramesJson); +} + +std::vector SaveBaseStrategyPeriodRequest::getWorkingTime()const +{ + return workingTime_; +} + +void SaveBaseStrategyPeriodRequest::setWorkingTime(const std::vector& workingTime) +{ + workingTime_ = workingTime; + for(int dep1 = 0; dep1!= workingTime.size(); dep1++) { + setParameter("WorkingTime."+ std::to_string(dep1), workingTime.at(dep1)); + } +} + diff --git a/outboundbot/src/model/SaveBaseStrategyPeriodResult.cc b/outboundbot/src/model/SaveBaseStrategyPeriodResult.cc new file mode 100644 index 000000000..6f8e0b493 --- /dev/null +++ b/outboundbot/src/model/SaveBaseStrategyPeriodResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +SaveBaseStrategyPeriodResult::SaveBaseStrategyPeriodResult() : + ServiceResult() +{} + +SaveBaseStrategyPeriodResult::SaveBaseStrategyPeriodResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveBaseStrategyPeriodResult::~SaveBaseStrategyPeriodResult() +{} + +void SaveBaseStrategyPeriodResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string SaveBaseStrategyPeriodResult::getMessage()const +{ + return message_; +} + +int SaveBaseStrategyPeriodResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SaveBaseStrategyPeriodResult::getCode()const +{ + return code_; +} + +bool SaveBaseStrategyPeriodResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/SaveContactBlockListRequest.cc b/outboundbot/src/model/SaveContactBlockListRequest.cc new file mode 100644 index 000000000..d6967ff76 --- /dev/null +++ b/outboundbot/src/model/SaveContactBlockListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveContactBlockListRequest; + +SaveContactBlockListRequest::SaveContactBlockListRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "SaveContactBlockList") +{ + setMethod(HttpRequest::Method::Post); +} + +SaveContactBlockListRequest::~SaveContactBlockListRequest() +{} + +std::vector SaveContactBlockListRequest::getContactBlockListList()const +{ + return contactBlockListList_; +} + +void SaveContactBlockListRequest::setContactBlockListList(const std::vector& contactBlockListList) +{ + contactBlockListList_ = contactBlockListList; + for(int dep1 = 0; dep1!= contactBlockListList.size(); dep1++) { + setParameter("ContactBlockListList."+ std::to_string(dep1), contactBlockListList.at(dep1)); + } +} + +std::string SaveContactBlockListRequest::getInstanceId()const +{ + return instanceId_; +} + +void SaveContactBlockListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string SaveContactBlockListRequest::getContactBlockListsJson()const +{ + return contactBlockListsJson_; +} + +void SaveContactBlockListRequest::setContactBlockListsJson(const std::string& contactBlockListsJson) +{ + contactBlockListsJson_ = contactBlockListsJson; + setParameter("ContactBlockListsJson", contactBlockListsJson); +} + diff --git a/outboundbot/src/model/SaveContactBlockListResult.cc b/outboundbot/src/model/SaveContactBlockListResult.cc new file mode 100644 index 000000000..1ff6fa865 --- /dev/null +++ b/outboundbot/src/model/SaveContactBlockListResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +SaveContactBlockListResult::SaveContactBlockListResult() : + ServiceResult() +{} + +SaveContactBlockListResult::SaveContactBlockListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveContactBlockListResult::~SaveContactBlockListResult() +{} + +void SaveContactBlockListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["AffectedRows"].isNull()) + affectedRows_ = std::stoi(value["AffectedRows"].asString()); + +} + +std::string SaveContactBlockListResult::getMessage()const +{ + return message_; +} + +int SaveContactBlockListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +int SaveContactBlockListResult::getAffectedRows()const +{ + return affectedRows_; +} + +std::string SaveContactBlockListResult::getCode()const +{ + return code_; +} + +bool SaveContactBlockListResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/SaveContactWhiteListRequest.cc b/outboundbot/src/model/SaveContactWhiteListRequest.cc new file mode 100644 index 000000000..88facf733 --- /dev/null +++ b/outboundbot/src/model/SaveContactWhiteListRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveContactWhiteListRequest; + +SaveContactWhiteListRequest::SaveContactWhiteListRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "SaveContactWhiteList") +{ + setMethod(HttpRequest::Method::Post); +} + +SaveContactWhiteListRequest::~SaveContactWhiteListRequest() +{} + +std::vector SaveContactWhiteListRequest::getContactWhiteListList()const +{ + return contactWhiteListList_; +} + +void SaveContactWhiteListRequest::setContactWhiteListList(const std::vector& contactWhiteListList) +{ + contactWhiteListList_ = contactWhiteListList; + for(int dep1 = 0; dep1!= contactWhiteListList.size(); dep1++) { + setParameter("ContactWhiteListList."+ std::to_string(dep1), contactWhiteListList.at(dep1)); + } +} + +std::string SaveContactWhiteListRequest::getContactWhiteListsJson()const +{ + return contactWhiteListsJson_; +} + +void SaveContactWhiteListRequest::setContactWhiteListsJson(const std::string& contactWhiteListsJson) +{ + contactWhiteListsJson_ = contactWhiteListsJson; + setParameter("ContactWhiteListsJson", contactWhiteListsJson); +} + +std::string SaveContactWhiteListRequest::getInstanceId()const +{ + return instanceId_; +} + +void SaveContactWhiteListRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/outboundbot/src/model/SaveContactWhiteListResult.cc b/outboundbot/src/model/SaveContactWhiteListResult.cc new file mode 100644 index 000000000..f43666792 --- /dev/null +++ b/outboundbot/src/model/SaveContactWhiteListResult.cc @@ -0,0 +1,79 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +SaveContactWhiteListResult::SaveContactWhiteListResult() : + ServiceResult() +{} + +SaveContactWhiteListResult::SaveContactWhiteListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveContactWhiteListResult::~SaveContactWhiteListResult() +{} + +void SaveContactWhiteListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["AffectedRows"].isNull()) + affectedRows_ = std::stoi(value["AffectedRows"].asString()); + +} + +std::string SaveContactWhiteListResult::getMessage()const +{ + return message_; +} + +int SaveContactWhiteListResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +int SaveContactWhiteListResult::getAffectedRows()const +{ + return affectedRows_; +} + +std::string SaveContactWhiteListResult::getCode()const +{ + return code_; +} + +bool SaveContactWhiteListResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/SaveEffectiveDaysRequest.cc b/outboundbot/src/model/SaveEffectiveDaysRequest.cc new file mode 100644 index 000000000..4ebd4a6bc --- /dev/null +++ b/outboundbot/src/model/SaveEffectiveDaysRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveEffectiveDaysRequest; + +SaveEffectiveDaysRequest::SaveEffectiveDaysRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "SaveEffectiveDays") +{ + setMethod(HttpRequest::Method::Post); +} + +SaveEffectiveDaysRequest::~SaveEffectiveDaysRequest() +{} + +int SaveEffectiveDaysRequest::getEffectiveDays()const +{ + return effectiveDays_; +} + +void SaveEffectiveDaysRequest::setEffectiveDays(int effectiveDays) +{ + effectiveDays_ = effectiveDays; + setParameter("EffectiveDays", std::to_string(effectiveDays)); +} + +int SaveEffectiveDaysRequest::getStrategyLevel()const +{ + return strategyLevel_; +} + +void SaveEffectiveDaysRequest::setStrategyLevel(int strategyLevel) +{ + strategyLevel_ = strategyLevel; + setParameter("StrategyLevel", std::to_string(strategyLevel)); +} + +std::string SaveEffectiveDaysRequest::getEntryId()const +{ + return entryId_; +} + +void SaveEffectiveDaysRequest::setEntryId(const std::string& entryId) +{ + entryId_ = entryId; + setParameter("EntryId", entryId); +} + diff --git a/outboundbot/src/model/SaveEffectiveDaysResult.cc b/outboundbot/src/model/SaveEffectiveDaysResult.cc new file mode 100644 index 000000000..a4712c1db --- /dev/null +++ b/outboundbot/src/model/SaveEffectiveDaysResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +SaveEffectiveDaysResult::SaveEffectiveDaysResult() : + ServiceResult() +{} + +SaveEffectiveDaysResult::SaveEffectiveDaysResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveEffectiveDaysResult::~SaveEffectiveDaysResult() +{} + +void SaveEffectiveDaysResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string SaveEffectiveDaysResult::getMessage()const +{ + return message_; +} + +int SaveEffectiveDaysResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SaveEffectiveDaysResult::getCode()const +{ + return code_; +} + +bool SaveEffectiveDaysResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/SaveMaxAttemptsPerDayRequest.cc b/outboundbot/src/model/SaveMaxAttemptsPerDayRequest.cc new file mode 100644 index 000000000..352a633d3 --- /dev/null +++ b/outboundbot/src/model/SaveMaxAttemptsPerDayRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveMaxAttemptsPerDayRequest; + +SaveMaxAttemptsPerDayRequest::SaveMaxAttemptsPerDayRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "SaveMaxAttemptsPerDay") +{ + setMethod(HttpRequest::Method::Post); +} + +SaveMaxAttemptsPerDayRequest::~SaveMaxAttemptsPerDayRequest() +{} + +int SaveMaxAttemptsPerDayRequest::getMaxAttemptsPerDay()const +{ + return maxAttemptsPerDay_; +} + +void SaveMaxAttemptsPerDayRequest::setMaxAttemptsPerDay(int maxAttemptsPerDay) +{ + maxAttemptsPerDay_ = maxAttemptsPerDay; + setParameter("MaxAttemptsPerDay", std::to_string(maxAttemptsPerDay)); +} + +int SaveMaxAttemptsPerDayRequest::getStrategyLevel()const +{ + return strategyLevel_; +} + +void SaveMaxAttemptsPerDayRequest::setStrategyLevel(int strategyLevel) +{ + strategyLevel_ = strategyLevel; + setParameter("StrategyLevel", std::to_string(strategyLevel)); +} + +std::string SaveMaxAttemptsPerDayRequest::getEntryId()const +{ + return entryId_; +} + +void SaveMaxAttemptsPerDayRequest::setEntryId(const std::string& entryId) +{ + entryId_ = entryId; + setParameter("EntryId", entryId); +} + diff --git a/outboundbot/src/model/SaveMaxAttemptsPerDayResult.cc b/outboundbot/src/model/SaveMaxAttemptsPerDayResult.cc new file mode 100644 index 000000000..53a565c84 --- /dev/null +++ b/outboundbot/src/model/SaveMaxAttemptsPerDayResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +SaveMaxAttemptsPerDayResult::SaveMaxAttemptsPerDayResult() : + ServiceResult() +{} + +SaveMaxAttemptsPerDayResult::SaveMaxAttemptsPerDayResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SaveMaxAttemptsPerDayResult::~SaveMaxAttemptsPerDayResult() +{} + +void SaveMaxAttemptsPerDayResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string SaveMaxAttemptsPerDayResult::getMessage()const +{ + return message_; +} + +int SaveMaxAttemptsPerDayResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SaveMaxAttemptsPerDayResult::getCode()const +{ + return code_; +} + +bool SaveMaxAttemptsPerDayResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/SuspendCallRequest.cc b/outboundbot/src/model/SuspendCallRequest.cc new file mode 100644 index 000000000..54f2a1175 --- /dev/null +++ b/outboundbot/src/model/SuspendCallRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SuspendCallRequest; + +SuspendCallRequest::SuspendCallRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "SuspendCall") +{ + setMethod(HttpRequest::Method::Post); +} + +SuspendCallRequest::~SuspendCallRequest() +{} + +std::string SuspendCallRequest::getGroupId()const +{ + return groupId_; +} + +void SuspendCallRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::vector SuspendCallRequest::getCalledNumbers()const +{ + return calledNumbers_; +} + +void SuspendCallRequest::setCalledNumbers(const std::vector& calledNumbers) +{ + calledNumbers_ = calledNumbers; + for(int dep1 = 0; dep1!= calledNumbers.size(); dep1++) { + setParameter("CalledNumbers."+ std::to_string(dep1), calledNumbers.at(dep1)); + } +} + +std::string SuspendCallRequest::getInstanceId()const +{ + return instanceId_; +} + +void SuspendCallRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/outboundbot/src/model/SuspendCallResult.cc b/outboundbot/src/model/SuspendCallResult.cc new file mode 100644 index 000000000..aae8e5209 --- /dev/null +++ b/outboundbot/src/model/SuspendCallResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +SuspendCallResult::SuspendCallResult() : + ServiceResult() +{} + +SuspendCallResult::SuspendCallResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SuspendCallResult::~SuspendCallResult() +{} + +void SuspendCallResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string SuspendCallResult::getMessage()const +{ + return message_; +} + +int SuspendCallResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SuspendCallResult::getCode()const +{ + return code_; +} + +bool SuspendCallResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/SuspendCallWithFileRequest.cc b/outboundbot/src/model/SuspendCallWithFileRequest.cc new file mode 100644 index 000000000..d2822a2ff --- /dev/null +++ b/outboundbot/src/model/SuspendCallWithFileRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SuspendCallWithFileRequest; + +SuspendCallWithFileRequest::SuspendCallWithFileRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "SuspendCallWithFile") +{ + setMethod(HttpRequest::Method::Post); +} + +SuspendCallWithFileRequest::~SuspendCallWithFileRequest() +{} + +std::string SuspendCallWithFileRequest::getGroupId()const +{ + return groupId_; +} + +void SuspendCallWithFileRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string SuspendCallWithFileRequest::getInstanceId()const +{ + return instanceId_; +} + +void SuspendCallWithFileRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + +std::string SuspendCallWithFileRequest::getFilePath()const +{ + return filePath_; +} + +void SuspendCallWithFileRequest::setFilePath(const std::string& filePath) +{ + filePath_ = filePath; + setParameter("FilePath", filePath); +} + diff --git a/outboundbot/src/model/SuspendCallWithFileResult.cc b/outboundbot/src/model/SuspendCallWithFileResult.cc new file mode 100644 index 000000000..6c7c8d049 --- /dev/null +++ b/outboundbot/src/model/SuspendCallWithFileResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +SuspendCallWithFileResult::SuspendCallWithFileResult() : + ServiceResult() +{} + +SuspendCallWithFileResult::SuspendCallWithFileResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +SuspendCallWithFileResult::~SuspendCallWithFileResult() +{} + +void SuspendCallWithFileResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string SuspendCallWithFileResult::getMessage()const +{ + return message_; +} + +int SuspendCallWithFileResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string SuspendCallWithFileResult::getCode()const +{ + return code_; +} + +bool SuspendCallWithFileResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/TagResourcesRequest.cc b/outboundbot/src/model/TagResourcesRequest.cc new file mode 100644 index 000000000..5fb902924 --- /dev/null +++ b/outboundbot/src/model/TagResourcesRequest.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::OutboundBot::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "TagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +TagResourcesRequest::~TagResourcesRequest() +{} + +std::vector TagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void TagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string TagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void TagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string TagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void TagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector TagResourcesRequest::getTag()const +{ + return tag_; +} + +void TagResourcesRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1 + 1); + setParameter(tagObjStr + ".Value", tagObj.value); + setParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/outboundbot/src/model/TagResourcesResult.cc b/outboundbot/src/model/TagResourcesResult.cc new file mode 100644 index 000000000..b824a1ed2 --- /dev/null +++ b/outboundbot/src/model/TagResourcesResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +TagResourcesResult::TagResourcesResult() : + ServiceResult() +{} + +TagResourcesResult::TagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +TagResourcesResult::~TagResourcesResult() +{} + +void TagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string TagResourcesResult::getMessage()const +{ + return message_; +} + +int TagResourcesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string TagResourcesResult::getCode()const +{ + return code_; +} + +bool TagResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/UntagResourcesRequest.cc b/outboundbot/src/model/UntagResourcesRequest.cc new file mode 100644 index 000000000..8a1f18ffc --- /dev/null +++ b/outboundbot/src/model/UntagResourcesRequest.cc @@ -0,0 +1,88 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() : + RpcServiceRequest("outboundbot", "2019-12-26", "UntagResources") +{ + setMethod(HttpRequest::Method::Post); +} + +UntagResourcesRequest::~UntagResourcesRequest() +{} + +bool UntagResourcesRequest::getAll()const +{ + return all_; +} + +void UntagResourcesRequest::setAll(bool all) +{ + all_ = all; + setParameter("All", all ? "true" : "false"); +} + +std::vector UntagResourcesRequest::getResourceId()const +{ + return resourceId_; +} + +void UntagResourcesRequest::setResourceId(const std::vector& resourceId) +{ + resourceId_ = resourceId; + for(int dep1 = 0; dep1!= resourceId.size(); dep1++) { + setParameter("ResourceId."+ std::to_string(dep1), resourceId.at(dep1)); + } +} + +std::string UntagResourcesRequest::getResourceType()const +{ + return resourceType_; +} + +void UntagResourcesRequest::setResourceType(const std::string& resourceType) +{ + resourceType_ = resourceType; + setParameter("ResourceType", resourceType); +} + +std::string UntagResourcesRequest::getRegionId()const +{ + return regionId_; +} + +void UntagResourcesRequest::setRegionId(const std::string& regionId) +{ + regionId_ = regionId; + setParameter("RegionId", regionId); +} + +std::vector UntagResourcesRequest::getTagKey()const +{ + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector& tagKey) +{ + tagKey_ = tagKey; + for(int dep1 = 0; dep1!= tagKey.size(); dep1++) { + setParameter("TagKey."+ std::to_string(dep1), tagKey.at(dep1)); + } +} + diff --git a/outboundbot/src/model/UntagResourcesResult.cc b/outboundbot/src/model/UntagResourcesResult.cc new file mode 100644 index 000000000..7658ecab8 --- /dev/null +++ b/outboundbot/src/model/UntagResourcesResult.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::OutboundBot; +using namespace AlibabaCloud::OutboundBot::Model; + +UntagResourcesResult::UntagResourcesResult() : + ServiceResult() +{} + +UntagResourcesResult::UntagResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UntagResourcesResult::~UntagResourcesResult() +{} + +void UntagResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + +} + +std::string UntagResourcesResult::getMessage()const +{ + return message_; +} + +int UntagResourcesResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +std::string UntagResourcesResult::getCode()const +{ + return code_; +} + +bool UntagResourcesResult::getSuccess()const +{ + return success_; +} +