From 4c3ae151cb7fbda08cc31bd009c95ce2f0b0457b Mon Sep 17 00:00:00 2001 From: sdk-team Date: Thu, 21 Apr 2022 07:59:27 +0000 Subject: [PATCH] Supported new features for outbound. --- CHANGELOG | 3 + VERSION | 2 +- outboundbot/CMakeLists.txt | 4 + .../outboundbot/OutboundBotClient.h | 8 + ...lyNumberDistrictInfoParsingResultRequest.h | 68 ++-- .../outboundbot/model/AssignJobsRequest.h | 110 +++--- .../outboundbot/model/CancelJobsRequest.h | 98 +++-- .../model/ChangeResourceGroupRequest.h | 74 ++-- .../model/CreateBatchJobsRequest.h | 116 +++--- .../outboundbot/model/CreateBatchJobsResult.h | 2 +- .../model/CreateBatchRepeatJobRequest.h | 134 ++++--- .../model/CreateDialogueFlowRequest.h | 86 ++--- .../model/CreateDownloadUrlRequest.h | 74 ++-- .../model/CreateGlobalQuestionRequest.h | 98 +++-- .../model/CreateInstanceBindNumberRequest.h | 74 ++-- .../outboundbot/model/CreateInstanceRequest.h | 122 +++--- .../outboundbot/model/CreateIntentRequest.h | 98 +++-- .../model/CreateJobDataParsingTaskRequest.h | 74 ++-- .../model/CreateJobGroupExportTaskRequest.h | 80 ++-- .../outboundbot/model/CreateJobGroupRequest.h | 128 +++---- ...eateNumberDistrictInfoDownloadUrlRequest.h | 68 ++-- ...eateNumberDistrictInfoParsingTaskRequest.h | 74 ++-- .../model/CreateOutboundCallNumberRequest.h | 86 ++--- .../outboundbot/model/CreateScriptRequest.h | 134 ++++--- .../model/CreateScriptWaveformRequest.h | 92 +++-- .../outboundbot/model/CreateTagRequest.h | 86 ++--- .../model/CreateTaskExportTaskRequest.h | 218 ++++++----- .../DeleteAllNumberDistrictInfoRequest.h | 62 ++-- .../model/DeleteContactBlockListRequest.h | 80 ++-- .../model/DeleteContactWhiteListRequest.h | 80 ++-- .../model/DeleteDialogueFlowRequest.h | 80 ++-- .../model/DeleteGlobalQuestionRequest.h | 80 ++-- .../outboundbot/model/DeleteInstanceRequest.h | 68 ++-- .../outboundbot/model/DeleteIntentRequest.h | 80 ++-- .../outboundbot/model/DeleteJobGroupRequest.h | 74 ++-- .../model/DeleteOutboundCallNumberRequest.h | 74 ++-- .../outboundbot/model/DeleteScriptRequest.h | 74 ++-- .../model/DeleteScriptWaveformRequest.h | 80 ++-- .../DescribeDialogueNodeStatisticsRequest.h | 80 ++-- .../DescribeDialogueNodeStatisticsResult.h | 2 +- .../model/DescribeDsReportsRequest.h | 74 ++-- .../model/DescribeGlobalQuestionRequest.h | 80 ++-- .../model/DescribeGroupExecutingInfoRequest.h | 74 ++-- .../model/DescribeGroupExecutingInfoResult.h | 2 +- .../model/DescribeInstanceRequest.h | 68 ++-- .../outboundbot/model/DescribeIntentRequest.h | 80 ++-- .../outboundbot/model/DescribeIntentResult.h | 2 +- .../model/DescribeIntentStatisticsRequest.h | 80 ++-- ...escribeJobDataParsingTaskProgressRequest.h | 74 ++-- ...escribeJobGroupExportTaskProgressRequest.h | 74 ++-- .../model/DescribeJobGroupRequest.h | 80 ++-- .../outboundbot/model/DescribeJobRequest.h | 77 ++-- .../outboundbot/model/DescribeJobResult.h | 19 + .../DescribeNumberDistrictInfoStatusRequest.h | 62 ++-- .../outboundbot/model/DescribeScriptRequest.h | 74 ++-- .../model/DescribeScriptVoiceConfigRequest.h | 80 ++-- .../model/DescribeTTSConfigRequest.h | 74 ++-- .../model/DescribeTTSDemoRequest.h | 98 +++-- .../model/DescribeTagHitsSummaryRequest.h | 74 ++-- .../model/DescribeTenantBindNumberRequest.h | 68 ++-- .../outboundbot/model/DialogueRequest.h | 128 +++---- ...ssNumberDistrictInfoParsingResultRequest.h | 68 ++-- .../model/DownloadRecordingRequest.h | 74 ++-- .../model/DuplicateScriptRequest.h | 80 ++-- .../outboundbot/model/ExportScriptRequest.h | 74 ++-- .../model/GenerateUploadUrlRequest.h | 45 +++ .../model/GenerateUploadUrlResult.h | 70 ++++ .../GetAfterAnswerDelayPlaybackRequest.h | 74 ++-- .../model/GetAsrServerInfoRequest.h | 74 ++-- .../model/GetBaseStrategyPeriodRequest.h | 74 ++-- .../GetConcurrentConversationQuotaRequest.h | 62 ++-- .../model/GetContactBlockListRequest.h | 86 ++--- .../model/GetContactBlockListResult.h | 2 +- .../model/GetContactWhiteListRequest.h | 86 ++--- .../model/GetContactWhiteListResult.h | 2 +- .../model/GetCurrentConcurrencyRequest.h | 68 ++-- .../model/GetEffectiveDaysRequest.h | 74 ++-- .../model/GetEffectiveDaysResult.h | 4 +- .../GetEmptyNumberNoMoreCallsInfoRequest.h | 74 ++-- .../model/GetInstanceConfigRequest.h | 68 ++-- .../model/GetInstanceConfigResult.h | 1 + .../model/GetMaxAttemptsPerDayRequest.h | 74 ++-- ...erDistrictInfoTemplateDownloadUrlRequest.h | 62 ++-- .../outboundbot/model/GetSummaryInfoRequest.h | 68 ++-- .../outboundbot/model/GetTaskByUuidRequest.h | 80 ++-- .../outboundbot/model/GetTaskByUuidResult.h | 4 +- .../outboundbot/model/GetVersionRequest.h | 62 ++-- .../outboundbot/model/ImportScriptRequest.h | 74 ++-- .../model/InflightTaskTimeoutRequest.h | 80 ++-- .../ListAllTenantBindNumberBindingRequest.h | 68 ++-- .../model/ListChatbotInstancesRequest.h | 74 ++-- .../model/ListDialogueFlowsRequest.h | 74 ++-- .../model/ListDialogueFlowsResult.h | 2 +- .../model/ListDownloadTasksRequest.h | 74 ++-- .../model/ListGlobalQuestionsRequest.h | 86 ++--- .../outboundbot/model/ListInstancesRequest.h | 84 ++--- .../outboundbot/model/ListInstancesResult.h | 2 +- .../outboundbot/model/ListIntentsRequest.h | 92 +++-- .../outboundbot/model/ListIntentsResult.h | 2 +- .../model/ListJobGroupsAsyncRequest.h | 68 ++-- .../model/ListJobGroupsAsyncResult.h | 4 +- .../outboundbot/model/ListJobGroupsRequest.h | 110 +++--- .../outboundbot/model/ListJobGroupsResult.h | 2 +- .../model/ListJobsByGroupRequest.h | 98 +++-- .../outboundbot/model/ListJobsByGroupResult.h | 2 +- .../outboundbot/model/ListJobsRequest.h | 74 ++-- .../outboundbot/model/ListJobsResult.h | 4 +- .../model/ListOutboundCallNumbersRequest.h | 80 ++-- .../model/ListResourceTagsRequest.h | 80 ++-- .../model/ListSchedulerInstancesRequest.h | 68 ++-- .../model/ListScriptPublishHistoriesRequest.h | 86 ++--- .../model/ListScriptVoiceConfigsRequest.h | 86 ++--- .../outboundbot/model/ListScriptsRequest.h | 80 ++-- .../model/ListTagResourcesRequest.h | 102 +++--- .../model/ListTagResourcesResult.h | 4 +- .../outboundbot/model/ListTagsRequest.h | 74 ++-- .../model/ModifyBatchJobsRequest.h | 122 +++--- .../model/ModifyDialogueFlowRequest.h | 92 +++-- .../ModifyEmptyNumberNoMoreCallsInfoRequest.h | 80 ++-- .../model/ModifyGlobalQuestionRequest.h | 104 +++--- .../outboundbot/model/ModifyInstanceRequest.h | 122 +++--- .../outboundbot/model/ModifyIntentRequest.h | 104 +++--- .../outboundbot/model/ModifyJobGroupRequest.h | 140 ++++--- .../model/ModifyOutboundCallNumberRequest.h | 92 +++-- .../outboundbot/model/ModifyScriptRequest.h | 140 ++++--- .../model/ModifyScriptVoiceConfigRequest.h | 92 +++-- .../model/ModifyTTSConfigRequest.h | 104 +++--- .../model/ModifyTagGroupsRequest.h | 86 ++--- .../model/PublishScriptForDebugRequest.h | 74 ++-- .../outboundbot/model/PublishScriptRequest.h | 86 ++--- .../outboundbot/model/QueryJobsRequest.h | 122 +++--- .../outboundbot/model/QueryJobsResult.h | 2 +- .../model/QueryJobsWithResultRequest.h | 116 +++--- .../model/QueryScriptWaveformsRequest.h | 80 ++-- .../model/QueryScriptsByStatusRequest.h | 86 ++--- .../model/QueryScriptsByStatusResult.h | 6 +- .../outboundbot/model/RecordFailureRequest.h | 116 +++--- .../outboundbot/model/ResumeJobsRequest.h | 98 +++-- .../outboundbot/model/RollbackScriptRequest.h | 80 ++-- .../SaveAfterAnswerDelayPlaybackRequest.h | 80 ++-- .../model/SaveBaseStrategyPeriodRequest.h | 92 +++-- .../model/SaveContactBlockListRequest.h | 80 ++-- .../model/SaveContactWhiteListRequest.h | 80 ++-- .../model/SaveEffectiveDaysRequest.h | 80 ++-- .../model/SaveMaxAttemptsPerDayRequest.h | 80 ++-- .../outboundbot/model/SearchTaskRequest.h | 200 +++++----- .../outboundbot/model/StartJobRequest.h | 104 +++--- .../model/SubmitBatchJobsRequest.h | 74 ++-- .../model/SubmitRecordingRequest.h | 92 +++-- .../model/SubmitScriptReviewRequest.h | 80 ++-- .../outboundbot/model/SuspendCallRequest.h | 80 ++-- .../model/SuspendCallWithFileRequest.h | 80 ++-- .../outboundbot/model/SuspendJobsRequest.h | 98 +++-- .../outboundbot/model/TagResourcesRequest.h | 96 +++-- .../outboundbot/model/TaskPreparingRequest.h | 80 ++-- .../outboundbot/model/TerminateCallRequest.h | 74 ++-- .../outboundbot/model/UntagResourcesRequest.h | 92 +++-- .../model/WithdrawScriptReviewRequest.h | 74 ++-- .../model/WithdrawScriptReviewResult.h | 4 +- outboundbot/src/OutboundBotClient.cc | 36 ++ ...yNumberDistrictInfoParsingResultRequest.cc | 46 ++- outboundbot/src/model/AssignJobsRequest.cc | 132 +++---- outboundbot/src/model/CancelJobsRequest.cc | 108 +++--- outboundbot/src/model/CancelJobsResult.cc | 4 +- .../src/model/ChangeResourceGroupRequest.cc | 58 ++- .../src/model/ChangeResourceGroupResult.cc | 8 +- .../src/model/CreateBatchJobsRequest.cc | 143 +++----- .../src/model/CreateBatchJobsResult.cc | 68 ++-- .../src/model/CreateBatchRepeatJobRequest.cc | 179 ++++----- .../src/model/CreateDialogueFlowRequest.cc | 82 ++--- .../src/model/CreateDialogueFlowResult.cc | 12 +- .../src/model/CreateDownloadUrlRequest.cc | 58 ++- .../src/model/CreateGlobalQuestionRequest.cc | 106 +++--- .../src/model/CreateGlobalQuestionResult.cc | 12 +- .../model/CreateInstanceBindNumberRequest.cc | 58 ++- .../src/model/CreateInstanceRequest.cc | 155 ++++---- outboundbot/src/model/CreateInstanceResult.cc | 36 +- outboundbot/src/model/CreateIntentRequest.cc | 106 +++--- outboundbot/src/model/CreateIntentResult.cc | 12 +- .../model/CreateJobDataParsingTaskRequest.cc | 58 ++- .../model/CreateJobDataParsingTaskResult.cc | 4 +- .../model/CreateJobGroupExportTaskRequest.cc | 71 ++-- .../model/CreateJobGroupExportTaskResult.cc | 4 +- .../src/model/CreateJobGroupRequest.cc | 167 ++++----- ...ateNumberDistrictInfoDownloadUrlRequest.cc | 46 ++- ...ateNumberDistrictInfoParsingTaskRequest.cc | 58 ++- .../model/CreateOutboundCallNumberRequest.cc | 82 ++--- .../model/CreateOutboundCallNumberResult.cc | 8 +- outboundbot/src/model/CreateScriptRequest.cc | 180 ++++----- .../src/model/CreateScriptWaveformRequest.cc | 94 +++-- .../src/model/CreateScriptWaveformResult.cc | 8 +- outboundbot/src/model/CreateTagRequest.cc | 82 ++--- outboundbot/src/model/CreateTagResult.cc | 8 +- .../src/model/CreateTaskExportTaskRequest.cc | 346 ++++++++---------- .../DeleteAllNumberDistrictInfoRequest.cc | 34 +- .../model/DeleteContactBlockListRequest.cc | 70 ++-- .../src/model/DeleteContactBlockListResult.cc | 8 +- .../model/DeleteContactWhiteListRequest.cc | 70 ++-- .../src/model/DeleteContactWhiteListResult.cc | 8 +- .../src/model/DeleteDialogueFlowRequest.cc | 70 ++-- .../src/model/DeleteDialogueFlowResult.cc | 4 +- .../src/model/DeleteGlobalQuestionRequest.cc | 70 ++-- .../src/model/DeleteGlobalQuestionResult.cc | 4 +- .../src/model/DeleteInstanceRequest.cc | 46 ++- outboundbot/src/model/DeleteInstanceResult.cc | 4 +- outboundbot/src/model/DeleteIntentRequest.cc | 70 ++-- outboundbot/src/model/DeleteIntentResult.cc | 4 +- .../src/model/DeleteJobGroupRequest.cc | 58 ++- outboundbot/src/model/DeleteJobGroupResult.cc | 4 +- .../model/DeleteOutboundCallNumberRequest.cc | 58 ++- .../model/DeleteOutboundCallNumberResult.cc | 4 +- outboundbot/src/model/DeleteScriptRequest.cc | 58 ++- outboundbot/src/model/DeleteScriptResult.cc | 4 +- .../src/model/DeleteScriptWaveformRequest.cc | 70 ++-- .../src/model/DeleteScriptWaveformResult.cc | 4 +- .../DescribeDialogueNodeStatisticsRequest.cc | 70 ++-- .../DescribeDialogueNodeStatisticsResult.cc | 44 +-- .../src/model/DescribeDsReportsRequest.cc | 58 ++- .../src/model/DescribeDsReportsResult.cc | 4 +- .../model/DescribeGlobalQuestionRequest.cc | 70 ++-- .../src/model/DescribeGlobalQuestionResult.cc | 12 +- .../DescribeGroupExecutingInfoRequest.cc | 58 ++- .../model/DescribeGroupExecutingInfoResult.cc | 44 +-- .../src/model/DescribeInstanceRequest.cc | 46 ++- .../src/model/DescribeInstanceResult.cc | 36 +- .../src/model/DescribeIntentRequest.cc | 70 ++-- outboundbot/src/model/DescribeIntentResult.cc | 24 +- .../model/DescribeIntentStatisticsRequest.cc | 70 ++-- .../model/DescribeIntentStatisticsResult.cc | 44 +-- ...scribeJobDataParsingTaskProgressRequest.cc | 58 ++- ...scribeJobGroupExportTaskProgressRequest.cc | 58 ++- ...escribeJobGroupExportTaskProgressResult.cc | 12 +- .../src/model/DescribeJobGroupRequest.cc | 71 ++-- outboundbot/src/model/DescribeJobRequest.cc | 67 ++-- outboundbot/src/model/DescribeJobResult.cc | 31 ++ ...DescribeNumberDistrictInfoStatusRequest.cc | 34 +- .../src/model/DescribeScriptRequest.cc | 58 ++- .../model/DescribeScriptVoiceConfigRequest.cc | 70 ++-- .../model/DescribeScriptVoiceConfigResult.cc | 20 +- .../src/model/DescribeTTSConfigRequest.cc | 58 ++- .../src/model/DescribeTTSDemoRequest.cc | 106 +++--- .../model/DescribeTagHitsSummaryRequest.cc | 58 ++- .../src/model/DescribeTagHitsSummaryResult.cc | 16 +- .../model/DescribeTenantBindNumberRequest.cc | 46 ++- outboundbot/src/model/DialogueRequest.cc | 166 ++++----- outboundbot/src/model/DialogueResult.cc | 4 +- ...sNumberDistrictInfoParsingResultRequest.cc | 46 ++- .../src/model/DownloadRecordingRequest.cc | 58 ++- .../src/model/DownloadRecordingResult.cc | 8 +- .../src/model/DuplicateScriptRequest.cc | 70 ++-- .../src/model/DuplicateScriptResult.cc | 8 +- outboundbot/src/model/ExportScriptRequest.cc | 58 ++- outboundbot/src/model/ExportScriptResult.cc | 4 +- .../src/model/GenerateUploadUrlRequest.cc | 45 +++ .../src/model/GenerateUploadUrlResult.cc | 94 +++++ .../GetAfterAnswerDelayPlaybackRequest.cc | 58 ++- .../GetAfterAnswerDelayPlaybackResult.cc | 4 +- .../src/model/GetAsrServerInfoRequest.cc | 58 ++- .../src/model/GetAsrServerInfoResult.cc | 8 +- .../src/model/GetBaseStrategyPeriodRequest.cc | 58 ++- .../src/model/GetBaseStrategyPeriodResult.cc | 20 +- .../GetConcurrentConversationQuotaRequest.cc | 34 +- .../GetConcurrentConversationQuotaResult.cc | 12 +- .../src/model/GetContactBlockListRequest.cc | 82 ++--- .../src/model/GetContactBlockListResult.cc | 20 +- .../src/model/GetContactWhiteListRequest.cc | 82 ++--- .../src/model/GetContactWhiteListResult.cc | 24 +- .../src/model/GetCurrentConcurrencyRequest.cc | 46 ++- .../src/model/GetCurrentConcurrencyResult.cc | 8 +- .../src/model/GetEffectiveDaysRequest.cc | 58 ++- .../src/model/GetEffectiveDaysResult.cc | 18 +- .../GetEmptyNumberNoMoreCallsInfoRequest.cc | 58 ++- .../GetEmptyNumberNoMoreCallsInfoResult.cc | 8 +- .../src/model/GetInstanceConfigRequest.cc | 46 ++- .../src/model/GetInstanceConfigResult.cc | 2 + .../src/model/GetMaxAttemptsPerDayRequest.cc | 58 ++- .../src/model/GetMaxAttemptsPerDayResult.cc | 8 +- ...rDistrictInfoTemplateDownloadUrlRequest.cc | 34 +- .../src/model/GetSummaryInfoRequest.cc | 47 +-- outboundbot/src/model/GetSummaryInfoResult.cc | 16 +- outboundbot/src/model/GetTaskByUuidRequest.cc | 70 ++-- outboundbot/src/model/GetTaskByUuidResult.cc | 40 +- outboundbot/src/model/GetVersionRequest.cc | 34 +- outboundbot/src/model/GetVersionResult.cc | 8 +- outboundbot/src/model/ImportScriptRequest.cc | 58 ++- outboundbot/src/model/ImportScriptResult.cc | 8 +- .../src/model/InflightTaskTimeoutRequest.cc | 70 ++-- .../src/model/InflightTaskTimeoutResult.cc | 8 +- .../ListAllTenantBindNumberBindingRequest.cc | 46 ++- .../src/model/ListChatbotInstancesRequest.cc | 58 ++- .../src/model/ListDialogueFlowsRequest.cc | 58 ++- .../src/model/ListDialogueFlowsResult.cc | 8 +- .../src/model/ListDownloadTasksRequest.cc | 58 ++- .../src/model/ListGlobalQuestionsRequest.cc | 82 ++--- .../src/model/ListGlobalQuestionsResult.cc | 12 +- outboundbot/src/model/ListInstancesRequest.cc | 68 ++-- outboundbot/src/model/ListInstancesResult.cc | 40 +- outboundbot/src/model/ListIntentsRequest.cc | 94 +++-- outboundbot/src/model/ListIntentsResult.cc | 24 +- .../src/model/ListJobGroupsAsyncRequest.cc | 46 ++- .../src/model/ListJobGroupsAsyncResult.cc | 88 ++--- outboundbot/src/model/ListJobGroupsRequest.cc | 130 +++---- outboundbot/src/model/ListJobGroupsResult.cc | 76 ++-- .../src/model/ListJobsByGroupRequest.cc | 106 +++--- .../src/model/ListJobsByGroupResult.cc | 60 +-- outboundbot/src/model/ListJobsRequest.cc | 59 ++- outboundbot/src/model/ListJobsResult.cc | 108 +++--- .../model/ListOutboundCallNumbersRequest.cc | 70 ++-- .../model/ListOutboundCallNumbersResult.cc | 4 +- .../src/model/ListResourceTagsRequest.cc | 70 ++-- .../src/model/ListResourceTagsResult.cc | 12 +- .../model/ListSchedulerInstancesRequest.cc | 46 ++- .../src/model/ListSchedulerInstancesResult.cc | 16 +- .../ListScriptPublishHistoriesRequest.cc | 82 ++--- .../model/ListScriptPublishHistoriesResult.cc | 12 +- .../model/ListScriptVoiceConfigsRequest.cc | 82 ++--- .../src/model/ListScriptVoiceConfigsResult.cc | 20 +- outboundbot/src/model/ListScriptsRequest.cc | 70 ++-- .../src/model/ListTagResourcesRequest.cc | 105 +++--- .../src/model/ListTagResourcesResult.cc | 26 +- outboundbot/src/model/ListTagsRequest.cc | 58 ++- outboundbot/src/model/ListTagsResult.cc | 24 +- .../src/model/ModifyBatchJobsRequest.cc | 155 ++++---- .../src/model/ModifyBatchJobsResult.cc | 68 ++-- .../src/model/ModifyDialogueFlowRequest.cc | 94 +++-- .../src/model/ModifyDialogueFlowResult.cc | 16 +- ...ModifyEmptyNumberNoMoreCallsInfoRequest.cc | 70 ++-- .../ModifyEmptyNumberNoMoreCallsInfoResult.cc | 8 +- .../src/model/ModifyGlobalQuestionRequest.cc | 118 +++--- .../src/model/ModifyGlobalQuestionResult.cc | 12 +- .../src/model/ModifyInstanceRequest.cc | 155 ++++---- outboundbot/src/model/ModifyInstanceResult.cc | 36 +- outboundbot/src/model/ModifyIntentRequest.cc | 118 +++--- outboundbot/src/model/ModifyIntentResult.cc | 12 +- .../src/model/ModifyJobGroupRequest.cc | 191 ++++------ .../model/ModifyOutboundCallNumberRequest.cc | 94 +++-- .../model/ModifyOutboundCallNumberResult.cc | 4 +- outboundbot/src/model/ModifyScriptRequest.cc | 192 ++++------ .../model/ModifyScriptVoiceConfigRequest.cc | 94 +++-- .../model/ModifyScriptVoiceConfigResult.cc | 20 +- .../src/model/ModifyTTSConfigRequest.cc | 118 +++--- .../src/model/ModifyTagGroupsRequest.cc | 82 ++--- .../src/model/ModifyTagGroupsResult.cc | 24 +- .../src/model/PublishScriptForDebugRequest.cc | 58 ++- .../src/model/PublishScriptForDebugResult.cc | 4 +- outboundbot/src/model/PublishScriptRequest.cc | 82 ++--- outboundbot/src/model/PublishScriptResult.cc | 4 +- outboundbot/src/model/QueryJobsRequest.cc | 154 ++++---- outboundbot/src/model/QueryJobsResult.cc | 112 +++--- .../src/model/QueryJobsWithResultRequest.cc | 142 +++---- .../src/model/QueryScriptWaveformsRequest.cc | 70 ++-- .../src/model/QueryScriptWaveformsResult.cc | 16 +- .../src/model/QueryScriptsByStatusRequest.cc | 83 ++--- .../src/model/QueryScriptsByStatusResult.cc | 44 +-- outboundbot/src/model/RecordFailureRequest.cc | 142 +++---- outboundbot/src/model/ResumeJobsRequest.cc | 108 +++--- outboundbot/src/model/ResumeJobsResult.cc | 4 +- .../src/model/RollbackScriptRequest.cc | 70 ++-- outboundbot/src/model/RollbackScriptResult.cc | 4 +- .../SaveAfterAnswerDelayPlaybackRequest.cc | 70 ++-- .../model/SaveBaseStrategyPeriodRequest.cc | 95 ++--- .../src/model/SaveContactBlockListRequest.cc | 71 ++-- .../src/model/SaveContactWhiteListRequest.cc | 71 ++-- .../src/model/SaveEffectiveDaysRequest.cc | 70 ++-- .../src/model/SaveEffectiveDaysResult.cc | 8 +- .../src/model/SaveMaxAttemptsPerDayRequest.cc | 70 ++-- outboundbot/src/model/SearchTaskRequest.cc | 310 +++++++--------- outboundbot/src/model/StartJobRequest.cc | 119 +++--- outboundbot/src/model/StartJobResult.cc | 4 +- .../src/model/SubmitBatchJobsRequest.cc | 58 ++- .../src/model/SubmitBatchJobsResult.cc | 4 +- .../src/model/SubmitRecordingRequest.cc | 94 +++-- .../src/model/SubmitRecordingResult.cc | 4 +- .../src/model/SubmitScriptReviewRequest.cc | 70 ++-- .../src/model/SubmitScriptReviewResult.cc | 4 +- outboundbot/src/model/SuspendCallRequest.cc | 71 ++-- .../src/model/SuspendCallWithFileRequest.cc | 70 ++-- outboundbot/src/model/SuspendJobsRequest.cc | 108 +++--- outboundbot/src/model/SuspendJobsResult.cc | 4 +- outboundbot/src/model/TagResourcesRequest.cc | 93 ++--- outboundbot/src/model/TagResourcesResult.cc | 8 +- outboundbot/src/model/TaskPreparingRequest.cc | 70 ++-- outboundbot/src/model/TaskPreparingResult.cc | 4 +- outboundbot/src/model/TerminateCallRequest.cc | 58 ++- outboundbot/src/model/TerminateCallResult.cc | 8 +- .../src/model/UntagResourcesRequest.cc | 96 ++--- outboundbot/src/model/UntagResourcesResult.cc | 8 +- .../src/model/WithdrawScriptReviewRequest.cc | 58 ++- .../src/model/WithdrawScriptReviewResult.cc | 36 +- 389 files changed, 11402 insertions(+), 13277 deletions(-) create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GenerateUploadUrlRequest.h create mode 100644 outboundbot/include/alibabacloud/outboundbot/model/GenerateUploadUrlResult.h create mode 100644 outboundbot/src/model/GenerateUploadUrlRequest.cc create mode 100644 outboundbot/src/model/GenerateUploadUrlResult.cc diff --git a/CHANGELOG b/CHANGELOG index fe6e4a706..f383bb452 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-04-21 Version: 1.36.1111 +- Supported new features for outbound. + 2022-04-21 Version: 1.36.1110 - Generated 2018-12-03 for `Sas`. diff --git a/VERSION b/VERSION index 6736afb24..9b9f98ee4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1110 \ No newline at end of file +1.36.1111 \ No newline at end of file diff --git a/outboundbot/CMakeLists.txt b/outboundbot/CMakeLists.txt index e2c4f7c6e..f87739567 100644 --- a/outboundbot/CMakeLists.txt +++ b/outboundbot/CMakeLists.txt @@ -133,6 +133,8 @@ 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/GenerateUploadUrlRequest.h + include/alibabacloud/outboundbot/model/GenerateUploadUrlResult.h include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.h include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackResult.h include/alibabacloud/outboundbot/model/GetAsrServerInfoRequest.h @@ -400,6 +402,8 @@ set(outboundbot_src src/model/DuplicateScriptResult.cc src/model/ExportScriptRequest.cc src/model/ExportScriptResult.cc + src/model/GenerateUploadUrlRequest.cc + src/model/GenerateUploadUrlResult.cc src/model/GetAfterAnswerDelayPlaybackRequest.cc src/model/GetAfterAnswerDelayPlaybackResult.cc src/model/GetAsrServerInfoRequest.cc diff --git a/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h b/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h index 402015b26..2d516dc61 100644 --- a/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h +++ b/outboundbot/include/alibabacloud/outboundbot/OutboundBotClient.h @@ -134,6 +134,8 @@ #include "model/DuplicateScriptResult.h" #include "model/ExportScriptRequest.h" #include "model/ExportScriptResult.h" +#include "model/GenerateUploadUrlRequest.h" +#include "model/GenerateUploadUrlResult.h" #include "model/GetAfterAnswerDelayPlaybackRequest.h" #include "model/GetAfterAnswerDelayPlaybackResult.h" #include "model/GetAsrServerInfoRequest.h" @@ -463,6 +465,9 @@ namespace AlibabaCloud typedef Outcome ExportScriptOutcome; typedef std::future ExportScriptOutcomeCallable; typedef std::function&)> ExportScriptAsyncHandler; + typedef Outcome GenerateUploadUrlOutcome; + typedef std::future GenerateUploadUrlOutcomeCallable; + typedef std::function&)> GenerateUploadUrlAsyncHandler; typedef Outcome GetAfterAnswerDelayPlaybackOutcome; typedef std::future GetAfterAnswerDelayPlaybackOutcomeCallable; typedef std::function&)> GetAfterAnswerDelayPlaybackAsyncHandler; @@ -864,6 +869,9 @@ 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; + GenerateUploadUrlOutcome generateUploadUrl(const Model::GenerateUploadUrlRequest &request)const; + void generateUploadUrlAsync(const Model::GenerateUploadUrlRequest& request, const GenerateUploadUrlAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GenerateUploadUrlOutcomeCallable generateUploadUrlCallable(const Model::GenerateUploadUrlRequest& 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; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ApplyNumberDistrictInfoParsingResultRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ApplyNumberDistrictInfoParsingResultRequest.h index 91f7d4a0d..46b96133f 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ApplyNumberDistrictInfoParsingResultRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ApplyNumberDistrictInfoParsingResultRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ApplyNumberDistrictInfoParsingResultRequest : public RpcServiceRequest - { - - public: - ApplyNumberDistrictInfoParsingResultRequest(); - ~ApplyNumberDistrictInfoParsingResultRequest(); - - std::string getVersionId()const; - void setVersionId(const std::string& versionId); - - private: - std::string versionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ApplyNumberDistrictInfoParsingResultRequest : public RpcServiceRequest { +public: + ApplyNumberDistrictInfoParsingResultRequest(); + ~ApplyNumberDistrictInfoParsingResultRequest(); + std::string getVersionId() const; + void setVersionId(const std::string &versionId); + +private: + std::string versionId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_APPLYNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsRequest.h index 5ecef5fbb..797dbc8e9 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/AssignJobsRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_ASSIGNJOBSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_ASSIGNJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT AssignJobsRequest : public RpcServiceRequest - { - - public: - AssignJobsRequest(); - ~AssignJobsRequest(); - - std::vector getJobsJson()const; - void setJobsJson(const std::vector& jobsJson); - std::vector getCallingNumber()const; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_ASSIGNJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_ASSIGNJOBSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_ASSIGNJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT AssignJobsRequest : public RpcServiceRequest { +public: + AssignJobsRequest(); + ~AssignJobsRequest(); + std::vector getJobsJson() const; + void setJobsJson(const std::vector &jobsJson); + std::vector getCallingNumber() const; + 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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_ASSIGNJOBSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CancelJobsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CancelJobsRequest.h index eb223a635..bf7bbf2e9 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CancelJobsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CancelJobsRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CANCELJOBSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CANCELJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CancelJobsRequest : public RpcServiceRequest - { - - public: - CancelJobsRequest(); - ~CancelJobsRequest(); - - bool getAll()const; - void setAll(bool all); - std::vector getJobReferenceId()const; - void setJobReferenceId(const std::vector& jobReferenceId); - std::vector getJobId()const; - void setJobId(const std::vector& jobId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - bool all_; - std::vector jobReferenceId_; - std::vector jobId_; - std::string instanceId_; - std::string jobGroupId_; - std::string scenarioId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CANCELJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CANCELJOBSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CANCELJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CancelJobsRequest : public RpcServiceRequest { +public: + CancelJobsRequest(); + ~CancelJobsRequest(); + bool getAll() const; + void setAll(bool all); + std::vector getJobReferenceId() const; + void setJobReferenceId(const std::vector &jobReferenceId); + std::vector getJobId() const; + void setJobId(const std::vector &jobId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getJobGroupId() const; + void setJobGroupId(const std::string &jobGroupId); + std::string getScenarioId() const; + void setScenarioId(const std::string &scenarioId); + +private: + bool all_; + std::vector jobReferenceId_; + std::vector jobId_; + std::string instanceId_; + std::string jobGroupId_; + std::string scenarioId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CANCELJOBSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupRequest.h index 38000096c..4cec9729b 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ChangeResourceGroupRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CHANGERESOURCEGROUPREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CHANGERESOURCEGROUPREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CHANGERESOURCEGROUPREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchJobsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchJobsRequest.h index 661693e39..ee8b8c402 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchJobsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchJobsRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHJOBSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateBatchJobsRequest : public RpcServiceRequest - { - - public: - CreateBatchJobsRequest(); - ~CreateBatchJobsRequest(); - - std::string getJobFilePath()const; - void setJobFilePath(const std::string& jobFilePath); - 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); - bool getSubmitted()const; - void setSubmitted(bool submitted); - std::string getBatchJobName()const; - void setBatchJobName(const std::string& batchJobName); - std::string getStrategyJson()const; - void setStrategyJson(const std::string& strategyJson); - std::string getBatchJobDescription()const; - void setBatchJobDescription(const std::string& batchJobDescription); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - std::string jobFilePath_; - std::string scriptId_; - std::vector callingNumber_; - std::string instanceId_; - bool submitted_; - std::string batchJobName_; - std::string strategyJson_; - std::string batchJobDescription_; - std::string scenarioId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHJOBSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateBatchJobsRequest : public RpcServiceRequest { +public: + CreateBatchJobsRequest(); + ~CreateBatchJobsRequest(); + std::string getJobFilePath() const; + void setJobFilePath(const std::string &jobFilePath); + 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); + bool getSubmitted() const; + void setSubmitted(bool submitted); + std::string getBatchJobName() const; + void setBatchJobName(const std::string &batchJobName); + std::string getStrategyJson() const; + void setStrategyJson(const std::string &strategyJson); + std::string getBatchJobDescription() const; + void setBatchJobDescription(const std::string &batchJobDescription); + std::string getScenarioId() const; + void setScenarioId(const std::string &scenarioId); + +private: + std::string jobFilePath_; + std::string scriptId_; + std::vector callingNumber_; + std::string instanceId_; + bool submitted_; + std::string batchJobName_; + std::string strategyJson_; + std::string batchJobDescription_; + std::string scenarioId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHJOBSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchJobsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchJobsResult.h index 31d19b466..2652de903 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchJobsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchJobsResult.h @@ -57,8 +57,8 @@ namespace AlibabaCloud std::string routingStrategy; std::vector repeatDays; }; - std::string batchJobId; std::string scenarioId; + std::string batchJobId; std::string jobGroupName; long creationTime; Strategy strategy; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchRepeatJobRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchRepeatJobRequest.h index a1866db07..967b545a6 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchRepeatJobRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateBatchRepeatJobRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 getRecallStrategyJson()const; - void setRecallStrategyJson(const std::string& recallStrategyJson); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getFilterStatus()const; - void setFilterStatus(const std::string& filterStatus); - std::string getStrategyJson()const; - void setStrategyJson(const std::string& strategyJson); - long getRingingDuration()const; - void setRingingDuration(long ringingDuration); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::vector getCallingNumber()const; - void setCallingNumber(const std::vector& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); - std::string getSourceGroupId()const; - void setSourceGroupId(const std::string& sourceGroupId); - long getMinConcurrency()const; - void setMinConcurrency(long minConcurrency); - - private: - std::string recallStrategyJson_; - std::string description_; - std::string scriptId_; - std::string filterStatus_; - std::string strategyJson_; - long ringingDuration_; - std::string priority_; - std::vector callingNumber_; - std::string instanceId_; - std::string name_; - std::string sourceGroupId_; - long minConcurrency_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHREPEATJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHREPEATJOBREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHREPEATJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateBatchRepeatJobRequest : public RpcServiceRequest { +public: + CreateBatchRepeatJobRequest(); + ~CreateBatchRepeatJobRequest(); + std::string getRecallStrategyJson() const; + void setRecallStrategyJson(const std::string &recallStrategyJson); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getFilterStatus() const; + void setFilterStatus(const std::string &filterStatus); + std::string getStrategyJson() const; + void setStrategyJson(const std::string &strategyJson); + long getRingingDuration() const; + void setRingingDuration(long ringingDuration); + std::string getPriority() const; + void setPriority(const std::string &priority); + std::vector getCallingNumber() const; + void setCallingNumber(const std::vector &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getName() const; + void setName(const std::string &name); + std::string getSourceGroupId() const; + void setSourceGroupId(const std::string &sourceGroupId); + long getMinConcurrency() const; + void setMinConcurrency(long minConcurrency); + +private: + std::string recallStrategyJson_; + std::string description_; + std::string scriptId_; + std::string filterStatus_; + std::string strategyJson_; + long ringingDuration_; + std::string priority_; + std::vector callingNumber_; + std::string instanceId_; + std::string name_; + std::string sourceGroupId_; + long minConcurrency_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEBATCHREPEATJOBREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateDialogueFlowRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateDialogueFlowRequest.h index 8708aba4b..0eb45a562 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateDialogueFlowRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateDialogueFlowRequest.h @@ -1,57 +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_CREATEDIALOGUEFLOWREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEDIALOGUEFLOWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateDialogueFlowRequest : public RpcServiceRequest - { - - public: - CreateDialogueFlowRequest(); - ~CreateDialogueFlowRequest(); - - std::string getDialogueFlowType()const; - void setDialogueFlowType(const std::string& dialogueFlowType); - std::string getDialogueName()const; - void setDialogueName(const std::string& dialogueName); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string dialogueFlowType_; - std::string dialogueName_; - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEDIALOGUEFLOWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEDIALOGUEFLOWREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEDIALOGUEFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateDialogueFlowRequest : public RpcServiceRequest { +public: + CreateDialogueFlowRequest(); + ~CreateDialogueFlowRequest(); + std::string getDialogueFlowType() const; + void setDialogueFlowType(const std::string &dialogueFlowType); + std::string getDialogueName() const; + void setDialogueName(const std::string &dialogueName); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string dialogueFlowType_; + std::string dialogueName_; + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEDIALOGUEFLOWREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateDownloadUrlRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateDownloadUrlRequest.h index 7ebc89415..031c17e55 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateDownloadUrlRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateDownloadUrlRequest.h @@ -1,51 +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_CREATEDOWNLOADURLREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEDOWNLOADURLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateDownloadUrlRequest : public RpcServiceRequest - { - - public: - CreateDownloadUrlRequest(); - ~CreateDownloadUrlRequest(); - - std::string getDownloadTaskId()const; - void setDownloadTaskId(const std::string& downloadTaskId); - std::string getFileId()const; - void setFileId(const std::string& fileId); - - private: - std::string downloadTaskId_; - std::string fileId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEDOWNLOADURLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEDOWNLOADURLREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEDOWNLOADURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateDownloadUrlRequest : public RpcServiceRequest { +public: + CreateDownloadUrlRequest(); + ~CreateDownloadUrlRequest(); + std::string getDownloadTaskId() const; + void setDownloadTaskId(const std::string &downloadTaskId); + std::string getFileId() const; + void setFileId(const std::string &fileId); + +private: + std::string downloadTaskId_; + std::string fileId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEDOWNLOADURLREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateGlobalQuestionRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateGlobalQuestionRequest.h index 0ec889474..ce48cfacb 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateGlobalQuestionRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateGlobalQuestionRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEGLOBALQUESTIONREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEGLOBALQUESTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateGlobalQuestionRequest : public RpcServiceRequest - { - - public: - CreateGlobalQuestionRequest(); - ~CreateGlobalQuestionRequest(); - - std::string getGlobalQuestionName()const; - void setGlobalQuestionName(const std::string& globalQuestionName); - std::string getQuestions()const; - void setQuestions(const std::string& questions); - std::string getAnswers()const; - void setAnswers(const std::string& answers); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getGlobalQuestionType()const; - void setGlobalQuestionType(const std::string& globalQuestionType); - - private: - std::string globalQuestionName_; - std::string questions_; - std::string answers_; - std::string scriptId_; - std::string instanceId_; - std::string globalQuestionType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEGLOBALQUESTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEGLOBALQUESTIONREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEGLOBALQUESTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateGlobalQuestionRequest : public RpcServiceRequest { +public: + CreateGlobalQuestionRequest(); + ~CreateGlobalQuestionRequest(); + std::string getGlobalQuestionName() const; + void setGlobalQuestionName(const std::string &globalQuestionName); + std::string getQuestions() const; + void setQuestions(const std::string &questions); + std::string getAnswers() const; + void setAnswers(const std::string &answers); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getGlobalQuestionType() const; + void setGlobalQuestionType(const std::string &globalQuestionType); + +private: + std::string globalQuestionName_; + std::string questions_; + std::string answers_; + std::string scriptId_; + std::string instanceId_; + std::string globalQuestionType_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEGLOBALQUESTIONREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.h index 8f7f7177f..f0dbfce3c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceBindNumberRequest.h @@ -1,51 +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_CREATEINSTANCEBINDNUMBERREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateInstanceBindNumberRequest : public RpcServiceRequest - { - - public: - CreateInstanceBindNumberRequest(); - ~CreateInstanceBindNumberRequest(); - - std::string getInstanceList()const; - void setInstanceList(const std::string& instanceList); - std::string getNumber()const; - void setNumber(const std::string& number); - - private: - std::string instanceList_; - std::string number_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateInstanceBindNumberRequest : public RpcServiceRequest { +public: + CreateInstanceBindNumberRequest(); + ~CreateInstanceBindNumberRequest(); + std::string getInstanceList() const; + void setInstanceList(const std::string &instanceList); + std::string getNumber() const; + void setNumber(const std::string &number); + +private: + std::string instanceList_; + std::string number_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEBINDNUMBERREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h index 0e1b864bc..399864f3a 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateInstanceRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateInstanceRequest : public RpcServiceRequest - { - - public: - CreateInstanceRequest(); - ~CreateInstanceRequest(); - - int getMaxConcurrentConversation()const; - 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::vector getCallingNumber()const; - void setCallingNumber(const std::vector& callingNumber); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getCallCenterInstanceId()const; - void setCallCenterInstanceId(const std::string& callCenterInstanceId); - std::string getAccessKey()const; - void setAccessKey(const std::string& accessKey); - std::string getInstanceDescription()const; - void setInstanceDescription(const std::string& instanceDescription); - std::string getNluServiceType()const; - void setNluServiceType(const std::string& nluServiceType); - - private: - int maxConcurrentConversation_; - std::string secretKey_; - std::string resourceGroupId_; - std::string endpoint_; - std::vector callingNumber_; - std::string instanceName_; - std::string callCenterInstanceId_; - std::string accessKey_; - std::string instanceDescription_; - std::string nluServiceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateInstanceRequest : public RpcServiceRequest { +public: + CreateInstanceRequest(); + ~CreateInstanceRequest(); + int getMaxConcurrentConversation() const; + 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::vector getCallingNumber() const; + void setCallingNumber(const std::vector &callingNumber); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getCallCenterInstanceId() const; + void setCallCenterInstanceId(const std::string &callCenterInstanceId); + std::string getAccessKey() const; + void setAccessKey(const std::string &accessKey); + std::string getInstanceDescription() const; + void setInstanceDescription(const std::string &instanceDescription); + std::string getNluServiceType() const; + void setNluServiceType(const std::string &nluServiceType); + +private: + int maxConcurrentConversation_; + std::string secretKey_; + std::string resourceGroupId_; + std::string endpoint_; + std::vector callingNumber_; + std::string instanceName_; + std::string callCenterInstanceId_; + std::string accessKey_; + std::string instanceDescription_; + std::string nluServiceType_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINSTANCEREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateIntentRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateIntentRequest.h index ebe3ee801..e9972d56c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateIntentRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateIntentRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINTENTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINTENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateIntentRequest : public RpcServiceRequest - { - - public: - CreateIntentRequest(); - ~CreateIntentRequest(); - - std::string getUtterances()const; - void setUtterances(const std::string& utterances); - std::string getKeywords()const; - void setKeywords(const std::string& keywords); - std::string getIntentDescription()const; - void setIntentDescription(const std::string& intentDescription); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getIntentName()const; - void setIntentName(const std::string& intentName); - - private: - std::string utterances_; - std::string keywords_; - std::string intentDescription_; - std::string scriptId_; - std::string instanceId_; - std::string intentName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINTENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINTENTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINTENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateIntentRequest : public RpcServiceRequest { +public: + CreateIntentRequest(); + ~CreateIntentRequest(); + std::string getUtterances() const; + void setUtterances(const std::string &utterances); + std::string getKeywords() const; + void setKeywords(const std::string &keywords); + std::string getIntentDescription() const; + void setIntentDescription(const std::string &intentDescription); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getIntentName() const; + void setIntentName(const std::string &intentName); + +private: + std::string utterances_; + std::string keywords_; + std::string intentDescription_; + std::string scriptId_; + std::string instanceId_; + std::string intentName_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEINTENTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.h index 0431a8c9d..d2d85e1fa 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobDataParsingTaskRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBDATAPARSINGTASKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBDATAPARSINGTASKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBDATAPARSINGTASKREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskRequest.h index 96edfda63..83103d456 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupExportTaskRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPEXPORTTASKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPEXPORTTASKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPEXPORTTASKREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupRequest.h index 246426916..70d05f4cd 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateJobGroupRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateJobGroupRequest : public RpcServiceRequest - { - - public: - CreateJobGroupRequest(); - ~CreateJobGroupRequest(); - - std::string getRecallStrategyJson()const; - void setRecallStrategyJson(const std::string& recallStrategyJson); - std::string getJobGroupName()const; - void setJobGroupName(const std::string& jobGroupName); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getStrategyJson()const; - void setStrategyJson(const std::string& strategyJson); - long getRingingDuration()const; - void setRingingDuration(long ringingDuration); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::string getJobGroupDescription()const; - void setJobGroupDescription(const std::string& jobGroupDescription); - std::vector getCallingNumber()const; - void setCallingNumber(const std::vector& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getMinConcurrency()const; - void setMinConcurrency(long minConcurrency); - - private: - std::string recallStrategyJson_; - std::string jobGroupName_; - std::string scriptId_; - std::string strategyJson_; - long ringingDuration_; - std::string scenarioId_; - std::string priority_; - std::string jobGroupDescription_; - std::vector callingNumber_; - std::string instanceId_; - long minConcurrency_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateJobGroupRequest : public RpcServiceRequest { +public: + CreateJobGroupRequest(); + ~CreateJobGroupRequest(); + std::string getRecallStrategyJson() const; + void setRecallStrategyJson(const std::string &recallStrategyJson); + std::string getJobGroupName() const; + void setJobGroupName(const std::string &jobGroupName); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getStrategyJson() const; + void setStrategyJson(const std::string &strategyJson); + long getRingingDuration() const; + void setRingingDuration(long ringingDuration); + std::string getScenarioId() const; + void setScenarioId(const std::string &scenarioId); + std::string getPriority() const; + void setPriority(const std::string &priority); + std::string getJobGroupDescription() const; + void setJobGroupDescription(const std::string &jobGroupDescription); + std::vector getCallingNumber() const; + void setCallingNumber(const std::vector &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getMinConcurrency() const; + void setMinConcurrency(long minConcurrency); + +private: + std::string recallStrategyJson_; + std::string jobGroupName_; + std::string scriptId_; + std::string strategyJson_; + long ringingDuration_; + std::string scenarioId_; + std::string priority_; + std::string jobGroupDescription_; + std::vector callingNumber_; + std::string instanceId_; + long minConcurrency_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEJOBGROUPREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoDownloadUrlRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoDownloadUrlRequest.h index 0a2289184..a2dc67156 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoDownloadUrlRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoDownloadUrlRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateNumberDistrictInfoDownloadUrlRequest : public RpcServiceRequest - { - - public: - CreateNumberDistrictInfoDownloadUrlRequest(); - ~CreateNumberDistrictInfoDownloadUrlRequest(); - - std::string getVersionId()const; - void setVersionId(const std::string& versionId); - - private: - std::string versionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateNumberDistrictInfoDownloadUrlRequest : public RpcServiceRequest { +public: + CreateNumberDistrictInfoDownloadUrlRequest(); + ~CreateNumberDistrictInfoDownloadUrlRequest(); + std::string getVersionId() const; + void setVersionId(const std::string &versionId); + +private: + std::string versionId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFODOWNLOADURLREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoParsingTaskRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoParsingTaskRequest.h index 834443cef..8f7274c5e 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoParsingTaskRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateNumberDistrictInfoParsingTaskRequest.h @@ -1,51 +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_CREATENUMBERDISTRICTINFOPARSINGTASKREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFOPARSINGTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateNumberDistrictInfoParsingTaskRequest : public RpcServiceRequest - { - - public: - CreateNumberDistrictInfoParsingTaskRequest(); - ~CreateNumberDistrictInfoParsingTaskRequest(); - - long getFileSize()const; - void setFileSize(long fileSize); - std::string getFilePath()const; - void setFilePath(const std::string& filePath); - - private: - long fileSize_; - std::string filePath_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFOPARSINGTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFOPARSINGTASKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFOPARSINGTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateNumberDistrictInfoParsingTaskRequest : public RpcServiceRequest { +public: + CreateNumberDistrictInfoParsingTaskRequest(); + ~CreateNumberDistrictInfoParsingTaskRequest(); + long getFileSize() const; + void setFileSize(long fileSize); + std::string getFilePath() const; + void setFilePath(const std::string &filePath); + +private: + long fileSize_; + std::string filePath_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATENUMBERDISTRICTINFOPARSINGTASKREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateOutboundCallNumberRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateOutboundCallNumberRequest.h index af62c0ec5..ac3dbd24d 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateOutboundCallNumberRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateOutboundCallNumberRequest.h @@ -1,57 +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_CREATEOUTBOUNDCALLNUMBERREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEOUTBOUNDCALLNUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateOutboundCallNumberRequest : public RpcServiceRequest - { - - public: - CreateOutboundCallNumberRequest(); - ~CreateOutboundCallNumberRequest(); - - int getRateLimitCount()const; - void setRateLimitCount(int rateLimitCount); - std::string getNumber()const; - void setNumber(const std::string& number); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getRateLimitPeriod()const; - void setRateLimitPeriod(int rateLimitPeriod); - - private: - int rateLimitCount_; - std::string number_; - std::string instanceId_; - int rateLimitPeriod_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEOUTBOUNDCALLNUMBERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEOUTBOUNDCALLNUMBERREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEOUTBOUNDCALLNUMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateOutboundCallNumberRequest : public RpcServiceRequest { +public: + CreateOutboundCallNumberRequest(); + ~CreateOutboundCallNumberRequest(); + int getRateLimitCount() const; + void setRateLimitCount(int rateLimitCount); + std::string getNumber() const; + void setNumber(const std::string &number); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getRateLimitPeriod() const; + void setRateLimitPeriod(int rateLimitPeriod); + +private: + int rateLimitCount_; + std::string number_; + std::string instanceId_; + int rateLimitPeriod_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATEOUTBOUNDCALLNUMBERREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h index 2196d8680..6d0fa9679 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptRequest.h @@ -1,81 +1,75 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateScriptRequest : public RpcServiceRequest - { - - public: - CreateScriptRequest(); - ~CreateScriptRequest(); - - std::string getTtsConfig()const; - void setTtsConfig(const std::string& ttsConfig); - std::string getIndustry()const; - void setIndustry(const std::string& industry); - std::string getScriptName()const; - void setScriptName(const std::string& scriptName); - std::string getScene()const; - void setScene(const std::string& scene); - std::vector getScriptWaveform()const; - void setScriptWaveform(const std::vector& scriptWaveform); - std::string getAsrConfig()const; - void setAsrConfig(const std::string& asrConfig); - bool getNewBargeInEnable()const; - void setNewBargeInEnable(bool newBargeInEnable); - bool getMiniPlaybackEnable()const; - void setMiniPlaybackEnable(bool miniPlaybackEnable); - std::string getChatbotId()const; - void setChatbotId(const std::string& chatbotId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getScriptDescription()const; - void setScriptDescription(const std::string& scriptDescription); - std::vector getScriptContent()const; - void setScriptContent(const std::vector& scriptContent); - - private: - std::string ttsConfig_; - std::string industry_; - std::string scriptName_; - std::string scene_; - std::vector scriptWaveform_; - std::string asrConfig_; - bool newBargeInEnable_; - bool miniPlaybackEnable_; - std::string chatbotId_; - std::string instanceId_; - std::string scriptDescription_; - std::vector scriptContent_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateScriptRequest : public RpcServiceRequest { +public: + CreateScriptRequest(); + ~CreateScriptRequest(); + std::string getTtsConfig() const; + void setTtsConfig(const std::string &ttsConfig); + std::string getIndustry() const; + void setIndustry(const std::string &industry); + std::string getScriptName() const; + void setScriptName(const std::string &scriptName); + std::string getScene() const; + void setScene(const std::string &scene); + std::vector getScriptWaveform() const; + void setScriptWaveform(const std::vector &scriptWaveform); + std::string getAsrConfig() const; + void setAsrConfig(const std::string &asrConfig); + bool getNewBargeInEnable() const; + void setNewBargeInEnable(bool newBargeInEnable); + bool getMiniPlaybackEnable() const; + void setMiniPlaybackEnable(bool miniPlaybackEnable); + std::string getChatbotId() const; + void setChatbotId(const std::string &chatbotId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getScriptDescription() const; + void setScriptDescription(const std::string &scriptDescription); + std::vector getScriptContent() const; + void setScriptContent(const std::vector &scriptContent); + +private: + std::string ttsConfig_; + std::string industry_; + std::string scriptName_; + std::string scene_; + std::vector scriptWaveform_; + std::string asrConfig_; + bool newBargeInEnable_; + bool miniPlaybackEnable_; + std::string chatbotId_; + std::string instanceId_; + std::string scriptDescription_; + std::vector scriptContent_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptWaveformRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptWaveformRequest.h index 884fd0ada..ef3200fbf 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptWaveformRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateScriptWaveformRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTWAVEFORMREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTWAVEFORMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateScriptWaveformRequest : public RpcServiceRequest - { - - public: - CreateScriptWaveformRequest(); - ~CreateScriptWaveformRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getFileName()const; - void setFileName(const std::string& fileName); - std::string getScriptContent()const; - void setScriptContent(const std::string& scriptContent); - std::string getFileId()const; - void setFileId(const std::string& fileId); - - private: - std::string scriptId_; - std::string instanceId_; - std::string fileName_; - std::string scriptContent_; - std::string fileId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTWAVEFORMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTWAVEFORMREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTWAVEFORMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateScriptWaveformRequest : public RpcServiceRequest { +public: + CreateScriptWaveformRequest(); + ~CreateScriptWaveformRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getFileName() const; + void setFileName(const std::string &fileName); + std::string getScriptContent() const; + void setScriptContent(const std::string &scriptContent); + std::string getFileId() const; + void setFileId(const std::string &fileId); + +private: + std::string scriptId_; + std::string instanceId_; + std::string fileName_; + std::string scriptContent_; + std::string fileId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATESCRIPTWAVEFORMREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateTagRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateTagRequest.h index 41da9d7fc..724bbb01e 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateTagRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateTagRequest.h @@ -1,57 +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_CREATETAGREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETAGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateTagRequest : public RpcServiceRequest - { - - public: - CreateTagRequest(); - ~CreateTagRequest(); - - std::string getTagGroup()const; - void setTagGroup(const std::string& tagGroup); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getTagName()const; - void setTagName(const std::string& tagName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string tagGroup_; - std::string scriptId_; - std::string tagName_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETAGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETAGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETAGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateTagRequest : public RpcServiceRequest { +public: + CreateTagRequest(); + ~CreateTagRequest(); + std::string getTagGroup() const; + void setTagGroup(const std::string &tagGroup); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getTagName() const; + void setTagName(const std::string &tagName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string tagGroup_; + std::string scriptId_; + std::string tagName_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETAGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskRequest.h index e32732263..ea2b11222 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/CreateTaskExportTaskRequest.h @@ -1,123 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateTaskExportTaskRequest : public RpcServiceRequest - { - - public: - CreateTaskExportTaskRequest(); - ~CreateTaskExportTaskRequest(); - - bool getHasAnswered()const; - void setHasAnswered(bool hasAnswered); - long getActualTimeLte()const; - void setActualTimeLte(long actualTimeLte); - std::string getOtherId()const; - void setOtherId(const std::string& otherId); - long getTaskCreateTimeLte()const; - void setTaskCreateTimeLte(long taskCreateTimeLte); - std::string getJobId()const; - void setJobId(const std::string& jobId); - long getTaskCreateTimeGte()const; - void setTaskCreateTimeGte(long taskCreateTimeGte); - std::string getCalledNumber()const; - void setCalledNumber(const std::string& calledNumber); - std::string getUserIdMatch()const; - void setUserIdMatch(const std::string& userIdMatch); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getScriptNameQuery()const; - void setScriptNameQuery(const std::string& scriptNameQuery); - int getPageIndex()const; - void setPageIndex(int pageIndex); - std::string getSortOrder()const; - void setSortOrder(const std::string& sortOrder); - std::string getTaskStatusStringList()const; - void setTaskStatusStringList(const std::string& taskStatusStringList); - std::string getJobGroupNameQuery()const; - void setJobGroupNameQuery(const std::string& jobGroupNameQuery); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - bool getHasHangUpByRejection()const; - void setHasHangUpByRejection(bool hasHangUpByRejection); - bool getHasReachedEndOfFlow()const; - void setHasReachedEndOfFlow(bool hasReachedEndOfFlow); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getRecordingDurationGte()const; - void setRecordingDurationGte(long recordingDurationGte); - long getCallDurationLte()const; - void setCallDurationLte(long callDurationLte); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - std::string getSortBy()const; - void setSortBy(const std::string& sortBy); - std::string getJobStatusStringList()const; - void setJobStatusStringList(const std::string& jobStatusStringList); - long getActualTimeGte()const; - void setActualTimeGte(long actualTimeGte); - long getCallDurationGte()const; - void setCallDurationGte(long callDurationGte); - long getRecordingDurationLte()const; - void setRecordingDurationLte(long recordingDurationLte); - - private: - bool hasAnswered_; - long actualTimeLte_; - std::string otherId_; - long taskCreateTimeLte_; - std::string jobId_; - long taskCreateTimeGte_; - std::string calledNumber_; - std::string userIdMatch_; - int pageSize_; - std::string scriptNameQuery_; - int pageIndex_; - std::string sortOrder_; - std::string taskStatusStringList_; - std::string jobGroupNameQuery_; - std::string taskId_; - bool hasHangUpByRejection_; - bool hasReachedEndOfFlow_; - std::string instanceId_; - long recordingDurationGte_; - long callDurationLte_; - std::string jobGroupId_; - std::string sortBy_; - std::string jobStatusStringList_; - long actualTimeGte_; - long callDurationGte_; - long recordingDurationLte_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT CreateTaskExportTaskRequest : public RpcServiceRequest { +public: + CreateTaskExportTaskRequest(); + ~CreateTaskExportTaskRequest(); + bool getHasAnswered() const; + void setHasAnswered(bool hasAnswered); + long getActualTimeLte() const; + void setActualTimeLte(long actualTimeLte); + std::string getOtherId() const; + void setOtherId(const std::string &otherId); + long getTaskCreateTimeLte() const; + void setTaskCreateTimeLte(long taskCreateTimeLte); + std::string getJobId() const; + void setJobId(const std::string &jobId); + long getTaskCreateTimeGte() const; + void setTaskCreateTimeGte(long taskCreateTimeGte); + std::string getCalledNumber() const; + void setCalledNumber(const std::string &calledNumber); + std::string getUserIdMatch() const; + void setUserIdMatch(const std::string &userIdMatch); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getScriptNameQuery() const; + void setScriptNameQuery(const std::string &scriptNameQuery); + int getPageIndex() const; + void setPageIndex(int pageIndex); + std::string getSortOrder() const; + void setSortOrder(const std::string &sortOrder); + std::string getTaskStatusStringList() const; + void setTaskStatusStringList(const std::string &taskStatusStringList); + std::string getJobGroupNameQuery() const; + void setJobGroupNameQuery(const std::string &jobGroupNameQuery); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + bool getHasHangUpByRejection() const; + void setHasHangUpByRejection(bool hasHangUpByRejection); + bool getHasReachedEndOfFlow() const; + void setHasReachedEndOfFlow(bool hasReachedEndOfFlow); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getRecordingDurationGte() const; + void setRecordingDurationGte(long recordingDurationGte); + long getCallDurationLte() const; + void setCallDurationLte(long callDurationLte); + std::string getJobGroupId() const; + void setJobGroupId(const std::string &jobGroupId); + std::string getSortBy() const; + void setSortBy(const std::string &sortBy); + std::string getJobStatusStringList() const; + void setJobStatusStringList(const std::string &jobStatusStringList); + long getActualTimeGte() const; + void setActualTimeGte(long actualTimeGte); + long getCallDurationGte() const; + void setCallDurationGte(long callDurationGte); + long getRecordingDurationLte() const; + void setRecordingDurationLte(long recordingDurationLte); + +private: + bool hasAnswered_; + long actualTimeLte_; + std::string otherId_; + long taskCreateTimeLte_; + std::string jobId_; + long taskCreateTimeGte_; + std::string calledNumber_; + std::string userIdMatch_; + int pageSize_; + std::string scriptNameQuery_; + int pageIndex_; + std::string sortOrder_; + std::string taskStatusStringList_; + std::string jobGroupNameQuery_; + std::string taskId_; + bool hasHangUpByRejection_; + bool hasReachedEndOfFlow_; + std::string instanceId_; + long recordingDurationGte_; + long callDurationLte_; + std::string jobGroupId_; + std::string sortBy_; + std::string jobStatusStringList_; + long actualTimeGte_; + long callDurationGte_; + long recordingDurationLte_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_CREATETASKEXPORTTASKREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h index cfbc0c487..8e5a2eed1 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteAllNumberDistrictInfoRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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_DELETEALLNUMBERDISTRICTINFOREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEALLNUMBERDISTRICTINFOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteAllNumberDistrictInfoRequest : public RpcServiceRequest - { - - public: - DeleteAllNumberDistrictInfoRequest(); - ~DeleteAllNumberDistrictInfoRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEALLNUMBERDISTRICTINFOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEALLNUMBERDISTRICTINFOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEALLNUMBERDISTRICTINFOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteAllNumberDistrictInfoRequest : public RpcServiceRequest { +public: + DeleteAllNumberDistrictInfoRequest(); + ~DeleteAllNumberDistrictInfoRequest(); + +private: +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEALLNUMBERDISTRICTINFOREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h index 5629f93f4..5f9b8c6ee 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactBlockListRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTBLOCKLISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTBLOCKLISTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTBLOCKLISTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListRequest.h index f2ebdd4d5..3202cc97a 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteContactWhiteListRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTWHITELISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTWHITELISTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETECONTACTWHITELISTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteDialogueFlowRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteDialogueFlowRequest.h index 4c400ff42..c5782a74a 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DeleteDialogueFlowRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteDialogueFlowRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEDIALOGUEFLOWREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEDIALOGUEFLOWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteDialogueFlowRequest : public RpcServiceRequest - { - - public: - DeleteDialogueFlowRequest(); - ~DeleteDialogueFlowRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getDialogueFlowId()const; - void setDialogueFlowId(const std::string& dialogueFlowId); - - private: - std::string scriptId_; - std::string instanceId_; - std::string dialogueFlowId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEDIALOGUEFLOWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEDIALOGUEFLOWREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEDIALOGUEFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteDialogueFlowRequest : public RpcServiceRequest { +public: + DeleteDialogueFlowRequest(); + ~DeleteDialogueFlowRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDialogueFlowId() const; + void setDialogueFlowId(const std::string &dialogueFlowId); + +private: + std::string scriptId_; + std::string instanceId_; + std::string dialogueFlowId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEDIALOGUEFLOWREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteGlobalQuestionRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteGlobalQuestionRequest.h index b82fcdbb1..63fff7823 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DeleteGlobalQuestionRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteGlobalQuestionRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEGLOBALQUESTIONREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEGLOBALQUESTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteGlobalQuestionRequest : public RpcServiceRequest - { - - public: - DeleteGlobalQuestionRequest(); - ~DeleteGlobalQuestionRequest(); - - std::string getGlobalQuestionId()const; - void setGlobalQuestionId(const std::string& globalQuestionId); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string globalQuestionId_; - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEGLOBALQUESTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEGLOBALQUESTIONREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEGLOBALQUESTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteGlobalQuestionRequest : public RpcServiceRequest { +public: + DeleteGlobalQuestionRequest(); + ~DeleteGlobalQuestionRequest(); + std::string getGlobalQuestionId() const; + void setGlobalQuestionId(const std::string &globalQuestionId); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string globalQuestionId_; + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEGLOBALQUESTIONREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteInstanceRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteInstanceRequest.h index 941979fa0..88ef41742 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DeleteInstanceRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteInstanceRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteInstanceRequest : public RpcServiceRequest - { - - public: - DeleteInstanceRequest(); - ~DeleteInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteInstanceRequest : public RpcServiceRequest { +public: + DeleteInstanceRequest(); + ~DeleteInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINSTANCEREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteIntentRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteIntentRequest.h index 00f508342..3f21ae206 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DeleteIntentRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteIntentRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINTENTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINTENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteIntentRequest : public RpcServiceRequest - { - - public: - DeleteIntentRequest(); - ~DeleteIntentRequest(); - - std::string getIntentId()const; - void setIntentId(const std::string& intentId); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string intentId_; - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINTENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINTENTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINTENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteIntentRequest : public RpcServiceRequest { +public: + DeleteIntentRequest(); + ~DeleteIntentRequest(); + std::string getIntentId() const; + void setIntentId(const std::string &intentId); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string intentId_; + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEINTENTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteJobGroupRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteJobGroupRequest.h index d6899ed80..35817a3a2 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DeleteJobGroupRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteJobGroupRequest.h @@ -1,51 +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_DELETEJOBGROUPREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEJOBGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteJobGroupRequest : public RpcServiceRequest - { - - public: - DeleteJobGroupRequest(); - ~DeleteJobGroupRequest(); - - 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_DELETEJOBGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEJOBGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteJobGroupRequest : public RpcServiceRequest { +public: + DeleteJobGroupRequest(); + ~DeleteJobGroupRequest(); + 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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEJOBGROUPREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteOutboundCallNumberRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteOutboundCallNumberRequest.h index 9f0008212..d83cfffa4 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DeleteOutboundCallNumberRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteOutboundCallNumberRequest.h @@ -1,51 +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_DELETEOUTBOUNDCALLNUMBERREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEOUTBOUNDCALLNUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteOutboundCallNumberRequest : public RpcServiceRequest - { - - public: - DeleteOutboundCallNumberRequest(); - ~DeleteOutboundCallNumberRequest(); - - std::string getOutboundCallNumberId()const; - void setOutboundCallNumberId(const std::string& outboundCallNumberId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string outboundCallNumberId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEOUTBOUNDCALLNUMBERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEOUTBOUNDCALLNUMBERREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEOUTBOUNDCALLNUMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteOutboundCallNumberRequest : public RpcServiceRequest { +public: + DeleteOutboundCallNumberRequest(); + ~DeleteOutboundCallNumberRequest(); + std::string getOutboundCallNumberId() const; + void setOutboundCallNumberId(const std::string &outboundCallNumberId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string outboundCallNumberId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETEOUTBOUNDCALLNUMBERREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRequest.h index 3395056e1..4b9c9af20 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptRequest.h @@ -1,51 +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_DELETESCRIPTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteScriptRequest : public RpcServiceRequest - { - - public: - DeleteScriptRequest(); - ~DeleteScriptRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteScriptRequest : public RpcServiceRequest { +public: + DeleteScriptRequest(); + ~DeleteScriptRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptWaveformRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptWaveformRequest.h index e11bddfb5..61d7fcd11 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptWaveformRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DeleteScriptWaveformRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTWAVEFORMREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTWAVEFORMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteScriptWaveformRequest : public RpcServiceRequest - { - - public: - DeleteScriptWaveformRequest(); - ~DeleteScriptWaveformRequest(); - - std::string getScriptWaveformId()const; - void setScriptWaveformId(const std::string& scriptWaveformId); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string scriptWaveformId_; - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTWAVEFORMREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTWAVEFORMREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTWAVEFORMREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DeleteScriptWaveformRequest : public RpcServiceRequest { +public: + DeleteScriptWaveformRequest(); + ~DeleteScriptWaveformRequest(); + std::string getScriptWaveformId() const; + void setScriptWaveformId(const std::string &scriptWaveformId); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string scriptWaveformId_; + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DELETESCRIPTWAVEFORMREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsRequest.h index 93325066b..541d27472 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDIALOGUENODESTATISTICSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDIALOGUENODESTATISTICSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDIALOGUENODESTATISTICSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsResult.h index 7bab425c2..63626e65f 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDialogueNodeStatisticsResult.h @@ -34,8 +34,8 @@ namespace AlibabaCloud public: struct NoAnswerDialogueNode { - std::string instanceId; std::string nodeName; + std::string instanceId; std::string nodeId; int hitNum; int hangUpNum; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsRequest.h index ac2b4c11b..aa1ed5b00 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeDsReportsRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDSREPORTSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDSREPORTSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEDSREPORTSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeGlobalQuestionRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeGlobalQuestionRequest.h index 8ca5f90f9..1f506ac2f 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeGlobalQuestionRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeGlobalQuestionRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGLOBALQUESTIONREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGLOBALQUESTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeGlobalQuestionRequest : public RpcServiceRequest - { - - public: - DescribeGlobalQuestionRequest(); - ~DescribeGlobalQuestionRequest(); - - std::string getGlobalQuestionId()const; - void setGlobalQuestionId(const std::string& globalQuestionId); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string globalQuestionId_; - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGLOBALQUESTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGLOBALQUESTIONREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGLOBALQUESTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeGlobalQuestionRequest : public RpcServiceRequest { +public: + DescribeGlobalQuestionRequest(); + ~DescribeGlobalQuestionRequest(); + std::string getGlobalQuestionId() const; + void setGlobalQuestionId(const std::string &globalQuestionId); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string globalQuestionId_; + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGLOBALQUESTIONREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoRequest.h index b32215eb3..316fe98bc 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGROUPEXECUTINGINFOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGROUPEXECUTINGINFOREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEGROUPEXECUTINGINFOREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoResult.h index 765a106ea..e950f7438 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeGroupExecutingInfoResult.h @@ -52,8 +52,8 @@ namespace AlibabaCloud int finishedNum; int callFailedNum; JobsProgress jobsProgress; - std::string creatorName; int hangUpByClientNum; + std::string creatorName; int transferByIntentNum; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceRequest.h index 6558a87b2..99143ba61 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeInstanceRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeInstanceRequest : public RpcServiceRequest - { - - public: - DescribeInstanceRequest(); - ~DescribeInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeInstanceRequest : public RpcServiceRequest { +public: + DescribeInstanceRequest(); + ~DescribeInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINSTANCEREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentRequest.h index 4b7042847..f51d287d3 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeIntentRequest : public RpcServiceRequest - { - - public: - DescribeIntentRequest(); - ~DescribeIntentRequest(); - - std::string getIntentId()const; - void setIntentId(const std::string& intentId); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string intentId_; - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeIntentRequest : public RpcServiceRequest { +public: + DescribeIntentRequest(); + ~DescribeIntentRequest(); + std::string getIntentId() const; + void setIntentId(const std::string &intentId); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string intentId_; + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentResult.h index b98582d74..fbfebef52 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string keywords; std::string intentName; std::string intentDescription; - long createTime; std::string utterances; + long createTime; long updateTime; std::string scriptId; std::string intentId; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsRequest.h index f2c435524..2df497f80 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeIntentStatisticsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTSTATISTICSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEINTENTSTATISTICSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressRequest.h index c134c3545..276ae822e 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobDataParsingTaskProgressRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBDATAPARSINGTASKPROGRESSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBDATAPARSINGTASKPROGRESSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBDATAPARSINGTASKPROGRESSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.h index bb081f2ea..6d1e58d1a 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupExportTaskProgressRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPEXPORTTASKPROGRESSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPEXPORTTASKPROGRESSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPEXPORTTASKPROGRESSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupRequest.h index 6e4305fb0..ffb6d9e94 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobGroupRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeJobGroupRequest : public RpcServiceRequest - { - - public: - DescribeJobGroupRequest(); - ~DescribeJobGroupRequest(); - - std::vector getBriefTypes()const; - void setBriefTypes(const std::vector& briefTypes); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - - private: - std::vector briefTypes_; - std::string instanceId_; - std::string jobGroupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeJobGroupRequest : public RpcServiceRequest { +public: + DescribeJobGroupRequest(); + ~DescribeJobGroupRequest(); + std::vector getBriefTypes() const; + void setBriefTypes(const std::vector &briefTypes); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getJobGroupId() const; + void setJobGroupId(const std::string &jobGroupId); + +private: + std::vector briefTypes_; + std::string instanceId_; + std::string jobGroupId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBGROUPREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobRequest.h index f063f63c2..7216ddde7 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobRequest.h @@ -1,51 +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_DESCRIBEJOBREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeJobRequest : public RpcServiceRequest - { - - public: - DescribeJobRequest(); - ~DescribeJobRequest(); - - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string jobId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeJobRequest : public RpcServiceRequest { +public: + DescribeJobRequest(); + ~DescribeJobRequest(); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + bool getWithScript() const; + void setWithScript(bool withScript); + +private: + std::string jobId_; + std::string instanceId_; + bool withScript_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBEJOBREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h index 01311aa91..dc8d03c8a 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeJobResult.h @@ -34,6 +34,23 @@ namespace AlibabaCloud public: struct Job { + struct Script + { + std::string status; + std::string chatbotId; + bool miniPlaybackConfigEnabled; + std::string scriptDescription; + std::string scriptId; + std::string debugStatus; + std::string scene; + bool isDebugDrafted; + std::string name; + std::string industry; + std::string asrConfig; + bool isDrafted; + long updateTime; + std::string ttsConfig; + }; struct Contact { std::string role; @@ -83,6 +100,7 @@ namespace AlibabaCloud std::string actionParams; long timestamp; std::string speaker; + std::string sequenceId; }; std::string status; long planedTime; @@ -104,6 +122,7 @@ namespace AlibabaCloud std::string jobId; }; std::string status; + Script script; std::string calledNumber; std::vector tasks; std::string scenarioId; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusRequest.h index 1333403b7..8d28e8011 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeNumberDistrictInfoStatusRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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_DESCRIBENUMBERDISTRICTINFOSTATUSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBENUMBERDISTRICTINFOSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeNumberDistrictInfoStatusRequest : public RpcServiceRequest - { - - public: - DescribeNumberDistrictInfoStatusRequest(); - ~DescribeNumberDistrictInfoStatusRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBENUMBERDISTRICTINFOSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBENUMBERDISTRICTINFOSTATUSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBENUMBERDISTRICTINFOSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeNumberDistrictInfoStatusRequest : public RpcServiceRequest { +public: + DescribeNumberDistrictInfoStatusRequest(); + ~DescribeNumberDistrictInfoStatusRequest(); + +private: +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBENUMBERDISTRICTINFOSTATUSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptRequest.h index c34dc17c4..ad82af68c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptRequest.h @@ -1,51 +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_DESCRIBESCRIPTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBESCRIPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeScriptRequest : public RpcServiceRequest - { - - public: - DescribeScriptRequest(); - ~DescribeScriptRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBESCRIPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBESCRIPTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBESCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeScriptRequest : public RpcServiceRequest { +public: + DescribeScriptRequest(); + ~DescribeScriptRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBESCRIPTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptVoiceConfigRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptVoiceConfigRequest.h index 49982c8c6..30630c88c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptVoiceConfigRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeScriptVoiceConfigRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBESCRIPTVOICECONFIGREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBESCRIPTVOICECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeScriptVoiceConfigRequest : public RpcServiceRequest - { - - public: - DescribeScriptVoiceConfigRequest(); - ~DescribeScriptVoiceConfigRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getScriptVoiceConfigId()const; - void setScriptVoiceConfigId(const std::string& scriptVoiceConfigId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string scriptId_; - std::string scriptVoiceConfigId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBESCRIPTVOICECONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBESCRIPTVOICECONFIGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBESCRIPTVOICECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeScriptVoiceConfigRequest : public RpcServiceRequest { +public: + DescribeScriptVoiceConfigRequest(); + ~DescribeScriptVoiceConfigRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getScriptVoiceConfigId() const; + void setScriptVoiceConfigId(const std::string &scriptVoiceConfigId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string scriptId_; + std::string scriptVoiceConfigId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBESCRIPTVOICECONFIGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSConfigRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSConfigRequest.h index 0dba252da..f9bc51e13 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSConfigRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSConfigRequest.h @@ -1,51 +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_DESCRIBETTSCONFIGREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTTSConfigRequest : public RpcServiceRequest - { - - public: - DescribeTTSConfigRequest(); - ~DescribeTTSConfigRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSCONFIGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTTSConfigRequest : public RpcServiceRequest { +public: + DescribeTTSConfigRequest(); + ~DescribeTTSConfigRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSCONFIGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSDemoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSDemoRequest.h index bc4083974..ac85f942c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSDemoRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTTSDemoRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMOREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTTSDemoRequest : public RpcServiceRequest - { - - public: - DescribeTTSDemoRequest(); - ~DescribeTTSDemoRequest(); - - std::string getVoice()const; - void setVoice(const std::string& voice); - int getVolume()const; - void setVolume(int volume); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getText()const; - void setText(const std::string& text); - int getSpeechRate()const; - void setSpeechRate(int speechRate); - - private: - std::string voice_; - int volume_; - std::string scriptId_; - std::string instanceId_; - std::string text_; - int speechRate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMOREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMOREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTTSDemoRequest : public RpcServiceRequest { +public: + DescribeTTSDemoRequest(); + ~DescribeTTSDemoRequest(); + std::string getVoice() const; + void setVoice(const std::string &voice); + int getVolume() const; + void setVolume(int volume); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getText() const; + void setText(const std::string &text); + int getSpeechRate() const; + void setSpeechRate(int speechRate); + +private: + std::string voice_; + int volume_; + std::string scriptId_; + std::string instanceId_; + std::string text_; + int speechRate_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETTSDEMOREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTagHitsSummaryRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTagHitsSummaryRequest.h index a936fba35..c1dcb366f 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTagHitsSummaryRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTagHitsSummaryRequest.h @@ -1,51 +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_DESCRIBETAGHITSSUMMARYREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETAGHITSSUMMARYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTagHitsSummaryRequest : public RpcServiceRequest - { - - public: - DescribeTagHitsSummaryRequest(); - ~DescribeTagHitsSummaryRequest(); - - 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_DESCRIBETAGHITSSUMMARYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETAGHITSSUMMARYREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETAGHITSSUMMARYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTagHitsSummaryRequest : public RpcServiceRequest { +public: + DescribeTagHitsSummaryRequest(); + ~DescribeTagHitsSummaryRequest(); + 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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETAGHITSSUMMARYREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.h index 91122025e..ad7be99b4 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DescribeTenantBindNumberRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTenantBindNumberRequest : public RpcServiceRequest - { - - public: - DescribeTenantBindNumberRequest(); - ~DescribeTenantBindNumberRequest(); - - std::string getNumber()const; - void setNumber(const std::string& number); - - private: - std::string number_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DescribeTenantBindNumberRequest : public RpcServiceRequest { +public: + DescribeTenantBindNumberRequest(); + ~DescribeTenantBindNumberRequest(); + std::string getNumber() const; + void setNumber(const std::string &number); + +private: + std::string number_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DESCRIBETENANTBINDNUMBERREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DialogueRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DialogueRequest.h index fb90a4a69..d3fa55a12 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DialogueRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DialogueRequest.h @@ -1,78 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DIALOGUEREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DIALOGUEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DialogueRequest : public RpcServiceRequest - { - - public: - DialogueRequest(); - ~DialogueRequest(); - - std::string getCallId()const; - void setCallId(const std::string& callId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - std::string getCalledNumber()const; - void setCalledNumber(const std::string& calledNumber); - std::string getCallType()const; - void setCallType(const std::string& callType); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - std::string getUtterance()const; - void setUtterance(const std::string& utterance); - std::string getActionParams()const; - void setActionParams(const std::string& actionParams); - std::string getCallingNumber()const; - void setCallingNumber(const std::string& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getActionKey()const; - void setActionKey(const std::string& actionKey); - - private: - std::string callId_; - long instanceOwnerId_; - std::string calledNumber_; - std::string callType_; - std::string scenarioId_; - std::string taskId_; - std::string utterance_; - std::string actionParams_; - std::string callingNumber_; - std::string instanceId_; - std::string actionKey_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DIALOGUEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DIALOGUEREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DIALOGUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DialogueRequest : public RpcServiceRequest { +public: + DialogueRequest(); + ~DialogueRequest(); + std::string getCallId() const; + void setCallId(const std::string &callId); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + std::string getCalledNumber() const; + void setCalledNumber(const std::string &calledNumber); + std::string getCallType() const; + void setCallType(const std::string &callType); + std::string getScenarioId() const; + void setScenarioId(const std::string &scenarioId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getUtterance() const; + void setUtterance(const std::string &utterance); + std::string getActionParams() const; + void setActionParams(const std::string &actionParams); + std::string getCallingNumber() const; + void setCallingNumber(const std::string &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getActionKey() const; + void setActionKey(const std::string &actionKey); + +private: + std::string callId_; + long instanceOwnerId_; + std::string calledNumber_; + std::string callType_; + std::string scenarioId_; + std::string taskId_; + std::string utterance_; + std::string actionParams_; + std::string callingNumber_; + std::string instanceId_; + std::string actionKey_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DIALOGUEREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultRequest.h index d7e1356c5..214659fb1 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DismissNumberDistrictInfoParsingResultRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DismissNumberDistrictInfoParsingResultRequest : public RpcServiceRequest - { - - public: - DismissNumberDistrictInfoParsingResultRequest(); - ~DismissNumberDistrictInfoParsingResultRequest(); - - std::string getVersionId()const; - void setVersionId(const std::string& versionId); - - private: - std::string versionId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DismissNumberDistrictInfoParsingResultRequest : public RpcServiceRequest { +public: + DismissNumberDistrictInfoParsingResultRequest(); + ~DismissNumberDistrictInfoParsingResultRequest(); + std::string getVersionId() const; + void setVersionId(const std::string &versionId); + +private: + std::string versionId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DISMISSNUMBERDISTRICTINFOPARSINGRESULTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingRequest.h index dfe849df5..bf7804fb2 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DownloadRecordingRequest.h @@ -1,51 +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_DOWNLOADRECORDINGREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADRECORDINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadRecordingRequest : public RpcServiceRequest - { - - public: - DownloadRecordingRequest(); - ~DownloadRecordingRequest(); - - 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_DOWNLOADRECORDINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADRECORDINGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADRECORDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DownloadRecordingRequest : public RpcServiceRequest { +public: + DownloadRecordingRequest(); + ~DownloadRecordingRequest(); + 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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DOWNLOADRECORDINGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/DuplicateScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/DuplicateScriptRequest.h index 071bb9bf5..a68322ed8 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/DuplicateScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/DuplicateScriptRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DUPLICATESCRIPTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DUPLICATESCRIPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DuplicateScriptRequest : public RpcServiceRequest - { - - public: - DuplicateScriptRequest(); - ~DuplicateScriptRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSourceScriptId()const; - void setSourceScriptId(const std::string& sourceScriptId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string instanceId_; - std::string sourceScriptId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DUPLICATESCRIPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_DUPLICATESCRIPTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_DUPLICATESCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT DuplicateScriptRequest : public RpcServiceRequest { +public: + DuplicateScriptRequest(); + ~DuplicateScriptRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getSourceScriptId() const; + void setSourceScriptId(const std::string &sourceScriptId); + std::string getName() const; + void setName(const std::string &name); + +private: + std::string instanceId_; + std::string sourceScriptId_; + std::string name_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_DUPLICATESCRIPTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ExportScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ExportScriptRequest.h index b04f333e9..5758d2424 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ExportScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ExportScriptRequest.h @@ -1,51 +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_EXPORTSCRIPTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_EXPORTSCRIPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ExportScriptRequest : public RpcServiceRequest - { - - public: - ExportScriptRequest(); - ~ExportScriptRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_EXPORTSCRIPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_EXPORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_EXPORTSCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ExportScriptRequest : public RpcServiceRequest { +public: + ExportScriptRequest(); + ~ExportScriptRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_EXPORTSCRIPTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GenerateUploadUrlRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GenerateUploadUrlRequest.h new file mode 100644 index 000000000..d3cd087ca --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GenerateUploadUrlRequest.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_GENERATEUPLOADURLREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEUPLOADURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GenerateUploadUrlRequest : public RpcServiceRequest { +public: + GenerateUploadUrlRequest(); + ~GenerateUploadUrlRequest(); + std::string getFileName() const; + void setFileName(const std::string &fileName); + std::string getKey() const; + void setKey(const std::string &key); + +private: + std::string fileName_; + std::string key_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEUPLOADURLREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GenerateUploadUrlResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GenerateUploadUrlResult.h new file mode 100644 index 000000000..b82dd3bf0 --- /dev/null +++ b/outboundbot/include/alibabacloud/outboundbot/model/GenerateUploadUrlResult.h @@ -0,0 +1,70 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEUPLOADURLRESULT_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEUPLOADURLRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace OutboundBot + { + namespace Model + { + class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GenerateUploadUrlResult : public ServiceResult + { + public: + struct Data + { + std::string policy; + int expire; + std::string message; + std::string accessId; + std::string signature; + std::string host; + std::string folder; + bool success; + }; + + + GenerateUploadUrlResult(); + explicit GenerateUploadUrlResult(const std::string &payload); + ~GenerateUploadUrlResult(); + std::string getMessage()const; + int getHttpStatusCode()const; + Data getData()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int httpStatusCode_; + Data data_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GENERATEUPLOADURLRESULT_H_ \ No newline at end of file diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.h index 05de143f1..13629c988 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetAfterAnswerDelayPlaybackRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETAFTERANSWERDELAYPLAYBACKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETAFTERANSWERDELAYPLAYBACKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETAFTERANSWERDELAYPLAYBACKREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoRequest.h index c58c51bf6..7a91c8cbe 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetAsrServerInfoRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETASRSERVERINFOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETASRSERVERINFOREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETASRSERVERINFOREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.h index 820a2566d..5de11c5d4 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetBaseStrategyPeriodRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETBASESTRATEGYPERIODREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETBASESTRATEGYPERIODREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETBASESTRATEGYPERIODREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h index 9c1678599..7d3381317 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetConcurrentConversationQuotaRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetConcurrentConversationQuotaRequest : public RpcServiceRequest - { - - public: - GetConcurrentConversationQuotaRequest(); - ~GetConcurrentConversationQuotaRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetConcurrentConversationQuotaRequest : public RpcServiceRequest { +public: + GetConcurrentConversationQuotaRequest(); + ~GetConcurrentConversationQuotaRequest(); + +private: +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONCURRENTCONVERSATIONQUOTAREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListRequest.h index 2020e7f64..24947e7ad 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListRequest.h @@ -1,57 +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_GETCONTACTBLOCKLISTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTBLOCKLISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetContactBlockListRequest : public RpcServiceRequest - { - - public: - 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); - - private: - bool countTotalRow_; - int pageNumber_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTBLOCKLISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTBLOCKLISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTBLOCKLISTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetContactBlockListRequest : public RpcServiceRequest { +public: + 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); + +private: + bool countTotalRow_; + int pageNumber_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTBLOCKLISTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListResult.h index c4a1987d1..9806b5f65 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetContactBlockListResult.h @@ -42,8 +42,8 @@ namespace AlibabaCloud std::string _operator; std::string contactBlockListId; std::string creator; - std::string name; std::string remark; + std::string name; }; int totalCount; int pageSize; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListRequest.h index 042d0dd40..e5a2e3654 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListRequest.h @@ -1,57 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTWHITELISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTWHITELISTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCONTACTWHITELISTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListResult.h index c16dabf16..2286e0229 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetContactWhiteListResult.h @@ -42,8 +42,8 @@ namespace AlibabaCloud std::string _operator; std::string creator; std::string contactWhiteListId; - std::string name; std::string remark; + std::string name; }; int totalCount; int pageSize; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.h index bd4a055d8..49cea72fc 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetCurrentConcurrencyRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetCurrentConcurrencyRequest : public RpcServiceRequest - { - - public: - GetCurrentConcurrencyRequest(); - ~GetCurrentConcurrencyRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetCurrentConcurrencyRequest : public RpcServiceRequest { +public: + GetCurrentConcurrencyRequest(); + ~GetCurrentConcurrencyRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETCURRENTCONCURRENCYREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysRequest.h index fa1c9fb25..1bf30e279 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEFFECTIVEDAYSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEFFECTIVEDAYSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEFFECTIVEDAYSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h index c7265a442..177c8918a 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetEffectiveDaysResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud GetEffectiveDaysResult(); explicit GetEffectiveDaysResult(const std::string &payload); ~GetEffectiveDaysResult(); - std::string getMessage()const; int getEffectiveDays()const; + std::string getMessage()const; int getHttpStatusCode()const; std::string getCode()const; bool getSuccess()const; @@ -46,8 +46,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string message_; int effectiveDays_; + std::string message_; int httpStatusCode_; std::string code_; bool success_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h index 182c4d81e..7ec94ef29 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetEmptyNumberNoMoreCallsInfoRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetInstanceConfigRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetInstanceConfigRequest.h index 10764aa98..c8dedc801 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetInstanceConfigRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetInstanceConfigRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETINSTANCECONFIGREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETINSTANCECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetInstanceConfigRequest : public RpcServiceRequest - { - - public: - GetInstanceConfigRequest(); - ~GetInstanceConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETINSTANCECONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETINSTANCECONFIGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETINSTANCECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetInstanceConfigRequest : public RpcServiceRequest { +public: + GetInstanceConfigRequest(); + ~GetInstanceConfigRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETINSTANCECONFIGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetInstanceConfigResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetInstanceConfigResult.h index 2b8beba06..30a96dcc4 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetInstanceConfigResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetInstanceConfigResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { struct InstanceConfig { + long esAllDataKeepDay; bool newBargeInSystemSwitch; bool searchTaskFunctionSwitch; bool miniPlaybackSystemSwitch; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.h index acf20e04b..98cb930d7 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetMaxAttemptsPerDayRequest.h @@ -1,51 +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_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETMAXATTEMPTSPERDAYREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETMAXATTEMPTSPERDAYREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETMAXATTEMPTSPERDAYREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.h index 1397334b8..336e79c73 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetNumberDistrictInfoTemplateDownloadUrlRequest : public RpcServiceRequest - { - - public: - GetNumberDistrictInfoTemplateDownloadUrlRequest(); - ~GetNumberDistrictInfoTemplateDownloadUrlRequest(); - - - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetNumberDistrictInfoTemplateDownloadUrlRequest : public RpcServiceRequest { +public: + GetNumberDistrictInfoTemplateDownloadUrlRequest(); + ~GetNumberDistrictInfoTemplateDownloadUrlRequest(); + +private: +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETNUMBERDISTRICTINFOTEMPLATEDOWNLOADURLREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoRequest.h index a9a3cc089..e8ea3b22d 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetSummaryInfoRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETSUMMARYINFOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETSUMMARYINFOREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETSUMMARYINFOREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidRequest.h index f7070d487..25fb566bd 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTASKBYUUIDREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTASKBYUUIDREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETTASKBYUUIDREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidResult.h b/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidResult.h index 886d56dba..a93e64928 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetTaskByUuidResult.h @@ -34,10 +34,10 @@ namespace AlibabaCloud public: struct Task { - std::string calledNumber; std::string jobGroupId; - long plannedTime; + std::string calledNumber; int endReason; + long plannedTime; long endTime; std::string instanceId; long actualTime; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/GetVersionRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/GetVersionRequest.h index 12212dffa..5b98ecf8c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/GetVersionRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/GetVersionRequest.h @@ -1,45 +1,39 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR 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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETVERSIONREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETVERSIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT GetVersionRequest : public RpcServiceRequest { +public: + GetVersionRequest(); + ~GetVersionRequest(); + +private: +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_GETVERSIONREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ImportScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ImportScriptRequest.h index 3567f7fbc..ce9392dac 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ImportScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ImportScriptRequest.h @@ -1,51 +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_IMPORTSCRIPTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_IMPORTSCRIPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ImportScriptRequest : public RpcServiceRequest - { - - public: - ImportScriptRequest(); - ~ImportScriptRequest(); - - std::string getSignatureUrl()const; - void setSignatureUrl(const std::string& signatureUrl); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string signatureUrl_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_IMPORTSCRIPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_IMPORTSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_IMPORTSCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ImportScriptRequest : public RpcServiceRequest { +public: + ImportScriptRequest(); + ~ImportScriptRequest(); + std::string getSignatureUrl() const; + void setSignatureUrl(const std::string &signatureUrl); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string signatureUrl_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_IMPORTSCRIPTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/InflightTaskTimeoutRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/InflightTaskTimeoutRequest.h index 12b6ec9c5..7030140b1 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/InflightTaskTimeoutRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/InflightTaskTimeoutRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_INFLIGHTTASKTIMEOUTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_INFLIGHTTASKTIMEOUTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT InflightTaskTimeoutRequest : public RpcServiceRequest - { - - public: - InflightTaskTimeoutRequest(); - ~InflightTaskTimeoutRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string instanceId_; - long instanceOwnerId_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_INFLIGHTTASKTIMEOUTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_INFLIGHTTASKTIMEOUTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_INFLIGHTTASKTIMEOUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT InflightTaskTimeoutRequest : public RpcServiceRequest { +public: + InflightTaskTimeoutRequest(); + ~InflightTaskTimeoutRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string instanceId_; + long instanceOwnerId_; + std::string taskId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_INFLIGHTTASKTIMEOUTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingRequest.h index 7991224a8..157071449 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListAllTenantBindNumberBindingRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListAllTenantBindNumberBindingRequest : public RpcServiceRequest - { - - public: - ListAllTenantBindNumberBindingRequest(); - ~ListAllTenantBindNumberBindingRequest(); - - std::string getTenant()const; - void setTenant(const std::string& tenant); - - private: - std::string tenant_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListAllTenantBindNumberBindingRequest : public RpcServiceRequest { +public: + ListAllTenantBindNumberBindingRequest(); + ~ListAllTenantBindNumberBindingRequest(); + std::string getTenant() const; + void setTenant(const std::string &tenant); + +private: + std::string tenant_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTALLTENANTBINDNUMBERBINDINGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListChatbotInstancesRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListChatbotInstancesRequest.h index 02f1483a3..422f5cfca 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListChatbotInstancesRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListChatbotInstancesRequest.h @@ -1,51 +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_LISTCHATBOTINSTANCESREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCHATBOTINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListChatbotInstancesRequest : public RpcServiceRequest - { - - public: - ListChatbotInstancesRequest(); - ~ListChatbotInstancesRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCHATBOTINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCHATBOTINSTANCESREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCHATBOTINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListChatbotInstancesRequest : public RpcServiceRequest { +public: + ListChatbotInstancesRequest(); + ~ListChatbotInstancesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTCHATBOTINSTANCESREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListDialogueFlowsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListDialogueFlowsRequest.h index f07f54991..1e84c6095 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListDialogueFlowsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListDialogueFlowsRequest.h @@ -1,51 +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_LISTDIALOGUEFLOWSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTDIALOGUEFLOWSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListDialogueFlowsRequest : public RpcServiceRequest - { - - public: - ListDialogueFlowsRequest(); - ~ListDialogueFlowsRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTDIALOGUEFLOWSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTDIALOGUEFLOWSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTDIALOGUEFLOWSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListDialogueFlowsRequest : public RpcServiceRequest { +public: + ListDialogueFlowsRequest(); + ~ListDialogueFlowsRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTDIALOGUEFLOWSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListDialogueFlowsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListDialogueFlowsResult.h index a935f9008..4d19c92d8 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListDialogueFlowsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListDialogueFlowsResult.h @@ -37,8 +37,8 @@ namespace AlibabaCloud std::string dialogueFlowName; std::string scriptVersion; std::string scriptId; - std::string dialogueFlowId; std::string dialogueFlowType; + std::string dialogueFlowId; std::string dialogueFlowDefinition; }; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListDownloadTasksRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListDownloadTasksRequest.h index caa91bc53..1f4df129e 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListDownloadTasksRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListDownloadTasksRequest.h @@ -1,51 +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_LISTDOWNLOADTASKSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTDOWNLOADTASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListDownloadTasksRequest : public RpcServiceRequest - { - - public: - ListDownloadTasksRequest(); - ~ListDownloadTasksRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTDOWNLOADTASKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTDOWNLOADTASKSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTDOWNLOADTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListDownloadTasksRequest : public RpcServiceRequest { +public: + ListDownloadTasksRequest(); + ~ListDownloadTasksRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + int pageSize_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTDOWNLOADTASKSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListGlobalQuestionsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListGlobalQuestionsRequest.h index 6fdb013a8..604322239 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListGlobalQuestionsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListGlobalQuestionsRequest.h @@ -1,57 +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_LISTGLOBALQUESTIONSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTGLOBALQUESTIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListGlobalQuestionsRequest : public RpcServiceRequest - { - - public: - ListGlobalQuestionsRequest(); - ~ListGlobalQuestionsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string scriptId_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTGLOBALQUESTIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTGLOBALQUESTIONSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTGLOBALQUESTIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListGlobalQuestionsRequest : public RpcServiceRequest { +public: + ListGlobalQuestionsRequest(); + ~ListGlobalQuestionsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string scriptId_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTGLOBALQUESTIONSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesRequest.h index 2f423dba8..2b9ba9f57 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesRequest.h @@ -1,57 +1,49 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINSTANCESREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINSTANCESREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListInstancesRequest : public RpcServiceRequest { +public: + struct Tag { + std::string value; + std::string key; + }; + 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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINSTANCESREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h index b88d1a6a8..4e8ef3721 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListInstancesResult.h @@ -45,8 +45,8 @@ namespace AlibabaCloud std::string value; std::string key; }; - std::string ownerName; std::string owner; + std::string ownerName; std::string resourceGroupId; std::vector resourceTags; std::string instanceId; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListIntentsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListIntentsRequest.h index 83c456b01..39039c9e8 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListIntentsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListIntentsRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINTENTSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINTENTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListIntentsRequest : public RpcServiceRequest - { - - public: - ListIntentsRequest(); - ~ListIntentsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getKeyword()const; - void setKeyword(const std::string& keyword); - - private: - int pageNumber_; - std::string scriptId_; - std::string instanceId_; - int pageSize_; - std::string keyword_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINTENTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINTENTSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINTENTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListIntentsRequest : public RpcServiceRequest { +public: + ListIntentsRequest(); + ~ListIntentsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getKeyword() const; + void setKeyword(const std::string &keyword); + +private: + int pageNumber_; + std::string scriptId_; + std::string instanceId_; + int pageSize_; + std::string keyword_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTINTENTSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListIntentsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListIntentsResult.h index bc33310f4..08de4931c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListIntentsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListIntentsResult.h @@ -39,8 +39,8 @@ namespace AlibabaCloud std::string keywords; std::string intentName; std::string intentDescription; - long createTime; std::string utterances; + long createTime; long updateTime; std::string scriptId; std::string intentId; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncRequest.h index f85a68ee6..fdf24c6bc 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSASYNCREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h index 5a16fb947..71564a8b7 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsAsyncResult.h @@ -45,8 +45,8 @@ namespace AlibabaCloud int pausedNum; int failedNum; long startTime; - int executingNum; int cancelledNum; + int executingNum; int duration; int scheduling; int totalCompleted; @@ -68,8 +68,8 @@ namespace AlibabaCloud std::string scriptId; std::string jobGroupDescription; std::string jobGroupId; - std::string scriptName; int totalCallNum; + std::string scriptName; long creationTime; Strategy strategy; ExportProgress exportProgress; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsRequest.h index fbbc3195b..af5bd4f6c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsRequest.h @@ -1,69 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobGroupsRequest : public RpcServiceRequest - { - - public: - 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; - void setStartTime(long startTime); - int getPageNumber()const; - 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_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobGroupsRequest : public RpcServiceRequest { +public: + 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; + void setStartTime(long startTime); + int getPageNumber() const; + 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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBGROUPSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h index 00f45f115..518e5907a 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobGroupsResult.h @@ -70,8 +70,8 @@ namespace AlibabaCloud std::string scriptId; std::string jobGroupDescription; std::string jobGroupId; - std::string scriptName; int totalCallNum; + std::string scriptName; long creationTime; Strategy strategy; ExportProgress exportProgress; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobsByGroupRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobsByGroupRequest.h index a8173071b..cc2ee4207 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobsByGroupRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobsByGroupRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBSBYGROUPREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBSBYGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobsByGroupRequest : public RpcServiceRequest - { - - public: - ListJobsByGroupRequest(); - ~ListJobsByGroupRequest(); - - std::string getJobStatus()const; - void setJobStatus(const std::string& jobStatus); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getJobFailureReason()const; - void setJobFailureReason(const std::string& jobFailureReason); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string jobStatus_; - int pageNumber_; - std::string instanceId_; - std::string jobFailureReason_; - std::string jobGroupId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBSBYGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBSBYGROUPREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBSBYGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobsByGroupRequest : public RpcServiceRequest { +public: + ListJobsByGroupRequest(); + ~ListJobsByGroupRequest(); + std::string getJobStatus() const; + void setJobStatus(const std::string &jobStatus); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getJobFailureReason() const; + void setJobFailureReason(const std::string &jobFailureReason); + std::string getJobGroupId() const; + void setJobGroupId(const std::string &jobGroupId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + std::string jobStatus_; + int pageNumber_; + std::string instanceId_; + std::string jobFailureReason_; + std::string jobGroupId_; + int pageSize_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBSBYGROUPREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobsByGroupResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobsByGroupResult.h index e704cf4bf..c638402f3 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobsByGroupResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobsByGroupResult.h @@ -71,8 +71,8 @@ namespace AlibabaCloud std::string jobGroupId; std::vector contacts; std::string referenceId; - std::string failureReason; int systemPriority; + std::string failureReason; std::vector summary; std::string jobId; std::vector callingNumbers; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobsRequest.h index 7a07f40fe..ae8491cee 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobsRequest.h @@ -1,51 +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_LISTJOBSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobsRequest : public RpcServiceRequest - { - - public: - ListJobsRequest(); - ~ListJobsRequest(); - - std::vector getJobId()const; - void setJobId(const std::vector& jobId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::vector jobId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListJobsRequest : public RpcServiceRequest { +public: + ListJobsRequest(); + ~ListJobsRequest(); + std::vector getJobId() const; + void setJobId(const std::vector &jobId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::vector jobId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTJOBSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListJobsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListJobsResult.h index bad5389fa..6e1394658 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListJobsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListJobsResult.h @@ -83,8 +83,8 @@ namespace AlibabaCloud std::string speaker; }; std::string status; - std::string chatbotId; long planedTime; + std::string chatbotId; std::string calledNumber; std::string scenarioId; std::string taskId; @@ -106,8 +106,8 @@ namespace AlibabaCloud std::string jobGroupId; std::vector contacts; std::string referenceId; - std::string failureReason; int systemPriority; + std::string failureReason; std::vector summary; std::string jobId; std::vector callingNumbers; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListOutboundCallNumbersRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListOutboundCallNumbersRequest.h index 26924ac16..e8ceb6321 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListOutboundCallNumbersRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListOutboundCallNumbersRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTOUTBOUNDCALLNUMBERSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTOUTBOUNDCALLNUMBERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListOutboundCallNumbersRequest : public RpcServiceRequest - { - - public: - ListOutboundCallNumbersRequest(); - ~ListOutboundCallNumbersRequest(); - - 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: - int pageNumber_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTOUTBOUNDCALLNUMBERSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTOUTBOUNDCALLNUMBERSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTOUTBOUNDCALLNUMBERSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListOutboundCallNumbersRequest : public RpcServiceRequest { +public: + ListOutboundCallNumbersRequest(); + ~ListOutboundCallNumbersRequest(); + 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: + int pageNumber_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTOUTBOUNDCALLNUMBERSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsRequest.h index 4bdc8fd60..99cce3701 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListResourceTagsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTRESOURCETAGSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTRESOURCETAGSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTRESOURCETAGSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListSchedulerInstancesRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListSchedulerInstancesRequest.h index 1473263ca..51d758d29 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListSchedulerInstancesRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListSchedulerInstancesRequest.h @@ -1,48 +1,42 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCHEDULERINSTANCESREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCHEDULERINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListSchedulerInstancesRequest : public RpcServiceRequest - { - - public: - ListSchedulerInstancesRequest(); - ~ListSchedulerInstancesRequest(); - - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - - private: - long instanceOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCHEDULERINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCHEDULERINSTANCESREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCHEDULERINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListSchedulerInstancesRequest : public RpcServiceRequest { +public: + ListSchedulerInstancesRequest(); + ~ListSchedulerInstancesRequest(); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + +private: + long instanceOwnerId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCHEDULERINSTANCESREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptPublishHistoriesRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptPublishHistoriesRequest.h index 2cf3c77a5..baeffca7c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptPublishHistoriesRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptPublishHistoriesRequest.h @@ -1,57 +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_LISTSCRIPTPUBLISHHISTORIESREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTPUBLISHHISTORIESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListScriptPublishHistoriesRequest : public RpcServiceRequest - { - - public: - ListScriptPublishHistoriesRequest(); - ~ListScriptPublishHistoriesRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string scriptId_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTPUBLISHHISTORIESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTPUBLISHHISTORIESREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTPUBLISHHISTORIESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListScriptPublishHistoriesRequest : public RpcServiceRequest { +public: + ListScriptPublishHistoriesRequest(); + ~ListScriptPublishHistoriesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string scriptId_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTPUBLISHHISTORIESREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptVoiceConfigsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptVoiceConfigsRequest.h index c70e3e522..c30a1efa5 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptVoiceConfigsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptVoiceConfigsRequest.h @@ -1,57 +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_LISTSCRIPTVOICECONFIGSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTVOICECONFIGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListScriptVoiceConfigsRequest : public RpcServiceRequest - { - - public: - ListScriptVoiceConfigsRequest(); - ~ListScriptVoiceConfigsRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - std::string scriptId_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTVOICECONFIGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTVOICECONFIGSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTVOICECONFIGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListScriptVoiceConfigsRequest : public RpcServiceRequest { +public: + ListScriptVoiceConfigsRequest(); + ~ListScriptVoiceConfigsRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string scriptId_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTVOICECONFIGSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsRequest.h index dc6cf188b..2792dac3d 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListScriptsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListScriptsRequest : public RpcServiceRequest - { - - public: - ListScriptsRequest(); - ~ListScriptsRequest(); - - 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: - int pageNumber_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListScriptsRequest : public RpcServiceRequest { +public: + ListScriptsRequest(); + ~ListScriptsRequest(); + 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: + int pageNumber_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTSCRIPTSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesRequest.h index 6196d95c9..ecaf184d8 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesRequest.h @@ -1,66 +1,58 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGRESOURCESREQUEST_H_ + +#include +#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; + }; + 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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGRESOURCESREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesResult.h b/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesResult.h index bdbdc611c..24885ce6b 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListTagResourcesResult.h @@ -44,8 +44,8 @@ namespace AlibabaCloud ListTagResourcesResult(); explicit ListTagResourcesResult(const std::string &payload); ~ListTagResourcesResult(); - std::string getMessage()const; std::string getNextToken()const; + std::string getMessage()const; std::vector getTagResources()const; int getHttpStatusCode()const; std::string getCode()const; @@ -54,8 +54,8 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - std::string message_; std::string nextToken_; + std::string message_; std::vector tagResources_; int httpStatusCode_; std::string code_; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ListTagsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ListTagsRequest.h index fe10dc146..b5c13584d 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ListTagsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ListTagsRequest.h @@ -1,51 +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_LISTTAGSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListTagsRequest : public RpcServiceRequest - { - - public: - ListTagsRequest(); - ~ListTagsRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ListTagsRequest : public RpcServiceRequest { +public: + ListTagsRequest(); + ~ListTagsRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_LISTTAGSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyBatchJobsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyBatchJobsRequest.h index 49d4845bf..c44d82a14 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyBatchJobsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyBatchJobsRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYBATCHJOBSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYBATCHJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyBatchJobsRequest : public RpcServiceRequest - { - - public: - ModifyBatchJobsRequest(); - ~ModifyBatchJobsRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getJobFilePath()const; - void setJobFilePath(const std::string& jobFilePath); - std::vector getCallingNumber()const; - void setCallingNumber(const std::vector& callingNumber); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getSubmitted()const; - void setSubmitted(bool submitted); - std::string getBatchJobName()const; - void setBatchJobName(const std::string& batchJobName); - std::string getStrategyJson()const; - void setStrategyJson(const std::string& strategyJson); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - std::string description_; - std::string jobFilePath_; - std::vector callingNumber_; - std::string scriptId_; - std::string instanceId_; - bool submitted_; - std::string batchJobName_; - std::string strategyJson_; - std::string jobGroupId_; - std::string scenarioId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYBATCHJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYBATCHJOBSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYBATCHJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyBatchJobsRequest : public RpcServiceRequest { +public: + ModifyBatchJobsRequest(); + ~ModifyBatchJobsRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getJobFilePath() const; + void setJobFilePath(const std::string &jobFilePath); + 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); + bool getSubmitted() const; + void setSubmitted(bool submitted); + std::string getBatchJobName() const; + void setBatchJobName(const std::string &batchJobName); + std::string getStrategyJson() const; + void setStrategyJson(const std::string &strategyJson); + std::string getJobGroupId() const; + void setJobGroupId(const std::string &jobGroupId); + std::string getScenarioId() const; + void setScenarioId(const std::string &scenarioId); + +private: + std::string description_; + std::string jobFilePath_; + std::string scriptId_; + std::vector callingNumber_; + std::string instanceId_; + bool submitted_; + std::string batchJobName_; + std::string strategyJson_; + std::string jobGroupId_; + std::string scenarioId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYBATCHJOBSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyDialogueFlowRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyDialogueFlowRequest.h index b4120471e..c1e387d51 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyDialogueFlowRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyDialogueFlowRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYDIALOGUEFLOWREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYDIALOGUEFLOWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyDialogueFlowRequest : public RpcServiceRequest - { - - public: - ModifyDialogueFlowRequest(); - ~ModifyDialogueFlowRequest(); - - bool getIsDrafted()const; - void setIsDrafted(bool isDrafted); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getDialogueFlowDefinition()const; - void setDialogueFlowDefinition(const std::string& dialogueFlowDefinition); - std::string getDialogueFlowId()const; - void setDialogueFlowId(const std::string& dialogueFlowId); - - private: - bool isDrafted_; - std::string scriptId_; - std::string instanceId_; - std::string dialogueFlowDefinition_; - std::string dialogueFlowId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYDIALOGUEFLOWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYDIALOGUEFLOWREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYDIALOGUEFLOWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyDialogueFlowRequest : public RpcServiceRequest { +public: + ModifyDialogueFlowRequest(); + ~ModifyDialogueFlowRequest(); + bool getIsDrafted() const; + void setIsDrafted(bool isDrafted); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDialogueFlowDefinition() const; + void setDialogueFlowDefinition(const std::string &dialogueFlowDefinition); + std::string getDialogueFlowId() const; + void setDialogueFlowId(const std::string &dialogueFlowId); + +private: + bool isDrafted_; + std::string scriptId_; + std::string instanceId_; + std::string dialogueFlowDefinition_; + std::string dialogueFlowId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYDIALOGUEFLOWREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoRequest.h index bdaa0f1d8..bc9956160 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyEmptyNumberNoMoreCallsInfoRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYEMPTYNUMBERNOMORECALLSINFOREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyGlobalQuestionRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyGlobalQuestionRequest.h index d24d8c54f..687831e1e 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyGlobalQuestionRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyGlobalQuestionRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYGLOBALQUESTIONREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYGLOBALQUESTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyGlobalQuestionRequest : public RpcServiceRequest - { - - public: - ModifyGlobalQuestionRequest(); - ~ModifyGlobalQuestionRequest(); - - std::string getGlobalQuestionId()const; - void setGlobalQuestionId(const std::string& globalQuestionId); - std::string getGlobalQuestionName()const; - void setGlobalQuestionName(const std::string& globalQuestionName); - std::string getQuestions()const; - void setQuestions(const std::string& questions); - std::string getAnswers()const; - void setAnswers(const std::string& answers); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getGlobalQuestionType()const; - void setGlobalQuestionType(const std::string& globalQuestionType); - - private: - std::string globalQuestionId_; - std::string globalQuestionName_; - std::string questions_; - std::string answers_; - std::string scriptId_; - std::string instanceId_; - std::string globalQuestionType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYGLOBALQUESTIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYGLOBALQUESTIONREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYGLOBALQUESTIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyGlobalQuestionRequest : public RpcServiceRequest { +public: + ModifyGlobalQuestionRequest(); + ~ModifyGlobalQuestionRequest(); + std::string getGlobalQuestionId() const; + void setGlobalQuestionId(const std::string &globalQuestionId); + std::string getGlobalQuestionName() const; + void setGlobalQuestionName(const std::string &globalQuestionName); + std::string getQuestions() const; + void setQuestions(const std::string &questions); + std::string getAnswers() const; + void setAnswers(const std::string &answers); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getGlobalQuestionType() const; + void setGlobalQuestionType(const std::string &globalQuestionType); + +private: + std::string globalQuestionId_; + std::string globalQuestionName_; + std::string questions_; + std::string answers_; + std::string scriptId_; + std::string instanceId_; + std::string globalQuestionType_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYGLOBALQUESTIONREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceRequest.h index 8db55f02c..186dcd574 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyInstanceRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINSTANCEREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyInstanceRequest : public RpcServiceRequest - { - - public: - ModifyInstanceRequest(); - ~ModifyInstanceRequest(); - - int getMaxConcurrentConversation()const; - void setMaxConcurrentConversation(int maxConcurrentConversation); - std::string getSecretKey()const; - void setSecretKey(const std::string& secretKey); - std::string getEndpoint()const; - void setEndpoint(const std::string& endpoint); - std::vector getCallingNumber()const; - void setCallingNumber(const std::vector& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getInstanceName()const; - void setInstanceName(const std::string& instanceName); - std::string getCallCenterInstanceId()const; - void setCallCenterInstanceId(const std::string& callCenterInstanceId); - std::string getAccessKey()const; - void setAccessKey(const std::string& accessKey); - std::string getInstanceDescription()const; - void setInstanceDescription(const std::string& instanceDescription); - std::string getNluServiceType()const; - void setNluServiceType(const std::string& nluServiceType); - - private: - int maxConcurrentConversation_; - std::string secretKey_; - std::string endpoint_; - std::vector callingNumber_; - std::string instanceId_; - std::string instanceName_; - std::string callCenterInstanceId_; - std::string accessKey_; - std::string instanceDescription_; - std::string nluServiceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINSTANCEREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyInstanceRequest : public RpcServiceRequest { +public: + ModifyInstanceRequest(); + ~ModifyInstanceRequest(); + int getMaxConcurrentConversation() const; + void setMaxConcurrentConversation(int maxConcurrentConversation); + std::string getSecretKey() const; + void setSecretKey(const std::string &secretKey); + std::string getEndpoint() const; + void setEndpoint(const std::string &endpoint); + std::vector getCallingNumber() const; + void setCallingNumber(const std::vector &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getInstanceName() const; + void setInstanceName(const std::string &instanceName); + std::string getCallCenterInstanceId() const; + void setCallCenterInstanceId(const std::string &callCenterInstanceId); + std::string getAccessKey() const; + void setAccessKey(const std::string &accessKey); + std::string getInstanceDescription() const; + void setInstanceDescription(const std::string &instanceDescription); + std::string getNluServiceType() const; + void setNluServiceType(const std::string &nluServiceType); + +private: + int maxConcurrentConversation_; + std::string secretKey_; + std::string endpoint_; + std::vector callingNumber_; + std::string instanceId_; + std::string instanceName_; + std::string callCenterInstanceId_; + std::string accessKey_; + std::string instanceDescription_; + std::string nluServiceType_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINSTANCEREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyIntentRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyIntentRequest.h index 16e5f8ca1..b6381a2d3 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyIntentRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyIntentRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINTENTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINTENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyIntentRequest : public RpcServiceRequest - { - - public: - ModifyIntentRequest(); - ~ModifyIntentRequest(); - - std::string getUtterances()const; - void setUtterances(const std::string& utterances); - std::string getKeywords()const; - void setKeywords(const std::string& keywords); - std::string getIntentDescription()const; - void setIntentDescription(const std::string& intentDescription); - std::string getIntentId()const; - void setIntentId(const std::string& intentId); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getIntentName()const; - void setIntentName(const std::string& intentName); - - private: - std::string utterances_; - std::string keywords_; - std::string intentDescription_; - std::string intentId_; - std::string scriptId_; - std::string instanceId_; - std::string intentName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINTENTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINTENTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINTENTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyIntentRequest : public RpcServiceRequest { +public: + ModifyIntentRequest(); + ~ModifyIntentRequest(); + std::string getUtterances() const; + void setUtterances(const std::string &utterances); + std::string getKeywords() const; + void setKeywords(const std::string &keywords); + std::string getIntentDescription() const; + void setIntentDescription(const std::string &intentDescription); + std::string getIntentId() const; + void setIntentId(const std::string &intentId); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getIntentName() const; + void setIntentName(const std::string &intentName); + +private: + std::string utterances_; + std::string keywords_; + std::string intentDescription_; + std::string intentId_; + std::string scriptId_; + std::string instanceId_; + std::string intentName_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYINTENTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyJobGroupRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyJobGroupRequest.h index e38213981..5c4f7354b 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyJobGroupRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyJobGroupRequest.h @@ -1,84 +1,78 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYJOBGROUPREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYJOBGROUPREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyJobGroupRequest : public RpcServiceRequest - { - - public: - ModifyJobGroupRequest(); - ~ModifyJobGroupRequest(); - - std::string getRecallStrategyJson()const; - void setRecallStrategyJson(const std::string& recallStrategyJson); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getStrategyJson()const; - void setStrategyJson(const std::string& strategyJson); - long getRingingDuration()const; - void setRingingDuration(long ringingDuration); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - std::string getJobGroupStatus()const; - void setJobGroupStatus(const std::string& jobGroupStatus); - std::string getPriority()const; - void setPriority(const std::string& priority); - std::vector getCallingNumber()const; - void setCallingNumber(const std::vector& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - std::string getName()const; - void setName(const std::string& name); - long getMinConcurrency()const; - void setMinConcurrency(long minConcurrency); - - private: - std::string recallStrategyJson_; - std::string description_; - std::string scriptId_; - std::string strategyJson_; - long ringingDuration_; - std::string scenarioId_; - std::string jobGroupStatus_; - std::string priority_; - std::vector callingNumber_; - std::string instanceId_; - std::string jobGroupId_; - std::string name_; - long minConcurrency_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYJOBGROUPREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYJOBGROUPREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYJOBGROUPREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyJobGroupRequest : public RpcServiceRequest { +public: + ModifyJobGroupRequest(); + ~ModifyJobGroupRequest(); + std::string getRecallStrategyJson() const; + void setRecallStrategyJson(const std::string &recallStrategyJson); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getStrategyJson() const; + void setStrategyJson(const std::string &strategyJson); + long getRingingDuration() const; + void setRingingDuration(long ringingDuration); + std::string getScenarioId() const; + void setScenarioId(const std::string &scenarioId); + std::string getJobGroupStatus() const; + void setJobGroupStatus(const std::string &jobGroupStatus); + std::string getPriority() const; + void setPriority(const std::string &priority); + std::vector getCallingNumber() const; + void setCallingNumber(const std::vector &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getJobGroupId() const; + void setJobGroupId(const std::string &jobGroupId); + std::string getName() const; + void setName(const std::string &name); + long getMinConcurrency() const; + void setMinConcurrency(long minConcurrency); + +private: + std::string recallStrategyJson_; + std::string description_; + std::string scriptId_; + std::string strategyJson_; + long ringingDuration_; + std::string scenarioId_; + std::string jobGroupStatus_; + std::string priority_; + std::vector callingNumber_; + std::string instanceId_; + std::string jobGroupId_; + std::string name_; + long minConcurrency_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYJOBGROUPREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyOutboundCallNumberRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyOutboundCallNumberRequest.h index cf115630e..e121b088f 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyOutboundCallNumberRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyOutboundCallNumberRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYOUTBOUNDCALLNUMBERREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYOUTBOUNDCALLNUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyOutboundCallNumberRequest : public RpcServiceRequest - { - - public: - ModifyOutboundCallNumberRequest(); - ~ModifyOutboundCallNumberRequest(); - - std::string getOutboundCallNumberId()const; - void setOutboundCallNumberId(const std::string& outboundCallNumberId); - int getRateLimitCount()const; - void setRateLimitCount(int rateLimitCount); - std::string getNumber()const; - void setNumber(const std::string& number); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - int getRateLimitPeriod()const; - void setRateLimitPeriod(int rateLimitPeriod); - - private: - std::string outboundCallNumberId_; - int rateLimitCount_; - std::string number_; - std::string instanceId_; - int rateLimitPeriod_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYOUTBOUNDCALLNUMBERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYOUTBOUNDCALLNUMBERREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYOUTBOUNDCALLNUMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyOutboundCallNumberRequest : public RpcServiceRequest { +public: + ModifyOutboundCallNumberRequest(); + ~ModifyOutboundCallNumberRequest(); + std::string getOutboundCallNumberId() const; + void setOutboundCallNumberId(const std::string &outboundCallNumberId); + int getRateLimitCount() const; + void setRateLimitCount(int rateLimitCount); + std::string getNumber() const; + void setNumber(const std::string &number); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + int getRateLimitPeriod() const; + void setRateLimitPeriod(int rateLimitPeriod); + +private: + std::string outboundCallNumberId_; + int rateLimitCount_; + std::string number_; + std::string instanceId_; + int rateLimitPeriod_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYOUTBOUNDCALLNUMBERREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h index c801428f3..9bcf8e965 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptRequest.h @@ -1,84 +1,78 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyScriptRequest : public RpcServiceRequest - { - - public: - ModifyScriptRequest(); - ~ModifyScriptRequest(); - - std::string getTtsConfig()const; - void setTtsConfig(const std::string& ttsConfig); - std::string getIndustry()const; - void setIndustry(const std::string& industry); - std::string getScriptName()const; - void setScriptName(const std::string& scriptName); - std::string getScene()const; - void setScene(const std::string& scene); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::vector getScriptWaveform()const; - void setScriptWaveform(const std::vector& scriptWaveform); - std::string getAsrConfig()const; - void setAsrConfig(const std::string& asrConfig); - std::string getNlsConfig()const; - void setNlsConfig(const std::string& nlsConfig); - bool getMiniPlaybackEnabled()const; - void setMiniPlaybackEnabled(bool miniPlaybackEnabled); - std::string getChatbotId()const; - void setChatbotId(const std::string& chatbotId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getScriptDescription()const; - void setScriptDescription(const std::string& scriptDescription); - std::vector getScriptContent()const; - void setScriptContent(const std::vector& scriptContent); - - private: - std::string ttsConfig_; - std::string industry_; - std::string scriptName_; - std::string scene_; - std::string scriptId_; - std::vector scriptWaveform_; - std::string asrConfig_; - std::string nlsConfig_; - bool miniPlaybackEnabled_; - std::string chatbotId_; - std::string instanceId_; - std::string scriptDescription_; - std::vector scriptContent_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyScriptRequest : public RpcServiceRequest { +public: + ModifyScriptRequest(); + ~ModifyScriptRequest(); + std::string getTtsConfig() const; + void setTtsConfig(const std::string &ttsConfig); + std::string getIndustry() const; + void setIndustry(const std::string &industry); + std::string getScriptName() const; + void setScriptName(const std::string &scriptName); + std::string getScene() const; + void setScene(const std::string &scene); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::vector getScriptWaveform() const; + void setScriptWaveform(const std::vector &scriptWaveform); + std::string getAsrConfig() const; + void setAsrConfig(const std::string &asrConfig); + std::string getNlsConfig() const; + void setNlsConfig(const std::string &nlsConfig); + bool getMiniPlaybackEnabled() const; + void setMiniPlaybackEnabled(bool miniPlaybackEnabled); + std::string getChatbotId() const; + void setChatbotId(const std::string &chatbotId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getScriptDescription() const; + void setScriptDescription(const std::string &scriptDescription); + std::vector getScriptContent() const; + void setScriptContent(const std::vector &scriptContent); + +private: + std::string ttsConfig_; + std::string industry_; + std::string scriptName_; + std::string scene_; + std::string scriptId_; + std::vector scriptWaveform_; + std::string asrConfig_; + std::string nlsConfig_; + bool miniPlaybackEnabled_; + std::string chatbotId_; + std::string instanceId_; + std::string scriptDescription_; + std::vector scriptContent_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptVoiceConfigRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptVoiceConfigRequest.h index c5ce9e474..8d60495af 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptVoiceConfigRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyScriptVoiceConfigRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTVOICECONFIGREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTVOICECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyScriptVoiceConfigRequest : public RpcServiceRequest - { - - public: - ModifyScriptVoiceConfigRequest(); - ~ModifyScriptVoiceConfigRequest(); - - std::string getType()const; - void setType(const std::string& type); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getScriptVoiceConfigId()const; - void setScriptVoiceConfigId(const std::string& scriptVoiceConfigId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getScriptWaveformRelation()const; - void setScriptWaveformRelation(const std::string& scriptWaveformRelation); - - private: - std::string type_; - std::string scriptId_; - std::string scriptVoiceConfigId_; - std::string instanceId_; - std::string scriptWaveformRelation_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTVOICECONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTVOICECONFIGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTVOICECONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyScriptVoiceConfigRequest : public RpcServiceRequest { +public: + ModifyScriptVoiceConfigRequest(); + ~ModifyScriptVoiceConfigRequest(); + std::string getType() const; + void setType(const std::string &type); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getScriptVoiceConfigId() const; + void setScriptVoiceConfigId(const std::string &scriptVoiceConfigId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getScriptWaveformRelation() const; + void setScriptWaveformRelation(const std::string &scriptWaveformRelation); + +private: + std::string type_; + std::string scriptId_; + std::string scriptVoiceConfigId_; + std::string instanceId_; + std::string scriptWaveformRelation_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYSCRIPTVOICECONFIGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigRequest.h index d8d9e7642..95e02e329 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyTTSConfigRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYTTSCONFIGREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYTTSCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyTTSConfigRequest : public RpcServiceRequest - { - - public: - ModifyTTSConfigRequest(); - ~ModifyTTSConfigRequest(); - - std::string getVoice()const; - void setVoice(const std::string& voice); - std::string getNlsServiceType()const; - void setNlsServiceType(const std::string& nlsServiceType); - std::string getVolume()const; - void setVolume(const std::string& volume); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getAppKey()const; - void setAppKey(const std::string& appKey); - std::string getSpeechRate()const; - void setSpeechRate(const std::string& speechRate); - - private: - std::string voice_; - std::string nlsServiceType_; - std::string volume_; - std::string scriptId_; - std::string instanceId_; - std::string appKey_; - std::string speechRate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYTTSCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYTTSCONFIGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYTTSCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyTTSConfigRequest : public RpcServiceRequest { +public: + ModifyTTSConfigRequest(); + ~ModifyTTSConfigRequest(); + std::string getVoice() const; + void setVoice(const std::string &voice); + std::string getNlsServiceType() const; + void setNlsServiceType(const std::string &nlsServiceType); + std::string getVolume() const; + void setVolume(const std::string &volume); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAppKey() const; + void setAppKey(const std::string &appKey); + std::string getSpeechRate() const; + void setSpeechRate(const std::string &speechRate); + +private: + std::string voice_; + std::string nlsServiceType_; + std::string volume_; + std::string scriptId_; + std::string instanceId_; + std::string appKey_; + std::string speechRate_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYTTSCONFIGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ModifyTagGroupsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ModifyTagGroupsRequest.h index b820bf46a..f55e379d4 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ModifyTagGroupsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ModifyTagGroupsRequest.h @@ -1,57 +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_MODIFYTAGGROUPSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYTAGGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyTagGroupsRequest : public RpcServiceRequest - { - - public: - ModifyTagGroupsRequest(); - ~ModifyTagGroupsRequest(); - - std::string getTags()const; - void setTags(const std::string& tags); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getTagGroups()const; - void setTagGroups(const std::string& tagGroups); - - private: - std::string tags_; - std::string scriptId_; - std::string instanceId_; - std::string tagGroups_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYTAGGROUPSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYTAGGROUPSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYTAGGROUPSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ModifyTagGroupsRequest : public RpcServiceRequest { +public: + ModifyTagGroupsRequest(); + ~ModifyTagGroupsRequest(); + std::string getTags() const; + void setTags(const std::string &tags); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getTagGroups() const; + void setTagGroups(const std::string &tagGroups); + +private: + std::string tags_; + std::string scriptId_; + std::string instanceId_; + std::string tagGroups_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_MODIFYTAGGROUPSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/PublishScriptForDebugRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/PublishScriptForDebugRequest.h index cce637244..4d1d1ff4b 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/PublishScriptForDebugRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/PublishScriptForDebugRequest.h @@ -1,51 +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_PUBLISHSCRIPTFORDEBUGREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_PUBLISHSCRIPTFORDEBUGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT PublishScriptForDebugRequest : public RpcServiceRequest - { - - public: - PublishScriptForDebugRequest(); - ~PublishScriptForDebugRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_PUBLISHSCRIPTFORDEBUGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_PUBLISHSCRIPTFORDEBUGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_PUBLISHSCRIPTFORDEBUGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT PublishScriptForDebugRequest : public RpcServiceRequest { +public: + PublishScriptForDebugRequest(); + ~PublishScriptForDebugRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_PUBLISHSCRIPTFORDEBUGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/PublishScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/PublishScriptRequest.h index e604849b6..787f8b2b6 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/PublishScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/PublishScriptRequest.h @@ -1,57 +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_PUBLISHSCRIPTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_PUBLISHSCRIPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT PublishScriptRequest : public RpcServiceRequest - { - - public: - PublishScriptRequest(); - ~PublishScriptRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - - private: - std::string description_; - std::string scriptId_; - std::string instanceId_; - long instanceOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_PUBLISHSCRIPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_PUBLISHSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_PUBLISHSCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT PublishScriptRequest : public RpcServiceRequest { +public: + PublishScriptRequest(); + ~PublishScriptRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + +private: + std::string description_; + std::string scriptId_; + std::string instanceId_; + long instanceOwnerId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_PUBLISHSCRIPTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsRequest.h index cca3c872b..7d206e3d0 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsRequest.h @@ -1,75 +1,69 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT QueryJobsRequest : public RpcServiceRequest - { - - public: - QueryJobsRequest(); - ~QueryJobsRequest(); - - std::string getTimeAlignment()const; - void setTimeAlignment(const std::string& timeAlignment); - std::string getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - long getEndTime()const; - void setEndTime(long endTime); - long getStartTime()const; - void setStartTime(long startTime); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getContactName()const; - void setContactName(const std::string& contactName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - std::string timeAlignment_; - std::string phoneNumber_; - long endTime_; - long startTime_; - int pageNumber_; - std::string contactName_; - std::string instanceId_; - std::string jobGroupId_; - int pageSize_; - std::string scenarioId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT QueryJobsRequest : public RpcServiceRequest { +public: + QueryJobsRequest(); + ~QueryJobsRequest(); + std::string getTimeAlignment() const; + void setTimeAlignment(const std::string &timeAlignment); + std::string getPhoneNumber() const; + void setPhoneNumber(const std::string &phoneNumber); + long getEndTime() const; + void setEndTime(long endTime); + long getStartTime() const; + void setStartTime(long startTime); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getContactName() const; + void setContactName(const std::string &contactName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getJobGroupId() const; + void setJobGroupId(const std::string &jobGroupId); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getScenarioId() const; + void setScenarioId(const std::string &scenarioId); + +private: + std::string timeAlignment_; + std::string phoneNumber_; + long endTime_; + long startTime_; + int pageNumber_; + std::string contactName_; + std::string instanceId_; + std::string jobGroupId_; + int pageSize_; + std::string scenarioId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsResult.h b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsResult.h index 2b5c64994..09a47cd8a 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsResult.h @@ -77,8 +77,8 @@ namespace AlibabaCloud std::string jobId; }; std::string status; - std::string chatbotId; long planedTime; + std::string chatbotId; std::string calledNumber; std::string scenarioId; std::string taskId; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h index 5f8c22ca3..b34dee5a9 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/QueryJobsWithResultRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSWITHRESULTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSWITHRESULTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYJOBSWITHRESULTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptWaveformsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptWaveformsRequest.h index 6fbace233..e4df52a22 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptWaveformsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptWaveformsRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYSCRIPTWAVEFORMSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYSCRIPTWAVEFORMSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT QueryScriptWaveformsRequest : public RpcServiceRequest - { - - public: - QueryScriptWaveformsRequest(); - ~QueryScriptWaveformsRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getScriptContent()const; - void setScriptContent(const std::string& scriptContent); - - private: - std::string scriptId_; - std::string instanceId_; - std::string scriptContent_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYSCRIPTWAVEFORMSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYSCRIPTWAVEFORMSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYSCRIPTWAVEFORMSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT QueryScriptWaveformsRequest : public RpcServiceRequest { +public: + QueryScriptWaveformsRequest(); + ~QueryScriptWaveformsRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getScriptContent() const; + void setScriptContent(const std::string &scriptContent); + +private: + std::string scriptId_; + std::string instanceId_; + std::string scriptContent_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYSCRIPTWAVEFORMSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptsByStatusRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptsByStatusRequest.h index 098970055..13418baae 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptsByStatusRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptsByStatusRequest.h @@ -1,57 +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_QUERYSCRIPTSBYSTATUSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYSCRIPTSBYSTATUSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT QueryScriptsByStatusRequest : public RpcServiceRequest - { - - public: - QueryScriptsByStatusRequest(); - ~QueryScriptsByStatusRequest(); - - std::vector getStatusList()const; - void setStatusList(const std::vector& statusList); - 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: - std::vector statusList_; - int pageNumber_; - std::string instanceId_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYSCRIPTSBYSTATUSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYSCRIPTSBYSTATUSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYSCRIPTSBYSTATUSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT QueryScriptsByStatusRequest : public RpcServiceRequest { +public: + QueryScriptsByStatusRequest(); + ~QueryScriptsByStatusRequest(); + std::vector getStatusList() const; + void setStatusList(const std::vector &statusList); + 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: + std::vector statusList_; + int pageNumber_; + std::string instanceId_; + int pageSize_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_QUERYSCRIPTSBYSTATUSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptsByStatusResult.h b/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptsByStatusResult.h index b4a3e7132..05ac65040 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptsByStatusResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/QueryScriptsByStatusResult.h @@ -36,14 +36,14 @@ namespace AlibabaCloud { struct Script { - std::string debugVersion; - std::string industry; std::string status; + std::string industry; + std::string debugVersion; std::string appliedVersion; bool isDrafted; std::string scriptName; - std::string scriptDescription; long updateTime; + std::string scriptDescription; std::string scriptId; std::string debugStatus; std::string scene; diff --git a/outboundbot/include/alibabacloud/outboundbot/model/RecordFailureRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/RecordFailureRequest.h index 987a2d186..3d5c2749d 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/RecordFailureRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/RecordFailureRequest.h @@ -1,72 +1,66 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_RECORDFAILUREREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_RECORDFAILUREREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT RecordFailureRequest : public RpcServiceRequest - { - - public: - RecordFailureRequest(); - ~RecordFailureRequest(); - - std::string getCallId()const; - void setCallId(const std::string& callId); - long getActualTime()const; - void setActualTime(long actualTime); - std::string getCallingNumber()const; - void setCallingNumber(const std::string& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getDispositionCode()const; - void setDispositionCode(const std::string& dispositionCode); - std::string getCalledNumber()const; - void setCalledNumber(const std::string& calledNumber); - std::string getInstanceOwnerId()const; - void setInstanceOwnerId(const std::string& instanceOwnerId); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - std::string getExceptionCodes()const; - void setExceptionCodes(const std::string& exceptionCodes); - - private: - std::string callId_; - long actualTime_; - std::string callingNumber_; - std::string instanceId_; - std::string dispositionCode_; - std::string calledNumber_; - std::string instanceOwnerId_; - std::string taskId_; - std::string exceptionCodes_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_RECORDFAILUREREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_RECORDFAILUREREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_RECORDFAILUREREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT RecordFailureRequest : public RpcServiceRequest { +public: + RecordFailureRequest(); + ~RecordFailureRequest(); + std::string getCallId() const; + void setCallId(const std::string &callId); + long getActualTime() const; + void setActualTime(long actualTime); + std::string getCallingNumber() const; + void setCallingNumber(const std::string &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getDispositionCode() const; + void setDispositionCode(const std::string &dispositionCode); + std::string getCalledNumber() const; + void setCalledNumber(const std::string &calledNumber); + std::string getInstanceOwnerId() const; + void setInstanceOwnerId(const std::string &instanceOwnerId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getExceptionCodes() const; + void setExceptionCodes(const std::string &exceptionCodes); + +private: + std::string callId_; + long actualTime_; + std::string callingNumber_; + std::string instanceId_; + std::string dispositionCode_; + std::string calledNumber_; + std::string instanceOwnerId_; + std::string taskId_; + std::string exceptionCodes_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_RECORDFAILUREREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/ResumeJobsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/ResumeJobsRequest.h index 3409bab8a..8160fe11f 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/ResumeJobsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/ResumeJobsRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_RESUMEJOBSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_RESUMEJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ResumeJobsRequest : public RpcServiceRequest - { - - public: - ResumeJobsRequest(); - ~ResumeJobsRequest(); - - bool getAll()const; - void setAll(bool all); - std::vector getJobReferenceId()const; - void setJobReferenceId(const std::vector& jobReferenceId); - std::vector getJobId()const; - void setJobId(const std::vector& jobId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - bool all_; - std::vector jobReferenceId_; - std::vector jobId_; - std::string instanceId_; - std::string jobGroupId_; - std::string scenarioId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_RESUMEJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_RESUMEJOBSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_RESUMEJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT ResumeJobsRequest : public RpcServiceRequest { +public: + ResumeJobsRequest(); + ~ResumeJobsRequest(); + bool getAll() const; + void setAll(bool all); + std::vector getJobReferenceId() const; + void setJobReferenceId(const std::vector &jobReferenceId); + std::vector getJobId() const; + void setJobId(const std::vector &jobId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getJobGroupId() const; + void setJobGroupId(const std::string &jobGroupId); + std::string getScenarioId() const; + void setScenarioId(const std::string &scenarioId); + +private: + bool all_; + std::vector jobReferenceId_; + std::vector jobId_; + std::string instanceId_; + std::string jobGroupId_; + std::string scenarioId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_RESUMEJOBSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/RollbackScriptRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/RollbackScriptRequest.h index 46b606e2d..ea494e613 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/RollbackScriptRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/RollbackScriptRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_ROLLBACKSCRIPTREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_ROLLBACKSCRIPTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT RollbackScriptRequest : public RpcServiceRequest - { - - public: - RollbackScriptRequest(); - ~RollbackScriptRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getRollbackVersion()const; - void setRollbackVersion(const std::string& rollbackVersion); - - private: - std::string scriptId_; - std::string instanceId_; - std::string rollbackVersion_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_ROLLBACKSCRIPTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_ROLLBACKSCRIPTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_ROLLBACKSCRIPTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT RollbackScriptRequest : public RpcServiceRequest { +public: + RollbackScriptRequest(); + ~RollbackScriptRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRollbackVersion() const; + void setRollbackVersion(const std::string &rollbackVersion); + +private: + std::string scriptId_; + std::string instanceId_; + std::string rollbackVersion_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_ROLLBACKSCRIPTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackRequest.h index 7f7fe0296..6abbf14a1 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveAfterAnswerDelayPlaybackRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEAFTERANSWERDELAYPLAYBACKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEAFTERANSWERDELAYPLAYBACKREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEAFTERANSWERDELAYPLAYBACKREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodRequest.h index 1415b4fa7..33ad81316 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveBaseStrategyPeriodRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEBASESTRATEGYPERIODREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEBASESTRATEGYPERIODREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEBASESTRATEGYPERIODREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListRequest.h index 3042c0237..f3b4b7dd8 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactBlockListRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTBLOCKLISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTBLOCKLISTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTBLOCKLISTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListRequest.h index 94e6c08b0..adff5b35f 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveContactWhiteListRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTWHITELISTREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTWHITELISTREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVECONTACTWHITELISTREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysRequest.h index 35515fefa..f1500bd43 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveEffectiveDaysRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEEFFECTIVEDAYSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEEFFECTIVEDAYSREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEEFFECTIVEDAYSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayRequest.h index f16f7f47f..56ba96b52 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SaveMaxAttemptsPerDayRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEMAXATTEMPTSPERDAYREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEMAXATTEMPTSPERDAYREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SAVEMAXATTEMPTSPERDAYREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskRequest.h index 892c15020..1294c9452 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SearchTaskRequest.h @@ -1,114 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SEARCHTASKREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SEARCHTASKREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SearchTaskRequest : public RpcServiceRequest - { - - public: - SearchTaskRequest(); - ~SearchTaskRequest(); - - long getActualTimeLte()const; - void setActualTimeLte(long actualTimeLte); - std::string getOtherId()const; - void setOtherId(const std::string& otherId); - long getTaskCreateTimeLte()const; - void setTaskCreateTimeLte(long taskCreateTimeLte); - std::string getJobId()const; - void setJobId(const std::string& jobId); - long getTaskCreateTimeGte()const; - void setTaskCreateTimeGte(long taskCreateTimeGte); - std::string getCalledNumber()const; - void setCalledNumber(const std::string& calledNumber); - std::string getUserIdMatch()const; - void setUserIdMatch(const std::string& userIdMatch); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getScriptNameQuery()const; - void setScriptNameQuery(const std::string& scriptNameQuery); - int getPageIndex()const; - void setPageIndex(int pageIndex); - std::string getSortOrder()const; - void setSortOrder(const std::string& sortOrder); - std::string getTaskStatusStringList()const; - void setTaskStatusStringList(const std::string& taskStatusStringList); - std::string getJobGroupNameQuery()const; - void setJobGroupNameQuery(const std::string& jobGroupNameQuery); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getRecordingDurationGte()const; - void setRecordingDurationGte(long recordingDurationGte); - long getCallDurationLte()const; - void setCallDurationLte(long callDurationLte); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - std::string getSortBy()const; - void setSortBy(const std::string& sortBy); - std::string getJobStatusStringList()const; - void setJobStatusStringList(const std::string& jobStatusStringList); - long getActualTimeGte()const; - void setActualTimeGte(long actualTimeGte); - long getCallDurationGte()const; - void setCallDurationGte(long callDurationGte); - long getRecordingDurationLte()const; - void setRecordingDurationLte(long recordingDurationLte); - - private: - long actualTimeLte_; - std::string otherId_; - long taskCreateTimeLte_; - std::string jobId_; - long taskCreateTimeGte_; - std::string calledNumber_; - std::string userIdMatch_; - int pageSize_; - std::string scriptNameQuery_; - int pageIndex_; - std::string sortOrder_; - std::string taskStatusStringList_; - std::string jobGroupNameQuery_; - std::string taskId_; - std::string instanceId_; - long recordingDurationGte_; - long callDurationLte_; - std::string jobGroupId_; - std::string sortBy_; - std::string jobStatusStringList_; - long actualTimeGte_; - long callDurationGte_; - long recordingDurationLte_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SEARCHTASKREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SEARCHTASKREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SEARCHTASKREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SearchTaskRequest : public RpcServiceRequest { +public: + SearchTaskRequest(); + ~SearchTaskRequest(); + long getActualTimeLte() const; + void setActualTimeLte(long actualTimeLte); + std::string getOtherId() const; + void setOtherId(const std::string &otherId); + long getTaskCreateTimeLte() const; + void setTaskCreateTimeLte(long taskCreateTimeLte); + std::string getJobId() const; + void setJobId(const std::string &jobId); + long getTaskCreateTimeGte() const; + void setTaskCreateTimeGte(long taskCreateTimeGte); + std::string getCalledNumber() const; + void setCalledNumber(const std::string &calledNumber); + std::string getUserIdMatch() const; + void setUserIdMatch(const std::string &userIdMatch); + int getPageSize() const; + void setPageSize(int pageSize); + std::string getScriptNameQuery() const; + void setScriptNameQuery(const std::string &scriptNameQuery); + int getPageIndex() const; + void setPageIndex(int pageIndex); + std::string getSortOrder() const; + void setSortOrder(const std::string &sortOrder); + std::string getTaskStatusStringList() const; + void setTaskStatusStringList(const std::string &taskStatusStringList); + std::string getJobGroupNameQuery() const; + void setJobGroupNameQuery(const std::string &jobGroupNameQuery); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getRecordingDurationGte() const; + void setRecordingDurationGte(long recordingDurationGte); + long getCallDurationLte() const; + void setCallDurationLte(long callDurationLte); + std::string getJobGroupId() const; + void setJobGroupId(const std::string &jobGroupId); + std::string getSortBy() const; + void setSortBy(const std::string &sortBy); + std::string getJobStatusStringList() const; + void setJobStatusStringList(const std::string &jobStatusStringList); + long getActualTimeGte() const; + void setActualTimeGte(long actualTimeGte); + long getCallDurationGte() const; + void setCallDurationGte(long callDurationGte); + long getRecordingDurationLte() const; + void setRecordingDurationLte(long recordingDurationLte); + +private: + long actualTimeLte_; + std::string otherId_; + long taskCreateTimeLte_; + std::string jobId_; + long taskCreateTimeGte_; + std::string calledNumber_; + std::string userIdMatch_; + int pageSize_; + std::string scriptNameQuery_; + int pageIndex_; + std::string sortOrder_; + std::string taskStatusStringList_; + std::string jobGroupNameQuery_; + std::string taskId_; + std::string instanceId_; + long recordingDurationGte_; + long callDurationLte_; + std::string jobGroupId_; + std::string sortBy_; + std::string jobStatusStringList_; + long actualTimeGte_; + long callDurationGte_; + long recordingDurationLte_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SEARCHTASKREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/StartJobRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/StartJobRequest.h index 54239fa3c..90a417609 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/StartJobRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/StartJobRequest.h @@ -1,66 +1,60 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_STARTJOBREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_STARTJOBREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT StartJobRequest : public RpcServiceRequest - { - - public: - StartJobRequest(); - ~StartJobRequest(); - - std::string getJobJson()const; - void setJobJson(const std::string& jobJson); - std::vector getCallingNumber()const; - void setCallingNumber(const std::vector& callingNumber); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - bool getSelfHostedCallCenter()const; - void setSelfHostedCallCenter(bool selfHostedCallCenter); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - std::string jobJson_; - std::vector callingNumber_; - std::string scriptId_; - std::string instanceId_; - std::string jobGroupId_; - bool selfHostedCallCenter_; - std::string scenarioId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_STARTJOBREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_STARTJOBREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_STARTJOBREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT StartJobRequest : public RpcServiceRequest { +public: + StartJobRequest(); + ~StartJobRequest(); + std::string getJobJson() const; + void setJobJson(const std::string &jobJson); + 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 getJobGroupId() const; + void setJobGroupId(const std::string &jobGroupId); + bool getSelfHostedCallCenter() const; + void setSelfHostedCallCenter(bool selfHostedCallCenter); + std::string getScenarioId() const; + void setScenarioId(const std::string &scenarioId); + +private: + std::string jobJson_; + std::string scriptId_; + std::vector callingNumber_; + std::string instanceId_; + std::string jobGroupId_; + bool selfHostedCallCenter_; + std::string scenarioId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_STARTJOBREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SubmitBatchJobsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SubmitBatchJobsRequest.h index 588b4f633..3aec55436 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SubmitBatchJobsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SubmitBatchJobsRequest.h @@ -1,51 +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_SUBMITBATCHJOBSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITBATCHJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SubmitBatchJobsRequest : public RpcServiceRequest - { - - public: - SubmitBatchJobsRequest(); - ~SubmitBatchJobsRequest(); - - 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_SUBMITBATCHJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITBATCHJOBSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITBATCHJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SubmitBatchJobsRequest : public RpcServiceRequest { +public: + SubmitBatchJobsRequest(); + ~SubmitBatchJobsRequest(); + 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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITBATCHJOBSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SubmitRecordingRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SubmitRecordingRequest.h index 27f598d05..9bf0075b8 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SubmitRecordingRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SubmitRecordingRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITRECORDINGREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITRECORDINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SubmitRecordingRequest : public RpcServiceRequest - { - - public: - SubmitRecordingRequest(); - ~SubmitRecordingRequest(); - - std::string getMergedRecording()const; - void setMergedRecording(const std::string& mergedRecording); - std::string getResourceRecording()const; - void setResourceRecording(const std::string& resourceRecording); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string mergedRecording_; - std::string resourceRecording_; - std::string instanceId_; - long instanceOwnerId_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITRECORDINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITRECORDINGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITRECORDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SubmitRecordingRequest : public RpcServiceRequest { +public: + SubmitRecordingRequest(); + ~SubmitRecordingRequest(); + std::string getMergedRecording() const; + void setMergedRecording(const std::string &mergedRecording); + std::string getResourceRecording() const; + void setResourceRecording(const std::string &resourceRecording); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + std::string getTaskId() const; + void setTaskId(const std::string &taskId); + +private: + std::string mergedRecording_; + std::string resourceRecording_; + std::string instanceId_; + long instanceOwnerId_; + std::string taskId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITRECORDINGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SubmitScriptReviewRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SubmitScriptReviewRequest.h index f0fdc74a2..b7e8fb986 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SubmitScriptReviewRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SubmitScriptReviewRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITSCRIPTREVIEWREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITSCRIPTREVIEWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SubmitScriptReviewRequest : public RpcServiceRequest - { - - public: - SubmitScriptReviewRequest(); - ~SubmitScriptReviewRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string description_; - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITSCRIPTREVIEWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITSCRIPTREVIEWREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITSCRIPTREVIEWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SubmitScriptReviewRequest : public RpcServiceRequest { +public: + SubmitScriptReviewRequest(); + ~SubmitScriptReviewRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string description_; + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUBMITSCRIPTREVIEWREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallRequest.h index 30920c105..b7304f5e5 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileRequest.h index 60d76838b..ad1ef230f 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SuspendCallWithFileRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLWITHFILEREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLWITHFILEREQUEST_H_ + +#include +#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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDCALLWITHFILEREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/SuspendJobsRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/SuspendJobsRequest.h index a2eab2dad..85ed49e7c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/SuspendJobsRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/SuspendJobsRequest.h @@ -1,63 +1,57 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDJOBSREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDJOBSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SuspendJobsRequest : public RpcServiceRequest - { - - public: - SuspendJobsRequest(); - ~SuspendJobsRequest(); - - bool getAll()const; - void setAll(bool all); - std::vector getJobReferenceId()const; - void setJobReferenceId(const std::vector& jobReferenceId); - std::vector getJobId()const; - void setJobId(const std::vector& jobId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getJobGroupId()const; - void setJobGroupId(const std::string& jobGroupId); - std::string getScenarioId()const; - void setScenarioId(const std::string& scenarioId); - - private: - bool all_; - std::vector jobReferenceId_; - std::vector jobId_; - std::string instanceId_; - std::string jobGroupId_; - std::string scenarioId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDJOBSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDJOBSREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDJOBSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT SuspendJobsRequest : public RpcServiceRequest { +public: + SuspendJobsRequest(); + ~SuspendJobsRequest(); + bool getAll() const; + void setAll(bool all); + std::vector getJobReferenceId() const; + void setJobReferenceId(const std::vector &jobReferenceId); + std::vector getJobId() const; + void setJobId(const std::vector &jobId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getJobGroupId() const; + void setJobGroupId(const std::string &jobGroupId); + std::string getScenarioId() const; + void setScenarioId(const std::string &scenarioId); + +private: + bool all_; + std::vector jobReferenceId_; + std::vector jobId_; + std::string instanceId_; + std::string jobGroupId_; + std::string scenarioId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_SUSPENDJOBSREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/TagResourcesRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/TagResourcesRequest.h index ecbf23e7e..d2a4a29da 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/TagResourcesRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/TagResourcesRequest.h @@ -1,63 +1,55 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_TAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TAGRESOURCESREQUEST_H_ + +#include +#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; + }; + 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 ®ionId); + std::vector getTag() const; + void setTag(const std::vector &tag); + +private: + std::vector resourceId_; + std::string resourceType_; + std::string regionId_; + std::vector tag_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TAGRESOURCESREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/TaskPreparingRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/TaskPreparingRequest.h index 28328ead8..540d4b9ca 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/TaskPreparingRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/TaskPreparingRequest.h @@ -1,54 +1,48 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_TASKPREPARINGREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TASKPREPARINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT TaskPreparingRequest : public RpcServiceRequest - { - - public: - TaskPreparingRequest(); - ~TaskPreparingRequest(); - - std::string getJobId()const; - void setJobId(const std::string& jobId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - - private: - std::string jobId_; - std::string instanceId_; - long instanceOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TASKPREPARINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_TASKPREPARINGREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TASKPREPARINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT TaskPreparingRequest : public RpcServiceRequest { +public: + TaskPreparingRequest(); + ~TaskPreparingRequest(); + std::string getJobId() const; + void setJobId(const std::string &jobId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + +private: + std::string jobId_; + std::string instanceId_; + long instanceOwnerId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TASKPREPARINGREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/TerminateCallRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/TerminateCallRequest.h index 2924d74fc..819a701fa 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/TerminateCallRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/TerminateCallRequest.h @@ -1,51 +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_TERMINATECALLREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT TerminateCallRequest : public RpcServiceRequest - { - - public: - TerminateCallRequest(); - ~TerminateCallRequest(); - - std::string getCallId()const; - void setCallId(const std::string& callId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string callId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT TerminateCallRequest : public RpcServiceRequest { +public: + TerminateCallRequest(); + ~TerminateCallRequest(); + std::string getCallId() const; + void setCallId(const std::string &callId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string callId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_TERMINATECALLREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesRequest.h index b19854b4f..def022817 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/UntagResourcesRequest.h @@ -1,60 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#ifndef ALIBABACLOUD_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 + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_UNTAGRESOURCESREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_UNTAGRESOURCESREQUEST_H_ + +#include +#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 ®ionId); + 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_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_UNTAGRESOURCESREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/WithdrawScriptReviewRequest.h b/outboundbot/include/alibabacloud/outboundbot/model/WithdrawScriptReviewRequest.h index 79b3eef89..4a2b1477c 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/WithdrawScriptReviewRequest.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/WithdrawScriptReviewRequest.h @@ -1,51 +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_WITHDRAWSCRIPTREVIEWREQUEST_H_ -#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREVIEWREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace OutboundBot - { - namespace Model - { - class ALIBABACLOUD_OUTBOUNDBOT_EXPORT WithdrawScriptReviewRequest : public RpcServiceRequest - { - - public: - WithdrawScriptReviewRequest(); - ~WithdrawScriptReviewRequest(); - - std::string getScriptId()const; - void setScriptId(const std::string& scriptId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string scriptId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREVIEWREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREVIEWREQUEST_H_ +#define ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREVIEWREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace OutboundBot { +namespace Model { +class ALIBABACLOUD_OUTBOUNDBOT_EXPORT WithdrawScriptReviewRequest : public RpcServiceRequest { +public: + WithdrawScriptReviewRequest(); + ~WithdrawScriptReviewRequest(); + std::string getScriptId() const; + void setScriptId(const std::string &scriptId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string scriptId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace OutboundBot +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_OUTBOUNDBOT_MODEL_WITHDRAWSCRIPTREVIEWREQUEST_H_ diff --git a/outboundbot/include/alibabacloud/outboundbot/model/WithdrawScriptReviewResult.h b/outboundbot/include/alibabacloud/outboundbot/model/WithdrawScriptReviewResult.h index 0cf3f0ec4..117a10380 100644 --- a/outboundbot/include/alibabacloud/outboundbot/model/WithdrawScriptReviewResult.h +++ b/outboundbot/include/alibabacloud/outboundbot/model/WithdrawScriptReviewResult.h @@ -34,12 +34,12 @@ namespace AlibabaCloud public: struct Script { - std::string industry; std::string status; + std::string industry; bool isDrafted; std::string scriptName; - std::string scriptDescription; long updateTime; + std::string scriptDescription; std::string scriptId; std::string debugStatus; std::string scene; diff --git a/outboundbot/src/OutboundBotClient.cc b/outboundbot/src/OutboundBotClient.cc index c4a41fc21..0b56a4e07 100644 --- a/outboundbot/src/OutboundBotClient.cc +++ b/outboundbot/src/OutboundBotClient.cc @@ -2067,6 +2067,42 @@ OutboundBotClient::ExportScriptOutcomeCallable OutboundBotClient::exportScriptCa return task->get_future(); } +OutboundBotClient::GenerateUploadUrlOutcome OutboundBotClient::generateUploadUrl(const GenerateUploadUrlRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return GenerateUploadUrlOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return GenerateUploadUrlOutcome(GenerateUploadUrlResult(outcome.result())); + else + return GenerateUploadUrlOutcome(outcome.error()); +} + +void OutboundBotClient::generateUploadUrlAsync(const GenerateUploadUrlRequest& request, const GenerateUploadUrlAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, generateUploadUrl(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +OutboundBotClient::GenerateUploadUrlOutcomeCallable OutboundBotClient::generateUploadUrlCallable(const GenerateUploadUrlRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->generateUploadUrl(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + OutboundBotClient::GetAfterAnswerDelayPlaybackOutcome OutboundBotClient::getAfterAnswerDelayPlayback(const GetAfterAnswerDelayPlaybackRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); diff --git a/outboundbot/src/model/ApplyNumberDistrictInfoParsingResultRequest.cc b/outboundbot/src/model/ApplyNumberDistrictInfoParsingResultRequest.cc index f3b44768e..b53bbb0d9 100644 --- a/outboundbot/src/model/ApplyNumberDistrictInfoParsingResultRequest.cc +++ b/outboundbot/src/model/ApplyNumberDistrictInfoParsingResultRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ApplyNumberDistrictInfoParsingResultRequest; - -ApplyNumberDistrictInfoParsingResultRequest::ApplyNumberDistrictInfoParsingResultRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ApplyNumberDistrictInfoParsingResult") -{ - setMethod(HttpRequest::Method::Post); -} - -ApplyNumberDistrictInfoParsingResultRequest::~ApplyNumberDistrictInfoParsingResultRequest() -{} - -std::string ApplyNumberDistrictInfoParsingResultRequest::getVersionId()const -{ - return versionId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ApplyNumberDistrictInfoParsingResultRequest; + +ApplyNumberDistrictInfoParsingResultRequest::ApplyNumberDistrictInfoParsingResultRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ApplyNumberDistrictInfoParsingResult") { + setMethod(HttpRequest::Method::Post); } -void ApplyNumberDistrictInfoParsingResultRequest::setVersionId(const std::string& versionId) -{ - versionId_ = versionId; - setParameter("VersionId", versionId); +ApplyNumberDistrictInfoParsingResultRequest::~ApplyNumberDistrictInfoParsingResultRequest() {} + +std::string ApplyNumberDistrictInfoParsingResultRequest::getVersionId() const { + return versionId_; +} + +void ApplyNumberDistrictInfoParsingResultRequest::setVersionId(const std::string &versionId) { + versionId_ = versionId; + setParameter(std::string("VersionId"), versionId); } diff --git a/outboundbot/src/model/AssignJobsRequest.cc b/outboundbot/src/model/AssignJobsRequest.cc index 0e48a84f2..8d5648aa1 100644 --- a/outboundbot/src/model/AssignJobsRequest.cc +++ b/outboundbot/src/model/AssignJobsRequest.cc @@ -1,121 +1,97 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::AssignJobsRequest; - -AssignJobsRequest::AssignJobsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "AssignJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -AssignJobsRequest::~AssignJobsRequest() -{} - -std::vector AssignJobsRequest::getJobsJson()const -{ - return jobsJson_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::AssignJobsRequest; + +AssignJobsRequest::AssignJobsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "AssignJobs") { + setMethod(HttpRequest::Method::Post); } -void AssignJobsRequest::setJobsJson(const std::vector& jobsJson) -{ - jobsJson_ = jobsJson; - for(int dep1 = 0; dep1!= jobsJson.size(); dep1++) { - setParameter("JobsJson."+ std::to_string(dep1), jobsJson.at(dep1)); - } +AssignJobsRequest::~AssignJobsRequest() {} + +std::vector AssignJobsRequest::getJobsJson() const { + return jobsJson_; } -std::vector AssignJobsRequest::getCallingNumber()const -{ - return callingNumber_; +void AssignJobsRequest::setJobsJson(const std::vector &jobsJson) { + jobsJson_ = jobsJson; } -void AssignJobsRequest::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::vector AssignJobsRequest::getCallingNumber() const { + return callingNumber_; } -std::string AssignJobsRequest::getInstanceId()const -{ - return instanceId_; +void AssignJobsRequest::setCallingNumber(const std::vector &callingNumber) { + callingNumber_ = callingNumber; } -void AssignJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AssignJobsRequest::getInstanceId() const { + return instanceId_; } -std::string AssignJobsRequest::getRosterType()const -{ - return rosterType_; +void AssignJobsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AssignJobsRequest::setRosterType(const std::string& rosterType) -{ - rosterType_ = rosterType; - setParameter("RosterType", rosterType); +std::string AssignJobsRequest::getRosterType() const { + return rosterType_; } -std::string AssignJobsRequest::getJobDataParsingTaskId()const -{ - return jobDataParsingTaskId_; +void AssignJobsRequest::setRosterType(const std::string &rosterType) { + rosterType_ = rosterType; + setParameter(std::string("RosterType"), rosterType); } -void AssignJobsRequest::setJobDataParsingTaskId(const std::string& jobDataParsingTaskId) -{ - jobDataParsingTaskId_ = jobDataParsingTaskId; - setParameter("JobDataParsingTaskId", jobDataParsingTaskId); +std::string AssignJobsRequest::getJobDataParsingTaskId() const { + return jobDataParsingTaskId_; } -std::string AssignJobsRequest::getStrategyJson()const -{ - return strategyJson_; +void AssignJobsRequest::setJobDataParsingTaskId(const std::string &jobDataParsingTaskId) { + jobDataParsingTaskId_ = jobDataParsingTaskId; + setParameter(std::string("JobDataParsingTaskId"), jobDataParsingTaskId); } -void AssignJobsRequest::setStrategyJson(const std::string& strategyJson) -{ - strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); +std::string AssignJobsRequest::getStrategyJson() const { + return strategyJson_; } -std::string AssignJobsRequest::getJobGroupId()const -{ - return jobGroupId_; +void AssignJobsRequest::setStrategyJson(const std::string &strategyJson) { + strategyJson_ = strategyJson; + setParameter(std::string("StrategyJson"), strategyJson); } -void AssignJobsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string AssignJobsRequest::getJobGroupId() const { + return jobGroupId_; } -bool AssignJobsRequest::getIsAsynchrony()const -{ - return isAsynchrony_; +void AssignJobsRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void AssignJobsRequest::setIsAsynchrony(bool isAsynchrony) -{ - isAsynchrony_ = isAsynchrony; - setParameter("IsAsynchrony", isAsynchrony ? "true" : "false"); +bool AssignJobsRequest::getIsAsynchrony() const { + return isAsynchrony_; +} + +void AssignJobsRequest::setIsAsynchrony(bool isAsynchrony) { + isAsynchrony_ = isAsynchrony; + setParameter(std::string("IsAsynchrony"), isAsynchrony ? "true" : "false"); } diff --git a/outboundbot/src/model/CancelJobsRequest.cc b/outboundbot/src/model/CancelJobsRequest.cc index 0a4f57ff3..cf819685a 100644 --- a/outboundbot/src/model/CancelJobsRequest.cc +++ b/outboundbot/src/model/CancelJobsRequest.cc @@ -1,99 +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 - -using AlibabaCloud::OutboundBot::Model::CancelJobsRequest; - -CancelJobsRequest::CancelJobsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CancelJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -CancelJobsRequest::~CancelJobsRequest() -{} - -bool CancelJobsRequest::getAll()const -{ - return all_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CancelJobsRequest; + +CancelJobsRequest::CancelJobsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CancelJobs") { + setMethod(HttpRequest::Method::Post); } -void CancelJobsRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +CancelJobsRequest::~CancelJobsRequest() {} + +bool CancelJobsRequest::getAll() const { + return all_; } -std::vector CancelJobsRequest::getJobReferenceId()const -{ - return jobReferenceId_; +void CancelJobsRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); } -void CancelJobsRequest::setJobReferenceId(const std::vector& jobReferenceId) -{ - jobReferenceId_ = jobReferenceId; - for(int dep1 = 0; dep1!= jobReferenceId.size(); dep1++) { - setParameter("JobReferenceId."+ std::to_string(dep1), jobReferenceId.at(dep1)); - } +std::vector CancelJobsRequest::getJobReferenceId() const { + return jobReferenceId_; } -std::vector CancelJobsRequest::getJobId()const -{ - return jobId_; +void CancelJobsRequest::setJobReferenceId(const std::vector &jobReferenceId) { + jobReferenceId_ = jobReferenceId; } -void CancelJobsRequest::setJobId(const std::vector& jobId) -{ - jobId_ = jobId; - for(int dep1 = 0; dep1!= jobId.size(); dep1++) { - setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1)); - } +std::vector CancelJobsRequest::getJobId() const { + return jobId_; } -std::string CancelJobsRequest::getInstanceId()const -{ - return instanceId_; +void CancelJobsRequest::setJobId(const std::vector &jobId) { + jobId_ = jobId; } -void CancelJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CancelJobsRequest::getInstanceId() const { + return instanceId_; } -std::string CancelJobsRequest::getJobGroupId()const -{ - return jobGroupId_; +void CancelJobsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CancelJobsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string CancelJobsRequest::getJobGroupId() const { + return jobGroupId_; } -std::string CancelJobsRequest::getScenarioId()const -{ - return scenarioId_; +void CancelJobsRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void CancelJobsRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); +std::string CancelJobsRequest::getScenarioId() const { + return scenarioId_; +} + +void CancelJobsRequest::setScenarioId(const std::string &scenarioId) { + scenarioId_ = scenarioId; + setParameter(std::string("ScenarioId"), scenarioId); } diff --git a/outboundbot/src/model/CancelJobsResult.cc b/outboundbot/src/model/CancelJobsResult.cc index 8b48ac94b..bd51d1a8c 100644 --- a/outboundbot/src/model/CancelJobsResult.cc +++ b/outboundbot/src/model/CancelJobsResult.cc @@ -39,10 +39,10 @@ void CancelJobsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ChangeResourceGroupRequest.cc b/outboundbot/src/model/ChangeResourceGroupRequest.cc index 97476694f..c758e57fb 100644 --- a/outboundbot/src/model/ChangeResourceGroupRequest.cc +++ b/outboundbot/src/model/ChangeResourceGroupRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ChangeResourceGroupRequest; - -ChangeResourceGroupRequest::ChangeResourceGroupRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ChangeResourceGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ChangeResourceGroupRequest::~ChangeResourceGroupRequest() -{} - -std::string ChangeResourceGroupRequest::getResourceId()const -{ - return resourceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ChangeResourceGroupRequest; + +ChangeResourceGroupRequest::ChangeResourceGroupRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ChangeResourceGroup") { + setMethod(HttpRequest::Method::Post); } -void ChangeResourceGroupRequest::setResourceId(const std::string& resourceId) -{ - resourceId_ = resourceId; - setParameter("ResourceId", resourceId); +ChangeResourceGroupRequest::~ChangeResourceGroupRequest() {} + +std::string ChangeResourceGroupRequest::getResourceId() const { + return resourceId_; } -std::string ChangeResourceGroupRequest::getNewResourceGroupId()const -{ - return newResourceGroupId_; +void ChangeResourceGroupRequest::setResourceId(const std::string &resourceId) { + resourceId_ = resourceId; + setParameter(std::string("ResourceId"), resourceId); } -void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string& newResourceGroupId) -{ - newResourceGroupId_ = newResourceGroupId; - setParameter("NewResourceGroupId", newResourceGroupId); +std::string ChangeResourceGroupRequest::getNewResourceGroupId() const { + return newResourceGroupId_; +} + +void ChangeResourceGroupRequest::setNewResourceGroupId(const std::string &newResourceGroupId) { + newResourceGroupId_ = newResourceGroupId; + setParameter(std::string("NewResourceGroupId"), newResourceGroupId); } diff --git a/outboundbot/src/model/ChangeResourceGroupResult.cc b/outboundbot/src/model/ChangeResourceGroupResult.cc index f7f503d25..8328e6ae9 100644 --- a/outboundbot/src/model/ChangeResourceGroupResult.cc +++ b/outboundbot/src/model/ChangeResourceGroupResult.cc @@ -39,14 +39,14 @@ void ChangeResourceGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/CreateBatchJobsRequest.cc b/outboundbot/src/model/CreateBatchJobsRequest.cc index 19562deee..d29fc40b3 100644 --- a/outboundbot/src/model/CreateBatchJobsRequest.cc +++ b/outboundbot/src/model/CreateBatchJobsRequest.cc @@ -1,130 +1,107 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateBatchJobsRequest; - -CreateBatchJobsRequest::CreateBatchJobsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateBatchJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateBatchJobsRequest::~CreateBatchJobsRequest() -{} - -std::string CreateBatchJobsRequest::getJobFilePath()const -{ - return jobFilePath_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateBatchJobsRequest; + +CreateBatchJobsRequest::CreateBatchJobsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateBatchJobs") { + setMethod(HttpRequest::Method::Post); } -void CreateBatchJobsRequest::setJobFilePath(const std::string& jobFilePath) -{ - jobFilePath_ = jobFilePath; - setParameter("JobFilePath", jobFilePath); +CreateBatchJobsRequest::~CreateBatchJobsRequest() {} + +std::string CreateBatchJobsRequest::getJobFilePath() const { + return jobFilePath_; } -std::string CreateBatchJobsRequest::getScriptId()const -{ - return scriptId_; +void CreateBatchJobsRequest::setJobFilePath(const std::string &jobFilePath) { + jobFilePath_ = jobFilePath; + setParameter(std::string("JobFilePath"), jobFilePath); } -void CreateBatchJobsRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string CreateBatchJobsRequest::getScriptId() const { + return scriptId_; } -std::vector CreateBatchJobsRequest::getCallingNumber()const -{ - return callingNumber_; +void CreateBatchJobsRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void CreateBatchJobsRequest::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::vector CreateBatchJobsRequest::getCallingNumber() const { + return callingNumber_; } -std::string CreateBatchJobsRequest::getInstanceId()const -{ - return instanceId_; +void CreateBatchJobsRequest::setCallingNumber(const std::vector &callingNumber) { + callingNumber_ = callingNumber; } -void CreateBatchJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateBatchJobsRequest::getInstanceId() const { + return instanceId_; } -bool CreateBatchJobsRequest::getSubmitted()const -{ - return submitted_; +void CreateBatchJobsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateBatchJobsRequest::setSubmitted(bool submitted) -{ - submitted_ = submitted; - setParameter("Submitted", submitted ? "true" : "false"); +bool CreateBatchJobsRequest::getSubmitted() const { + return submitted_; } -std::string CreateBatchJobsRequest::getBatchJobName()const -{ - return batchJobName_; +void CreateBatchJobsRequest::setSubmitted(bool submitted) { + submitted_ = submitted; + setParameter(std::string("Submitted"), submitted ? "true" : "false"); } -void CreateBatchJobsRequest::setBatchJobName(const std::string& batchJobName) -{ - batchJobName_ = batchJobName; - setParameter("BatchJobName", batchJobName); +std::string CreateBatchJobsRequest::getBatchJobName() const { + return batchJobName_; } -std::string CreateBatchJobsRequest::getStrategyJson()const -{ - return strategyJson_; +void CreateBatchJobsRequest::setBatchJobName(const std::string &batchJobName) { + batchJobName_ = batchJobName; + setParameter(std::string("BatchJobName"), batchJobName); } -void CreateBatchJobsRequest::setStrategyJson(const std::string& strategyJson) -{ - strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); +std::string CreateBatchJobsRequest::getStrategyJson() const { + return strategyJson_; } -std::string CreateBatchJobsRequest::getBatchJobDescription()const -{ - return batchJobDescription_; +void CreateBatchJobsRequest::setStrategyJson(const std::string &strategyJson) { + strategyJson_ = strategyJson; + setParameter(std::string("StrategyJson"), strategyJson); } -void CreateBatchJobsRequest::setBatchJobDescription(const std::string& batchJobDescription) -{ - batchJobDescription_ = batchJobDescription; - setParameter("BatchJobDescription", batchJobDescription); +std::string CreateBatchJobsRequest::getBatchJobDescription() const { + return batchJobDescription_; } -std::string CreateBatchJobsRequest::getScenarioId()const -{ - return scenarioId_; +void CreateBatchJobsRequest::setBatchJobDescription(const std::string &batchJobDescription) { + batchJobDescription_ = batchJobDescription; + setParameter(std::string("BatchJobDescription"), batchJobDescription); } -void CreateBatchJobsRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); +std::string CreateBatchJobsRequest::getScenarioId() const { + return scenarioId_; +} + +void CreateBatchJobsRequest::setScenarioId(const std::string &scenarioId) { + scenarioId_ = scenarioId; + setParameter(std::string("ScenarioId"), scenarioId); } diff --git a/outboundbot/src/model/CreateBatchJobsResult.cc b/outboundbot/src/model/CreateBatchJobsResult.cc index 3c62de9c1..89ed09060 100644 --- a/outboundbot/src/model/CreateBatchJobsResult.cc +++ b/outboundbot/src/model/CreateBatchJobsResult.cc @@ -40,53 +40,53 @@ void CreateBatchJobsResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto batchJobNode = value["BatchJob"]; - if(!batchJobNode["BatchJobId"].isNull()) - batchJob_.batchJobId = batchJobNode["BatchJobId"].asString(); if(!batchJobNode["CreationTime"].isNull()) batchJob_.creationTime = std::stol(batchJobNode["CreationTime"].asString()); + if(!batchJobNode["ScenarioId"].isNull()) + batchJob_.scenarioId = batchJobNode["ScenarioId"].asString(); + if(!batchJobNode["JobGroupName"].isNull()) + batchJob_.jobGroupName = batchJobNode["JobGroupName"].asString(); + if(!batchJobNode["BatchJobId"].isNull()) + batchJob_.batchJobId = batchJobNode["BatchJobId"].asString(); if(!batchJobNode["JobFilePath"].isNull()) batchJob_.jobFilePath = batchJobNode["JobFilePath"].asString(); if(!batchJobNode["JobGroupDescription"].isNull()) batchJob_.jobGroupDescription = batchJobNode["JobGroupDescription"].asString(); - if(!batchJobNode["JobGroupName"].isNull()) - batchJob_.jobGroupName = batchJobNode["JobGroupName"].asString(); - if(!batchJobNode["ScenarioId"].isNull()) - batchJob_.scenarioId = batchJobNode["ScenarioId"].asString(); auto strategyNode = batchJobNode["Strategy"]; - if(!strategyNode["Customized"].isNull()) - batchJob_.strategy.customized = strategyNode["Customized"].asString(); - if(!strategyNode["EndTime"].isNull()) - batchJob_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); - if(!strategyNode["FollowUpStrategy"].isNull()) - batchJob_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); - if(!strategyNode["IsTemplate"].isNull()) - batchJob_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; - if(!strategyNode["MaxAttemptsPerDay"].isNull()) - batchJob_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); - if(!strategyNode["MinAttemptInterval"].isNull()) - batchJob_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); - if(!strategyNode["RepeatBy"].isNull()) - batchJob_.strategy.repeatBy = strategyNode["RepeatBy"].asString(); - if(!strategyNode["RoutingStrategy"].isNull()) - batchJob_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); - if(!strategyNode["StartTime"].isNull()) - batchJob_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); - if(!strategyNode["StrategyDescription"].isNull()) - batchJob_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString(); - if(!strategyNode["StrategyId"].isNull()) - batchJob_.strategy.strategyId = strategyNode["StrategyId"].asString(); - if(!strategyNode["StrategyName"].isNull()) - batchJob_.strategy.strategyName = strategyNode["StrategyName"].asString(); if(!strategyNode["Type"].isNull()) batchJob_.strategy.type = strategyNode["Type"].asString(); + if(!strategyNode["StrategyName"].isNull()) + batchJob_.strategy.strategyName = strategyNode["StrategyName"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + batchJob_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["FollowUpStrategy"].isNull()) + batchJob_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); + if(!strategyNode["EndTime"].isNull()) + batchJob_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["Customized"].isNull()) + batchJob_.strategy.customized = strategyNode["Customized"].asString(); + if(!strategyNode["IsTemplate"].isNull()) + batchJob_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; + if(!strategyNode["StartTime"].isNull()) + batchJob_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["StrategyId"].isNull()) + batchJob_.strategy.strategyId = strategyNode["StrategyId"].asString(); + if(!strategyNode["RoutingStrategy"].isNull()) + batchJob_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); + if(!strategyNode["MinAttemptInterval"].isNull()) + batchJob_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["StrategyDescription"].isNull()) + batchJob_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString(); + if(!strategyNode["RepeatBy"].isNull()) + batchJob_.strategy.repeatBy = strategyNode["RepeatBy"].asString(); auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) { BatchJob::Strategy::TimeFrame timeFrameObject; - if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) - timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull()) timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString(); + if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) + timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); batchJob_.strategy.workingTime.push_back(timeFrameObject); } auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; @@ -95,10 +95,10 @@ void CreateBatchJobsResult::parse(const std::string &payload) auto allCallingNumbers = batchJobNode["CallingNumbers"]["String"]; for (auto value : allCallingNumbers) batchJob_.callingNumbers.push_back(value.asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/CreateBatchRepeatJobRequest.cc b/outboundbot/src/model/CreateBatchRepeatJobRequest.cc index 203ed5753..3cce728aa 100644 --- a/outboundbot/src/model/CreateBatchRepeatJobRequest.cc +++ b/outboundbot/src/model/CreateBatchRepeatJobRequest.cc @@ -1,163 +1,134 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::getRecallStrategyJson()const -{ - return recallStrategyJson_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateBatchRepeatJobRequest; + +CreateBatchRepeatJobRequest::CreateBatchRepeatJobRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateBatchRepeatJob") { + setMethod(HttpRequest::Method::Post); } -void CreateBatchRepeatJobRequest::setRecallStrategyJson(const std::string& recallStrategyJson) -{ - recallStrategyJson_ = recallStrategyJson; - setParameter("RecallStrategyJson", recallStrategyJson); +CreateBatchRepeatJobRequest::~CreateBatchRepeatJobRequest() {} + +std::string CreateBatchRepeatJobRequest::getRecallStrategyJson() const { + return recallStrategyJson_; } -std::string CreateBatchRepeatJobRequest::getDescription()const -{ - return description_; +void CreateBatchRepeatJobRequest::setRecallStrategyJson(const std::string &recallStrategyJson) { + recallStrategyJson_ = recallStrategyJson; + setParameter(std::string("RecallStrategyJson"), recallStrategyJson); } -void CreateBatchRepeatJobRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string CreateBatchRepeatJobRequest::getDescription() const { + return description_; } -std::string CreateBatchRepeatJobRequest::getScriptId()const -{ - return scriptId_; +void CreateBatchRepeatJobRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateBatchRepeatJobRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string CreateBatchRepeatJobRequest::getScriptId() const { + return scriptId_; } -std::string CreateBatchRepeatJobRequest::getFilterStatus()const -{ - return filterStatus_; +void CreateBatchRepeatJobRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void CreateBatchRepeatJobRequest::setFilterStatus(const std::string& filterStatus) -{ - filterStatus_ = filterStatus; - setParameter("FilterStatus", filterStatus); +std::string CreateBatchRepeatJobRequest::getFilterStatus() const { + return filterStatus_; } -std::string CreateBatchRepeatJobRequest::getStrategyJson()const -{ - return strategyJson_; +void CreateBatchRepeatJobRequest::setFilterStatus(const std::string &filterStatus) { + filterStatus_ = filterStatus; + setParameter(std::string("FilterStatus"), filterStatus); } -void CreateBatchRepeatJobRequest::setStrategyJson(const std::string& strategyJson) -{ - strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); +std::string CreateBatchRepeatJobRequest::getStrategyJson() const { + return strategyJson_; } -long CreateBatchRepeatJobRequest::getRingingDuration()const -{ - return ringingDuration_; +void CreateBatchRepeatJobRequest::setStrategyJson(const std::string &strategyJson) { + strategyJson_ = strategyJson; + setParameter(std::string("StrategyJson"), strategyJson); } -void CreateBatchRepeatJobRequest::setRingingDuration(long ringingDuration) -{ - ringingDuration_ = ringingDuration; - setParameter("RingingDuration", std::to_string(ringingDuration)); +long CreateBatchRepeatJobRequest::getRingingDuration() const { + return ringingDuration_; } -std::string CreateBatchRepeatJobRequest::getPriority()const -{ - return priority_; +void CreateBatchRepeatJobRequest::setRingingDuration(long ringingDuration) { + ringingDuration_ = ringingDuration; + setParameter(std::string("RingingDuration"), std::to_string(ringingDuration)); } -void CreateBatchRepeatJobRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); +std::string CreateBatchRepeatJobRequest::getPriority() const { + return priority_; } -std::vector CreateBatchRepeatJobRequest::getCallingNumber()const -{ - return callingNumber_; +void CreateBatchRepeatJobRequest::setPriority(const std::string &priority) { + priority_ = priority; + setParameter(std::string("Priority"), priority); } -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::vector CreateBatchRepeatJobRequest::getCallingNumber() const { + return callingNumber_; } -std::string CreateBatchRepeatJobRequest::getInstanceId()const -{ - return instanceId_; +void CreateBatchRepeatJobRequest::setCallingNumber(const std::vector &callingNumber) { + callingNumber_ = callingNumber; } -void CreateBatchRepeatJobRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateBatchRepeatJobRequest::getInstanceId() const { + return instanceId_; } -std::string CreateBatchRepeatJobRequest::getName()const -{ - return name_; +void CreateBatchRepeatJobRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateBatchRepeatJobRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateBatchRepeatJobRequest::getName() const { + return name_; } -std::string CreateBatchRepeatJobRequest::getSourceGroupId()const -{ - return sourceGroupId_; +void CreateBatchRepeatJobRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateBatchRepeatJobRequest::setSourceGroupId(const std::string& sourceGroupId) -{ - sourceGroupId_ = sourceGroupId; - setParameter("SourceGroupId", sourceGroupId); +std::string CreateBatchRepeatJobRequest::getSourceGroupId() const { + return sourceGroupId_; } -long CreateBatchRepeatJobRequest::getMinConcurrency()const -{ - return minConcurrency_; +void CreateBatchRepeatJobRequest::setSourceGroupId(const std::string &sourceGroupId) { + sourceGroupId_ = sourceGroupId; + setParameter(std::string("SourceGroupId"), sourceGroupId); } -void CreateBatchRepeatJobRequest::setMinConcurrency(long minConcurrency) -{ - minConcurrency_ = minConcurrency; - setParameter("MinConcurrency", std::to_string(minConcurrency)); +long CreateBatchRepeatJobRequest::getMinConcurrency() const { + return minConcurrency_; +} + +void CreateBatchRepeatJobRequest::setMinConcurrency(long minConcurrency) { + minConcurrency_ = minConcurrency; + setParameter(std::string("MinConcurrency"), std::to_string(minConcurrency)); } diff --git a/outboundbot/src/model/CreateDialogueFlowRequest.cc b/outboundbot/src/model/CreateDialogueFlowRequest.cc index 8e707a2a5..e38820b3f 100644 --- a/outboundbot/src/model/CreateDialogueFlowRequest.cc +++ b/outboundbot/src/model/CreateDialogueFlowRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateDialogueFlowRequest; - -CreateDialogueFlowRequest::CreateDialogueFlowRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateDialogueFlow") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateDialogueFlowRequest::~CreateDialogueFlowRequest() -{} - -std::string CreateDialogueFlowRequest::getDialogueFlowType()const -{ - return dialogueFlowType_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateDialogueFlowRequest; + +CreateDialogueFlowRequest::CreateDialogueFlowRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateDialogueFlow") { + setMethod(HttpRequest::Method::Post); } -void CreateDialogueFlowRequest::setDialogueFlowType(const std::string& dialogueFlowType) -{ - dialogueFlowType_ = dialogueFlowType; - setParameter("DialogueFlowType", dialogueFlowType); +CreateDialogueFlowRequest::~CreateDialogueFlowRequest() {} + +std::string CreateDialogueFlowRequest::getDialogueFlowType() const { + return dialogueFlowType_; } -std::string CreateDialogueFlowRequest::getDialogueName()const -{ - return dialogueName_; +void CreateDialogueFlowRequest::setDialogueFlowType(const std::string &dialogueFlowType) { + dialogueFlowType_ = dialogueFlowType; + setParameter(std::string("DialogueFlowType"), dialogueFlowType); } -void CreateDialogueFlowRequest::setDialogueName(const std::string& dialogueName) -{ - dialogueName_ = dialogueName; - setParameter("DialogueName", dialogueName); +std::string CreateDialogueFlowRequest::getDialogueName() const { + return dialogueName_; } -std::string CreateDialogueFlowRequest::getScriptId()const -{ - return scriptId_; +void CreateDialogueFlowRequest::setDialogueName(const std::string &dialogueName) { + dialogueName_ = dialogueName; + setParameter(std::string("DialogueName"), dialogueName); } -void CreateDialogueFlowRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string CreateDialogueFlowRequest::getScriptId() const { + return scriptId_; } -std::string CreateDialogueFlowRequest::getInstanceId()const -{ - return instanceId_; +void CreateDialogueFlowRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void CreateDialogueFlowRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateDialogueFlowRequest::getInstanceId() const { + return instanceId_; +} + +void CreateDialogueFlowRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/CreateDialogueFlowResult.cc b/outboundbot/src/model/CreateDialogueFlowResult.cc index f1fc48c4d..e086c9b87 100644 --- a/outboundbot/src/model/CreateDialogueFlowResult.cc +++ b/outboundbot/src/model/CreateDialogueFlowResult.cc @@ -39,16 +39,16 @@ void CreateDialogueFlowResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["DialogueFlowId"].isNull()) - dialogueFlowId_ = value["DialogueFlowId"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["DialogueFlowId"].isNull()) + dialogueFlowId_ = value["DialogueFlowId"].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(); } diff --git a/outboundbot/src/model/CreateDownloadUrlRequest.cc b/outboundbot/src/model/CreateDownloadUrlRequest.cc index 3689bfde9..637bbb689 100644 --- a/outboundbot/src/model/CreateDownloadUrlRequest.cc +++ b/outboundbot/src/model/CreateDownloadUrlRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateDownloadUrlRequest; - -CreateDownloadUrlRequest::CreateDownloadUrlRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateDownloadUrl") -{ - setMethod(HttpRequest::Method::Get); -} - -CreateDownloadUrlRequest::~CreateDownloadUrlRequest() -{} - -std::string CreateDownloadUrlRequest::getDownloadTaskId()const -{ - return downloadTaskId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateDownloadUrlRequest; + +CreateDownloadUrlRequest::CreateDownloadUrlRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateDownloadUrl") { + setMethod(HttpRequest::Method::Get); } -void CreateDownloadUrlRequest::setDownloadTaskId(const std::string& downloadTaskId) -{ - downloadTaskId_ = downloadTaskId; - setParameter("DownloadTaskId", downloadTaskId); +CreateDownloadUrlRequest::~CreateDownloadUrlRequest() {} + +std::string CreateDownloadUrlRequest::getDownloadTaskId() const { + return downloadTaskId_; } -std::string CreateDownloadUrlRequest::getFileId()const -{ - return fileId_; +void CreateDownloadUrlRequest::setDownloadTaskId(const std::string &downloadTaskId) { + downloadTaskId_ = downloadTaskId; + setParameter(std::string("DownloadTaskId"), downloadTaskId); } -void CreateDownloadUrlRequest::setFileId(const std::string& fileId) -{ - fileId_ = fileId; - setParameter("FileId", fileId); +std::string CreateDownloadUrlRequest::getFileId() const { + return fileId_; +} + +void CreateDownloadUrlRequest::setFileId(const std::string &fileId) { + fileId_ = fileId; + setParameter(std::string("FileId"), fileId); } diff --git a/outboundbot/src/model/CreateGlobalQuestionRequest.cc b/outboundbot/src/model/CreateGlobalQuestionRequest.cc index 2c5bf5dce..5f73e77af 100644 --- a/outboundbot/src/model/CreateGlobalQuestionRequest.cc +++ b/outboundbot/src/model/CreateGlobalQuestionRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateGlobalQuestionRequest; - -CreateGlobalQuestionRequest::CreateGlobalQuestionRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateGlobalQuestion") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateGlobalQuestionRequest::~CreateGlobalQuestionRequest() -{} - -std::string CreateGlobalQuestionRequest::getGlobalQuestionName()const -{ - return globalQuestionName_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateGlobalQuestionRequest; + +CreateGlobalQuestionRequest::CreateGlobalQuestionRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateGlobalQuestion") { + setMethod(HttpRequest::Method::Post); } -void CreateGlobalQuestionRequest::setGlobalQuestionName(const std::string& globalQuestionName) -{ - globalQuestionName_ = globalQuestionName; - setParameter("GlobalQuestionName", globalQuestionName); +CreateGlobalQuestionRequest::~CreateGlobalQuestionRequest() {} + +std::string CreateGlobalQuestionRequest::getGlobalQuestionName() const { + return globalQuestionName_; } -std::string CreateGlobalQuestionRequest::getQuestions()const -{ - return questions_; +void CreateGlobalQuestionRequest::setGlobalQuestionName(const std::string &globalQuestionName) { + globalQuestionName_ = globalQuestionName; + setParameter(std::string("GlobalQuestionName"), globalQuestionName); } -void CreateGlobalQuestionRequest::setQuestions(const std::string& questions) -{ - questions_ = questions; - setParameter("Questions", questions); +std::string CreateGlobalQuestionRequest::getQuestions() const { + return questions_; } -std::string CreateGlobalQuestionRequest::getAnswers()const -{ - return answers_; +void CreateGlobalQuestionRequest::setQuestions(const std::string &questions) { + questions_ = questions; + setParameter(std::string("Questions"), questions); } -void CreateGlobalQuestionRequest::setAnswers(const std::string& answers) -{ - answers_ = answers; - setParameter("Answers", answers); +std::string CreateGlobalQuestionRequest::getAnswers() const { + return answers_; } -std::string CreateGlobalQuestionRequest::getScriptId()const -{ - return scriptId_; +void CreateGlobalQuestionRequest::setAnswers(const std::string &answers) { + answers_ = answers; + setParameter(std::string("Answers"), answers); } -void CreateGlobalQuestionRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string CreateGlobalQuestionRequest::getScriptId() const { + return scriptId_; } -std::string CreateGlobalQuestionRequest::getInstanceId()const -{ - return instanceId_; +void CreateGlobalQuestionRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void CreateGlobalQuestionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateGlobalQuestionRequest::getInstanceId() const { + return instanceId_; } -std::string CreateGlobalQuestionRequest::getGlobalQuestionType()const -{ - return globalQuestionType_; +void CreateGlobalQuestionRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateGlobalQuestionRequest::setGlobalQuestionType(const std::string& globalQuestionType) -{ - globalQuestionType_ = globalQuestionType; - setParameter("GlobalQuestionType", globalQuestionType); +std::string CreateGlobalQuestionRequest::getGlobalQuestionType() const { + return globalQuestionType_; +} + +void CreateGlobalQuestionRequest::setGlobalQuestionType(const std::string &globalQuestionType) { + globalQuestionType_ = globalQuestionType; + setParameter(std::string("GlobalQuestionType"), globalQuestionType); } diff --git a/outboundbot/src/model/CreateGlobalQuestionResult.cc b/outboundbot/src/model/CreateGlobalQuestionResult.cc index 07a8c2bf6..727885fc1 100644 --- a/outboundbot/src/model/CreateGlobalQuestionResult.cc +++ b/outboundbot/src/model/CreateGlobalQuestionResult.cc @@ -39,16 +39,16 @@ void CreateGlobalQuestionResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["GlobalQuestionId"].isNull()) - globalQuestionId_ = value["GlobalQuestionId"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["GlobalQuestionId"].isNull()) + globalQuestionId_ = value["GlobalQuestionId"].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(); } diff --git a/outboundbot/src/model/CreateInstanceBindNumberRequest.cc b/outboundbot/src/model/CreateInstanceBindNumberRequest.cc index 857bceec1..0947b1233 100644 --- a/outboundbot/src/model/CreateInstanceBindNumberRequest.cc +++ b/outboundbot/src/model/CreateInstanceBindNumberRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateInstanceBindNumberRequest; - -CreateInstanceBindNumberRequest::CreateInstanceBindNumberRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstanceBindNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateInstanceBindNumberRequest::~CreateInstanceBindNumberRequest() -{} - -std::string CreateInstanceBindNumberRequest::getInstanceList()const -{ - return instanceList_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateInstanceBindNumberRequest; + +CreateInstanceBindNumberRequest::CreateInstanceBindNumberRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstanceBindNumber") { + setMethod(HttpRequest::Method::Post); } -void CreateInstanceBindNumberRequest::setInstanceList(const std::string& instanceList) -{ - instanceList_ = instanceList; - setParameter("InstanceList", instanceList); +CreateInstanceBindNumberRequest::~CreateInstanceBindNumberRequest() {} + +std::string CreateInstanceBindNumberRequest::getInstanceList() const { + return instanceList_; } -std::string CreateInstanceBindNumberRequest::getNumber()const -{ - return number_; +void CreateInstanceBindNumberRequest::setInstanceList(const std::string &instanceList) { + instanceList_ = instanceList; + setParameter(std::string("InstanceList"), instanceList); } -void CreateInstanceBindNumberRequest::setNumber(const std::string& number) -{ - number_ = number; - setParameter("Number", number); +std::string CreateInstanceBindNumberRequest::getNumber() const { + return number_; +} + +void CreateInstanceBindNumberRequest::setNumber(const std::string &number) { + number_ = number; + setParameter(std::string("Number"), number); } diff --git a/outboundbot/src/model/CreateInstanceRequest.cc b/outboundbot/src/model/CreateInstanceRequest.cc index ad589cbed..e32c5bc99 100644 --- a/outboundbot/src/model/CreateInstanceRequest.cc +++ b/outboundbot/src/model/CreateInstanceRequest.cc @@ -1,141 +1,116 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateInstanceRequest; - -CreateInstanceRequest::CreateInstanceRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateInstanceRequest::~CreateInstanceRequest() -{} - -int CreateInstanceRequest::getMaxConcurrentConversation()const -{ - return maxConcurrentConversation_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateInstanceRequest; + +CreateInstanceRequest::CreateInstanceRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateInstance") { + setMethod(HttpRequest::Method::Post); } -void CreateInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation) -{ - maxConcurrentConversation_ = maxConcurrentConversation; - setParameter("MaxConcurrentConversation", std::to_string(maxConcurrentConversation)); +CreateInstanceRequest::~CreateInstanceRequest() {} + +int CreateInstanceRequest::getMaxConcurrentConversation() const { + return maxConcurrentConversation_; } -std::string CreateInstanceRequest::getSecretKey()const -{ - return secretKey_; +void CreateInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation) { + maxConcurrentConversation_ = maxConcurrentConversation; + setParameter(std::string("MaxConcurrentConversation"), std::to_string(maxConcurrentConversation)); } -void CreateInstanceRequest::setSecretKey(const std::string& secretKey) -{ - secretKey_ = secretKey; - setParameter("SecretKey", secretKey); +std::string CreateInstanceRequest::getSecretKey() const { + return secretKey_; } -std::string CreateInstanceRequest::getResourceGroupId()const -{ - return resourceGroupId_; +void CreateInstanceRequest::setSecretKey(const std::string &secretKey) { + secretKey_ = secretKey; + setParameter(std::string("SecretKey"), secretKey); } -void CreateInstanceRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +std::string CreateInstanceRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::string CreateInstanceRequest::getEndpoint()const -{ - return endpoint_; +void CreateInstanceRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -void CreateInstanceRequest::setEndpoint(const std::string& endpoint) -{ - endpoint_ = endpoint; - setParameter("Endpoint", endpoint); +std::string CreateInstanceRequest::getEndpoint() const { + return endpoint_; } -std::vector CreateInstanceRequest::getCallingNumber()const -{ - return callingNumber_; +void CreateInstanceRequest::setEndpoint(const std::string &endpoint) { + endpoint_ = endpoint; + setParameter(std::string("Endpoint"), endpoint); } -void CreateInstanceRequest::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::vector CreateInstanceRequest::getCallingNumber() const { + return callingNumber_; } -std::string CreateInstanceRequest::getInstanceName()const -{ - return instanceName_; +void CreateInstanceRequest::setCallingNumber(const std::vector &callingNumber) { + callingNumber_ = callingNumber; } -void CreateInstanceRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +std::string CreateInstanceRequest::getInstanceName() const { + return instanceName_; } -std::string CreateInstanceRequest::getCallCenterInstanceId()const -{ - return callCenterInstanceId_; +void CreateInstanceRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -void CreateInstanceRequest::setCallCenterInstanceId(const std::string& callCenterInstanceId) -{ - callCenterInstanceId_ = callCenterInstanceId; - setParameter("CallCenterInstanceId", callCenterInstanceId); +std::string CreateInstanceRequest::getCallCenterInstanceId() const { + return callCenterInstanceId_; } -std::string CreateInstanceRequest::getAccessKey()const -{ - return accessKey_; +void CreateInstanceRequest::setCallCenterInstanceId(const std::string &callCenterInstanceId) { + callCenterInstanceId_ = callCenterInstanceId; + setParameter(std::string("CallCenterInstanceId"), callCenterInstanceId); } -void CreateInstanceRequest::setAccessKey(const std::string& accessKey) -{ - accessKey_ = accessKey; - setParameter("AccessKey", accessKey); +std::string CreateInstanceRequest::getAccessKey() const { + return accessKey_; } -std::string CreateInstanceRequest::getInstanceDescription()const -{ - return instanceDescription_; +void CreateInstanceRequest::setAccessKey(const std::string &accessKey) { + accessKey_ = accessKey; + setParameter(std::string("AccessKey"), accessKey); } -void CreateInstanceRequest::setInstanceDescription(const std::string& instanceDescription) -{ - instanceDescription_ = instanceDescription; - setParameter("InstanceDescription", instanceDescription); +std::string CreateInstanceRequest::getInstanceDescription() const { + return instanceDescription_; } -std::string CreateInstanceRequest::getNluServiceType()const -{ - return nluServiceType_; +void CreateInstanceRequest::setInstanceDescription(const std::string &instanceDescription) { + instanceDescription_ = instanceDescription; + setParameter(std::string("InstanceDescription"), instanceDescription); } -void CreateInstanceRequest::setNluServiceType(const std::string& nluServiceType) -{ - nluServiceType_ = nluServiceType; - setParameter("NluServiceType", nluServiceType); +std::string CreateInstanceRequest::getNluServiceType() const { + return nluServiceType_; +} + +void CreateInstanceRequest::setNluServiceType(const std::string &nluServiceType) { + nluServiceType_ = nluServiceType; + setParameter(std::string("NluServiceType"), nluServiceType); } diff --git a/outboundbot/src/model/CreateInstanceResult.cc b/outboundbot/src/model/CreateInstanceResult.cc index 148ce61a9..a9403d13d 100644 --- a/outboundbot/src/model/CreateInstanceResult.cc +++ b/outboundbot/src/model/CreateInstanceResult.cc @@ -40,41 +40,41 @@ void CreateInstanceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto instanceNode = value["Instance"]; - if(!instanceNode["CallCenterInstanceId"].isNull()) - instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString(); if(!instanceNode["CreationTime"].isNull()) instance_.creationTime = std::stol(instanceNode["CreationTime"].asString()); - if(!instanceNode["InstanceDescription"].isNull()) - instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); - if(!instanceNode["InstanceId"].isNull()) - instance_.instanceId = instanceNode["InstanceId"].asString(); - if(!instanceNode["InstanceName"].isNull()) - instance_.instanceName = instanceNode["InstanceName"].asString(); - if(!instanceNode["MaxConcurrentConversation"].isNull()) - instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); - if(!instanceNode["NluServiceType"].isNull()) - instance_.nluServiceType = instanceNode["NluServiceType"].asString(); + if(!instanceNode["CallCenterInstanceId"].isNull()) + instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString(); if(!instanceNode["Owner"].isNull()) instance_.owner = instanceNode["Owner"].asString(); + if(!instanceNode["NluServiceType"].isNull()) + instance_.nluServiceType = instanceNode["NluServiceType"].asString(); + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].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["InstanceDescription"].isNull()) + instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); + if(!instanceNode["InstanceName"].isNull()) + instance_.instanceName = instanceNode["InstanceName"].asString(); + if(!instanceNode["CreatorName"].isNull()) + instance_.creatorName = instanceNode["CreatorName"].asString(); if(!instanceNode["ResourceGroupId"].isNull()) instance_.resourceGroupId = instanceNode["ResourceGroupId"].asString(); + if(!instanceNode["MaxConcurrentConversation"].isNull()) + instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); auto nluProfileNode = instanceNode["NluProfile"]; 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()) - code_ = value["Code"].asString(); + if(!nluProfileNode["Endpoint"].isNull()) + instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/CreateIntentRequest.cc b/outboundbot/src/model/CreateIntentRequest.cc index d87e29ae6..baad09df2 100644 --- a/outboundbot/src/model/CreateIntentRequest.cc +++ b/outboundbot/src/model/CreateIntentRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateIntentRequest; - -CreateIntentRequest::CreateIntentRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateIntent") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateIntentRequest::~CreateIntentRequest() -{} - -std::string CreateIntentRequest::getUtterances()const -{ - return utterances_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateIntentRequest; + +CreateIntentRequest::CreateIntentRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateIntent") { + setMethod(HttpRequest::Method::Post); } -void CreateIntentRequest::setUtterances(const std::string& utterances) -{ - utterances_ = utterances; - setParameter("Utterances", utterances); +CreateIntentRequest::~CreateIntentRequest() {} + +std::string CreateIntentRequest::getUtterances() const { + return utterances_; } -std::string CreateIntentRequest::getKeywords()const -{ - return keywords_; +void CreateIntentRequest::setUtterances(const std::string &utterances) { + utterances_ = utterances; + setParameter(std::string("Utterances"), utterances); } -void CreateIntentRequest::setKeywords(const std::string& keywords) -{ - keywords_ = keywords; - setParameter("Keywords", keywords); +std::string CreateIntentRequest::getKeywords() const { + return keywords_; } -std::string CreateIntentRequest::getIntentDescription()const -{ - return intentDescription_; +void CreateIntentRequest::setKeywords(const std::string &keywords) { + keywords_ = keywords; + setParameter(std::string("Keywords"), keywords); } -void CreateIntentRequest::setIntentDescription(const std::string& intentDescription) -{ - intentDescription_ = intentDescription; - setParameter("IntentDescription", intentDescription); +std::string CreateIntentRequest::getIntentDescription() const { + return intentDescription_; } -std::string CreateIntentRequest::getScriptId()const -{ - return scriptId_; +void CreateIntentRequest::setIntentDescription(const std::string &intentDescription) { + intentDescription_ = intentDescription; + setParameter(std::string("IntentDescription"), intentDescription); } -void CreateIntentRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string CreateIntentRequest::getScriptId() const { + return scriptId_; } -std::string CreateIntentRequest::getInstanceId()const -{ - return instanceId_; +void CreateIntentRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void CreateIntentRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateIntentRequest::getInstanceId() const { + return instanceId_; } -std::string CreateIntentRequest::getIntentName()const -{ - return intentName_; +void CreateIntentRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateIntentRequest::setIntentName(const std::string& intentName) -{ - intentName_ = intentName; - setParameter("IntentName", intentName); +std::string CreateIntentRequest::getIntentName() const { + return intentName_; +} + +void CreateIntentRequest::setIntentName(const std::string &intentName) { + intentName_ = intentName; + setParameter(std::string("IntentName"), intentName); } diff --git a/outboundbot/src/model/CreateIntentResult.cc b/outboundbot/src/model/CreateIntentResult.cc index 81d4a2163..26abae67b 100644 --- a/outboundbot/src/model/CreateIntentResult.cc +++ b/outboundbot/src/model/CreateIntentResult.cc @@ -39,16 +39,16 @@ void CreateIntentResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["IntentId"].isNull()) - intentId_ = value["IntentId"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].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["IntentId"].isNull()) + intentId_ = value["IntentId"].asString(); } diff --git a/outboundbot/src/model/CreateJobDataParsingTaskRequest.cc b/outboundbot/src/model/CreateJobDataParsingTaskRequest.cc index 6dc227d5e..3b2c57a32 100644 --- a/outboundbot/src/model/CreateJobDataParsingTaskRequest.cc +++ b/outboundbot/src/model/CreateJobDataParsingTaskRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateJobDataParsingTaskRequest; - -CreateJobDataParsingTaskRequest::CreateJobDataParsingTaskRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobDataParsingTask") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateJobDataParsingTaskRequest::~CreateJobDataParsingTaskRequest() -{} - -std::string CreateJobDataParsingTaskRequest::getJobFilePath()const -{ - return jobFilePath_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateJobDataParsingTaskRequest; + +CreateJobDataParsingTaskRequest::CreateJobDataParsingTaskRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobDataParsingTask") { + setMethod(HttpRequest::Method::Post); } -void CreateJobDataParsingTaskRequest::setJobFilePath(const std::string& jobFilePath) -{ - jobFilePath_ = jobFilePath; - setParameter("JobFilePath", jobFilePath); +CreateJobDataParsingTaskRequest::~CreateJobDataParsingTaskRequest() {} + +std::string CreateJobDataParsingTaskRequest::getJobFilePath() const { + return jobFilePath_; } -std::string CreateJobDataParsingTaskRequest::getInstanceId()const -{ - return instanceId_; +void CreateJobDataParsingTaskRequest::setJobFilePath(const std::string &jobFilePath) { + jobFilePath_ = jobFilePath; + setParameter(std::string("JobFilePath"), jobFilePath); } -void CreateJobDataParsingTaskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateJobDataParsingTaskRequest::getInstanceId() const { + return instanceId_; +} + +void CreateJobDataParsingTaskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/CreateJobDataParsingTaskResult.cc b/outboundbot/src/model/CreateJobDataParsingTaskResult.cc index 13c4242f4..57556d67c 100644 --- a/outboundbot/src/model/CreateJobDataParsingTaskResult.cc +++ b/outboundbot/src/model/CreateJobDataParsingTaskResult.cc @@ -39,14 +39,14 @@ void CreateJobDataParsingTaskResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].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(); diff --git a/outboundbot/src/model/CreateJobGroupExportTaskRequest.cc b/outboundbot/src/model/CreateJobGroupExportTaskRequest.cc index 511be6748..fd2390867 100644 --- a/outboundbot/src/model/CreateJobGroupExportTaskRequest.cc +++ b/outboundbot/src/model/CreateJobGroupExportTaskRequest.cc @@ -1,64 +1,53 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateJobGroupExportTaskRequest; + +CreateJobGroupExportTaskRequest::CreateJobGroupExportTaskRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobGroupExportTask") { + setMethod(HttpRequest::Method::Post); } -void CreateJobGroupExportTaskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +CreateJobGroupExportTaskRequest::~CreateJobGroupExportTaskRequest() {} + +std::string CreateJobGroupExportTaskRequest::getInstanceId() const { + return instanceId_; } -std::string CreateJobGroupExportTaskRequest::getJobGroupId()const -{ - return jobGroupId_; +void CreateJobGroupExportTaskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateJobGroupExportTaskRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string CreateJobGroupExportTaskRequest::getJobGroupId() const { + return jobGroupId_; } -std::vector CreateJobGroupExportTaskRequest::getOption()const -{ - return option_; +void CreateJobGroupExportTaskRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -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)); - } +std::vector CreateJobGroupExportTaskRequest::getOption() const { + return option_; +} + +void CreateJobGroupExportTaskRequest::setOption(const std::vector &option) { + option_ = option; } diff --git a/outboundbot/src/model/CreateJobGroupExportTaskResult.cc b/outboundbot/src/model/CreateJobGroupExportTaskResult.cc index a2cdfcac3..dffe2af3a 100644 --- a/outboundbot/src/model/CreateJobGroupExportTaskResult.cc +++ b/outboundbot/src/model/CreateJobGroupExportTaskResult.cc @@ -39,14 +39,14 @@ void CreateJobGroupExportTaskResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].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(); diff --git a/outboundbot/src/model/CreateJobGroupRequest.cc b/outboundbot/src/model/CreateJobGroupRequest.cc index b7f6e6f6e..bd2f5a280 100644 --- a/outboundbot/src/model/CreateJobGroupRequest.cc +++ b/outboundbot/src/model/CreateJobGroupRequest.cc @@ -1,152 +1,125 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::CreateJobGroupRequest; - -CreateJobGroupRequest::CreateJobGroupRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateJobGroupRequest::~CreateJobGroupRequest() -{} - -std::string CreateJobGroupRequest::getRecallStrategyJson()const -{ - return recallStrategyJson_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateJobGroupRequest; + +CreateJobGroupRequest::CreateJobGroupRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateJobGroup") { + setMethod(HttpRequest::Method::Post); } -void CreateJobGroupRequest::setRecallStrategyJson(const std::string& recallStrategyJson) -{ - recallStrategyJson_ = recallStrategyJson; - setParameter("RecallStrategyJson", recallStrategyJson); +CreateJobGroupRequest::~CreateJobGroupRequest() {} + +std::string CreateJobGroupRequest::getRecallStrategyJson() const { + return recallStrategyJson_; } -std::string CreateJobGroupRequest::getJobGroupName()const -{ - return jobGroupName_; +void CreateJobGroupRequest::setRecallStrategyJson(const std::string &recallStrategyJson) { + recallStrategyJson_ = recallStrategyJson; + setParameter(std::string("RecallStrategyJson"), recallStrategyJson); } -void CreateJobGroupRequest::setJobGroupName(const std::string& jobGroupName) -{ - jobGroupName_ = jobGroupName; - setParameter("JobGroupName", jobGroupName); +std::string CreateJobGroupRequest::getJobGroupName() const { + return jobGroupName_; } -std::string CreateJobGroupRequest::getScriptId()const -{ - return scriptId_; +void CreateJobGroupRequest::setJobGroupName(const std::string &jobGroupName) { + jobGroupName_ = jobGroupName; + setParameter(std::string("JobGroupName"), jobGroupName); } -void CreateJobGroupRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string CreateJobGroupRequest::getScriptId() const { + return scriptId_; } -std::string CreateJobGroupRequest::getStrategyJson()const -{ - return strategyJson_; +void CreateJobGroupRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void CreateJobGroupRequest::setStrategyJson(const std::string& strategyJson) -{ - strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); +std::string CreateJobGroupRequest::getStrategyJson() const { + return strategyJson_; } -long CreateJobGroupRequest::getRingingDuration()const -{ - return ringingDuration_; +void CreateJobGroupRequest::setStrategyJson(const std::string &strategyJson) { + strategyJson_ = strategyJson; + setParameter(std::string("StrategyJson"), strategyJson); } -void CreateJobGroupRequest::setRingingDuration(long ringingDuration) -{ - ringingDuration_ = ringingDuration; - setParameter("RingingDuration", std::to_string(ringingDuration)); +long CreateJobGroupRequest::getRingingDuration() const { + return ringingDuration_; } -std::string CreateJobGroupRequest::getScenarioId()const -{ - return scenarioId_; +void CreateJobGroupRequest::setRingingDuration(long ringingDuration) { + ringingDuration_ = ringingDuration; + setParameter(std::string("RingingDuration"), std::to_string(ringingDuration)); } -void CreateJobGroupRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); +std::string CreateJobGroupRequest::getScenarioId() const { + return scenarioId_; } -std::string CreateJobGroupRequest::getPriority()const -{ - return priority_; +void CreateJobGroupRequest::setScenarioId(const std::string &scenarioId) { + scenarioId_ = scenarioId; + setParameter(std::string("ScenarioId"), scenarioId); } -void CreateJobGroupRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); +std::string CreateJobGroupRequest::getPriority() const { + return priority_; } -std::string CreateJobGroupRequest::getJobGroupDescription()const -{ - return jobGroupDescription_; +void CreateJobGroupRequest::setPriority(const std::string &priority) { + priority_ = priority; + setParameter(std::string("Priority"), priority); } -void CreateJobGroupRequest::setJobGroupDescription(const std::string& jobGroupDescription) -{ - jobGroupDescription_ = jobGroupDescription; - setParameter("JobGroupDescription", jobGroupDescription); +std::string CreateJobGroupRequest::getJobGroupDescription() const { + return jobGroupDescription_; } -std::vector CreateJobGroupRequest::getCallingNumber()const -{ - return callingNumber_; +void CreateJobGroupRequest::setJobGroupDescription(const std::string &jobGroupDescription) { + jobGroupDescription_ = jobGroupDescription; + setParameter(std::string("JobGroupDescription"), jobGroupDescription); } -void CreateJobGroupRequest::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::vector CreateJobGroupRequest::getCallingNumber() const { + return callingNumber_; } -std::string CreateJobGroupRequest::getInstanceId()const -{ - return instanceId_; +void CreateJobGroupRequest::setCallingNumber(const std::vector &callingNumber) { + callingNumber_ = callingNumber; } -void CreateJobGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateJobGroupRequest::getInstanceId() const { + return instanceId_; } -long CreateJobGroupRequest::getMinConcurrency()const -{ - return minConcurrency_; +void CreateJobGroupRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateJobGroupRequest::setMinConcurrency(long minConcurrency) -{ - minConcurrency_ = minConcurrency; - setParameter("MinConcurrency", std::to_string(minConcurrency)); +long CreateJobGroupRequest::getMinConcurrency() const { + return minConcurrency_; +} + +void CreateJobGroupRequest::setMinConcurrency(long minConcurrency) { + minConcurrency_ = minConcurrency; + setParameter(std::string("MinConcurrency"), std::to_string(minConcurrency)); } diff --git a/outboundbot/src/model/CreateNumberDistrictInfoDownloadUrlRequest.cc b/outboundbot/src/model/CreateNumberDistrictInfoDownloadUrlRequest.cc index 67c03cf17..bc6545bc9 100644 --- a/outboundbot/src/model/CreateNumberDistrictInfoDownloadUrlRequest.cc +++ b/outboundbot/src/model/CreateNumberDistrictInfoDownloadUrlRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoDownloadUrlRequest; - -CreateNumberDistrictInfoDownloadUrlRequest::CreateNumberDistrictInfoDownloadUrlRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoDownloadUrl") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateNumberDistrictInfoDownloadUrlRequest::~CreateNumberDistrictInfoDownloadUrlRequest() -{} - -std::string CreateNumberDistrictInfoDownloadUrlRequest::getVersionId()const -{ - return versionId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoDownloadUrlRequest; + +CreateNumberDistrictInfoDownloadUrlRequest::CreateNumberDistrictInfoDownloadUrlRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoDownloadUrl") { + setMethod(HttpRequest::Method::Post); } -void CreateNumberDistrictInfoDownloadUrlRequest::setVersionId(const std::string& versionId) -{ - versionId_ = versionId; - setParameter("VersionId", versionId); +CreateNumberDistrictInfoDownloadUrlRequest::~CreateNumberDistrictInfoDownloadUrlRequest() {} + +std::string CreateNumberDistrictInfoDownloadUrlRequest::getVersionId() const { + return versionId_; +} + +void CreateNumberDistrictInfoDownloadUrlRequest::setVersionId(const std::string &versionId) { + versionId_ = versionId; + setParameter(std::string("VersionId"), versionId); } diff --git a/outboundbot/src/model/CreateNumberDistrictInfoParsingTaskRequest.cc b/outboundbot/src/model/CreateNumberDistrictInfoParsingTaskRequest.cc index ab4c69906..5e798d003 100644 --- a/outboundbot/src/model/CreateNumberDistrictInfoParsingTaskRequest.cc +++ b/outboundbot/src/model/CreateNumberDistrictInfoParsingTaskRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoParsingTaskRequest; - -CreateNumberDistrictInfoParsingTaskRequest::CreateNumberDistrictInfoParsingTaskRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoParsingTask") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateNumberDistrictInfoParsingTaskRequest::~CreateNumberDistrictInfoParsingTaskRequest() -{} - -long CreateNumberDistrictInfoParsingTaskRequest::getFileSize()const -{ - return fileSize_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateNumberDistrictInfoParsingTaskRequest; + +CreateNumberDistrictInfoParsingTaskRequest::CreateNumberDistrictInfoParsingTaskRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateNumberDistrictInfoParsingTask") { + setMethod(HttpRequest::Method::Post); } -void CreateNumberDistrictInfoParsingTaskRequest::setFileSize(long fileSize) -{ - fileSize_ = fileSize; - setParameter("FileSize", std::to_string(fileSize)); +CreateNumberDistrictInfoParsingTaskRequest::~CreateNumberDistrictInfoParsingTaskRequest() {} + +long CreateNumberDistrictInfoParsingTaskRequest::getFileSize() const { + return fileSize_; } -std::string CreateNumberDistrictInfoParsingTaskRequest::getFilePath()const -{ - return filePath_; +void CreateNumberDistrictInfoParsingTaskRequest::setFileSize(long fileSize) { + fileSize_ = fileSize; + setParameter(std::string("FileSize"), std::to_string(fileSize)); } -void CreateNumberDistrictInfoParsingTaskRequest::setFilePath(const std::string& filePath) -{ - filePath_ = filePath; - setParameter("FilePath", filePath); +std::string CreateNumberDistrictInfoParsingTaskRequest::getFilePath() const { + return filePath_; +} + +void CreateNumberDistrictInfoParsingTaskRequest::setFilePath(const std::string &filePath) { + filePath_ = filePath; + setParameter(std::string("FilePath"), filePath); } diff --git a/outboundbot/src/model/CreateOutboundCallNumberRequest.cc b/outboundbot/src/model/CreateOutboundCallNumberRequest.cc index 46979841d..7f33e3ebf 100644 --- a/outboundbot/src/model/CreateOutboundCallNumberRequest.cc +++ b/outboundbot/src/model/CreateOutboundCallNumberRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateOutboundCallNumberRequest; - -CreateOutboundCallNumberRequest::CreateOutboundCallNumberRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateOutboundCallNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateOutboundCallNumberRequest::~CreateOutboundCallNumberRequest() -{} - -int CreateOutboundCallNumberRequest::getRateLimitCount()const -{ - return rateLimitCount_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateOutboundCallNumberRequest; + +CreateOutboundCallNumberRequest::CreateOutboundCallNumberRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateOutboundCallNumber") { + setMethod(HttpRequest::Method::Post); } -void CreateOutboundCallNumberRequest::setRateLimitCount(int rateLimitCount) -{ - rateLimitCount_ = rateLimitCount; - setParameter("RateLimitCount", std::to_string(rateLimitCount)); +CreateOutboundCallNumberRequest::~CreateOutboundCallNumberRequest() {} + +int CreateOutboundCallNumberRequest::getRateLimitCount() const { + return rateLimitCount_; } -std::string CreateOutboundCallNumberRequest::getNumber()const -{ - return number_; +void CreateOutboundCallNumberRequest::setRateLimitCount(int rateLimitCount) { + rateLimitCount_ = rateLimitCount; + setParameter(std::string("RateLimitCount"), std::to_string(rateLimitCount)); } -void CreateOutboundCallNumberRequest::setNumber(const std::string& number) -{ - number_ = number; - setParameter("Number", number); +std::string CreateOutboundCallNumberRequest::getNumber() const { + return number_; } -std::string CreateOutboundCallNumberRequest::getInstanceId()const -{ - return instanceId_; +void CreateOutboundCallNumberRequest::setNumber(const std::string &number) { + number_ = number; + setParameter(std::string("Number"), number); } -void CreateOutboundCallNumberRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateOutboundCallNumberRequest::getInstanceId() const { + return instanceId_; } -int CreateOutboundCallNumberRequest::getRateLimitPeriod()const -{ - return rateLimitPeriod_; +void CreateOutboundCallNumberRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateOutboundCallNumberRequest::setRateLimitPeriod(int rateLimitPeriod) -{ - rateLimitPeriod_ = rateLimitPeriod; - setParameter("RateLimitPeriod", std::to_string(rateLimitPeriod)); +int CreateOutboundCallNumberRequest::getRateLimitPeriod() const { + return rateLimitPeriod_; +} + +void CreateOutboundCallNumberRequest::setRateLimitPeriod(int rateLimitPeriod) { + rateLimitPeriod_ = rateLimitPeriod; + setParameter(std::string("RateLimitPeriod"), std::to_string(rateLimitPeriod)); } diff --git a/outboundbot/src/model/CreateOutboundCallNumberResult.cc b/outboundbot/src/model/CreateOutboundCallNumberResult.cc index ac423a392..11e5334dc 100644 --- a/outboundbot/src/model/CreateOutboundCallNumberResult.cc +++ b/outboundbot/src/model/CreateOutboundCallNumberResult.cc @@ -39,16 +39,16 @@ void CreateOutboundCallNumberResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].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["OutboundCallNumberId"].isNull()) outboundCallNumberId_ = value["OutboundCallNumberId"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/CreateScriptRequest.cc b/outboundbot/src/model/CreateScriptRequest.cc index 88359e7be..000041378 100644 --- a/outboundbot/src/model/CreateScriptRequest.cc +++ b/outboundbot/src/model/CreateScriptRequest.cc @@ -1,165 +1,133 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateScriptRequest; - -CreateScriptRequest::CreateScriptRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateScript") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateScriptRequest::~CreateScriptRequest() -{} - -std::string CreateScriptRequest::getTtsConfig()const -{ - return ttsConfig_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateScriptRequest; + +CreateScriptRequest::CreateScriptRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateScript") { + setMethod(HttpRequest::Method::Post); } -void CreateScriptRequest::setTtsConfig(const std::string& ttsConfig) -{ - ttsConfig_ = ttsConfig; - setParameter("TtsConfig", ttsConfig); +CreateScriptRequest::~CreateScriptRequest() {} + +std::string CreateScriptRequest::getTtsConfig() const { + return ttsConfig_; } -std::string CreateScriptRequest::getIndustry()const -{ - return industry_; +void CreateScriptRequest::setTtsConfig(const std::string &ttsConfig) { + ttsConfig_ = ttsConfig; + setParameter(std::string("TtsConfig"), ttsConfig); } -void CreateScriptRequest::setIndustry(const std::string& industry) -{ - industry_ = industry; - setParameter("Industry", industry); +std::string CreateScriptRequest::getIndustry() const { + return industry_; } -std::string CreateScriptRequest::getScriptName()const -{ - return scriptName_; +void CreateScriptRequest::setIndustry(const std::string &industry) { + industry_ = industry; + setParameter(std::string("Industry"), industry); } -void CreateScriptRequest::setScriptName(const std::string& scriptName) -{ - scriptName_ = scriptName; - setParameter("ScriptName", scriptName); +std::string CreateScriptRequest::getScriptName() const { + return scriptName_; } -std::string CreateScriptRequest::getScene()const -{ - return scene_; +void CreateScriptRequest::setScriptName(const std::string &scriptName) { + scriptName_ = scriptName; + setParameter(std::string("ScriptName"), scriptName); } -void CreateScriptRequest::setScene(const std::string& scene) -{ - scene_ = scene; - setParameter("Scene", scene); +std::string CreateScriptRequest::getScene() const { + return scene_; } -std::vector CreateScriptRequest::getScriptWaveform()const -{ - return scriptWaveform_; +void CreateScriptRequest::setScene(const std::string &scene) { + scene_ = scene; + setParameter(std::string("Scene"), scene); } -void CreateScriptRequest::setScriptWaveform(const std::vector& scriptWaveform) -{ - scriptWaveform_ = scriptWaveform; - for(int dep1 = 0; dep1!= scriptWaveform.size(); dep1++) { - setParameter("ScriptWaveform."+ std::to_string(dep1), scriptWaveform.at(dep1)); - } +std::vector CreateScriptRequest::getScriptWaveform() const { + return scriptWaveform_; } -std::string CreateScriptRequest::getAsrConfig()const -{ - return asrConfig_; +void CreateScriptRequest::setScriptWaveform(const std::vector &scriptWaveform) { + scriptWaveform_ = scriptWaveform; } -void CreateScriptRequest::setAsrConfig(const std::string& asrConfig) -{ - asrConfig_ = asrConfig; - setParameter("AsrConfig", asrConfig); +std::string CreateScriptRequest::getAsrConfig() const { + return asrConfig_; } -bool CreateScriptRequest::getNewBargeInEnable()const -{ - return newBargeInEnable_; +void CreateScriptRequest::setAsrConfig(const std::string &asrConfig) { + asrConfig_ = asrConfig; + setParameter(std::string("AsrConfig"), asrConfig); } -void CreateScriptRequest::setNewBargeInEnable(bool newBargeInEnable) -{ - newBargeInEnable_ = newBargeInEnable; - setParameter("NewBargeInEnable", newBargeInEnable ? "true" : "false"); +bool CreateScriptRequest::getNewBargeInEnable() const { + return newBargeInEnable_; } -bool CreateScriptRequest::getMiniPlaybackEnable()const -{ - return miniPlaybackEnable_; +void CreateScriptRequest::setNewBargeInEnable(bool newBargeInEnable) { + newBargeInEnable_ = newBargeInEnable; + setParameter(std::string("NewBargeInEnable"), newBargeInEnable ? "true" : "false"); } -void CreateScriptRequest::setMiniPlaybackEnable(bool miniPlaybackEnable) -{ - miniPlaybackEnable_ = miniPlaybackEnable; - setParameter("MiniPlaybackEnable", miniPlaybackEnable ? "true" : "false"); +bool CreateScriptRequest::getMiniPlaybackEnable() const { + return miniPlaybackEnable_; } -std::string CreateScriptRequest::getChatbotId()const -{ - return chatbotId_; +void CreateScriptRequest::setMiniPlaybackEnable(bool miniPlaybackEnable) { + miniPlaybackEnable_ = miniPlaybackEnable; + setParameter(std::string("MiniPlaybackEnable"), miniPlaybackEnable ? "true" : "false"); } -void CreateScriptRequest::setChatbotId(const std::string& chatbotId) -{ - chatbotId_ = chatbotId; - setParameter("ChatbotId", chatbotId); +std::string CreateScriptRequest::getChatbotId() const { + return chatbotId_; } -std::string CreateScriptRequest::getInstanceId()const -{ - return instanceId_; +void CreateScriptRequest::setChatbotId(const std::string &chatbotId) { + chatbotId_ = chatbotId; + setParameter(std::string("ChatbotId"), chatbotId); } -void CreateScriptRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateScriptRequest::getInstanceId() const { + return instanceId_; } -std::string CreateScriptRequest::getScriptDescription()const -{ - return scriptDescription_; +void CreateScriptRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateScriptRequest::setScriptDescription(const std::string& scriptDescription) -{ - scriptDescription_ = scriptDescription; - setParameter("ScriptDescription", scriptDescription); +std::string CreateScriptRequest::getScriptDescription() const { + return scriptDescription_; } -std::vector CreateScriptRequest::getScriptContent()const -{ - return scriptContent_; +void CreateScriptRequest::setScriptDescription(const std::string &scriptDescription) { + scriptDescription_ = scriptDescription; + setParameter(std::string("ScriptDescription"), scriptDescription); } -void CreateScriptRequest::setScriptContent(const std::vector& scriptContent) -{ - scriptContent_ = scriptContent; - for(int dep1 = 0; dep1!= scriptContent.size(); dep1++) { - setParameter("ScriptContent."+ std::to_string(dep1), scriptContent.at(dep1)); - } +std::vector CreateScriptRequest::getScriptContent() const { + return scriptContent_; +} + +void CreateScriptRequest::setScriptContent(const std::vector &scriptContent) { + scriptContent_ = scriptContent; } diff --git a/outboundbot/src/model/CreateScriptWaveformRequest.cc b/outboundbot/src/model/CreateScriptWaveformRequest.cc index ff3a60f8f..226a800f5 100644 --- a/outboundbot/src/model/CreateScriptWaveformRequest.cc +++ b/outboundbot/src/model/CreateScriptWaveformRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateScriptWaveformRequest; - -CreateScriptWaveformRequest::CreateScriptWaveformRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateScriptWaveform") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateScriptWaveformRequest::~CreateScriptWaveformRequest() -{} - -std::string CreateScriptWaveformRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateScriptWaveformRequest; + +CreateScriptWaveformRequest::CreateScriptWaveformRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateScriptWaveform") { + setMethod(HttpRequest::Method::Post); } -void CreateScriptWaveformRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +CreateScriptWaveformRequest::~CreateScriptWaveformRequest() {} + +std::string CreateScriptWaveformRequest::getScriptId() const { + return scriptId_; } -std::string CreateScriptWaveformRequest::getInstanceId()const -{ - return instanceId_; +void CreateScriptWaveformRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void CreateScriptWaveformRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateScriptWaveformRequest::getInstanceId() const { + return instanceId_; } -std::string CreateScriptWaveformRequest::getFileName()const -{ - return fileName_; +void CreateScriptWaveformRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateScriptWaveformRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setParameter("FileName", fileName); +std::string CreateScriptWaveformRequest::getFileName() const { + return fileName_; } -std::string CreateScriptWaveformRequest::getScriptContent()const -{ - return scriptContent_; +void CreateScriptWaveformRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("FileName"), fileName); } -void CreateScriptWaveformRequest::setScriptContent(const std::string& scriptContent) -{ - scriptContent_ = scriptContent; - setParameter("ScriptContent", scriptContent); +std::string CreateScriptWaveformRequest::getScriptContent() const { + return scriptContent_; } -std::string CreateScriptWaveformRequest::getFileId()const -{ - return fileId_; +void CreateScriptWaveformRequest::setScriptContent(const std::string &scriptContent) { + scriptContent_ = scriptContent; + setParameter(std::string("ScriptContent"), scriptContent); } -void CreateScriptWaveformRequest::setFileId(const std::string& fileId) -{ - fileId_ = fileId; - setParameter("FileId", fileId); +std::string CreateScriptWaveformRequest::getFileId() const { + return fileId_; +} + +void CreateScriptWaveformRequest::setFileId(const std::string &fileId) { + fileId_ = fileId; + setParameter(std::string("FileId"), fileId); } diff --git a/outboundbot/src/model/CreateScriptWaveformResult.cc b/outboundbot/src/model/CreateScriptWaveformResult.cc index a3b34e5b5..d52e81484 100644 --- a/outboundbot/src/model/CreateScriptWaveformResult.cc +++ b/outboundbot/src/model/CreateScriptWaveformResult.cc @@ -39,16 +39,16 @@ void CreateScriptWaveformResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].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["ScriptWaveformId"].isNull()) scriptWaveformId_ = value["ScriptWaveformId"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/CreateTagRequest.cc b/outboundbot/src/model/CreateTagRequest.cc index 471324dbc..bd1c160d1 100644 --- a/outboundbot/src/model/CreateTagRequest.cc +++ b/outboundbot/src/model/CreateTagRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::CreateTagRequest; - -CreateTagRequest::CreateTagRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateTag") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateTagRequest::~CreateTagRequest() -{} - -std::string CreateTagRequest::getTagGroup()const -{ - return tagGroup_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateTagRequest; + +CreateTagRequest::CreateTagRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateTag") { + setMethod(HttpRequest::Method::Post); } -void CreateTagRequest::setTagGroup(const std::string& tagGroup) -{ - tagGroup_ = tagGroup; - setParameter("TagGroup", tagGroup); +CreateTagRequest::~CreateTagRequest() {} + +std::string CreateTagRequest::getTagGroup() const { + return tagGroup_; } -std::string CreateTagRequest::getScriptId()const -{ - return scriptId_; +void CreateTagRequest::setTagGroup(const std::string &tagGroup) { + tagGroup_ = tagGroup; + setParameter(std::string("TagGroup"), tagGroup); } -void CreateTagRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string CreateTagRequest::getScriptId() const { + return scriptId_; } -std::string CreateTagRequest::getTagName()const -{ - return tagName_; +void CreateTagRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void CreateTagRequest::setTagName(const std::string& tagName) -{ - tagName_ = tagName; - setParameter("TagName", tagName); +std::string CreateTagRequest::getTagName() const { + return tagName_; } -std::string CreateTagRequest::getInstanceId()const -{ - return instanceId_; +void CreateTagRequest::setTagName(const std::string &tagName) { + tagName_ = tagName; + setParameter(std::string("TagName"), tagName); } -void CreateTagRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateTagRequest::getInstanceId() const { + return instanceId_; +} + +void CreateTagRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/CreateTagResult.cc b/outboundbot/src/model/CreateTagResult.cc index d090014e1..873d5ab97 100644 --- a/outboundbot/src/model/CreateTagResult.cc +++ b/outboundbot/src/model/CreateTagResult.cc @@ -39,14 +39,14 @@ void CreateTagResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - 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["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["TagId"].isNull()) tagId_ = value["TagId"].asString(); diff --git a/outboundbot/src/model/CreateTaskExportTaskRequest.cc b/outboundbot/src/model/CreateTaskExportTaskRequest.cc index 0b7254802..3ebc99c28 100644 --- a/outboundbot/src/model/CreateTaskExportTaskRequest.cc +++ b/outboundbot/src/model/CreateTaskExportTaskRequest.cc @@ -1,315 +1,261 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::CreateTaskExportTaskRequest; - -CreateTaskExportTaskRequest::CreateTaskExportTaskRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "CreateTaskExportTask") -{ - setMethod(HttpRequest::Method::Get); -} - -CreateTaskExportTaskRequest::~CreateTaskExportTaskRequest() -{} - -bool CreateTaskExportTaskRequest::getHasAnswered()const -{ - return hasAnswered_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::CreateTaskExportTaskRequest; + +CreateTaskExportTaskRequest::CreateTaskExportTaskRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "CreateTaskExportTask") { + setMethod(HttpRequest::Method::Get); } -void CreateTaskExportTaskRequest::setHasAnswered(bool hasAnswered) -{ - hasAnswered_ = hasAnswered; - setParameter("HasAnswered", hasAnswered ? "true" : "false"); +CreateTaskExportTaskRequest::~CreateTaskExportTaskRequest() {} + +bool CreateTaskExportTaskRequest::getHasAnswered() const { + return hasAnswered_; } -long CreateTaskExportTaskRequest::getActualTimeLte()const -{ - return actualTimeLte_; +void CreateTaskExportTaskRequest::setHasAnswered(bool hasAnswered) { + hasAnswered_ = hasAnswered; + setParameter(std::string("HasAnswered"), hasAnswered ? "true" : "false"); } -void CreateTaskExportTaskRequest::setActualTimeLte(long actualTimeLte) -{ - actualTimeLte_ = actualTimeLte; - setParameter("ActualTimeLte", std::to_string(actualTimeLte)); +long CreateTaskExportTaskRequest::getActualTimeLte() const { + return actualTimeLte_; } -std::string CreateTaskExportTaskRequest::getOtherId()const -{ - return otherId_; +void CreateTaskExportTaskRequest::setActualTimeLte(long actualTimeLte) { + actualTimeLte_ = actualTimeLte; + setParameter(std::string("ActualTimeLte"), std::to_string(actualTimeLte)); } -void CreateTaskExportTaskRequest::setOtherId(const std::string& otherId) -{ - otherId_ = otherId; - setParameter("OtherId", otherId); +std::string CreateTaskExportTaskRequest::getOtherId() const { + return otherId_; } -long CreateTaskExportTaskRequest::getTaskCreateTimeLte()const -{ - return taskCreateTimeLte_; +void CreateTaskExportTaskRequest::setOtherId(const std::string &otherId) { + otherId_ = otherId; + setParameter(std::string("OtherId"), otherId); } -void CreateTaskExportTaskRequest::setTaskCreateTimeLte(long taskCreateTimeLte) -{ - taskCreateTimeLte_ = taskCreateTimeLte; - setParameter("TaskCreateTimeLte", std::to_string(taskCreateTimeLte)); +long CreateTaskExportTaskRequest::getTaskCreateTimeLte() const { + return taskCreateTimeLte_; } -std::string CreateTaskExportTaskRequest::getJobId()const -{ - return jobId_; +void CreateTaskExportTaskRequest::setTaskCreateTimeLte(long taskCreateTimeLte) { + taskCreateTimeLte_ = taskCreateTimeLte; + setParameter(std::string("TaskCreateTimeLte"), std::to_string(taskCreateTimeLte)); } -void CreateTaskExportTaskRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string CreateTaskExportTaskRequest::getJobId() const { + return jobId_; } -long CreateTaskExportTaskRequest::getTaskCreateTimeGte()const -{ - return taskCreateTimeGte_; +void CreateTaskExportTaskRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void CreateTaskExportTaskRequest::setTaskCreateTimeGte(long taskCreateTimeGte) -{ - taskCreateTimeGte_ = taskCreateTimeGte; - setParameter("TaskCreateTimeGte", std::to_string(taskCreateTimeGte)); +long CreateTaskExportTaskRequest::getTaskCreateTimeGte() const { + return taskCreateTimeGte_; } -std::string CreateTaskExportTaskRequest::getCalledNumber()const -{ - return calledNumber_; +void CreateTaskExportTaskRequest::setTaskCreateTimeGte(long taskCreateTimeGte) { + taskCreateTimeGte_ = taskCreateTimeGte; + setParameter(std::string("TaskCreateTimeGte"), std::to_string(taskCreateTimeGte)); } -void CreateTaskExportTaskRequest::setCalledNumber(const std::string& calledNumber) -{ - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); +std::string CreateTaskExportTaskRequest::getCalledNumber() const { + return calledNumber_; } -std::string CreateTaskExportTaskRequest::getUserIdMatch()const -{ - return userIdMatch_; +void CreateTaskExportTaskRequest::setCalledNumber(const std::string &calledNumber) { + calledNumber_ = calledNumber; + setParameter(std::string("CalledNumber"), calledNumber); } -void CreateTaskExportTaskRequest::setUserIdMatch(const std::string& userIdMatch) -{ - userIdMatch_ = userIdMatch; - setParameter("UserIdMatch", userIdMatch); +std::string CreateTaskExportTaskRequest::getUserIdMatch() const { + return userIdMatch_; } -int CreateTaskExportTaskRequest::getPageSize()const -{ - return pageSize_; +void CreateTaskExportTaskRequest::setUserIdMatch(const std::string &userIdMatch) { + userIdMatch_ = userIdMatch; + setParameter(std::string("UserIdMatch"), userIdMatch); } -void CreateTaskExportTaskRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int CreateTaskExportTaskRequest::getPageSize() const { + return pageSize_; } -std::string CreateTaskExportTaskRequest::getScriptNameQuery()const -{ - return scriptNameQuery_; +void CreateTaskExportTaskRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void CreateTaskExportTaskRequest::setScriptNameQuery(const std::string& scriptNameQuery) -{ - scriptNameQuery_ = scriptNameQuery; - setParameter("ScriptNameQuery", scriptNameQuery); +std::string CreateTaskExportTaskRequest::getScriptNameQuery() const { + return scriptNameQuery_; } -int CreateTaskExportTaskRequest::getPageIndex()const -{ - return pageIndex_; +void CreateTaskExportTaskRequest::setScriptNameQuery(const std::string &scriptNameQuery) { + scriptNameQuery_ = scriptNameQuery; + setParameter(std::string("ScriptNameQuery"), scriptNameQuery); } -void CreateTaskExportTaskRequest::setPageIndex(int pageIndex) -{ - pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); +int CreateTaskExportTaskRequest::getPageIndex() const { + return pageIndex_; } -std::string CreateTaskExportTaskRequest::getSortOrder()const -{ - return sortOrder_; +void CreateTaskExportTaskRequest::setPageIndex(int pageIndex) { + pageIndex_ = pageIndex; + setParameter(std::string("PageIndex"), std::to_string(pageIndex)); } -void CreateTaskExportTaskRequest::setSortOrder(const std::string& sortOrder) -{ - sortOrder_ = sortOrder; - setParameter("SortOrder", sortOrder); +std::string CreateTaskExportTaskRequest::getSortOrder() const { + return sortOrder_; } -std::string CreateTaskExportTaskRequest::getTaskStatusStringList()const -{ - return taskStatusStringList_; +void CreateTaskExportTaskRequest::setSortOrder(const std::string &sortOrder) { + sortOrder_ = sortOrder; + setParameter(std::string("SortOrder"), sortOrder); } -void CreateTaskExportTaskRequest::setTaskStatusStringList(const std::string& taskStatusStringList) -{ - taskStatusStringList_ = taskStatusStringList; - setParameter("TaskStatusStringList", taskStatusStringList); +std::string CreateTaskExportTaskRequest::getTaskStatusStringList() const { + return taskStatusStringList_; } -std::string CreateTaskExportTaskRequest::getJobGroupNameQuery()const -{ - return jobGroupNameQuery_; +void CreateTaskExportTaskRequest::setTaskStatusStringList(const std::string &taskStatusStringList) { + taskStatusStringList_ = taskStatusStringList; + setParameter(std::string("TaskStatusStringList"), taskStatusStringList); } -void CreateTaskExportTaskRequest::setJobGroupNameQuery(const std::string& jobGroupNameQuery) -{ - jobGroupNameQuery_ = jobGroupNameQuery; - setParameter("JobGroupNameQuery", jobGroupNameQuery); +std::string CreateTaskExportTaskRequest::getJobGroupNameQuery() const { + return jobGroupNameQuery_; } -std::string CreateTaskExportTaskRequest::getTaskId()const -{ - return taskId_; +void CreateTaskExportTaskRequest::setJobGroupNameQuery(const std::string &jobGroupNameQuery) { + jobGroupNameQuery_ = jobGroupNameQuery; + setParameter(std::string("JobGroupNameQuery"), jobGroupNameQuery); } -void CreateTaskExportTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string CreateTaskExportTaskRequest::getTaskId() const { + return taskId_; } -bool CreateTaskExportTaskRequest::getHasHangUpByRejection()const -{ - return hasHangUpByRejection_; +void CreateTaskExportTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void CreateTaskExportTaskRequest::setHasHangUpByRejection(bool hasHangUpByRejection) -{ - hasHangUpByRejection_ = hasHangUpByRejection; - setParameter("HasHangUpByRejection", hasHangUpByRejection ? "true" : "false"); +bool CreateTaskExportTaskRequest::getHasHangUpByRejection() const { + return hasHangUpByRejection_; } -bool CreateTaskExportTaskRequest::getHasReachedEndOfFlow()const -{ - return hasReachedEndOfFlow_; +void CreateTaskExportTaskRequest::setHasHangUpByRejection(bool hasHangUpByRejection) { + hasHangUpByRejection_ = hasHangUpByRejection; + setParameter(std::string("HasHangUpByRejection"), hasHangUpByRejection ? "true" : "false"); } -void CreateTaskExportTaskRequest::setHasReachedEndOfFlow(bool hasReachedEndOfFlow) -{ - hasReachedEndOfFlow_ = hasReachedEndOfFlow; - setParameter("HasReachedEndOfFlow", hasReachedEndOfFlow ? "true" : "false"); +bool CreateTaskExportTaskRequest::getHasReachedEndOfFlow() const { + return hasReachedEndOfFlow_; } -std::string CreateTaskExportTaskRequest::getInstanceId()const -{ - return instanceId_; +void CreateTaskExportTaskRequest::setHasReachedEndOfFlow(bool hasReachedEndOfFlow) { + hasReachedEndOfFlow_ = hasReachedEndOfFlow; + setParameter(std::string("HasReachedEndOfFlow"), hasReachedEndOfFlow ? "true" : "false"); } -void CreateTaskExportTaskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CreateTaskExportTaskRequest::getInstanceId() const { + return instanceId_; } -long CreateTaskExportTaskRequest::getRecordingDurationGte()const -{ - return recordingDurationGte_; +void CreateTaskExportTaskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CreateTaskExportTaskRequest::setRecordingDurationGte(long recordingDurationGte) -{ - recordingDurationGte_ = recordingDurationGte; - setParameter("RecordingDurationGte", std::to_string(recordingDurationGte)); +long CreateTaskExportTaskRequest::getRecordingDurationGte() const { + return recordingDurationGte_; } -long CreateTaskExportTaskRequest::getCallDurationLte()const -{ - return callDurationLte_; +void CreateTaskExportTaskRequest::setRecordingDurationGte(long recordingDurationGte) { + recordingDurationGte_ = recordingDurationGte; + setParameter(std::string("RecordingDurationGte"), std::to_string(recordingDurationGte)); } -void CreateTaskExportTaskRequest::setCallDurationLte(long callDurationLte) -{ - callDurationLte_ = callDurationLte; - setParameter("CallDurationLte", std::to_string(callDurationLte)); +long CreateTaskExportTaskRequest::getCallDurationLte() const { + return callDurationLte_; } -std::string CreateTaskExportTaskRequest::getJobGroupId()const -{ - return jobGroupId_; +void CreateTaskExportTaskRequest::setCallDurationLte(long callDurationLte) { + callDurationLte_ = callDurationLte; + setParameter(std::string("CallDurationLte"), std::to_string(callDurationLte)); } -void CreateTaskExportTaskRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string CreateTaskExportTaskRequest::getJobGroupId() const { + return jobGroupId_; } -std::string CreateTaskExportTaskRequest::getSortBy()const -{ - return sortBy_; +void CreateTaskExportTaskRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void CreateTaskExportTaskRequest::setSortBy(const std::string& sortBy) -{ - sortBy_ = sortBy; - setParameter("SortBy", sortBy); +std::string CreateTaskExportTaskRequest::getSortBy() const { + return sortBy_; } -std::string CreateTaskExportTaskRequest::getJobStatusStringList()const -{ - return jobStatusStringList_; +void CreateTaskExportTaskRequest::setSortBy(const std::string &sortBy) { + sortBy_ = sortBy; + setParameter(std::string("SortBy"), sortBy); } -void CreateTaskExportTaskRequest::setJobStatusStringList(const std::string& jobStatusStringList) -{ - jobStatusStringList_ = jobStatusStringList; - setParameter("JobStatusStringList", jobStatusStringList); +std::string CreateTaskExportTaskRequest::getJobStatusStringList() const { + return jobStatusStringList_; } -long CreateTaskExportTaskRequest::getActualTimeGte()const -{ - return actualTimeGte_; +void CreateTaskExportTaskRequest::setJobStatusStringList(const std::string &jobStatusStringList) { + jobStatusStringList_ = jobStatusStringList; + setParameter(std::string("JobStatusStringList"), jobStatusStringList); } -void CreateTaskExportTaskRequest::setActualTimeGte(long actualTimeGte) -{ - actualTimeGte_ = actualTimeGte; - setParameter("ActualTimeGte", std::to_string(actualTimeGte)); +long CreateTaskExportTaskRequest::getActualTimeGte() const { + return actualTimeGte_; } -long CreateTaskExportTaskRequest::getCallDurationGte()const -{ - return callDurationGte_; +void CreateTaskExportTaskRequest::setActualTimeGte(long actualTimeGte) { + actualTimeGte_ = actualTimeGte; + setParameter(std::string("ActualTimeGte"), std::to_string(actualTimeGte)); } -void CreateTaskExportTaskRequest::setCallDurationGte(long callDurationGte) -{ - callDurationGte_ = callDurationGte; - setParameter("CallDurationGte", std::to_string(callDurationGte)); +long CreateTaskExportTaskRequest::getCallDurationGte() const { + return callDurationGte_; } -long CreateTaskExportTaskRequest::getRecordingDurationLte()const -{ - return recordingDurationLte_; +void CreateTaskExportTaskRequest::setCallDurationGte(long callDurationGte) { + callDurationGte_ = callDurationGte; + setParameter(std::string("CallDurationGte"), std::to_string(callDurationGte)); } -void CreateTaskExportTaskRequest::setRecordingDurationLte(long recordingDurationLte) -{ - recordingDurationLte_ = recordingDurationLte; - setParameter("RecordingDurationLte", std::to_string(recordingDurationLte)); +long CreateTaskExportTaskRequest::getRecordingDurationLte() const { + return recordingDurationLte_; +} + +void CreateTaskExportTaskRequest::setRecordingDurationLte(long recordingDurationLte) { + recordingDurationLte_ = recordingDurationLte; + setParameter(std::string("RecordingDurationLte"), std::to_string(recordingDurationLte)); } diff --git a/outboundbot/src/model/DeleteAllNumberDistrictInfoRequest.cc b/outboundbot/src/model/DeleteAllNumberDistrictInfoRequest.cc index 7109b4eb4..f3e4fc79a 100644 --- a/outboundbot/src/model/DeleteAllNumberDistrictInfoRequest.cc +++ b/outboundbot/src/model/DeleteAllNumberDistrictInfoRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::DeleteAllNumberDistrictInfoRequest; - -DeleteAllNumberDistrictInfoRequest::DeleteAllNumberDistrictInfoRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DeleteAllNumberDistrictInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteAllNumberDistrictInfoRequest::~DeleteAllNumberDistrictInfoRequest() -{} - + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteAllNumberDistrictInfoRequest; + +DeleteAllNumberDistrictInfoRequest::DeleteAllNumberDistrictInfoRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteAllNumberDistrictInfo") { + setMethod(HttpRequest::Method::Post); +} + +DeleteAllNumberDistrictInfoRequest::~DeleteAllNumberDistrictInfoRequest() {} + diff --git a/outboundbot/src/model/DeleteContactBlockListRequest.cc b/outboundbot/src/model/DeleteContactBlockListRequest.cc index d063525d4..8b4cff44f 100644 --- a/outboundbot/src/model/DeleteContactBlockListRequest.cc +++ b/outboundbot/src/model/DeleteContactBlockListRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DeleteContactBlockListRequest; - -DeleteContactBlockListRequest::DeleteContactBlockListRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DeleteContactBlockList") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteContactBlockListRequest::~DeleteContactBlockListRequest() -{} - -std::string DeleteContactBlockListRequest::getContactBlockListId()const -{ - return contactBlockListId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteContactBlockListRequest; + +DeleteContactBlockListRequest::DeleteContactBlockListRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteContactBlockList") { + setMethod(HttpRequest::Method::Post); } -void DeleteContactBlockListRequest::setContactBlockListId(const std::string& contactBlockListId) -{ - contactBlockListId_ = contactBlockListId; - setParameter("ContactBlockListId", contactBlockListId); +DeleteContactBlockListRequest::~DeleteContactBlockListRequest() {} + +std::string DeleteContactBlockListRequest::getContactBlockListId() const { + return contactBlockListId_; } -std::string DeleteContactBlockListRequest::get_Operator()const -{ - return _operator_; +void DeleteContactBlockListRequest::setContactBlockListId(const std::string &contactBlockListId) { + contactBlockListId_ = contactBlockListId; + setParameter(std::string("ContactBlockListId"), contactBlockListId); } -void DeleteContactBlockListRequest::set_Operator(const std::string& _operator) -{ - _operator_ = _operator; - setParameter("_Operator", _operator); +std::string DeleteContactBlockListRequest::get_Operator() const { + return _operator_; } -std::string DeleteContactBlockListRequest::getInstanceId()const -{ - return instanceId_; +void DeleteContactBlockListRequest::set_Operator(const std::string &_operator) { + _operator_ = _operator; + setParameter(std::string("Operator"), _operator); } -void DeleteContactBlockListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteContactBlockListRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteContactBlockListRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DeleteContactBlockListResult.cc b/outboundbot/src/model/DeleteContactBlockListResult.cc index 7f44249ba..c8e75ec0f 100644 --- a/outboundbot/src/model/DeleteContactBlockListResult.cc +++ b/outboundbot/src/model/DeleteContactBlockListResult.cc @@ -39,16 +39,16 @@ void DeleteContactBlockListResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["AffectedRows"].isNull()) + affectedRows_ = std::stoi(value["AffectedRows"].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()); } diff --git a/outboundbot/src/model/DeleteContactWhiteListRequest.cc b/outboundbot/src/model/DeleteContactWhiteListRequest.cc index 5b189d94e..ce3e86894 100644 --- a/outboundbot/src/model/DeleteContactWhiteListRequest.cc +++ b/outboundbot/src/model/DeleteContactWhiteListRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::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_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteContactWhiteListRequest; + +DeleteContactWhiteListRequest::DeleteContactWhiteListRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteContactWhiteList") { + setMethod(HttpRequest::Method::Post); } -void DeleteContactWhiteListRequest::set_Operator(const std::string& _operator) -{ - _operator_ = _operator; - setParameter("_Operator", _operator); +DeleteContactWhiteListRequest::~DeleteContactWhiteListRequest() {} + +std::string DeleteContactWhiteListRequest::get_Operator() const { + return _operator_; } -std::string DeleteContactWhiteListRequest::getInstanceId()const -{ - return instanceId_; +void DeleteContactWhiteListRequest::set_Operator(const std::string &_operator) { + _operator_ = _operator; + setParameter(std::string("Operator"), _operator); } -void DeleteContactWhiteListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteContactWhiteListRequest::getInstanceId() const { + return instanceId_; } -std::string DeleteContactWhiteListRequest::getContactWhiteListId()const -{ - return contactWhiteListId_; +void DeleteContactWhiteListRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DeleteContactWhiteListRequest::setContactWhiteListId(const std::string& contactWhiteListId) -{ - contactWhiteListId_ = contactWhiteListId; - setParameter("ContactWhiteListId", contactWhiteListId); +std::string DeleteContactWhiteListRequest::getContactWhiteListId() const { + return contactWhiteListId_; +} + +void DeleteContactWhiteListRequest::setContactWhiteListId(const std::string &contactWhiteListId) { + contactWhiteListId_ = contactWhiteListId; + setParameter(std::string("ContactWhiteListId"), contactWhiteListId); } diff --git a/outboundbot/src/model/DeleteContactWhiteListResult.cc b/outboundbot/src/model/DeleteContactWhiteListResult.cc index a1d2dc352..d450d5315 100644 --- a/outboundbot/src/model/DeleteContactWhiteListResult.cc +++ b/outboundbot/src/model/DeleteContactWhiteListResult.cc @@ -39,16 +39,16 @@ void DeleteContactWhiteListResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["AffectedRows"].isNull()) + affectedRows_ = std::stoi(value["AffectedRows"].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()); } diff --git a/outboundbot/src/model/DeleteDialogueFlowRequest.cc b/outboundbot/src/model/DeleteDialogueFlowRequest.cc index 08f6f1cfe..5614f3873 100644 --- a/outboundbot/src/model/DeleteDialogueFlowRequest.cc +++ b/outboundbot/src/model/DeleteDialogueFlowRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DeleteDialogueFlowRequest; - -DeleteDialogueFlowRequest::DeleteDialogueFlowRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DeleteDialogueFlow") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteDialogueFlowRequest::~DeleteDialogueFlowRequest() -{} - -std::string DeleteDialogueFlowRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteDialogueFlowRequest; + +DeleteDialogueFlowRequest::DeleteDialogueFlowRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteDialogueFlow") { + setMethod(HttpRequest::Method::Post); } -void DeleteDialogueFlowRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +DeleteDialogueFlowRequest::~DeleteDialogueFlowRequest() {} + +std::string DeleteDialogueFlowRequest::getScriptId() const { + return scriptId_; } -std::string DeleteDialogueFlowRequest::getInstanceId()const -{ - return instanceId_; +void DeleteDialogueFlowRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void DeleteDialogueFlowRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteDialogueFlowRequest::getInstanceId() const { + return instanceId_; } -std::string DeleteDialogueFlowRequest::getDialogueFlowId()const -{ - return dialogueFlowId_; +void DeleteDialogueFlowRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DeleteDialogueFlowRequest::setDialogueFlowId(const std::string& dialogueFlowId) -{ - dialogueFlowId_ = dialogueFlowId; - setParameter("DialogueFlowId", dialogueFlowId); +std::string DeleteDialogueFlowRequest::getDialogueFlowId() const { + return dialogueFlowId_; +} + +void DeleteDialogueFlowRequest::setDialogueFlowId(const std::string &dialogueFlowId) { + dialogueFlowId_ = dialogueFlowId; + setParameter(std::string("DialogueFlowId"), dialogueFlowId); } diff --git a/outboundbot/src/model/DeleteDialogueFlowResult.cc b/outboundbot/src/model/DeleteDialogueFlowResult.cc index 61189f232..77b5ff217 100644 --- a/outboundbot/src/model/DeleteDialogueFlowResult.cc +++ b/outboundbot/src/model/DeleteDialogueFlowResult.cc @@ -39,10 +39,10 @@ void DeleteDialogueFlowResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DeleteGlobalQuestionRequest.cc b/outboundbot/src/model/DeleteGlobalQuestionRequest.cc index cfe4b9860..872010562 100644 --- a/outboundbot/src/model/DeleteGlobalQuestionRequest.cc +++ b/outboundbot/src/model/DeleteGlobalQuestionRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DeleteGlobalQuestionRequest; - -DeleteGlobalQuestionRequest::DeleteGlobalQuestionRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DeleteGlobalQuestion") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteGlobalQuestionRequest::~DeleteGlobalQuestionRequest() -{} - -std::string DeleteGlobalQuestionRequest::getGlobalQuestionId()const -{ - return globalQuestionId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteGlobalQuestionRequest; + +DeleteGlobalQuestionRequest::DeleteGlobalQuestionRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteGlobalQuestion") { + setMethod(HttpRequest::Method::Post); } -void DeleteGlobalQuestionRequest::setGlobalQuestionId(const std::string& globalQuestionId) -{ - globalQuestionId_ = globalQuestionId; - setParameter("GlobalQuestionId", globalQuestionId); +DeleteGlobalQuestionRequest::~DeleteGlobalQuestionRequest() {} + +std::string DeleteGlobalQuestionRequest::getGlobalQuestionId() const { + return globalQuestionId_; } -std::string DeleteGlobalQuestionRequest::getScriptId()const -{ - return scriptId_; +void DeleteGlobalQuestionRequest::setGlobalQuestionId(const std::string &globalQuestionId) { + globalQuestionId_ = globalQuestionId; + setParameter(std::string("GlobalQuestionId"), globalQuestionId); } -void DeleteGlobalQuestionRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string DeleteGlobalQuestionRequest::getScriptId() const { + return scriptId_; } -std::string DeleteGlobalQuestionRequest::getInstanceId()const -{ - return instanceId_; +void DeleteGlobalQuestionRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void DeleteGlobalQuestionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteGlobalQuestionRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteGlobalQuestionRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DeleteGlobalQuestionResult.cc b/outboundbot/src/model/DeleteGlobalQuestionResult.cc index ac19c010a..e47b58ece 100644 --- a/outboundbot/src/model/DeleteGlobalQuestionResult.cc +++ b/outboundbot/src/model/DeleteGlobalQuestionResult.cc @@ -39,10 +39,10 @@ void DeleteGlobalQuestionResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DeleteInstanceRequest.cc b/outboundbot/src/model/DeleteInstanceRequest.cc index 42de1a774..7b5b4e8f4 100644 --- a/outboundbot/src/model/DeleteInstanceRequest.cc +++ b/outboundbot/src/model/DeleteInstanceRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DeleteInstanceRequest; - -DeleteInstanceRequest::DeleteInstanceRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DeleteInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteInstanceRequest::~DeleteInstanceRequest() -{} - -std::string DeleteInstanceRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteInstanceRequest; + +DeleteInstanceRequest::DeleteInstanceRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteInstance") { + setMethod(HttpRequest::Method::Post); } -void DeleteInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DeleteInstanceRequest::~DeleteInstanceRequest() {} + +std::string DeleteInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DeleteInstanceResult.cc b/outboundbot/src/model/DeleteInstanceResult.cc index daab73493..134b04f84 100644 --- a/outboundbot/src/model/DeleteInstanceResult.cc +++ b/outboundbot/src/model/DeleteInstanceResult.cc @@ -39,10 +39,10 @@ void DeleteInstanceResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DeleteIntentRequest.cc b/outboundbot/src/model/DeleteIntentRequest.cc index 3898d2baf..5e2be33c5 100644 --- a/outboundbot/src/model/DeleteIntentRequest.cc +++ b/outboundbot/src/model/DeleteIntentRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DeleteIntentRequest; - -DeleteIntentRequest::DeleteIntentRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DeleteIntent") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteIntentRequest::~DeleteIntentRequest() -{} - -std::string DeleteIntentRequest::getIntentId()const -{ - return intentId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteIntentRequest; + +DeleteIntentRequest::DeleteIntentRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteIntent") { + setMethod(HttpRequest::Method::Post); } -void DeleteIntentRequest::setIntentId(const std::string& intentId) -{ - intentId_ = intentId; - setParameter("IntentId", intentId); +DeleteIntentRequest::~DeleteIntentRequest() {} + +std::string DeleteIntentRequest::getIntentId() const { + return intentId_; } -std::string DeleteIntentRequest::getScriptId()const -{ - return scriptId_; +void DeleteIntentRequest::setIntentId(const std::string &intentId) { + intentId_ = intentId; + setParameter(std::string("IntentId"), intentId); } -void DeleteIntentRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string DeleteIntentRequest::getScriptId() const { + return scriptId_; } -std::string DeleteIntentRequest::getInstanceId()const -{ - return instanceId_; +void DeleteIntentRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void DeleteIntentRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteIntentRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteIntentRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DeleteIntentResult.cc b/outboundbot/src/model/DeleteIntentResult.cc index b3e841076..e73c24f7d 100644 --- a/outboundbot/src/model/DeleteIntentResult.cc +++ b/outboundbot/src/model/DeleteIntentResult.cc @@ -39,10 +39,10 @@ void DeleteIntentResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DeleteJobGroupRequest.cc b/outboundbot/src/model/DeleteJobGroupRequest.cc index ddd877e09..ebd9132fe 100644 --- a/outboundbot/src/model/DeleteJobGroupRequest.cc +++ b/outboundbot/src/model/DeleteJobGroupRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DeleteJobGroupRequest; - -DeleteJobGroupRequest::DeleteJobGroupRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DeleteJobGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteJobGroupRequest::~DeleteJobGroupRequest() -{} - -std::string DeleteJobGroupRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteJobGroupRequest; + +DeleteJobGroupRequest::DeleteJobGroupRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteJobGroup") { + setMethod(HttpRequest::Method::Post); } -void DeleteJobGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DeleteJobGroupRequest::~DeleteJobGroupRequest() {} + +std::string DeleteJobGroupRequest::getInstanceId() const { + return instanceId_; } -std::string DeleteJobGroupRequest::getJobGroupId()const -{ - return jobGroupId_; +void DeleteJobGroupRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DeleteJobGroupRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string DeleteJobGroupRequest::getJobGroupId() const { + return jobGroupId_; +} + +void DeleteJobGroupRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } diff --git a/outboundbot/src/model/DeleteJobGroupResult.cc b/outboundbot/src/model/DeleteJobGroupResult.cc index 827e083fd..ce07c0db2 100644 --- a/outboundbot/src/model/DeleteJobGroupResult.cc +++ b/outboundbot/src/model/DeleteJobGroupResult.cc @@ -39,10 +39,10 @@ void DeleteJobGroupResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DeleteOutboundCallNumberRequest.cc b/outboundbot/src/model/DeleteOutboundCallNumberRequest.cc index d142cdd77..f265377b3 100644 --- a/outboundbot/src/model/DeleteOutboundCallNumberRequest.cc +++ b/outboundbot/src/model/DeleteOutboundCallNumberRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DeleteOutboundCallNumberRequest; - -DeleteOutboundCallNumberRequest::DeleteOutboundCallNumberRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DeleteOutboundCallNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteOutboundCallNumberRequest::~DeleteOutboundCallNumberRequest() -{} - -std::string DeleteOutboundCallNumberRequest::getOutboundCallNumberId()const -{ - return outboundCallNumberId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteOutboundCallNumberRequest; + +DeleteOutboundCallNumberRequest::DeleteOutboundCallNumberRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteOutboundCallNumber") { + setMethod(HttpRequest::Method::Post); } -void DeleteOutboundCallNumberRequest::setOutboundCallNumberId(const std::string& outboundCallNumberId) -{ - outboundCallNumberId_ = outboundCallNumberId; - setParameter("OutboundCallNumberId", outboundCallNumberId); +DeleteOutboundCallNumberRequest::~DeleteOutboundCallNumberRequest() {} + +std::string DeleteOutboundCallNumberRequest::getOutboundCallNumberId() const { + return outboundCallNumberId_; } -std::string DeleteOutboundCallNumberRequest::getInstanceId()const -{ - return instanceId_; +void DeleteOutboundCallNumberRequest::setOutboundCallNumberId(const std::string &outboundCallNumberId) { + outboundCallNumberId_ = outboundCallNumberId; + setParameter(std::string("OutboundCallNumberId"), outboundCallNumberId); } -void DeleteOutboundCallNumberRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteOutboundCallNumberRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteOutboundCallNumberRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DeleteOutboundCallNumberResult.cc b/outboundbot/src/model/DeleteOutboundCallNumberResult.cc index 9778b8bc2..9c3e92501 100644 --- a/outboundbot/src/model/DeleteOutboundCallNumberResult.cc +++ b/outboundbot/src/model/DeleteOutboundCallNumberResult.cc @@ -39,10 +39,10 @@ void DeleteOutboundCallNumberResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DeleteScriptRequest.cc b/outboundbot/src/model/DeleteScriptRequest.cc index 0a10afcd5..df9c63750 100644 --- a/outboundbot/src/model/DeleteScriptRequest.cc +++ b/outboundbot/src/model/DeleteScriptRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DeleteScriptRequest; - -DeleteScriptRequest::DeleteScriptRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DeleteScript") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteScriptRequest::~DeleteScriptRequest() -{} - -std::string DeleteScriptRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteScriptRequest; + +DeleteScriptRequest::DeleteScriptRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteScript") { + setMethod(HttpRequest::Method::Post); } -void DeleteScriptRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +DeleteScriptRequest::~DeleteScriptRequest() {} + +std::string DeleteScriptRequest::getScriptId() const { + return scriptId_; } -std::string DeleteScriptRequest::getInstanceId()const -{ - return instanceId_; +void DeleteScriptRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void DeleteScriptRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteScriptRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteScriptRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DeleteScriptResult.cc b/outboundbot/src/model/DeleteScriptResult.cc index aebbd9b6d..de018b0f4 100644 --- a/outboundbot/src/model/DeleteScriptResult.cc +++ b/outboundbot/src/model/DeleteScriptResult.cc @@ -39,10 +39,10 @@ void DeleteScriptResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DeleteScriptWaveformRequest.cc b/outboundbot/src/model/DeleteScriptWaveformRequest.cc index 35e7a28b6..bd63fa51f 100644 --- a/outboundbot/src/model/DeleteScriptWaveformRequest.cc +++ b/outboundbot/src/model/DeleteScriptWaveformRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DeleteScriptWaveformRequest; - -DeleteScriptWaveformRequest::DeleteScriptWaveformRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DeleteScriptWaveform") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteScriptWaveformRequest::~DeleteScriptWaveformRequest() -{} - -std::string DeleteScriptWaveformRequest::getScriptWaveformId()const -{ - return scriptWaveformId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DeleteScriptWaveformRequest; + +DeleteScriptWaveformRequest::DeleteScriptWaveformRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DeleteScriptWaveform") { + setMethod(HttpRequest::Method::Post); } -void DeleteScriptWaveformRequest::setScriptWaveformId(const std::string& scriptWaveformId) -{ - scriptWaveformId_ = scriptWaveformId; - setParameter("ScriptWaveformId", scriptWaveformId); +DeleteScriptWaveformRequest::~DeleteScriptWaveformRequest() {} + +std::string DeleteScriptWaveformRequest::getScriptWaveformId() const { + return scriptWaveformId_; } -std::string DeleteScriptWaveformRequest::getScriptId()const -{ - return scriptId_; +void DeleteScriptWaveformRequest::setScriptWaveformId(const std::string &scriptWaveformId) { + scriptWaveformId_ = scriptWaveformId; + setParameter(std::string("ScriptWaveformId"), scriptWaveformId); } -void DeleteScriptWaveformRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string DeleteScriptWaveformRequest::getScriptId() const { + return scriptId_; } -std::string DeleteScriptWaveformRequest::getInstanceId()const -{ - return instanceId_; +void DeleteScriptWaveformRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void DeleteScriptWaveformRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DeleteScriptWaveformRequest::getInstanceId() const { + return instanceId_; +} + +void DeleteScriptWaveformRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DeleteScriptWaveformResult.cc b/outboundbot/src/model/DeleteScriptWaveformResult.cc index 7d1fe3315..f1e947fb6 100644 --- a/outboundbot/src/model/DeleteScriptWaveformResult.cc +++ b/outboundbot/src/model/DeleteScriptWaveformResult.cc @@ -39,10 +39,10 @@ void DeleteScriptWaveformResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DescribeDialogueNodeStatisticsRequest.cc b/outboundbot/src/model/DescribeDialogueNodeStatisticsRequest.cc index 7cab0e992..000283c16 100644 --- a/outboundbot/src/model/DescribeDialogueNodeStatisticsRequest.cc +++ b/outboundbot/src/model/DescribeDialogueNodeStatisticsRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeDialogueNodeStatisticsRequest; - -DescribeDialogueNodeStatisticsRequest::DescribeDialogueNodeStatisticsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeDialogueNodeStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDialogueNodeStatisticsRequest::~DescribeDialogueNodeStatisticsRequest() -{} - -std::string DescribeDialogueNodeStatisticsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeDialogueNodeStatisticsRequest; + +DescribeDialogueNodeStatisticsRequest::DescribeDialogueNodeStatisticsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeDialogueNodeStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeDialogueNodeStatisticsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeDialogueNodeStatisticsRequest::~DescribeDialogueNodeStatisticsRequest() {} + +std::string DescribeDialogueNodeStatisticsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeDialogueNodeStatisticsRequest::getJobGroupId()const -{ - return jobGroupId_; +void DescribeDialogueNodeStatisticsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeDialogueNodeStatisticsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string DescribeDialogueNodeStatisticsRequest::getJobGroupId() const { + return jobGroupId_; } -int DescribeDialogueNodeStatisticsRequest::getLimit()const -{ - return limit_; +void DescribeDialogueNodeStatisticsRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void DescribeDialogueNodeStatisticsRequest::setLimit(int limit) -{ - limit_ = limit; - setParameter("Limit", std::to_string(limit)); +int DescribeDialogueNodeStatisticsRequest::getLimit() const { + return limit_; +} + +void DescribeDialogueNodeStatisticsRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); } diff --git a/outboundbot/src/model/DescribeDialogueNodeStatisticsResult.cc b/outboundbot/src/model/DescribeDialogueNodeStatisticsResult.cc index d8bacf1fa..33d645e9f 100644 --- a/outboundbot/src/model/DescribeDialogueNodeStatisticsResult.cc +++ b/outboundbot/src/model/DescribeDialogueNodeStatisticsResult.cc @@ -43,38 +43,38 @@ void DescribeDialogueNodeStatisticsResult::parse(const std::string &payload) 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()); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["GroupId"].isNull()) + noAnswerDialogueNodesObject.groupId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["GroupId"].asString(); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeName"].isNull()) + noAnswerDialogueNodesObject.nodeName = valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeName"].asString(); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["HangUpNum"].isNull()) + noAnswerDialogueNodesObject.hangUpNum = std::stoi(valueNoAnswerDialogueNodesNoAnswerDialogueNode["HangUpNum"].asString()); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["InstanceId"].isNull()) + noAnswerDialogueNodesObject.instanceId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["InstanceId"].asString(); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["HitNum"].isNull()) + noAnswerDialogueNodesObject.hitNum = std::stoi(valueNoAnswerDialogueNodesNoAnswerDialogueNode["HitNum"].asString()); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["Id"].isNull()) + noAnswerDialogueNodesObject.id = valueNoAnswerDialogueNodesNoAnswerDialogueNode["Id"].asString(); + if(!valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeId"].isNull()) + noAnswerDialogueNodesObject.nodeId = valueNoAnswerDialogueNodesNoAnswerDialogueNode["NodeId"].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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; if(!value["TotalCompleted"].isNull()) totalCompleted_ = std::stoi(value["TotalCompleted"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); } diff --git a/outboundbot/src/model/DescribeDsReportsRequest.cc b/outboundbot/src/model/DescribeDsReportsRequest.cc index a640ef6bb..80e62bae0 100644 --- a/outboundbot/src/model/DescribeDsReportsRequest.cc +++ b/outboundbot/src/model/DescribeDsReportsRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeDsReportsRequest; - -DescribeDsReportsRequest::DescribeDsReportsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeDsReports") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeDsReportsRequest::~DescribeDsReportsRequest() -{} - -std::string DescribeDsReportsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeDsReportsRequest; + +DescribeDsReportsRequest::DescribeDsReportsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeDsReports") { + setMethod(HttpRequest::Method::Post); } -void DescribeDsReportsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeDsReportsRequest::~DescribeDsReportsRequest() {} + +std::string DescribeDsReportsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeDsReportsRequest::getJobGroupId()const -{ - return jobGroupId_; +void DescribeDsReportsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeDsReportsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string DescribeDsReportsRequest::getJobGroupId() const { + return jobGroupId_; +} + +void DescribeDsReportsRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } diff --git a/outboundbot/src/model/DescribeDsReportsResult.cc b/outboundbot/src/model/DescribeDsReportsResult.cc index 3b95f11e7..1b32b9b50 100644 --- a/outboundbot/src/model/DescribeDsReportsResult.cc +++ b/outboundbot/src/model/DescribeDsReportsResult.cc @@ -39,14 +39,14 @@ void DescribeDsReportsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].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(); diff --git a/outboundbot/src/model/DescribeGlobalQuestionRequest.cc b/outboundbot/src/model/DescribeGlobalQuestionRequest.cc index 162fae4ad..3fd9067ca 100644 --- a/outboundbot/src/model/DescribeGlobalQuestionRequest.cc +++ b/outboundbot/src/model/DescribeGlobalQuestionRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeGlobalQuestionRequest; - -DescribeGlobalQuestionRequest::DescribeGlobalQuestionRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeGlobalQuestion") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGlobalQuestionRequest::~DescribeGlobalQuestionRequest() -{} - -std::string DescribeGlobalQuestionRequest::getGlobalQuestionId()const -{ - return globalQuestionId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeGlobalQuestionRequest; + +DescribeGlobalQuestionRequest::DescribeGlobalQuestionRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeGlobalQuestion") { + setMethod(HttpRequest::Method::Post); } -void DescribeGlobalQuestionRequest::setGlobalQuestionId(const std::string& globalQuestionId) -{ - globalQuestionId_ = globalQuestionId; - setParameter("GlobalQuestionId", globalQuestionId); +DescribeGlobalQuestionRequest::~DescribeGlobalQuestionRequest() {} + +std::string DescribeGlobalQuestionRequest::getGlobalQuestionId() const { + return globalQuestionId_; } -std::string DescribeGlobalQuestionRequest::getScriptId()const -{ - return scriptId_; +void DescribeGlobalQuestionRequest::setGlobalQuestionId(const std::string &globalQuestionId) { + globalQuestionId_ = globalQuestionId; + setParameter(std::string("GlobalQuestionId"), globalQuestionId); } -void DescribeGlobalQuestionRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string DescribeGlobalQuestionRequest::getScriptId() const { + return scriptId_; } -std::string DescribeGlobalQuestionRequest::getInstanceId()const -{ - return instanceId_; +void DescribeGlobalQuestionRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void DescribeGlobalQuestionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeGlobalQuestionRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeGlobalQuestionRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DescribeGlobalQuestionResult.cc b/outboundbot/src/model/DescribeGlobalQuestionResult.cc index 4f46d8c2b..7815fb248 100644 --- a/outboundbot/src/model/DescribeGlobalQuestionResult.cc +++ b/outboundbot/src/model/DescribeGlobalQuestionResult.cc @@ -40,22 +40,22 @@ void DescribeGlobalQuestionResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto globalQuestionNode = value["GlobalQuestion"]; - if(!globalQuestionNode["Answers"].isNull()) - globalQuestion_.answers = globalQuestionNode["Answers"].asString(); if(!globalQuestionNode["GlobalQuestionId"].isNull()) globalQuestion_.globalQuestionId = globalQuestionNode["GlobalQuestionId"].asString(); - if(!globalQuestionNode["GlobalQuestionName"].isNull()) - globalQuestion_.globalQuestionName = globalQuestionNode["GlobalQuestionName"].asString(); + if(!globalQuestionNode["Answers"].isNull()) + globalQuestion_.answers = globalQuestionNode["Answers"].asString(); if(!globalQuestionNode["GlobalQuestionType"].isNull()) globalQuestion_.globalQuestionType = globalQuestionNode["GlobalQuestionType"].asString(); + if(!globalQuestionNode["GlobalQuestionName"].isNull()) + globalQuestion_.globalQuestionName = globalQuestionNode["GlobalQuestionName"].asString(); if(!globalQuestionNode["Questions"].isNull()) globalQuestion_.questions = globalQuestionNode["Questions"].asString(); if(!globalQuestionNode["ScriptId"].isNull()) globalQuestion_.scriptId = globalQuestionNode["ScriptId"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DescribeGroupExecutingInfoRequest.cc b/outboundbot/src/model/DescribeGroupExecutingInfoRequest.cc index 6bdfb7377..b19c79c89 100644 --- a/outboundbot/src/model/DescribeGroupExecutingInfoRequest.cc +++ b/outboundbot/src/model/DescribeGroupExecutingInfoRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeGroupExecutingInfoRequest; - -DescribeGroupExecutingInfoRequest::DescribeGroupExecutingInfoRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeGroupExecutingInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeGroupExecutingInfoRequest::~DescribeGroupExecutingInfoRequest() -{} - -std::string DescribeGroupExecutingInfoRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeGroupExecutingInfoRequest; + +DescribeGroupExecutingInfoRequest::DescribeGroupExecutingInfoRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeGroupExecutingInfo") { + setMethod(HttpRequest::Method::Post); } -void DescribeGroupExecutingInfoRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeGroupExecutingInfoRequest::~DescribeGroupExecutingInfoRequest() {} + +std::string DescribeGroupExecutingInfoRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeGroupExecutingInfoRequest::getJobGroupId()const -{ - return jobGroupId_; +void DescribeGroupExecutingInfoRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeGroupExecutingInfoRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string DescribeGroupExecutingInfoRequest::getJobGroupId() const { + return jobGroupId_; +} + +void DescribeGroupExecutingInfoRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } diff --git a/outboundbot/src/model/DescribeGroupExecutingInfoResult.cc b/outboundbot/src/model/DescribeGroupExecutingInfoResult.cc index ac8200adf..3a70ba02c 100644 --- a/outboundbot/src/model/DescribeGroupExecutingInfoResult.cc +++ b/outboundbot/src/model/DescribeGroupExecutingInfoResult.cc @@ -40,51 +40,51 @@ void DescribeGroupExecutingInfoResult::parse(const std::string &payload) 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["StartTime"].isNull()) + executingInfo_.startTime = std::stol(executingInfoNode["StartTime"].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["CreatorName"].isNull()) + executingInfo_.creatorName = executingInfoNode["CreatorName"].asString(); if(!executingInfoNode["TransferByNoAnswer"].isNull()) executingInfo_.transferByNoAnswer = std::stoi(executingInfoNode["TransferByNoAnswer"].asString()); + if(!executingInfoNode["FinishedNum"].isNull()) + executingInfo_.finishedNum = std::stoi(executingInfoNode["FinishedNum"].asString()); + if(!executingInfoNode["TransferByIntentNum"].isNull()) + executingInfo_.transferByIntentNum = std::stoi(executingInfoNode["TransferByIntentNum"].asString()); + if(!executingInfoNode["CallNum"].isNull()) + executingInfo_.callNum = std::stoi(executingInfoNode["CallNum"].asString()); + if(!executingInfoNode["CallFailedNum"].isNull()) + executingInfo_.callFailedNum = std::stoi(executingInfoNode["CallFailedNum"].asString()); auto jobsProgressNode = executingInfoNode["JobsProgress"]; - if(!jobsProgressNode["TotalJobs"].isNull()) - executingInfo_.jobsProgress.totalJobs = std::stoi(jobsProgressNode["TotalJobs"].asString()); + if(!jobsProgressNode["SchedulingNum"].isNull()) + executingInfo_.jobsProgress.schedulingNum = std::stoi(jobsProgressNode["SchedulingNum"].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["PausedNum"].isNull()) + executingInfo_.jobsProgress.pausedNum = std::stoi(jobsProgressNode["PausedNum"].asString()); if(!jobsProgressNode["CancelledNum"].isNull()) executingInfo_.jobsProgress.cancelledNum = std::stoi(jobsProgressNode["CancelledNum"].asString()); + if(!jobsProgressNode["TotalJobs"].isNull()) + executingInfo_.jobsProgress.totalJobs = std::stoi(jobsProgressNode["TotalJobs"].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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].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(); diff --git a/outboundbot/src/model/DescribeInstanceRequest.cc b/outboundbot/src/model/DescribeInstanceRequest.cc index 9a40db75e..6dff524e1 100644 --- a/outboundbot/src/model/DescribeInstanceRequest.cc +++ b/outboundbot/src/model/DescribeInstanceRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeInstanceRequest; - -DescribeInstanceRequest::DescribeInstanceRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeInstanceRequest::~DescribeInstanceRequest() -{} - -std::string DescribeInstanceRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeInstanceRequest; + +DescribeInstanceRequest::DescribeInstanceRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeInstance") { + setMethod(HttpRequest::Method::Post); } -void DescribeInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeInstanceRequest::~DescribeInstanceRequest() {} + +std::string DescribeInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DescribeInstanceResult.cc b/outboundbot/src/model/DescribeInstanceResult.cc index 7b0980e2f..3622cd90d 100644 --- a/outboundbot/src/model/DescribeInstanceResult.cc +++ b/outboundbot/src/model/DescribeInstanceResult.cc @@ -40,41 +40,41 @@ void DescribeInstanceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto instanceNode = value["Instance"]; - if(!instanceNode["CallCenterInstanceId"].isNull()) - instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString(); if(!instanceNode["CreationTime"].isNull()) instance_.creationTime = std::stol(instanceNode["CreationTime"].asString()); - if(!instanceNode["InstanceDescription"].isNull()) - instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); - if(!instanceNode["InstanceId"].isNull()) - instance_.instanceId = instanceNode["InstanceId"].asString(); - if(!instanceNode["InstanceName"].isNull()) - instance_.instanceName = instanceNode["InstanceName"].asString(); - if(!instanceNode["MaxConcurrentConversation"].isNull()) - instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); - if(!instanceNode["NluServiceType"].isNull()) - instance_.nluServiceType = instanceNode["NluServiceType"].asString(); + if(!instanceNode["CallCenterInstanceId"].isNull()) + instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString(); if(!instanceNode["Owner"].isNull()) instance_.owner = instanceNode["Owner"].asString(); + if(!instanceNode["NluServiceType"].isNull()) + instance_.nluServiceType = instanceNode["NluServiceType"].asString(); + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].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["InstanceDescription"].isNull()) + instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); + if(!instanceNode["InstanceName"].isNull()) + instance_.instanceName = instanceNode["InstanceName"].asString(); + if(!instanceNode["CreatorName"].isNull()) + instance_.creatorName = instanceNode["CreatorName"].asString(); if(!instanceNode["ResourceGroupId"].isNull()) instance_.resourceGroupId = instanceNode["ResourceGroupId"].asString(); + if(!instanceNode["MaxConcurrentConversation"].isNull()) + instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); auto nluProfileNode = instanceNode["NluProfile"]; 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()) - code_ = value["Code"].asString(); + if(!nluProfileNode["Endpoint"].isNull()) + instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DescribeIntentRequest.cc b/outboundbot/src/model/DescribeIntentRequest.cc index 2d9c1e937..0ffabde51 100644 --- a/outboundbot/src/model/DescribeIntentRequest.cc +++ b/outboundbot/src/model/DescribeIntentRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeIntentRequest; - -DescribeIntentRequest::DescribeIntentRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeIntent") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIntentRequest::~DescribeIntentRequest() -{} - -std::string DescribeIntentRequest::getIntentId()const -{ - return intentId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeIntentRequest; + +DescribeIntentRequest::DescribeIntentRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeIntent") { + setMethod(HttpRequest::Method::Post); } -void DescribeIntentRequest::setIntentId(const std::string& intentId) -{ - intentId_ = intentId; - setParameter("IntentId", intentId); +DescribeIntentRequest::~DescribeIntentRequest() {} + +std::string DescribeIntentRequest::getIntentId() const { + return intentId_; } -std::string DescribeIntentRequest::getScriptId()const -{ - return scriptId_; +void DescribeIntentRequest::setIntentId(const std::string &intentId) { + intentId_ = intentId; + setParameter(std::string("IntentId"), intentId); } -void DescribeIntentRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string DescribeIntentRequest::getScriptId() const { + return scriptId_; } -std::string DescribeIntentRequest::getInstanceId()const -{ - return instanceId_; +void DescribeIntentRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void DescribeIntentRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeIntentRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeIntentRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DescribeIntentResult.cc b/outboundbot/src/model/DescribeIntentResult.cc index bd275123e..dd7995785 100644 --- a/outboundbot/src/model/DescribeIntentResult.cc +++ b/outboundbot/src/model/DescribeIntentResult.cc @@ -40,26 +40,26 @@ void DescribeIntentResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto intentNode = value["Intent"]; - if(!intentNode["CreateTime"].isNull()) - intent_.createTime = std::stol(intentNode["CreateTime"].asString()); + if(!intentNode["Utterances"].isNull()) + intent_.utterances = intentNode["Utterances"].asString(); if(!intentNode["IntentDescription"].isNull()) intent_.intentDescription = intentNode["IntentDescription"].asString(); - if(!intentNode["IntentId"].isNull()) - intent_.intentId = intentNode["IntentId"].asString(); - if(!intentNode["IntentName"].isNull()) - intent_.intentName = intentNode["IntentName"].asString(); + if(!intentNode["UpdateTime"].isNull()) + intent_.updateTime = std::stol(intentNode["UpdateTime"].asString()); + if(!intentNode["CreateTime"].isNull()) + intent_.createTime = std::stol(intentNode["CreateTime"].asString()); if(!intentNode["Keywords"].isNull()) intent_.keywords = intentNode["Keywords"].asString(); if(!intentNode["ScriptId"].isNull()) intent_.scriptId = intentNode["ScriptId"].asString(); - if(!intentNode["UpdateTime"].isNull()) - intent_.updateTime = std::stol(intentNode["UpdateTime"].asString()); - if(!intentNode["Utterances"].isNull()) - intent_.utterances = intentNode["Utterances"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); + if(!intentNode["IntentId"].isNull()) + intent_.intentId = intentNode["IntentId"].asString(); + if(!intentNode["IntentName"].isNull()) + intent_.intentName = intentNode["IntentName"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DescribeIntentStatisticsRequest.cc b/outboundbot/src/model/DescribeIntentStatisticsRequest.cc index cc22c8a65..19d6d42dd 100644 --- a/outboundbot/src/model/DescribeIntentStatisticsRequest.cc +++ b/outboundbot/src/model/DescribeIntentStatisticsRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeIntentStatisticsRequest; - -DescribeIntentStatisticsRequest::DescribeIntentStatisticsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeIntentStatistics") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeIntentStatisticsRequest::~DescribeIntentStatisticsRequest() -{} - -std::string DescribeIntentStatisticsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeIntentStatisticsRequest; + +DescribeIntentStatisticsRequest::DescribeIntentStatisticsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeIntentStatistics") { + setMethod(HttpRequest::Method::Post); } -void DescribeIntentStatisticsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeIntentStatisticsRequest::~DescribeIntentStatisticsRequest() {} + +std::string DescribeIntentStatisticsRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeIntentStatisticsRequest::getJobGroupId()const -{ - return jobGroupId_; +void DescribeIntentStatisticsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeIntentStatisticsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string DescribeIntentStatisticsRequest::getJobGroupId() const { + return jobGroupId_; } -int DescribeIntentStatisticsRequest::getLimit()const -{ - return limit_; +void DescribeIntentStatisticsRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void DescribeIntentStatisticsRequest::setLimit(int limit) -{ - limit_ = limit; - setParameter("Limit", std::to_string(limit)); +int DescribeIntentStatisticsRequest::getLimit() const { + return limit_; +} + +void DescribeIntentStatisticsRequest::setLimit(int limit) { + limit_ = limit; + setParameter(std::string("Limit"), std::to_string(limit)); } diff --git a/outboundbot/src/model/DescribeIntentStatisticsResult.cc b/outboundbot/src/model/DescribeIntentStatisticsResult.cc index d3211fb75..e43286f0e 100644 --- a/outboundbot/src/model/DescribeIntentStatisticsResult.cc +++ b/outboundbot/src/model/DescribeIntentStatisticsResult.cc @@ -43,40 +43,40 @@ void DescribeIntentStatisticsResult::parse(const std::string &payload) for (auto valueProcessIntentsIntentStatisticsItem : allProcessIntentsNode) { IntentStatisticsItem processIntentsObject; - if(!valueProcessIntentsIntentStatisticsItem["InstanceId"].isNull()) - processIntentsObject.instanceId = valueProcessIntentsIntentStatisticsItem["InstanceId"].asString(); + if(!valueProcessIntentsIntentStatisticsItem["Type"].isNull()) + processIntentsObject.type = valueProcessIntentsIntentStatisticsItem["Type"].asString(); if(!valueProcessIntentsIntentStatisticsItem["GroupId"].isNull()) processIntentsObject.groupId = valueProcessIntentsIntentStatisticsItem["GroupId"].asString(); + if(!valueProcessIntentsIntentStatisticsItem["HitAfterNoAnswer"].isNull()) + processIntentsObject.hitAfterNoAnswer = std::stoi(valueProcessIntentsIntentStatisticsItem["HitAfterNoAnswer"].asString()); + if(!valueProcessIntentsIntentStatisticsItem["InstanceId"].isNull()) + processIntentsObject.instanceId = valueProcessIntentsIntentStatisticsItem["InstanceId"].asString(); + if(!valueProcessIntentsIntentStatisticsItem["HitNum"].isNull()) + processIntentsObject.hitNum = std::stoi(valueProcessIntentsIntentStatisticsItem["HitNum"].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["Type"].isNull()) + globalIntentsObject.type = valueGlobalIntentsIntentStatisticsItem["Type"].asString(); if(!valueGlobalIntentsIntentStatisticsItem["GroupId"].isNull()) globalIntentsObject.groupId = valueGlobalIntentsIntentStatisticsItem["GroupId"].asString(); + if(!valueGlobalIntentsIntentStatisticsItem["HitAfterNoAnswer"].isNull()) + globalIntentsObject.hitAfterNoAnswer = std::stoi(valueGlobalIntentsIntentStatisticsItem["HitAfterNoAnswer"].asString()); + if(!valueGlobalIntentsIntentStatisticsItem["InstanceId"].isNull()) + globalIntentsObject.instanceId = valueGlobalIntentsIntentStatisticsItem["InstanceId"].asString(); + if(!valueGlobalIntentsIntentStatisticsItem["HitNum"].isNull()) + globalIntentsObject.hitNum = std::stoi(valueGlobalIntentsIntentStatisticsItem["HitNum"].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"]; @@ -87,20 +87,20 @@ void DescribeIntentStatisticsResult::parse(const std::string &payload) intentsAfterNoAnswerObject.instanceId = valueIntentsAfterNoAnswerIntentStatisticsItem["InstanceId"].asString(); intentsAfterNoAnswer_.push_back(intentsAfterNoAnswerObject); } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["GroupId"].isNull()) + groupId_ = value["GroupId"].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["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["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); if(!value["GlobalIntentNum"].isNull()) globalIntentNum_ = std::stoi(value["GlobalIntentNum"].asString()); diff --git a/outboundbot/src/model/DescribeJobDataParsingTaskProgressRequest.cc b/outboundbot/src/model/DescribeJobDataParsingTaskProgressRequest.cc index d821233a4..a73aede1f 100644 --- a/outboundbot/src/model/DescribeJobDataParsingTaskProgressRequest.cc +++ b/outboundbot/src/model/DescribeJobDataParsingTaskProgressRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeJobDataParsingTaskProgressRequest; - -DescribeJobDataParsingTaskProgressRequest::DescribeJobDataParsingTaskProgressRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobDataParsingTaskProgress") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeJobDataParsingTaskProgressRequest::~DescribeJobDataParsingTaskProgressRequest() -{} - -std::string DescribeJobDataParsingTaskProgressRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeJobDataParsingTaskProgressRequest; + +DescribeJobDataParsingTaskProgressRequest::DescribeJobDataParsingTaskProgressRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobDataParsingTaskProgress") { + setMethod(HttpRequest::Method::Post); } -void DescribeJobDataParsingTaskProgressRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeJobDataParsingTaskProgressRequest::~DescribeJobDataParsingTaskProgressRequest() {} + +std::string DescribeJobDataParsingTaskProgressRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeJobDataParsingTaskProgressRequest::getJobDataParsingTaskId()const -{ - return jobDataParsingTaskId_; +void DescribeJobDataParsingTaskProgressRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeJobDataParsingTaskProgressRequest::setJobDataParsingTaskId(const std::string& jobDataParsingTaskId) -{ - jobDataParsingTaskId_ = jobDataParsingTaskId; - setParameter("JobDataParsingTaskId", jobDataParsingTaskId); +std::string DescribeJobDataParsingTaskProgressRequest::getJobDataParsingTaskId() const { + return jobDataParsingTaskId_; +} + +void DescribeJobDataParsingTaskProgressRequest::setJobDataParsingTaskId(const std::string &jobDataParsingTaskId) { + jobDataParsingTaskId_ = jobDataParsingTaskId; + setParameter(std::string("JobDataParsingTaskId"), jobDataParsingTaskId); } diff --git a/outboundbot/src/model/DescribeJobGroupExportTaskProgressRequest.cc b/outboundbot/src/model/DescribeJobGroupExportTaskProgressRequest.cc index 9c4e67a81..7fce648aa 100644 --- a/outboundbot/src/model/DescribeJobGroupExportTaskProgressRequest.cc +++ b/outboundbot/src/model/DescribeJobGroupExportTaskProgressRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeJobGroupExportTaskProgressRequest; - -DescribeJobGroupExportTaskProgressRequest::DescribeJobGroupExportTaskProgressRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobGroupExportTaskProgress") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeJobGroupExportTaskProgressRequest::~DescribeJobGroupExportTaskProgressRequest() -{} - -std::string DescribeJobGroupExportTaskProgressRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeJobGroupExportTaskProgressRequest; + +DescribeJobGroupExportTaskProgressRequest::DescribeJobGroupExportTaskProgressRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobGroupExportTaskProgress") { + setMethod(HttpRequest::Method::Post); } -void DescribeJobGroupExportTaskProgressRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeJobGroupExportTaskProgressRequest::~DescribeJobGroupExportTaskProgressRequest() {} + +std::string DescribeJobGroupExportTaskProgressRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeJobGroupExportTaskProgressRequest::getTaskId()const -{ - return taskId_; +void DescribeJobGroupExportTaskProgressRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeJobGroupExportTaskProgressRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string DescribeJobGroupExportTaskProgressRequest::getTaskId() const { + return taskId_; +} + +void DescribeJobGroupExportTaskProgressRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/outboundbot/src/model/DescribeJobGroupExportTaskProgressResult.cc b/outboundbot/src/model/DescribeJobGroupExportTaskProgressResult.cc index d223530b6..2367e14dd 100644 --- a/outboundbot/src/model/DescribeJobGroupExportTaskProgressResult.cc +++ b/outboundbot/src/model/DescribeJobGroupExportTaskProgressResult.cc @@ -39,18 +39,18 @@ void DescribeJobGroupExportTaskProgressResult::parse(const std::string &payload) 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()); + 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(); } diff --git a/outboundbot/src/model/DescribeJobGroupRequest.cc b/outboundbot/src/model/DescribeJobGroupRequest.cc index 06bc7d03c..a4d789109 100644 --- a/outboundbot/src/model/DescribeJobGroupRequest.cc +++ b/outboundbot/src/model/DescribeJobGroupRequest.cc @@ -1,64 +1,53 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeJobGroupRequest; - -DescribeJobGroupRequest::DescribeJobGroupRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeJobGroupRequest::~DescribeJobGroupRequest() -{} - -std::vector DescribeJobGroupRequest::getBriefTypes()const -{ - return briefTypes_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeJobGroupRequest; + +DescribeJobGroupRequest::DescribeJobGroupRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJobGroup") { + setMethod(HttpRequest::Method::Post); } -void DescribeJobGroupRequest::setBriefTypes(const std::vector& briefTypes) -{ - briefTypes_ = briefTypes; - for(int dep1 = 0; dep1!= briefTypes.size(); dep1++) { - setParameter("BriefTypes."+ std::to_string(dep1), briefTypes.at(dep1)); - } +DescribeJobGroupRequest::~DescribeJobGroupRequest() {} + +std::vector DescribeJobGroupRequest::getBriefTypes() const { + return briefTypes_; } -std::string DescribeJobGroupRequest::getInstanceId()const -{ - return instanceId_; +void DescribeJobGroupRequest::setBriefTypes(const std::vector &briefTypes) { + briefTypes_ = briefTypes; } -void DescribeJobGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeJobGroupRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeJobGroupRequest::getJobGroupId()const -{ - return jobGroupId_; +void DescribeJobGroupRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeJobGroupRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string DescribeJobGroupRequest::getJobGroupId() const { + return jobGroupId_; +} + +void DescribeJobGroupRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } diff --git a/outboundbot/src/model/DescribeJobRequest.cc b/outboundbot/src/model/DescribeJobRequest.cc index 49902f442..f07c5b8ae 100644 --- a/outboundbot/src/model/DescribeJobRequest.cc +++ b/outboundbot/src/model/DescribeJobRequest.cc @@ -1,51 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeJobRequest; - -DescribeJobRequest::DescribeJobRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJob") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeJobRequest::~DescribeJobRequest() -{} - -std::string DescribeJobRequest::getJobId()const -{ - return jobId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeJobRequest; + +DescribeJobRequest::DescribeJobRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeJob") { + setMethod(HttpRequest::Method::Post); } -void DescribeJobRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +DescribeJobRequest::~DescribeJobRequest() {} + +std::string DescribeJobRequest::getJobId() const { + return jobId_; } -std::string DescribeJobRequest::getInstanceId()const -{ - return instanceId_; +void DescribeJobRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void DescribeJobRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeJobRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeJobRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); +} + +bool DescribeJobRequest::getWithScript() const { + return withScript_; +} + +void DescribeJobRequest::setWithScript(bool withScript) { + withScript_ = withScript; + setParameter(std::string("WithScript"), withScript ? "true" : "false"); } diff --git a/outboundbot/src/model/DescribeJobResult.cc b/outboundbot/src/model/DescribeJobResult.cc index ec81c025d..0b1a74855 100644 --- a/outboundbot/src/model/DescribeJobResult.cc +++ b/outboundbot/src/model/DescribeJobResult.cc @@ -164,6 +164,8 @@ void DescribeJobResult::parse(const std::string &payload) conversationObject.speaker = jobNodeTasksTaskConversationConversationDetail["Speaker"].asString(); if(!jobNodeTasksTaskConversationConversationDetail["Script"].isNull()) conversationObject.script = jobNodeTasksTaskConversationConversationDetail["Script"].asString(); + if(!jobNodeTasksTaskConversationConversationDetail["SequenceId"].isNull()) + conversationObject.sequenceId = jobNodeTasksTaskConversationConversationDetail["SequenceId"].asString(); auto allSummary1Node = jobNodeTasksTaskConversationConversationDetail["Summary"]["SummaryItem"]; for (auto jobNodeTasksTaskConversationConversationDetailSummarySummaryItem : allSummary1Node) { @@ -197,6 +199,35 @@ void DescribeJobResult::parse(const std::string &payload) taskObject.contact3.referenceId = contact3Node["ReferenceId"].asString(); job_.tasks.push_back(taskObject); } + auto scriptNode = jobNode["Script"]; + if(!scriptNode["Status"].isNull()) + job_.script.status = scriptNode["Status"].asString(); + if(!scriptNode["UpdateTime"].isNull()) + job_.script.updateTime = std::stol(scriptNode["UpdateTime"].asString()); + if(!scriptNode["ChatbotId"].isNull()) + job_.script.chatbotId = scriptNode["ChatbotId"].asString(); + if(!scriptNode["ScriptId"].isNull()) + job_.script.scriptId = scriptNode["ScriptId"].asString(); + if(!scriptNode["IsDebugDrafted"].isNull()) + job_.script.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true"; + if(!scriptNode["Industry"].isNull()) + job_.script.industry = scriptNode["Industry"].asString(); + if(!scriptNode["ScriptDescription"].isNull()) + job_.script.scriptDescription = scriptNode["ScriptDescription"].asString(); + if(!scriptNode["MiniPlaybackConfigEnabled"].isNull()) + job_.script.miniPlaybackConfigEnabled = scriptNode["MiniPlaybackConfigEnabled"].asString() == "true"; + if(!scriptNode["IsDrafted"].isNull()) + job_.script.isDrafted = scriptNode["IsDrafted"].asString() == "true"; + if(!scriptNode["TtsConfig"].isNull()) + job_.script.ttsConfig = scriptNode["TtsConfig"].asString(); + if(!scriptNode["DebugStatus"].isNull()) + job_.script.debugStatus = scriptNode["DebugStatus"].asString(); + if(!scriptNode["AsrConfig"].isNull()) + job_.script.asrConfig = scriptNode["AsrConfig"].asString(); + if(!scriptNode["Scene"].isNull()) + job_.script.scene = scriptNode["Scene"].asString(); + if(!scriptNode["Name"].isNull()) + job_.script.name = scriptNode["Name"].asString(); auto allCallingNumbers = jobNode["CallingNumbers"]["String"]; for (auto value : allCallingNumbers) job_.callingNumbers.push_back(value.asString()); diff --git a/outboundbot/src/model/DescribeNumberDistrictInfoStatusRequest.cc b/outboundbot/src/model/DescribeNumberDistrictInfoStatusRequest.cc index 6c560188e..514d273ad 100644 --- a/outboundbot/src/model/DescribeNumberDistrictInfoStatusRequest.cc +++ b/outboundbot/src/model/DescribeNumberDistrictInfoStatusRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::DescribeNumberDistrictInfoStatusRequest; - -DescribeNumberDistrictInfoStatusRequest::DescribeNumberDistrictInfoStatusRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeNumberDistrictInfoStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeNumberDistrictInfoStatusRequest::~DescribeNumberDistrictInfoStatusRequest() -{} - + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeNumberDistrictInfoStatusRequest; + +DescribeNumberDistrictInfoStatusRequest::DescribeNumberDistrictInfoStatusRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeNumberDistrictInfoStatus") { + setMethod(HttpRequest::Method::Post); +} + +DescribeNumberDistrictInfoStatusRequest::~DescribeNumberDistrictInfoStatusRequest() {} + diff --git a/outboundbot/src/model/DescribeScriptRequest.cc b/outboundbot/src/model/DescribeScriptRequest.cc index 188b63934..555130d3f 100644 --- a/outboundbot/src/model/DescribeScriptRequest.cc +++ b/outboundbot/src/model/DescribeScriptRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeScriptRequest; - -DescribeScriptRequest::DescribeScriptRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeScript") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeScriptRequest::~DescribeScriptRequest() -{} - -std::string DescribeScriptRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeScriptRequest; + +DescribeScriptRequest::DescribeScriptRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeScript") { + setMethod(HttpRequest::Method::Post); } -void DescribeScriptRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +DescribeScriptRequest::~DescribeScriptRequest() {} + +std::string DescribeScriptRequest::getScriptId() const { + return scriptId_; } -std::string DescribeScriptRequest::getInstanceId()const -{ - return instanceId_; +void DescribeScriptRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void DescribeScriptRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeScriptRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeScriptRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DescribeScriptVoiceConfigRequest.cc b/outboundbot/src/model/DescribeScriptVoiceConfigRequest.cc index 7d840f426..cb48ba128 100644 --- a/outboundbot/src/model/DescribeScriptVoiceConfigRequest.cc +++ b/outboundbot/src/model/DescribeScriptVoiceConfigRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeScriptVoiceConfigRequest; - -DescribeScriptVoiceConfigRequest::DescribeScriptVoiceConfigRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeScriptVoiceConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeScriptVoiceConfigRequest::~DescribeScriptVoiceConfigRequest() -{} - -std::string DescribeScriptVoiceConfigRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeScriptVoiceConfigRequest; + +DescribeScriptVoiceConfigRequest::DescribeScriptVoiceConfigRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeScriptVoiceConfig") { + setMethod(HttpRequest::Method::Post); } -void DescribeScriptVoiceConfigRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +DescribeScriptVoiceConfigRequest::~DescribeScriptVoiceConfigRequest() {} + +std::string DescribeScriptVoiceConfigRequest::getScriptId() const { + return scriptId_; } -std::string DescribeScriptVoiceConfigRequest::getScriptVoiceConfigId()const -{ - return scriptVoiceConfigId_; +void DescribeScriptVoiceConfigRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void DescribeScriptVoiceConfigRequest::setScriptVoiceConfigId(const std::string& scriptVoiceConfigId) -{ - scriptVoiceConfigId_ = scriptVoiceConfigId; - setParameter("ScriptVoiceConfigId", scriptVoiceConfigId); +std::string DescribeScriptVoiceConfigRequest::getScriptVoiceConfigId() const { + return scriptVoiceConfigId_; } -std::string DescribeScriptVoiceConfigRequest::getInstanceId()const -{ - return instanceId_; +void DescribeScriptVoiceConfigRequest::setScriptVoiceConfigId(const std::string &scriptVoiceConfigId) { + scriptVoiceConfigId_ = scriptVoiceConfigId; + setParameter(std::string("ScriptVoiceConfigId"), scriptVoiceConfigId); } -void DescribeScriptVoiceConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeScriptVoiceConfigRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeScriptVoiceConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DescribeScriptVoiceConfigResult.cc b/outboundbot/src/model/DescribeScriptVoiceConfigResult.cc index c15603cb8..e554c4b9e 100644 --- a/outboundbot/src/model/DescribeScriptVoiceConfigResult.cc +++ b/outboundbot/src/model/DescribeScriptVoiceConfigResult.cc @@ -40,24 +40,24 @@ void DescribeScriptVoiceConfigResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto scriptVoiceConfigNode = value["ScriptVoiceConfig"]; - if(!scriptVoiceConfigNode["InstanceId"].isNull()) - scriptVoiceConfig_.instanceId = scriptVoiceConfigNode["InstanceId"].asString(); - if(!scriptVoiceConfigNode["ScriptContent"].isNull()) - scriptVoiceConfig_.scriptContent = scriptVoiceConfigNode["ScriptContent"].asString(); - if(!scriptVoiceConfigNode["ScriptId"].isNull()) - scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString(); + if(!scriptVoiceConfigNode["Type"].isNull()) + scriptVoiceConfig_.type = scriptVoiceConfigNode["Type"].asString(); if(!scriptVoiceConfigNode["ScriptVoiceConfigId"].isNull()) scriptVoiceConfig_.scriptVoiceConfigId = scriptVoiceConfigNode["ScriptVoiceConfigId"].asString(); + if(!scriptVoiceConfigNode["ScriptContent"].isNull()) + scriptVoiceConfig_.scriptContent = scriptVoiceConfigNode["ScriptContent"].asString(); + if(!scriptVoiceConfigNode["InstanceId"].isNull()) + scriptVoiceConfig_.instanceId = scriptVoiceConfigNode["InstanceId"].asString(); + if(!scriptVoiceConfigNode["ScriptId"].isNull()) + scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString(); if(!scriptVoiceConfigNode["ScriptWaveformRelation"].isNull()) scriptVoiceConfig_.scriptWaveformRelation = scriptVoiceConfigNode["ScriptWaveformRelation"].asString(); if(!scriptVoiceConfigNode["Source"].isNull()) scriptVoiceConfig_.source = scriptVoiceConfigNode["Source"].asString(); - if(!scriptVoiceConfigNode["Type"].isNull()) - scriptVoiceConfig_.type = scriptVoiceConfigNode["Type"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DescribeTTSConfigRequest.cc b/outboundbot/src/model/DescribeTTSConfigRequest.cc index 4d2be66f0..f819eea8f 100644 --- a/outboundbot/src/model/DescribeTTSConfigRequest.cc +++ b/outboundbot/src/model/DescribeTTSConfigRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeTTSConfigRequest; - -DescribeTTSConfigRequest::DescribeTTSConfigRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTTSConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTTSConfigRequest::~DescribeTTSConfigRequest() -{} - -std::string DescribeTTSConfigRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeTTSConfigRequest; + +DescribeTTSConfigRequest::DescribeTTSConfigRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTTSConfig") { + setMethod(HttpRequest::Method::Post); } -void DescribeTTSConfigRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +DescribeTTSConfigRequest::~DescribeTTSConfigRequest() {} + +std::string DescribeTTSConfigRequest::getScriptId() const { + return scriptId_; } -std::string DescribeTTSConfigRequest::getInstanceId()const -{ - return instanceId_; +void DescribeTTSConfigRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void DescribeTTSConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeTTSConfigRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeTTSConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/DescribeTTSDemoRequest.cc b/outboundbot/src/model/DescribeTTSDemoRequest.cc index 35fe63c2f..4832d593c 100644 --- a/outboundbot/src/model/DescribeTTSDemoRequest.cc +++ b/outboundbot/src/model/DescribeTTSDemoRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeTTSDemoRequest; - -DescribeTTSDemoRequest::DescribeTTSDemoRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTTSDemo") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTTSDemoRequest::~DescribeTTSDemoRequest() -{} - -std::string DescribeTTSDemoRequest::getVoice()const -{ - return voice_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeTTSDemoRequest; + +DescribeTTSDemoRequest::DescribeTTSDemoRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTTSDemo") { + setMethod(HttpRequest::Method::Post); } -void DescribeTTSDemoRequest::setVoice(const std::string& voice) -{ - voice_ = voice; - setParameter("Voice", voice); +DescribeTTSDemoRequest::~DescribeTTSDemoRequest() {} + +std::string DescribeTTSDemoRequest::getVoice() const { + return voice_; } -int DescribeTTSDemoRequest::getVolume()const -{ - return volume_; +void DescribeTTSDemoRequest::setVoice(const std::string &voice) { + voice_ = voice; + setParameter(std::string("Voice"), voice); } -void DescribeTTSDemoRequest::setVolume(int volume) -{ - volume_ = volume; - setParameter("Volume", std::to_string(volume)); +int DescribeTTSDemoRequest::getVolume() const { + return volume_; } -std::string DescribeTTSDemoRequest::getScriptId()const -{ - return scriptId_; +void DescribeTTSDemoRequest::setVolume(int volume) { + volume_ = volume; + setParameter(std::string("Volume"), std::to_string(volume)); } -void DescribeTTSDemoRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string DescribeTTSDemoRequest::getScriptId() const { + return scriptId_; } -std::string DescribeTTSDemoRequest::getInstanceId()const -{ - return instanceId_; +void DescribeTTSDemoRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void DescribeTTSDemoRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeTTSDemoRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeTTSDemoRequest::getText()const -{ - return text_; +void DescribeTTSDemoRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeTTSDemoRequest::setText(const std::string& text) -{ - text_ = text; - setParameter("Text", text); +std::string DescribeTTSDemoRequest::getText() const { + return text_; } -int DescribeTTSDemoRequest::getSpeechRate()const -{ - return speechRate_; +void DescribeTTSDemoRequest::setText(const std::string &text) { + text_ = text; + setParameter(std::string("Text"), text); } -void DescribeTTSDemoRequest::setSpeechRate(int speechRate) -{ - speechRate_ = speechRate; - setParameter("SpeechRate", std::to_string(speechRate)); +int DescribeTTSDemoRequest::getSpeechRate() const { + return speechRate_; +} + +void DescribeTTSDemoRequest::setSpeechRate(int speechRate) { + speechRate_ = speechRate; + setParameter(std::string("SpeechRate"), std::to_string(speechRate)); } diff --git a/outboundbot/src/model/DescribeTagHitsSummaryRequest.cc b/outboundbot/src/model/DescribeTagHitsSummaryRequest.cc index d17a1bd5e..9b4a3a666 100644 --- a/outboundbot/src/model/DescribeTagHitsSummaryRequest.cc +++ b/outboundbot/src/model/DescribeTagHitsSummaryRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeTagHitsSummaryRequest; - -DescribeTagHitsSummaryRequest::DescribeTagHitsSummaryRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTagHitsSummary") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTagHitsSummaryRequest::~DescribeTagHitsSummaryRequest() -{} - -std::string DescribeTagHitsSummaryRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeTagHitsSummaryRequest; + +DescribeTagHitsSummaryRequest::DescribeTagHitsSummaryRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTagHitsSummary") { + setMethod(HttpRequest::Method::Post); } -void DescribeTagHitsSummaryRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeTagHitsSummaryRequest::~DescribeTagHitsSummaryRequest() {} + +std::string DescribeTagHitsSummaryRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeTagHitsSummaryRequest::getJobGroupId()const -{ - return jobGroupId_; +void DescribeTagHitsSummaryRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeTagHitsSummaryRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string DescribeTagHitsSummaryRequest::getJobGroupId() const { + return jobGroupId_; +} + +void DescribeTagHitsSummaryRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } diff --git a/outboundbot/src/model/DescribeTagHitsSummaryResult.cc b/outboundbot/src/model/DescribeTagHitsSummaryResult.cc index 6bbce5c0e..e6b05dd4a 100644 --- a/outboundbot/src/model/DescribeTagHitsSummaryResult.cc +++ b/outboundbot/src/model/DescribeTagHitsSummaryResult.cc @@ -43,14 +43,14 @@ void DescribeTagHitsSummaryResult::parse(const std::string &payload) for (auto valueTagGroupsTagGroup : allTagGroupsNode) { TagGroup tagGroupsObject; - if(!valueTagGroupsTagGroup["Id"].isNull()) - tagGroupsObject.id = valueTagGroupsTagGroup["Id"].asString(); - if(!valueTagGroupsTagGroup["ScriptId"].isNull()) - tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString(); - if(!valueTagGroupsTagGroup["TagGroup"].isNull()) - tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString(); if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull()) tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString()); + if(!valueTagGroupsTagGroup["TagGroup"].isNull()) + tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString(); + if(!valueTagGroupsTagGroup["ScriptId"].isNull()) + tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString(); + if(!valueTagGroupsTagGroup["Id"].isNull()) + tagGroupsObject.id = valueTagGroupsTagGroup["Id"].asString(); tagGroups_.push_back(tagGroupsObject); } auto allTagHitsListNode = value["TagHitsList"]["TagHits"]; @@ -65,10 +65,10 @@ void DescribeTagHitsSummaryResult::parse(const std::string &payload) tagHitsListObject.tagName = valueTagHitsListTagHits["TagName"].asString(); tagHitsList_.push_back(tagHitsListObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DescribeTenantBindNumberRequest.cc b/outboundbot/src/model/DescribeTenantBindNumberRequest.cc index 8f0e87bbb..149a5a72b 100644 --- a/outboundbot/src/model/DescribeTenantBindNumberRequest.cc +++ b/outboundbot/src/model/DescribeTenantBindNumberRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DescribeTenantBindNumberRequest; - -DescribeTenantBindNumberRequest::DescribeTenantBindNumberRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTenantBindNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -DescribeTenantBindNumberRequest::~DescribeTenantBindNumberRequest() -{} - -std::string DescribeTenantBindNumberRequest::getNumber()const -{ - return number_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DescribeTenantBindNumberRequest; + +DescribeTenantBindNumberRequest::DescribeTenantBindNumberRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DescribeTenantBindNumber") { + setMethod(HttpRequest::Method::Post); } -void DescribeTenantBindNumberRequest::setNumber(const std::string& number) -{ - number_ = number; - setParameter("Number", number); +DescribeTenantBindNumberRequest::~DescribeTenantBindNumberRequest() {} + +std::string DescribeTenantBindNumberRequest::getNumber() const { + return number_; +} + +void DescribeTenantBindNumberRequest::setNumber(const std::string &number) { + number_ = number; + setParameter(std::string("Number"), number); } diff --git a/outboundbot/src/model/DialogueRequest.cc b/outboundbot/src/model/DialogueRequest.cc index bcbc0ab1c..f66b0c0e3 100644 --- a/outboundbot/src/model/DialogueRequest.cc +++ b/outboundbot/src/model/DialogueRequest.cc @@ -1,150 +1,126 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DialogueRequest; - -DialogueRequest::DialogueRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "Dialogue") -{ - setMethod(HttpRequest::Method::Post); -} - -DialogueRequest::~DialogueRequest() -{} - -std::string DialogueRequest::getCallId()const -{ - return callId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DialogueRequest; + +DialogueRequest::DialogueRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "Dialogue") { + setMethod(HttpRequest::Method::Post); } -void DialogueRequest::setCallId(const std::string& callId) -{ - callId_ = callId; - setParameter("CallId", callId); +DialogueRequest::~DialogueRequest() {} + +std::string DialogueRequest::getCallId() const { + return callId_; } -long DialogueRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void DialogueRequest::setCallId(const std::string &callId) { + callId_ = callId; + setParameter(std::string("CallId"), callId); } -void DialogueRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long DialogueRequest::getInstanceOwnerId() const { + return instanceOwnerId_; } -std::string DialogueRequest::getCalledNumber()const -{ - return calledNumber_; +void DialogueRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } -void DialogueRequest::setCalledNumber(const std::string& calledNumber) -{ - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); +std::string DialogueRequest::getCalledNumber() const { + return calledNumber_; } -std::string DialogueRequest::getCallType()const -{ - return callType_; +void DialogueRequest::setCalledNumber(const std::string &calledNumber) { + calledNumber_ = calledNumber; + setParameter(std::string("CalledNumber"), calledNumber); } -void DialogueRequest::setCallType(const std::string& callType) -{ - callType_ = callType; - setParameter("CallType", callType); +std::string DialogueRequest::getCallType() const { + return callType_; } -std::string DialogueRequest::getScenarioId()const -{ - return scenarioId_; +void DialogueRequest::setCallType(const std::string &callType) { + callType_ = callType; + setParameter(std::string("CallType"), callType); } -void DialogueRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); +std::string DialogueRequest::getScenarioId() const { + return scenarioId_; } -std::string DialogueRequest::getTaskId()const -{ - return taskId_; +void DialogueRequest::setScenarioId(const std::string &scenarioId) { + scenarioId_ = scenarioId; + setParameter(std::string("ScenarioId"), scenarioId); } -void DialogueRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string DialogueRequest::getTaskId() const { + return taskId_; } -std::string DialogueRequest::getUtterance()const -{ - return utterance_; +void DialogueRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void DialogueRequest::setUtterance(const std::string& utterance) -{ - utterance_ = utterance; - setParameter("Utterance", utterance); +std::string DialogueRequest::getUtterance() const { + return utterance_; } -std::string DialogueRequest::getActionParams()const -{ - return actionParams_; +void DialogueRequest::setUtterance(const std::string &utterance) { + utterance_ = utterance; + setParameter(std::string("Utterance"), utterance); } -void DialogueRequest::setActionParams(const std::string& actionParams) -{ - actionParams_ = actionParams; - setParameter("ActionParams", actionParams); +std::string DialogueRequest::getActionParams() const { + return actionParams_; } -std::string DialogueRequest::getCallingNumber()const -{ - return callingNumber_; +void DialogueRequest::setActionParams(const std::string &actionParams) { + actionParams_ = actionParams; + setParameter(std::string("ActionParams"), actionParams); } -void DialogueRequest::setCallingNumber(const std::string& callingNumber) -{ - callingNumber_ = callingNumber; - setParameter("CallingNumber", callingNumber); +std::string DialogueRequest::getCallingNumber() const { + return callingNumber_; } -std::string DialogueRequest::getInstanceId()const -{ - return instanceId_; +void DialogueRequest::setCallingNumber(const std::string &callingNumber) { + callingNumber_ = callingNumber; + setParameter(std::string("CallingNumber"), callingNumber); } -void DialogueRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DialogueRequest::getInstanceId() const { + return instanceId_; } -std::string DialogueRequest::getActionKey()const -{ - return actionKey_; +void DialogueRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DialogueRequest::setActionKey(const std::string& actionKey) -{ - actionKey_ = actionKey; - setParameter("ActionKey", actionKey); +std::string DialogueRequest::getActionKey() const { + return actionKey_; +} + +void DialogueRequest::setActionKey(const std::string &actionKey) { + actionKey_ = actionKey; + setParameter(std::string("ActionKey"), actionKey); } diff --git a/outboundbot/src/model/DialogueResult.cc b/outboundbot/src/model/DialogueResult.cc index 40742fae7..d74ed0147 100644 --- a/outboundbot/src/model/DialogueResult.cc +++ b/outboundbot/src/model/DialogueResult.cc @@ -48,10 +48,10 @@ void DialogueResult::parse(const std::string &payload) feedback_.content = feedbackNode["Content"].asString(); if(!feedbackNode["Interruptible"].isNull()) feedback_.interruptible = feedbackNode["Interruptible"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DismissNumberDistrictInfoParsingResultRequest.cc b/outboundbot/src/model/DismissNumberDistrictInfoParsingResultRequest.cc index e82e3e488..b197e5344 100644 --- a/outboundbot/src/model/DismissNumberDistrictInfoParsingResultRequest.cc +++ b/outboundbot/src/model/DismissNumberDistrictInfoParsingResultRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DismissNumberDistrictInfoParsingResultRequest; - -DismissNumberDistrictInfoParsingResultRequest::DismissNumberDistrictInfoParsingResultRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DismissNumberDistrictInfoParsingResult") -{ - setMethod(HttpRequest::Method::Post); -} - -DismissNumberDistrictInfoParsingResultRequest::~DismissNumberDistrictInfoParsingResultRequest() -{} - -std::string DismissNumberDistrictInfoParsingResultRequest::getVersionId()const -{ - return versionId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DismissNumberDistrictInfoParsingResultRequest; + +DismissNumberDistrictInfoParsingResultRequest::DismissNumberDistrictInfoParsingResultRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DismissNumberDistrictInfoParsingResult") { + setMethod(HttpRequest::Method::Post); } -void DismissNumberDistrictInfoParsingResultRequest::setVersionId(const std::string& versionId) -{ - versionId_ = versionId; - setParameter("VersionId", versionId); +DismissNumberDistrictInfoParsingResultRequest::~DismissNumberDistrictInfoParsingResultRequest() {} + +std::string DismissNumberDistrictInfoParsingResultRequest::getVersionId() const { + return versionId_; +} + +void DismissNumberDistrictInfoParsingResultRequest::setVersionId(const std::string &versionId) { + versionId_ = versionId; + setParameter(std::string("VersionId"), versionId); } diff --git a/outboundbot/src/model/DownloadRecordingRequest.cc b/outboundbot/src/model/DownloadRecordingRequest.cc index 4cb4af382..0a63c36d3 100644 --- a/outboundbot/src/model/DownloadRecordingRequest.cc +++ b/outboundbot/src/model/DownloadRecordingRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DownloadRecordingRequest; - -DownloadRecordingRequest::DownloadRecordingRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DownloadRecording") -{ - setMethod(HttpRequest::Method::Post); -} - -DownloadRecordingRequest::~DownloadRecordingRequest() -{} - -std::string DownloadRecordingRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DownloadRecordingRequest; + +DownloadRecordingRequest::DownloadRecordingRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DownloadRecording") { + setMethod(HttpRequest::Method::Post); } -void DownloadRecordingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DownloadRecordingRequest::~DownloadRecordingRequest() {} + +std::string DownloadRecordingRequest::getInstanceId() const { + return instanceId_; } -std::string DownloadRecordingRequest::getTaskId()const -{ - return taskId_; +void DownloadRecordingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DownloadRecordingRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string DownloadRecordingRequest::getTaskId() const { + return taskId_; +} + +void DownloadRecordingRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/outboundbot/src/model/DownloadRecordingResult.cc b/outboundbot/src/model/DownloadRecordingResult.cc index 64a3b83d9..cd9c73fbe 100644 --- a/outboundbot/src/model/DownloadRecordingResult.cc +++ b/outboundbot/src/model/DownloadRecordingResult.cc @@ -40,14 +40,14 @@ void DownloadRecordingResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto downloadParamsNode = value["DownloadParams"]; - if(!downloadParamsNode["FileName"].isNull()) - downloadParams_.fileName = downloadParamsNode["FileName"].asString(); if(!downloadParamsNode["SignatureUrl"].isNull()) downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); + if(!downloadParamsNode["FileName"].isNull()) + downloadParams_.fileName = downloadParamsNode["FileName"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/DuplicateScriptRequest.cc b/outboundbot/src/model/DuplicateScriptRequest.cc index 1948ccb4a..21db98de5 100644 --- a/outboundbot/src/model/DuplicateScriptRequest.cc +++ b/outboundbot/src/model/DuplicateScriptRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::DuplicateScriptRequest; - -DuplicateScriptRequest::DuplicateScriptRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "DuplicateScript") -{ - setMethod(HttpRequest::Method::Post); -} - -DuplicateScriptRequest::~DuplicateScriptRequest() -{} - -std::string DuplicateScriptRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::DuplicateScriptRequest; + +DuplicateScriptRequest::DuplicateScriptRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "DuplicateScript") { + setMethod(HttpRequest::Method::Post); } -void DuplicateScriptRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DuplicateScriptRequest::~DuplicateScriptRequest() {} + +std::string DuplicateScriptRequest::getInstanceId() const { + return instanceId_; } -std::string DuplicateScriptRequest::getSourceScriptId()const -{ - return sourceScriptId_; +void DuplicateScriptRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DuplicateScriptRequest::setSourceScriptId(const std::string& sourceScriptId) -{ - sourceScriptId_ = sourceScriptId; - setParameter("SourceScriptId", sourceScriptId); +std::string DuplicateScriptRequest::getSourceScriptId() const { + return sourceScriptId_; } -std::string DuplicateScriptRequest::getName()const -{ - return name_; +void DuplicateScriptRequest::setSourceScriptId(const std::string &sourceScriptId) { + sourceScriptId_ = sourceScriptId; + setParameter(std::string("SourceScriptId"), sourceScriptId); } -void DuplicateScriptRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string DuplicateScriptRequest::getName() const { + return name_; +} + +void DuplicateScriptRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } diff --git a/outboundbot/src/model/DuplicateScriptResult.cc b/outboundbot/src/model/DuplicateScriptResult.cc index 9515e8ff4..fe5c656e5 100644 --- a/outboundbot/src/model/DuplicateScriptResult.cc +++ b/outboundbot/src/model/DuplicateScriptResult.cc @@ -39,16 +39,16 @@ void DuplicateScriptResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].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["ScriptId"].isNull()) scriptId_ = value["ScriptId"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/ExportScriptRequest.cc b/outboundbot/src/model/ExportScriptRequest.cc index b865271cd..fc8e85c6a 100644 --- a/outboundbot/src/model/ExportScriptRequest.cc +++ b/outboundbot/src/model/ExportScriptRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ExportScriptRequest; - -ExportScriptRequest::ExportScriptRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ExportScript") -{ - setMethod(HttpRequest::Method::Post); -} - -ExportScriptRequest::~ExportScriptRequest() -{} - -std::string ExportScriptRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ExportScriptRequest; + +ExportScriptRequest::ExportScriptRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ExportScript") { + setMethod(HttpRequest::Method::Post); } -void ExportScriptRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +ExportScriptRequest::~ExportScriptRequest() {} + +std::string ExportScriptRequest::getScriptId() const { + return scriptId_; } -std::string ExportScriptRequest::getInstanceId()const -{ - return instanceId_; +void ExportScriptRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ExportScriptRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ExportScriptRequest::getInstanceId() const { + return instanceId_; +} + +void ExportScriptRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/ExportScriptResult.cc b/outboundbot/src/model/ExportScriptResult.cc index 807c3b0c3..2a60fe7d2 100644 --- a/outboundbot/src/model/ExportScriptResult.cc +++ b/outboundbot/src/model/ExportScriptResult.cc @@ -42,10 +42,10 @@ void ExportScriptResult::parse(const std::string &payload) auto downloadParamsNode = value["DownloadParams"]; if(!downloadParamsNode["SignatureUrl"].isNull()) downloadParams_.signatureUrl = downloadParamsNode["SignatureUrl"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/GenerateUploadUrlRequest.cc b/outboundbot/src/model/GenerateUploadUrlRequest.cc new file mode 100644 index 000000000..a5c8d14da --- /dev/null +++ b/outboundbot/src/model/GenerateUploadUrlRequest.cc @@ -0,0 +1,45 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GenerateUploadUrlRequest; + +GenerateUploadUrlRequest::GenerateUploadUrlRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GenerateUploadUrl") { + setMethod(HttpRequest::Method::Post); +} + +GenerateUploadUrlRequest::~GenerateUploadUrlRequest() {} + +std::string GenerateUploadUrlRequest::getFileName() const { + return fileName_; +} + +void GenerateUploadUrlRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("FileName"), fileName); +} + +std::string GenerateUploadUrlRequest::getKey() const { + return key_; +} + +void GenerateUploadUrlRequest::setKey(const std::string &key) { + key_ = key; + setParameter(std::string("Key"), key); +} + diff --git a/outboundbot/src/model/GenerateUploadUrlResult.cc b/outboundbot/src/model/GenerateUploadUrlResult.cc new file mode 100644 index 000000000..42023a96e --- /dev/null +++ b/outboundbot/src/model/GenerateUploadUrlResult.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; + +GenerateUploadUrlResult::GenerateUploadUrlResult() : + ServiceResult() +{} + +GenerateUploadUrlResult::GenerateUploadUrlResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +GenerateUploadUrlResult::~GenerateUploadUrlResult() +{} + +void GenerateUploadUrlResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["AccessId"].isNull()) + data_.accessId = dataNode["AccessId"].asString(); + if(!dataNode["Policy"].isNull()) + data_.policy = dataNode["Policy"].asString(); + if(!dataNode["Signature"].isNull()) + data_.signature = dataNode["Signature"].asString(); + if(!dataNode["Folder"].isNull()) + data_.folder = dataNode["Folder"].asString(); + if(!dataNode["Host"].isNull()) + data_.host = dataNode["Host"].asString(); + if(!dataNode["Expire"].isNull()) + data_.expire = std::stoi(dataNode["Expire"].asString()); + if(!dataNode["Success"].isNull()) + data_.success = dataNode["Success"].asString() == "true"; + if(!dataNode["Message"].isNull()) + data_.message = dataNode["Message"].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 GenerateUploadUrlResult::getMessage()const +{ + return message_; +} + +int GenerateUploadUrlResult::getHttpStatusCode()const +{ + return httpStatusCode_; +} + +GenerateUploadUrlResult::Data GenerateUploadUrlResult::getData()const +{ + return data_; +} + +std::string GenerateUploadUrlResult::getCode()const +{ + return code_; +} + +bool GenerateUploadUrlResult::getSuccess()const +{ + return success_; +} + diff --git a/outboundbot/src/model/GetAfterAnswerDelayPlaybackRequest.cc b/outboundbot/src/model/GetAfterAnswerDelayPlaybackRequest.cc index ed610557a..35291f4b6 100644 --- a/outboundbot/src/model/GetAfterAnswerDelayPlaybackRequest.cc +++ b/outboundbot/src/model/GetAfterAnswerDelayPlaybackRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::GetAfterAnswerDelayPlaybackRequest; - -GetAfterAnswerDelayPlaybackRequest::GetAfterAnswerDelayPlaybackRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetAfterAnswerDelayPlayback") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAfterAnswerDelayPlaybackRequest::~GetAfterAnswerDelayPlaybackRequest() -{} - -int GetAfterAnswerDelayPlaybackRequest::getStrategyLevel()const -{ - return strategyLevel_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetAfterAnswerDelayPlaybackRequest; + +GetAfterAnswerDelayPlaybackRequest::GetAfterAnswerDelayPlaybackRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetAfterAnswerDelayPlayback") { + setMethod(HttpRequest::Method::Post); } -void GetAfterAnswerDelayPlaybackRequest::setStrategyLevel(int strategyLevel) -{ - strategyLevel_ = strategyLevel; - setParameter("StrategyLevel", std::to_string(strategyLevel)); +GetAfterAnswerDelayPlaybackRequest::~GetAfterAnswerDelayPlaybackRequest() {} + +int GetAfterAnswerDelayPlaybackRequest::getStrategyLevel() const { + return strategyLevel_; } -std::string GetAfterAnswerDelayPlaybackRequest::getEntryId()const -{ - return entryId_; +void GetAfterAnswerDelayPlaybackRequest::setStrategyLevel(int strategyLevel) { + strategyLevel_ = strategyLevel; + setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel)); } -void GetAfterAnswerDelayPlaybackRequest::setEntryId(const std::string& entryId) -{ - entryId_ = entryId; - setParameter("EntryId", entryId); +std::string GetAfterAnswerDelayPlaybackRequest::getEntryId() const { + return entryId_; +} + +void GetAfterAnswerDelayPlaybackRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); } diff --git a/outboundbot/src/model/GetAfterAnswerDelayPlaybackResult.cc b/outboundbot/src/model/GetAfterAnswerDelayPlaybackResult.cc index b0592b759..d4c4d94f8 100644 --- a/outboundbot/src/model/GetAfterAnswerDelayPlaybackResult.cc +++ b/outboundbot/src/model/GetAfterAnswerDelayPlaybackResult.cc @@ -39,14 +39,14 @@ void GetAfterAnswerDelayPlaybackResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].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()); diff --git a/outboundbot/src/model/GetAsrServerInfoRequest.cc b/outboundbot/src/model/GetAsrServerInfoRequest.cc index b49e8ec30..e53c9e56b 100644 --- a/outboundbot/src/model/GetAsrServerInfoRequest.cc +++ b/outboundbot/src/model/GetAsrServerInfoRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::GetAsrServerInfoRequest; - -GetAsrServerInfoRequest::GetAsrServerInfoRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetAsrServerInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -GetAsrServerInfoRequest::~GetAsrServerInfoRequest() -{} - -int GetAsrServerInfoRequest::getStrategyLevel()const -{ - return strategyLevel_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetAsrServerInfoRequest; + +GetAsrServerInfoRequest::GetAsrServerInfoRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetAsrServerInfo") { + setMethod(HttpRequest::Method::Post); } -void GetAsrServerInfoRequest::setStrategyLevel(int strategyLevel) -{ - strategyLevel_ = strategyLevel; - setParameter("StrategyLevel", std::to_string(strategyLevel)); +GetAsrServerInfoRequest::~GetAsrServerInfoRequest() {} + +int GetAsrServerInfoRequest::getStrategyLevel() const { + return strategyLevel_; } -std::string GetAsrServerInfoRequest::getEntryId()const -{ - return entryId_; +void GetAsrServerInfoRequest::setStrategyLevel(int strategyLevel) { + strategyLevel_ = strategyLevel; + setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel)); } -void GetAsrServerInfoRequest::setEntryId(const std::string& entryId) -{ - entryId_ = entryId; - setParameter("EntryId", entryId); +std::string GetAsrServerInfoRequest::getEntryId() const { + return entryId_; +} + +void GetAsrServerInfoRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); } diff --git a/outboundbot/src/model/GetAsrServerInfoResult.cc b/outboundbot/src/model/GetAsrServerInfoResult.cc index 486b54823..87f092e78 100644 --- a/outboundbot/src/model/GetAsrServerInfoResult.cc +++ b/outboundbot/src/model/GetAsrServerInfoResult.cc @@ -39,14 +39,14 @@ void GetAsrServerInfoResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/GetBaseStrategyPeriodRequest.cc b/outboundbot/src/model/GetBaseStrategyPeriodRequest.cc index f153c65a9..f10f0763e 100644 --- a/outboundbot/src/model/GetBaseStrategyPeriodRequest.cc +++ b/outboundbot/src/model/GetBaseStrategyPeriodRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::GetBaseStrategyPeriodRequest; - -GetBaseStrategyPeriodRequest::GetBaseStrategyPeriodRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetBaseStrategyPeriod") -{ - setMethod(HttpRequest::Method::Post); -} - -GetBaseStrategyPeriodRequest::~GetBaseStrategyPeriodRequest() -{} - -int GetBaseStrategyPeriodRequest::getStrategyLevel()const -{ - return strategyLevel_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetBaseStrategyPeriodRequest; + +GetBaseStrategyPeriodRequest::GetBaseStrategyPeriodRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetBaseStrategyPeriod") { + setMethod(HttpRequest::Method::Post); } -void GetBaseStrategyPeriodRequest::setStrategyLevel(int strategyLevel) -{ - strategyLevel_ = strategyLevel; - setParameter("StrategyLevel", std::to_string(strategyLevel)); +GetBaseStrategyPeriodRequest::~GetBaseStrategyPeriodRequest() {} + +int GetBaseStrategyPeriodRequest::getStrategyLevel() const { + return strategyLevel_; } -std::string GetBaseStrategyPeriodRequest::getEntryId()const -{ - return entryId_; +void GetBaseStrategyPeriodRequest::setStrategyLevel(int strategyLevel) { + strategyLevel_ = strategyLevel; + setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel)); } -void GetBaseStrategyPeriodRequest::setEntryId(const std::string& entryId) -{ - entryId_ = entryId; - setParameter("EntryId", entryId); +std::string GetBaseStrategyPeriodRequest::getEntryId() const { + return entryId_; +} + +void GetBaseStrategyPeriodRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); } diff --git a/outboundbot/src/model/GetBaseStrategyPeriodResult.cc b/outboundbot/src/model/GetBaseStrategyPeriodResult.cc index 4df9bbdc0..cfd60458a 100644 --- a/outboundbot/src/model/GetBaseStrategyPeriodResult.cc +++ b/outboundbot/src/model/GetBaseStrategyPeriodResult.cc @@ -43,26 +43,26 @@ void GetBaseStrategyPeriodResult::parse(const std::string &payload) 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(); + if(!valueWorkingTimeTimeFrame["BeginTimeMillis"].isNull()) + workingTimeObject.beginTimeMillis = std::stol(valueWorkingTimeTimeFrame["BeginTimeMillis"].asString()); + if(!valueWorkingTimeTimeFrame["EndTimeMillis"].isNull()) + workingTimeObject.endTimeMillis = std::stol(valueWorkingTimeTimeFrame["EndTimeMillis"].asString()); + if(!valueWorkingTimeTimeFrame["BeginTime"].isNull()) + workingTimeObject.beginTime = valueWorkingTimeTimeFrame["BeginTime"].asString(); workingTime_.push_back(workingTimeObject); } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["OnlyWeekdays"].isNull()) + onlyWeekdays_ = value["OnlyWeekdays"].asString() == "true"; 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"; } diff --git a/outboundbot/src/model/GetConcurrentConversationQuotaRequest.cc b/outboundbot/src/model/GetConcurrentConversationQuotaRequest.cc index 3eda70e01..2cc54054f 100644 --- a/outboundbot/src/model/GetConcurrentConversationQuotaRequest.cc +++ b/outboundbot/src/model/GetConcurrentConversationQuotaRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::GetConcurrentConversationQuotaRequest; - -GetConcurrentConversationQuotaRequest::GetConcurrentConversationQuotaRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetConcurrentConversationQuota") -{ - setMethod(HttpRequest::Method::Post); -} - -GetConcurrentConversationQuotaRequest::~GetConcurrentConversationQuotaRequest() -{} - + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetConcurrentConversationQuotaRequest; + +GetConcurrentConversationQuotaRequest::GetConcurrentConversationQuotaRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetConcurrentConversationQuota") { + setMethod(HttpRequest::Method::Post); +} + +GetConcurrentConversationQuotaRequest::~GetConcurrentConversationQuotaRequest() {} + diff --git a/outboundbot/src/model/GetConcurrentConversationQuotaResult.cc b/outboundbot/src/model/GetConcurrentConversationQuotaResult.cc index b67a32ed7..ef7307556 100644 --- a/outboundbot/src/model/GetConcurrentConversationQuotaResult.cc +++ b/outboundbot/src/model/GetConcurrentConversationQuotaResult.cc @@ -39,18 +39,18 @@ void GetConcurrentConversationQuotaResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["MaxConcurrent"].isNull()) - maxConcurrent_ = std::stoi(value["MaxConcurrent"].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["RemainingConcurrent"].isNull()) remainingConcurrent_ = std::stoi(value["RemainingConcurrent"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["MaxConcurrent"].isNull()) + maxConcurrent_ = std::stoi(value["MaxConcurrent"].asString()); } diff --git a/outboundbot/src/model/GetContactBlockListRequest.cc b/outboundbot/src/model/GetContactBlockListRequest.cc index ee04cf64d..8fa0a8e97 100644 --- a/outboundbot/src/model/GetContactBlockListRequest.cc +++ b/outboundbot/src/model/GetContactBlockListRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::GetContactBlockListRequest; - -GetContactBlockListRequest::GetContactBlockListRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetContactBlockList") -{ - setMethod(HttpRequest::Method::Post); -} - -GetContactBlockListRequest::~GetContactBlockListRequest() -{} - -bool GetContactBlockListRequest::getCountTotalRow()const -{ - return countTotalRow_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetContactBlockListRequest; + +GetContactBlockListRequest::GetContactBlockListRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetContactBlockList") { + setMethod(HttpRequest::Method::Post); } -void GetContactBlockListRequest::setCountTotalRow(bool countTotalRow) -{ - countTotalRow_ = countTotalRow; - setParameter("CountTotalRow", countTotalRow ? "true" : "false"); +GetContactBlockListRequest::~GetContactBlockListRequest() {} + +bool GetContactBlockListRequest::getCountTotalRow() const { + return countTotalRow_; } -int GetContactBlockListRequest::getPageNumber()const -{ - return pageNumber_; +void GetContactBlockListRequest::setCountTotalRow(bool countTotalRow) { + countTotalRow_ = countTotalRow; + setParameter(std::string("CountTotalRow"), countTotalRow ? "true" : "false"); } -void GetContactBlockListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int GetContactBlockListRequest::getPageNumber() const { + return pageNumber_; } -std::string GetContactBlockListRequest::getInstanceId()const -{ - return instanceId_; +void GetContactBlockListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void GetContactBlockListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string GetContactBlockListRequest::getInstanceId() const { + return instanceId_; } -int GetContactBlockListRequest::getPageSize()const -{ - return pageSize_; +void GetContactBlockListRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void GetContactBlockListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int GetContactBlockListRequest::getPageSize() const { + return pageSize_; +} + +void GetContactBlockListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/GetContactBlockListResult.cc b/outboundbot/src/model/GetContactBlockListResult.cc index 1a67b0dab..35e04c9b8 100644 --- a/outboundbot/src/model/GetContactBlockListResult.cc +++ b/outboundbot/src/model/GetContactBlockListResult.cc @@ -52,30 +52,30 @@ void GetContactBlockListResult::parse(const std::string &payload) 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["Remark"].isNull()) + contactBlockListObject.remark = contactBlocklistListNodeListContactBlockList["Remark"].asString(); if(!contactBlocklistListNodeListContactBlockList["PhoneNumber"].isNull()) contactBlockListObject.phoneNumber = contactBlocklistListNodeListContactBlockList["PhoneNumber"].asString(); + if(!contactBlocklistListNodeListContactBlockList["Operator"].isNull()) + contactBlockListObject._operator = contactBlocklistListNodeListContactBlockList["Operator"].asString(); + if(!contactBlocklistListNodeListContactBlockList["InstanceId"].isNull()) + contactBlockListObject.instanceId = contactBlocklistListNodeListContactBlockList["InstanceId"].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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/GetContactWhiteListRequest.cc b/outboundbot/src/model/GetContactWhiteListRequest.cc index 61dbec94b..68d195461 100644 --- a/outboundbot/src/model/GetContactWhiteListRequest.cc +++ b/outboundbot/src/model/GetContactWhiteListRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::GetContactWhiteListRequest; - -GetContactWhiteListRequest::GetContactWhiteListRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetContactWhiteList") -{ - setMethod(HttpRequest::Method::Post); -} - -GetContactWhiteListRequest::~GetContactWhiteListRequest() -{} - -bool GetContactWhiteListRequest::getCountTotalRow()const -{ - return countTotalRow_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetContactWhiteListRequest; + +GetContactWhiteListRequest::GetContactWhiteListRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetContactWhiteList") { + setMethod(HttpRequest::Method::Post); } -void GetContactWhiteListRequest::setCountTotalRow(bool countTotalRow) -{ - countTotalRow_ = countTotalRow; - setParameter("CountTotalRow", countTotalRow ? "true" : "false"); +GetContactWhiteListRequest::~GetContactWhiteListRequest() {} + +bool GetContactWhiteListRequest::getCountTotalRow() const { + return countTotalRow_; } -int GetContactWhiteListRequest::getPageNumber()const -{ - return pageNumber_; +void GetContactWhiteListRequest::setCountTotalRow(bool countTotalRow) { + countTotalRow_ = countTotalRow; + setParameter(std::string("CountTotalRow"), countTotalRow ? "true" : "false"); } -void GetContactWhiteListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int GetContactWhiteListRequest::getPageNumber() const { + return pageNumber_; } -std::string GetContactWhiteListRequest::getInstanceId()const -{ - return instanceId_; +void GetContactWhiteListRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void GetContactWhiteListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string GetContactWhiteListRequest::getInstanceId() const { + return instanceId_; } -int GetContactWhiteListRequest::getPageSize()const -{ - return pageSize_; +void GetContactWhiteListRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void GetContactWhiteListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int GetContactWhiteListRequest::getPageSize() const { + return pageSize_; +} + +void GetContactWhiteListRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/GetContactWhiteListResult.cc b/outboundbot/src/model/GetContactWhiteListResult.cc index 1663455d4..4d174c834 100644 --- a/outboundbot/src/model/GetContactWhiteListResult.cc +++ b/outboundbot/src/model/GetContactWhiteListResult.cc @@ -50,32 +50,32 @@ void GetContactWhiteListResult::parse(const std::string &payload) for (auto contactWhitelistListNodeListContactWhitelistList : allListNode) { ContactWhitelistList::ContactWhitelistList1 contactWhitelistList1Object; + if(!contactWhitelistListNodeListContactWhitelistList["CreationTime"].isNull()) + contactWhitelistList1Object.creationTime = std::stol(contactWhitelistListNodeListContactWhitelistList["CreationTime"].asString()); + if(!contactWhitelistListNodeListContactWhitelistList["Remark"].isNull()) + contactWhitelistList1Object.remark = contactWhitelistListNodeListContactWhitelistList["Remark"].asString(); + if(!contactWhitelistListNodeListContactWhitelistList["PhoneNumber"].isNull()) + contactWhitelistList1Object.phoneNumber = contactWhitelistListNodeListContactWhitelistList["PhoneNumber"].asString(); + if(!contactWhitelistListNodeListContactWhitelistList["Operator"].isNull()) + contactWhitelistList1Object._operator = contactWhitelistListNodeListContactWhitelistList["Operator"].asString(); 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["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/GetCurrentConcurrencyRequest.cc b/outboundbot/src/model/GetCurrentConcurrencyRequest.cc index 97341f132..38b069d2f 100644 --- a/outboundbot/src/model/GetCurrentConcurrencyRequest.cc +++ b/outboundbot/src/model/GetCurrentConcurrencyRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::GetCurrentConcurrencyRequest; - -GetCurrentConcurrencyRequest::GetCurrentConcurrencyRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetCurrentConcurrency") -{ - setMethod(HttpRequest::Method::Post); -} - -GetCurrentConcurrencyRequest::~GetCurrentConcurrencyRequest() -{} - -std::string GetCurrentConcurrencyRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetCurrentConcurrencyRequest; + +GetCurrentConcurrencyRequest::GetCurrentConcurrencyRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetCurrentConcurrency") { + setMethod(HttpRequest::Method::Post); } -void GetCurrentConcurrencyRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +GetCurrentConcurrencyRequest::~GetCurrentConcurrencyRequest() {} + +std::string GetCurrentConcurrencyRequest::getInstanceId() const { + return instanceId_; +} + +void GetCurrentConcurrencyRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/GetCurrentConcurrencyResult.cc b/outboundbot/src/model/GetCurrentConcurrencyResult.cc index 5d84badb5..4f2cca1c7 100644 --- a/outboundbot/src/model/GetCurrentConcurrencyResult.cc +++ b/outboundbot/src/model/GetCurrentConcurrencyResult.cc @@ -39,18 +39,18 @@ void GetCurrentConcurrencyResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["CurrentConcurrency"].isNull()) + currentConcurrency_ = std::stoi(value["CurrentConcurrency"].asString()); 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["MaxConcurrentConversation"].isNull()) maxConcurrentConversation_ = std::stoi(value["MaxConcurrentConversation"].asString()); - if(!value["CurrentConcurrency"].isNull()) - currentConcurrency_ = std::stoi(value["CurrentConcurrency"].asString()); if(!value["InstanceId"].isNull()) instanceId_ = value["InstanceId"].asString(); diff --git a/outboundbot/src/model/GetEffectiveDaysRequest.cc b/outboundbot/src/model/GetEffectiveDaysRequest.cc index 6d6b9d2c3..29a4155d7 100644 --- a/outboundbot/src/model/GetEffectiveDaysRequest.cc +++ b/outboundbot/src/model/GetEffectiveDaysRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::GetEffectiveDaysRequest; - -GetEffectiveDaysRequest::GetEffectiveDaysRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetEffectiveDays") -{ - setMethod(HttpRequest::Method::Post); -} - -GetEffectiveDaysRequest::~GetEffectiveDaysRequest() -{} - -int GetEffectiveDaysRequest::getStrategyLevel()const -{ - return strategyLevel_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetEffectiveDaysRequest; + +GetEffectiveDaysRequest::GetEffectiveDaysRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetEffectiveDays") { + setMethod(HttpRequest::Method::Post); } -void GetEffectiveDaysRequest::setStrategyLevel(int strategyLevel) -{ - strategyLevel_ = strategyLevel; - setParameter("StrategyLevel", std::to_string(strategyLevel)); +GetEffectiveDaysRequest::~GetEffectiveDaysRequest() {} + +int GetEffectiveDaysRequest::getStrategyLevel() const { + return strategyLevel_; } -std::string GetEffectiveDaysRequest::getEntryId()const -{ - return entryId_; +void GetEffectiveDaysRequest::setStrategyLevel(int strategyLevel) { + strategyLevel_ = strategyLevel; + setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel)); } -void GetEffectiveDaysRequest::setEntryId(const std::string& entryId) -{ - entryId_ = entryId; - setParameter("EntryId", entryId); +std::string GetEffectiveDaysRequest::getEntryId() const { + return entryId_; +} + +void GetEffectiveDaysRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); } diff --git a/outboundbot/src/model/GetEffectiveDaysResult.cc b/outboundbot/src/model/GetEffectiveDaysResult.cc index 58625b08a..dc1855ef5 100644 --- a/outboundbot/src/model/GetEffectiveDaysResult.cc +++ b/outboundbot/src/model/GetEffectiveDaysResult.cc @@ -39,29 +39,29 @@ void GetEffectiveDaysResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["EffectiveDays"].isNull()) + effectiveDays_ = std::stoi(value["EffectiveDays"].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_; } +std::string GetEffectiveDaysResult::getMessage()const +{ + return message_; +} + int GetEffectiveDaysResult::getHttpStatusCode()const { return httpStatusCode_; diff --git a/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoRequest.cc b/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoRequest.cc index df0bb15ef..456496978 100644 --- a/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoRequest.cc +++ b/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::GetEmptyNumberNoMoreCallsInfoRequest; - -GetEmptyNumberNoMoreCallsInfoRequest::GetEmptyNumberNoMoreCallsInfoRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetEmptyNumberNoMoreCallsInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -GetEmptyNumberNoMoreCallsInfoRequest::~GetEmptyNumberNoMoreCallsInfoRequest() -{} - -int GetEmptyNumberNoMoreCallsInfoRequest::getStrategyLevel()const -{ - return strategyLevel_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetEmptyNumberNoMoreCallsInfoRequest; + +GetEmptyNumberNoMoreCallsInfoRequest::GetEmptyNumberNoMoreCallsInfoRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetEmptyNumberNoMoreCallsInfo") { + setMethod(HttpRequest::Method::Post); } -void GetEmptyNumberNoMoreCallsInfoRequest::setStrategyLevel(int strategyLevel) -{ - strategyLevel_ = strategyLevel; - setParameter("StrategyLevel", std::to_string(strategyLevel)); +GetEmptyNumberNoMoreCallsInfoRequest::~GetEmptyNumberNoMoreCallsInfoRequest() {} + +int GetEmptyNumberNoMoreCallsInfoRequest::getStrategyLevel() const { + return strategyLevel_; } -std::string GetEmptyNumberNoMoreCallsInfoRequest::getEntryId()const -{ - return entryId_; +void GetEmptyNumberNoMoreCallsInfoRequest::setStrategyLevel(int strategyLevel) { + strategyLevel_ = strategyLevel; + setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel)); } -void GetEmptyNumberNoMoreCallsInfoRequest::setEntryId(const std::string& entryId) -{ - entryId_ = entryId; - setParameter("EntryId", entryId); +std::string GetEmptyNumberNoMoreCallsInfoRequest::getEntryId() const { + return entryId_; +} + +void GetEmptyNumberNoMoreCallsInfoRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); } diff --git a/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoResult.cc b/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoResult.cc index 5e26949e4..f2ebd48a0 100644 --- a/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoResult.cc +++ b/outboundbot/src/model/GetEmptyNumberNoMoreCallsInfoResult.cc @@ -39,16 +39,16 @@ void GetEmptyNumberNoMoreCallsInfoResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["EmptyNumberNoMoreCalls"].isNull()) + emptyNumberNoMoreCalls_ = value["EmptyNumberNoMoreCalls"].asString() == "true"; 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"; } diff --git a/outboundbot/src/model/GetInstanceConfigRequest.cc b/outboundbot/src/model/GetInstanceConfigRequest.cc index b7e303e09..7db2da0a9 100644 --- a/outboundbot/src/model/GetInstanceConfigRequest.cc +++ b/outboundbot/src/model/GetInstanceConfigRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::GetInstanceConfigRequest; - -GetInstanceConfigRequest::GetInstanceConfigRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetInstanceConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -GetInstanceConfigRequest::~GetInstanceConfigRequest() -{} - -std::string GetInstanceConfigRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetInstanceConfigRequest; + +GetInstanceConfigRequest::GetInstanceConfigRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetInstanceConfig") { + setMethod(HttpRequest::Method::Post); } -void GetInstanceConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +GetInstanceConfigRequest::~GetInstanceConfigRequest() {} + +std::string GetInstanceConfigRequest::getInstanceId() const { + return instanceId_; +} + +void GetInstanceConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/GetInstanceConfigResult.cc b/outboundbot/src/model/GetInstanceConfigResult.cc index 7fd757c9c..bf5124efd 100644 --- a/outboundbot/src/model/GetInstanceConfigResult.cc +++ b/outboundbot/src/model/GetInstanceConfigResult.cc @@ -47,6 +47,8 @@ void GetInstanceConfigResult::parse(const std::string &payload) data_.instanceConfig.newBargeInSystemSwitch = instanceConfigNode["NewBargeInSystemSwitch"].asString() == "true"; if(!instanceConfigNode["SearchTaskFunctionSwitch"].isNull()) data_.instanceConfig.searchTaskFunctionSwitch = instanceConfigNode["SearchTaskFunctionSwitch"].asString() == "true"; + if(!instanceConfigNode["EsAllDataKeepDay"].isNull()) + data_.instanceConfig.esAllDataKeepDay = std::stol(instanceConfigNode["EsAllDataKeepDay"].asString()); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Code"].isNull()) diff --git a/outboundbot/src/model/GetMaxAttemptsPerDayRequest.cc b/outboundbot/src/model/GetMaxAttemptsPerDayRequest.cc index 64db361f8..d1bd4b73a 100644 --- a/outboundbot/src/model/GetMaxAttemptsPerDayRequest.cc +++ b/outboundbot/src/model/GetMaxAttemptsPerDayRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::GetMaxAttemptsPerDayRequest; - -GetMaxAttemptsPerDayRequest::GetMaxAttemptsPerDayRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetMaxAttemptsPerDay") -{ - setMethod(HttpRequest::Method::Post); -} - -GetMaxAttemptsPerDayRequest::~GetMaxAttemptsPerDayRequest() -{} - -int GetMaxAttemptsPerDayRequest::getStrategyLevel()const -{ - return strategyLevel_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetMaxAttemptsPerDayRequest; + +GetMaxAttemptsPerDayRequest::GetMaxAttemptsPerDayRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetMaxAttemptsPerDay") { + setMethod(HttpRequest::Method::Post); } -void GetMaxAttemptsPerDayRequest::setStrategyLevel(int strategyLevel) -{ - strategyLevel_ = strategyLevel; - setParameter("StrategyLevel", std::to_string(strategyLevel)); +GetMaxAttemptsPerDayRequest::~GetMaxAttemptsPerDayRequest() {} + +int GetMaxAttemptsPerDayRequest::getStrategyLevel() const { + return strategyLevel_; } -std::string GetMaxAttemptsPerDayRequest::getEntryId()const -{ - return entryId_; +void GetMaxAttemptsPerDayRequest::setStrategyLevel(int strategyLevel) { + strategyLevel_ = strategyLevel; + setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel)); } -void GetMaxAttemptsPerDayRequest::setEntryId(const std::string& entryId) -{ - entryId_ = entryId; - setParameter("EntryId", entryId); +std::string GetMaxAttemptsPerDayRequest::getEntryId() const { + return entryId_; +} + +void GetMaxAttemptsPerDayRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); } diff --git a/outboundbot/src/model/GetMaxAttemptsPerDayResult.cc b/outboundbot/src/model/GetMaxAttemptsPerDayResult.cc index 37dbe8502..d534d8410 100644 --- a/outboundbot/src/model/GetMaxAttemptsPerDayResult.cc +++ b/outboundbot/src/model/GetMaxAttemptsPerDayResult.cc @@ -39,16 +39,16 @@ void GetMaxAttemptsPerDayResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["MaxAttemptsPerDay"].isNull()) + maxAttemptsPerDay_ = std::stoi(value["MaxAttemptsPerDay"].asString()); 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()); } diff --git a/outboundbot/src/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.cc b/outboundbot/src/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.cc index d57fc4308..4004060e1 100644 --- a/outboundbot/src/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.cc +++ b/outboundbot/src/model/GetNumberDistrictInfoTemplateDownloadUrlRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::GetNumberDistrictInfoTemplateDownloadUrlRequest; - -GetNumberDistrictInfoTemplateDownloadUrlRequest::GetNumberDistrictInfoTemplateDownloadUrlRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetNumberDistrictInfoTemplateDownloadUrl") -{ - setMethod(HttpRequest::Method::Post); -} - -GetNumberDistrictInfoTemplateDownloadUrlRequest::~GetNumberDistrictInfoTemplateDownloadUrlRequest() -{} - + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetNumberDistrictInfoTemplateDownloadUrlRequest; + +GetNumberDistrictInfoTemplateDownloadUrlRequest::GetNumberDistrictInfoTemplateDownloadUrlRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetNumberDistrictInfoTemplateDownloadUrl") { + setMethod(HttpRequest::Method::Post); +} + +GetNumberDistrictInfoTemplateDownloadUrlRequest::~GetNumberDistrictInfoTemplateDownloadUrlRequest() {} + diff --git a/outboundbot/src/model/GetSummaryInfoRequest.cc b/outboundbot/src/model/GetSummaryInfoRequest.cc index c70acaa40..5397af66a 100644 --- a/outboundbot/src/model/GetSummaryInfoRequest.cc +++ b/outboundbot/src/model/GetSummaryInfoRequest.cc @@ -1,42 +1,35 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetSummaryInfoRequest; + +GetSummaryInfoRequest::GetSummaryInfoRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetSummaryInfo") { + setMethod(HttpRequest::Method::Post); } -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)); - } +GetSummaryInfoRequest::~GetSummaryInfoRequest() {} + +std::vector GetSummaryInfoRequest::getInstanceIdList() const { + return instanceIdList_; +} + +void GetSummaryInfoRequest::setInstanceIdList(const std::vector &instanceIdList) { + instanceIdList_ = instanceIdList; } diff --git a/outboundbot/src/model/GetSummaryInfoResult.cc b/outboundbot/src/model/GetSummaryInfoResult.cc index 6edd929f9..48e051b7e 100644 --- a/outboundbot/src/model/GetSummaryInfoResult.cc +++ b/outboundbot/src/model/GetSummaryInfoResult.cc @@ -43,24 +43,24 @@ void GetSummaryInfoResult::parse(const std::string &payload) 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(); + if(!valueAgentBotInstanceSummaryListAgentBotInstanceSummary["TotalCallTime"].isNull()) + agentBotInstanceSummaryListObject.totalCallTime = std::stol(valueAgentBotInstanceSummaryListAgentBotInstanceSummary["TotalCallTime"].asString()); + if(!valueAgentBotInstanceSummaryListAgentBotInstanceSummary["UsedRecordingStorageSpace"].isNull()) + agentBotInstanceSummaryListObject.usedRecordingStorageSpace = std::stoi(valueAgentBotInstanceSummaryListAgentBotInstanceSummary["UsedRecordingStorageSpace"].asString()); agentBotInstanceSummaryList_.push_back(agentBotInstanceSummaryListObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/GetTaskByUuidRequest.cc b/outboundbot/src/model/GetTaskByUuidRequest.cc index af8f13ac9..3935ab602 100644 --- a/outboundbot/src/model/GetTaskByUuidRequest.cc +++ b/outboundbot/src/model/GetTaskByUuidRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::GetTaskByUuidRequest; - -GetTaskByUuidRequest::GetTaskByUuidRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "GetTaskByUuid") -{ - setMethod(HttpRequest::Method::Get); -} - -GetTaskByUuidRequest::~GetTaskByUuidRequest() -{} - -bool GetTaskByUuidRequest::getWithConversations()const -{ - return withConversations_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::GetTaskByUuidRequest; + +GetTaskByUuidRequest::GetTaskByUuidRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "GetTaskByUuid") { + setMethod(HttpRequest::Method::Get); } -void GetTaskByUuidRequest::setWithConversations(bool withConversations) -{ - withConversations_ = withConversations; - setParameter("WithConversations", withConversations ? "true" : "false"); +GetTaskByUuidRequest::~GetTaskByUuidRequest() {} + +bool GetTaskByUuidRequest::getWithConversations() const { + return withConversations_; } -std::string GetTaskByUuidRequest::getInstanceId()const -{ - return instanceId_; +void GetTaskByUuidRequest::setWithConversations(bool withConversations) { + withConversations_ = withConversations; + setParameter(std::string("WithConversations"), withConversations ? "true" : "false"); } -void GetTaskByUuidRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string GetTaskByUuidRequest::getInstanceId() const { + return instanceId_; } -std::string GetTaskByUuidRequest::getTaskId()const -{ - return taskId_; +void GetTaskByUuidRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void GetTaskByUuidRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string GetTaskByUuidRequest::getTaskId() const { + return taskId_; +} + +void GetTaskByUuidRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/outboundbot/src/model/GetTaskByUuidResult.cc b/outboundbot/src/model/GetTaskByUuidResult.cc index 09e0f0d9f..6f0379277 100644 --- a/outboundbot/src/model/GetTaskByUuidResult.cc +++ b/outboundbot/src/model/GetTaskByUuidResult.cc @@ -40,28 +40,28 @@ void GetTaskByUuidResult::parse(const std::string &payload) 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(); + if(!taskNode["EndTime"].isNull()) + task_.endTime = std::stol(taskNode["EndTime"].asString()); + if(!taskNode["EndReason"].isNull()) + task_.endReason = std::stoi(taskNode["EndReason"].asString()); + if(!taskNode["PlannedTime"].isNull()) + task_.plannedTime = std::stol(taskNode["PlannedTime"].asString()); + if(!taskNode["JobId"].isNull()) + task_.jobId = taskNode["JobId"].asString(); + if(!taskNode["CallId"].isNull()) + task_.callId = taskNode["CallId"].asString(); + if(!taskNode["CallingNumber"].isNull()) + task_.callingNumber = taskNode["CallingNumber"].asString(); + if(!taskNode["ActualTime"].isNull()) + task_.actualTime = std::stol(taskNode["ActualTime"].asString()); + if(!taskNode["InstanceId"].isNull()) + task_.instanceId = taskNode["InstanceId"].asString(); + if(!taskNode["CalledNumber"].isNull()) + task_.calledNumber = taskNode["CalledNumber"].asString(); + if(!taskNode["Id"].isNull()) + task_.id = taskNode["Id"].asString(); } diff --git a/outboundbot/src/model/GetVersionRequest.cc b/outboundbot/src/model/GetVersionRequest.cc index f628b583a..299f375c0 100644 --- a/outboundbot/src/model/GetVersionRequest.cc +++ b/outboundbot/src/model/GetVersionRequest.cc @@ -1,29 +1,27 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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() -{} - + */ + +#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 index a080946d6..f6761f383 100644 --- a/outboundbot/src/model/GetVersionResult.cc +++ b/outboundbot/src/model/GetVersionResult.cc @@ -39,16 +39,16 @@ void GetVersionResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["Version"].isNull()) + version_ = value["Version"].asString(); 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(); } diff --git a/outboundbot/src/model/ImportScriptRequest.cc b/outboundbot/src/model/ImportScriptRequest.cc index 88bd83c2b..feccc58f4 100644 --- a/outboundbot/src/model/ImportScriptRequest.cc +++ b/outboundbot/src/model/ImportScriptRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ImportScriptRequest; - -ImportScriptRequest::ImportScriptRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ImportScript") -{ - setMethod(HttpRequest::Method::Post); -} - -ImportScriptRequest::~ImportScriptRequest() -{} - -std::string ImportScriptRequest::getSignatureUrl()const -{ - return signatureUrl_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ImportScriptRequest; + +ImportScriptRequest::ImportScriptRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ImportScript") { + setMethod(HttpRequest::Method::Post); } -void ImportScriptRequest::setSignatureUrl(const std::string& signatureUrl) -{ - signatureUrl_ = signatureUrl; - setParameter("SignatureUrl", signatureUrl); +ImportScriptRequest::~ImportScriptRequest() {} + +std::string ImportScriptRequest::getSignatureUrl() const { + return signatureUrl_; } -std::string ImportScriptRequest::getInstanceId()const -{ - return instanceId_; +void ImportScriptRequest::setSignatureUrl(const std::string &signatureUrl) { + signatureUrl_ = signatureUrl; + setParameter(std::string("SignatureUrl"), signatureUrl); } -void ImportScriptRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ImportScriptRequest::getInstanceId() const { + return instanceId_; +} + +void ImportScriptRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/ImportScriptResult.cc b/outboundbot/src/model/ImportScriptResult.cc index baefecf18..f248efafe 100644 --- a/outboundbot/src/model/ImportScriptResult.cc +++ b/outboundbot/src/model/ImportScriptResult.cc @@ -39,16 +39,16 @@ void ImportScriptResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].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["ScriptId"].isNull()) scriptId_ = value["ScriptId"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/InflightTaskTimeoutRequest.cc b/outboundbot/src/model/InflightTaskTimeoutRequest.cc index 1e9c2203a..02dec046e 100644 --- a/outboundbot/src/model/InflightTaskTimeoutRequest.cc +++ b/outboundbot/src/model/InflightTaskTimeoutRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::InflightTaskTimeoutRequest; - -InflightTaskTimeoutRequest::InflightTaskTimeoutRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "InflightTaskTimeout") -{ - setMethod(HttpRequest::Method::Post); -} - -InflightTaskTimeoutRequest::~InflightTaskTimeoutRequest() -{} - -std::string InflightTaskTimeoutRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::InflightTaskTimeoutRequest; + +InflightTaskTimeoutRequest::InflightTaskTimeoutRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "InflightTaskTimeout") { + setMethod(HttpRequest::Method::Post); } -void InflightTaskTimeoutRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +InflightTaskTimeoutRequest::~InflightTaskTimeoutRequest() {} + +std::string InflightTaskTimeoutRequest::getInstanceId() const { + return instanceId_; } -long InflightTaskTimeoutRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void InflightTaskTimeoutRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void InflightTaskTimeoutRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long InflightTaskTimeoutRequest::getInstanceOwnerId() const { + return instanceOwnerId_; } -std::string InflightTaskTimeoutRequest::getTaskId()const -{ - return taskId_; +void InflightTaskTimeoutRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } -void InflightTaskTimeoutRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string InflightTaskTimeoutRequest::getTaskId() const { + return taskId_; +} + +void InflightTaskTimeoutRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/outboundbot/src/model/InflightTaskTimeoutResult.cc b/outboundbot/src/model/InflightTaskTimeoutResult.cc index 6f578d8ad..b310ed134 100644 --- a/outboundbot/src/model/InflightTaskTimeoutResult.cc +++ b/outboundbot/src/model/InflightTaskTimeoutResult.cc @@ -39,14 +39,14 @@ void InflightTaskTimeoutResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/ListAllTenantBindNumberBindingRequest.cc b/outboundbot/src/model/ListAllTenantBindNumberBindingRequest.cc index 0beec83f4..0ebffa682 100644 --- a/outboundbot/src/model/ListAllTenantBindNumberBindingRequest.cc +++ b/outboundbot/src/model/ListAllTenantBindNumberBindingRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListAllTenantBindNumberBindingRequest; - -ListAllTenantBindNumberBindingRequest::ListAllTenantBindNumberBindingRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListAllTenantBindNumberBinding") -{ - setMethod(HttpRequest::Method::Post); -} - -ListAllTenantBindNumberBindingRequest::~ListAllTenantBindNumberBindingRequest() -{} - -std::string ListAllTenantBindNumberBindingRequest::getTenant()const -{ - return tenant_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListAllTenantBindNumberBindingRequest; + +ListAllTenantBindNumberBindingRequest::ListAllTenantBindNumberBindingRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListAllTenantBindNumberBinding") { + setMethod(HttpRequest::Method::Post); } -void ListAllTenantBindNumberBindingRequest::setTenant(const std::string& tenant) -{ - tenant_ = tenant; - setParameter("Tenant", tenant); +ListAllTenantBindNumberBindingRequest::~ListAllTenantBindNumberBindingRequest() {} + +std::string ListAllTenantBindNumberBindingRequest::getTenant() const { + return tenant_; +} + +void ListAllTenantBindNumberBindingRequest::setTenant(const std::string &tenant) { + tenant_ = tenant; + setParameter(std::string("Tenant"), tenant); } diff --git a/outboundbot/src/model/ListChatbotInstancesRequest.cc b/outboundbot/src/model/ListChatbotInstancesRequest.cc index 8647437d5..ba23697b8 100644 --- a/outboundbot/src/model/ListChatbotInstancesRequest.cc +++ b/outboundbot/src/model/ListChatbotInstancesRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListChatbotInstancesRequest; - -ListChatbotInstancesRequest::ListChatbotInstancesRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListChatbotInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -ListChatbotInstancesRequest::~ListChatbotInstancesRequest() -{} - -int ListChatbotInstancesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListChatbotInstancesRequest; + +ListChatbotInstancesRequest::ListChatbotInstancesRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListChatbotInstances") { + setMethod(HttpRequest::Method::Post); } -void ListChatbotInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListChatbotInstancesRequest::~ListChatbotInstancesRequest() {} + +int ListChatbotInstancesRequest::getPageNumber() const { + return pageNumber_; } -int ListChatbotInstancesRequest::getPageSize()const -{ - return pageSize_; +void ListChatbotInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListChatbotInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListChatbotInstancesRequest::getPageSize() const { + return pageSize_; +} + +void ListChatbotInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/ListDialogueFlowsRequest.cc b/outboundbot/src/model/ListDialogueFlowsRequest.cc index 9d19c5782..ae6bcebd9 100644 --- a/outboundbot/src/model/ListDialogueFlowsRequest.cc +++ b/outboundbot/src/model/ListDialogueFlowsRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListDialogueFlowsRequest; - -ListDialogueFlowsRequest::ListDialogueFlowsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListDialogueFlows") -{ - setMethod(HttpRequest::Method::Post); -} - -ListDialogueFlowsRequest::~ListDialogueFlowsRequest() -{} - -std::string ListDialogueFlowsRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListDialogueFlowsRequest; + +ListDialogueFlowsRequest::ListDialogueFlowsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListDialogueFlows") { + setMethod(HttpRequest::Method::Post); } -void ListDialogueFlowsRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +ListDialogueFlowsRequest::~ListDialogueFlowsRequest() {} + +std::string ListDialogueFlowsRequest::getScriptId() const { + return scriptId_; } -std::string ListDialogueFlowsRequest::getInstanceId()const -{ - return instanceId_; +void ListDialogueFlowsRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ListDialogueFlowsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListDialogueFlowsRequest::getInstanceId() const { + return instanceId_; +} + +void ListDialogueFlowsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/ListDialogueFlowsResult.cc b/outboundbot/src/model/ListDialogueFlowsResult.cc index 6110b3ea1..aa92aeb34 100644 --- a/outboundbot/src/model/ListDialogueFlowsResult.cc +++ b/outboundbot/src/model/ListDialogueFlowsResult.cc @@ -45,22 +45,22 @@ void ListDialogueFlowsResult::parse(const std::string &payload) DialogueFlow dialogueFlowsObject; if(!valueDialogueFlowsDialogueFlow["DialogueFlowDefinition"].isNull()) dialogueFlowsObject.dialogueFlowDefinition = valueDialogueFlowsDialogueFlow["DialogueFlowDefinition"].asString(); + if(!valueDialogueFlowsDialogueFlow["DialogueFlowType"].isNull()) + dialogueFlowsObject.dialogueFlowType = valueDialogueFlowsDialogueFlow["DialogueFlowType"].asString(); if(!valueDialogueFlowsDialogueFlow["DialogueFlowId"].isNull()) dialogueFlowsObject.dialogueFlowId = valueDialogueFlowsDialogueFlow["DialogueFlowId"].asString(); if(!valueDialogueFlowsDialogueFlow["DialogueFlowName"].isNull()) dialogueFlowsObject.dialogueFlowName = valueDialogueFlowsDialogueFlow["DialogueFlowName"].asString(); - if(!valueDialogueFlowsDialogueFlow["DialogueFlowType"].isNull()) - dialogueFlowsObject.dialogueFlowType = valueDialogueFlowsDialogueFlow["DialogueFlowType"].asString(); if(!valueDialogueFlowsDialogueFlow["ScriptId"].isNull()) dialogueFlowsObject.scriptId = valueDialogueFlowsDialogueFlow["ScriptId"].asString(); if(!valueDialogueFlowsDialogueFlow["ScriptVersion"].isNull()) dialogueFlowsObject.scriptVersion = valueDialogueFlowsDialogueFlow["ScriptVersion"].asString(); dialogueFlows_.push_back(dialogueFlowsObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ListDownloadTasksRequest.cc b/outboundbot/src/model/ListDownloadTasksRequest.cc index 37116cd29..116ec6482 100644 --- a/outboundbot/src/model/ListDownloadTasksRequest.cc +++ b/outboundbot/src/model/ListDownloadTasksRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListDownloadTasksRequest; - -ListDownloadTasksRequest::ListDownloadTasksRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListDownloadTasks") -{ - setMethod(HttpRequest::Method::Get); -} - -ListDownloadTasksRequest::~ListDownloadTasksRequest() -{} - -int ListDownloadTasksRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListDownloadTasksRequest; + +ListDownloadTasksRequest::ListDownloadTasksRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListDownloadTasks") { + setMethod(HttpRequest::Method::Get); } -void ListDownloadTasksRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListDownloadTasksRequest::~ListDownloadTasksRequest() {} + +int ListDownloadTasksRequest::getPageNumber() const { + return pageNumber_; } -int ListDownloadTasksRequest::getPageSize()const -{ - return pageSize_; +void ListDownloadTasksRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListDownloadTasksRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListDownloadTasksRequest::getPageSize() const { + return pageSize_; +} + +void ListDownloadTasksRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/ListGlobalQuestionsRequest.cc b/outboundbot/src/model/ListGlobalQuestionsRequest.cc index ab7bb7f9f..dd3323eae 100644 --- a/outboundbot/src/model/ListGlobalQuestionsRequest.cc +++ b/outboundbot/src/model/ListGlobalQuestionsRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListGlobalQuestionsRequest; - -ListGlobalQuestionsRequest::ListGlobalQuestionsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListGlobalQuestions") -{ - setMethod(HttpRequest::Method::Post); -} - -ListGlobalQuestionsRequest::~ListGlobalQuestionsRequest() -{} - -int ListGlobalQuestionsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListGlobalQuestionsRequest; + +ListGlobalQuestionsRequest::ListGlobalQuestionsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListGlobalQuestions") { + setMethod(HttpRequest::Method::Post); } -void ListGlobalQuestionsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListGlobalQuestionsRequest::~ListGlobalQuestionsRequest() {} + +int ListGlobalQuestionsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListGlobalQuestionsRequest::getScriptId()const -{ - return scriptId_; +void ListGlobalQuestionsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListGlobalQuestionsRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ListGlobalQuestionsRequest::getScriptId() const { + return scriptId_; } -std::string ListGlobalQuestionsRequest::getInstanceId()const -{ - return instanceId_; +void ListGlobalQuestionsRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ListGlobalQuestionsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListGlobalQuestionsRequest::getInstanceId() const { + return instanceId_; } -int ListGlobalQuestionsRequest::getPageSize()const -{ - return pageSize_; +void ListGlobalQuestionsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ListGlobalQuestionsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListGlobalQuestionsRequest::getPageSize() const { + return pageSize_; +} + +void ListGlobalQuestionsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/ListGlobalQuestionsResult.cc b/outboundbot/src/model/ListGlobalQuestionsResult.cc index abe1f0281..c272c4acd 100644 --- a/outboundbot/src/model/ListGlobalQuestionsResult.cc +++ b/outboundbot/src/model/ListGlobalQuestionsResult.cc @@ -50,24 +50,24 @@ void ListGlobalQuestionsResult::parse(const std::string &payload) for (auto globalQuestionsNodeListGlobalQuestion : allListNode) { GlobalQuestions::GlobalQuestion globalQuestionObject; - if(!globalQuestionsNodeListGlobalQuestion["Answers"].isNull()) - globalQuestionObject.answers = globalQuestionsNodeListGlobalQuestion["Answers"].asString(); if(!globalQuestionsNodeListGlobalQuestion["GlobalQuestionId"].isNull()) globalQuestionObject.globalQuestionId = globalQuestionsNodeListGlobalQuestion["GlobalQuestionId"].asString(); - if(!globalQuestionsNodeListGlobalQuestion["GlobalQuestionName"].isNull()) - globalQuestionObject.globalQuestionName = globalQuestionsNodeListGlobalQuestion["GlobalQuestionName"].asString(); + if(!globalQuestionsNodeListGlobalQuestion["Answers"].isNull()) + globalQuestionObject.answers = globalQuestionsNodeListGlobalQuestion["Answers"].asString(); if(!globalQuestionsNodeListGlobalQuestion["GlobalQuestionType"].isNull()) globalQuestionObject.globalQuestionType = globalQuestionsNodeListGlobalQuestion["GlobalQuestionType"].asString(); + if(!globalQuestionsNodeListGlobalQuestion["GlobalQuestionName"].isNull()) + globalQuestionObject.globalQuestionName = globalQuestionsNodeListGlobalQuestion["GlobalQuestionName"].asString(); if(!globalQuestionsNodeListGlobalQuestion["Questions"].isNull()) globalQuestionObject.questions = globalQuestionsNodeListGlobalQuestion["Questions"].asString(); if(!globalQuestionsNodeListGlobalQuestion["ScriptId"].isNull()) globalQuestionObject.scriptId = globalQuestionsNodeListGlobalQuestion["ScriptId"].asString(); globalQuestions_.list.push_back(globalQuestionObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ListInstancesRequest.cc b/outboundbot/src/model/ListInstancesRequest.cc index 05daf73d7..60f9425bb 100644 --- a/outboundbot/src/model/ListInstancesRequest.cc +++ b/outboundbot/src/model/ListInstancesRequest.cc @@ -1,56 +1,50 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::ListInstancesRequest; - -ListInstancesRequest::ListInstancesRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -ListInstancesRequest::~ListInstancesRequest() -{} - -std::string ListInstancesRequest::getResourceGroupId()const -{ - return resourceGroupId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListInstancesRequest; + +ListInstancesRequest::ListInstancesRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListInstances") { + setMethod(HttpRequest::Method::Post); } -void ListInstancesRequest::setResourceGroupId(const std::string& resourceGroupId) -{ - resourceGroupId_ = resourceGroupId; - setParameter("ResourceGroupId", resourceGroupId); +ListInstancesRequest::~ListInstancesRequest() {} + +std::string ListInstancesRequest::getResourceGroupId() const { + return resourceGroupId_; } -std::vector ListInstancesRequest::getTag()const -{ - return tag_; +void ListInstancesRequest::setResourceGroupId(const std::string &resourceGroupId) { + resourceGroupId_ = resourceGroupId; + setParameter(std::string("ResourceGroupId"), resourceGroupId); } -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); - } +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 = std::string("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 10516cf6c..4416af9d3 100644 --- a/outboundbot/src/model/ListInstancesResult.cc +++ b/outboundbot/src/model/ListInstancesResult.cc @@ -43,32 +43,32 @@ void ListInstancesResult::parse(const std::string &payload) for (auto valueInstancesInstance : allInstancesNode) { Instance instancesObject; - if(!valueInstancesInstance["CallCenterInstanceId"].isNull()) - instancesObject.callCenterInstanceId = valueInstancesInstance["CallCenterInstanceId"].asString(); if(!valueInstancesInstance["CreationTime"].isNull()) instancesObject.creationTime = std::stol(valueInstancesInstance["CreationTime"].asString()); - if(!valueInstancesInstance["InstanceDescription"].isNull()) - instancesObject.instanceDescription = valueInstancesInstance["InstanceDescription"].asString(); - if(!valueInstancesInstance["InstanceId"].isNull()) - instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); - if(!valueInstancesInstance["InstanceName"].isNull()) - instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString(); + if(!valueInstancesInstance["CallCenterInstanceId"].isNull()) + instancesObject.callCenterInstanceId = valueInstancesInstance["CallCenterInstanceId"].asString(); + if(!valueInstancesInstance["Owner"].isNull()) + instancesObject.owner = valueInstancesInstance["Owner"].asString(); + if(!valueInstancesInstance["NluServiceType"].isNull()) + instancesObject.nluServiceType = valueInstancesInstance["NluServiceType"].asString(); if(!valueInstancesInstance["IsTemplateContainer"].isNull()) instancesObject.isTemplateContainer = valueInstancesInstance["IsTemplateContainer"].asString() == "true"; - if(!valueInstancesInstance["MaxConcurrentConversation"].isNull()) - instancesObject.maxConcurrentConversation = std::stoi(valueInstancesInstance["MaxConcurrentConversation"].asString()); + if(!valueInstancesInstance["InstanceId"].isNull()) + instancesObject.instanceId = valueInstancesInstance["InstanceId"].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["InstanceDescription"].isNull()) + instancesObject.instanceDescription = valueInstancesInstance["InstanceDescription"].asString(); + if(!valueInstancesInstance["InstanceName"].isNull()) + instancesObject.instanceName = valueInstancesInstance["InstanceName"].asString(); if(!valueInstancesInstance["ResourceGroupId"].isNull()) instancesObject.resourceGroupId = valueInstancesInstance["ResourceGroupId"].asString(); + if(!valueInstancesInstance["CreatorName"].isNull()) + instancesObject.creatorName = valueInstancesInstance["CreatorName"].asString(); + if(!valueInstancesInstance["MaxConcurrentConversation"].isNull()) + instancesObject.maxConcurrentConversation = std::stoi(valueInstancesInstance["MaxConcurrentConversation"].asString()); auto allResourceTagsNode = valueInstancesInstance["ResourceTags"]["ResourceTag"]; for (auto valueInstancesInstanceResourceTagsResourceTag : allResourceTagsNode) { @@ -82,16 +82,16 @@ void ListInstancesResult::parse(const std::string &payload) auto nluProfileNode = value["NluProfile"]; 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(); + if(!nluProfileNode["Endpoint"].isNull()) + instancesObject.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); instances_.push_back(instancesObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ListIntentsRequest.cc b/outboundbot/src/model/ListIntentsRequest.cc index edad085fd..801d61923 100644 --- a/outboundbot/src/model/ListIntentsRequest.cc +++ b/outboundbot/src/model/ListIntentsRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListIntentsRequest; - -ListIntentsRequest::ListIntentsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListIntents") -{ - setMethod(HttpRequest::Method::Post); -} - -ListIntentsRequest::~ListIntentsRequest() -{} - -int ListIntentsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListIntentsRequest; + +ListIntentsRequest::ListIntentsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListIntents") { + setMethod(HttpRequest::Method::Post); } -void ListIntentsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListIntentsRequest::~ListIntentsRequest() {} + +int ListIntentsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListIntentsRequest::getScriptId()const -{ - return scriptId_; +void ListIntentsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListIntentsRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ListIntentsRequest::getScriptId() const { + return scriptId_; } -std::string ListIntentsRequest::getInstanceId()const -{ - return instanceId_; +void ListIntentsRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ListIntentsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListIntentsRequest::getInstanceId() const { + return instanceId_; } -int ListIntentsRequest::getPageSize()const -{ - return pageSize_; +void ListIntentsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ListIntentsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListIntentsRequest::getPageSize() const { + return pageSize_; } -std::string ListIntentsRequest::getKeyword()const -{ - return keyword_; +void ListIntentsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void ListIntentsRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setParameter("Keyword", keyword); +std::string ListIntentsRequest::getKeyword() const { + return keyword_; +} + +void ListIntentsRequest::setKeyword(const std::string &keyword) { + keyword_ = keyword; + setParameter(std::string("Keyword"), keyword); } diff --git a/outboundbot/src/model/ListIntentsResult.cc b/outboundbot/src/model/ListIntentsResult.cc index 00959b6dc..63ea3abef 100644 --- a/outboundbot/src/model/ListIntentsResult.cc +++ b/outboundbot/src/model/ListIntentsResult.cc @@ -50,28 +50,28 @@ void ListIntentsResult::parse(const std::string &payload) for (auto intentsNodeListIntent : allListNode) { Intents::Intent intentObject; - if(!intentsNodeListIntent["CreateTime"].isNull()) - intentObject.createTime = std::stol(intentsNodeListIntent["CreateTime"].asString()); + if(!intentsNodeListIntent["Utterances"].isNull()) + intentObject.utterances = intentsNodeListIntent["Utterances"].asString(); if(!intentsNodeListIntent["IntentDescription"].isNull()) intentObject.intentDescription = intentsNodeListIntent["IntentDescription"].asString(); - if(!intentsNodeListIntent["IntentId"].isNull()) - intentObject.intentId = intentsNodeListIntent["IntentId"].asString(); - if(!intentsNodeListIntent["IntentName"].isNull()) - intentObject.intentName = intentsNodeListIntent["IntentName"].asString(); + if(!intentsNodeListIntent["UpdateTime"].isNull()) + intentObject.updateTime = std::stol(intentsNodeListIntent["UpdateTime"].asString()); + if(!intentsNodeListIntent["CreateTime"].isNull()) + intentObject.createTime = std::stol(intentsNodeListIntent["CreateTime"].asString()); if(!intentsNodeListIntent["Keywords"].isNull()) intentObject.keywords = intentsNodeListIntent["Keywords"].asString(); if(!intentsNodeListIntent["ScriptId"].isNull()) intentObject.scriptId = intentsNodeListIntent["ScriptId"].asString(); - if(!intentsNodeListIntent["UpdateTime"].isNull()) - intentObject.updateTime = std::stol(intentsNodeListIntent["UpdateTime"].asString()); - if(!intentsNodeListIntent["Utterances"].isNull()) - intentObject.utterances = intentsNodeListIntent["Utterances"].asString(); + if(!intentsNodeListIntent["IntentId"].isNull()) + intentObject.intentId = intentsNodeListIntent["IntentId"].asString(); + if(!intentsNodeListIntent["IntentName"].isNull()) + intentObject.intentName = intentsNodeListIntent["IntentName"].asString(); intents_.list.push_back(intentObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ListJobGroupsAsyncRequest.cc b/outboundbot/src/model/ListJobGroupsAsyncRequest.cc index 171ee62a8..f566b9495 100644 --- a/outboundbot/src/model/ListJobGroupsAsyncRequest.cc +++ b/outboundbot/src/model/ListJobGroupsAsyncRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListJobGroupsAsyncRequest; - -ListJobGroupsAsyncRequest::ListJobGroupsAsyncRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListJobGroupsAsync") -{ - setMethod(HttpRequest::Method::Get); -} - -ListJobGroupsAsyncRequest::~ListJobGroupsAsyncRequest() -{} - -std::string ListJobGroupsAsyncRequest::getAsyncTaskId()const -{ - return asyncTaskId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListJobGroupsAsyncRequest; + +ListJobGroupsAsyncRequest::ListJobGroupsAsyncRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListJobGroupsAsync") { + setMethod(HttpRequest::Method::Get); } -void ListJobGroupsAsyncRequest::setAsyncTaskId(const std::string& asyncTaskId) -{ - asyncTaskId_ = asyncTaskId; - setParameter("AsyncTaskId", asyncTaskId); +ListJobGroupsAsyncRequest::~ListJobGroupsAsyncRequest() {} + +std::string ListJobGroupsAsyncRequest::getAsyncTaskId() const { + return asyncTaskId_; +} + +void ListJobGroupsAsyncRequest::setAsyncTaskId(const std::string &asyncTaskId) { + asyncTaskId_ = asyncTaskId; + setParameter(std::string("AsyncTaskId"), asyncTaskId); } diff --git a/outboundbot/src/model/ListJobGroupsAsyncResult.cc b/outboundbot/src/model/ListJobGroupsAsyncResult.cc index 2507c331c..d97c62f77 100644 --- a/outboundbot/src/model/ListJobGroupsAsyncResult.cc +++ b/outboundbot/src/model/ListJobGroupsAsyncResult.cc @@ -43,83 +43,83 @@ void ListJobGroupsAsyncResult::parse(const std::string &payload) for (auto valueJobGroupsJobGroup : allJobGroupsNode) { JobGroup jobGroupsObject; + if(!valueJobGroupsJobGroup["Status"].isNull()) + jobGroupsObject.status = valueJobGroupsJobGroup["Status"].asString(); + if(!valueJobGroupsJobGroup["CreationTime"].isNull()) + jobGroupsObject.creationTime = std::stol(valueJobGroupsJobGroup["CreationTime"].asString()); 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(); if(!valueJobGroupsJobGroup["TotalCallNum"].isNull()) jobGroupsObject.totalCallNum = std::stoi(valueJobGroupsJobGroup["TotalCallNum"].asString()); + if(!valueJobGroupsJobGroup["ScriptId"].isNull()) + jobGroupsObject.scriptId = valueJobGroupsJobGroup["ScriptId"].asString(); + if(!valueJobGroupsJobGroup["JobGroupDescription"].isNull()) + jobGroupsObject.jobGroupDescription = valueJobGroupsJobGroup["JobGroupDescription"].asString(); + if(!valueJobGroupsJobGroup["JobDataParsingTaskId"].isNull()) + jobGroupsObject.jobDataParsingTaskId = valueJobGroupsJobGroup["JobDataParsingTaskId"].asString(); + if(!valueJobGroupsJobGroup["ScriptName"].isNull()) + jobGroupsObject.scriptName = valueJobGroupsJobGroup["ScriptName"].asString(); + if(!valueJobGroupsJobGroup["ScriptVersion"].isNull()) + jobGroupsObject.scriptVersion = valueJobGroupsJobGroup["ScriptVersion"].asString(); + if(!valueJobGroupsJobGroup["ModifyTime"].isNull()) + jobGroupsObject.modifyTime = valueJobGroupsJobGroup["ModifyTime"].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()); + if(!strategyNode["StartTime"].isNull()) + jobGroupsObject.strategy.startTime = std::stol(strategyNode["StartTime"].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["Status"].isNull()) + jobGroupsObject.progress.status = progressNode["Status"].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()); + if(!progressNode["CancelledNum"].isNull()) + jobGroupsObject.progress.cancelledNum = std::stoi(progressNode["CancelledNum"].asString()); + if(!progressNode["TotalCompleted"].isNull()) + jobGroupsObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString()); + if(!progressNode["TotalJobs"].isNull()) + jobGroupsObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString()); + if(!progressNode["Duration"].isNull()) + jobGroupsObject.progress.duration = std::stoi(progressNode["Duration"].asString()); + if(!progressNode["Scheduling"].isNull()) + jobGroupsObject.progress.scheduling = std::stoi(progressNode["Scheduling"].asString()); + if(!progressNode["ExecutingNum"].isNull()) + jobGroupsObject.progress.executingNum = std::stoi(progressNode["ExecutingNum"].asString()); auto exportProgressNode = value["ExportProgress"]; + if(!exportProgressNode["Status"].isNull()) + jobGroupsObject.exportProgress.status = exportProgressNode["Status"].asString(); 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["Timeout"].isNull()) + timeout_ = value["Timeout"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["Vaild"].isNull()) + vaild_ = value["Vaild"].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"; + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); } diff --git a/outboundbot/src/model/ListJobGroupsRequest.cc b/outboundbot/src/model/ListJobGroupsRequest.cc index 6d4bd1e89..097620060 100644 --- a/outboundbot/src/model/ListJobGroupsRequest.cc +++ b/outboundbot/src/model/ListJobGroupsRequest.cc @@ -1,117 +1,99 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListJobGroupsRequest; - -ListJobGroupsRequest::ListJobGroupsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListJobGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -ListJobGroupsRequest::~ListJobGroupsRequest() -{} - -bool ListJobGroupsRequest::getAsyncQuery()const -{ - return asyncQuery_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListJobGroupsRequest; + +ListJobGroupsRequest::ListJobGroupsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListJobGroups") { + setMethod(HttpRequest::Method::Post); } -void ListJobGroupsRequest::setAsyncQuery(bool asyncQuery) -{ - asyncQuery_ = asyncQuery; - setParameter("AsyncQuery", asyncQuery ? "true" : "false"); +ListJobGroupsRequest::~ListJobGroupsRequest() {} + +bool ListJobGroupsRequest::getAsyncQuery() const { + return asyncQuery_; } -std::string ListJobGroupsRequest::getSearchText()const -{ - return searchText_; +void ListJobGroupsRequest::setAsyncQuery(bool asyncQuery) { + asyncQuery_ = asyncQuery; + setParameter(std::string("AsyncQuery"), asyncQuery ? "true" : "false"); } -void ListJobGroupsRequest::setSearchText(const std::string& searchText) -{ - searchText_ = searchText; - setParameter("SearchText", searchText); +std::string ListJobGroupsRequest::getSearchText() const { + return searchText_; } -long ListJobGroupsRequest::getEndTime()const -{ - return endTime_; +void ListJobGroupsRequest::setSearchText(const std::string &searchText) { + searchText_ = searchText; + setParameter(std::string("SearchText"), searchText); } -void ListJobGroupsRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long ListJobGroupsRequest::getEndTime() const { + return endTime_; } -long ListJobGroupsRequest::getStartTime()const -{ - return startTime_; +void ListJobGroupsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void ListJobGroupsRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +long ListJobGroupsRequest::getStartTime() const { + return startTime_; } -int ListJobGroupsRequest::getPageNumber()const -{ - return pageNumber_; +void ListJobGroupsRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); } -void ListJobGroupsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListJobGroupsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListJobGroupsRequest::getInstanceId()const -{ - return instanceId_; +void ListJobGroupsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListJobGroupsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListJobGroupsRequest::getInstanceId() const { + return instanceId_; } -std::string ListJobGroupsRequest::getJobGroupStatusFilter()const -{ - return jobGroupStatusFilter_; +void ListJobGroupsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ListJobGroupsRequest::setJobGroupStatusFilter(const std::string& jobGroupStatusFilter) -{ - jobGroupStatusFilter_ = jobGroupStatusFilter; - setParameter("JobGroupStatusFilter", jobGroupStatusFilter); +std::string ListJobGroupsRequest::getJobGroupStatusFilter() const { + return jobGroupStatusFilter_; } -int ListJobGroupsRequest::getPageSize()const -{ - return pageSize_; +void ListJobGroupsRequest::setJobGroupStatusFilter(const std::string &jobGroupStatusFilter) { + jobGroupStatusFilter_ = jobGroupStatusFilter; + setParameter(std::string("JobGroupStatusFilter"), jobGroupStatusFilter); } -void ListJobGroupsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListJobGroupsRequest::getPageSize() const { + return pageSize_; +} + +void ListJobGroupsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/ListJobGroupsResult.cc b/outboundbot/src/model/ListJobGroupsResult.cc index 7d6380ef0..8d8be3053 100644 --- a/outboundbot/src/model/ListJobGroupsResult.cc +++ b/outboundbot/src/model/ListJobGroupsResult.cc @@ -50,58 +50,58 @@ void ListJobGroupsResult::parse(const std::string &payload) for (auto jobGroupsNodeListJobGroup : allListNode) { JobGroups::JobGroup jobGroupObject; - if(!jobGroupsNodeListJobGroup["CreationTime"].isNull()) - jobGroupObject.creationTime = std::stol(jobGroupsNodeListJobGroup["CreationTime"].asString()); - if(!jobGroupsNodeListJobGroup["JobGroupDescription"].isNull()) - jobGroupObject.jobGroupDescription = jobGroupsNodeListJobGroup["JobGroupDescription"].asString(); - if(!jobGroupsNodeListJobGroup["JobGroupId"].isNull()) - jobGroupObject.jobGroupId = jobGroupsNodeListJobGroup["JobGroupId"].asString(); - if(!jobGroupsNodeListJobGroup["JobGroupName"].isNull()) - jobGroupObject.jobGroupName = jobGroupsNodeListJobGroup["JobGroupName"].asString(); - if(!jobGroupsNodeListJobGroup["ScriptId"].isNull()) - 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(); + if(!jobGroupsNodeListJobGroup["JobGroupId"].isNull()) + jobGroupObject.jobGroupId = jobGroupsNodeListJobGroup["JobGroupId"].asString(); + if(!jobGroupsNodeListJobGroup["CreationTime"].isNull()) + jobGroupObject.creationTime = std::stol(jobGroupsNodeListJobGroup["CreationTime"].asString()); + if(!jobGroupsNodeListJobGroup["JobGroupName"].isNull()) + jobGroupObject.jobGroupName = jobGroupsNodeListJobGroup["JobGroupName"].asString(); if(!jobGroupsNodeListJobGroup["TotalCallNum"].isNull()) jobGroupObject.totalCallNum = std::stoi(jobGroupsNodeListJobGroup["TotalCallNum"].asString()); + if(!jobGroupsNodeListJobGroup["ScriptId"].isNull()) + jobGroupObject.scriptId = jobGroupsNodeListJobGroup["ScriptId"].asString(); + if(!jobGroupsNodeListJobGroup["JobGroupDescription"].isNull()) + jobGroupObject.jobGroupDescription = jobGroupsNodeListJobGroup["JobGroupDescription"].asString(); + if(!jobGroupsNodeListJobGroup["JobDataParsingTaskId"].isNull()) + jobGroupObject.jobDataParsingTaskId = jobGroupsNodeListJobGroup["JobDataParsingTaskId"].asString(); + if(!jobGroupsNodeListJobGroup["ScriptName"].isNull()) + jobGroupObject.scriptName = jobGroupsNodeListJobGroup["ScriptName"].asString(); + if(!jobGroupsNodeListJobGroup["ScriptVersion"].isNull()) + jobGroupObject.scriptVersion = jobGroupsNodeListJobGroup["ScriptVersion"].asString(); + if(!jobGroupsNodeListJobGroup["ModifyTime"].isNull()) + jobGroupObject.modifyTime = jobGroupsNodeListJobGroup["ModifyTime"].asString(); auto progressNode = value["Progress"]; - if(!progressNode["Duration"].isNull()) - jobGroupObject.progress.duration = std::stoi(progressNode["Duration"].asString()); - if(!progressNode["StartTime"].isNull()) - jobGroupObject.progress.startTime = std::stol(progressNode["StartTime"].asString()); - if(!progressNode["Status"].isNull()) - jobGroupObject.progress.status = progressNode["Status"].asString(); - if(!progressNode["TotalCompleted"].isNull()) - jobGroupObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString()); - if(!progressNode["TotalJobs"].isNull()) - 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["Status"].isNull()) + jobGroupObject.progress.status = progressNode["Status"].asString(); + if(!progressNode["StartTime"].isNull()) + jobGroupObject.progress.startTime = std::stol(progressNode["StartTime"].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["CancelledNum"].isNull()) + jobGroupObject.progress.cancelledNum = std::stoi(progressNode["CancelledNum"].asString()); + if(!progressNode["TotalJobs"].isNull()) + jobGroupObject.progress.totalJobs = std::stoi(progressNode["TotalJobs"].asString()); + if(!progressNode["TotalCompleted"].isNull()) + jobGroupObject.progress.totalCompleted = std::stoi(progressNode["TotalCompleted"].asString()); + if(!progressNode["Duration"].isNull()) + jobGroupObject.progress.duration = std::stoi(progressNode["Duration"].asString()); if(!progressNode["ExecutingNum"].isNull()) jobGroupObject.progress.executingNum = std::stoi(progressNode["ExecutingNum"].asString()); + if(!progressNode["Scheduling"].isNull()) + jobGroupObject.progress.scheduling = std::stoi(progressNode["Scheduling"].asString()); auto exportProgressNode = value["ExportProgress"]; + if(!exportProgressNode["Status"].isNull()) + jobGroupObject.exportProgress.status = exportProgressNode["Status"].asString(); 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()); @@ -109,14 +109,14 @@ void ListJobGroupsResult::parse(const std::string &payload) jobGroupObject.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); jobGroups_.list.push_back(jobGroupObject); } - 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["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["AsyncTaskId"].isNull()) asyncTaskId_ = value["AsyncTaskId"].asString(); diff --git a/outboundbot/src/model/ListJobsByGroupRequest.cc b/outboundbot/src/model/ListJobsByGroupRequest.cc index 302f2aadb..02c9e1c56 100644 --- a/outboundbot/src/model/ListJobsByGroupRequest.cc +++ b/outboundbot/src/model/ListJobsByGroupRequest.cc @@ -1,95 +1,81 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListJobsByGroupRequest; - -ListJobsByGroupRequest::ListJobsByGroupRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListJobsByGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ListJobsByGroupRequest::~ListJobsByGroupRequest() -{} - -std::string ListJobsByGroupRequest::getJobStatus()const -{ - return jobStatus_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListJobsByGroupRequest; + +ListJobsByGroupRequest::ListJobsByGroupRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListJobsByGroup") { + setMethod(HttpRequest::Method::Post); } -void ListJobsByGroupRequest::setJobStatus(const std::string& jobStatus) -{ - jobStatus_ = jobStatus; - setParameter("JobStatus", jobStatus); +ListJobsByGroupRequest::~ListJobsByGroupRequest() {} + +std::string ListJobsByGroupRequest::getJobStatus() const { + return jobStatus_; } -int ListJobsByGroupRequest::getPageNumber()const -{ - return pageNumber_; +void ListJobsByGroupRequest::setJobStatus(const std::string &jobStatus) { + jobStatus_ = jobStatus; + setParameter(std::string("JobStatus"), jobStatus); } -void ListJobsByGroupRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListJobsByGroupRequest::getPageNumber() const { + return pageNumber_; } -std::string ListJobsByGroupRequest::getInstanceId()const -{ - return instanceId_; +void ListJobsByGroupRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListJobsByGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListJobsByGroupRequest::getInstanceId() const { + return instanceId_; } -std::string ListJobsByGroupRequest::getJobFailureReason()const -{ - return jobFailureReason_; +void ListJobsByGroupRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ListJobsByGroupRequest::setJobFailureReason(const std::string& jobFailureReason) -{ - jobFailureReason_ = jobFailureReason; - setParameter("JobFailureReason", jobFailureReason); +std::string ListJobsByGroupRequest::getJobFailureReason() const { + return jobFailureReason_; } -std::string ListJobsByGroupRequest::getJobGroupId()const -{ - return jobGroupId_; +void ListJobsByGroupRequest::setJobFailureReason(const std::string &jobFailureReason) { + jobFailureReason_ = jobFailureReason; + setParameter(std::string("JobFailureReason"), jobFailureReason); } -void ListJobsByGroupRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string ListJobsByGroupRequest::getJobGroupId() const { + return jobGroupId_; } -int ListJobsByGroupRequest::getPageSize()const -{ - return pageSize_; +void ListJobsByGroupRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void ListJobsByGroupRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListJobsByGroupRequest::getPageSize() const { + return pageSize_; +} + +void ListJobsByGroupRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/ListJobsByGroupResult.cc b/outboundbot/src/model/ListJobsByGroupResult.cc index 9458e5572..6780405e7 100644 --- a/outboundbot/src/model/ListJobsByGroupResult.cc +++ b/outboundbot/src/model/ListJobsByGroupResult.cc @@ -50,44 +50,44 @@ void ListJobsByGroupResult::parse(const std::string &payload) for (auto jobsNodeListJob : allListNode) { Jobs::Job jobObject; - if(!jobsNodeListJob["FailureReason"].isNull()) - jobObject.failureReason = jobsNodeListJob["FailureReason"].asString(); + if(!jobsNodeListJob["Status"].isNull()) + jobObject.status = jobsNodeListJob["Status"].asString(); + if(!jobsNodeListJob["ScenarioId"].isNull()) + jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString(); if(!jobsNodeListJob["JobGroupId"].isNull()) jobObject.jobGroupId = jobsNodeListJob["JobGroupId"].asString(); + if(!jobsNodeListJob["StrategyId"].isNull()) + jobObject.strategyId = jobsNodeListJob["StrategyId"].asString(); if(!jobsNodeListJob["JobId"].isNull()) jobObject.jobId = jobsNodeListJob["JobId"].asString(); if(!jobsNodeListJob["Priority"].isNull()) jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString()); - if(!jobsNodeListJob["ReferenceId"].isNull()) - jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString(); - if(!jobsNodeListJob["ScenarioId"].isNull()) - jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString(); - if(!jobsNodeListJob["Status"].isNull()) - jobObject.status = jobsNodeListJob["Status"].asString(); - if(!jobsNodeListJob["StrategyId"].isNull()) - jobObject.strategyId = jobsNodeListJob["StrategyId"].asString(); if(!jobsNodeListJob["SystemPriority"].isNull()) jobObject.systemPriority = std::stoi(jobsNodeListJob["SystemPriority"].asString()); + if(!jobsNodeListJob["FailureReason"].isNull()) + jobObject.failureReason = jobsNodeListJob["FailureReason"].asString(); + if(!jobsNodeListJob["ReferenceId"].isNull()) + jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString(); auto allContactsNode = jobsNodeListJob["Contacts"]["Contact"]; for (auto jobsNodeListJobContactsContact : allContactsNode) { Jobs::Job::Contact contactsObject; + if(!jobsNodeListJobContactsContact["PhoneNumber"].isNull()) + contactsObject.phoneNumber = jobsNodeListJobContactsContact["PhoneNumber"].asString(); + if(!jobsNodeListJobContactsContact["State"].isNull()) + contactsObject.state = jobsNodeListJobContactsContact["State"].asString(); if(!jobsNodeListJobContactsContact["ContactId"].isNull()) contactsObject.contactId = jobsNodeListJobContactsContact["ContactId"].asString(); - if(!jobsNodeListJobContactsContact["ContactName"].isNull()) - contactsObject.contactName = jobsNodeListJobContactsContact["ContactName"].asString(); if(!jobsNodeListJobContactsContact["Honorific"].isNull()) contactsObject.honorific = jobsNodeListJobContactsContact["Honorific"].asString(); if(!jobsNodeListJobContactsContact["JobId"].isNull()) contactsObject.jobId = jobsNodeListJobContactsContact["JobId"].asString(); - if(!jobsNodeListJobContactsContact["PhoneNumber"].isNull()) - contactsObject.phoneNumber = jobsNodeListJobContactsContact["PhoneNumber"].asString(); - if(!jobsNodeListJobContactsContact["ReferenceId"].isNull()) - contactsObject.referenceId = jobsNodeListJobContactsContact["ReferenceId"].asString(); + if(!jobsNodeListJobContactsContact["ContactName"].isNull()) + contactsObject.contactName = jobsNodeListJobContactsContact["ContactName"].asString(); if(!jobsNodeListJobContactsContact["Role"].isNull()) contactsObject.role = jobsNodeListJobContactsContact["Role"].asString(); - if(!jobsNodeListJobContactsContact["State"].isNull()) - contactsObject.state = jobsNodeListJobContactsContact["State"].asString(); + if(!jobsNodeListJobContactsContact["ReferenceId"].isNull()) + contactsObject.referenceId = jobsNodeListJobContactsContact["ReferenceId"].asString(); jobObject.contacts.push_back(contactsObject); } auto allExtrasNode = jobsNodeListJob["Extras"]["KeyValuePair"]; @@ -104,22 +104,22 @@ void ListJobsByGroupResult::parse(const std::string &payload) for (auto jobsNodeListJobSummarySummaryItem : allSummaryNode) { Jobs::Job::SummaryItem summaryObject; - if(!jobsNodeListJobSummarySummaryItem["Category"].isNull()) - summaryObject.category = jobsNodeListJobSummarySummaryItem["Category"].asString(); - if(!jobsNodeListJobSummarySummaryItem["Content"].isNull()) - summaryObject.content = jobsNodeListJobSummarySummaryItem["Content"].asString(); - if(!jobsNodeListJobSummarySummaryItem["ConversationDetailId"].isNull()) - summaryObject.conversationDetailId = jobsNodeListJobSummarySummaryItem["ConversationDetailId"].asString(); + if(!jobsNodeListJobSummarySummaryItem["SummaryName"].isNull()) + summaryObject.summaryName = jobsNodeListJobSummarySummaryItem["SummaryName"].asString(); if(!jobsNodeListJobSummarySummaryItem["JobGroupId"].isNull()) summaryObject.jobGroupId = jobsNodeListJobSummarySummaryItem["JobGroupId"].asString(); if(!jobsNodeListJobSummarySummaryItem["JobId"].isNull()) summaryObject.jobId = jobsNodeListJobSummarySummaryItem["JobId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["SummaryId"].isNull()) - summaryObject.summaryId = jobsNodeListJobSummarySummaryItem["SummaryId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["SummaryName"].isNull()) - summaryObject.summaryName = jobsNodeListJobSummarySummaryItem["SummaryName"].asString(); + if(!jobsNodeListJobSummarySummaryItem["Category"].isNull()) + summaryObject.category = jobsNodeListJobSummarySummaryItem["Category"].asString(); if(!jobsNodeListJobSummarySummaryItem["TaskId"].isNull()) summaryObject.taskId = jobsNodeListJobSummarySummaryItem["TaskId"].asString(); + if(!jobsNodeListJobSummarySummaryItem["Content"].isNull()) + summaryObject.content = jobsNodeListJobSummarySummaryItem["Content"].asString(); + if(!jobsNodeListJobSummarySummaryItem["ConversationDetailId"].isNull()) + summaryObject.conversationDetailId = jobsNodeListJobSummarySummaryItem["ConversationDetailId"].asString(); + if(!jobsNodeListJobSummarySummaryItem["SummaryId"].isNull()) + summaryObject.summaryId = jobsNodeListJobSummarySummaryItem["SummaryId"].asString(); jobObject.summary.push_back(summaryObject); } auto allCallingNumbers = value["CallingNumbers"]["String"]; @@ -127,10 +127,10 @@ void ListJobsByGroupResult::parse(const std::string &payload) jobObject.callingNumbers.push_back(value.asString()); jobs_.list.push_back(jobObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ListJobsRequest.cc b/outboundbot/src/model/ListJobsRequest.cc index 63f8c1cbe..e38a6044e 100644 --- a/outboundbot/src/model/ListJobsRequest.cc +++ b/outboundbot/src/model/ListJobsRequest.cc @@ -1,53 +1,44 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListJobsRequest; - -ListJobsRequest::ListJobsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -ListJobsRequest::~ListJobsRequest() -{} - -std::vector ListJobsRequest::getJobId()const -{ - return jobId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListJobsRequest; + +ListJobsRequest::ListJobsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListJobs") { + setMethod(HttpRequest::Method::Post); } -void ListJobsRequest::setJobId(const std::vector& jobId) -{ - jobId_ = jobId; - for(int dep1 = 0; dep1!= jobId.size(); dep1++) { - setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1)); - } +ListJobsRequest::~ListJobsRequest() {} + +std::vector ListJobsRequest::getJobId() const { + return jobId_; } -std::string ListJobsRequest::getInstanceId()const -{ - return instanceId_; +void ListJobsRequest::setJobId(const std::vector &jobId) { + jobId_ = jobId; } -void ListJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListJobsRequest::getInstanceId() const { + return instanceId_; +} + +void ListJobsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/ListJobsResult.cc b/outboundbot/src/model/ListJobsResult.cc index 826f6e3c1..cac232943 100644 --- a/outboundbot/src/model/ListJobsResult.cc +++ b/outboundbot/src/model/ListJobsResult.cc @@ -43,44 +43,44 @@ void ListJobsResult::parse(const std::string &payload) for (auto valueJobsJob : allJobsNode) { Job jobsObject; - if(!valueJobsJob["FailureReason"].isNull()) - jobsObject.failureReason = valueJobsJob["FailureReason"].asString(); + if(!valueJobsJob["Status"].isNull()) + jobsObject.status = valueJobsJob["Status"].asString(); + if(!valueJobsJob["ScenarioId"].isNull()) + jobsObject.scenarioId = valueJobsJob["ScenarioId"].asString(); if(!valueJobsJob["JobGroupId"].isNull()) jobsObject.jobGroupId = valueJobsJob["JobGroupId"].asString(); + if(!valueJobsJob["StrategyId"].isNull()) + jobsObject.strategyId = valueJobsJob["StrategyId"].asString(); if(!valueJobsJob["JobId"].isNull()) jobsObject.jobId = valueJobsJob["JobId"].asString(); if(!valueJobsJob["Priority"].isNull()) jobsObject.priority = std::stoi(valueJobsJob["Priority"].asString()); - if(!valueJobsJob["ReferenceId"].isNull()) - jobsObject.referenceId = valueJobsJob["ReferenceId"].asString(); - if(!valueJobsJob["ScenarioId"].isNull()) - jobsObject.scenarioId = valueJobsJob["ScenarioId"].asString(); - if(!valueJobsJob["Status"].isNull()) - jobsObject.status = valueJobsJob["Status"].asString(); - if(!valueJobsJob["StrategyId"].isNull()) - jobsObject.strategyId = valueJobsJob["StrategyId"].asString(); if(!valueJobsJob["SystemPriority"].isNull()) jobsObject.systemPriority = std::stoi(valueJobsJob["SystemPriority"].asString()); + if(!valueJobsJob["FailureReason"].isNull()) + jobsObject.failureReason = valueJobsJob["FailureReason"].asString(); + if(!valueJobsJob["ReferenceId"].isNull()) + jobsObject.referenceId = valueJobsJob["ReferenceId"].asString(); auto allContactsNode = valueJobsJob["Contacts"]["Contact"]; for (auto valueJobsJobContactsContact : allContactsNode) { Job::Contact contactsObject; + if(!valueJobsJobContactsContact["PhoneNumber"].isNull()) + contactsObject.phoneNumber = valueJobsJobContactsContact["PhoneNumber"].asString(); + if(!valueJobsJobContactsContact["State"].isNull()) + contactsObject.state = valueJobsJobContactsContact["State"].asString(); if(!valueJobsJobContactsContact["ContactId"].isNull()) contactsObject.contactId = valueJobsJobContactsContact["ContactId"].asString(); - if(!valueJobsJobContactsContact["ContactName"].isNull()) - contactsObject.contactName = valueJobsJobContactsContact["ContactName"].asString(); if(!valueJobsJobContactsContact["Honorific"].isNull()) contactsObject.honorific = valueJobsJobContactsContact["Honorific"].asString(); if(!valueJobsJobContactsContact["JobId"].isNull()) contactsObject.jobId = valueJobsJobContactsContact["JobId"].asString(); - if(!valueJobsJobContactsContact["PhoneNumber"].isNull()) - contactsObject.phoneNumber = valueJobsJobContactsContact["PhoneNumber"].asString(); - if(!valueJobsJobContactsContact["ReferenceId"].isNull()) - contactsObject.referenceId = valueJobsJobContactsContact["ReferenceId"].asString(); + if(!valueJobsJobContactsContact["ContactName"].isNull()) + contactsObject.contactName = valueJobsJobContactsContact["ContactName"].asString(); if(!valueJobsJobContactsContact["Role"].isNull()) contactsObject.role = valueJobsJobContactsContact["Role"].asString(); - if(!valueJobsJobContactsContact["State"].isNull()) - contactsObject.state = valueJobsJobContactsContact["State"].asString(); + if(!valueJobsJobContactsContact["ReferenceId"].isNull()) + contactsObject.referenceId = valueJobsJobContactsContact["ReferenceId"].asString(); jobsObject.contacts.push_back(contactsObject); } auto allExtrasNode = valueJobsJob["Extras"]["KeyValuePair"]; @@ -97,83 +97,83 @@ void ListJobsResult::parse(const std::string &payload) for (auto valueJobsJobSummarySummaryItem : allSummaryNode) { Job::SummaryItem summaryObject; + if(!valueJobsJobSummarySummaryItem["SummaryName"].isNull()) + summaryObject.summaryName = valueJobsJobSummarySummaryItem["SummaryName"].asString(); if(!valueJobsJobSummarySummaryItem["Category"].isNull()) summaryObject.category = valueJobsJobSummarySummaryItem["Category"].asString(); if(!valueJobsJobSummarySummaryItem["Content"].isNull()) summaryObject.content = valueJobsJobSummarySummaryItem["Content"].asString(); - if(!valueJobsJobSummarySummaryItem["SummaryName"].isNull()) - summaryObject.summaryName = valueJobsJobSummarySummaryItem["SummaryName"].asString(); jobsObject.summary.push_back(summaryObject); } auto allTasksNode = valueJobsJob["Tasks"]["Task"]; for (auto valueJobsJobTasksTask : allTasksNode) { Job::Task tasksObject; - if(!valueJobsJobTasksTask["ActualTime"].isNull()) - tasksObject.actualTime = std::stol(valueJobsJobTasksTask["ActualTime"].asString()); - if(!valueJobsJobTasksTask["Brief"].isNull()) - tasksObject.brief = valueJobsJobTasksTask["Brief"].asString(); - if(!valueJobsJobTasksTask["CallId"].isNull()) - tasksObject.callId = valueJobsJobTasksTask["CallId"].asString(); - if(!valueJobsJobTasksTask["CalledNumber"].isNull()) - tasksObject.calledNumber = valueJobsJobTasksTask["CalledNumber"].asString(); - if(!valueJobsJobTasksTask["CallingNumber"].isNull()) - tasksObject.callingNumber = valueJobsJobTasksTask["CallingNumber"].asString(); - if(!valueJobsJobTasksTask["ChatbotId"].isNull()) - tasksObject.chatbotId = valueJobsJobTasksTask["ChatbotId"].asString(); - if(!valueJobsJobTasksTask["Duration"].isNull()) - tasksObject.duration = std::stoi(valueJobsJobTasksTask["Duration"].asString()); - if(!valueJobsJobTasksTask["JobId"].isNull()) - tasksObject.jobId = valueJobsJobTasksTask["JobId"].asString(); - if(!valueJobsJobTasksTask["PlanedTime"].isNull()) - tasksObject.planedTime = std::stol(valueJobsJobTasksTask["PlanedTime"].asString()); - if(!valueJobsJobTasksTask["ScenarioId"].isNull()) - tasksObject.scenarioId = valueJobsJobTasksTask["ScenarioId"].asString(); if(!valueJobsJobTasksTask["Status"].isNull()) tasksObject.status = valueJobsJobTasksTask["Status"].asString(); + if(!valueJobsJobTasksTask["PlanedTime"].isNull()) + tasksObject.planedTime = std::stol(valueJobsJobTasksTask["PlanedTime"].asString()); + if(!valueJobsJobTasksTask["ChatbotId"].isNull()) + tasksObject.chatbotId = valueJobsJobTasksTask["ChatbotId"].asString(); + if(!valueJobsJobTasksTask["ActualTime"].isNull()) + tasksObject.actualTime = std::stol(valueJobsJobTasksTask["ActualTime"].asString()); + if(!valueJobsJobTasksTask["CalledNumber"].isNull()) + tasksObject.calledNumber = valueJobsJobTasksTask["CalledNumber"].asString(); + if(!valueJobsJobTasksTask["ScenarioId"].isNull()) + tasksObject.scenarioId = valueJobsJobTasksTask["ScenarioId"].asString(); + if(!valueJobsJobTasksTask["JobId"].isNull()) + tasksObject.jobId = valueJobsJobTasksTask["JobId"].asString(); + if(!valueJobsJobTasksTask["CallId"].isNull()) + tasksObject.callId = valueJobsJobTasksTask["CallId"].asString(); + if(!valueJobsJobTasksTask["CallingNumber"].isNull()) + tasksObject.callingNumber = valueJobsJobTasksTask["CallingNumber"].asString(); + if(!valueJobsJobTasksTask["Brief"].isNull()) + tasksObject.brief = valueJobsJobTasksTask["Brief"].asString(); + if(!valueJobsJobTasksTask["Duration"].isNull()) + tasksObject.duration = std::stoi(valueJobsJobTasksTask["Duration"].asString()); if(!valueJobsJobTasksTask["TaskId"].isNull()) tasksObject.taskId = valueJobsJobTasksTask["TaskId"].asString(); auto allConversationNode = valueJobsJobTasksTask["Conversation"]["ConversationDetail"]; for (auto valueJobsJobTasksTaskConversationConversationDetail : allConversationNode) { Job::Task::ConversationDetail conversationObject; - if(!valueJobsJobTasksTaskConversationConversationDetail["Script"].isNull()) - conversationObject.script = valueJobsJobTasksTaskConversationConversationDetail["Script"].asString(); if(!valueJobsJobTasksTaskConversationConversationDetail["Speaker"].isNull()) conversationObject.speaker = valueJobsJobTasksTaskConversationConversationDetail["Speaker"].asString(); if(!valueJobsJobTasksTaskConversationConversationDetail["Timestamp"].isNull()) conversationObject.timestamp = std::stol(valueJobsJobTasksTaskConversationConversationDetail["Timestamp"].asString()); + if(!valueJobsJobTasksTaskConversationConversationDetail["Script"].isNull()) + conversationObject.script = valueJobsJobTasksTaskConversationConversationDetail["Script"].asString(); auto allSummary1Node = valueJobsJobTasksTaskConversationConversationDetail["Summary"]["SummaryItem"]; for (auto valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem : allSummary1Node) { Job::Task::ConversationDetail::SummaryItem2 summary1Object; + if(!valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].isNull()) + summary1Object.summaryName = valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].asString(); if(!valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["Category"].isNull()) summary1Object.category = valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["Category"].asString(); if(!valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["Content"].isNull()) summary1Object.content = valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["Content"].asString(); - if(!valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].isNull()) - summary1Object.summaryName = valueJobsJobTasksTaskConversationConversationDetailSummarySummaryItem["SummaryName"].asString(); conversationObject.summary1.push_back(summary1Object); } tasksObject.conversation.push_back(conversationObject); } auto contact3Node = value["Contact"]; + if(!contact3Node["PhoneNumber"].isNull()) + tasksObject.contact3.phoneNumber = contact3Node["PhoneNumber"].asString(); + if(!contact3Node["State"].isNull()) + tasksObject.contact3.state = contact3Node["State"].asString(); if(!contact3Node["ContactId"].isNull()) tasksObject.contact3.contactId = contact3Node["ContactId"].asString(); - if(!contact3Node["ContactName"].isNull()) - tasksObject.contact3.contactName = contact3Node["ContactName"].asString(); if(!contact3Node["Honorific"].isNull()) tasksObject.contact3.honorific = contact3Node["Honorific"].asString(); if(!contact3Node["JobId"].isNull()) tasksObject.contact3.jobId = contact3Node["JobId"].asString(); - if(!contact3Node["PhoneNumber"].isNull()) - tasksObject.contact3.phoneNumber = contact3Node["PhoneNumber"].asString(); - if(!contact3Node["ReferenceId"].isNull()) - tasksObject.contact3.referenceId = contact3Node["ReferenceId"].asString(); + if(!contact3Node["ContactName"].isNull()) + tasksObject.contact3.contactName = contact3Node["ContactName"].asString(); if(!contact3Node["Role"].isNull()) tasksObject.contact3.role = contact3Node["Role"].asString(); - if(!contact3Node["State"].isNull()) - tasksObject.contact3.state = contact3Node["State"].asString(); + if(!contact3Node["ReferenceId"].isNull()) + tasksObject.contact3.referenceId = contact3Node["ReferenceId"].asString(); jobsObject.tasks.push_back(tasksObject); } auto allCallingNumbers = value["CallingNumbers"]["String"]; @@ -181,10 +181,10 @@ void ListJobsResult::parse(const std::string &payload) jobsObject.callingNumbers.push_back(value.asString()); jobs_.push_back(jobsObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ListOutboundCallNumbersRequest.cc b/outboundbot/src/model/ListOutboundCallNumbersRequest.cc index 54302ee1d..bd2db8823 100644 --- a/outboundbot/src/model/ListOutboundCallNumbersRequest.cc +++ b/outboundbot/src/model/ListOutboundCallNumbersRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListOutboundCallNumbersRequest; - -ListOutboundCallNumbersRequest::ListOutboundCallNumbersRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListOutboundCallNumbers") -{ - setMethod(HttpRequest::Method::Post); -} - -ListOutboundCallNumbersRequest::~ListOutboundCallNumbersRequest() -{} - -int ListOutboundCallNumbersRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListOutboundCallNumbersRequest; + +ListOutboundCallNumbersRequest::ListOutboundCallNumbersRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListOutboundCallNumbers") { + setMethod(HttpRequest::Method::Post); } -void ListOutboundCallNumbersRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListOutboundCallNumbersRequest::~ListOutboundCallNumbersRequest() {} + +int ListOutboundCallNumbersRequest::getPageNumber() const { + return pageNumber_; } -std::string ListOutboundCallNumbersRequest::getInstanceId()const -{ - return instanceId_; +void ListOutboundCallNumbersRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListOutboundCallNumbersRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListOutboundCallNumbersRequest::getInstanceId() const { + return instanceId_; } -int ListOutboundCallNumbersRequest::getPageSize()const -{ - return pageSize_; +void ListOutboundCallNumbersRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ListOutboundCallNumbersRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListOutboundCallNumbersRequest::getPageSize() const { + return pageSize_; +} + +void ListOutboundCallNumbersRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/ListOutboundCallNumbersResult.cc b/outboundbot/src/model/ListOutboundCallNumbersResult.cc index 5ac06941c..6d452cd4e 100644 --- a/outboundbot/src/model/ListOutboundCallNumbersResult.cc +++ b/outboundbot/src/model/ListOutboundCallNumbersResult.cc @@ -60,10 +60,10 @@ void ListOutboundCallNumbersResult::parse(const std::string &payload) outboundCallNumberObject.rateLimitPeriod = outboundCallNumbersNodeListOutboundCallNumber["RateLimitPeriod"].asString(); outboundCallNumbers_.list.push_back(outboundCallNumberObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ListResourceTagsRequest.cc b/outboundbot/src/model/ListResourceTagsRequest.cc index dc578d492..74897fd42 100644 --- a/outboundbot/src/model/ListResourceTagsRequest.cc +++ b/outboundbot/src/model/ListResourceTagsRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListResourceTagsRequest; - -ListResourceTagsRequest::ListResourceTagsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListResourceTags") -{ - setMethod(HttpRequest::Method::Post); -} - -ListResourceTagsRequest::~ListResourceTagsRequest() -{} - -std::string ListResourceTagsRequest::getResourceType()const -{ - return resourceType_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListResourceTagsRequest; + +ListResourceTagsRequest::ListResourceTagsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListResourceTags") { + setMethod(HttpRequest::Method::Post); } -void ListResourceTagsRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +ListResourceTagsRequest::~ListResourceTagsRequest() {} + +std::string ListResourceTagsRequest::getResourceType() const { + return resourceType_; } -int ListResourceTagsRequest::getPageNumber()const -{ - return pageNumber_; +void ListResourceTagsRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void ListResourceTagsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListResourceTagsRequest::getPageNumber() const { + return pageNumber_; } -int ListResourceTagsRequest::getPageSize()const -{ - return pageSize_; +void ListResourceTagsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListResourceTagsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListResourceTagsRequest::getPageSize() const { + return pageSize_; +} + +void ListResourceTagsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/ListResourceTagsResult.cc b/outboundbot/src/model/ListResourceTagsResult.cc index c94562211..9f7f034e0 100644 --- a/outboundbot/src/model/ListResourceTagsResult.cc +++ b/outboundbot/src/model/ListResourceTagsResult.cc @@ -40,12 +40,12 @@ void ListResourceTagsResult::parse(const std::string &payload) 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()); + if(!resourceTagsNode["TotalCount"].isNull()) + resourceTags_.totalCount = std::stoi(resourceTagsNode["TotalCount"].asString()); auto allListNode = resourceTagsNode["List"]["ResourceTag"]; for (auto resourceTagsNodeListResourceTag : allListNode) { @@ -56,14 +56,14 @@ void ListResourceTagsResult::parse(const std::string &payload) resourceTagObject.value = resourceTagsNodeListResourceTag["Value"].asString(); resourceTags_.list.push_back(resourceTagObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/ListSchedulerInstancesRequest.cc b/outboundbot/src/model/ListSchedulerInstancesRequest.cc index 9e9b7a393..e3ee81dcf 100644 --- a/outboundbot/src/model/ListSchedulerInstancesRequest.cc +++ b/outboundbot/src/model/ListSchedulerInstancesRequest.cc @@ -1,40 +1,36 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListSchedulerInstancesRequest; - -ListSchedulerInstancesRequest::ListSchedulerInstancesRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListSchedulerInstances") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSchedulerInstancesRequest::~ListSchedulerInstancesRequest() -{} - -long ListSchedulerInstancesRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListSchedulerInstancesRequest; + +ListSchedulerInstancesRequest::ListSchedulerInstancesRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListSchedulerInstances") { + setMethod(HttpRequest::Method::Post); } -void ListSchedulerInstancesRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +ListSchedulerInstancesRequest::~ListSchedulerInstancesRequest() {} + +long ListSchedulerInstancesRequest::getInstanceOwnerId() const { + return instanceOwnerId_; +} + +void ListSchedulerInstancesRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } diff --git a/outboundbot/src/model/ListSchedulerInstancesResult.cc b/outboundbot/src/model/ListSchedulerInstancesResult.cc index ee50ac424..cb4e0c12f 100644 --- a/outboundbot/src/model/ListSchedulerInstancesResult.cc +++ b/outboundbot/src/model/ListSchedulerInstancesResult.cc @@ -43,26 +43,26 @@ void ListSchedulerInstancesResult::parse(const std::string &payload) for (auto valueSchedulerInstancesSchedulerInstance : allSchedulerInstancesNode) { SchedulerInstance schedulerInstancesObject; - if(!valueSchedulerInstancesSchedulerInstance["OwnerId"].isNull()) - schedulerInstancesObject.ownerId = valueSchedulerInstancesSchedulerInstance["OwnerId"].asString(); - if(!valueSchedulerInstancesSchedulerInstance["InstanceId"].isNull()) - schedulerInstancesObject.instanceId = valueSchedulerInstancesSchedulerInstance["InstanceId"].asString(); if(!valueSchedulerInstancesSchedulerInstance["Business"].isNull()) schedulerInstancesObject.business = valueSchedulerInstancesSchedulerInstance["Business"].asString(); if(!valueSchedulerInstancesSchedulerInstance["MaxConcurrency"].isNull()) schedulerInstancesObject.maxConcurrency = std::stoi(valueSchedulerInstancesSchedulerInstance["MaxConcurrency"].asString()); + if(!valueSchedulerInstancesSchedulerInstance["InstanceId"].isNull()) + schedulerInstancesObject.instanceId = valueSchedulerInstancesSchedulerInstance["InstanceId"].asString(); if(!valueSchedulerInstancesSchedulerInstance["BaseStrategy"].isNull()) schedulerInstancesObject.baseStrategy = valueSchedulerInstancesSchedulerInstance["BaseStrategy"].asString(); + if(!valueSchedulerInstancesSchedulerInstance["OwnerId"].isNull()) + schedulerInstancesObject.ownerId = valueSchedulerInstancesSchedulerInstance["OwnerId"].asString(); schedulerInstances_.push_back(schedulerInstancesObject); } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/ListScriptPublishHistoriesRequest.cc b/outboundbot/src/model/ListScriptPublishHistoriesRequest.cc index 7c56581ef..bf5efb186 100644 --- a/outboundbot/src/model/ListScriptPublishHistoriesRequest.cc +++ b/outboundbot/src/model/ListScriptPublishHistoriesRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListScriptPublishHistoriesRequest; - -ListScriptPublishHistoriesRequest::ListScriptPublishHistoriesRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListScriptPublishHistories") -{ - setMethod(HttpRequest::Method::Post); -} - -ListScriptPublishHistoriesRequest::~ListScriptPublishHistoriesRequest() -{} - -int ListScriptPublishHistoriesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListScriptPublishHistoriesRequest; + +ListScriptPublishHistoriesRequest::ListScriptPublishHistoriesRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListScriptPublishHistories") { + setMethod(HttpRequest::Method::Post); } -void ListScriptPublishHistoriesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListScriptPublishHistoriesRequest::~ListScriptPublishHistoriesRequest() {} + +int ListScriptPublishHistoriesRequest::getPageNumber() const { + return pageNumber_; } -std::string ListScriptPublishHistoriesRequest::getScriptId()const -{ - return scriptId_; +void ListScriptPublishHistoriesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListScriptPublishHistoriesRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ListScriptPublishHistoriesRequest::getScriptId() const { + return scriptId_; } -std::string ListScriptPublishHistoriesRequest::getInstanceId()const -{ - return instanceId_; +void ListScriptPublishHistoriesRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ListScriptPublishHistoriesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListScriptPublishHistoriesRequest::getInstanceId() const { + return instanceId_; } -int ListScriptPublishHistoriesRequest::getPageSize()const -{ - return pageSize_; +void ListScriptPublishHistoriesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ListScriptPublishHistoriesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListScriptPublishHistoriesRequest::getPageSize() const { + return pageSize_; +} + +void ListScriptPublishHistoriesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/ListScriptPublishHistoriesResult.cc b/outboundbot/src/model/ListScriptPublishHistoriesResult.cc index 1daa50519..a953934ad 100644 --- a/outboundbot/src/model/ListScriptPublishHistoriesResult.cc +++ b/outboundbot/src/model/ListScriptPublishHistoriesResult.cc @@ -50,22 +50,22 @@ void ListScriptPublishHistoriesResult::parse(const std::string &payload) for (auto scriptPublishHistoriesNodeListPublishHistory : allListNode) { ScriptPublishHistories::PublishHistory publishHistoryObject; - if(!scriptPublishHistoriesNodeListPublishHistory["Description"].isNull()) - publishHistoryObject.description = scriptPublishHistoriesNodeListPublishHistory["Description"].asString(); - if(!scriptPublishHistoriesNodeListPublishHistory["InstanceId"].isNull()) - publishHistoryObject.instanceId = scriptPublishHistoriesNodeListPublishHistory["InstanceId"].asString(); if(!scriptPublishHistoriesNodeListPublishHistory["PublishTime"].isNull()) publishHistoryObject.publishTime = std::stol(scriptPublishHistoriesNodeListPublishHistory["PublishTime"].asString()); + if(!scriptPublishHistoriesNodeListPublishHistory["InstanceId"].isNull()) + publishHistoryObject.instanceId = scriptPublishHistoriesNodeListPublishHistory["InstanceId"].asString(); if(!scriptPublishHistoriesNodeListPublishHistory["ScriptId"].isNull()) publishHistoryObject.scriptId = scriptPublishHistoriesNodeListPublishHistory["ScriptId"].asString(); + if(!scriptPublishHistoriesNodeListPublishHistory["Description"].isNull()) + publishHistoryObject.description = scriptPublishHistoriesNodeListPublishHistory["Description"].asString(); if(!scriptPublishHistoriesNodeListPublishHistory["ScriptVersion"].isNull()) publishHistoryObject.scriptVersion = scriptPublishHistoriesNodeListPublishHistory["ScriptVersion"].asString(); scriptPublishHistories_.list.push_back(publishHistoryObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ListScriptVoiceConfigsRequest.cc b/outboundbot/src/model/ListScriptVoiceConfigsRequest.cc index 02c929b72..dceaafc26 100644 --- a/outboundbot/src/model/ListScriptVoiceConfigsRequest.cc +++ b/outboundbot/src/model/ListScriptVoiceConfigsRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListScriptVoiceConfigsRequest; - -ListScriptVoiceConfigsRequest::ListScriptVoiceConfigsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListScriptVoiceConfigs") -{ - setMethod(HttpRequest::Method::Post); -} - -ListScriptVoiceConfigsRequest::~ListScriptVoiceConfigsRequest() -{} - -int ListScriptVoiceConfigsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListScriptVoiceConfigsRequest; + +ListScriptVoiceConfigsRequest::ListScriptVoiceConfigsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListScriptVoiceConfigs") { + setMethod(HttpRequest::Method::Post); } -void ListScriptVoiceConfigsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListScriptVoiceConfigsRequest::~ListScriptVoiceConfigsRequest() {} + +int ListScriptVoiceConfigsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListScriptVoiceConfigsRequest::getScriptId()const -{ - return scriptId_; +void ListScriptVoiceConfigsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListScriptVoiceConfigsRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ListScriptVoiceConfigsRequest::getScriptId() const { + return scriptId_; } -std::string ListScriptVoiceConfigsRequest::getInstanceId()const -{ - return instanceId_; +void ListScriptVoiceConfigsRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ListScriptVoiceConfigsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListScriptVoiceConfigsRequest::getInstanceId() const { + return instanceId_; } -int ListScriptVoiceConfigsRequest::getPageSize()const -{ - return pageSize_; +void ListScriptVoiceConfigsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ListScriptVoiceConfigsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListScriptVoiceConfigsRequest::getPageSize() const { + return pageSize_; +} + +void ListScriptVoiceConfigsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/ListScriptVoiceConfigsResult.cc b/outboundbot/src/model/ListScriptVoiceConfigsResult.cc index 3d88d7d54..263723ede 100644 --- a/outboundbot/src/model/ListScriptVoiceConfigsResult.cc +++ b/outboundbot/src/model/ListScriptVoiceConfigsResult.cc @@ -50,26 +50,26 @@ void ListScriptVoiceConfigsResult::parse(const std::string &payload) for (auto scriptVoiceConfigsNodeListScriptVoiceConfig : allListNode) { ScriptVoiceConfigs::ScriptVoiceConfig scriptVoiceConfigObject; - if(!scriptVoiceConfigsNodeListScriptVoiceConfig["InstanceId"].isNull()) - scriptVoiceConfigObject.instanceId = scriptVoiceConfigsNodeListScriptVoiceConfig["InstanceId"].asString(); - if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptContent"].isNull()) - scriptVoiceConfigObject.scriptContent = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptContent"].asString(); - if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].isNull()) - scriptVoiceConfigObject.scriptId = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].asString(); + if(!scriptVoiceConfigsNodeListScriptVoiceConfig["Type"].isNull()) + scriptVoiceConfigObject.type = scriptVoiceConfigsNodeListScriptVoiceConfig["Type"].asString(); if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptVoiceConfigId"].isNull()) scriptVoiceConfigObject.scriptVoiceConfigId = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptVoiceConfigId"].asString(); + if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptContent"].isNull()) + scriptVoiceConfigObject.scriptContent = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptContent"].asString(); + if(!scriptVoiceConfigsNodeListScriptVoiceConfig["InstanceId"].isNull()) + scriptVoiceConfigObject.instanceId = scriptVoiceConfigsNodeListScriptVoiceConfig["InstanceId"].asString(); + if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].isNull()) + scriptVoiceConfigObject.scriptId = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptId"].asString(); if(!scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptWaveformRelation"].isNull()) scriptVoiceConfigObject.scriptWaveformRelation = scriptVoiceConfigsNodeListScriptVoiceConfig["ScriptWaveformRelation"].asString(); if(!scriptVoiceConfigsNodeListScriptVoiceConfig["Source"].isNull()) scriptVoiceConfigObject.source = scriptVoiceConfigsNodeListScriptVoiceConfig["Source"].asString(); - if(!scriptVoiceConfigsNodeListScriptVoiceConfig["Type"].isNull()) - scriptVoiceConfigObject.type = scriptVoiceConfigsNodeListScriptVoiceConfig["Type"].asString(); scriptVoiceConfigs_.list.push_back(scriptVoiceConfigObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ListScriptsRequest.cc b/outboundbot/src/model/ListScriptsRequest.cc index c854b6a1b..590cedcf3 100644 --- a/outboundbot/src/model/ListScriptsRequest.cc +++ b/outboundbot/src/model/ListScriptsRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListScriptsRequest; - -ListScriptsRequest::ListScriptsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListScripts") -{ - setMethod(HttpRequest::Method::Post); -} - -ListScriptsRequest::~ListScriptsRequest() -{} - -int ListScriptsRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListScriptsRequest; + +ListScriptsRequest::ListScriptsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListScripts") { + setMethod(HttpRequest::Method::Post); } -void ListScriptsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListScriptsRequest::~ListScriptsRequest() {} + +int ListScriptsRequest::getPageNumber() const { + return pageNumber_; } -std::string ListScriptsRequest::getInstanceId()const -{ - return instanceId_; +void ListScriptsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListScriptsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListScriptsRequest::getInstanceId() const { + return instanceId_; } -int ListScriptsRequest::getPageSize()const -{ - return pageSize_; +void ListScriptsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ListScriptsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListScriptsRequest::getPageSize() const { + return pageSize_; +} + +void ListScriptsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/ListTagResourcesRequest.cc b/outboundbot/src/model/ListTagResourcesRequest.cc index 6c6b333c4..25e479cfb 100644 --- a/outboundbot/src/model/ListTagResourcesRequest.cc +++ b/outboundbot/src/model/ListTagResourcesRequest.cc @@ -1,91 +1,76 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListTagResourcesRequest; + +ListTagResourcesRequest::ListTagResourcesRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListTagResources") { + setMethod(HttpRequest::Method::Post); } -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)); - } +ListTagResourcesRequest::~ListTagResourcesRequest() {} + +std::vector ListTagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string ListTagResourcesRequest::getResourceType()const -{ - return resourceType_; +void ListTagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void ListTagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string ListTagResourcesRequest::getResourceType() const { + return resourceType_; } -std::string ListTagResourcesRequest::getRegionId()const -{ - return regionId_; +void ListTagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void ListTagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string ListTagResourcesRequest::getRegionId() const { + return regionId_; } -std::string ListTagResourcesRequest::getNextToken()const -{ - return nextToken_; +void ListTagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -void ListTagResourcesRequest::setNextToken(const std::string& nextToken) -{ - nextToken_ = nextToken; - setParameter("NextToken", nextToken); +std::string ListTagResourcesRequest::getNextToken() const { + return nextToken_; } -std::vector ListTagResourcesRequest::getTag()const -{ - return tag_; +void ListTagResourcesRequest::setNextToken(const std::string &nextToken) { + nextToken_ = nextToken; + setParameter(std::string("NextToken"), nextToken); } -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); - } +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 = std::string("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 index 04611f345..d41daec00 100644 --- a/outboundbot/src/model/ListTagResourcesResult.cc +++ b/outboundbot/src/model/ListTagResourcesResult.cc @@ -43,39 +43,39 @@ void ListTagResourcesResult::parse(const std::string &payload) for (auto valueTagResourcesTagResource : allTagResourcesNode) { TagResource tagResourcesObject; - if(!valueTagResourcesTagResource["TagKey"].isNull()) - tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); + if(!valueTagResourcesTagResource["ResourceType"].isNull()) + tagResourcesObject.resourceType = valueTagResourcesTagResource["ResourceType"].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(); + if(!valueTagResourcesTagResource["TagKey"].isNull()) + tagResourcesObject.tagKey = valueTagResourcesTagResource["TagKey"].asString(); tagResources_.push_back(tagResourcesObject); } + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].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["NextToken"].isNull()) - nextToken_ = value["NextToken"].asString(); } -std::string ListTagResourcesResult::getMessage()const -{ - return message_; -} - std::string ListTagResourcesResult::getNextToken()const { return nextToken_; } +std::string ListTagResourcesResult::getMessage()const +{ + return message_; +} + std::vector ListTagResourcesResult::getTagResources()const { return tagResources_; diff --git a/outboundbot/src/model/ListTagsRequest.cc b/outboundbot/src/model/ListTagsRequest.cc index 592e7894b..ca6235004 100644 --- a/outboundbot/src/model/ListTagsRequest.cc +++ b/outboundbot/src/model/ListTagsRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ListTagsRequest; - -ListTagsRequest::ListTagsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ListTags") -{ - setMethod(HttpRequest::Method::Post); -} - -ListTagsRequest::~ListTagsRequest() -{} - -std::string ListTagsRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ListTagsRequest; + +ListTagsRequest::ListTagsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ListTags") { + setMethod(HttpRequest::Method::Post); } -void ListTagsRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +ListTagsRequest::~ListTagsRequest() {} + +std::string ListTagsRequest::getScriptId() const { + return scriptId_; } -std::string ListTagsRequest::getInstanceId()const -{ - return instanceId_; +void ListTagsRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ListTagsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListTagsRequest::getInstanceId() const { + return instanceId_; +} + +void ListTagsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/ListTagsResult.cc b/outboundbot/src/model/ListTagsResult.cc index f057dedad..52524b7e9 100644 --- a/outboundbot/src/model/ListTagsResult.cc +++ b/outboundbot/src/model/ListTagsResult.cc @@ -43,36 +43,36 @@ void ListTagsResult::parse(const std::string &payload) for (auto valueTagGroupsTagGroup : allTagGroupsNode) { TagGroup tagGroupsObject; - if(!valueTagGroupsTagGroup["ScriptId"].isNull()) - tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString(); - if(!valueTagGroupsTagGroup["TagGroup"].isNull()) - tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString(); if(!valueTagGroupsTagGroup["TagGroupId"].isNull()) tagGroupsObject.tagGroupId = valueTagGroupsTagGroup["TagGroupId"].asString(); if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull()) tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString()); + if(!valueTagGroupsTagGroup["TagGroup"].isNull()) + tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString(); + if(!valueTagGroupsTagGroup["ScriptId"].isNull()) + tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString(); tagGroups_.push_back(tagGroupsObject); } auto allTagsNode = value["Tags"]["Tag"]; for (auto valueTagsTag : allTagsNode) { Tag tagsObject; - if(!valueTagsTag["ScriptId"].isNull()) - tagsObject.scriptId = valueTagsTag["ScriptId"].asString(); if(!valueTagsTag["TagGroup"].isNull()) tagsObject.tagGroup = valueTagsTag["TagGroup"].asString(); - if(!valueTagsTag["TagId"].isNull()) - tagsObject.tagId = valueTagsTag["TagId"].asString(); - if(!valueTagsTag["TagIndex"].isNull()) - tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString()); if(!valueTagsTag["TagName"].isNull()) tagsObject.tagName = valueTagsTag["TagName"].asString(); + if(!valueTagsTag["TagIndex"].isNull()) + tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString()); + if(!valueTagsTag["ScriptId"].isNull()) + tagsObject.scriptId = valueTagsTag["ScriptId"].asString(); + if(!valueTagsTag["TagId"].isNull()) + tagsObject.tagId = valueTagsTag["TagId"].asString(); tags_.push_back(tagsObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ModifyBatchJobsRequest.cc b/outboundbot/src/model/ModifyBatchJobsRequest.cc index 0c2fdbf72..ee230545b 100644 --- a/outboundbot/src/model/ModifyBatchJobsRequest.cc +++ b/outboundbot/src/model/ModifyBatchJobsRequest.cc @@ -1,141 +1,116 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ModifyBatchJobsRequest; - -ModifyBatchJobsRequest::ModifyBatchJobsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyBatchJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyBatchJobsRequest::~ModifyBatchJobsRequest() -{} - -std::string ModifyBatchJobsRequest::getDescription()const -{ - return description_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyBatchJobsRequest; + +ModifyBatchJobsRequest::ModifyBatchJobsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyBatchJobs") { + setMethod(HttpRequest::Method::Post); } -void ModifyBatchJobsRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +ModifyBatchJobsRequest::~ModifyBatchJobsRequest() {} + +std::string ModifyBatchJobsRequest::getDescription() const { + return description_; } -std::string ModifyBatchJobsRequest::getJobFilePath()const -{ - return jobFilePath_; +void ModifyBatchJobsRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyBatchJobsRequest::setJobFilePath(const std::string& jobFilePath) -{ - jobFilePath_ = jobFilePath; - setParameter("JobFilePath", jobFilePath); +std::string ModifyBatchJobsRequest::getJobFilePath() const { + return jobFilePath_; } -std::vector ModifyBatchJobsRequest::getCallingNumber()const -{ - return callingNumber_; +void ModifyBatchJobsRequest::setJobFilePath(const std::string &jobFilePath) { + jobFilePath_ = jobFilePath; + setParameter(std::string("JobFilePath"), jobFilePath); } -void ModifyBatchJobsRequest::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 ModifyBatchJobsRequest::getScriptId() const { + return scriptId_; } -std::string ModifyBatchJobsRequest::getScriptId()const -{ - return scriptId_; +void ModifyBatchJobsRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ModifyBatchJobsRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::vector ModifyBatchJobsRequest::getCallingNumber() const { + return callingNumber_; } -std::string ModifyBatchJobsRequest::getInstanceId()const -{ - return instanceId_; +void ModifyBatchJobsRequest::setCallingNumber(const std::vector &callingNumber) { + callingNumber_ = callingNumber; } -void ModifyBatchJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyBatchJobsRequest::getInstanceId() const { + return instanceId_; } -bool ModifyBatchJobsRequest::getSubmitted()const -{ - return submitted_; +void ModifyBatchJobsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyBatchJobsRequest::setSubmitted(bool submitted) -{ - submitted_ = submitted; - setParameter("Submitted", submitted ? "true" : "false"); +bool ModifyBatchJobsRequest::getSubmitted() const { + return submitted_; } -std::string ModifyBatchJobsRequest::getBatchJobName()const -{ - return batchJobName_; +void ModifyBatchJobsRequest::setSubmitted(bool submitted) { + submitted_ = submitted; + setParameter(std::string("Submitted"), submitted ? "true" : "false"); } -void ModifyBatchJobsRequest::setBatchJobName(const std::string& batchJobName) -{ - batchJobName_ = batchJobName; - setParameter("BatchJobName", batchJobName); +std::string ModifyBatchJobsRequest::getBatchJobName() const { + return batchJobName_; } -std::string ModifyBatchJobsRequest::getStrategyJson()const -{ - return strategyJson_; +void ModifyBatchJobsRequest::setBatchJobName(const std::string &batchJobName) { + batchJobName_ = batchJobName; + setParameter(std::string("BatchJobName"), batchJobName); } -void ModifyBatchJobsRequest::setStrategyJson(const std::string& strategyJson) -{ - strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); +std::string ModifyBatchJobsRequest::getStrategyJson() const { + return strategyJson_; } -std::string ModifyBatchJobsRequest::getJobGroupId()const -{ - return jobGroupId_; +void ModifyBatchJobsRequest::setStrategyJson(const std::string &strategyJson) { + strategyJson_ = strategyJson; + setParameter(std::string("StrategyJson"), strategyJson); } -void ModifyBatchJobsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string ModifyBatchJobsRequest::getJobGroupId() const { + return jobGroupId_; } -std::string ModifyBatchJobsRequest::getScenarioId()const -{ - return scenarioId_; +void ModifyBatchJobsRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void ModifyBatchJobsRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); +std::string ModifyBatchJobsRequest::getScenarioId() const { + return scenarioId_; +} + +void ModifyBatchJobsRequest::setScenarioId(const std::string &scenarioId) { + scenarioId_ = scenarioId; + setParameter(std::string("ScenarioId"), scenarioId); } diff --git a/outboundbot/src/model/ModifyBatchJobsResult.cc b/outboundbot/src/model/ModifyBatchJobsResult.cc index 136d2b597..6507d553d 100644 --- a/outboundbot/src/model/ModifyBatchJobsResult.cc +++ b/outboundbot/src/model/ModifyBatchJobsResult.cc @@ -42,51 +42,51 @@ void ModifyBatchJobsResult::parse(const std::string &payload) auto jobGroupNode = value["JobGroup"]; if(!jobGroupNode["CreationTime"].isNull()) jobGroup_.creationTime = std::stol(jobGroupNode["CreationTime"].asString()); + if(!jobGroupNode["JobGroupId"].isNull()) + jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString(); + if(!jobGroupNode["ScenarioId"].isNull()) + jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString(); + if(!jobGroupNode["JobGroupName"].isNull()) + jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString(); if(!jobGroupNode["JobFilePath"].isNull()) jobGroup_.jobFilePath = jobGroupNode["JobFilePath"].asString(); if(!jobGroupNode["JobGroupDescription"].isNull()) jobGroup_.jobGroupDescription = jobGroupNode["JobGroupDescription"].asString(); - if(!jobGroupNode["JobGroupId"].isNull()) - jobGroup_.jobGroupId = jobGroupNode["JobGroupId"].asString(); - if(!jobGroupNode["JobGroupName"].isNull()) - jobGroup_.jobGroupName = jobGroupNode["JobGroupName"].asString(); - if(!jobGroupNode["ScenarioId"].isNull()) - jobGroup_.scenarioId = jobGroupNode["ScenarioId"].asString(); auto strategyNode = jobGroupNode["Strategy"]; - if(!strategyNode["Customized"].isNull()) - jobGroup_.strategy.customized = strategyNode["Customized"].asString(); - if(!strategyNode["EndTime"].isNull()) - jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); - if(!strategyNode["FollowUpStrategy"].isNull()) - jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); - if(!strategyNode["IsTemplate"].isNull()) - jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; - if(!strategyNode["MaxAttemptsPerDay"].isNull()) - jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); - if(!strategyNode["MinAttemptInterval"].isNull()) - jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); - if(!strategyNode["RepeatBy"].isNull()) - jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString(); - if(!strategyNode["RoutingStrategy"].isNull()) - jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); - if(!strategyNode["StartTime"].isNull()) - jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); - if(!strategyNode["StrategyDescription"].isNull()) - jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString(); - if(!strategyNode["StrategyId"].isNull()) - jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString(); - if(!strategyNode["StrategyName"].isNull()) - jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString(); if(!strategyNode["Type"].isNull()) jobGroup_.strategy.type = strategyNode["Type"].asString(); + if(!strategyNode["StrategyName"].isNull()) + jobGroup_.strategy.strategyName = strategyNode["StrategyName"].asString(); + if(!strategyNode["MaxAttemptsPerDay"].isNull()) + jobGroup_.strategy.maxAttemptsPerDay = std::stoi(strategyNode["MaxAttemptsPerDay"].asString()); + if(!strategyNode["FollowUpStrategy"].isNull()) + jobGroup_.strategy.followUpStrategy = strategyNode["FollowUpStrategy"].asString(); + if(!strategyNode["EndTime"].isNull()) + jobGroup_.strategy.endTime = std::stol(strategyNode["EndTime"].asString()); + if(!strategyNode["Customized"].isNull()) + jobGroup_.strategy.customized = strategyNode["Customized"].asString(); + if(!strategyNode["IsTemplate"].isNull()) + jobGroup_.strategy.isTemplate = strategyNode["IsTemplate"].asString() == "true"; + if(!strategyNode["StartTime"].isNull()) + jobGroup_.strategy.startTime = std::stol(strategyNode["StartTime"].asString()); + if(!strategyNode["StrategyId"].isNull()) + jobGroup_.strategy.strategyId = strategyNode["StrategyId"].asString(); + if(!strategyNode["RoutingStrategy"].isNull()) + jobGroup_.strategy.routingStrategy = strategyNode["RoutingStrategy"].asString(); + if(!strategyNode["MinAttemptInterval"].isNull()) + jobGroup_.strategy.minAttemptInterval = std::stoi(strategyNode["MinAttemptInterval"].asString()); + if(!strategyNode["StrategyDescription"].isNull()) + jobGroup_.strategy.strategyDescription = strategyNode["StrategyDescription"].asString(); + if(!strategyNode["RepeatBy"].isNull()) + jobGroup_.strategy.repeatBy = strategyNode["RepeatBy"].asString(); auto allWorkingTimeNode = strategyNode["WorkingTime"]["TimeFrame"]; for (auto strategyNodeWorkingTimeTimeFrame : allWorkingTimeNode) { JobGroup::Strategy::TimeFrame timeFrameObject; - if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) - timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); if(!strategyNodeWorkingTimeTimeFrame["EndTime"].isNull()) timeFrameObject.endTime = strategyNodeWorkingTimeTimeFrame["EndTime"].asString(); + if(!strategyNodeWorkingTimeTimeFrame["BeginTime"].isNull()) + timeFrameObject.beginTime = strategyNodeWorkingTimeTimeFrame["BeginTime"].asString(); jobGroup_.strategy.workingTime.push_back(timeFrameObject); } auto allRepeatDays = strategyNode["RepeatDays"]["Integer"]; @@ -95,10 +95,10 @@ void ModifyBatchJobsResult::parse(const std::string &payload) auto allCallingNumbers = jobGroupNode["CallingNumbers"]["String"]; for (auto value : allCallingNumbers) jobGroup_.callingNumbers.push_back(value.asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ModifyDialogueFlowRequest.cc b/outboundbot/src/model/ModifyDialogueFlowRequest.cc index e04e80c8b..f18307287 100644 --- a/outboundbot/src/model/ModifyDialogueFlowRequest.cc +++ b/outboundbot/src/model/ModifyDialogueFlowRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ModifyDialogueFlowRequest; - -ModifyDialogueFlowRequest::ModifyDialogueFlowRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyDialogueFlow") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyDialogueFlowRequest::~ModifyDialogueFlowRequest() -{} - -bool ModifyDialogueFlowRequest::getIsDrafted()const -{ - return isDrafted_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyDialogueFlowRequest; + +ModifyDialogueFlowRequest::ModifyDialogueFlowRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyDialogueFlow") { + setMethod(HttpRequest::Method::Post); } -void ModifyDialogueFlowRequest::setIsDrafted(bool isDrafted) -{ - isDrafted_ = isDrafted; - setParameter("IsDrafted", isDrafted ? "true" : "false"); +ModifyDialogueFlowRequest::~ModifyDialogueFlowRequest() {} + +bool ModifyDialogueFlowRequest::getIsDrafted() const { + return isDrafted_; } -std::string ModifyDialogueFlowRequest::getScriptId()const -{ - return scriptId_; +void ModifyDialogueFlowRequest::setIsDrafted(bool isDrafted) { + isDrafted_ = isDrafted; + setParameter(std::string("IsDrafted"), isDrafted ? "true" : "false"); } -void ModifyDialogueFlowRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ModifyDialogueFlowRequest::getScriptId() const { + return scriptId_; } -std::string ModifyDialogueFlowRequest::getInstanceId()const -{ - return instanceId_; +void ModifyDialogueFlowRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ModifyDialogueFlowRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyDialogueFlowRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyDialogueFlowRequest::getDialogueFlowDefinition()const -{ - return dialogueFlowDefinition_; +void ModifyDialogueFlowRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyDialogueFlowRequest::setDialogueFlowDefinition(const std::string& dialogueFlowDefinition) -{ - dialogueFlowDefinition_ = dialogueFlowDefinition; - setParameter("DialogueFlowDefinition", dialogueFlowDefinition); +std::string ModifyDialogueFlowRequest::getDialogueFlowDefinition() const { + return dialogueFlowDefinition_; } -std::string ModifyDialogueFlowRequest::getDialogueFlowId()const -{ - return dialogueFlowId_; +void ModifyDialogueFlowRequest::setDialogueFlowDefinition(const std::string &dialogueFlowDefinition) { + dialogueFlowDefinition_ = dialogueFlowDefinition; + setParameter(std::string("DialogueFlowDefinition"), dialogueFlowDefinition); } -void ModifyDialogueFlowRequest::setDialogueFlowId(const std::string& dialogueFlowId) -{ - dialogueFlowId_ = dialogueFlowId; - setParameter("DialogueFlowId", dialogueFlowId); +std::string ModifyDialogueFlowRequest::getDialogueFlowId() const { + return dialogueFlowId_; +} + +void ModifyDialogueFlowRequest::setDialogueFlowId(const std::string &dialogueFlowId) { + dialogueFlowId_ = dialogueFlowId; + setParameter(std::string("DialogueFlowId"), dialogueFlowId); } diff --git a/outboundbot/src/model/ModifyDialogueFlowResult.cc b/outboundbot/src/model/ModifyDialogueFlowResult.cc index 80b8c1015..8697f6aee 100644 --- a/outboundbot/src/model/ModifyDialogueFlowResult.cc +++ b/outboundbot/src/model/ModifyDialogueFlowResult.cc @@ -39,18 +39,18 @@ void ModifyDialogueFlowResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["DialogueFlowDefinition"].isNull()) - dialogueFlowDefinition_ = value["DialogueFlowDefinition"].asString(); - if(!value["DialogueFlowId"].isNull()) - dialogueFlowId_ = value["DialogueFlowId"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); + if(!value["DialogueFlowDefinition"].isNull()) + dialogueFlowDefinition_ = value["DialogueFlowDefinition"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["DialogueFlowId"].isNull()) + dialogueFlowId_ = value["DialogueFlowId"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } diff --git a/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoRequest.cc b/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoRequest.cc index 26ff9d3b5..3d7e90313 100644 --- a/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoRequest.cc +++ b/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ModifyEmptyNumberNoMoreCallsInfoRequest; - -ModifyEmptyNumberNoMoreCallsInfoRequest::ModifyEmptyNumberNoMoreCallsInfoRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyEmptyNumberNoMoreCallsInfo") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyEmptyNumberNoMoreCallsInfoRequest::~ModifyEmptyNumberNoMoreCallsInfoRequest() -{} - -int ModifyEmptyNumberNoMoreCallsInfoRequest::getStrategyLevel()const -{ - return strategyLevel_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyEmptyNumberNoMoreCallsInfoRequest; + +ModifyEmptyNumberNoMoreCallsInfoRequest::ModifyEmptyNumberNoMoreCallsInfoRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyEmptyNumberNoMoreCallsInfo") { + setMethod(HttpRequest::Method::Post); } -void ModifyEmptyNumberNoMoreCallsInfoRequest::setStrategyLevel(int strategyLevel) -{ - strategyLevel_ = strategyLevel; - setParameter("StrategyLevel", std::to_string(strategyLevel)); +ModifyEmptyNumberNoMoreCallsInfoRequest::~ModifyEmptyNumberNoMoreCallsInfoRequest() {} + +int ModifyEmptyNumberNoMoreCallsInfoRequest::getStrategyLevel() const { + return strategyLevel_; } -bool ModifyEmptyNumberNoMoreCallsInfoRequest::getEmptyNumberNoMoreCalls()const -{ - return emptyNumberNoMoreCalls_; +void ModifyEmptyNumberNoMoreCallsInfoRequest::setStrategyLevel(int strategyLevel) { + strategyLevel_ = strategyLevel; + setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel)); } -void ModifyEmptyNumberNoMoreCallsInfoRequest::setEmptyNumberNoMoreCalls(bool emptyNumberNoMoreCalls) -{ - emptyNumberNoMoreCalls_ = emptyNumberNoMoreCalls; - setParameter("EmptyNumberNoMoreCalls", emptyNumberNoMoreCalls ? "true" : "false"); +bool ModifyEmptyNumberNoMoreCallsInfoRequest::getEmptyNumberNoMoreCalls() const { + return emptyNumberNoMoreCalls_; } -std::string ModifyEmptyNumberNoMoreCallsInfoRequest::getEntryId()const -{ - return entryId_; +void ModifyEmptyNumberNoMoreCallsInfoRequest::setEmptyNumberNoMoreCalls(bool emptyNumberNoMoreCalls) { + emptyNumberNoMoreCalls_ = emptyNumberNoMoreCalls; + setParameter(std::string("EmptyNumberNoMoreCalls"), emptyNumberNoMoreCalls ? "true" : "false"); } -void ModifyEmptyNumberNoMoreCallsInfoRequest::setEntryId(const std::string& entryId) -{ - entryId_ = entryId; - setParameter("EntryId", entryId); +std::string ModifyEmptyNumberNoMoreCallsInfoRequest::getEntryId() const { + return entryId_; +} + +void ModifyEmptyNumberNoMoreCallsInfoRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); } diff --git a/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoResult.cc b/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoResult.cc index 76b2e9769..23a953701 100644 --- a/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoResult.cc +++ b/outboundbot/src/model/ModifyEmptyNumberNoMoreCallsInfoResult.cc @@ -39,14 +39,14 @@ void ModifyEmptyNumberNoMoreCallsInfoResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/ModifyGlobalQuestionRequest.cc b/outboundbot/src/model/ModifyGlobalQuestionRequest.cc index 2272d0dbf..9730c31a6 100644 --- a/outboundbot/src/model/ModifyGlobalQuestionRequest.cc +++ b/outboundbot/src/model/ModifyGlobalQuestionRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ModifyGlobalQuestionRequest; - -ModifyGlobalQuestionRequest::ModifyGlobalQuestionRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyGlobalQuestion") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyGlobalQuestionRequest::~ModifyGlobalQuestionRequest() -{} - -std::string ModifyGlobalQuestionRequest::getGlobalQuestionId()const -{ - return globalQuestionId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyGlobalQuestionRequest; + +ModifyGlobalQuestionRequest::ModifyGlobalQuestionRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyGlobalQuestion") { + setMethod(HttpRequest::Method::Post); } -void ModifyGlobalQuestionRequest::setGlobalQuestionId(const std::string& globalQuestionId) -{ - globalQuestionId_ = globalQuestionId; - setParameter("GlobalQuestionId", globalQuestionId); +ModifyGlobalQuestionRequest::~ModifyGlobalQuestionRequest() {} + +std::string ModifyGlobalQuestionRequest::getGlobalQuestionId() const { + return globalQuestionId_; } -std::string ModifyGlobalQuestionRequest::getGlobalQuestionName()const -{ - return globalQuestionName_; +void ModifyGlobalQuestionRequest::setGlobalQuestionId(const std::string &globalQuestionId) { + globalQuestionId_ = globalQuestionId; + setParameter(std::string("GlobalQuestionId"), globalQuestionId); } -void ModifyGlobalQuestionRequest::setGlobalQuestionName(const std::string& globalQuestionName) -{ - globalQuestionName_ = globalQuestionName; - setParameter("GlobalQuestionName", globalQuestionName); +std::string ModifyGlobalQuestionRequest::getGlobalQuestionName() const { + return globalQuestionName_; } -std::string ModifyGlobalQuestionRequest::getQuestions()const -{ - return questions_; +void ModifyGlobalQuestionRequest::setGlobalQuestionName(const std::string &globalQuestionName) { + globalQuestionName_ = globalQuestionName; + setParameter(std::string("GlobalQuestionName"), globalQuestionName); } -void ModifyGlobalQuestionRequest::setQuestions(const std::string& questions) -{ - questions_ = questions; - setParameter("Questions", questions); +std::string ModifyGlobalQuestionRequest::getQuestions() const { + return questions_; } -std::string ModifyGlobalQuestionRequest::getAnswers()const -{ - return answers_; +void ModifyGlobalQuestionRequest::setQuestions(const std::string &questions) { + questions_ = questions; + setParameter(std::string("Questions"), questions); } -void ModifyGlobalQuestionRequest::setAnswers(const std::string& answers) -{ - answers_ = answers; - setParameter("Answers", answers); +std::string ModifyGlobalQuestionRequest::getAnswers() const { + return answers_; } -std::string ModifyGlobalQuestionRequest::getScriptId()const -{ - return scriptId_; +void ModifyGlobalQuestionRequest::setAnswers(const std::string &answers) { + answers_ = answers; + setParameter(std::string("Answers"), answers); } -void ModifyGlobalQuestionRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ModifyGlobalQuestionRequest::getScriptId() const { + return scriptId_; } -std::string ModifyGlobalQuestionRequest::getInstanceId()const -{ - return instanceId_; +void ModifyGlobalQuestionRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ModifyGlobalQuestionRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyGlobalQuestionRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyGlobalQuestionRequest::getGlobalQuestionType()const -{ - return globalQuestionType_; +void ModifyGlobalQuestionRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyGlobalQuestionRequest::setGlobalQuestionType(const std::string& globalQuestionType) -{ - globalQuestionType_ = globalQuestionType; - setParameter("GlobalQuestionType", globalQuestionType); +std::string ModifyGlobalQuestionRequest::getGlobalQuestionType() const { + return globalQuestionType_; +} + +void ModifyGlobalQuestionRequest::setGlobalQuestionType(const std::string &globalQuestionType) { + globalQuestionType_ = globalQuestionType; + setParameter(std::string("GlobalQuestionType"), globalQuestionType); } diff --git a/outboundbot/src/model/ModifyGlobalQuestionResult.cc b/outboundbot/src/model/ModifyGlobalQuestionResult.cc index 0f2f32ba0..81bad9f7e 100644 --- a/outboundbot/src/model/ModifyGlobalQuestionResult.cc +++ b/outboundbot/src/model/ModifyGlobalQuestionResult.cc @@ -39,16 +39,16 @@ void ModifyGlobalQuestionResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["DialogueQuestionId"].isNull()) - dialogueQuestionId_ = value["DialogueQuestionId"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].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["DialogueQuestionId"].isNull()) + dialogueQuestionId_ = value["DialogueQuestionId"].asString(); } diff --git a/outboundbot/src/model/ModifyInstanceRequest.cc b/outboundbot/src/model/ModifyInstanceRequest.cc index 0898cb9a4..c4dbb46a8 100644 --- a/outboundbot/src/model/ModifyInstanceRequest.cc +++ b/outboundbot/src/model/ModifyInstanceRequest.cc @@ -1,141 +1,116 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ModifyInstanceRequest; - -ModifyInstanceRequest::ModifyInstanceRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceRequest::~ModifyInstanceRequest() -{} - -int ModifyInstanceRequest::getMaxConcurrentConversation()const -{ - return maxConcurrentConversation_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyInstanceRequest; + +ModifyInstanceRequest::ModifyInstanceRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyInstance") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation) -{ - maxConcurrentConversation_ = maxConcurrentConversation; - setParameter("MaxConcurrentConversation", std::to_string(maxConcurrentConversation)); +ModifyInstanceRequest::~ModifyInstanceRequest() {} + +int ModifyInstanceRequest::getMaxConcurrentConversation() const { + return maxConcurrentConversation_; } -std::string ModifyInstanceRequest::getSecretKey()const -{ - return secretKey_; +void ModifyInstanceRequest::setMaxConcurrentConversation(int maxConcurrentConversation) { + maxConcurrentConversation_ = maxConcurrentConversation; + setParameter(std::string("MaxConcurrentConversation"), std::to_string(maxConcurrentConversation)); } -void ModifyInstanceRequest::setSecretKey(const std::string& secretKey) -{ - secretKey_ = secretKey; - setParameter("SecretKey", secretKey); +std::string ModifyInstanceRequest::getSecretKey() const { + return secretKey_; } -std::string ModifyInstanceRequest::getEndpoint()const -{ - return endpoint_; +void ModifyInstanceRequest::setSecretKey(const std::string &secretKey) { + secretKey_ = secretKey; + setParameter(std::string("SecretKey"), secretKey); } -void ModifyInstanceRequest::setEndpoint(const std::string& endpoint) -{ - endpoint_ = endpoint; - setParameter("Endpoint", endpoint); +std::string ModifyInstanceRequest::getEndpoint() const { + return endpoint_; } -std::vector ModifyInstanceRequest::getCallingNumber()const -{ - return callingNumber_; +void ModifyInstanceRequest::setEndpoint(const std::string &endpoint) { + endpoint_ = endpoint; + setParameter(std::string("Endpoint"), endpoint); } -void ModifyInstanceRequest::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::vector ModifyInstanceRequest::getCallingNumber() const { + return callingNumber_; } -std::string ModifyInstanceRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceRequest::setCallingNumber(const std::vector &callingNumber) { + callingNumber_ = callingNumber; } -void ModifyInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyInstanceRequest::getInstanceName()const -{ - return instanceName_; +void ModifyInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyInstanceRequest::setInstanceName(const std::string& instanceName) -{ - instanceName_ = instanceName; - setParameter("InstanceName", instanceName); +std::string ModifyInstanceRequest::getInstanceName() const { + return instanceName_; } -std::string ModifyInstanceRequest::getCallCenterInstanceId()const -{ - return callCenterInstanceId_; +void ModifyInstanceRequest::setInstanceName(const std::string &instanceName) { + instanceName_ = instanceName; + setParameter(std::string("InstanceName"), instanceName); } -void ModifyInstanceRequest::setCallCenterInstanceId(const std::string& callCenterInstanceId) -{ - callCenterInstanceId_ = callCenterInstanceId; - setParameter("CallCenterInstanceId", callCenterInstanceId); +std::string ModifyInstanceRequest::getCallCenterInstanceId() const { + return callCenterInstanceId_; } -std::string ModifyInstanceRequest::getAccessKey()const -{ - return accessKey_; +void ModifyInstanceRequest::setCallCenterInstanceId(const std::string &callCenterInstanceId) { + callCenterInstanceId_ = callCenterInstanceId; + setParameter(std::string("CallCenterInstanceId"), callCenterInstanceId); } -void ModifyInstanceRequest::setAccessKey(const std::string& accessKey) -{ - accessKey_ = accessKey; - setParameter("AccessKey", accessKey); +std::string ModifyInstanceRequest::getAccessKey() const { + return accessKey_; } -std::string ModifyInstanceRequest::getInstanceDescription()const -{ - return instanceDescription_; +void ModifyInstanceRequest::setAccessKey(const std::string &accessKey) { + accessKey_ = accessKey; + setParameter(std::string("AccessKey"), accessKey); } -void ModifyInstanceRequest::setInstanceDescription(const std::string& instanceDescription) -{ - instanceDescription_ = instanceDescription; - setParameter("InstanceDescription", instanceDescription); +std::string ModifyInstanceRequest::getInstanceDescription() const { + return instanceDescription_; } -std::string ModifyInstanceRequest::getNluServiceType()const -{ - return nluServiceType_; +void ModifyInstanceRequest::setInstanceDescription(const std::string &instanceDescription) { + instanceDescription_ = instanceDescription; + setParameter(std::string("InstanceDescription"), instanceDescription); } -void ModifyInstanceRequest::setNluServiceType(const std::string& nluServiceType) -{ - nluServiceType_ = nluServiceType; - setParameter("NluServiceType", nluServiceType); +std::string ModifyInstanceRequest::getNluServiceType() const { + return nluServiceType_; +} + +void ModifyInstanceRequest::setNluServiceType(const std::string &nluServiceType) { + nluServiceType_ = nluServiceType; + setParameter(std::string("NluServiceType"), nluServiceType); } diff --git a/outboundbot/src/model/ModifyInstanceResult.cc b/outboundbot/src/model/ModifyInstanceResult.cc index 7da27a4e5..bef3e58b2 100644 --- a/outboundbot/src/model/ModifyInstanceResult.cc +++ b/outboundbot/src/model/ModifyInstanceResult.cc @@ -40,39 +40,39 @@ void ModifyInstanceResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto instanceNode = value["Instance"]; - if(!instanceNode["CallCenterInstanceId"].isNull()) - instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString(); if(!instanceNode["CreationTime"].isNull()) instance_.creationTime = std::stol(instanceNode["CreationTime"].asString()); - if(!instanceNode["InstanceDescription"].isNull()) - instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); - if(!instanceNode["InstanceId"].isNull()) - instance_.instanceId = instanceNode["InstanceId"].asString(); - if(!instanceNode["InstanceName"].isNull()) - instance_.instanceName = instanceNode["InstanceName"].asString(); - if(!instanceNode["MaxConcurrentConversation"].isNull()) - instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].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["CallCenterInstanceId"].isNull()) + instance_.callCenterInstanceId = instanceNode["CallCenterInstanceId"].asString(); + if(!instanceNode["NluServiceType"].isNull()) + instance_.nluServiceType = instanceNode["NluServiceType"].asString(); + if(!instanceNode["InstanceName"].isNull()) + instance_.instanceName = instanceNode["InstanceName"].asString(); if(!instanceNode["CreatorName"].isNull()) instance_.creatorName = instanceNode["CreatorName"].asString(); + if(!instanceNode["MaxConcurrentConversation"].isNull()) + instance_.maxConcurrentConversation = std::stoi(instanceNode["MaxConcurrentConversation"].asString()); if(!instanceNode["OwnerName"].isNull()) instance_.ownerName = instanceNode["OwnerName"].asString(); + if(!instanceNode["CreatorId"].isNull()) + instance_.creatorId = std::stol(instanceNode["CreatorId"].asString()); + if(!instanceNode["InstanceId"].isNull()) + instance_.instanceId = instanceNode["InstanceId"].asString(); + if(!instanceNode["InstanceDescription"].isNull()) + instance_.instanceDescription = instanceNode["InstanceDescription"].asString(); auto nluProfileNode = instanceNode["NluProfile"]; 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()) - code_ = value["Code"].asString(); + if(!nluProfileNode["Endpoint"].isNull()) + instance_.nluProfile.endpoint = nluProfileNode["Endpoint"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ModifyIntentRequest.cc b/outboundbot/src/model/ModifyIntentRequest.cc index 38a239da1..4d6e81a90 100644 --- a/outboundbot/src/model/ModifyIntentRequest.cc +++ b/outboundbot/src/model/ModifyIntentRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ModifyIntentRequest; - -ModifyIntentRequest::ModifyIntentRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyIntent") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyIntentRequest::~ModifyIntentRequest() -{} - -std::string ModifyIntentRequest::getUtterances()const -{ - return utterances_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyIntentRequest; + +ModifyIntentRequest::ModifyIntentRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyIntent") { + setMethod(HttpRequest::Method::Post); } -void ModifyIntentRequest::setUtterances(const std::string& utterances) -{ - utterances_ = utterances; - setParameter("Utterances", utterances); +ModifyIntentRequest::~ModifyIntentRequest() {} + +std::string ModifyIntentRequest::getUtterances() const { + return utterances_; } -std::string ModifyIntentRequest::getKeywords()const -{ - return keywords_; +void ModifyIntentRequest::setUtterances(const std::string &utterances) { + utterances_ = utterances; + setParameter(std::string("Utterances"), utterances); } -void ModifyIntentRequest::setKeywords(const std::string& keywords) -{ - keywords_ = keywords; - setParameter("Keywords", keywords); +std::string ModifyIntentRequest::getKeywords() const { + return keywords_; } -std::string ModifyIntentRequest::getIntentDescription()const -{ - return intentDescription_; +void ModifyIntentRequest::setKeywords(const std::string &keywords) { + keywords_ = keywords; + setParameter(std::string("Keywords"), keywords); } -void ModifyIntentRequest::setIntentDescription(const std::string& intentDescription) -{ - intentDescription_ = intentDescription; - setParameter("IntentDescription", intentDescription); +std::string ModifyIntentRequest::getIntentDescription() const { + return intentDescription_; } -std::string ModifyIntentRequest::getIntentId()const -{ - return intentId_; +void ModifyIntentRequest::setIntentDescription(const std::string &intentDescription) { + intentDescription_ = intentDescription; + setParameter(std::string("IntentDescription"), intentDescription); } -void ModifyIntentRequest::setIntentId(const std::string& intentId) -{ - intentId_ = intentId; - setParameter("IntentId", intentId); +std::string ModifyIntentRequest::getIntentId() const { + return intentId_; } -std::string ModifyIntentRequest::getScriptId()const -{ - return scriptId_; +void ModifyIntentRequest::setIntentId(const std::string &intentId) { + intentId_ = intentId; + setParameter(std::string("IntentId"), intentId); } -void ModifyIntentRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ModifyIntentRequest::getScriptId() const { + return scriptId_; } -std::string ModifyIntentRequest::getInstanceId()const -{ - return instanceId_; +void ModifyIntentRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ModifyIntentRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyIntentRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyIntentRequest::getIntentName()const -{ - return intentName_; +void ModifyIntentRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyIntentRequest::setIntentName(const std::string& intentName) -{ - intentName_ = intentName; - setParameter("IntentName", intentName); +std::string ModifyIntentRequest::getIntentName() const { + return intentName_; +} + +void ModifyIntentRequest::setIntentName(const std::string &intentName) { + intentName_ = intentName; + setParameter(std::string("IntentName"), intentName); } diff --git a/outboundbot/src/model/ModifyIntentResult.cc b/outboundbot/src/model/ModifyIntentResult.cc index 3d4088873..c2208689d 100644 --- a/outboundbot/src/model/ModifyIntentResult.cc +++ b/outboundbot/src/model/ModifyIntentResult.cc @@ -39,16 +39,16 @@ void ModifyIntentResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["IntentId"].isNull()) - intentId_ = value["IntentId"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].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["IntentId"].isNull()) + intentId_ = value["IntentId"].asString(); } diff --git a/outboundbot/src/model/ModifyJobGroupRequest.cc b/outboundbot/src/model/ModifyJobGroupRequest.cc index 20c636259..2a77af0af 100644 --- a/outboundbot/src/model/ModifyJobGroupRequest.cc +++ b/outboundbot/src/model/ModifyJobGroupRequest.cc @@ -1,174 +1,143 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::ModifyJobGroupRequest; - -ModifyJobGroupRequest::ModifyJobGroupRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyJobGroup") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyJobGroupRequest::~ModifyJobGroupRequest() -{} - -std::string ModifyJobGroupRequest::getRecallStrategyJson()const -{ - return recallStrategyJson_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyJobGroupRequest; + +ModifyJobGroupRequest::ModifyJobGroupRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyJobGroup") { + setMethod(HttpRequest::Method::Post); } -void ModifyJobGroupRequest::setRecallStrategyJson(const std::string& recallStrategyJson) -{ - recallStrategyJson_ = recallStrategyJson; - setParameter("RecallStrategyJson", recallStrategyJson); +ModifyJobGroupRequest::~ModifyJobGroupRequest() {} + +std::string ModifyJobGroupRequest::getRecallStrategyJson() const { + return recallStrategyJson_; } -std::string ModifyJobGroupRequest::getDescription()const -{ - return description_; +void ModifyJobGroupRequest::setRecallStrategyJson(const std::string &recallStrategyJson) { + recallStrategyJson_ = recallStrategyJson; + setParameter(std::string("RecallStrategyJson"), recallStrategyJson); } -void ModifyJobGroupRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +std::string ModifyJobGroupRequest::getDescription() const { + return description_; } -std::string ModifyJobGroupRequest::getScriptId()const -{ - return scriptId_; +void ModifyJobGroupRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyJobGroupRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ModifyJobGroupRequest::getScriptId() const { + return scriptId_; } -std::string ModifyJobGroupRequest::getStrategyJson()const -{ - return strategyJson_; +void ModifyJobGroupRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ModifyJobGroupRequest::setStrategyJson(const std::string& strategyJson) -{ - strategyJson_ = strategyJson; - setParameter("StrategyJson", strategyJson); +std::string ModifyJobGroupRequest::getStrategyJson() const { + return strategyJson_; } -long ModifyJobGroupRequest::getRingingDuration()const -{ - return ringingDuration_; +void ModifyJobGroupRequest::setStrategyJson(const std::string &strategyJson) { + strategyJson_ = strategyJson; + setParameter(std::string("StrategyJson"), strategyJson); } -void ModifyJobGroupRequest::setRingingDuration(long ringingDuration) -{ - ringingDuration_ = ringingDuration; - setParameter("RingingDuration", std::to_string(ringingDuration)); +long ModifyJobGroupRequest::getRingingDuration() const { + return ringingDuration_; } -std::string ModifyJobGroupRequest::getScenarioId()const -{ - return scenarioId_; +void ModifyJobGroupRequest::setRingingDuration(long ringingDuration) { + ringingDuration_ = ringingDuration; + setParameter(std::string("RingingDuration"), std::to_string(ringingDuration)); } -void ModifyJobGroupRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); +std::string ModifyJobGroupRequest::getScenarioId() const { + return scenarioId_; } -std::string ModifyJobGroupRequest::getJobGroupStatus()const -{ - return jobGroupStatus_; +void ModifyJobGroupRequest::setScenarioId(const std::string &scenarioId) { + scenarioId_ = scenarioId; + setParameter(std::string("ScenarioId"), scenarioId); } -void ModifyJobGroupRequest::setJobGroupStatus(const std::string& jobGroupStatus) -{ - jobGroupStatus_ = jobGroupStatus; - setParameter("JobGroupStatus", jobGroupStatus); +std::string ModifyJobGroupRequest::getJobGroupStatus() const { + return jobGroupStatus_; } -std::string ModifyJobGroupRequest::getPriority()const -{ - return priority_; +void ModifyJobGroupRequest::setJobGroupStatus(const std::string &jobGroupStatus) { + jobGroupStatus_ = jobGroupStatus; + setParameter(std::string("JobGroupStatus"), jobGroupStatus); } -void ModifyJobGroupRequest::setPriority(const std::string& priority) -{ - priority_ = priority; - setParameter("Priority", priority); +std::string ModifyJobGroupRequest::getPriority() const { + return priority_; } -std::vector ModifyJobGroupRequest::getCallingNumber()const -{ - return callingNumber_; +void ModifyJobGroupRequest::setPriority(const std::string &priority) { + priority_ = priority; + setParameter(std::string("Priority"), priority); } -void ModifyJobGroupRequest::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::vector ModifyJobGroupRequest::getCallingNumber() const { + return callingNumber_; } -std::string ModifyJobGroupRequest::getInstanceId()const -{ - return instanceId_; +void ModifyJobGroupRequest::setCallingNumber(const std::vector &callingNumber) { + callingNumber_ = callingNumber; } -void ModifyJobGroupRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyJobGroupRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyJobGroupRequest::getJobGroupId()const -{ - return jobGroupId_; +void ModifyJobGroupRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyJobGroupRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string ModifyJobGroupRequest::getJobGroupId() const { + return jobGroupId_; } -std::string ModifyJobGroupRequest::getName()const -{ - return name_; +void ModifyJobGroupRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void ModifyJobGroupRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string ModifyJobGroupRequest::getName() const { + return name_; } -long ModifyJobGroupRequest::getMinConcurrency()const -{ - return minConcurrency_; +void ModifyJobGroupRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void ModifyJobGroupRequest::setMinConcurrency(long minConcurrency) -{ - minConcurrency_ = minConcurrency; - setParameter("MinConcurrency", std::to_string(minConcurrency)); +long ModifyJobGroupRequest::getMinConcurrency() const { + return minConcurrency_; +} + +void ModifyJobGroupRequest::setMinConcurrency(long minConcurrency) { + minConcurrency_ = minConcurrency; + setParameter(std::string("MinConcurrency"), std::to_string(minConcurrency)); } diff --git a/outboundbot/src/model/ModifyOutboundCallNumberRequest.cc b/outboundbot/src/model/ModifyOutboundCallNumberRequest.cc index 40f901823..b80f2b27e 100644 --- a/outboundbot/src/model/ModifyOutboundCallNumberRequest.cc +++ b/outboundbot/src/model/ModifyOutboundCallNumberRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ModifyOutboundCallNumberRequest; - -ModifyOutboundCallNumberRequest::ModifyOutboundCallNumberRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyOutboundCallNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyOutboundCallNumberRequest::~ModifyOutboundCallNumberRequest() -{} - -std::string ModifyOutboundCallNumberRequest::getOutboundCallNumberId()const -{ - return outboundCallNumberId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyOutboundCallNumberRequest; + +ModifyOutboundCallNumberRequest::ModifyOutboundCallNumberRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyOutboundCallNumber") { + setMethod(HttpRequest::Method::Post); } -void ModifyOutboundCallNumberRequest::setOutboundCallNumberId(const std::string& outboundCallNumberId) -{ - outboundCallNumberId_ = outboundCallNumberId; - setParameter("OutboundCallNumberId", outboundCallNumberId); +ModifyOutboundCallNumberRequest::~ModifyOutboundCallNumberRequest() {} + +std::string ModifyOutboundCallNumberRequest::getOutboundCallNumberId() const { + return outboundCallNumberId_; } -int ModifyOutboundCallNumberRequest::getRateLimitCount()const -{ - return rateLimitCount_; +void ModifyOutboundCallNumberRequest::setOutboundCallNumberId(const std::string &outboundCallNumberId) { + outboundCallNumberId_ = outboundCallNumberId; + setParameter(std::string("OutboundCallNumberId"), outboundCallNumberId); } -void ModifyOutboundCallNumberRequest::setRateLimitCount(int rateLimitCount) -{ - rateLimitCount_ = rateLimitCount; - setParameter("RateLimitCount", std::to_string(rateLimitCount)); +int ModifyOutboundCallNumberRequest::getRateLimitCount() const { + return rateLimitCount_; } -std::string ModifyOutboundCallNumberRequest::getNumber()const -{ - return number_; +void ModifyOutboundCallNumberRequest::setRateLimitCount(int rateLimitCount) { + rateLimitCount_ = rateLimitCount; + setParameter(std::string("RateLimitCount"), std::to_string(rateLimitCount)); } -void ModifyOutboundCallNumberRequest::setNumber(const std::string& number) -{ - number_ = number; - setParameter("Number", number); +std::string ModifyOutboundCallNumberRequest::getNumber() const { + return number_; } -std::string ModifyOutboundCallNumberRequest::getInstanceId()const -{ - return instanceId_; +void ModifyOutboundCallNumberRequest::setNumber(const std::string &number) { + number_ = number; + setParameter(std::string("Number"), number); } -void ModifyOutboundCallNumberRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyOutboundCallNumberRequest::getInstanceId() const { + return instanceId_; } -int ModifyOutboundCallNumberRequest::getRateLimitPeriod()const -{ - return rateLimitPeriod_; +void ModifyOutboundCallNumberRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyOutboundCallNumberRequest::setRateLimitPeriod(int rateLimitPeriod) -{ - rateLimitPeriod_ = rateLimitPeriod; - setParameter("RateLimitPeriod", std::to_string(rateLimitPeriod)); +int ModifyOutboundCallNumberRequest::getRateLimitPeriod() const { + return rateLimitPeriod_; +} + +void ModifyOutboundCallNumberRequest::setRateLimitPeriod(int rateLimitPeriod) { + rateLimitPeriod_ = rateLimitPeriod; + setParameter(std::string("RateLimitPeriod"), std::to_string(rateLimitPeriod)); } diff --git a/outboundbot/src/model/ModifyOutboundCallNumberResult.cc b/outboundbot/src/model/ModifyOutboundCallNumberResult.cc index 6363f9e8e..f69606ef6 100644 --- a/outboundbot/src/model/ModifyOutboundCallNumberResult.cc +++ b/outboundbot/src/model/ModifyOutboundCallNumberResult.cc @@ -48,10 +48,10 @@ void ModifyOutboundCallNumberResult::parse(const std::string &payload) outboundCallNumber_.rateLimitCount = outboundCallNumberNode["RateLimitCount"].asString(); if(!outboundCallNumberNode["RateLimitPeriod"].isNull()) outboundCallNumber_.rateLimitPeriod = outboundCallNumberNode["RateLimitPeriod"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ModifyScriptRequest.cc b/outboundbot/src/model/ModifyScriptRequest.cc index 5be8110c4..7fe8ba2e2 100644 --- a/outboundbot/src/model/ModifyScriptRequest.cc +++ b/outboundbot/src/model/ModifyScriptRequest.cc @@ -1,176 +1,142 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::ModifyScriptRequest; - -ModifyScriptRequest::ModifyScriptRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyScript") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyScriptRequest::~ModifyScriptRequest() -{} - -std::string ModifyScriptRequest::getTtsConfig()const -{ - return ttsConfig_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyScriptRequest; + +ModifyScriptRequest::ModifyScriptRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyScript") { + setMethod(HttpRequest::Method::Post); } -void ModifyScriptRequest::setTtsConfig(const std::string& ttsConfig) -{ - ttsConfig_ = ttsConfig; - setParameter("TtsConfig", ttsConfig); +ModifyScriptRequest::~ModifyScriptRequest() {} + +std::string ModifyScriptRequest::getTtsConfig() const { + return ttsConfig_; } -std::string ModifyScriptRequest::getIndustry()const -{ - return industry_; +void ModifyScriptRequest::setTtsConfig(const std::string &ttsConfig) { + ttsConfig_ = ttsConfig; + setParameter(std::string("TtsConfig"), ttsConfig); } -void ModifyScriptRequest::setIndustry(const std::string& industry) -{ - industry_ = industry; - setParameter("Industry", industry); +std::string ModifyScriptRequest::getIndustry() const { + return industry_; } -std::string ModifyScriptRequest::getScriptName()const -{ - return scriptName_; +void ModifyScriptRequest::setIndustry(const std::string &industry) { + industry_ = industry; + setParameter(std::string("Industry"), industry); } -void ModifyScriptRequest::setScriptName(const std::string& scriptName) -{ - scriptName_ = scriptName; - setParameter("ScriptName", scriptName); +std::string ModifyScriptRequest::getScriptName() const { + return scriptName_; } -std::string ModifyScriptRequest::getScene()const -{ - return scene_; +void ModifyScriptRequest::setScriptName(const std::string &scriptName) { + scriptName_ = scriptName; + setParameter(std::string("ScriptName"), scriptName); } -void ModifyScriptRequest::setScene(const std::string& scene) -{ - scene_ = scene; - setParameter("Scene", scene); +std::string ModifyScriptRequest::getScene() const { + return scene_; } -std::string ModifyScriptRequest::getScriptId()const -{ - return scriptId_; +void ModifyScriptRequest::setScene(const std::string &scene) { + scene_ = scene; + setParameter(std::string("Scene"), scene); } -void ModifyScriptRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ModifyScriptRequest::getScriptId() const { + return scriptId_; } -std::vector ModifyScriptRequest::getScriptWaveform()const -{ - return scriptWaveform_; +void ModifyScriptRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ModifyScriptRequest::setScriptWaveform(const std::vector& scriptWaveform) -{ - scriptWaveform_ = scriptWaveform; - for(int dep1 = 0; dep1!= scriptWaveform.size(); dep1++) { - setParameter("ScriptWaveform."+ std::to_string(dep1), scriptWaveform.at(dep1)); - } +std::vector ModifyScriptRequest::getScriptWaveform() const { + return scriptWaveform_; } -std::string ModifyScriptRequest::getAsrConfig()const -{ - return asrConfig_; +void ModifyScriptRequest::setScriptWaveform(const std::vector &scriptWaveform) { + scriptWaveform_ = scriptWaveform; } -void ModifyScriptRequest::setAsrConfig(const std::string& asrConfig) -{ - asrConfig_ = asrConfig; - setParameter("AsrConfig", asrConfig); +std::string ModifyScriptRequest::getAsrConfig() const { + return asrConfig_; } -std::string ModifyScriptRequest::getNlsConfig()const -{ - return nlsConfig_; +void ModifyScriptRequest::setAsrConfig(const std::string &asrConfig) { + asrConfig_ = asrConfig; + setParameter(std::string("AsrConfig"), asrConfig); } -void ModifyScriptRequest::setNlsConfig(const std::string& nlsConfig) -{ - nlsConfig_ = nlsConfig; - setParameter("NlsConfig", nlsConfig); +std::string ModifyScriptRequest::getNlsConfig() const { + return nlsConfig_; } -bool ModifyScriptRequest::getMiniPlaybackEnabled()const -{ - return miniPlaybackEnabled_; +void ModifyScriptRequest::setNlsConfig(const std::string &nlsConfig) { + nlsConfig_ = nlsConfig; + setParameter(std::string("NlsConfig"), nlsConfig); } -void ModifyScriptRequest::setMiniPlaybackEnabled(bool miniPlaybackEnabled) -{ - miniPlaybackEnabled_ = miniPlaybackEnabled; - setParameter("MiniPlaybackEnabled", miniPlaybackEnabled ? "true" : "false"); +bool ModifyScriptRequest::getMiniPlaybackEnabled() const { + return miniPlaybackEnabled_; } -std::string ModifyScriptRequest::getChatbotId()const -{ - return chatbotId_; +void ModifyScriptRequest::setMiniPlaybackEnabled(bool miniPlaybackEnabled) { + miniPlaybackEnabled_ = miniPlaybackEnabled; + setParameter(std::string("MiniPlaybackEnabled"), miniPlaybackEnabled ? "true" : "false"); } -void ModifyScriptRequest::setChatbotId(const std::string& chatbotId) -{ - chatbotId_ = chatbotId; - setParameter("ChatbotId", chatbotId); +std::string ModifyScriptRequest::getChatbotId() const { + return chatbotId_; } -std::string ModifyScriptRequest::getInstanceId()const -{ - return instanceId_; +void ModifyScriptRequest::setChatbotId(const std::string &chatbotId) { + chatbotId_ = chatbotId; + setParameter(std::string("ChatbotId"), chatbotId); } -void ModifyScriptRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyScriptRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyScriptRequest::getScriptDescription()const -{ - return scriptDescription_; +void ModifyScriptRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyScriptRequest::setScriptDescription(const std::string& scriptDescription) -{ - scriptDescription_ = scriptDescription; - setParameter("ScriptDescription", scriptDescription); +std::string ModifyScriptRequest::getScriptDescription() const { + return scriptDescription_; } -std::vector ModifyScriptRequest::getScriptContent()const -{ - return scriptContent_; +void ModifyScriptRequest::setScriptDescription(const std::string &scriptDescription) { + scriptDescription_ = scriptDescription; + setParameter(std::string("ScriptDescription"), scriptDescription); } -void ModifyScriptRequest::setScriptContent(const std::vector& scriptContent) -{ - scriptContent_ = scriptContent; - for(int dep1 = 0; dep1!= scriptContent.size(); dep1++) { - setParameter("ScriptContent."+ std::to_string(dep1), scriptContent.at(dep1)); - } +std::vector ModifyScriptRequest::getScriptContent() const { + return scriptContent_; +} + +void ModifyScriptRequest::setScriptContent(const std::vector &scriptContent) { + scriptContent_ = scriptContent; } diff --git a/outboundbot/src/model/ModifyScriptVoiceConfigRequest.cc b/outboundbot/src/model/ModifyScriptVoiceConfigRequest.cc index 31b458bb3..945564ce6 100644 --- a/outboundbot/src/model/ModifyScriptVoiceConfigRequest.cc +++ b/outboundbot/src/model/ModifyScriptVoiceConfigRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ModifyScriptVoiceConfigRequest; - -ModifyScriptVoiceConfigRequest::ModifyScriptVoiceConfigRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyScriptVoiceConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyScriptVoiceConfigRequest::~ModifyScriptVoiceConfigRequest() -{} - -std::string ModifyScriptVoiceConfigRequest::getType()const -{ - return type_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyScriptVoiceConfigRequest; + +ModifyScriptVoiceConfigRequest::ModifyScriptVoiceConfigRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyScriptVoiceConfig") { + setMethod(HttpRequest::Method::Post); } -void ModifyScriptVoiceConfigRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +ModifyScriptVoiceConfigRequest::~ModifyScriptVoiceConfigRequest() {} + +std::string ModifyScriptVoiceConfigRequest::getType() const { + return type_; } -std::string ModifyScriptVoiceConfigRequest::getScriptId()const -{ - return scriptId_; +void ModifyScriptVoiceConfigRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void ModifyScriptVoiceConfigRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ModifyScriptVoiceConfigRequest::getScriptId() const { + return scriptId_; } -std::string ModifyScriptVoiceConfigRequest::getScriptVoiceConfigId()const -{ - return scriptVoiceConfigId_; +void ModifyScriptVoiceConfigRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ModifyScriptVoiceConfigRequest::setScriptVoiceConfigId(const std::string& scriptVoiceConfigId) -{ - scriptVoiceConfigId_ = scriptVoiceConfigId; - setParameter("ScriptVoiceConfigId", scriptVoiceConfigId); +std::string ModifyScriptVoiceConfigRequest::getScriptVoiceConfigId() const { + return scriptVoiceConfigId_; } -std::string ModifyScriptVoiceConfigRequest::getInstanceId()const -{ - return instanceId_; +void ModifyScriptVoiceConfigRequest::setScriptVoiceConfigId(const std::string &scriptVoiceConfigId) { + scriptVoiceConfigId_ = scriptVoiceConfigId; + setParameter(std::string("ScriptVoiceConfigId"), scriptVoiceConfigId); } -void ModifyScriptVoiceConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyScriptVoiceConfigRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyScriptVoiceConfigRequest::getScriptWaveformRelation()const -{ - return scriptWaveformRelation_; +void ModifyScriptVoiceConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyScriptVoiceConfigRequest::setScriptWaveformRelation(const std::string& scriptWaveformRelation) -{ - scriptWaveformRelation_ = scriptWaveformRelation; - setParameter("ScriptWaveformRelation", scriptWaveformRelation); +std::string ModifyScriptVoiceConfigRequest::getScriptWaveformRelation() const { + return scriptWaveformRelation_; +} + +void ModifyScriptVoiceConfigRequest::setScriptWaveformRelation(const std::string &scriptWaveformRelation) { + scriptWaveformRelation_ = scriptWaveformRelation; + setParameter(std::string("ScriptWaveformRelation"), scriptWaveformRelation); } diff --git a/outboundbot/src/model/ModifyScriptVoiceConfigResult.cc b/outboundbot/src/model/ModifyScriptVoiceConfigResult.cc index 2dca08017..bc966932f 100644 --- a/outboundbot/src/model/ModifyScriptVoiceConfigResult.cc +++ b/outboundbot/src/model/ModifyScriptVoiceConfigResult.cc @@ -40,24 +40,24 @@ void ModifyScriptVoiceConfigResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto scriptVoiceConfigNode = value["ScriptVoiceConfig"]; - if(!scriptVoiceConfigNode["InstanceId"].isNull()) - scriptVoiceConfig_.instanceId = scriptVoiceConfigNode["InstanceId"].asString(); - if(!scriptVoiceConfigNode["ScriptContent"].isNull()) - scriptVoiceConfig_.scriptContent = scriptVoiceConfigNode["ScriptContent"].asString(); - if(!scriptVoiceConfigNode["ScriptId"].isNull()) - scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString(); + if(!scriptVoiceConfigNode["Type"].isNull()) + scriptVoiceConfig_.type = scriptVoiceConfigNode["Type"].asString(); if(!scriptVoiceConfigNode["ScriptVoiceConfigId"].isNull()) scriptVoiceConfig_.scriptVoiceConfigId = scriptVoiceConfigNode["ScriptVoiceConfigId"].asString(); + if(!scriptVoiceConfigNode["ScriptContent"].isNull()) + scriptVoiceConfig_.scriptContent = scriptVoiceConfigNode["ScriptContent"].asString(); + if(!scriptVoiceConfigNode["InstanceId"].isNull()) + scriptVoiceConfig_.instanceId = scriptVoiceConfigNode["InstanceId"].asString(); + if(!scriptVoiceConfigNode["ScriptId"].isNull()) + scriptVoiceConfig_.scriptId = scriptVoiceConfigNode["ScriptId"].asString(); if(!scriptVoiceConfigNode["ScriptWaveformRelation"].isNull()) scriptVoiceConfig_.scriptWaveformRelation = scriptVoiceConfigNode["ScriptWaveformRelation"].asString(); if(!scriptVoiceConfigNode["Source"].isNull()) scriptVoiceConfig_.source = scriptVoiceConfigNode["Source"].asString(); - if(!scriptVoiceConfigNode["Type"].isNull()) - scriptVoiceConfig_.type = scriptVoiceConfigNode["Type"].asString(); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/ModifyTTSConfigRequest.cc b/outboundbot/src/model/ModifyTTSConfigRequest.cc index 8f0c9ebc2..5359c1355 100644 --- a/outboundbot/src/model/ModifyTTSConfigRequest.cc +++ b/outboundbot/src/model/ModifyTTSConfigRequest.cc @@ -1,106 +1,90 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ModifyTTSConfigRequest; - -ModifyTTSConfigRequest::ModifyTTSConfigRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyTTSConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyTTSConfigRequest::~ModifyTTSConfigRequest() -{} - -std::string ModifyTTSConfigRequest::getVoice()const -{ - return voice_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyTTSConfigRequest; + +ModifyTTSConfigRequest::ModifyTTSConfigRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyTTSConfig") { + setMethod(HttpRequest::Method::Post); } -void ModifyTTSConfigRequest::setVoice(const std::string& voice) -{ - voice_ = voice; - setParameter("Voice", voice); +ModifyTTSConfigRequest::~ModifyTTSConfigRequest() {} + +std::string ModifyTTSConfigRequest::getVoice() const { + return voice_; } -std::string ModifyTTSConfigRequest::getNlsServiceType()const -{ - return nlsServiceType_; +void ModifyTTSConfigRequest::setVoice(const std::string &voice) { + voice_ = voice; + setParameter(std::string("Voice"), voice); } -void ModifyTTSConfigRequest::setNlsServiceType(const std::string& nlsServiceType) -{ - nlsServiceType_ = nlsServiceType; - setParameter("NlsServiceType", nlsServiceType); +std::string ModifyTTSConfigRequest::getNlsServiceType() const { + return nlsServiceType_; } -std::string ModifyTTSConfigRequest::getVolume()const -{ - return volume_; +void ModifyTTSConfigRequest::setNlsServiceType(const std::string &nlsServiceType) { + nlsServiceType_ = nlsServiceType; + setParameter(std::string("NlsServiceType"), nlsServiceType); } -void ModifyTTSConfigRequest::setVolume(const std::string& volume) -{ - volume_ = volume; - setParameter("Volume", volume); +std::string ModifyTTSConfigRequest::getVolume() const { + return volume_; } -std::string ModifyTTSConfigRequest::getScriptId()const -{ - return scriptId_; +void ModifyTTSConfigRequest::setVolume(const std::string &volume) { + volume_ = volume; + setParameter(std::string("Volume"), volume); } -void ModifyTTSConfigRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ModifyTTSConfigRequest::getScriptId() const { + return scriptId_; } -std::string ModifyTTSConfigRequest::getInstanceId()const -{ - return instanceId_; +void ModifyTTSConfigRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ModifyTTSConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyTTSConfigRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyTTSConfigRequest::getAppKey()const -{ - return appKey_; +void ModifyTTSConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyTTSConfigRequest::setAppKey(const std::string& appKey) -{ - appKey_ = appKey; - setParameter("AppKey", appKey); +std::string ModifyTTSConfigRequest::getAppKey() const { + return appKey_; } -std::string ModifyTTSConfigRequest::getSpeechRate()const -{ - return speechRate_; +void ModifyTTSConfigRequest::setAppKey(const std::string &appKey) { + appKey_ = appKey; + setParameter(std::string("AppKey"), appKey); } -void ModifyTTSConfigRequest::setSpeechRate(const std::string& speechRate) -{ - speechRate_ = speechRate; - setParameter("SpeechRate", speechRate); +std::string ModifyTTSConfigRequest::getSpeechRate() const { + return speechRate_; +} + +void ModifyTTSConfigRequest::setSpeechRate(const std::string &speechRate) { + speechRate_ = speechRate; + setParameter(std::string("SpeechRate"), speechRate); } diff --git a/outboundbot/src/model/ModifyTagGroupsRequest.cc b/outboundbot/src/model/ModifyTagGroupsRequest.cc index 4b38a0b40..812daba79 100644 --- a/outboundbot/src/model/ModifyTagGroupsRequest.cc +++ b/outboundbot/src/model/ModifyTagGroupsRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::ModifyTagGroupsRequest; - -ModifyTagGroupsRequest::ModifyTagGroupsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ModifyTagGroups") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyTagGroupsRequest::~ModifyTagGroupsRequest() -{} - -std::string ModifyTagGroupsRequest::getTags()const -{ - return tags_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ModifyTagGroupsRequest; + +ModifyTagGroupsRequest::ModifyTagGroupsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ModifyTagGroups") { + setMethod(HttpRequest::Method::Post); } -void ModifyTagGroupsRequest::setTags(const std::string& tags) -{ - tags_ = tags; - setParameter("Tags", tags); +ModifyTagGroupsRequest::~ModifyTagGroupsRequest() {} + +std::string ModifyTagGroupsRequest::getTags() const { + return tags_; } -std::string ModifyTagGroupsRequest::getScriptId()const -{ - return scriptId_; +void ModifyTagGroupsRequest::setTags(const std::string &tags) { + tags_ = tags; + setParameter(std::string("Tags"), tags); } -void ModifyTagGroupsRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string ModifyTagGroupsRequest::getScriptId() const { + return scriptId_; } -std::string ModifyTagGroupsRequest::getInstanceId()const -{ - return instanceId_; +void ModifyTagGroupsRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void ModifyTagGroupsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyTagGroupsRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyTagGroupsRequest::getTagGroups()const -{ - return tagGroups_; +void ModifyTagGroupsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyTagGroupsRequest::setTagGroups(const std::string& tagGroups) -{ - tagGroups_ = tagGroups; - setParameter("TagGroups", tagGroups); +std::string ModifyTagGroupsRequest::getTagGroups() const { + return tagGroups_; +} + +void ModifyTagGroupsRequest::setTagGroups(const std::string &tagGroups) { + tagGroups_ = tagGroups; + setParameter(std::string("TagGroups"), tagGroups); } diff --git a/outboundbot/src/model/ModifyTagGroupsResult.cc b/outboundbot/src/model/ModifyTagGroupsResult.cc index 0391cd6b3..d94b7d4f6 100644 --- a/outboundbot/src/model/ModifyTagGroupsResult.cc +++ b/outboundbot/src/model/ModifyTagGroupsResult.cc @@ -43,36 +43,36 @@ void ModifyTagGroupsResult::parse(const std::string &payload) for (auto valueTagGroupsTagGroup : allTagGroupsNode) { TagGroup tagGroupsObject; - if(!valueTagGroupsTagGroup["ScriptId"].isNull()) - tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString(); - if(!valueTagGroupsTagGroup["TagGroup"].isNull()) - tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString(); if(!valueTagGroupsTagGroup["TagGroupId"].isNull()) tagGroupsObject.tagGroupId = valueTagGroupsTagGroup["TagGroupId"].asString(); if(!valueTagGroupsTagGroup["TagGroupIndex"].isNull()) tagGroupsObject.tagGroupIndex = std::stoi(valueTagGroupsTagGroup["TagGroupIndex"].asString()); + if(!valueTagGroupsTagGroup["TagGroup"].isNull()) + tagGroupsObject.tagGroup = valueTagGroupsTagGroup["TagGroup"].asString(); + if(!valueTagGroupsTagGroup["ScriptId"].isNull()) + tagGroupsObject.scriptId = valueTagGroupsTagGroup["ScriptId"].asString(); tagGroups_.push_back(tagGroupsObject); } auto allTagsNode = value["Tags"]["Tag"]; for (auto valueTagsTag : allTagsNode) { Tag tagsObject; - if(!valueTagsTag["ScriptId"].isNull()) - tagsObject.scriptId = valueTagsTag["ScriptId"].asString(); if(!valueTagsTag["TagGroup"].isNull()) tagsObject.tagGroup = valueTagsTag["TagGroup"].asString(); - if(!valueTagsTag["TagId"].isNull()) - tagsObject.tagId = valueTagsTag["TagId"].asString(); - if(!valueTagsTag["TagIndex"].isNull()) - tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString()); if(!valueTagsTag["TagName"].isNull()) tagsObject.tagName = valueTagsTag["TagName"].asString(); + if(!valueTagsTag["TagIndex"].isNull()) + tagsObject.tagIndex = std::stoi(valueTagsTag["TagIndex"].asString()); + if(!valueTagsTag["ScriptId"].isNull()) + tagsObject.scriptId = valueTagsTag["ScriptId"].asString(); + if(!valueTagsTag["TagId"].isNull()) + tagsObject.tagId = valueTagsTag["TagId"].asString(); tags_.push_back(tagsObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/PublishScriptForDebugRequest.cc b/outboundbot/src/model/PublishScriptForDebugRequest.cc index 7117a42df..8c2da81a8 100644 --- a/outboundbot/src/model/PublishScriptForDebugRequest.cc +++ b/outboundbot/src/model/PublishScriptForDebugRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::PublishScriptForDebugRequest; - -PublishScriptForDebugRequest::PublishScriptForDebugRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "PublishScriptForDebug") -{ - setMethod(HttpRequest::Method::Post); -} - -PublishScriptForDebugRequest::~PublishScriptForDebugRequest() -{} - -std::string PublishScriptForDebugRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::PublishScriptForDebugRequest; + +PublishScriptForDebugRequest::PublishScriptForDebugRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "PublishScriptForDebug") { + setMethod(HttpRequest::Method::Post); } -void PublishScriptForDebugRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +PublishScriptForDebugRequest::~PublishScriptForDebugRequest() {} + +std::string PublishScriptForDebugRequest::getScriptId() const { + return scriptId_; } -std::string PublishScriptForDebugRequest::getInstanceId()const -{ - return instanceId_; +void PublishScriptForDebugRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void PublishScriptForDebugRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string PublishScriptForDebugRequest::getInstanceId() const { + return instanceId_; +} + +void PublishScriptForDebugRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/PublishScriptForDebugResult.cc b/outboundbot/src/model/PublishScriptForDebugResult.cc index 330a00cc3..93df9fce9 100644 --- a/outboundbot/src/model/PublishScriptForDebugResult.cc +++ b/outboundbot/src/model/PublishScriptForDebugResult.cc @@ -39,10 +39,10 @@ void PublishScriptForDebugResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/PublishScriptRequest.cc b/outboundbot/src/model/PublishScriptRequest.cc index beea0545e..0dd709830 100644 --- a/outboundbot/src/model/PublishScriptRequest.cc +++ b/outboundbot/src/model/PublishScriptRequest.cc @@ -1,73 +1,63 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::PublishScriptRequest; - -PublishScriptRequest::PublishScriptRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "PublishScript") -{ - setMethod(HttpRequest::Method::Post); -} - -PublishScriptRequest::~PublishScriptRequest() -{} - -std::string PublishScriptRequest::getDescription()const -{ - return description_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::PublishScriptRequest; + +PublishScriptRequest::PublishScriptRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "PublishScript") { + setMethod(HttpRequest::Method::Post); } -void PublishScriptRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +PublishScriptRequest::~PublishScriptRequest() {} + +std::string PublishScriptRequest::getDescription() const { + return description_; } -std::string PublishScriptRequest::getScriptId()const -{ - return scriptId_; +void PublishScriptRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void PublishScriptRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string PublishScriptRequest::getScriptId() const { + return scriptId_; } -std::string PublishScriptRequest::getInstanceId()const -{ - return instanceId_; +void PublishScriptRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void PublishScriptRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string PublishScriptRequest::getInstanceId() const { + return instanceId_; } -long PublishScriptRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void PublishScriptRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void PublishScriptRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long PublishScriptRequest::getInstanceOwnerId() const { + return instanceOwnerId_; +} + +void PublishScriptRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } diff --git a/outboundbot/src/model/PublishScriptResult.cc b/outboundbot/src/model/PublishScriptResult.cc index 3aafa979f..dff2cfb9b 100644 --- a/outboundbot/src/model/PublishScriptResult.cc +++ b/outboundbot/src/model/PublishScriptResult.cc @@ -39,10 +39,10 @@ void PublishScriptResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/QueryJobsRequest.cc b/outboundbot/src/model/QueryJobsRequest.cc index 26d90c805..add2f9f87 100644 --- a/outboundbot/src/model/QueryJobsRequest.cc +++ b/outboundbot/src/model/QueryJobsRequest.cc @@ -1,139 +1,117 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::QueryJobsRequest; - -QueryJobsRequest::QueryJobsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "QueryJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryJobsRequest::~QueryJobsRequest() -{} - -std::string QueryJobsRequest::getTimeAlignment()const -{ - return timeAlignment_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::QueryJobsRequest; + +QueryJobsRequest::QueryJobsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "QueryJobs") { + setMethod(HttpRequest::Method::Post); } -void QueryJobsRequest::setTimeAlignment(const std::string& timeAlignment) -{ - timeAlignment_ = timeAlignment; - setParameter("TimeAlignment", timeAlignment); +QueryJobsRequest::~QueryJobsRequest() {} + +std::string QueryJobsRequest::getTimeAlignment() const { + return timeAlignment_; } -std::string QueryJobsRequest::getPhoneNumber()const -{ - return phoneNumber_; +void QueryJobsRequest::setTimeAlignment(const std::string &timeAlignment) { + timeAlignment_ = timeAlignment; + setParameter(std::string("TimeAlignment"), timeAlignment); } -void QueryJobsRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); +std::string QueryJobsRequest::getPhoneNumber() const { + return phoneNumber_; } -long QueryJobsRequest::getEndTime()const -{ - return endTime_; +void QueryJobsRequest::setPhoneNumber(const std::string &phoneNumber) { + phoneNumber_ = phoneNumber; + setParameter(std::string("PhoneNumber"), phoneNumber); } -void QueryJobsRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setParameter("EndTime", std::to_string(endTime)); +long QueryJobsRequest::getEndTime() const { + return endTime_; } -long QueryJobsRequest::getStartTime()const -{ - return startTime_; +void QueryJobsRequest::setEndTime(long endTime) { + endTime_ = endTime; + setParameter(std::string("EndTime"), std::to_string(endTime)); } -void QueryJobsRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +long QueryJobsRequest::getStartTime() const { + return startTime_; } -int QueryJobsRequest::getPageNumber()const -{ - return pageNumber_; +void QueryJobsRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); } -void QueryJobsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int QueryJobsRequest::getPageNumber() const { + return pageNumber_; } -std::string QueryJobsRequest::getContactName()const -{ - return contactName_; +void QueryJobsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void QueryJobsRequest::setContactName(const std::string& contactName) -{ - contactName_ = contactName; - setParameter("ContactName", contactName); +std::string QueryJobsRequest::getContactName() const { + return contactName_; } -std::string QueryJobsRequest::getInstanceId()const -{ - return instanceId_; +void QueryJobsRequest::setContactName(const std::string &contactName) { + contactName_ = contactName; + setParameter(std::string("ContactName"), contactName); } -void QueryJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string QueryJobsRequest::getInstanceId() const { + return instanceId_; } -std::string QueryJobsRequest::getJobGroupId()const -{ - return jobGroupId_; +void QueryJobsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void QueryJobsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string QueryJobsRequest::getJobGroupId() const { + return jobGroupId_; } -int QueryJobsRequest::getPageSize()const -{ - return pageSize_; +void QueryJobsRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void QueryJobsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryJobsRequest::getPageSize() const { + return pageSize_; } -std::string QueryJobsRequest::getScenarioId()const -{ - return scenarioId_; +void QueryJobsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QueryJobsRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); +std::string QueryJobsRequest::getScenarioId() const { + return scenarioId_; +} + +void QueryJobsRequest::setScenarioId(const std::string &scenarioId) { + scenarioId_ = scenarioId; + setParameter(std::string("ScenarioId"), scenarioId); } diff --git a/outboundbot/src/model/QueryJobsResult.cc b/outboundbot/src/model/QueryJobsResult.cc index 0791f65b6..b0598c1db 100644 --- a/outboundbot/src/model/QueryJobsResult.cc +++ b/outboundbot/src/model/QueryJobsResult.cc @@ -50,42 +50,42 @@ void QueryJobsResult::parse(const std::string &payload) for (auto jobsNodeListJob : allListNode) { Jobs::Job jobObject; - if(!jobsNodeListJob["FailureReason"].isNull()) - jobObject.failureReason = jobsNodeListJob["FailureReason"].asString(); + if(!jobsNodeListJob["Status"].isNull()) + jobObject.status = jobsNodeListJob["Status"].asString(); if(!jobsNodeListJob["JobGroupId"].isNull()) jobObject.jobGroupId = jobsNodeListJob["JobGroupId"].asString(); + if(!jobsNodeListJob["ScenarioId"].isNull()) + jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString(); + if(!jobsNodeListJob["StrategyId"].isNull()) + jobObject.strategyId = jobsNodeListJob["StrategyId"].asString(); if(!jobsNodeListJob["JobId"].isNull()) jobObject.jobId = jobsNodeListJob["JobId"].asString(); if(!jobsNodeListJob["Priority"].isNull()) jobObject.priority = std::stoi(jobsNodeListJob["Priority"].asString()); + if(!jobsNodeListJob["FailureReason"].isNull()) + jobObject.failureReason = jobsNodeListJob["FailureReason"].asString(); if(!jobsNodeListJob["ReferenceId"].isNull()) jobObject.referenceId = jobsNodeListJob["ReferenceId"].asString(); - if(!jobsNodeListJob["ScenarioId"].isNull()) - jobObject.scenarioId = jobsNodeListJob["ScenarioId"].asString(); - if(!jobsNodeListJob["Status"].isNull()) - jobObject.status = jobsNodeListJob["Status"].asString(); - if(!jobsNodeListJob["StrategyId"].isNull()) - jobObject.strategyId = jobsNodeListJob["StrategyId"].asString(); auto allContactsNode = jobsNodeListJob["Contacts"]["Contact"]; for (auto jobsNodeListJobContactsContact : allContactsNode) { Jobs::Job::Contact contactsObject; + if(!jobsNodeListJobContactsContact["PhoneNumber"].isNull()) + contactsObject.phoneNumber = jobsNodeListJobContactsContact["PhoneNumber"].asString(); + if(!jobsNodeListJobContactsContact["State"].isNull()) + contactsObject.state = jobsNodeListJobContactsContact["State"].asString(); if(!jobsNodeListJobContactsContact["ContactId"].isNull()) contactsObject.contactId = jobsNodeListJobContactsContact["ContactId"].asString(); - if(!jobsNodeListJobContactsContact["ContactName"].isNull()) - contactsObject.contactName = jobsNodeListJobContactsContact["ContactName"].asString(); if(!jobsNodeListJobContactsContact["Honorific"].isNull()) contactsObject.honorific = jobsNodeListJobContactsContact["Honorific"].asString(); if(!jobsNodeListJobContactsContact["JobId"].isNull()) contactsObject.jobId = jobsNodeListJobContactsContact["JobId"].asString(); - if(!jobsNodeListJobContactsContact["PhoneNumber"].isNull()) - contactsObject.phoneNumber = jobsNodeListJobContactsContact["PhoneNumber"].asString(); - if(!jobsNodeListJobContactsContact["ReferenceId"].isNull()) - contactsObject.referenceId = jobsNodeListJobContactsContact["ReferenceId"].asString(); + if(!jobsNodeListJobContactsContact["ContactName"].isNull()) + contactsObject.contactName = jobsNodeListJobContactsContact["ContactName"].asString(); if(!jobsNodeListJobContactsContact["Role"].isNull()) contactsObject.role = jobsNodeListJobContactsContact["Role"].asString(); - if(!jobsNodeListJobContactsContact["State"].isNull()) - contactsObject.state = jobsNodeListJobContactsContact["State"].asString(); + if(!jobsNodeListJobContactsContact["ReferenceId"].isNull()) + contactsObject.referenceId = jobsNodeListJobContactsContact["ReferenceId"].asString(); jobObject.contacts.push_back(contactsObject); } auto allExtrasNode = jobsNodeListJob["Extras"]["KeyValuePair"]; @@ -102,69 +102,69 @@ void QueryJobsResult::parse(const std::string &payload) for (auto jobsNodeListJobSummarySummaryItem : allSummaryNode) { Jobs::Job::SummaryItem summaryObject; - if(!jobsNodeListJobSummarySummaryItem["Category"].isNull()) - summaryObject.category = jobsNodeListJobSummarySummaryItem["Category"].asString(); - if(!jobsNodeListJobSummarySummaryItem["Content"].isNull()) - summaryObject.content = jobsNodeListJobSummarySummaryItem["Content"].asString(); - if(!jobsNodeListJobSummarySummaryItem["ConversationDetailId"].isNull()) - summaryObject.conversationDetailId = jobsNodeListJobSummarySummaryItem["ConversationDetailId"].asString(); + if(!jobsNodeListJobSummarySummaryItem["SummaryName"].isNull()) + summaryObject.summaryName = jobsNodeListJobSummarySummaryItem["SummaryName"].asString(); if(!jobsNodeListJobSummarySummaryItem["GroupId"].isNull()) summaryObject.groupId = jobsNodeListJobSummarySummaryItem["GroupId"].asString(); if(!jobsNodeListJobSummarySummaryItem["JobId"].isNull()) summaryObject.jobId = jobsNodeListJobSummarySummaryItem["JobId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["SummaryId"].isNull()) - summaryObject.summaryId = jobsNodeListJobSummarySummaryItem["SummaryId"].asString(); - if(!jobsNodeListJobSummarySummaryItem["SummaryName"].isNull()) - summaryObject.summaryName = jobsNodeListJobSummarySummaryItem["SummaryName"].asString(); + if(!jobsNodeListJobSummarySummaryItem["Category"].isNull()) + summaryObject.category = jobsNodeListJobSummarySummaryItem["Category"].asString(); if(!jobsNodeListJobSummarySummaryItem["TaskId"].isNull()) summaryObject.taskId = jobsNodeListJobSummarySummaryItem["TaskId"].asString(); + if(!jobsNodeListJobSummarySummaryItem["Content"].isNull()) + summaryObject.content = jobsNodeListJobSummarySummaryItem["Content"].asString(); + if(!jobsNodeListJobSummarySummaryItem["ConversationDetailId"].isNull()) + summaryObject.conversationDetailId = jobsNodeListJobSummarySummaryItem["ConversationDetailId"].asString(); + if(!jobsNodeListJobSummarySummaryItem["SummaryId"].isNull()) + summaryObject.summaryId = jobsNodeListJobSummarySummaryItem["SummaryId"].asString(); jobObject.summary.push_back(summaryObject); } auto allTasksNode = jobsNodeListJob["Tasks"]["Task"]; for (auto jobsNodeListJobTasksTask : allTasksNode) { Jobs::Job::Task tasksObject; - if(!jobsNodeListJobTasksTask["ActualTime"].isNull()) - tasksObject.actualTime = std::stol(jobsNodeListJobTasksTask["ActualTime"].asString()); - if(!jobsNodeListJobTasksTask["Brief"].isNull()) - tasksObject.brief = jobsNodeListJobTasksTask["Brief"].asString(); - if(!jobsNodeListJobTasksTask["CallId"].isNull()) - tasksObject.callId = jobsNodeListJobTasksTask["CallId"].asString(); - if(!jobsNodeListJobTasksTask["CalledNumber"].isNull()) - tasksObject.calledNumber = jobsNodeListJobTasksTask["CalledNumber"].asString(); - if(!jobsNodeListJobTasksTask["CallingNumber"].isNull()) - tasksObject.callingNumber = jobsNodeListJobTasksTask["CallingNumber"].asString(); - if(!jobsNodeListJobTasksTask["ChatbotId"].isNull()) - tasksObject.chatbotId = jobsNodeListJobTasksTask["ChatbotId"].asString(); - if(!jobsNodeListJobTasksTask["Duration"].isNull()) - tasksObject.duration = std::stoi(jobsNodeListJobTasksTask["Duration"].asString()); - if(!jobsNodeListJobTasksTask["JobId"].isNull()) - tasksObject.jobId = jobsNodeListJobTasksTask["JobId"].asString(); - if(!jobsNodeListJobTasksTask["PlanedTime"].isNull()) - tasksObject.planedTime = std::stol(jobsNodeListJobTasksTask["PlanedTime"].asString()); - if(!jobsNodeListJobTasksTask["ScenarioId"].isNull()) - tasksObject.scenarioId = jobsNodeListJobTasksTask["ScenarioId"].asString(); if(!jobsNodeListJobTasksTask["Status"].isNull()) tasksObject.status = jobsNodeListJobTasksTask["Status"].asString(); + if(!jobsNodeListJobTasksTask["PlanedTime"].isNull()) + tasksObject.planedTime = std::stol(jobsNodeListJobTasksTask["PlanedTime"].asString()); + if(!jobsNodeListJobTasksTask["ChatbotId"].isNull()) + tasksObject.chatbotId = jobsNodeListJobTasksTask["ChatbotId"].asString(); + if(!jobsNodeListJobTasksTask["ActualTime"].isNull()) + tasksObject.actualTime = std::stol(jobsNodeListJobTasksTask["ActualTime"].asString()); + if(!jobsNodeListJobTasksTask["CalledNumber"].isNull()) + tasksObject.calledNumber = jobsNodeListJobTasksTask["CalledNumber"].asString(); + if(!jobsNodeListJobTasksTask["ScenarioId"].isNull()) + tasksObject.scenarioId = jobsNodeListJobTasksTask["ScenarioId"].asString(); + if(!jobsNodeListJobTasksTask["JobId"].isNull()) + tasksObject.jobId = jobsNodeListJobTasksTask["JobId"].asString(); + if(!jobsNodeListJobTasksTask["CallId"].isNull()) + tasksObject.callId = jobsNodeListJobTasksTask["CallId"].asString(); + if(!jobsNodeListJobTasksTask["CallingNumber"].isNull()) + tasksObject.callingNumber = jobsNodeListJobTasksTask["CallingNumber"].asString(); + if(!jobsNodeListJobTasksTask["Brief"].isNull()) + tasksObject.brief = jobsNodeListJobTasksTask["Brief"].asString(); + if(!jobsNodeListJobTasksTask["Duration"].isNull()) + tasksObject.duration = std::stoi(jobsNodeListJobTasksTask["Duration"].asString()); if(!jobsNodeListJobTasksTask["TaskId"].isNull()) tasksObject.taskId = jobsNodeListJobTasksTask["TaskId"].asString(); auto contact1Node = value["Contact"]; + if(!contact1Node["PhoneNumber"].isNull()) + tasksObject.contact1.phoneNumber = contact1Node["PhoneNumber"].asString(); + if(!contact1Node["State"].isNull()) + tasksObject.contact1.state = contact1Node["State"].asString(); if(!contact1Node["ContactId"].isNull()) tasksObject.contact1.contactId = contact1Node["ContactId"].asString(); - if(!contact1Node["ContactName"].isNull()) - tasksObject.contact1.contactName = contact1Node["ContactName"].asString(); if(!contact1Node["Honorific"].isNull()) tasksObject.contact1.honorific = contact1Node["Honorific"].asString(); if(!contact1Node["JobId"].isNull()) tasksObject.contact1.jobId = contact1Node["JobId"].asString(); - if(!contact1Node["PhoneNumber"].isNull()) - tasksObject.contact1.phoneNumber = contact1Node["PhoneNumber"].asString(); - if(!contact1Node["ReferenceId"].isNull()) - tasksObject.contact1.referenceId = contact1Node["ReferenceId"].asString(); + if(!contact1Node["ContactName"].isNull()) + tasksObject.contact1.contactName = contact1Node["ContactName"].asString(); if(!contact1Node["Role"].isNull()) tasksObject.contact1.role = contact1Node["Role"].asString(); - if(!contact1Node["State"].isNull()) - tasksObject.contact1.state = contact1Node["State"].asString(); + if(!contact1Node["ReferenceId"].isNull()) + tasksObject.contact1.referenceId = contact1Node["ReferenceId"].asString(); jobObject.tasks.push_back(tasksObject); } auto allCallingNumbers = value["CallingNumbers"]["String"]; @@ -172,10 +172,10 @@ void QueryJobsResult::parse(const std::string &payload) jobObject.callingNumbers.push_back(value.asString()); jobs_.list.push_back(jobObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/QueryJobsWithResultRequest.cc b/outboundbot/src/model/QueryJobsWithResultRequest.cc index 85d668ed4..f4fb6ce5b 100644 --- a/outboundbot/src/model/QueryJobsWithResultRequest.cc +++ b/outboundbot/src/model/QueryJobsWithResultRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::QueryJobsWithResultRequest; - -QueryJobsWithResultRequest::QueryJobsWithResultRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "QueryJobsWithResult") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryJobsWithResultRequest::~QueryJobsWithResultRequest() -{} - -bool QueryJobsWithResultRequest::getHasReachedEndOfFlowFilter()const -{ - return hasReachedEndOfFlowFilter_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::QueryJobsWithResultRequest; + +QueryJobsWithResultRequest::QueryJobsWithResultRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "QueryJobsWithResult") { + setMethod(HttpRequest::Method::Post); } -void QueryJobsWithResultRequest::setHasReachedEndOfFlowFilter(bool hasReachedEndOfFlowFilter) -{ - hasReachedEndOfFlowFilter_ = hasReachedEndOfFlowFilter; - setParameter("HasReachedEndOfFlowFilter", hasReachedEndOfFlowFilter ? "true" : "false"); +QueryJobsWithResultRequest::~QueryJobsWithResultRequest() {} + +bool QueryJobsWithResultRequest::getHasReachedEndOfFlowFilter() const { + return hasReachedEndOfFlowFilter_; } -bool QueryJobsWithResultRequest::getHasAnsweredFilter()const -{ - return hasAnsweredFilter_; +void QueryJobsWithResultRequest::setHasReachedEndOfFlowFilter(bool hasReachedEndOfFlowFilter) { + hasReachedEndOfFlowFilter_ = hasReachedEndOfFlowFilter; + setParameter(std::string("HasReachedEndOfFlowFilter"), hasReachedEndOfFlowFilter ? "true" : "false"); } -void QueryJobsWithResultRequest::setHasAnsweredFilter(bool hasAnsweredFilter) -{ - hasAnsweredFilter_ = hasAnsweredFilter; - setParameter("HasAnsweredFilter", hasAnsweredFilter ? "true" : "false"); +bool QueryJobsWithResultRequest::getHasAnsweredFilter() const { + return hasAnsweredFilter_; } -int QueryJobsWithResultRequest::getPageNumber()const -{ - return pageNumber_; +void QueryJobsWithResultRequest::setHasAnsweredFilter(bool hasAnsweredFilter) { + hasAnsweredFilter_ = hasAnsweredFilter; + setParameter(std::string("HasAnsweredFilter"), hasAnsweredFilter ? "true" : "false"); } -void QueryJobsWithResultRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int QueryJobsWithResultRequest::getPageNumber() const { + return pageNumber_; } -std::string QueryJobsWithResultRequest::getQueryText()const -{ - return queryText_; +void QueryJobsWithResultRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void QueryJobsWithResultRequest::setQueryText(const std::string& queryText) -{ - queryText_ = queryText; - setParameter("QueryText", queryText); +std::string QueryJobsWithResultRequest::getQueryText() const { + return queryText_; } -bool QueryJobsWithResultRequest::getHasHangUpByRejectionFilter()const -{ - return hasHangUpByRejectionFilter_; +void QueryJobsWithResultRequest::setQueryText(const std::string &queryText) { + queryText_ = queryText; + setParameter(std::string("QueryText"), queryText); } -void QueryJobsWithResultRequest::setHasHangUpByRejectionFilter(bool hasHangUpByRejectionFilter) -{ - hasHangUpByRejectionFilter_ = hasHangUpByRejectionFilter; - setParameter("HasHangUpByRejectionFilter", hasHangUpByRejectionFilter ? "true" : "false"); +bool QueryJobsWithResultRequest::getHasHangUpByRejectionFilter() const { + return hasHangUpByRejectionFilter_; } -std::string QueryJobsWithResultRequest::getInstanceId()const -{ - return instanceId_; +void QueryJobsWithResultRequest::setHasHangUpByRejectionFilter(bool hasHangUpByRejectionFilter) { + hasHangUpByRejectionFilter_ = hasHangUpByRejectionFilter; + setParameter(std::string("HasHangUpByRejectionFilter"), hasHangUpByRejectionFilter ? "true" : "false"); } -void QueryJobsWithResultRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string QueryJobsWithResultRequest::getInstanceId() const { + return instanceId_; } -std::string QueryJobsWithResultRequest::getJobStatusFilter()const -{ - return jobStatusFilter_; +void QueryJobsWithResultRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void QueryJobsWithResultRequest::setJobStatusFilter(const std::string& jobStatusFilter) -{ - jobStatusFilter_ = jobStatusFilter; - setParameter("JobStatusFilter", jobStatusFilter); +std::string QueryJobsWithResultRequest::getJobStatusFilter() const { + return jobStatusFilter_; } -int QueryJobsWithResultRequest::getPageSize()const -{ - return pageSize_; +void QueryJobsWithResultRequest::setJobStatusFilter(const std::string &jobStatusFilter) { + jobStatusFilter_ = jobStatusFilter; + setParameter(std::string("JobStatusFilter"), jobStatusFilter); } -void QueryJobsWithResultRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryJobsWithResultRequest::getPageSize() const { + return pageSize_; } -std::string QueryJobsWithResultRequest::getJobGroupId()const -{ - return jobGroupId_; +void QueryJobsWithResultRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void QueryJobsWithResultRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string QueryJobsWithResultRequest::getJobGroupId() const { + return jobGroupId_; +} + +void QueryJobsWithResultRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } diff --git a/outboundbot/src/model/QueryScriptWaveformsRequest.cc b/outboundbot/src/model/QueryScriptWaveformsRequest.cc index b063327d7..ca73fe9bf 100644 --- a/outboundbot/src/model/QueryScriptWaveformsRequest.cc +++ b/outboundbot/src/model/QueryScriptWaveformsRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::QueryScriptWaveformsRequest; - -QueryScriptWaveformsRequest::QueryScriptWaveformsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "QueryScriptWaveforms") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryScriptWaveformsRequest::~QueryScriptWaveformsRequest() -{} - -std::string QueryScriptWaveformsRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::QueryScriptWaveformsRequest; + +QueryScriptWaveformsRequest::QueryScriptWaveformsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "QueryScriptWaveforms") { + setMethod(HttpRequest::Method::Post); } -void QueryScriptWaveformsRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +QueryScriptWaveformsRequest::~QueryScriptWaveformsRequest() {} + +std::string QueryScriptWaveformsRequest::getScriptId() const { + return scriptId_; } -std::string QueryScriptWaveformsRequest::getInstanceId()const -{ - return instanceId_; +void QueryScriptWaveformsRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void QueryScriptWaveformsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string QueryScriptWaveformsRequest::getInstanceId() const { + return instanceId_; } -std::string QueryScriptWaveformsRequest::getScriptContent()const -{ - return scriptContent_; +void QueryScriptWaveformsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void QueryScriptWaveformsRequest::setScriptContent(const std::string& scriptContent) -{ - scriptContent_ = scriptContent; - setParameter("ScriptContent", scriptContent); +std::string QueryScriptWaveformsRequest::getScriptContent() const { + return scriptContent_; +} + +void QueryScriptWaveformsRequest::setScriptContent(const std::string &scriptContent) { + scriptContent_ = scriptContent; + setParameter(std::string("ScriptContent"), scriptContent); } diff --git a/outboundbot/src/model/QueryScriptWaveformsResult.cc b/outboundbot/src/model/QueryScriptWaveformsResult.cc index e6cc079ea..7ad6259be 100644 --- a/outboundbot/src/model/QueryScriptWaveformsResult.cc +++ b/outboundbot/src/model/QueryScriptWaveformsResult.cc @@ -43,22 +43,22 @@ void QueryScriptWaveformsResult::parse(const std::string &payload) for (auto valueScriptWaveformsScriptWaveform : allScriptWaveformsNode) { ScriptWaveform scriptWaveformsObject; - if(!valueScriptWaveformsScriptWaveform["FileId"].isNull()) - scriptWaveformsObject.fileId = valueScriptWaveformsScriptWaveform["FileId"].asString(); - if(!valueScriptWaveformsScriptWaveform["FileName"].isNull()) - scriptWaveformsObject.fileName = valueScriptWaveformsScriptWaveform["FileName"].asString(); if(!valueScriptWaveformsScriptWaveform["ScriptContent"].isNull()) scriptWaveformsObject.scriptContent = valueScriptWaveformsScriptWaveform["ScriptContent"].asString(); - if(!valueScriptWaveformsScriptWaveform["ScriptId"].isNull()) - scriptWaveformsObject.scriptId = valueScriptWaveformsScriptWaveform["ScriptId"].asString(); if(!valueScriptWaveformsScriptWaveform["ScriptWaveformId"].isNull()) scriptWaveformsObject.scriptWaveformId = valueScriptWaveformsScriptWaveform["ScriptWaveformId"].asString(); + if(!valueScriptWaveformsScriptWaveform["FileName"].isNull()) + scriptWaveformsObject.fileName = valueScriptWaveformsScriptWaveform["FileName"].asString(); + if(!valueScriptWaveformsScriptWaveform["ScriptId"].isNull()) + scriptWaveformsObject.scriptId = valueScriptWaveformsScriptWaveform["ScriptId"].asString(); + if(!valueScriptWaveformsScriptWaveform["FileId"].isNull()) + scriptWaveformsObject.fileId = valueScriptWaveformsScriptWaveform["FileId"].asString(); scriptWaveforms_.push_back(scriptWaveformsObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/QueryScriptsByStatusRequest.cc b/outboundbot/src/model/QueryScriptsByStatusRequest.cc index 2237c7bab..16c72f30b 100644 --- a/outboundbot/src/model/QueryScriptsByStatusRequest.cc +++ b/outboundbot/src/model/QueryScriptsByStatusRequest.cc @@ -1,75 +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::QueryScriptsByStatusRequest; - -QueryScriptsByStatusRequest::QueryScriptsByStatusRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "QueryScriptsByStatus") -{ - setMethod(HttpRequest::Method::Post); -} - -QueryScriptsByStatusRequest::~QueryScriptsByStatusRequest() -{} - -std::vector QueryScriptsByStatusRequest::getStatusList()const -{ - return statusList_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::QueryScriptsByStatusRequest; + +QueryScriptsByStatusRequest::QueryScriptsByStatusRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "QueryScriptsByStatus") { + setMethod(HttpRequest::Method::Post); } -void QueryScriptsByStatusRequest::setStatusList(const std::vector& statusList) -{ - statusList_ = statusList; - for(int dep1 = 0; dep1!= statusList.size(); dep1++) { - setParameter("StatusList."+ std::to_string(dep1), statusList.at(dep1)); - } +QueryScriptsByStatusRequest::~QueryScriptsByStatusRequest() {} + +std::vector QueryScriptsByStatusRequest::getStatusList() const { + return statusList_; } -int QueryScriptsByStatusRequest::getPageNumber()const -{ - return pageNumber_; +void QueryScriptsByStatusRequest::setStatusList(const std::vector &statusList) { + statusList_ = statusList; } -void QueryScriptsByStatusRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int QueryScriptsByStatusRequest::getPageNumber() const { + return pageNumber_; } -std::string QueryScriptsByStatusRequest::getInstanceId()const -{ - return instanceId_; +void QueryScriptsByStatusRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void QueryScriptsByStatusRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string QueryScriptsByStatusRequest::getInstanceId() const { + return instanceId_; } -int QueryScriptsByStatusRequest::getPageSize()const -{ - return pageSize_; +void QueryScriptsByStatusRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void QueryScriptsByStatusRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryScriptsByStatusRequest::getPageSize() const { + return pageSize_; +} + +void QueryScriptsByStatusRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/outboundbot/src/model/QueryScriptsByStatusResult.cc b/outboundbot/src/model/QueryScriptsByStatusResult.cc index 93e6a8280..dbc606846 100644 --- a/outboundbot/src/model/QueryScriptsByStatusResult.cc +++ b/outboundbot/src/model/QueryScriptsByStatusResult.cc @@ -50,36 +50,36 @@ void QueryScriptsByStatusResult::parse(const std::string &payload) for (auto scriptsNodeListScript : allListNode) { Scripts::Script scriptObject; - if(!scriptsNodeListScript["AppliedVersion"].isNull()) - scriptObject.appliedVersion = scriptsNodeListScript["AppliedVersion"].asString(); - if(!scriptsNodeListScript["DebugStatus"].isNull()) - scriptObject.debugStatus = scriptsNodeListScript["DebugStatus"].asString(); - if(!scriptsNodeListScript["DebugVersion"].isNull()) - scriptObject.debugVersion = scriptsNodeListScript["DebugVersion"].asString(); - if(!scriptsNodeListScript["Industry"].isNull()) - scriptObject.industry = scriptsNodeListScript["Industry"].asString(); - if(!scriptsNodeListScript["IsDebugDrafted"].isNull()) - scriptObject.isDebugDrafted = scriptsNodeListScript["IsDebugDrafted"].asString() == "true"; - if(!scriptsNodeListScript["IsDrafted"].isNull()) - scriptObject.isDrafted = scriptsNodeListScript["IsDrafted"].asString() == "true"; - if(!scriptsNodeListScript["Scene"].isNull()) - scriptObject.scene = scriptsNodeListScript["Scene"].asString(); - if(!scriptsNodeListScript["ScriptDescription"].isNull()) - scriptObject.scriptDescription = scriptsNodeListScript["ScriptDescription"].asString(); - if(!scriptsNodeListScript["ScriptId"].isNull()) - scriptObject.scriptId = scriptsNodeListScript["ScriptId"].asString(); - if(!scriptsNodeListScript["ScriptName"].isNull()) - scriptObject.scriptName = scriptsNodeListScript["ScriptName"].asString(); if(!scriptsNodeListScript["Status"].isNull()) scriptObject.status = scriptsNodeListScript["Status"].asString(); if(!scriptsNodeListScript["UpdateTime"].isNull()) scriptObject.updateTime = std::stol(scriptsNodeListScript["UpdateTime"].asString()); + if(!scriptsNodeListScript["ScriptId"].isNull()) + scriptObject.scriptId = scriptsNodeListScript["ScriptId"].asString(); + if(!scriptsNodeListScript["AppliedVersion"].isNull()) + scriptObject.appliedVersion = scriptsNodeListScript["AppliedVersion"].asString(); + if(!scriptsNodeListScript["IsDebugDrafted"].isNull()) + scriptObject.isDebugDrafted = scriptsNodeListScript["IsDebugDrafted"].asString() == "true"; + if(!scriptsNodeListScript["Industry"].isNull()) + scriptObject.industry = scriptsNodeListScript["Industry"].asString(); + if(!scriptsNodeListScript["ScriptDescription"].isNull()) + scriptObject.scriptDescription = scriptsNodeListScript["ScriptDescription"].asString(); + if(!scriptsNodeListScript["IsDrafted"].isNull()) + scriptObject.isDrafted = scriptsNodeListScript["IsDrafted"].asString() == "true"; + if(!scriptsNodeListScript["DebugStatus"].isNull()) + scriptObject.debugStatus = scriptsNodeListScript["DebugStatus"].asString(); + if(!scriptsNodeListScript["DebugVersion"].isNull()) + scriptObject.debugVersion = scriptsNodeListScript["DebugVersion"].asString(); + if(!scriptsNodeListScript["Scene"].isNull()) + scriptObject.scene = scriptsNodeListScript["Scene"].asString(); + if(!scriptsNodeListScript["ScriptName"].isNull()) + scriptObject.scriptName = scriptsNodeListScript["ScriptName"].asString(); scripts_.list.push_back(scriptObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/RecordFailureRequest.cc b/outboundbot/src/model/RecordFailureRequest.cc index 324973eee..c516f794c 100644 --- a/outboundbot/src/model/RecordFailureRequest.cc +++ b/outboundbot/src/model/RecordFailureRequest.cc @@ -1,128 +1,108 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::RecordFailureRequest; - -RecordFailureRequest::RecordFailureRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "RecordFailure") -{ - setMethod(HttpRequest::Method::Post); -} - -RecordFailureRequest::~RecordFailureRequest() -{} - -std::string RecordFailureRequest::getCallId()const -{ - return callId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::RecordFailureRequest; + +RecordFailureRequest::RecordFailureRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "RecordFailure") { + setMethod(HttpRequest::Method::Post); } -void RecordFailureRequest::setCallId(const std::string& callId) -{ - callId_ = callId; - setParameter("CallId", callId); +RecordFailureRequest::~RecordFailureRequest() {} + +std::string RecordFailureRequest::getCallId() const { + return callId_; } -long RecordFailureRequest::getActualTime()const -{ - return actualTime_; +void RecordFailureRequest::setCallId(const std::string &callId) { + callId_ = callId; + setParameter(std::string("CallId"), callId); } -void RecordFailureRequest::setActualTime(long actualTime) -{ - actualTime_ = actualTime; - setParameter("ActualTime", std::to_string(actualTime)); +long RecordFailureRequest::getActualTime() const { + return actualTime_; } -std::string RecordFailureRequest::getCallingNumber()const -{ - return callingNumber_; +void RecordFailureRequest::setActualTime(long actualTime) { + actualTime_ = actualTime; + setParameter(std::string("ActualTime"), std::to_string(actualTime)); } -void RecordFailureRequest::setCallingNumber(const std::string& callingNumber) -{ - callingNumber_ = callingNumber; - setParameter("CallingNumber", callingNumber); +std::string RecordFailureRequest::getCallingNumber() const { + return callingNumber_; } -std::string RecordFailureRequest::getInstanceId()const -{ - return instanceId_; +void RecordFailureRequest::setCallingNumber(const std::string &callingNumber) { + callingNumber_ = callingNumber; + setParameter(std::string("CallingNumber"), callingNumber); } -void RecordFailureRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string RecordFailureRequest::getInstanceId() const { + return instanceId_; } -std::string RecordFailureRequest::getDispositionCode()const -{ - return dispositionCode_; +void RecordFailureRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void RecordFailureRequest::setDispositionCode(const std::string& dispositionCode) -{ - dispositionCode_ = dispositionCode; - setParameter("DispositionCode", dispositionCode); +std::string RecordFailureRequest::getDispositionCode() const { + return dispositionCode_; } -std::string RecordFailureRequest::getCalledNumber()const -{ - return calledNumber_; +void RecordFailureRequest::setDispositionCode(const std::string &dispositionCode) { + dispositionCode_ = dispositionCode; + setParameter(std::string("DispositionCode"), dispositionCode); } -void RecordFailureRequest::setCalledNumber(const std::string& calledNumber) -{ - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); +std::string RecordFailureRequest::getCalledNumber() const { + return calledNumber_; } -std::string RecordFailureRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void RecordFailureRequest::setCalledNumber(const std::string &calledNumber) { + calledNumber_ = calledNumber; + setParameter(std::string("CalledNumber"), calledNumber); } -void RecordFailureRequest::setInstanceOwnerId(const std::string& instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", instanceOwnerId); +std::string RecordFailureRequest::getInstanceOwnerId() const { + return instanceOwnerId_; } -std::string RecordFailureRequest::getTaskId()const -{ - return taskId_; +void RecordFailureRequest::setInstanceOwnerId(const std::string &instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), instanceOwnerId); } -void RecordFailureRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string RecordFailureRequest::getTaskId() const { + return taskId_; } -std::string RecordFailureRequest::getExceptionCodes()const -{ - return exceptionCodes_; +void RecordFailureRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void RecordFailureRequest::setExceptionCodes(const std::string& exceptionCodes) -{ - exceptionCodes_ = exceptionCodes; - setParameter("ExceptionCodes", exceptionCodes); +std::string RecordFailureRequest::getExceptionCodes() const { + return exceptionCodes_; +} + +void RecordFailureRequest::setExceptionCodes(const std::string &exceptionCodes) { + exceptionCodes_ = exceptionCodes; + setParameter(std::string("ExceptionCodes"), exceptionCodes); } diff --git a/outboundbot/src/model/ResumeJobsRequest.cc b/outboundbot/src/model/ResumeJobsRequest.cc index 73ad290eb..cace48203 100644 --- a/outboundbot/src/model/ResumeJobsRequest.cc +++ b/outboundbot/src/model/ResumeJobsRequest.cc @@ -1,99 +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 - -using AlibabaCloud::OutboundBot::Model::ResumeJobsRequest; - -ResumeJobsRequest::ResumeJobsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "ResumeJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -ResumeJobsRequest::~ResumeJobsRequest() -{} - -bool ResumeJobsRequest::getAll()const -{ - return all_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::ResumeJobsRequest; + +ResumeJobsRequest::ResumeJobsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "ResumeJobs") { + setMethod(HttpRequest::Method::Post); } -void ResumeJobsRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +ResumeJobsRequest::~ResumeJobsRequest() {} + +bool ResumeJobsRequest::getAll() const { + return all_; } -std::vector ResumeJobsRequest::getJobReferenceId()const -{ - return jobReferenceId_; +void ResumeJobsRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); } -void ResumeJobsRequest::setJobReferenceId(const std::vector& jobReferenceId) -{ - jobReferenceId_ = jobReferenceId; - for(int dep1 = 0; dep1!= jobReferenceId.size(); dep1++) { - setParameter("JobReferenceId."+ std::to_string(dep1), jobReferenceId.at(dep1)); - } +std::vector ResumeJobsRequest::getJobReferenceId() const { + return jobReferenceId_; } -std::vector ResumeJobsRequest::getJobId()const -{ - return jobId_; +void ResumeJobsRequest::setJobReferenceId(const std::vector &jobReferenceId) { + jobReferenceId_ = jobReferenceId; } -void ResumeJobsRequest::setJobId(const std::vector& jobId) -{ - jobId_ = jobId; - for(int dep1 = 0; dep1!= jobId.size(); dep1++) { - setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1)); - } +std::vector ResumeJobsRequest::getJobId() const { + return jobId_; } -std::string ResumeJobsRequest::getInstanceId()const -{ - return instanceId_; +void ResumeJobsRequest::setJobId(const std::vector &jobId) { + jobId_ = jobId; } -void ResumeJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ResumeJobsRequest::getInstanceId() const { + return instanceId_; } -std::string ResumeJobsRequest::getJobGroupId()const -{ - return jobGroupId_; +void ResumeJobsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ResumeJobsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string ResumeJobsRequest::getJobGroupId() const { + return jobGroupId_; } -std::string ResumeJobsRequest::getScenarioId()const -{ - return scenarioId_; +void ResumeJobsRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void ResumeJobsRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); +std::string ResumeJobsRequest::getScenarioId() const { + return scenarioId_; +} + +void ResumeJobsRequest::setScenarioId(const std::string &scenarioId) { + scenarioId_ = scenarioId; + setParameter(std::string("ScenarioId"), scenarioId); } diff --git a/outboundbot/src/model/ResumeJobsResult.cc b/outboundbot/src/model/ResumeJobsResult.cc index b6395cadf..86b167f36 100644 --- a/outboundbot/src/model/ResumeJobsResult.cc +++ b/outboundbot/src/model/ResumeJobsResult.cc @@ -39,10 +39,10 @@ void ResumeJobsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/RollbackScriptRequest.cc b/outboundbot/src/model/RollbackScriptRequest.cc index d78b012b8..ab83d0981 100644 --- a/outboundbot/src/model/RollbackScriptRequest.cc +++ b/outboundbot/src/model/RollbackScriptRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::RollbackScriptRequest; - -RollbackScriptRequest::RollbackScriptRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "RollbackScript") -{ - setMethod(HttpRequest::Method::Post); -} - -RollbackScriptRequest::~RollbackScriptRequest() -{} - -std::string RollbackScriptRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::RollbackScriptRequest; + +RollbackScriptRequest::RollbackScriptRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "RollbackScript") { + setMethod(HttpRequest::Method::Post); } -void RollbackScriptRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +RollbackScriptRequest::~RollbackScriptRequest() {} + +std::string RollbackScriptRequest::getScriptId() const { + return scriptId_; } -std::string RollbackScriptRequest::getInstanceId()const -{ - return instanceId_; +void RollbackScriptRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void RollbackScriptRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string RollbackScriptRequest::getInstanceId() const { + return instanceId_; } -std::string RollbackScriptRequest::getRollbackVersion()const -{ - return rollbackVersion_; +void RollbackScriptRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void RollbackScriptRequest::setRollbackVersion(const std::string& rollbackVersion) -{ - rollbackVersion_ = rollbackVersion; - setParameter("RollbackVersion", rollbackVersion); +std::string RollbackScriptRequest::getRollbackVersion() const { + return rollbackVersion_; +} + +void RollbackScriptRequest::setRollbackVersion(const std::string &rollbackVersion) { + rollbackVersion_ = rollbackVersion; + setParameter(std::string("RollbackVersion"), rollbackVersion); } diff --git a/outboundbot/src/model/RollbackScriptResult.cc b/outboundbot/src/model/RollbackScriptResult.cc index 716f1a15e..bc87314ea 100644 --- a/outboundbot/src/model/RollbackScriptResult.cc +++ b/outboundbot/src/model/RollbackScriptResult.cc @@ -39,10 +39,10 @@ void RollbackScriptResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/SaveAfterAnswerDelayPlaybackRequest.cc b/outboundbot/src/model/SaveAfterAnswerDelayPlaybackRequest.cc index 1211271fe..ffcf444ca 100644 --- a/outboundbot/src/model/SaveAfterAnswerDelayPlaybackRequest.cc +++ b/outboundbot/src/model/SaveAfterAnswerDelayPlaybackRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::SaveAfterAnswerDelayPlaybackRequest; - -SaveAfterAnswerDelayPlaybackRequest::SaveAfterAnswerDelayPlaybackRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "SaveAfterAnswerDelayPlayback") -{ - setMethod(HttpRequest::Method::Post); -} - -SaveAfterAnswerDelayPlaybackRequest::~SaveAfterAnswerDelayPlaybackRequest() -{} - -int SaveAfterAnswerDelayPlaybackRequest::getStrategyLevel()const -{ - return strategyLevel_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveAfterAnswerDelayPlaybackRequest; + +SaveAfterAnswerDelayPlaybackRequest::SaveAfterAnswerDelayPlaybackRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SaveAfterAnswerDelayPlayback") { + setMethod(HttpRequest::Method::Post); } -void SaveAfterAnswerDelayPlaybackRequest::setStrategyLevel(int strategyLevel) -{ - strategyLevel_ = strategyLevel; - setParameter("StrategyLevel", std::to_string(strategyLevel)); +SaveAfterAnswerDelayPlaybackRequest::~SaveAfterAnswerDelayPlaybackRequest() {} + +int SaveAfterAnswerDelayPlaybackRequest::getStrategyLevel() const { + return strategyLevel_; } -std::string SaveAfterAnswerDelayPlaybackRequest::getEntryId()const -{ - return entryId_; +void SaveAfterAnswerDelayPlaybackRequest::setStrategyLevel(int strategyLevel) { + strategyLevel_ = strategyLevel; + setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel)); } -void SaveAfterAnswerDelayPlaybackRequest::setEntryId(const std::string& entryId) -{ - entryId_ = entryId; - setParameter("EntryId", entryId); +std::string SaveAfterAnswerDelayPlaybackRequest::getEntryId() const { + return entryId_; } -int SaveAfterAnswerDelayPlaybackRequest::getAfterAnswerDelayPlayback()const -{ - return afterAnswerDelayPlayback_; +void SaveAfterAnswerDelayPlaybackRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); } -void SaveAfterAnswerDelayPlaybackRequest::setAfterAnswerDelayPlayback(int afterAnswerDelayPlayback) -{ - afterAnswerDelayPlayback_ = afterAnswerDelayPlayback; - setParameter("AfterAnswerDelayPlayback", std::to_string(afterAnswerDelayPlayback)); +int SaveAfterAnswerDelayPlaybackRequest::getAfterAnswerDelayPlayback() const { + return afterAnswerDelayPlayback_; +} + +void SaveAfterAnswerDelayPlaybackRequest::setAfterAnswerDelayPlayback(int afterAnswerDelayPlayback) { + afterAnswerDelayPlayback_ = afterAnswerDelayPlayback; + setParameter(std::string("AfterAnswerDelayPlayback"), std::to_string(afterAnswerDelayPlayback)); } diff --git a/outboundbot/src/model/SaveBaseStrategyPeriodRequest.cc b/outboundbot/src/model/SaveBaseStrategyPeriodRequest.cc index 0a395f165..36a8a595d 100644 --- a/outboundbot/src/model/SaveBaseStrategyPeriodRequest.cc +++ b/outboundbot/src/model/SaveBaseStrategyPeriodRequest.cc @@ -1,86 +1,71 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::SaveBaseStrategyPeriodRequest; - -SaveBaseStrategyPeriodRequest::SaveBaseStrategyPeriodRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "SaveBaseStrategyPeriod") -{ - setMethod(HttpRequest::Method::Post); -} - -SaveBaseStrategyPeriodRequest::~SaveBaseStrategyPeriodRequest() -{} - -int SaveBaseStrategyPeriodRequest::getStrategyLevel()const -{ - return strategyLevel_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveBaseStrategyPeriodRequest; + +SaveBaseStrategyPeriodRequest::SaveBaseStrategyPeriodRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SaveBaseStrategyPeriod") { + setMethod(HttpRequest::Method::Post); } -void SaveBaseStrategyPeriodRequest::setStrategyLevel(int strategyLevel) -{ - strategyLevel_ = strategyLevel; - setParameter("StrategyLevel", std::to_string(strategyLevel)); +SaveBaseStrategyPeriodRequest::~SaveBaseStrategyPeriodRequest() {} + +int SaveBaseStrategyPeriodRequest::getStrategyLevel() const { + return strategyLevel_; } -std::string SaveBaseStrategyPeriodRequest::getEntryId()const -{ - return entryId_; +void SaveBaseStrategyPeriodRequest::setStrategyLevel(int strategyLevel) { + strategyLevel_ = strategyLevel; + setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel)); } -void SaveBaseStrategyPeriodRequest::setEntryId(const std::string& entryId) -{ - entryId_ = entryId; - setParameter("EntryId", entryId); +std::string SaveBaseStrategyPeriodRequest::getEntryId() const { + return entryId_; } -bool SaveBaseStrategyPeriodRequest::getOnlyWeekdays()const -{ - return onlyWeekdays_; +void SaveBaseStrategyPeriodRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); } -void SaveBaseStrategyPeriodRequest::setOnlyWeekdays(bool onlyWeekdays) -{ - onlyWeekdays_ = onlyWeekdays; - setParameter("OnlyWeekdays", onlyWeekdays ? "true" : "false"); +bool SaveBaseStrategyPeriodRequest::getOnlyWeekdays() const { + return onlyWeekdays_; } -std::string SaveBaseStrategyPeriodRequest::getWorkingTimeFramesJson()const -{ - return workingTimeFramesJson_; +void SaveBaseStrategyPeriodRequest::setOnlyWeekdays(bool onlyWeekdays) { + onlyWeekdays_ = onlyWeekdays; + setParameter(std::string("OnlyWeekdays"), onlyWeekdays ? "true" : "false"); } -void SaveBaseStrategyPeriodRequest::setWorkingTimeFramesJson(const std::string& workingTimeFramesJson) -{ - workingTimeFramesJson_ = workingTimeFramesJson; - setParameter("WorkingTimeFramesJson", workingTimeFramesJson); +std::string SaveBaseStrategyPeriodRequest::getWorkingTimeFramesJson() const { + return workingTimeFramesJson_; } -std::vector SaveBaseStrategyPeriodRequest::getWorkingTime()const -{ - return workingTime_; +void SaveBaseStrategyPeriodRequest::setWorkingTimeFramesJson(const std::string &workingTimeFramesJson) { + workingTimeFramesJson_ = workingTimeFramesJson; + setParameter(std::string("WorkingTimeFramesJson"), workingTimeFramesJson); } -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)); - } +std::vector SaveBaseStrategyPeriodRequest::getWorkingTime() const { + return workingTime_; +} + +void SaveBaseStrategyPeriodRequest::setWorkingTime(const std::vector &workingTime) { + workingTime_ = workingTime; } diff --git a/outboundbot/src/model/SaveContactBlockListRequest.cc b/outboundbot/src/model/SaveContactBlockListRequest.cc index d6967ff76..35b16cc90 100644 --- a/outboundbot/src/model/SaveContactBlockListRequest.cc +++ b/outboundbot/src/model/SaveContactBlockListRequest.cc @@ -1,64 +1,53 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveContactBlockListRequest; + +SaveContactBlockListRequest::SaveContactBlockListRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SaveContactBlockList") { + setMethod(HttpRequest::Method::Post); } -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)); - } +SaveContactBlockListRequest::~SaveContactBlockListRequest() {} + +std::vector SaveContactBlockListRequest::getContactBlockListList() const { + return contactBlockListList_; } -std::string SaveContactBlockListRequest::getInstanceId()const -{ - return instanceId_; +void SaveContactBlockListRequest::setContactBlockListList(const std::vector &contactBlockListList) { + contactBlockListList_ = contactBlockListList; } -void SaveContactBlockListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string SaveContactBlockListRequest::getInstanceId() const { + return instanceId_; } -std::string SaveContactBlockListRequest::getContactBlockListsJson()const -{ - return contactBlockListsJson_; +void SaveContactBlockListRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void SaveContactBlockListRequest::setContactBlockListsJson(const std::string& contactBlockListsJson) -{ - contactBlockListsJson_ = contactBlockListsJson; - setParameter("ContactBlockListsJson", contactBlockListsJson); +std::string SaveContactBlockListRequest::getContactBlockListsJson() const { + return contactBlockListsJson_; +} + +void SaveContactBlockListRequest::setContactBlockListsJson(const std::string &contactBlockListsJson) { + contactBlockListsJson_ = contactBlockListsJson; + setParameter(std::string("ContactBlockListsJson"), contactBlockListsJson); } diff --git a/outboundbot/src/model/SaveContactWhiteListRequest.cc b/outboundbot/src/model/SaveContactWhiteListRequest.cc index 88facf733..68b12a486 100644 --- a/outboundbot/src/model/SaveContactWhiteListRequest.cc +++ b/outboundbot/src/model/SaveContactWhiteListRequest.cc @@ -1,64 +1,53 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveContactWhiteListRequest; + +SaveContactWhiteListRequest::SaveContactWhiteListRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SaveContactWhiteList") { + setMethod(HttpRequest::Method::Post); } -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)); - } +SaveContactWhiteListRequest::~SaveContactWhiteListRequest() {} + +std::vector SaveContactWhiteListRequest::getContactWhiteListList() const { + return contactWhiteListList_; } -std::string SaveContactWhiteListRequest::getContactWhiteListsJson()const -{ - return contactWhiteListsJson_; +void SaveContactWhiteListRequest::setContactWhiteListList(const std::vector &contactWhiteListList) { + contactWhiteListList_ = contactWhiteListList; } -void SaveContactWhiteListRequest::setContactWhiteListsJson(const std::string& contactWhiteListsJson) -{ - contactWhiteListsJson_ = contactWhiteListsJson; - setParameter("ContactWhiteListsJson", contactWhiteListsJson); +std::string SaveContactWhiteListRequest::getContactWhiteListsJson() const { + return contactWhiteListsJson_; } -std::string SaveContactWhiteListRequest::getInstanceId()const -{ - return instanceId_; +void SaveContactWhiteListRequest::setContactWhiteListsJson(const std::string &contactWhiteListsJson) { + contactWhiteListsJson_ = contactWhiteListsJson; + setParameter(std::string("ContactWhiteListsJson"), contactWhiteListsJson); } -void SaveContactWhiteListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string SaveContactWhiteListRequest::getInstanceId() const { + return instanceId_; +} + +void SaveContactWhiteListRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/SaveEffectiveDaysRequest.cc b/outboundbot/src/model/SaveEffectiveDaysRequest.cc index 4ebd4a6bc..e1231ef8d 100644 --- a/outboundbot/src/model/SaveEffectiveDaysRequest.cc +++ b/outboundbot/src/model/SaveEffectiveDaysRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::SaveEffectiveDaysRequest; - -SaveEffectiveDaysRequest::SaveEffectiveDaysRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "SaveEffectiveDays") -{ - setMethod(HttpRequest::Method::Post); -} - -SaveEffectiveDaysRequest::~SaveEffectiveDaysRequest() -{} - -int SaveEffectiveDaysRequest::getEffectiveDays()const -{ - return effectiveDays_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveEffectiveDaysRequest; + +SaveEffectiveDaysRequest::SaveEffectiveDaysRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SaveEffectiveDays") { + setMethod(HttpRequest::Method::Post); } -void SaveEffectiveDaysRequest::setEffectiveDays(int effectiveDays) -{ - effectiveDays_ = effectiveDays; - setParameter("EffectiveDays", std::to_string(effectiveDays)); +SaveEffectiveDaysRequest::~SaveEffectiveDaysRequest() {} + +int SaveEffectiveDaysRequest::getEffectiveDays() const { + return effectiveDays_; } -int SaveEffectiveDaysRequest::getStrategyLevel()const -{ - return strategyLevel_; +void SaveEffectiveDaysRequest::setEffectiveDays(int effectiveDays) { + effectiveDays_ = effectiveDays; + setParameter(std::string("EffectiveDays"), std::to_string(effectiveDays)); } -void SaveEffectiveDaysRequest::setStrategyLevel(int strategyLevel) -{ - strategyLevel_ = strategyLevel; - setParameter("StrategyLevel", std::to_string(strategyLevel)); +int SaveEffectiveDaysRequest::getStrategyLevel() const { + return strategyLevel_; } -std::string SaveEffectiveDaysRequest::getEntryId()const -{ - return entryId_; +void SaveEffectiveDaysRequest::setStrategyLevel(int strategyLevel) { + strategyLevel_ = strategyLevel; + setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel)); } -void SaveEffectiveDaysRequest::setEntryId(const std::string& entryId) -{ - entryId_ = entryId; - setParameter("EntryId", entryId); +std::string SaveEffectiveDaysRequest::getEntryId() const { + return entryId_; +} + +void SaveEffectiveDaysRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); } diff --git a/outboundbot/src/model/SaveEffectiveDaysResult.cc b/outboundbot/src/model/SaveEffectiveDaysResult.cc index a4712c1db..fed1488b2 100644 --- a/outboundbot/src/model/SaveEffectiveDaysResult.cc +++ b/outboundbot/src/model/SaveEffectiveDaysResult.cc @@ -39,14 +39,14 @@ void SaveEffectiveDaysResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/SaveMaxAttemptsPerDayRequest.cc b/outboundbot/src/model/SaveMaxAttemptsPerDayRequest.cc index 352a633d3..6542b42f4 100644 --- a/outboundbot/src/model/SaveMaxAttemptsPerDayRequest.cc +++ b/outboundbot/src/model/SaveMaxAttemptsPerDayRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::SaveMaxAttemptsPerDayRequest; - -SaveMaxAttemptsPerDayRequest::SaveMaxAttemptsPerDayRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "SaveMaxAttemptsPerDay") -{ - setMethod(HttpRequest::Method::Post); -} - -SaveMaxAttemptsPerDayRequest::~SaveMaxAttemptsPerDayRequest() -{} - -int SaveMaxAttemptsPerDayRequest::getMaxAttemptsPerDay()const -{ - return maxAttemptsPerDay_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SaveMaxAttemptsPerDayRequest; + +SaveMaxAttemptsPerDayRequest::SaveMaxAttemptsPerDayRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SaveMaxAttemptsPerDay") { + setMethod(HttpRequest::Method::Post); } -void SaveMaxAttemptsPerDayRequest::setMaxAttemptsPerDay(int maxAttemptsPerDay) -{ - maxAttemptsPerDay_ = maxAttemptsPerDay; - setParameter("MaxAttemptsPerDay", std::to_string(maxAttemptsPerDay)); +SaveMaxAttemptsPerDayRequest::~SaveMaxAttemptsPerDayRequest() {} + +int SaveMaxAttemptsPerDayRequest::getMaxAttemptsPerDay() const { + return maxAttemptsPerDay_; } -int SaveMaxAttemptsPerDayRequest::getStrategyLevel()const -{ - return strategyLevel_; +void SaveMaxAttemptsPerDayRequest::setMaxAttemptsPerDay(int maxAttemptsPerDay) { + maxAttemptsPerDay_ = maxAttemptsPerDay; + setParameter(std::string("MaxAttemptsPerDay"), std::to_string(maxAttemptsPerDay)); } -void SaveMaxAttemptsPerDayRequest::setStrategyLevel(int strategyLevel) -{ - strategyLevel_ = strategyLevel; - setParameter("StrategyLevel", std::to_string(strategyLevel)); +int SaveMaxAttemptsPerDayRequest::getStrategyLevel() const { + return strategyLevel_; } -std::string SaveMaxAttemptsPerDayRequest::getEntryId()const -{ - return entryId_; +void SaveMaxAttemptsPerDayRequest::setStrategyLevel(int strategyLevel) { + strategyLevel_ = strategyLevel; + setParameter(std::string("StrategyLevel"), std::to_string(strategyLevel)); } -void SaveMaxAttemptsPerDayRequest::setEntryId(const std::string& entryId) -{ - entryId_ = entryId; - setParameter("EntryId", entryId); +std::string SaveMaxAttemptsPerDayRequest::getEntryId() const { + return entryId_; +} + +void SaveMaxAttemptsPerDayRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); } diff --git a/outboundbot/src/model/SearchTaskRequest.cc b/outboundbot/src/model/SearchTaskRequest.cc index 3759987c5..d7b899ac2 100644 --- a/outboundbot/src/model/SearchTaskRequest.cc +++ b/outboundbot/src/model/SearchTaskRequest.cc @@ -1,282 +1,234 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS 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::SearchTaskRequest; - -SearchTaskRequest::SearchTaskRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "SearchTask") -{ - setMethod(HttpRequest::Method::Get); -} - -SearchTaskRequest::~SearchTaskRequest() -{} - -long SearchTaskRequest::getActualTimeLte()const -{ - return actualTimeLte_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SearchTaskRequest; + +SearchTaskRequest::SearchTaskRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SearchTask") { + setMethod(HttpRequest::Method::Get); } -void SearchTaskRequest::setActualTimeLte(long actualTimeLte) -{ - actualTimeLte_ = actualTimeLte; - setParameter("ActualTimeLte", std::to_string(actualTimeLte)); +SearchTaskRequest::~SearchTaskRequest() {} + +long SearchTaskRequest::getActualTimeLte() const { + return actualTimeLte_; } -std::string SearchTaskRequest::getOtherId()const -{ - return otherId_; +void SearchTaskRequest::setActualTimeLte(long actualTimeLte) { + actualTimeLte_ = actualTimeLte; + setParameter(std::string("ActualTimeLte"), std::to_string(actualTimeLte)); } -void SearchTaskRequest::setOtherId(const std::string& otherId) -{ - otherId_ = otherId; - setParameter("OtherId", otherId); +std::string SearchTaskRequest::getOtherId() const { + return otherId_; } -long SearchTaskRequest::getTaskCreateTimeLte()const -{ - return taskCreateTimeLte_; +void SearchTaskRequest::setOtherId(const std::string &otherId) { + otherId_ = otherId; + setParameter(std::string("OtherId"), otherId); } -void SearchTaskRequest::setTaskCreateTimeLte(long taskCreateTimeLte) -{ - taskCreateTimeLte_ = taskCreateTimeLte; - setParameter("TaskCreateTimeLte", std::to_string(taskCreateTimeLte)); +long SearchTaskRequest::getTaskCreateTimeLte() const { + return taskCreateTimeLte_; } -std::string SearchTaskRequest::getJobId()const -{ - return jobId_; +void SearchTaskRequest::setTaskCreateTimeLte(long taskCreateTimeLte) { + taskCreateTimeLte_ = taskCreateTimeLte; + setParameter(std::string("TaskCreateTimeLte"), std::to_string(taskCreateTimeLte)); } -void SearchTaskRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +std::string SearchTaskRequest::getJobId() const { + return jobId_; } -long SearchTaskRequest::getTaskCreateTimeGte()const -{ - return taskCreateTimeGte_; +void SearchTaskRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void SearchTaskRequest::setTaskCreateTimeGte(long taskCreateTimeGte) -{ - taskCreateTimeGte_ = taskCreateTimeGte; - setParameter("TaskCreateTimeGte", std::to_string(taskCreateTimeGte)); +long SearchTaskRequest::getTaskCreateTimeGte() const { + return taskCreateTimeGte_; } -std::string SearchTaskRequest::getCalledNumber()const -{ - return calledNumber_; +void SearchTaskRequest::setTaskCreateTimeGte(long taskCreateTimeGte) { + taskCreateTimeGte_ = taskCreateTimeGte; + setParameter(std::string("TaskCreateTimeGte"), std::to_string(taskCreateTimeGte)); } -void SearchTaskRequest::setCalledNumber(const std::string& calledNumber) -{ - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); +std::string SearchTaskRequest::getCalledNumber() const { + return calledNumber_; } -std::string SearchTaskRequest::getUserIdMatch()const -{ - return userIdMatch_; +void SearchTaskRequest::setCalledNumber(const std::string &calledNumber) { + calledNumber_ = calledNumber; + setParameter(std::string("CalledNumber"), calledNumber); } -void SearchTaskRequest::setUserIdMatch(const std::string& userIdMatch) -{ - userIdMatch_ = userIdMatch; - setParameter("UserIdMatch", userIdMatch); +std::string SearchTaskRequest::getUserIdMatch() const { + return userIdMatch_; } -int SearchTaskRequest::getPageSize()const -{ - return pageSize_; +void SearchTaskRequest::setUserIdMatch(const std::string &userIdMatch) { + userIdMatch_ = userIdMatch; + setParameter(std::string("UserIdMatch"), userIdMatch); } -void SearchTaskRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int SearchTaskRequest::getPageSize() const { + return pageSize_; } -std::string SearchTaskRequest::getScriptNameQuery()const -{ - return scriptNameQuery_; +void SearchTaskRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } -void SearchTaskRequest::setScriptNameQuery(const std::string& scriptNameQuery) -{ - scriptNameQuery_ = scriptNameQuery; - setParameter("ScriptNameQuery", scriptNameQuery); +std::string SearchTaskRequest::getScriptNameQuery() const { + return scriptNameQuery_; } -int SearchTaskRequest::getPageIndex()const -{ - return pageIndex_; +void SearchTaskRequest::setScriptNameQuery(const std::string &scriptNameQuery) { + scriptNameQuery_ = scriptNameQuery; + setParameter(std::string("ScriptNameQuery"), scriptNameQuery); } -void SearchTaskRequest::setPageIndex(int pageIndex) -{ - pageIndex_ = pageIndex; - setParameter("PageIndex", std::to_string(pageIndex)); +int SearchTaskRequest::getPageIndex() const { + return pageIndex_; } -std::string SearchTaskRequest::getSortOrder()const -{ - return sortOrder_; +void SearchTaskRequest::setPageIndex(int pageIndex) { + pageIndex_ = pageIndex; + setParameter(std::string("PageIndex"), std::to_string(pageIndex)); } -void SearchTaskRequest::setSortOrder(const std::string& sortOrder) -{ - sortOrder_ = sortOrder; - setParameter("SortOrder", sortOrder); +std::string SearchTaskRequest::getSortOrder() const { + return sortOrder_; } -std::string SearchTaskRequest::getTaskStatusStringList()const -{ - return taskStatusStringList_; +void SearchTaskRequest::setSortOrder(const std::string &sortOrder) { + sortOrder_ = sortOrder; + setParameter(std::string("SortOrder"), sortOrder); } -void SearchTaskRequest::setTaskStatusStringList(const std::string& taskStatusStringList) -{ - taskStatusStringList_ = taskStatusStringList; - setParameter("TaskStatusStringList", taskStatusStringList); +std::string SearchTaskRequest::getTaskStatusStringList() const { + return taskStatusStringList_; } -std::string SearchTaskRequest::getJobGroupNameQuery()const -{ - return jobGroupNameQuery_; +void SearchTaskRequest::setTaskStatusStringList(const std::string &taskStatusStringList) { + taskStatusStringList_ = taskStatusStringList; + setParameter(std::string("TaskStatusStringList"), taskStatusStringList); } -void SearchTaskRequest::setJobGroupNameQuery(const std::string& jobGroupNameQuery) -{ - jobGroupNameQuery_ = jobGroupNameQuery; - setParameter("JobGroupNameQuery", jobGroupNameQuery); +std::string SearchTaskRequest::getJobGroupNameQuery() const { + return jobGroupNameQuery_; } -std::string SearchTaskRequest::getTaskId()const -{ - return taskId_; +void SearchTaskRequest::setJobGroupNameQuery(const std::string &jobGroupNameQuery) { + jobGroupNameQuery_ = jobGroupNameQuery; + setParameter(std::string("JobGroupNameQuery"), jobGroupNameQuery); } -void SearchTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string SearchTaskRequest::getTaskId() const { + return taskId_; } -std::string SearchTaskRequest::getInstanceId()const -{ - return instanceId_; +void SearchTaskRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } -void SearchTaskRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string SearchTaskRequest::getInstanceId() const { + return instanceId_; } -long SearchTaskRequest::getRecordingDurationGte()const -{ - return recordingDurationGte_; +void SearchTaskRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void SearchTaskRequest::setRecordingDurationGte(long recordingDurationGte) -{ - recordingDurationGte_ = recordingDurationGte; - setParameter("RecordingDurationGte", std::to_string(recordingDurationGte)); +long SearchTaskRequest::getRecordingDurationGte() const { + return recordingDurationGte_; } -long SearchTaskRequest::getCallDurationLte()const -{ - return callDurationLte_; +void SearchTaskRequest::setRecordingDurationGte(long recordingDurationGte) { + recordingDurationGte_ = recordingDurationGte; + setParameter(std::string("RecordingDurationGte"), std::to_string(recordingDurationGte)); } -void SearchTaskRequest::setCallDurationLte(long callDurationLte) -{ - callDurationLte_ = callDurationLte; - setParameter("CallDurationLte", std::to_string(callDurationLte)); +long SearchTaskRequest::getCallDurationLte() const { + return callDurationLte_; } -std::string SearchTaskRequest::getJobGroupId()const -{ - return jobGroupId_; +void SearchTaskRequest::setCallDurationLte(long callDurationLte) { + callDurationLte_ = callDurationLte; + setParameter(std::string("CallDurationLte"), std::to_string(callDurationLte)); } -void SearchTaskRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string SearchTaskRequest::getJobGroupId() const { + return jobGroupId_; } -std::string SearchTaskRequest::getSortBy()const -{ - return sortBy_; +void SearchTaskRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void SearchTaskRequest::setSortBy(const std::string& sortBy) -{ - sortBy_ = sortBy; - setParameter("SortBy", sortBy); +std::string SearchTaskRequest::getSortBy() const { + return sortBy_; } -std::string SearchTaskRequest::getJobStatusStringList()const -{ - return jobStatusStringList_; +void SearchTaskRequest::setSortBy(const std::string &sortBy) { + sortBy_ = sortBy; + setParameter(std::string("SortBy"), sortBy); } -void SearchTaskRequest::setJobStatusStringList(const std::string& jobStatusStringList) -{ - jobStatusStringList_ = jobStatusStringList; - setParameter("JobStatusStringList", jobStatusStringList); +std::string SearchTaskRequest::getJobStatusStringList() const { + return jobStatusStringList_; } -long SearchTaskRequest::getActualTimeGte()const -{ - return actualTimeGte_; +void SearchTaskRequest::setJobStatusStringList(const std::string &jobStatusStringList) { + jobStatusStringList_ = jobStatusStringList; + setParameter(std::string("JobStatusStringList"), jobStatusStringList); } -void SearchTaskRequest::setActualTimeGte(long actualTimeGte) -{ - actualTimeGte_ = actualTimeGte; - setParameter("ActualTimeGte", std::to_string(actualTimeGte)); +long SearchTaskRequest::getActualTimeGte() const { + return actualTimeGte_; } -long SearchTaskRequest::getCallDurationGte()const -{ - return callDurationGte_; +void SearchTaskRequest::setActualTimeGte(long actualTimeGte) { + actualTimeGte_ = actualTimeGte; + setParameter(std::string("ActualTimeGte"), std::to_string(actualTimeGte)); } -void SearchTaskRequest::setCallDurationGte(long callDurationGte) -{ - callDurationGte_ = callDurationGte; - setParameter("CallDurationGte", std::to_string(callDurationGte)); +long SearchTaskRequest::getCallDurationGte() const { + return callDurationGte_; } -long SearchTaskRequest::getRecordingDurationLte()const -{ - return recordingDurationLte_; +void SearchTaskRequest::setCallDurationGte(long callDurationGte) { + callDurationGte_ = callDurationGte; + setParameter(std::string("CallDurationGte"), std::to_string(callDurationGte)); } -void SearchTaskRequest::setRecordingDurationLte(long recordingDurationLte) -{ - recordingDurationLte_ = recordingDurationLte; - setParameter("RecordingDurationLte", std::to_string(recordingDurationLte)); +long SearchTaskRequest::getRecordingDurationLte() const { + return recordingDurationLte_; +} + +void SearchTaskRequest::setRecordingDurationLte(long recordingDurationLte) { + recordingDurationLte_ = recordingDurationLte; + setParameter(std::string("RecordingDurationLte"), std::to_string(recordingDurationLte)); } diff --git a/outboundbot/src/model/StartJobRequest.cc b/outboundbot/src/model/StartJobRequest.cc index 315e48ecd..b6550ef36 100644 --- a/outboundbot/src/model/StartJobRequest.cc +++ b/outboundbot/src/model/StartJobRequest.cc @@ -1,108 +1,89 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::StartJobRequest; - -StartJobRequest::StartJobRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "StartJob") -{ - setMethod(HttpRequest::Method::Post); -} - -StartJobRequest::~StartJobRequest() -{} - -std::string StartJobRequest::getJobJson()const -{ - return jobJson_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::StartJobRequest; + +StartJobRequest::StartJobRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "StartJob") { + setMethod(HttpRequest::Method::Post); } -void StartJobRequest::setJobJson(const std::string& jobJson) -{ - jobJson_ = jobJson; - setParameter("JobJson", jobJson); +StartJobRequest::~StartJobRequest() {} + +std::string StartJobRequest::getJobJson() const { + return jobJson_; } -std::vector StartJobRequest::getCallingNumber()const -{ - return callingNumber_; +void StartJobRequest::setJobJson(const std::string &jobJson) { + jobJson_ = jobJson; + setParameter(std::string("JobJson"), jobJson); } -void StartJobRequest::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 StartJobRequest::getScriptId() const { + return scriptId_; } -std::string StartJobRequest::getScriptId()const -{ - return scriptId_; +void StartJobRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void StartJobRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::vector StartJobRequest::getCallingNumber() const { + return callingNumber_; } -std::string StartJobRequest::getInstanceId()const -{ - return instanceId_; +void StartJobRequest::setCallingNumber(const std::vector &callingNumber) { + callingNumber_ = callingNumber; } -void StartJobRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string StartJobRequest::getInstanceId() const { + return instanceId_; } -std::string StartJobRequest::getJobGroupId()const -{ - return jobGroupId_; +void StartJobRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void StartJobRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string StartJobRequest::getJobGroupId() const { + return jobGroupId_; } -bool StartJobRequest::getSelfHostedCallCenter()const -{ - return selfHostedCallCenter_; +void StartJobRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void StartJobRequest::setSelfHostedCallCenter(bool selfHostedCallCenter) -{ - selfHostedCallCenter_ = selfHostedCallCenter; - setParameter("SelfHostedCallCenter", selfHostedCallCenter ? "true" : "false"); +bool StartJobRequest::getSelfHostedCallCenter() const { + return selfHostedCallCenter_; } -std::string StartJobRequest::getScenarioId()const -{ - return scenarioId_; +void StartJobRequest::setSelfHostedCallCenter(bool selfHostedCallCenter) { + selfHostedCallCenter_ = selfHostedCallCenter; + setParameter(std::string("SelfHostedCallCenter"), selfHostedCallCenter ? "true" : "false"); } -void StartJobRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); +std::string StartJobRequest::getScenarioId() const { + return scenarioId_; +} + +void StartJobRequest::setScenarioId(const std::string &scenarioId) { + scenarioId_ = scenarioId; + setParameter(std::string("ScenarioId"), scenarioId); } diff --git a/outboundbot/src/model/StartJobResult.cc b/outboundbot/src/model/StartJobResult.cc index a2fd29081..921808f40 100644 --- a/outboundbot/src/model/StartJobResult.cc +++ b/outboundbot/src/model/StartJobResult.cc @@ -59,10 +59,10 @@ void StartJobResult::parse(const std::string &payload) callIdsObject.value = valueCallIdsKeyValuePair["Value"].asString(); callIds_.push_back(callIdsObject); } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/SubmitBatchJobsRequest.cc b/outboundbot/src/model/SubmitBatchJobsRequest.cc index 8a7e9b734..e8ea274e6 100644 --- a/outboundbot/src/model/SubmitBatchJobsRequest.cc +++ b/outboundbot/src/model/SubmitBatchJobsRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::SubmitBatchJobsRequest; - -SubmitBatchJobsRequest::SubmitBatchJobsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "SubmitBatchJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitBatchJobsRequest::~SubmitBatchJobsRequest() -{} - -std::string SubmitBatchJobsRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SubmitBatchJobsRequest; + +SubmitBatchJobsRequest::SubmitBatchJobsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SubmitBatchJobs") { + setMethod(HttpRequest::Method::Post); } -void SubmitBatchJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +SubmitBatchJobsRequest::~SubmitBatchJobsRequest() {} + +std::string SubmitBatchJobsRequest::getInstanceId() const { + return instanceId_; } -std::string SubmitBatchJobsRequest::getJobGroupId()const -{ - return jobGroupId_; +void SubmitBatchJobsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void SubmitBatchJobsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string SubmitBatchJobsRequest::getJobGroupId() const { + return jobGroupId_; +} + +void SubmitBatchJobsRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } diff --git a/outboundbot/src/model/SubmitBatchJobsResult.cc b/outboundbot/src/model/SubmitBatchJobsResult.cc index 2c6c24c6c..f4ee24ae1 100644 --- a/outboundbot/src/model/SubmitBatchJobsResult.cc +++ b/outboundbot/src/model/SubmitBatchJobsResult.cc @@ -39,10 +39,10 @@ void SubmitBatchJobsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/SubmitRecordingRequest.cc b/outboundbot/src/model/SubmitRecordingRequest.cc index 9f2f803f6..52df7d15c 100644 --- a/outboundbot/src/model/SubmitRecordingRequest.cc +++ b/outboundbot/src/model/SubmitRecordingRequest.cc @@ -1,84 +1,72 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::SubmitRecordingRequest; - -SubmitRecordingRequest::SubmitRecordingRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "SubmitRecording") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitRecordingRequest::~SubmitRecordingRequest() -{} - -std::string SubmitRecordingRequest::getMergedRecording()const -{ - return mergedRecording_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SubmitRecordingRequest; + +SubmitRecordingRequest::SubmitRecordingRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SubmitRecording") { + setMethod(HttpRequest::Method::Post); } -void SubmitRecordingRequest::setMergedRecording(const std::string& mergedRecording) -{ - mergedRecording_ = mergedRecording; - setParameter("MergedRecording", mergedRecording); +SubmitRecordingRequest::~SubmitRecordingRequest() {} + +std::string SubmitRecordingRequest::getMergedRecording() const { + return mergedRecording_; } -std::string SubmitRecordingRequest::getResourceRecording()const -{ - return resourceRecording_; +void SubmitRecordingRequest::setMergedRecording(const std::string &mergedRecording) { + mergedRecording_ = mergedRecording; + setParameter(std::string("MergedRecording"), mergedRecording); } -void SubmitRecordingRequest::setResourceRecording(const std::string& resourceRecording) -{ - resourceRecording_ = resourceRecording; - setParameter("ResourceRecording", resourceRecording); +std::string SubmitRecordingRequest::getResourceRecording() const { + return resourceRecording_; } -std::string SubmitRecordingRequest::getInstanceId()const -{ - return instanceId_; +void SubmitRecordingRequest::setResourceRecording(const std::string &resourceRecording) { + resourceRecording_ = resourceRecording; + setParameter(std::string("ResourceRecording"), resourceRecording); } -void SubmitRecordingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string SubmitRecordingRequest::getInstanceId() const { + return instanceId_; } -long SubmitRecordingRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void SubmitRecordingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void SubmitRecordingRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long SubmitRecordingRequest::getInstanceOwnerId() const { + return instanceOwnerId_; } -std::string SubmitRecordingRequest::getTaskId()const -{ - return taskId_; +void SubmitRecordingRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } -void SubmitRecordingRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); +std::string SubmitRecordingRequest::getTaskId() const { + return taskId_; +} + +void SubmitRecordingRequest::setTaskId(const std::string &taskId) { + taskId_ = taskId; + setParameter(std::string("TaskId"), taskId); } diff --git a/outboundbot/src/model/SubmitRecordingResult.cc b/outboundbot/src/model/SubmitRecordingResult.cc index 49e269dcf..24edf4ba9 100644 --- a/outboundbot/src/model/SubmitRecordingResult.cc +++ b/outboundbot/src/model/SubmitRecordingResult.cc @@ -39,10 +39,10 @@ void SubmitRecordingResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/SubmitScriptReviewRequest.cc b/outboundbot/src/model/SubmitScriptReviewRequest.cc index b5a91f815..0ad4fea04 100644 --- a/outboundbot/src/model/SubmitScriptReviewRequest.cc +++ b/outboundbot/src/model/SubmitScriptReviewRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::SubmitScriptReviewRequest; - -SubmitScriptReviewRequest::SubmitScriptReviewRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "SubmitScriptReview") -{ - setMethod(HttpRequest::Method::Post); -} - -SubmitScriptReviewRequest::~SubmitScriptReviewRequest() -{} - -std::string SubmitScriptReviewRequest::getDescription()const -{ - return description_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SubmitScriptReviewRequest; + +SubmitScriptReviewRequest::SubmitScriptReviewRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SubmitScriptReview") { + setMethod(HttpRequest::Method::Post); } -void SubmitScriptReviewRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +SubmitScriptReviewRequest::~SubmitScriptReviewRequest() {} + +std::string SubmitScriptReviewRequest::getDescription() const { + return description_; } -std::string SubmitScriptReviewRequest::getScriptId()const -{ - return scriptId_; +void SubmitScriptReviewRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void SubmitScriptReviewRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +std::string SubmitScriptReviewRequest::getScriptId() const { + return scriptId_; } -std::string SubmitScriptReviewRequest::getInstanceId()const -{ - return instanceId_; +void SubmitScriptReviewRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void SubmitScriptReviewRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string SubmitScriptReviewRequest::getInstanceId() const { + return instanceId_; +} + +void SubmitScriptReviewRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/SubmitScriptReviewResult.cc b/outboundbot/src/model/SubmitScriptReviewResult.cc index ff3bf2e84..ebab7da4d 100644 --- a/outboundbot/src/model/SubmitScriptReviewResult.cc +++ b/outboundbot/src/model/SubmitScriptReviewResult.cc @@ -39,10 +39,10 @@ void SubmitScriptReviewResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/SuspendCallRequest.cc b/outboundbot/src/model/SuspendCallRequest.cc index 54f2a1175..ef86ce427 100644 --- a/outboundbot/src/model/SuspendCallRequest.cc +++ b/outboundbot/src/model/SuspendCallRequest.cc @@ -1,64 +1,53 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#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_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SuspendCallRequest; + +SuspendCallRequest::SuspendCallRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SuspendCall") { + setMethod(HttpRequest::Method::Post); } -void SuspendCallRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +SuspendCallRequest::~SuspendCallRequest() {} + +std::string SuspendCallRequest::getGroupId() const { + return groupId_; } -std::vector SuspendCallRequest::getCalledNumbers()const -{ - return calledNumbers_; +void SuspendCallRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -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::vector SuspendCallRequest::getCalledNumbers() const { + return calledNumbers_; } -std::string SuspendCallRequest::getInstanceId()const -{ - return instanceId_; +void SuspendCallRequest::setCalledNumbers(const std::vector &calledNumbers) { + calledNumbers_ = calledNumbers; } -void SuspendCallRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string SuspendCallRequest::getInstanceId() const { + return instanceId_; +} + +void SuspendCallRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/SuspendCallWithFileRequest.cc b/outboundbot/src/model/SuspendCallWithFileRequest.cc index d2822a2ff..de634d958 100644 --- a/outboundbot/src/model/SuspendCallWithFileRequest.cc +++ b/outboundbot/src/model/SuspendCallWithFileRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::SuspendCallWithFileRequest; - -SuspendCallWithFileRequest::SuspendCallWithFileRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "SuspendCallWithFile") -{ - setMethod(HttpRequest::Method::Post); -} - -SuspendCallWithFileRequest::~SuspendCallWithFileRequest() -{} - -std::string SuspendCallWithFileRequest::getGroupId()const -{ - return groupId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SuspendCallWithFileRequest; + +SuspendCallWithFileRequest::SuspendCallWithFileRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SuspendCallWithFile") { + setMethod(HttpRequest::Method::Post); } -void SuspendCallWithFileRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setParameter("GroupId", groupId); +SuspendCallWithFileRequest::~SuspendCallWithFileRequest() {} + +std::string SuspendCallWithFileRequest::getGroupId() const { + return groupId_; } -std::string SuspendCallWithFileRequest::getInstanceId()const -{ - return instanceId_; +void SuspendCallWithFileRequest::setGroupId(const std::string &groupId) { + groupId_ = groupId; + setParameter(std::string("GroupId"), groupId); } -void SuspendCallWithFileRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string SuspendCallWithFileRequest::getInstanceId() const { + return instanceId_; } -std::string SuspendCallWithFileRequest::getFilePath()const -{ - return filePath_; +void SuspendCallWithFileRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void SuspendCallWithFileRequest::setFilePath(const std::string& filePath) -{ - filePath_ = filePath; - setParameter("FilePath", filePath); +std::string SuspendCallWithFileRequest::getFilePath() const { + return filePath_; +} + +void SuspendCallWithFileRequest::setFilePath(const std::string &filePath) { + filePath_ = filePath; + setParameter(std::string("FilePath"), filePath); } diff --git a/outboundbot/src/model/SuspendJobsRequest.cc b/outboundbot/src/model/SuspendJobsRequest.cc index 8dbbbd88d..0d23d4fe8 100644 --- a/outboundbot/src/model/SuspendJobsRequest.cc +++ b/outboundbot/src/model/SuspendJobsRequest.cc @@ -1,99 +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 - -using AlibabaCloud::OutboundBot::Model::SuspendJobsRequest; - -SuspendJobsRequest::SuspendJobsRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "SuspendJobs") -{ - setMethod(HttpRequest::Method::Post); -} - -SuspendJobsRequest::~SuspendJobsRequest() -{} - -bool SuspendJobsRequest::getAll()const -{ - return all_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::SuspendJobsRequest; + +SuspendJobsRequest::SuspendJobsRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "SuspendJobs") { + setMethod(HttpRequest::Method::Post); } -void SuspendJobsRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +SuspendJobsRequest::~SuspendJobsRequest() {} + +bool SuspendJobsRequest::getAll() const { + return all_; } -std::vector SuspendJobsRequest::getJobReferenceId()const -{ - return jobReferenceId_; +void SuspendJobsRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); } -void SuspendJobsRequest::setJobReferenceId(const std::vector& jobReferenceId) -{ - jobReferenceId_ = jobReferenceId; - for(int dep1 = 0; dep1!= jobReferenceId.size(); dep1++) { - setParameter("JobReferenceId."+ std::to_string(dep1), jobReferenceId.at(dep1)); - } +std::vector SuspendJobsRequest::getJobReferenceId() const { + return jobReferenceId_; } -std::vector SuspendJobsRequest::getJobId()const -{ - return jobId_; +void SuspendJobsRequest::setJobReferenceId(const std::vector &jobReferenceId) { + jobReferenceId_ = jobReferenceId; } -void SuspendJobsRequest::setJobId(const std::vector& jobId) -{ - jobId_ = jobId; - for(int dep1 = 0; dep1!= jobId.size(); dep1++) { - setParameter("JobId."+ std::to_string(dep1), jobId.at(dep1)); - } +std::vector SuspendJobsRequest::getJobId() const { + return jobId_; } -std::string SuspendJobsRequest::getInstanceId()const -{ - return instanceId_; +void SuspendJobsRequest::setJobId(const std::vector &jobId) { + jobId_ = jobId; } -void SuspendJobsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string SuspendJobsRequest::getInstanceId() const { + return instanceId_; } -std::string SuspendJobsRequest::getJobGroupId()const -{ - return jobGroupId_; +void SuspendJobsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void SuspendJobsRequest::setJobGroupId(const std::string& jobGroupId) -{ - jobGroupId_ = jobGroupId; - setParameter("JobGroupId", jobGroupId); +std::string SuspendJobsRequest::getJobGroupId() const { + return jobGroupId_; } -std::string SuspendJobsRequest::getScenarioId()const -{ - return scenarioId_; +void SuspendJobsRequest::setJobGroupId(const std::string &jobGroupId) { + jobGroupId_ = jobGroupId; + setParameter(std::string("JobGroupId"), jobGroupId); } -void SuspendJobsRequest::setScenarioId(const std::string& scenarioId) -{ - scenarioId_ = scenarioId; - setParameter("ScenarioId", scenarioId); +std::string SuspendJobsRequest::getScenarioId() const { + return scenarioId_; +} + +void SuspendJobsRequest::setScenarioId(const std::string &scenarioId) { + scenarioId_ = scenarioId; + setParameter(std::string("ScenarioId"), scenarioId); } diff --git a/outboundbot/src/model/SuspendJobsResult.cc b/outboundbot/src/model/SuspendJobsResult.cc index 066971499..20714b04e 100644 --- a/outboundbot/src/model/SuspendJobsResult.cc +++ b/outboundbot/src/model/SuspendJobsResult.cc @@ -39,10 +39,10 @@ void SuspendJobsResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull()) diff --git a/outboundbot/src/model/TagResourcesRequest.cc b/outboundbot/src/model/TagResourcesRequest.cc index 5fb902924..6810321be 100644 --- a/outboundbot/src/model/TagResourcesRequest.cc +++ b/outboundbot/src/model/TagResourcesRequest.cc @@ -1,80 +1,67 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::TagResourcesRequest; + +TagResourcesRequest::TagResourcesRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "TagResources") { + setMethod(HttpRequest::Method::Post); } -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)); - } +TagResourcesRequest::~TagResourcesRequest() {} + +std::vector TagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string TagResourcesRequest::getResourceType()const -{ - return resourceType_; +void TagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void TagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string TagResourcesRequest::getResourceType() const { + return resourceType_; } -std::string TagResourcesRequest::getRegionId()const -{ - return regionId_; +void TagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void TagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string TagResourcesRequest::getRegionId() const { + return regionId_; } -std::vector TagResourcesRequest::getTag()const -{ - return tag_; +void TagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -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); - } +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 = std::string("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 index b824a1ed2..1abb34d6f 100644 --- a/outboundbot/src/model/TagResourcesResult.cc +++ b/outboundbot/src/model/TagResourcesResult.cc @@ -39,14 +39,14 @@ void TagResourcesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/TaskPreparingRequest.cc b/outboundbot/src/model/TaskPreparingRequest.cc index d2ed4f705..44d9331e8 100644 --- a/outboundbot/src/model/TaskPreparingRequest.cc +++ b/outboundbot/src/model/TaskPreparingRequest.cc @@ -1,62 +1,54 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::TaskPreparingRequest; - -TaskPreparingRequest::TaskPreparingRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "TaskPreparing") -{ - setMethod(HttpRequest::Method::Post); -} - -TaskPreparingRequest::~TaskPreparingRequest() -{} - -std::string TaskPreparingRequest::getJobId()const -{ - return jobId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::TaskPreparingRequest; + +TaskPreparingRequest::TaskPreparingRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "TaskPreparing") { + setMethod(HttpRequest::Method::Post); } -void TaskPreparingRequest::setJobId(const std::string& jobId) -{ - jobId_ = jobId; - setParameter("JobId", jobId); +TaskPreparingRequest::~TaskPreparingRequest() {} + +std::string TaskPreparingRequest::getJobId() const { + return jobId_; } -std::string TaskPreparingRequest::getInstanceId()const -{ - return instanceId_; +void TaskPreparingRequest::setJobId(const std::string &jobId) { + jobId_ = jobId; + setParameter(std::string("JobId"), jobId); } -void TaskPreparingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string TaskPreparingRequest::getInstanceId() const { + return instanceId_; } -long TaskPreparingRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void TaskPreparingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void TaskPreparingRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long TaskPreparingRequest::getInstanceOwnerId() const { + return instanceOwnerId_; +} + +void TaskPreparingRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } diff --git a/outboundbot/src/model/TaskPreparingResult.cc b/outboundbot/src/model/TaskPreparingResult.cc index 4a68c08b8..d451f01fb 100644 --- a/outboundbot/src/model/TaskPreparingResult.cc +++ b/outboundbot/src/model/TaskPreparingResult.cc @@ -39,14 +39,14 @@ void TaskPreparingResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].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(); diff --git a/outboundbot/src/model/TerminateCallRequest.cc b/outboundbot/src/model/TerminateCallRequest.cc index a2a751075..82de05f69 100644 --- a/outboundbot/src/model/TerminateCallRequest.cc +++ b/outboundbot/src/model/TerminateCallRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::TerminateCallRequest; - -TerminateCallRequest::TerminateCallRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "TerminateCall") -{ - setMethod(HttpRequest::Method::Post); -} - -TerminateCallRequest::~TerminateCallRequest() -{} - -std::string TerminateCallRequest::getCallId()const -{ - return callId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::TerminateCallRequest; + +TerminateCallRequest::TerminateCallRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "TerminateCall") { + setMethod(HttpRequest::Method::Post); } -void TerminateCallRequest::setCallId(const std::string& callId) -{ - callId_ = callId; - setParameter("CallId", callId); +TerminateCallRequest::~TerminateCallRequest() {} + +std::string TerminateCallRequest::getCallId() const { + return callId_; } -std::string TerminateCallRequest::getInstanceId()const -{ - return instanceId_; +void TerminateCallRequest::setCallId(const std::string &callId) { + callId_ = callId; + setParameter(std::string("CallId"), callId); } -void TerminateCallRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string TerminateCallRequest::getInstanceId() const { + return instanceId_; +} + +void TerminateCallRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/TerminateCallResult.cc b/outboundbot/src/model/TerminateCallResult.cc index 2ad751b62..bba0a9cf0 100644 --- a/outboundbot/src/model/TerminateCallResult.cc +++ b/outboundbot/src/model/TerminateCallResult.cc @@ -39,14 +39,14 @@ void TerminateCallResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/UntagResourcesRequest.cc b/outboundbot/src/model/UntagResourcesRequest.cc index 8a1f18ffc..1eb3a67e3 100644 --- a/outboundbot/src/model/UntagResourcesRequest.cc +++ b/outboundbot/src/model/UntagResourcesRequest.cc @@ -1,88 +1,70 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -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_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::UntagResourcesRequest; + +UntagResourcesRequest::UntagResourcesRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "UntagResources") { + setMethod(HttpRequest::Method::Post); } -void UntagResourcesRequest::setAll(bool all) -{ - all_ = all; - setParameter("All", all ? "true" : "false"); +UntagResourcesRequest::~UntagResourcesRequest() {} + +bool UntagResourcesRequest::getAll() const { + return all_; } -std::vector UntagResourcesRequest::getResourceId()const -{ - return resourceId_; +void UntagResourcesRequest::setAll(bool all) { + all_ = all; + setParameter(std::string("All"), all ? "true" : "false"); } -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::vector UntagResourcesRequest::getResourceId() const { + return resourceId_; } -std::string UntagResourcesRequest::getResourceType()const -{ - return resourceType_; +void UntagResourcesRequest::setResourceId(const std::vector &resourceId) { + resourceId_ = resourceId; } -void UntagResourcesRequest::setResourceType(const std::string& resourceType) -{ - resourceType_ = resourceType; - setParameter("ResourceType", resourceType); +std::string UntagResourcesRequest::getResourceType() const { + return resourceType_; } -std::string UntagResourcesRequest::getRegionId()const -{ - return regionId_; +void UntagResourcesRequest::setResourceType(const std::string &resourceType) { + resourceType_ = resourceType; + setParameter(std::string("ResourceType"), resourceType); } -void UntagResourcesRequest::setRegionId(const std::string& regionId) -{ - regionId_ = regionId; - setParameter("RegionId", regionId); +std::string UntagResourcesRequest::getRegionId() const { + return regionId_; } -std::vector UntagResourcesRequest::getTagKey()const -{ - return tagKey_; +void UntagResourcesRequest::setRegionId(const std::string ®ionId) { + regionId_ = regionId; + setParameter(std::string("RegionId"), regionId); } -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)); - } +std::vector UntagResourcesRequest::getTagKey() const { + return tagKey_; +} + +void UntagResourcesRequest::setTagKey(const std::vector &tagKey) { + tagKey_ = tagKey; } diff --git a/outboundbot/src/model/UntagResourcesResult.cc b/outboundbot/src/model/UntagResourcesResult.cc index 7658ecab8..ea45ea209 100644 --- a/outboundbot/src/model/UntagResourcesResult.cc +++ b/outboundbot/src/model/UntagResourcesResult.cc @@ -39,14 +39,14 @@ void UntagResourcesResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; + if(!value["HttpStatusCode"].isNull()) + httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); 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["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } diff --git a/outboundbot/src/model/WithdrawScriptReviewRequest.cc b/outboundbot/src/model/WithdrawScriptReviewRequest.cc index a5942f78a..46f5bae63 100644 --- a/outboundbot/src/model/WithdrawScriptReviewRequest.cc +++ b/outboundbot/src/model/WithdrawScriptReviewRequest.cc @@ -1,51 +1,45 @@ /* * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * + * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * + * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. - */ - -#include - -using AlibabaCloud::OutboundBot::Model::WithdrawScriptReviewRequest; - -WithdrawScriptReviewRequest::WithdrawScriptReviewRequest() : - RpcServiceRequest("outboundbot", "2019-12-26", "WithdrawScriptReview") -{ - setMethod(HttpRequest::Method::Post); -} - -WithdrawScriptReviewRequest::~WithdrawScriptReviewRequest() -{} - -std::string WithdrawScriptReviewRequest::getScriptId()const -{ - return scriptId_; + */ + +#include + +using AlibabaCloud::OutboundBot::Model::WithdrawScriptReviewRequest; + +WithdrawScriptReviewRequest::WithdrawScriptReviewRequest() + : RpcServiceRequest("outboundbot", "2019-12-26", "WithdrawScriptReview") { + setMethod(HttpRequest::Method::Post); } -void WithdrawScriptReviewRequest::setScriptId(const std::string& scriptId) -{ - scriptId_ = scriptId; - setParameter("ScriptId", scriptId); +WithdrawScriptReviewRequest::~WithdrawScriptReviewRequest() {} + +std::string WithdrawScriptReviewRequest::getScriptId() const { + return scriptId_; } -std::string WithdrawScriptReviewRequest::getInstanceId()const -{ - return instanceId_; +void WithdrawScriptReviewRequest::setScriptId(const std::string &scriptId) { + scriptId_ = scriptId; + setParameter(std::string("ScriptId"), scriptId); } -void WithdrawScriptReviewRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string WithdrawScriptReviewRequest::getInstanceId() const { + return instanceId_; +} + +void WithdrawScriptReviewRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/outboundbot/src/model/WithdrawScriptReviewResult.cc b/outboundbot/src/model/WithdrawScriptReviewResult.cc index 593346765..b9d3b8533 100644 --- a/outboundbot/src/model/WithdrawScriptReviewResult.cc +++ b/outboundbot/src/model/WithdrawScriptReviewResult.cc @@ -40,30 +40,30 @@ void WithdrawScriptReviewResult::parse(const std::string &payload) reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto scriptNode = value["Script"]; - if(!scriptNode["DebugStatus"].isNull()) - script_.debugStatus = scriptNode["DebugStatus"].asString(); - if(!scriptNode["Industry"].isNull()) - script_.industry = scriptNode["Industry"].asString(); - if(!scriptNode["IsDebugDrafted"].isNull()) - script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true"; - if(!scriptNode["IsDrafted"].isNull()) - script_.isDrafted = scriptNode["IsDrafted"].asString() == "true"; - if(!scriptNode["Scene"].isNull()) - script_.scene = scriptNode["Scene"].asString(); - if(!scriptNode["ScriptDescription"].isNull()) - script_.scriptDescription = scriptNode["ScriptDescription"].asString(); - if(!scriptNode["ScriptId"].isNull()) - script_.scriptId = scriptNode["ScriptId"].asString(); - if(!scriptNode["ScriptName"].isNull()) - script_.scriptName = scriptNode["ScriptName"].asString(); if(!scriptNode["Status"].isNull()) script_.status = scriptNode["Status"].asString(); if(!scriptNode["UpdateTime"].isNull()) script_.updateTime = std::stol(scriptNode["UpdateTime"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); + if(!scriptNode["Industry"].isNull()) + script_.industry = scriptNode["Industry"].asString(); + if(!scriptNode["ScriptDescription"].isNull()) + script_.scriptDescription = scriptNode["ScriptDescription"].asString(); + if(!scriptNode["IsDrafted"].isNull()) + script_.isDrafted = scriptNode["IsDrafted"].asString() == "true"; + if(!scriptNode["DebugStatus"].isNull()) + script_.debugStatus = scriptNode["DebugStatus"].asString(); + if(!scriptNode["ScriptId"].isNull()) + script_.scriptId = scriptNode["ScriptId"].asString(); + if(!scriptNode["IsDebugDrafted"].isNull()) + script_.isDebugDrafted = scriptNode["IsDebugDrafted"].asString() == "true"; + if(!scriptNode["ScriptName"].isNull()) + script_.scriptName = scriptNode["ScriptName"].asString(); + if(!scriptNode["Scene"].isNull()) + script_.scene = scriptNode["Scene"].asString(); if(!value["HttpStatusCode"].isNull()) httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); if(!value["Success"].isNull())