diff --git a/CHANGELOG b/CHANGELOG index f383bb452..05fc3c5bc 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2022-04-21 Version: 1.36.1112 +- Supported new features etc. + 2022-04-21 Version: 1.36.1111 - Supported new features for outbound. diff --git a/VERSION b/VERSION index 9b9f98ee4..9c44c0855 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.1111 \ No newline at end of file +1.36.1112 \ No newline at end of file diff --git a/voicenavigator/CMakeLists.txt b/voicenavigator/CMakeLists.txt index 7d7a8231b..ec6ca2c46 100644 --- a/voicenavigator/CMakeLists.txt +++ b/voicenavigator/CMakeLists.txt @@ -25,8 +25,6 @@ set(voicenavigator_public_header_model include/alibabacloud/voicenavigator/model/AssociateChatbotInstanceResult.h include/alibabacloud/voicenavigator/model/AuditTTSVoiceRequest.h include/alibabacloud/voicenavigator/model/AuditTTSVoiceResult.h - include/alibabacloud/voicenavigator/model/BatchCreateSandBoxWhileListRequest.h - include/alibabacloud/voicenavigator/model/BatchCreateSandBoxWhileListResult.h include/alibabacloud/voicenavigator/model/BeginDialogueRequest.h include/alibabacloud/voicenavigator/model/BeginDialogueResult.h include/alibabacloud/voicenavigator/model/CollectedNumberRequest.h @@ -43,10 +41,6 @@ set(voicenavigator_public_header_model include/alibabacloud/voicenavigator/model/DebugDialogueResult.h include/alibabacloud/voicenavigator/model/DeleteInstanceRequest.h include/alibabacloud/voicenavigator/model/DeleteInstanceResult.h - include/alibabacloud/voicenavigator/model/DeleteSandBoxWhileListRequest.h - include/alibabacloud/voicenavigator/model/DeleteSandBoxWhileListResult.h - include/alibabacloud/voicenavigator/model/DescribeAsrVadConfigRequest.h - include/alibabacloud/voicenavigator/model/DescribeAsrVadConfigResult.h include/alibabacloud/voicenavigator/model/DescribeConversationRequest.h include/alibabacloud/voicenavigator/model/DescribeConversationResult.h include/alibabacloud/voicenavigator/model/DescribeConversationContextRequest.h @@ -63,28 +57,22 @@ set(voicenavigator_public_header_model include/alibabacloud/voicenavigator/model/DescribeStatisticalDataResult.h include/alibabacloud/voicenavigator/model/DescribeTTSConfigRequest.h include/alibabacloud/voicenavigator/model/DescribeTTSConfigResult.h - include/alibabacloud/voicenavigator/model/DescribeVoiceConfigRequest.h - include/alibabacloud/voicenavigator/model/DescribeVoiceConfigResult.h include/alibabacloud/voicenavigator/model/DialogueRequest.h include/alibabacloud/voicenavigator/model/DialogueResult.h include/alibabacloud/voicenavigator/model/DisableInstanceRequest.h include/alibabacloud/voicenavigator/model/DisableInstanceResult.h - include/alibabacloud/voicenavigator/model/DisableSandBoxWhileListRequest.h - include/alibabacloud/voicenavigator/model/DisableSandBoxWhileListResult.h include/alibabacloud/voicenavigator/model/EnableInstanceRequest.h include/alibabacloud/voicenavigator/model/EnableInstanceResult.h - include/alibabacloud/voicenavigator/model/EnableSandBoxWhileListRequest.h - include/alibabacloud/voicenavigator/model/EnableSandBoxWhileListResult.h include/alibabacloud/voicenavigator/model/EndDialogueRequest.h include/alibabacloud/voicenavigator/model/EndDialogueResult.h include/alibabacloud/voicenavigator/model/ExportConversationDetailsRequest.h include/alibabacloud/voicenavigator/model/ExportConversationDetailsResult.h include/alibabacloud/voicenavigator/model/ExportStatisticalDataRequest.h include/alibabacloud/voicenavigator/model/ExportStatisticalDataResult.h - include/alibabacloud/voicenavigator/model/GetInstanceConfigRequest.h - include/alibabacloud/voicenavigator/model/GetInstanceConfigResult.h - include/alibabacloud/voicenavigator/model/GetNewBargeInSwitchRequest.h - include/alibabacloud/voicenavigator/model/GetNewBargeInSwitchResult.h + include/alibabacloud/voicenavigator/model/GenerateUploadUrlRequest.h + include/alibabacloud/voicenavigator/model/GenerateUploadUrlResult.h + include/alibabacloud/voicenavigator/model/GetAsrConfigRequest.h + include/alibabacloud/voicenavigator/model/GetAsrConfigResult.h include/alibabacloud/voicenavigator/model/ListChatbotInstancesRequest.h include/alibabacloud/voicenavigator/model/ListChatbotInstancesResult.h include/alibabacloud/voicenavigator/model/ListConversationDetailsRequest.h @@ -95,16 +83,12 @@ set(voicenavigator_public_header_model include/alibabacloud/voicenavigator/model/ListDownloadTasksResult.h include/alibabacloud/voicenavigator/model/ListInstancesRequest.h include/alibabacloud/voicenavigator/model/ListInstancesResult.h - include/alibabacloud/voicenavigator/model/ListSandBoxWhileListRequest.h - include/alibabacloud/voicenavigator/model/ListSandBoxWhileListResult.h - include/alibabacloud/voicenavigator/model/ModifyAsrVadConfigRequest.h - include/alibabacloud/voicenavigator/model/ModifyAsrVadConfigResult.h + include/alibabacloud/voicenavigator/model/ModifyAsrConfigRequest.h + include/alibabacloud/voicenavigator/model/ModifyAsrConfigResult.h include/alibabacloud/voicenavigator/model/ModifyGreetingConfigRequest.h include/alibabacloud/voicenavigator/model/ModifyGreetingConfigResult.h include/alibabacloud/voicenavigator/model/ModifyInstanceRequest.h include/alibabacloud/voicenavigator/model/ModifyInstanceResult.h - include/alibabacloud/voicenavigator/model/ModifySandBoxWhileListRequest.h - include/alibabacloud/voicenavigator/model/ModifySandBoxWhileListResult.h include/alibabacloud/voicenavigator/model/ModifySilenceTimeoutConfigRequest.h include/alibabacloud/voicenavigator/model/ModifySilenceTimeoutConfigResult.h include/alibabacloud/voicenavigator/model/ModifyTTSConfigRequest.h @@ -116,9 +100,7 @@ set(voicenavigator_public_header_model include/alibabacloud/voicenavigator/model/SaveRecordingRequest.h include/alibabacloud/voicenavigator/model/SaveRecordingResult.h include/alibabacloud/voicenavigator/model/SilenceTimeoutRequest.h - include/alibabacloud/voicenavigator/model/SilenceTimeoutResult.h - include/alibabacloud/voicenavigator/model/UpdateNewBargeInSwitchRequest.h - include/alibabacloud/voicenavigator/model/UpdateNewBargeInSwitchResult.h ) + include/alibabacloud/voicenavigator/model/SilenceTimeoutResult.h ) set(voicenavigator_src src/VoiceNavigatorClient.cc @@ -126,8 +108,6 @@ set(voicenavigator_src src/model/AssociateChatbotInstanceResult.cc src/model/AuditTTSVoiceRequest.cc src/model/AuditTTSVoiceResult.cc - src/model/BatchCreateSandBoxWhileListRequest.cc - src/model/BatchCreateSandBoxWhileListResult.cc src/model/BeginDialogueRequest.cc src/model/BeginDialogueResult.cc src/model/CollectedNumberRequest.cc @@ -144,10 +124,6 @@ set(voicenavigator_src src/model/DebugDialogueResult.cc src/model/DeleteInstanceRequest.cc src/model/DeleteInstanceResult.cc - src/model/DeleteSandBoxWhileListRequest.cc - src/model/DeleteSandBoxWhileListResult.cc - src/model/DescribeAsrVadConfigRequest.cc - src/model/DescribeAsrVadConfigResult.cc src/model/DescribeConversationRequest.cc src/model/DescribeConversationResult.cc src/model/DescribeConversationContextRequest.cc @@ -164,28 +140,22 @@ set(voicenavigator_src src/model/DescribeStatisticalDataResult.cc src/model/DescribeTTSConfigRequest.cc src/model/DescribeTTSConfigResult.cc - src/model/DescribeVoiceConfigRequest.cc - src/model/DescribeVoiceConfigResult.cc src/model/DialogueRequest.cc src/model/DialogueResult.cc src/model/DisableInstanceRequest.cc src/model/DisableInstanceResult.cc - src/model/DisableSandBoxWhileListRequest.cc - src/model/DisableSandBoxWhileListResult.cc src/model/EnableInstanceRequest.cc src/model/EnableInstanceResult.cc - src/model/EnableSandBoxWhileListRequest.cc - src/model/EnableSandBoxWhileListResult.cc src/model/EndDialogueRequest.cc src/model/EndDialogueResult.cc src/model/ExportConversationDetailsRequest.cc src/model/ExportConversationDetailsResult.cc src/model/ExportStatisticalDataRequest.cc src/model/ExportStatisticalDataResult.cc - src/model/GetInstanceConfigRequest.cc - src/model/GetInstanceConfigResult.cc - src/model/GetNewBargeInSwitchRequest.cc - src/model/GetNewBargeInSwitchResult.cc + src/model/GenerateUploadUrlRequest.cc + src/model/GenerateUploadUrlResult.cc + src/model/GetAsrConfigRequest.cc + src/model/GetAsrConfigResult.cc src/model/ListChatbotInstancesRequest.cc src/model/ListChatbotInstancesResult.cc src/model/ListConversationDetailsRequest.cc @@ -196,16 +166,12 @@ set(voicenavigator_src src/model/ListDownloadTasksResult.cc src/model/ListInstancesRequest.cc src/model/ListInstancesResult.cc - src/model/ListSandBoxWhileListRequest.cc - src/model/ListSandBoxWhileListResult.cc - src/model/ModifyAsrVadConfigRequest.cc - src/model/ModifyAsrVadConfigResult.cc + src/model/ModifyAsrConfigRequest.cc + src/model/ModifyAsrConfigResult.cc src/model/ModifyGreetingConfigRequest.cc src/model/ModifyGreetingConfigResult.cc src/model/ModifyInstanceRequest.cc src/model/ModifyInstanceResult.cc - src/model/ModifySandBoxWhileListRequest.cc - src/model/ModifySandBoxWhileListResult.cc src/model/ModifySilenceTimeoutConfigRequest.cc src/model/ModifySilenceTimeoutConfigResult.cc src/model/ModifyTTSConfigRequest.cc @@ -217,9 +183,7 @@ set(voicenavigator_src src/model/SaveRecordingRequest.cc src/model/SaveRecordingResult.cc src/model/SilenceTimeoutRequest.cc - src/model/SilenceTimeoutResult.cc - src/model/UpdateNewBargeInSwitchRequest.cc - src/model/UpdateNewBargeInSwitchResult.cc ) + src/model/SilenceTimeoutResult.cc ) add_library(voicenavigator ${LIB_TYPE} ${voicenavigator_public_header} diff --git a/voicenavigator/include/alibabacloud/voicenavigator/VoiceNavigatorClient.h b/voicenavigator/include/alibabacloud/voicenavigator/VoiceNavigatorClient.h index 80f063e11..68945a33f 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/VoiceNavigatorClient.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/VoiceNavigatorClient.h @@ -26,8 +26,6 @@ #include "model/AssociateChatbotInstanceResult.h" #include "model/AuditTTSVoiceRequest.h" #include "model/AuditTTSVoiceResult.h" -#include "model/BatchCreateSandBoxWhileListRequest.h" -#include "model/BatchCreateSandBoxWhileListResult.h" #include "model/BeginDialogueRequest.h" #include "model/BeginDialogueResult.h" #include "model/CollectedNumberRequest.h" @@ -44,10 +42,6 @@ #include "model/DebugDialogueResult.h" #include "model/DeleteInstanceRequest.h" #include "model/DeleteInstanceResult.h" -#include "model/DeleteSandBoxWhileListRequest.h" -#include "model/DeleteSandBoxWhileListResult.h" -#include "model/DescribeAsrVadConfigRequest.h" -#include "model/DescribeAsrVadConfigResult.h" #include "model/DescribeConversationRequest.h" #include "model/DescribeConversationResult.h" #include "model/DescribeConversationContextRequest.h" @@ -64,28 +58,22 @@ #include "model/DescribeStatisticalDataResult.h" #include "model/DescribeTTSConfigRequest.h" #include "model/DescribeTTSConfigResult.h" -#include "model/DescribeVoiceConfigRequest.h" -#include "model/DescribeVoiceConfigResult.h" #include "model/DialogueRequest.h" #include "model/DialogueResult.h" #include "model/DisableInstanceRequest.h" #include "model/DisableInstanceResult.h" -#include "model/DisableSandBoxWhileListRequest.h" -#include "model/DisableSandBoxWhileListResult.h" #include "model/EnableInstanceRequest.h" #include "model/EnableInstanceResult.h" -#include "model/EnableSandBoxWhileListRequest.h" -#include "model/EnableSandBoxWhileListResult.h" #include "model/EndDialogueRequest.h" #include "model/EndDialogueResult.h" #include "model/ExportConversationDetailsRequest.h" #include "model/ExportConversationDetailsResult.h" #include "model/ExportStatisticalDataRequest.h" #include "model/ExportStatisticalDataResult.h" -#include "model/GetInstanceConfigRequest.h" -#include "model/GetInstanceConfigResult.h" -#include "model/GetNewBargeInSwitchRequest.h" -#include "model/GetNewBargeInSwitchResult.h" +#include "model/GenerateUploadUrlRequest.h" +#include "model/GenerateUploadUrlResult.h" +#include "model/GetAsrConfigRequest.h" +#include "model/GetAsrConfigResult.h" #include "model/ListChatbotInstancesRequest.h" #include "model/ListChatbotInstancesResult.h" #include "model/ListConversationDetailsRequest.h" @@ -96,16 +84,12 @@ #include "model/ListDownloadTasksResult.h" #include "model/ListInstancesRequest.h" #include "model/ListInstancesResult.h" -#include "model/ListSandBoxWhileListRequest.h" -#include "model/ListSandBoxWhileListResult.h" -#include "model/ModifyAsrVadConfigRequest.h" -#include "model/ModifyAsrVadConfigResult.h" +#include "model/ModifyAsrConfigRequest.h" +#include "model/ModifyAsrConfigResult.h" #include "model/ModifyGreetingConfigRequest.h" #include "model/ModifyGreetingConfigResult.h" #include "model/ModifyInstanceRequest.h" #include "model/ModifyInstanceResult.h" -#include "model/ModifySandBoxWhileListRequest.h" -#include "model/ModifySandBoxWhileListResult.h" #include "model/ModifySilenceTimeoutConfigRequest.h" #include "model/ModifySilenceTimeoutConfigResult.h" #include "model/ModifyTTSConfigRequest.h" @@ -118,8 +102,6 @@ #include "model/SaveRecordingResult.h" #include "model/SilenceTimeoutRequest.h" #include "model/SilenceTimeoutResult.h" -#include "model/UpdateNewBargeInSwitchRequest.h" -#include "model/UpdateNewBargeInSwitchResult.h" namespace AlibabaCloud @@ -135,9 +117,6 @@ namespace AlibabaCloud typedef Outcome AuditTTSVoiceOutcome; typedef std::future AuditTTSVoiceOutcomeCallable; typedef std::function&)> AuditTTSVoiceAsyncHandler; - typedef Outcome BatchCreateSandBoxWhileListOutcome; - typedef std::future BatchCreateSandBoxWhileListOutcomeCallable; - typedef std::function&)> BatchCreateSandBoxWhileListAsyncHandler; typedef Outcome BeginDialogueOutcome; typedef std::future BeginDialogueOutcomeCallable; typedef std::function&)> BeginDialogueAsyncHandler; @@ -162,12 +141,6 @@ namespace AlibabaCloud typedef Outcome DeleteInstanceOutcome; typedef std::future DeleteInstanceOutcomeCallable; typedef std::function&)> DeleteInstanceAsyncHandler; - typedef Outcome DeleteSandBoxWhileListOutcome; - typedef std::future DeleteSandBoxWhileListOutcomeCallable; - typedef std::function&)> DeleteSandBoxWhileListAsyncHandler; - typedef Outcome DescribeAsrVadConfigOutcome; - typedef std::future DescribeAsrVadConfigOutcomeCallable; - typedef std::function&)> DescribeAsrVadConfigAsyncHandler; typedef Outcome DescribeConversationOutcome; typedef std::future DescribeConversationOutcomeCallable; typedef std::function&)> DescribeConversationAsyncHandler; @@ -192,24 +165,15 @@ namespace AlibabaCloud typedef Outcome DescribeTTSConfigOutcome; typedef std::future DescribeTTSConfigOutcomeCallable; typedef std::function&)> DescribeTTSConfigAsyncHandler; - typedef Outcome DescribeVoiceConfigOutcome; - typedef std::future DescribeVoiceConfigOutcomeCallable; - typedef std::function&)> DescribeVoiceConfigAsyncHandler; typedef Outcome DialogueOutcome; typedef std::future DialogueOutcomeCallable; typedef std::function&)> DialogueAsyncHandler; typedef Outcome DisableInstanceOutcome; typedef std::future DisableInstanceOutcomeCallable; typedef std::function&)> DisableInstanceAsyncHandler; - typedef Outcome DisableSandBoxWhileListOutcome; - typedef std::future DisableSandBoxWhileListOutcomeCallable; - typedef std::function&)> DisableSandBoxWhileListAsyncHandler; typedef Outcome EnableInstanceOutcome; typedef std::future EnableInstanceOutcomeCallable; typedef std::function&)> EnableInstanceAsyncHandler; - typedef Outcome EnableSandBoxWhileListOutcome; - typedef std::future EnableSandBoxWhileListOutcomeCallable; - typedef std::function&)> EnableSandBoxWhileListAsyncHandler; typedef Outcome EndDialogueOutcome; typedef std::future EndDialogueOutcomeCallable; typedef std::function&)> EndDialogueAsyncHandler; @@ -219,12 +183,12 @@ namespace AlibabaCloud typedef Outcome ExportStatisticalDataOutcome; typedef std::future ExportStatisticalDataOutcomeCallable; typedef std::function&)> ExportStatisticalDataAsyncHandler; - typedef Outcome GetInstanceConfigOutcome; - typedef std::future GetInstanceConfigOutcomeCallable; - typedef std::function&)> GetInstanceConfigAsyncHandler; - typedef Outcome GetNewBargeInSwitchOutcome; - typedef std::future GetNewBargeInSwitchOutcomeCallable; - typedef std::function&)> GetNewBargeInSwitchAsyncHandler; + typedef Outcome GenerateUploadUrlOutcome; + typedef std::future GenerateUploadUrlOutcomeCallable; + typedef std::function&)> GenerateUploadUrlAsyncHandler; + typedef Outcome GetAsrConfigOutcome; + typedef std::future GetAsrConfigOutcomeCallable; + typedef std::function&)> GetAsrConfigAsyncHandler; typedef Outcome ListChatbotInstancesOutcome; typedef std::future ListChatbotInstancesOutcomeCallable; typedef std::function&)> ListChatbotInstancesAsyncHandler; @@ -240,21 +204,15 @@ namespace AlibabaCloud typedef Outcome ListInstancesOutcome; typedef std::future ListInstancesOutcomeCallable; typedef std::function&)> ListInstancesAsyncHandler; - typedef Outcome ListSandBoxWhileListOutcome; - typedef std::future ListSandBoxWhileListOutcomeCallable; - typedef std::function&)> ListSandBoxWhileListAsyncHandler; - typedef Outcome ModifyAsrVadConfigOutcome; - typedef std::future ModifyAsrVadConfigOutcomeCallable; - typedef std::function&)> ModifyAsrVadConfigAsyncHandler; + typedef Outcome ModifyAsrConfigOutcome; + typedef std::future ModifyAsrConfigOutcomeCallable; + typedef std::function&)> ModifyAsrConfigAsyncHandler; typedef Outcome ModifyGreetingConfigOutcome; typedef std::future ModifyGreetingConfigOutcomeCallable; typedef std::function&)> ModifyGreetingConfigAsyncHandler; typedef Outcome ModifyInstanceOutcome; typedef std::future ModifyInstanceOutcomeCallable; typedef std::function&)> ModifyInstanceAsyncHandler; - typedef Outcome ModifySandBoxWhileListOutcome; - typedef std::future ModifySandBoxWhileListOutcomeCallable; - typedef std::function&)> ModifySandBoxWhileListAsyncHandler; typedef Outcome ModifySilenceTimeoutConfigOutcome; typedef std::future ModifySilenceTimeoutConfigOutcomeCallable; typedef std::function&)> ModifySilenceTimeoutConfigAsyncHandler; @@ -273,9 +231,6 @@ namespace AlibabaCloud typedef Outcome SilenceTimeoutOutcome; typedef std::future SilenceTimeoutOutcomeCallable; typedef std::function&)> SilenceTimeoutAsyncHandler; - typedef Outcome UpdateNewBargeInSwitchOutcome; - typedef std::future UpdateNewBargeInSwitchOutcomeCallable; - typedef std::function&)> UpdateNewBargeInSwitchAsyncHandler; VoiceNavigatorClient(const Credentials &credentials, const ClientConfiguration &configuration); VoiceNavigatorClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); @@ -287,9 +242,6 @@ namespace AlibabaCloud AuditTTSVoiceOutcome auditTTSVoice(const Model::AuditTTSVoiceRequest &request)const; void auditTTSVoiceAsync(const Model::AuditTTSVoiceRequest& request, const AuditTTSVoiceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; AuditTTSVoiceOutcomeCallable auditTTSVoiceCallable(const Model::AuditTTSVoiceRequest& request) const; - BatchCreateSandBoxWhileListOutcome batchCreateSandBoxWhileList(const Model::BatchCreateSandBoxWhileListRequest &request)const; - void batchCreateSandBoxWhileListAsync(const Model::BatchCreateSandBoxWhileListRequest& request, const BatchCreateSandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - BatchCreateSandBoxWhileListOutcomeCallable batchCreateSandBoxWhileListCallable(const Model::BatchCreateSandBoxWhileListRequest& request) const; BeginDialogueOutcome beginDialogue(const Model::BeginDialogueRequest &request)const; void beginDialogueAsync(const Model::BeginDialogueRequest& request, const BeginDialogueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; BeginDialogueOutcomeCallable beginDialogueCallable(const Model::BeginDialogueRequest& request) const; @@ -314,12 +266,6 @@ namespace AlibabaCloud DeleteInstanceOutcome deleteInstance(const Model::DeleteInstanceRequest &request)const; void deleteInstanceAsync(const Model::DeleteInstanceRequest& request, const DeleteInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteInstanceOutcomeCallable deleteInstanceCallable(const Model::DeleteInstanceRequest& request) const; - DeleteSandBoxWhileListOutcome deleteSandBoxWhileList(const Model::DeleteSandBoxWhileListRequest &request)const; - void deleteSandBoxWhileListAsync(const Model::DeleteSandBoxWhileListRequest& request, const DeleteSandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteSandBoxWhileListOutcomeCallable deleteSandBoxWhileListCallable(const Model::DeleteSandBoxWhileListRequest& request) const; - DescribeAsrVadConfigOutcome describeAsrVadConfig(const Model::DescribeAsrVadConfigRequest &request)const; - void describeAsrVadConfigAsync(const Model::DescribeAsrVadConfigRequest& request, const DescribeAsrVadConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAsrVadConfigOutcomeCallable describeAsrVadConfigCallable(const Model::DescribeAsrVadConfigRequest& request) const; DescribeConversationOutcome describeConversation(const Model::DescribeConversationRequest &request)const; void describeConversationAsync(const Model::DescribeConversationRequest& request, const DescribeConversationAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeConversationOutcomeCallable describeConversationCallable(const Model::DescribeConversationRequest& request) const; @@ -344,24 +290,15 @@ namespace AlibabaCloud DescribeTTSConfigOutcome describeTTSConfig(const Model::DescribeTTSConfigRequest &request)const; void describeTTSConfigAsync(const Model::DescribeTTSConfigRequest& request, const DescribeTTSConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeTTSConfigOutcomeCallable describeTTSConfigCallable(const Model::DescribeTTSConfigRequest& request) const; - DescribeVoiceConfigOutcome describeVoiceConfig(const Model::DescribeVoiceConfigRequest &request)const; - void describeVoiceConfigAsync(const Model::DescribeVoiceConfigRequest& request, const DescribeVoiceConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeVoiceConfigOutcomeCallable describeVoiceConfigCallable(const Model::DescribeVoiceConfigRequest& request) const; DialogueOutcome dialogue(const Model::DialogueRequest &request)const; void dialogueAsync(const Model::DialogueRequest& request, const DialogueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DialogueOutcomeCallable dialogueCallable(const Model::DialogueRequest& request) const; DisableInstanceOutcome disableInstance(const Model::DisableInstanceRequest &request)const; void disableInstanceAsync(const Model::DisableInstanceRequest& request, const DisableInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DisableInstanceOutcomeCallable disableInstanceCallable(const Model::DisableInstanceRequest& request) const; - DisableSandBoxWhileListOutcome disableSandBoxWhileList(const Model::DisableSandBoxWhileListRequest &request)const; - void disableSandBoxWhileListAsync(const Model::DisableSandBoxWhileListRequest& request, const DisableSandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DisableSandBoxWhileListOutcomeCallable disableSandBoxWhileListCallable(const Model::DisableSandBoxWhileListRequest& request) const; EnableInstanceOutcome enableInstance(const Model::EnableInstanceRequest &request)const; void enableInstanceAsync(const Model::EnableInstanceRequest& request, const EnableInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EnableInstanceOutcomeCallable enableInstanceCallable(const Model::EnableInstanceRequest& request) const; - EnableSandBoxWhileListOutcome enableSandBoxWhileList(const Model::EnableSandBoxWhileListRequest &request)const; - void enableSandBoxWhileListAsync(const Model::EnableSandBoxWhileListRequest& request, const EnableSandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EnableSandBoxWhileListOutcomeCallable enableSandBoxWhileListCallable(const Model::EnableSandBoxWhileListRequest& request) const; EndDialogueOutcome endDialogue(const Model::EndDialogueRequest &request)const; void endDialogueAsync(const Model::EndDialogueRequest& request, const EndDialogueAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; EndDialogueOutcomeCallable endDialogueCallable(const Model::EndDialogueRequest& request) const; @@ -371,12 +308,12 @@ namespace AlibabaCloud ExportStatisticalDataOutcome exportStatisticalData(const Model::ExportStatisticalDataRequest &request)const; void exportStatisticalDataAsync(const Model::ExportStatisticalDataRequest& request, const ExportStatisticalDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ExportStatisticalDataOutcomeCallable exportStatisticalDataCallable(const Model::ExportStatisticalDataRequest& request) const; - GetInstanceConfigOutcome getInstanceConfig(const Model::GetInstanceConfigRequest &request)const; - void getInstanceConfigAsync(const Model::GetInstanceConfigRequest& request, const GetInstanceConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetInstanceConfigOutcomeCallable getInstanceConfigCallable(const Model::GetInstanceConfigRequest& request) const; - GetNewBargeInSwitchOutcome getNewBargeInSwitch(const Model::GetNewBargeInSwitchRequest &request)const; - void getNewBargeInSwitchAsync(const Model::GetNewBargeInSwitchRequest& request, const GetNewBargeInSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetNewBargeInSwitchOutcomeCallable getNewBargeInSwitchCallable(const Model::GetNewBargeInSwitchRequest& 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; + GetAsrConfigOutcome getAsrConfig(const Model::GetAsrConfigRequest &request)const; + void getAsrConfigAsync(const Model::GetAsrConfigRequest& request, const GetAsrConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + GetAsrConfigOutcomeCallable getAsrConfigCallable(const Model::GetAsrConfigRequest& request) const; ListChatbotInstancesOutcome listChatbotInstances(const Model::ListChatbotInstancesRequest &request)const; void listChatbotInstancesAsync(const Model::ListChatbotInstancesRequest& request, const ListChatbotInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListChatbotInstancesOutcomeCallable listChatbotInstancesCallable(const Model::ListChatbotInstancesRequest& request) const; @@ -392,21 +329,15 @@ namespace AlibabaCloud ListInstancesOutcome listInstances(const Model::ListInstancesRequest &request)const; void listInstancesAsync(const Model::ListInstancesRequest& request, const ListInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ListInstancesOutcomeCallable listInstancesCallable(const Model::ListInstancesRequest& request) const; - ListSandBoxWhileListOutcome listSandBoxWhileList(const Model::ListSandBoxWhileListRequest &request)const; - void listSandBoxWhileListAsync(const Model::ListSandBoxWhileListRequest& request, const ListSandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListSandBoxWhileListOutcomeCallable listSandBoxWhileListCallable(const Model::ListSandBoxWhileListRequest& request) const; - ModifyAsrVadConfigOutcome modifyAsrVadConfig(const Model::ModifyAsrVadConfigRequest &request)const; - void modifyAsrVadConfigAsync(const Model::ModifyAsrVadConfigRequest& request, const ModifyAsrVadConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyAsrVadConfigOutcomeCallable modifyAsrVadConfigCallable(const Model::ModifyAsrVadConfigRequest& request) const; + ModifyAsrConfigOutcome modifyAsrConfig(const Model::ModifyAsrConfigRequest &request)const; + void modifyAsrConfigAsync(const Model::ModifyAsrConfigRequest& request, const ModifyAsrConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyAsrConfigOutcomeCallable modifyAsrConfigCallable(const Model::ModifyAsrConfigRequest& request) const; ModifyGreetingConfigOutcome modifyGreetingConfig(const Model::ModifyGreetingConfigRequest &request)const; void modifyGreetingConfigAsync(const Model::ModifyGreetingConfigRequest& request, const ModifyGreetingConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyGreetingConfigOutcomeCallable modifyGreetingConfigCallable(const Model::ModifyGreetingConfigRequest& request) const; ModifyInstanceOutcome modifyInstance(const Model::ModifyInstanceRequest &request)const; void modifyInstanceAsync(const Model::ModifyInstanceRequest& request, const ModifyInstanceAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifyInstanceOutcomeCallable modifyInstanceCallable(const Model::ModifyInstanceRequest& request) const; - ModifySandBoxWhileListOutcome modifySandBoxWhileList(const Model::ModifySandBoxWhileListRequest &request)const; - void modifySandBoxWhileListAsync(const Model::ModifySandBoxWhileListRequest& request, const ModifySandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifySandBoxWhileListOutcomeCallable modifySandBoxWhileListCallable(const Model::ModifySandBoxWhileListRequest& request) const; ModifySilenceTimeoutConfigOutcome modifySilenceTimeoutConfig(const Model::ModifySilenceTimeoutConfigRequest &request)const; void modifySilenceTimeoutConfigAsync(const Model::ModifySilenceTimeoutConfigRequest& request, const ModifySilenceTimeoutConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; ModifySilenceTimeoutConfigOutcomeCallable modifySilenceTimeoutConfigCallable(const Model::ModifySilenceTimeoutConfigRequest& request) const; @@ -425,9 +356,6 @@ namespace AlibabaCloud SilenceTimeoutOutcome silenceTimeout(const Model::SilenceTimeoutRequest &request)const; void silenceTimeoutAsync(const Model::SilenceTimeoutRequest& request, const SilenceTimeoutAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SilenceTimeoutOutcomeCallable silenceTimeoutCallable(const Model::SilenceTimeoutRequest& request) const; - UpdateNewBargeInSwitchOutcome updateNewBargeInSwitch(const Model::UpdateNewBargeInSwitchRequest &request)const; - void updateNewBargeInSwitchAsync(const Model::UpdateNewBargeInSwitchRequest& request, const UpdateNewBargeInSwitchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateNewBargeInSwitchOutcomeCallable updateNewBargeInSwitchCallable(const Model::UpdateNewBargeInSwitchRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/AssociateChatbotInstanceRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/AssociateChatbotInstanceRequest.h index ff1254766..be642c994 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/AssociateChatbotInstanceRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/AssociateChatbotInstanceRequest.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_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT AssociateChatbotInstanceRequest : public RpcServiceRequest - { - - public: - AssociateChatbotInstanceRequest(); - ~AssociateChatbotInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getChatbotInstanceId()const; - void setChatbotInstanceId(const std::string& chatbotInstanceId); - std::string getChatbotName()const; - void setChatbotName(const std::string& chatbotName); - - private: - std::string instanceId_; - std::string chatbotInstanceId_; - std::string chatbotName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT AssociateChatbotInstanceRequest : public RpcServiceRequest { +public: + AssociateChatbotInstanceRequest(); + ~AssociateChatbotInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getChatbotInstanceId() const; + void setChatbotInstanceId(const std::string &chatbotInstanceId); + std::string getChatbotName() const; + void setChatbotName(const std::string &chatbotName); + +private: + std::string instanceId_; + std::string chatbotInstanceId_; + std::string chatbotName_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_ASSOCIATECHATBOTINSTANCEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/AuditTTSVoiceRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/AuditTTSVoiceRequest.h index 6cfee3513..cbb7c8594 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/AuditTTSVoiceRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/AuditTTSVoiceRequest.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_VOICENAVIGATOR_MODEL_AUDITTTSVOICEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_AUDITTTSVOICEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT AuditTTSVoiceRequest : public RpcServiceRequest - { - - public: - AuditTTSVoiceRequest(); - ~AuditTTSVoiceRequest(); - - std::string getVoice()const; - void setVoice(const std::string& voice); - std::string getVolume()const; - void setVolume(const std::string& volume); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getText()const; - void setText(const std::string& text); - std::string getSpeechRate()const; - void setSpeechRate(const std::string& speechRate); - - private: - std::string voice_; - std::string volume_; - std::string instanceId_; - std::string text_; - std::string speechRate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_AUDITTTSVOICEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_AUDITTTSVOICEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_AUDITTTSVOICEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT AuditTTSVoiceRequest : public RpcServiceRequest { +public: + AuditTTSVoiceRequest(); + ~AuditTTSVoiceRequest(); + std::string getVoice() const; + void setVoice(const std::string &voice); + std::string getVolume() const; + void setVolume(const std::string &volume); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getText() const; + void setText(const std::string &text); + std::string getSpeechRate() const; + void setSpeechRate(const std::string &speechRate); + +private: + std::string voice_; + std::string volume_; + std::string instanceId_; + std::string text_; + std::string speechRate_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_AUDITTTSVOICEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/BatchCreateSandBoxWhileListResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/BatchCreateSandBoxWhileListResult.h deleted file mode 100644 index 9d51aef1b..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/BatchCreateSandBoxWhileListResult.h +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_BATCHCREATESANDBOXWHILELISTRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_BATCHCREATESANDBOXWHILELISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT BatchCreateSandBoxWhileListResult : public ServiceResult - { - public: - struct WhiteListItem - { - int isEnable; - long gmtCreate; - std::string uuid; - std::string description; - std::string instanceId; - long gmtModified; - std::string phoneNumber; - std::string name; - }; - - - BatchCreateSandBoxWhileListResult(); - explicit BatchCreateSandBoxWhileListResult(const std::string &payload); - ~BatchCreateSandBoxWhileListResult(); - std::vector getWhiteList()const; - bool getRepeat()const; - - protected: - void parse(const std::string &payload); - private: - std::vector whiteList_; - bool repeat_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_BATCHCREATESANDBOXWHILELISTRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/BeginDialogueRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/BeginDialogueRequest.h index 8898fcff1..e427d553d 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/BeginDialogueRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/BeginDialogueRequest.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_VOICENAVIGATOR_MODEL_BEGINDIALOGUEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_BEGINDIALOGUEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT BeginDialogueRequest : public RpcServiceRequest - { - - public: - BeginDialogueRequest(); - ~BeginDialogueRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getInitialContext()const; - void setInitialContext(const std::string& initialContext); - std::string getCallingNumber()const; - void setCallingNumber(const std::string& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getCalledNumber()const; - void setCalledNumber(const std::string& calledNumber); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - - private: - std::string conversationId_; - std::string initialContext_; - std::string callingNumber_; - std::string instanceId_; - std::string calledNumber_; - long instanceOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_BEGINDIALOGUEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_BEGINDIALOGUEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_BEGINDIALOGUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT BeginDialogueRequest : public RpcServiceRequest { +public: + BeginDialogueRequest(); + ~BeginDialogueRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getInitialContext() const; + void setInitialContext(const std::string &initialContext); + std::string getCallingNumber() const; + void setCallingNumber(const std::string &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getCalledNumber() const; + void setCalledNumber(const std::string &calledNumber); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + +private: + std::string conversationId_; + std::string initialContext_; + std::string callingNumber_; + std::string instanceId_; + std::string calledNumber_; + long instanceOwnerId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_BEGINDIALOGUEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/CollectedNumberRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/CollectedNumberRequest.h index 42e3cada2..46d90e1b1 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/CollectedNumberRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/CollectedNumberRequest.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_VOICENAVIGATOR_MODEL_COLLECTEDNUMBERREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_COLLECTEDNUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT CollectedNumberRequest : public RpcServiceRequest - { - - public: - CollectedNumberRequest(); - ~CollectedNumberRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getNumber()const; - void setNumber(const std::string& number); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - - private: - std::string conversationId_; - std::string number_; - std::string instanceId_; - long instanceOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_COLLECTEDNUMBERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_COLLECTEDNUMBERREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_COLLECTEDNUMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT CollectedNumberRequest : public RpcServiceRequest { +public: + CollectedNumberRequest(); + ~CollectedNumberRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getNumber() const; + void setNumber(const std::string &number); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + +private: + std::string conversationId_; + std::string number_; + std::string instanceId_; + long instanceOwnerId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_COLLECTEDNUMBERREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/CreateDownloadUrlRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/CreateDownloadUrlRequest.h index 092459ac3..7e99f1518 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/CreateDownloadUrlRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/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_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_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_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_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 VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEDOWNLOADURLREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/CreateInstanceRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/CreateInstanceRequest.h index 00c6d8408..c3214da32 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/CreateInstanceRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/CreateInstanceRequest.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_VOICENAVIGATOR_MODEL_CREATEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT CreateInstanceRequest : public RpcServiceRequest - { - - public: - CreateInstanceRequest(); - ~CreateInstanceRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - long getConcurrency()const; - void setConcurrency(long concurrency); - std::string getChatbotInstanceId()const; - void setChatbotInstanceId(const std::string& chatbotInstanceId); - std::string getName()const; - void setName(const std::string& name); - std::string getNluServiceType()const; - void setNluServiceType(const std::string& nluServiceType); - std::string getChatbotName()const; - void setChatbotName(const std::string& chatbotName); - - private: - std::string description_; - long concurrency_; - std::string chatbotInstanceId_; - std::string name_; - std::string nluServiceType_; - std::string chatbotName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT CreateInstanceRequest : public RpcServiceRequest { +public: + CreateInstanceRequest(); + ~CreateInstanceRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + long getConcurrency() const; + void setConcurrency(long concurrency); + std::string getChatbotInstanceId() const; + void setChatbotInstanceId(const std::string &chatbotInstanceId); + std::string getName() const; + void setName(const std::string &name); + std::string getNluServiceType() const; + void setNluServiceType(const std::string &nluServiceType); + std::string getChatbotName() const; + void setChatbotName(const std::string &chatbotName); + +private: + std::string description_; + long concurrency_; + std::string chatbotInstanceId_; + std::string name_; + std::string nluServiceType_; + std::string chatbotName_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_CREATEINSTANCEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DebugBeginDialogueRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DebugBeginDialogueRequest.h index c21e5d619..54fa4ac68 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DebugBeginDialogueRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DebugBeginDialogueRequest.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_VOICENAVIGATOR_MODEL_DEBUGBEGINDIALOGUEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGBEGINDIALOGUEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DebugBeginDialogueRequest : public RpcServiceRequest - { - - public: - DebugBeginDialogueRequest(); - ~DebugBeginDialogueRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getInitialContext()const; - void setInitialContext(const std::string& initialContext); - std::string getCallingNumber()const; - void setCallingNumber(const std::string& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getCalledNumber()const; - void setCalledNumber(const std::string& calledNumber); - - private: - std::string conversationId_; - std::string initialContext_; - std::string callingNumber_; - std::string instanceId_; - std::string calledNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGBEGINDIALOGUEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGBEGINDIALOGUEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGBEGINDIALOGUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DebugBeginDialogueRequest : public RpcServiceRequest { +public: + DebugBeginDialogueRequest(); + ~DebugBeginDialogueRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getInitialContext() const; + void setInitialContext(const std::string &initialContext); + std::string getCallingNumber() const; + void setCallingNumber(const std::string &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getCalledNumber() const; + void setCalledNumber(const std::string &calledNumber); + +private: + std::string conversationId_; + std::string initialContext_; + std::string callingNumber_; + std::string instanceId_; + std::string calledNumber_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGBEGINDIALOGUEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DebugCollectedNumberRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DebugCollectedNumberRequest.h index 84452ab19..821cd178a 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DebugCollectedNumberRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DebugCollectedNumberRequest.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_VOICENAVIGATOR_MODEL_DEBUGCOLLECTEDNUMBERREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGCOLLECTEDNUMBERREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DebugCollectedNumberRequest : public RpcServiceRequest - { - - public: - DebugCollectedNumberRequest(); - ~DebugCollectedNumberRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getNumber()const; - void setNumber(const std::string& number); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string conversationId_; - std::string number_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGCOLLECTEDNUMBERREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGCOLLECTEDNUMBERREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGCOLLECTEDNUMBERREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DebugCollectedNumberRequest : public RpcServiceRequest { +public: + DebugCollectedNumberRequest(); + ~DebugCollectedNumberRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getNumber() const; + void setNumber(const std::string &number); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string conversationId_; + std::string number_; + std::string instanceId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGCOLLECTEDNUMBERREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DebugCollectedNumberResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DebugCollectedNumberResult.h index 2c33629a1..ac52f9f89 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DebugCollectedNumberResult.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DebugCollectedNumberResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud DebugCollectedNumberResult(); explicit DebugCollectedNumberResult(const std::string &payload); ~DebugCollectedNumberResult(); - bool getInterruptible()const; std::string getAction()const; + bool getInterruptible()const; std::string getActionParams()const; std::string getTextResponse()const; protected: void parse(const std::string &payload); private: - bool interruptible_; std::string action_; + bool interruptible_; std::string actionParams_; std::string textResponse_; diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DebugDialogueRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DebugDialogueRequest.h index fe4f52cc1..3ae153b0e 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DebugDialogueRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DebugDialogueRequest.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_VOICENAVIGATOR_MODEL_DEBUGDIALOGUEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGDIALOGUEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DebugDialogueRequest : public RpcServiceRequest - { - - public: - DebugDialogueRequest(); - ~DebugDialogueRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getAdditionalContext()const; - void setAdditionalContext(const std::string& additionalContext); - std::string getUtterance()const; - void setUtterance(const std::string& utterance); - - private: - std::string conversationId_; - std::string instanceId_; - std::string additionalContext_; - std::string utterance_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGDIALOGUEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGDIALOGUEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGDIALOGUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DebugDialogueRequest : public RpcServiceRequest { +public: + DebugDialogueRequest(); + ~DebugDialogueRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getAdditionalContext() const; + void setAdditionalContext(const std::string &additionalContext); + std::string getUtterance() const; + void setUtterance(const std::string &utterance); + +private: + std::string conversationId_; + std::string instanceId_; + std::string additionalContext_; + std::string utterance_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DEBUGDIALOGUEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DebugDialogueResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DebugDialogueResult.h index c00028128..02c22b21e 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DebugDialogueResult.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DebugDialogueResult.h @@ -37,16 +37,16 @@ namespace AlibabaCloud DebugDialogueResult(); explicit DebugDialogueResult(const std::string &payload); ~DebugDialogueResult(); - bool getInterruptible()const; std::string getAction()const; + bool getInterruptible()const; std::string getActionParams()const; std::string getTextResponse()const; protected: void parse(const std::string &payload); private: - bool interruptible_; std::string action_; + bool interruptible_; std::string actionParams_; std::string textResponse_; diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DeleteInstanceRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DeleteInstanceRequest.h index 3f0274326..b9b645cc4 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DeleteInstanceRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/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_VOICENAVIGATOR_MODEL_DELETEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DELETEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DeleteInstanceRequest : public RpcServiceRequest - { - - public: - DeleteInstanceRequest(); - ~DeleteInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DELETEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DELETEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DELETEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DeleteInstanceRequest : public RpcServiceRequest { +public: + DeleteInstanceRequest(); + ~DeleteInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DELETEINSTANCEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DeleteSandBoxWhileListRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DeleteSandBoxWhileListRequest.h deleted file mode 100644 index 98628be8c..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DeleteSandBoxWhileListRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DELETESANDBOXWHILELISTREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DELETESANDBOXWHILELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DeleteSandBoxWhileListRequest : public RpcServiceRequest - { - - public: - DeleteSandBoxWhileListRequest(); - ~DeleteSandBoxWhileListRequest(); - - std::string getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string phoneNumber_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DELETESANDBOXWHILELISTREQUEST_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DeleteSandBoxWhileListResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DeleteSandBoxWhileListResult.h deleted file mode 100644 index 2292a21a8..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DeleteSandBoxWhileListResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DELETESANDBOXWHILELISTRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DELETESANDBOXWHILELISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DeleteSandBoxWhileListResult : public ServiceResult - { - public: - - - DeleteSandBoxWhileListResult(); - explicit DeleteSandBoxWhileListResult(const std::string &payload); - ~DeleteSandBoxWhileListResult(); - std::string getUuid()const; - std::string getPhoneNumber()const; - - protected: - void parse(const std::string &payload); - private: - std::string uuid_; - std::string phoneNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DELETESANDBOXWHILELISTRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeAsrVadConfigRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeAsrVadConfigRequest.h deleted file mode 100644 index 231f06d62..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeAsrVadConfigRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeAsrVadConfigRequest : public RpcServiceRequest - { - - public: - DescribeAsrVadConfigRequest(); - ~DescribeAsrVadConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGREQUEST_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeAsrVadConfigResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeAsrVadConfigResult.h deleted file mode 100644 index 94d40c580..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeAsrVadConfigResult.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeAsrVadConfigResult : public ServiceResult - { - public: - - - DescribeAsrVadConfigResult(); - explicit DescribeAsrVadConfigResult(const std::string &payload); - ~DescribeAsrVadConfigResult(); - std::string getSpeechNoiseThreshold()const; - - protected: - void parse(const std::string &payload); - private: - std::string speechNoiseThreshold_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEASRVADCONFIGRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeConversationContextRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeConversationContextRequest.h index f0857995d..7d2cc9d6e 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeConversationContextRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeConversationContextRequest.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_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONCONTEXTREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONCONTEXTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeConversationContextRequest : public RpcServiceRequest - { - - public: - DescribeConversationContextRequest(); - ~DescribeConversationContextRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string conversationId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONCONTEXTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONCONTEXTREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONCONTEXTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeConversationContextRequest : public RpcServiceRequest { +public: + DescribeConversationContextRequest(); + ~DescribeConversationContextRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string conversationId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONCONTEXTREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeConversationRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeConversationRequest.h index 8da969351..bee25b73b 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeConversationRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeConversationRequest.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_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeConversationRequest : public RpcServiceRequest - { - - public: - DescribeConversationRequest(); - ~DescribeConversationRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string conversationId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeConversationRequest : public RpcServiceRequest { +public: + DescribeConversationRequest(); + ~DescribeConversationRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string conversationId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBECONVERSATIONREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeExportProgressRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeExportProgressRequest.h index 95fc32a4b..0381f0e22 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeExportProgressRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeExportProgressRequest.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_VOICENAVIGATOR_MODEL_DESCRIBEEXPORTPROGRESSREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEEXPORTPROGRESSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeExportProgressRequest : public RpcServiceRequest - { - - public: - DescribeExportProgressRequest(); - ~DescribeExportProgressRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getExportTaskId()const; - void setExportTaskId(const std::string& exportTaskId); - - private: - std::string instanceId_; - std::string exportTaskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEEXPORTPROGRESSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEEXPORTPROGRESSREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEEXPORTPROGRESSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeExportProgressRequest : public RpcServiceRequest { +public: + DescribeExportProgressRequest(); + ~DescribeExportProgressRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getExportTaskId() const; + void setExportTaskId(const std::string &exportTaskId); + +private: + std::string instanceId_; + std::string exportTaskId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEEXPORTPROGRESSREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeInstanceRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeInstanceRequest.h index 7bb321e55..af4cb3088 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeInstanceRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/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_VOICENAVIGATOR_MODEL_DESCRIBEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeInstanceRequest : public RpcServiceRequest - { - - public: - DescribeInstanceRequest(); - ~DescribeInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeInstanceRequest : public RpcServiceRequest { +public: + DescribeInstanceRequest(); + ~DescribeInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEINSTANCEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeNavigationConfigRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeNavigationConfigRequest.h index 4b40135d6..18edd5d6d 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeNavigationConfigRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeNavigationConfigRequest.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_VOICENAVIGATOR_MODEL_DESCRIBENAVIGATIONCONFIGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBENAVIGATIONCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeNavigationConfigRequest : public RpcServiceRequest - { - - public: - DescribeNavigationConfigRequest(); - ~DescribeNavigationConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBENAVIGATIONCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBENAVIGATIONCONFIGREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBENAVIGATIONCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeNavigationConfigRequest : public RpcServiceRequest { +public: + DescribeNavigationConfigRequest(); + ~DescribeNavigationConfigRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBENAVIGATIONCONFIGREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeNavigationConfigResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeNavigationConfigResult.h index 8a9ebd9a9..99d14225e 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeNavigationConfigResult.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeNavigationConfigResult.h @@ -32,6 +32,31 @@ namespace AlibabaCloud class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeNavigationConfigResult : public ServiceResult { public: + struct RepeatingConfig + { + std::vector utterances; + }; + struct AskingBackConfig + { + std::vector negativeFeedbackUtterances; + bool enableNegativeFeedback; + std::string negativeFeedbackAction; + bool enabled; + std::string negativeFeedbackActionParams; + std::string prompt; + std::string negativeFeedbackPrompt; + }; + struct SilenceTimeoutConfig + { + std::string finalActionParams; + std::string intentTrigger; + long timeout; + std::string sourceType; + std::string prompt; + std::string finalPrompt; + std::string finalAction; + int threshold; + }; struct GreetingConfig { std::string greetingWords; @@ -46,20 +71,6 @@ namespace AlibabaCloud std::string finalAction; int threshold; }; - struct RepeatingConfig - { - std::vector utterances; - }; - struct AskingBackConfig - { - std::vector negativeFeedbackUtterances; - bool enableNegativeFeedback; - bool enabled; - std::string negativeFeedbackAction; - std::string prompt; - std::string negativeFeedbackActionParams; - std::string negativeFeedbackPrompt; - }; struct ComplainingConfig { std::string finalActionParams; @@ -67,17 +78,6 @@ namespace AlibabaCloud std::string prompt; std::string finalAction; }; - struct SilenceTimeoutConfig - { - std::string finalActionParams; - std::string intentTrigger; - long timeout; - std::string sourceType; - std::string prompt; - std::string finalPrompt; - std::string finalAction; - int threshold; - }; DescribeNavigationConfigResult(); diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeRecordingRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeRecordingRequest.h index f23b43b76..546c86379 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeRecordingRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeRecordingRequest.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_VOICENAVIGATOR_MODEL_DESCRIBERECORDINGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBERECORDINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeRecordingRequest : public RpcServiceRequest - { - - public: - DescribeRecordingRequest(); - ~DescribeRecordingRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string conversationId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBERECORDINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBERECORDINGREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBERECORDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeRecordingRequest : public RpcServiceRequest { +public: + DescribeRecordingRequest(); + ~DescribeRecordingRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string conversationId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBERECORDINGREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeStatisticalDataRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeStatisticalDataRequest.h index 42c5c621a..efad318e6 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeStatisticalDataRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeStatisticalDataRequest.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_VOICENAVIGATOR_MODEL_DESCRIBESTATISTICALDATAREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBESTATISTICALDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeStatisticalDataRequest : public RpcServiceRequest - { - - public: - DescribeStatisticalDataRequest(); - ~DescribeStatisticalDataRequest(); - - long getBeginTimeLeftRange()const; - void setBeginTimeLeftRange(long beginTimeLeftRange); - std::string getTimeUnit()const; - void setTimeUnit(const std::string& timeUnit); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getBeginTimeRightRange()const; - void setBeginTimeRightRange(long beginTimeRightRange); - - private: - long beginTimeLeftRange_; - std::string timeUnit_; - std::string instanceId_; - long beginTimeRightRange_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBESTATISTICALDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBESTATISTICALDATAREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBESTATISTICALDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeStatisticalDataRequest : public RpcServiceRequest { +public: + DescribeStatisticalDataRequest(); + ~DescribeStatisticalDataRequest(); + long getBeginTimeLeftRange() const; + void setBeginTimeLeftRange(long beginTimeLeftRange); + std::string getTimeUnit() const; + void setTimeUnit(const std::string &timeUnit); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getBeginTimeRightRange() const; + void setBeginTimeRightRange(long beginTimeRightRange); + +private: + long beginTimeLeftRange_; + std::string timeUnit_; + std::string instanceId_; + long beginTimeRightRange_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBESTATISTICALDATAREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeTTSConfigRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeTTSConfigRequest.h index 1e8d872d2..677305717 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeTTSConfigRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/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_VOICENAVIGATOR_MODEL_DESCRIBETTSCONFIGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBETTSCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeTTSConfigRequest : public RpcServiceRequest - { - - public: - DescribeTTSConfigRequest(); - ~DescribeTTSConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - - private: - std::string instanceId_; - long instanceOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBETTSCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBETTSCONFIGREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBETTSCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeTTSConfigRequest : public RpcServiceRequest { +public: + DescribeTTSConfigRequest(); + ~DescribeTTSConfigRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + +private: + std::string instanceId_; + long instanceOwnerId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBETTSCONFIGREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeVoiceConfigRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeVoiceConfigRequest.h deleted file mode 100644 index c0e0700ce..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeVoiceConfigRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeVoiceConfigRequest : public RpcServiceRequest - { - - public: - DescribeVoiceConfigRequest(); - ~DescribeVoiceConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - - private: - std::string instanceId_; - long instanceOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGREQUEST_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeVoiceConfigResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeVoiceConfigResult.h deleted file mode 100644 index 9d341a0f7..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DescribeVoiceConfigResult.h +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DescribeVoiceConfigResult : public ServiceResult - { - public: - struct Ip - { - std::string ip; - }; - - - DescribeVoiceConfigResult(); - explicit DescribeVoiceConfigResult(const std::string &payload); - ~DescribeVoiceConfigResult(); - std::string getAsrVocabularyId()const; - std::string getAsrCustomizationId()const; - int getVolume()const; - std::vector getApesIpList()const; - std::string getAsrAcousticModelId()const; - std::string getVoice()const; - std::string getAsrClassVocabularyId()const; - int getSpeechRate()const; - std::string getSpeechNoiseThreshold()const; - - protected: - void parse(const std::string &payload); - private: - std::string asrVocabularyId_; - std::string asrCustomizationId_; - int volume_; - std::vector apesIpList_; - std::string asrAcousticModelId_; - std::string voice_; - std::string asrClassVocabularyId_; - int speechRate_; - std::string speechNoiseThreshold_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DESCRIBEVOICECONFIGRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DialogueRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DialogueRequest.h index b2b3a5d4a..5ebdcd011 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DialogueRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DialogueRequest.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_VOICENAVIGATOR_MODEL_DIALOGUEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DIALOGUEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DialogueRequest : public RpcServiceRequest - { - - public: - DialogueRequest(); - ~DialogueRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getCallingNumber()const; - void setCallingNumber(const std::string& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getCalledNumber()const; - void setCalledNumber(const std::string& calledNumber); - std::string getAdditionalContext()const; - void setAdditionalContext(const std::string& additionalContext); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - std::string getUtterance()const; - void setUtterance(const std::string& utterance); - - private: - std::string conversationId_; - std::string callingNumber_; - std::string instanceId_; - std::string calledNumber_; - std::string additionalContext_; - long instanceOwnerId_; - std::string utterance_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DIALOGUEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DIALOGUEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DIALOGUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DialogueRequest : public RpcServiceRequest { +public: + DialogueRequest(); + ~DialogueRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getCallingNumber() const; + void setCallingNumber(const std::string &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getCalledNumber() const; + void setCalledNumber(const std::string &calledNumber); + std::string getAdditionalContext() const; + void setAdditionalContext(const std::string &additionalContext); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + std::string getUtterance() const; + void setUtterance(const std::string &utterance); + +private: + std::string conversationId_; + std::string callingNumber_; + std::string instanceId_; + std::string calledNumber_; + std::string additionalContext_; + long instanceOwnerId_; + std::string utterance_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DIALOGUEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DisableInstanceRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DisableInstanceRequest.h index e097cddcd..e5255b19c 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DisableInstanceRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/DisableInstanceRequest.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_VOICENAVIGATOR_MODEL_DISABLEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DISABLEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DisableInstanceRequest : public RpcServiceRequest - { - - public: - DisableInstanceRequest(); - ~DisableInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DISABLEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DISABLEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DISABLEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DisableInstanceRequest : public RpcServiceRequest { +public: + DisableInstanceRequest(); + ~DisableInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DISABLEINSTANCEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DisableSandBoxWhileListRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DisableSandBoxWhileListRequest.h deleted file mode 100644 index 1987d1469..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DisableSandBoxWhileListRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DISABLESANDBOXWHILELISTREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DISABLESANDBOXWHILELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DisableSandBoxWhileListRequest : public RpcServiceRequest - { - - public: - DisableSandBoxWhileListRequest(); - ~DisableSandBoxWhileListRequest(); - - std::string getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string phoneNumber_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DISABLESANDBOXWHILELISTREQUEST_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/DisableSandBoxWhileListResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/DisableSandBoxWhileListResult.h deleted file mode 100644 index 32af519e4..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/DisableSandBoxWhileListResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_DISABLESANDBOXWHILELISTRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_DISABLESANDBOXWHILELISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT DisableSandBoxWhileListResult : public ServiceResult - { - public: - - - DisableSandBoxWhileListResult(); - explicit DisableSandBoxWhileListResult(const std::string &payload); - ~DisableSandBoxWhileListResult(); - std::string getUuid()const; - std::string getPhoneNumber()const; - - protected: - void parse(const std::string &payload); - private: - std::string uuid_; - std::string phoneNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_DISABLESANDBOXWHILELISTRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/EnableInstanceRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/EnableInstanceRequest.h index b0f6630bb..0d31969b2 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/EnableInstanceRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/EnableInstanceRequest.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_VOICENAVIGATOR_MODEL_ENABLEINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENABLEINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT EnableInstanceRequest : public RpcServiceRequest - { - - public: - EnableInstanceRequest(); - ~EnableInstanceRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENABLEINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENABLEINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENABLEINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT EnableInstanceRequest : public RpcServiceRequest { +public: + EnableInstanceRequest(); + ~EnableInstanceRequest(); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string instanceId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENABLEINSTANCEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/EnableSandBoxWhileListRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/EnableSandBoxWhileListRequest.h deleted file mode 100644 index ddee4e5f0..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/EnableSandBoxWhileListRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENABLESANDBOXWHILELISTREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENABLESANDBOXWHILELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT EnableSandBoxWhileListRequest : public RpcServiceRequest - { - - public: - EnableSandBoxWhileListRequest(); - ~EnableSandBoxWhileListRequest(); - - std::string getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string phoneNumber_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENABLESANDBOXWHILELISTREQUEST_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/EnableSandBoxWhileListResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/EnableSandBoxWhileListResult.h deleted file mode 100644 index 50a3a00aa..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/EnableSandBoxWhileListResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENABLESANDBOXWHILELISTRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENABLESANDBOXWHILELISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT EnableSandBoxWhileListResult : public ServiceResult - { - public: - - - EnableSandBoxWhileListResult(); - explicit EnableSandBoxWhileListResult(const std::string &payload); - ~EnableSandBoxWhileListResult(); - std::string getUuid()const; - std::string getPhoneNumber()const; - - protected: - void parse(const std::string &payload); - private: - std::string uuid_; - std::string phoneNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENABLESANDBOXWHILELISTRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/EndDialogueRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/EndDialogueRequest.h index 96504a0f1..a668ead34 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/EndDialogueRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/EndDialogueRequest.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_VOICENAVIGATOR_MODEL_ENDDIALOGUEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENDDIALOGUEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT EndDialogueRequest : public RpcServiceRequest - { - - public: - EndDialogueRequest(); - ~EndDialogueRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getHangUpParams()const; - void setHangUpParams(const std::string& hangUpParams); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - - private: - std::string conversationId_; - std::string hangUpParams_; - std::string instanceId_; - long instanceOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENDDIALOGUEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENDDIALOGUEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENDDIALOGUEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT EndDialogueRequest : public RpcServiceRequest { +public: + EndDialogueRequest(); + ~EndDialogueRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getHangUpParams() const; + void setHangUpParams(const std::string &hangUpParams); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + +private: + std::string conversationId_; + std::string hangUpParams_; + std::string instanceId_; + long instanceOwnerId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_ENDDIALOGUEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ExportConversationDetailsRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ExportConversationDetailsRequest.h index 5c3bbe4e9..3a1733885 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ExportConversationDetailsRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ExportConversationDetailsRequest.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_VOICENAVIGATOR_MODEL_EXPORTCONVERSATIONDETAILSREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_EXPORTCONVERSATIONDETAILSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ExportConversationDetailsRequest : public RpcServiceRequest - { - - public: - ExportConversationDetailsRequest(); - ~ExportConversationDetailsRequest(); - - long getBeginTimeLeftRange()const; - void setBeginTimeLeftRange(long beginTimeLeftRange); - std::string getCallingNumber()const; - void setCallingNumber(const std::string& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getBeginTimeRightRange()const; - void setBeginTimeRightRange(long beginTimeRightRange); - std::vector getOptions()const; - void setOptions(const std::vector& options); - - private: - long beginTimeLeftRange_; - std::string callingNumber_; - std::string instanceId_; - long beginTimeRightRange_; - std::vector options_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_EXPORTCONVERSATIONDETAILSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_EXPORTCONVERSATIONDETAILSREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_EXPORTCONVERSATIONDETAILSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ExportConversationDetailsRequest : public RpcServiceRequest { +public: + ExportConversationDetailsRequest(); + ~ExportConversationDetailsRequest(); + long getBeginTimeLeftRange() const; + void setBeginTimeLeftRange(long beginTimeLeftRange); + std::string getCallingNumber() const; + void setCallingNumber(const std::string &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getBeginTimeRightRange() const; + void setBeginTimeRightRange(long beginTimeRightRange); + std::vector getOptions() const; + void setOptions(const std::vector &options); + +private: + long beginTimeLeftRange_; + std::string callingNumber_; + std::string instanceId_; + long beginTimeRightRange_; + std::vector options_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_EXPORTCONVERSATIONDETAILSREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ExportStatisticalDataRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ExportStatisticalDataRequest.h index 6486bae28..2a1c0002c 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ExportStatisticalDataRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ExportStatisticalDataRequest.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_VOICENAVIGATOR_MODEL_EXPORTSTATISTICALDATAREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_EXPORTSTATISTICALDATAREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ExportStatisticalDataRequest : public RpcServiceRequest - { - - public: - ExportStatisticalDataRequest(); - ~ExportStatisticalDataRequest(); - - long getBeginTimeLeftRange()const; - void setBeginTimeLeftRange(long beginTimeLeftRange); - std::string getExportType()const; - void setExportType(const std::string& exportType); - std::string getTimeUnit()const; - void setTimeUnit(const std::string& timeUnit); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getBeginTimeRightRange()const; - void setBeginTimeRightRange(long beginTimeRightRange); - - private: - long beginTimeLeftRange_; - std::string exportType_; - std::string timeUnit_; - std::string instanceId_; - long beginTimeRightRange_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_EXPORTSTATISTICALDATAREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_EXPORTSTATISTICALDATAREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_EXPORTSTATISTICALDATAREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ExportStatisticalDataRequest : public RpcServiceRequest { +public: + ExportStatisticalDataRequest(); + ~ExportStatisticalDataRequest(); + long getBeginTimeLeftRange() const; + void setBeginTimeLeftRange(long beginTimeLeftRange); + std::string getExportType() const; + void setExportType(const std::string &exportType); + std::string getTimeUnit() const; + void setTimeUnit(const std::string &timeUnit); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getBeginTimeRightRange() const; + void setBeginTimeRightRange(long beginTimeRightRange); + +private: + long beginTimeLeftRange_; + std::string exportType_; + std::string timeUnit_; + std::string instanceId_; + long beginTimeRightRange_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_EXPORTSTATISTICALDATAREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/GenerateUploadUrlRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/GenerateUploadUrlRequest.h new file mode 100644 index 000000000..065899ef7 --- /dev/null +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/GenerateUploadUrlRequest.h @@ -0,0 +1,114 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_GENERATEUPLOADURLREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_GENERATEUPLOADURLREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT GenerateUploadUrlRequest : public RpcServiceRequest { +public: + GenerateUploadUrlRequest(); + ~GenerateUploadUrlRequest(); + long getCallerParentId() const; + void setCallerParentId(long callerParentId); + bool getSecurityTransport() const; + void setSecurityTransport(bool securityTransport); + bool getProxyOriginalSecurityTransport() const; + void setProxyOriginalSecurityTransport(bool proxyOriginalSecurityTransport); + long getUserId() const; + void setUserId(long userId); + std::string getCallerType() const; + void setCallerType(const std::string &callerType); + std::string getCallerIp() const; + void setCallerIp(const std::string &callerIp); + std::string getAccessKeyId() const; + void setAccessKeyId(const std::string &accessKeyId); + std::string getSecurityToken() const; + void setSecurityToken(const std::string &securityToken); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + std::string getClientIp() const; + void setClientIp(const std::string &clientIp); + long getTenantId() const; + void setTenantId(long tenantId); + std::string getProxyOriginalSourceIp() const; + void setProxyOriginalSourceIp(const std::string &proxyOriginalSourceIp); + std::string getKey() const; + void setKey(const std::string &key); + long getCallerUid() const; + void setCallerUid(long callerUid); + std::string getCallerBid() const; + void setCallerBid(const std::string &callerBid); + long getXspaceTenantBuId() const; + void setXspaceTenantBuId(long xspaceTenantBuId); + bool getMfaPresent() const; + void setMfaPresent(bool mfaPresent); + int getEnvironment() const; + void setEnvironment(int environment); + std::string getFileName() const; + void setFileName(const std::string &fileName); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getRequestId() const; + void setRequestId(const std::string &requestId); + long getXspaceServicerId() const; + void setXspaceServicerId(long xspaceServicerId); + std::string getTenantName() const; + void setTenantName(const std::string &tenantName); + bool getProxyTrustTransportInfo() const; + void setProxyTrustTransportInfo(bool proxyTrustTransportInfo); + std::string getUserName() const; + void setUserName(const std::string &userName); + +private: + long callerParentId_; + bool securityTransport_; + bool proxyOriginalSecurityTransport_; + long userId_; + std::string callerType_; + std::string callerIp_; + std::string accessKeyId_; + std::string securityToken_; + long instanceOwnerId_; + std::string clientIp_; + long tenantId_; + std::string proxyOriginalSourceIp_; + std::string key_; + long callerUid_; + std::string callerBid_; + long xspaceTenantBuId_; + bool mfaPresent_; + int environment_; + std::string fileName_; + std::string instanceId_; + std::string requestId_; + long xspaceServicerId_; + std::string tenantName_; + bool proxyTrustTransportInfo_; + std::string userName_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_GENERATEUPLOADURLREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/UpdateNewBargeInSwitchResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/GenerateUploadUrlResult.h similarity index 60% rename from voicenavigator/include/alibabacloud/voicenavigator/model/UpdateNewBargeInSwitchResult.h rename to voicenavigator/include/alibabacloud/voicenavigator/model/GenerateUploadUrlResult.h index 44486c158..6d658ec31 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/UpdateNewBargeInSwitchResult.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/GenerateUploadUrlResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_UPDATENEWBARGEINSWITCHRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_UPDATENEWBARGEINSWITCHRESULT_H_ +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_GENERATEUPLOADURLRESULT_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_GENERATEUPLOADURLRESULT_H_ #include #include @@ -29,24 +29,37 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT UpdateNewBargeInSwitchResult : public ServiceResult + class ALIBABACLOUD_VOICENAVIGATOR_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; + }; - UpdateNewBargeInSwitchResult(); - explicit UpdateNewBargeInSwitchResult(const std::string &payload); - ~UpdateNewBargeInSwitchResult(); + GenerateUploadUrlResult(); + explicit GenerateUploadUrlResult(const std::string &payload); + ~GenerateUploadUrlResult(); + std::string getMessage()const; int getHttpStatusCode()const; - std::string getErrorMsg()const; + Data getData()const; std::string getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; int httpStatusCode_; - std::string errorMsg_; + Data data_; std::string code_; bool success_; @@ -54,4 +67,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_UPDATENEWBARGEINSWITCHRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_GENERATEUPLOADURLRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/BatchCreateSandBoxWhileListRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/GetAsrConfigRequest.h similarity index 50% rename from voicenavigator/include/alibabacloud/voicenavigator/model/BatchCreateSandBoxWhileListRequest.h rename to voicenavigator/include/alibabacloud/voicenavigator/model/GetAsrConfigRequest.h index 2bcb40127..57d3f2ca9 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/BatchCreateSandBoxWhileListRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/GetAsrConfigRequest.h @@ -1,48 +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_VOICENAVIGATOR_MODEL_BATCHCREATESANDBOXWHILELISTREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_BATCHCREATESANDBOXWHILELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT BatchCreateSandBoxWhileListRequest : public RpcServiceRequest - { - - public: - BatchCreateSandBoxWhileListRequest(); - ~BatchCreateSandBoxWhileListRequest(); - - std::string getWhiteListJson()const; - void setWhiteListJson(const std::string& whiteListJson); - - private: - std::string whiteListJson_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_BATCHCREATESANDBOXWHILELISTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETASRCONFIGREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETASRCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT GetAsrConfigRequest : public RpcServiceRequest { +public: + GetAsrConfigRequest(); + ~GetAsrConfigRequest(); + std::string getEntryId() const; + void setEntryId(const std::string &entryId); + int getConfigLevel() const; + void setConfigLevel(int configLevel); + +private: + std::string entryId_; + int configLevel_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETASRCONFIGREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/GetInstanceConfigResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/GetAsrConfigResult.h similarity index 68% rename from voicenavigator/include/alibabacloud/voicenavigator/model/GetInstanceConfigResult.h rename to voicenavigator/include/alibabacloud/voicenavigator/model/GetAsrConfigResult.h index e6a634216..72e6581f9 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/GetInstanceConfigResult.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/GetAsrConfigResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETINSTANCECONFIGRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETINSTANCECONFIGRESULT_H_ +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETASRCONFIGRESULT_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETASRCONFIGRESULT_H_ #include #include @@ -29,23 +29,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT GetInstanceConfigResult : public ServiceResult + class ALIBABACLOUD_VOICENAVIGATOR_EXPORT GetAsrConfigResult : public ServiceResult { public: struct Data { - struct InstanceConfig - { - bool newBargeInSystemSwitch; - bool miniPlaybackSystemSwitch; - }; - InstanceConfig instanceConfig; + std::string asrVocabularyId; + std::string asrCustomizationId; + std::string asrAcousticModelId; + std::string asrClassVocabularyId; }; - GetInstanceConfigResult(); - explicit GetInstanceConfigResult(const std::string &payload); - ~GetInstanceConfigResult(); + GetAsrConfigResult(); + explicit GetAsrConfigResult(const std::string &payload); + ~GetAsrConfigResult(); int getHttpStatusCode()const; std::string getErrorMsg()const; Data getData()const; @@ -65,4 +63,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETINSTANCECONFIGRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETASRCONFIGRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/GetInstanceConfigRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/GetInstanceConfigRequest.h deleted file mode 100644 index 66a204f66..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/GetInstanceConfigRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETINSTANCECONFIGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETINSTANCECONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT GetInstanceConfigRequest : public RpcServiceRequest - { - - public: - GetInstanceConfigRequest(); - ~GetInstanceConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETINSTANCECONFIGREQUEST_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/GetNewBargeInSwitchRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/GetNewBargeInSwitchRequest.h deleted file mode 100644 index ee78f1a6a..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/GetNewBargeInSwitchRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETNEWBARGEINSWITCHREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETNEWBARGEINSWITCHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT GetNewBargeInSwitchRequest : public RpcServiceRequest - { - - public: - GetNewBargeInSwitchRequest(); - ~GetNewBargeInSwitchRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETNEWBARGEINSWITCHREQUEST_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ListChatbotInstancesRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ListChatbotInstancesRequest.h index 31b590b49..ca1528003 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ListChatbotInstancesRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ListChatbotInstancesRequest.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_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListChatbotInstancesRequest : public RpcServiceRequest - { - - public: - ListChatbotInstancesRequest(); - ~ListChatbotInstancesRequest(); - - 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_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListChatbotInstancesRequest : public RpcServiceRequest { +public: + ListChatbotInstancesRequest(); + ~ListChatbotInstancesRequest(); + 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 VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCHATBOTINSTANCESREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ListChatbotInstancesResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ListChatbotInstancesResult.h index 72aadbc2b..4402ce015 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ListChatbotInstancesResult.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ListChatbotInstancesResult.h @@ -36,8 +36,8 @@ namespace AlibabaCloud { std::string languageCode; std::string timeZone; - std::string instanceId; std::string introduction; + std::string instanceId; std::string createTime; std::string avatar; std::string name; diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ListConversationDetailsRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ListConversationDetailsRequest.h index c4d013a00..3c59374ef 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ListConversationDetailsRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ListConversationDetailsRequest.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_VOICENAVIGATOR_MODEL_LISTCONVERSATIONDETAILSREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCONVERSATIONDETAILSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListConversationDetailsRequest : public RpcServiceRequest - { - - public: - ListConversationDetailsRequest(); - ~ListConversationDetailsRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - - private: - std::string conversationId_; - std::string instanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCONVERSATIONDETAILSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCONVERSATIONDETAILSREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCONVERSATIONDETAILSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListConversationDetailsRequest : public RpcServiceRequest { +public: + ListConversationDetailsRequest(); + ~ListConversationDetailsRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + +private: + std::string conversationId_; + std::string instanceId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCONVERSATIONDETAILSREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ListConversationsRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ListConversationsRequest.h index 8bcb701bd..50131bb90 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ListConversationsRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ListConversationsRequest.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_VOICENAVIGATOR_MODEL_LISTCONVERSATIONSREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCONVERSATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListConversationsRequest : public RpcServiceRequest - { - - public: - ListConversationsRequest(); - ~ListConversationsRequest(); - - long getBeginTimeLeftRange()const; - void setBeginTimeLeftRange(long beginTimeLeftRange); - std::string getQuery()const; - void setQuery(const std::string& query); - int getPageNumber()const; - void setPageNumber(int pageNumber); - long getResult()const; - void setResult(long result); - std::string getCallingNumber()const; - void setCallingNumber(const std::string& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getBeginTimeRightRange()const; - void setBeginTimeRightRange(long beginTimeRightRange); - std::string getIsSandBox()const; - void setIsSandBox(const std::string& isSandBox); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - long beginTimeLeftRange_; - std::string query_; - int pageNumber_; - long result_; - std::string callingNumber_; - std::string instanceId_; - long beginTimeRightRange_; - std::string isSandBox_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCONVERSATIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCONVERSATIONSREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCONVERSATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListConversationsRequest : public RpcServiceRequest { +public: + ListConversationsRequest(); + ~ListConversationsRequest(); + long getBeginTimeLeftRange() const; + void setBeginTimeLeftRange(long beginTimeLeftRange); + std::string getQuery() const; + void setQuery(const std::string &query); + int getPageNumber() const; + void setPageNumber(int pageNumber); + long getResult() const; + void setResult(long result); + std::string getCallingNumber() const; + void setCallingNumber(const std::string &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getBeginTimeRightRange() const; + void setBeginTimeRightRange(long beginTimeRightRange); + std::string getIsSandBox() const; + void setIsSandBox(const std::string &isSandBox); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + long beginTimeLeftRange_; + std::string query_; + int pageNumber_; + long result_; + std::string callingNumber_; + std::string instanceId_; + long beginTimeRightRange_; + std::string isSandBox_; + int pageSize_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTCONVERSATIONSREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ListDownloadTasksRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ListDownloadTasksRequest.h index 7fea59b7e..c21a5a997 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ListDownloadTasksRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/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_VOICENAVIGATOR_MODEL_LISTDOWNLOADTASKSREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTDOWNLOADTASKSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_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_VOICENAVIGATOR_MODEL_LISTDOWNLOADTASKSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTDOWNLOADTASKSREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTDOWNLOADTASKSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_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 VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTDOWNLOADTASKSREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ListInstancesRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ListInstancesRequest.h index 646db40e9..d26ff862a 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ListInstancesRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ListInstancesRequest.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_VOICENAVIGATOR_MODEL_LISTINSTANCESREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListInstancesRequest : public RpcServiceRequest - { - - public: - ListInstancesRequest(); - ~ListInstancesRequest(); - - int getPageNumber()const; - void setPageNumber(int pageNumber); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - int pageNumber_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTINSTANCESREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTINSTANCESREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTINSTANCESREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListInstancesRequest : public RpcServiceRequest { +public: + ListInstancesRequest(); + ~ListInstancesRequest(); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getNluServiceTypeListJsonString() const; + void setNluServiceTypeListJsonString(const std::string &nluServiceTypeListJsonString); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + int pageNumber_; + std::string nluServiceTypeListJsonString_; + int pageSize_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTINSTANCESREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ListSandBoxWhileListRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ListSandBoxWhileListRequest.h deleted file mode 100644 index 79280159f..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ListSandBoxWhileListRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTSANDBOXWHILELISTREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTSANDBOXWHILELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListSandBoxWhileListRequest : public RpcServiceRequest - { - - public: - ListSandBoxWhileListRequest(); - ~ListSandBoxWhileListRequest(); - - std::string getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - std::string phoneNumber_; - int pageNumber_; - std::string instanceId_; - std::string name_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTSANDBOXWHILELISTREQUEST_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ListSandBoxWhileListResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ListSandBoxWhileListResult.h deleted file mode 100644 index 7472f825b..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ListSandBoxWhileListResult.h +++ /dev/null @@ -1,68 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTSANDBOXWHILELISTRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTSANDBOXWHILELISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ListSandBoxWhileListResult : public ServiceResult - { - public: - struct WhiteListItem - { - int isEnable; - long gmtCreate; - std::string uuid; - std::string description; - std::string instanceId; - long gmtModified; - std::string phoneNumber; - std::string name; - }; - - - ListSandBoxWhileListResult(); - explicit ListSandBoxWhileListResult(const std::string &payload); - ~ListSandBoxWhileListResult(); - long getTotalCount()const; - int getPageSize()const; - int getPageNumber()const; - std::vector getWhiteList()const; - - protected: - void parse(const std::string &payload); - private: - long totalCount_; - int pageSize_; - int pageNumber_; - std::vector whiteList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_LISTSANDBOXWHILELISTRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrConfigRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrConfigRequest.h new file mode 100644 index 000000000..7c92a3ba0 --- /dev/null +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrConfigRequest.h @@ -0,0 +1,57 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRCONFIGREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyAsrConfigRequest : public RpcServiceRequest { +public: + ModifyAsrConfigRequest(); + ~ModifyAsrConfigRequest(); + std::string getAsrVocabularyId() const; + void setAsrVocabularyId(const std::string &asrVocabularyId); + std::string getAsrClassVocabularyId() const; + void setAsrClassVocabularyId(const std::string &asrClassVocabularyId); + std::string getEntryId() const; + void setEntryId(const std::string &entryId); + std::string getAsrCustomizationId() const; + void setAsrCustomizationId(const std::string &asrCustomizationId); + int getConfigLevel() const; + void setConfigLevel(int configLevel); + std::string getAsrAcousticModelId() const; + void setAsrAcousticModelId(const std::string &asrAcousticModelId); + +private: + std::string asrVocabularyId_; + std::string asrClassVocabularyId_; + std::string entryId_; + std::string asrCustomizationId_; + int configLevel_; + std::string asrAcousticModelId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRCONFIGREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/GetNewBargeInSwitchResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrConfigResult.h similarity index 73% rename from voicenavigator/include/alibabacloud/voicenavigator/model/GetNewBargeInSwitchResult.h rename to voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrConfigResult.h index fc396db4c..d3fd4df8b 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/GetNewBargeInSwitchResult.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrConfigResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETNEWBARGEINSWITCHRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETNEWBARGEINSWITCHRESULT_H_ +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRCONFIGRESULT_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRCONFIGRESULT_H_ #include #include @@ -29,18 +29,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT GetNewBargeInSwitchResult : public ServiceResult + class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyAsrConfigResult : public ServiceResult { public: struct Data { - bool enable; + int affectedRows; }; - GetNewBargeInSwitchResult(); - explicit GetNewBargeInSwitchResult(const std::string &payload); - ~GetNewBargeInSwitchResult(); + ModifyAsrConfigResult(); + explicit ModifyAsrConfigResult(const std::string &payload); + ~ModifyAsrConfigResult(); int getHttpStatusCode()const; std::string getErrorMsg()const; Data getData()const; @@ -60,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_GETNEWBARGEINSWITCHRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRCONFIGRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrVadConfigRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrVadConfigRequest.h deleted file mode 100644 index 071a5e39a..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrVadConfigRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRVADCONFIGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRVADCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyAsrVadConfigRequest : public RpcServiceRequest - { - - public: - ModifyAsrVadConfigRequest(); - ~ModifyAsrVadConfigRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSpeechNoiseThreshold()const; - void setSpeechNoiseThreshold(const std::string& speechNoiseThreshold); - - private: - std::string instanceId_; - std::string speechNoiseThreshold_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRVADCONFIGREQUEST_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrVadConfigResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrVadConfigResult.h deleted file mode 100644 index e93d2943b..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyAsrVadConfigResult.h +++ /dev/null @@ -1,49 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRVADCONFIGRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRVADCONFIGRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyAsrVadConfigResult : public ServiceResult - { - public: - - - ModifyAsrVadConfigResult(); - explicit ModifyAsrVadConfigResult(const std::string &payload); - ~ModifyAsrVadConfigResult(); - - protected: - void parse(const std::string &payload); - private: - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYASRVADCONFIGRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyGreetingConfigRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyGreetingConfigRequest.h index 05ff5ce85..1081eb6c1 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyGreetingConfigRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyGreetingConfigRequest.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_VOICENAVIGATOR_MODEL_MODIFYGREETINGCONFIGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYGREETINGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyGreetingConfigRequest : public RpcServiceRequest - { - - public: - ModifyGreetingConfigRequest(); - ~ModifyGreetingConfigRequest(); - - std::string getGreetingWords()const; - void setGreetingWords(const std::string& greetingWords); - std::string getIntentTrigger()const; - void setIntentTrigger(const std::string& intentTrigger); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSourceType()const; - void setSourceType(const std::string& sourceType); - - private: - std::string greetingWords_; - std::string intentTrigger_; - std::string instanceId_; - std::string sourceType_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYGREETINGCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYGREETINGCONFIGREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYGREETINGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyGreetingConfigRequest : public RpcServiceRequest { +public: + ModifyGreetingConfigRequest(); + ~ModifyGreetingConfigRequest(); + std::string getGreetingWords() const; + void setGreetingWords(const std::string &greetingWords); + std::string getIntentTrigger() const; + void setIntentTrigger(const std::string &intentTrigger); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + +private: + std::string greetingWords_; + std::string intentTrigger_; + std::string instanceId_; + std::string sourceType_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYGREETINGCONFIGREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyInstanceRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyInstanceRequest.h index 17dfefc3c..0196bf18c 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyInstanceRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyInstanceRequest.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_VOICENAVIGATOR_MODEL_MODIFYINSTANCEREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYINSTANCEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyInstanceRequest : public RpcServiceRequest - { - - public: - ModifyInstanceRequest(); - ~ModifyInstanceRequest(); - - std::string getDescription()const; - void setDescription(const std::string& description); - long getConcurrency()const; - void setConcurrency(long concurrency); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getChatbotInstanceId()const; - void setChatbotInstanceId(const std::string& chatbotInstanceId); - - private: - std::string description_; - long concurrency_; - std::string instanceId_; - std::string chatbotInstanceId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYINSTANCEREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYINSTANCEREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYINSTANCEREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyInstanceRequest : public RpcServiceRequest { +public: + ModifyInstanceRequest(); + ~ModifyInstanceRequest(); + std::string getDescription() const; + void setDescription(const std::string &description); + long getConcurrency() const; + void setConcurrency(long concurrency); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getChatbotInstanceId() const; + void setChatbotInstanceId(const std::string &chatbotInstanceId); + +private: + std::string description_; + long concurrency_; + std::string instanceId_; + std::string chatbotInstanceId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYINSTANCEREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifySandBoxWhileListRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifySandBoxWhileListRequest.h deleted file mode 100644 index af452c3b1..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifySandBoxWhileListRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYSANDBOXWHILELISTREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYSANDBOXWHILELISTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifySandBoxWhileListRequest : public RpcServiceRequest - { - - public: - ModifySandBoxWhileListRequest(); - ~ModifySandBoxWhileListRequest(); - - std::string getPhoneNumber()const; - void setPhoneNumber(const std::string& phoneNumber); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getUuid()const; - void setUuid(const std::string& uuid); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); - - private: - std::string phoneNumber_; - std::string description_; - std::string uuid_; - std::string instanceId_; - std::string name_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYSANDBOXWHILELISTREQUEST_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifySandBoxWhileListResult.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifySandBoxWhileListResult.h deleted file mode 100644 index eb9c0518e..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifySandBoxWhileListResult.h +++ /dev/null @@ -1,53 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYSANDBOXWHILELISTRESULT_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYSANDBOXWHILELISTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifySandBoxWhileListResult : public ServiceResult - { - public: - - - ModifySandBoxWhileListResult(); - explicit ModifySandBoxWhileListResult(const std::string &payload); - ~ModifySandBoxWhileListResult(); - std::string getUuid()const; - std::string getPhoneNumber()const; - - protected: - void parse(const std::string &payload); - private: - std::string uuid_; - std::string phoneNumber_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYSANDBOXWHILELISTRESULT_H_ \ No newline at end of file diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifySilenceTimeoutConfigRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifySilenceTimeoutConfigRequest.h index 4cc941347..924db4fb4 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifySilenceTimeoutConfigRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifySilenceTimeoutConfigRequest.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_VOICENAVIGATOR_MODEL_MODIFYSILENCETIMEOUTCONFIGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYSILENCETIMEOUTCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifySilenceTimeoutConfigRequest : public RpcServiceRequest - { - - public: - ModifySilenceTimeoutConfigRequest(); - ~ModifySilenceTimeoutConfigRequest(); - - std::string getFinalAction()const; - void setFinalAction(const std::string& finalAction); - std::string getFinalPrompt()const; - void setFinalPrompt(const std::string& finalPrompt); - int getThreshold()const; - void setThreshold(int threshold); - std::string getIntentTrigger()const; - void setIntentTrigger(const std::string& intentTrigger); - long getTimeout()const; - void setTimeout(long timeout); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSourceType()const; - void setSourceType(const std::string& sourceType); - std::string getFinalActionParams()const; - void setFinalActionParams(const std::string& finalActionParams); - std::string getPrompt()const; - void setPrompt(const std::string& prompt); - - private: - std::string finalAction_; - std::string finalPrompt_; - int threshold_; - std::string intentTrigger_; - long timeout_; - std::string instanceId_; - std::string sourceType_; - std::string finalActionParams_; - std::string prompt_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYSILENCETIMEOUTCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYSILENCETIMEOUTCONFIGREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYSILENCETIMEOUTCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifySilenceTimeoutConfigRequest : public RpcServiceRequest { +public: + ModifySilenceTimeoutConfigRequest(); + ~ModifySilenceTimeoutConfigRequest(); + std::string getFinalAction() const; + void setFinalAction(const std::string &finalAction); + std::string getFinalPrompt() const; + void setFinalPrompt(const std::string &finalPrompt); + int getThreshold() const; + void setThreshold(int threshold); + std::string getIntentTrigger() const; + void setIntentTrigger(const std::string &intentTrigger); + long getTimeout() const; + void setTimeout(long timeout); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getSourceType() const; + void setSourceType(const std::string &sourceType); + std::string getFinalActionParams() const; + void setFinalActionParams(const std::string &finalActionParams); + std::string getPrompt() const; + void setPrompt(const std::string &prompt); + +private: + std::string finalAction_; + std::string finalPrompt_; + int threshold_; + std::string intentTrigger_; + long timeout_; + std::string instanceId_; + std::string sourceType_; + std::string finalActionParams_; + std::string prompt_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYSILENCETIMEOUTCONFIGREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyTTSConfigRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyTTSConfigRequest.h index c03f12de8..c778dad0d 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyTTSConfigRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyTTSConfigRequest.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_VOICENAVIGATOR_MODEL_MODIFYTTSCONFIGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYTTSCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyTTSConfigRequest : public RpcServiceRequest - { - - public: - ModifyTTSConfigRequest(); - ~ModifyTTSConfigRequest(); - - std::string getVoice()const; - void setVoice(const std::string& voice); - std::string getVolume()const; - void setVolume(const std::string& volume); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getSpeechRate()const; - void setSpeechRate(const std::string& speechRate); - - private: - std::string voice_; - std::string volume_; - std::string instanceId_; - std::string speechRate_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYTTSCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYTTSCONFIGREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYTTSCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyTTSConfigRequest : public RpcServiceRequest { +public: + ModifyTTSConfigRequest(); + ~ModifyTTSConfigRequest(); + std::string getVoice() const; + void setVoice(const std::string &voice); + std::string getVolume() const; + void setVolume(const std::string &volume); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getSpeechRate() const; + void setSpeechRate(const std::string &speechRate); + +private: + std::string voice_; + std::string volume_; + std::string instanceId_; + std::string speechRate_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYTTSCONFIGREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyUnrecognizingConfigRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyUnrecognizingConfigRequest.h index 7fb93b389..257d92ae9 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyUnrecognizingConfigRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/ModifyUnrecognizingConfigRequest.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_VOICENAVIGATOR_MODEL_MODIFYUNRECOGNIZINGCONFIGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYUNRECOGNIZINGCONFIGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyUnrecognizingConfigRequest : public RpcServiceRequest - { - - public: - ModifyUnrecognizingConfigRequest(); - ~ModifyUnrecognizingConfigRequest(); - - std::string getFinalAction()const; - void setFinalAction(const std::string& finalAction); - std::string getFinalPrompt()const; - void setFinalPrompt(const std::string& finalPrompt); - int getThreshold()const; - void setThreshold(int threshold); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getFinalActionParams()const; - void setFinalActionParams(const std::string& finalActionParams); - std::string getPrompt()const; - void setPrompt(const std::string& prompt); - - private: - std::string finalAction_; - std::string finalPrompt_; - int threshold_; - std::string instanceId_; - std::string finalActionParams_; - std::string prompt_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYUNRECOGNIZINGCONFIGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYUNRECOGNIZINGCONFIGREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYUNRECOGNIZINGCONFIGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT ModifyUnrecognizingConfigRequest : public RpcServiceRequest { +public: + ModifyUnrecognizingConfigRequest(); + ~ModifyUnrecognizingConfigRequest(); + std::string getFinalAction() const; + void setFinalAction(const std::string &finalAction); + std::string getFinalPrompt() const; + void setFinalPrompt(const std::string &finalPrompt); + int getThreshold() const; + void setThreshold(int threshold); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getFinalActionParams() const; + void setFinalActionParams(const std::string &finalActionParams); + std::string getPrompt() const; + void setPrompt(const std::string &prompt); + +private: + std::string finalAction_; + std::string finalPrompt_; + int threshold_; + std::string instanceId_; + std::string finalActionParams_; + std::string prompt_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_MODIFYUNRECOGNIZINGCONFIGREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/QueryConversationsRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/QueryConversationsRequest.h index d396d7f5b..efd33b6b8 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/QueryConversationsRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/QueryConversationsRequest.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_VOICENAVIGATOR_MODEL_QUERYCONVERSATIONSREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_QUERYCONVERSATIONSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT QueryConversationsRequest : public RpcServiceRequest - { - - public: - QueryConversationsRequest(); - ~QueryConversationsRequest(); - - long getBeginTimeLeftRange()const; - void setBeginTimeLeftRange(long beginTimeLeftRange); - int getPageNumber()const; - void setPageNumber(int pageNumber); - std::string getCallingNumber()const; - void setCallingNumber(const std::string& callingNumber); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getBeginTimeRightRange()const; - void setBeginTimeRightRange(long beginTimeRightRange); - int getPageSize()const; - void setPageSize(int pageSize); - - private: - long beginTimeLeftRange_; - int pageNumber_; - std::string callingNumber_; - std::string instanceId_; - long beginTimeRightRange_; - int pageSize_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_QUERYCONVERSATIONSREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_QUERYCONVERSATIONSREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_QUERYCONVERSATIONSREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT QueryConversationsRequest : public RpcServiceRequest { +public: + QueryConversationsRequest(); + ~QueryConversationsRequest(); + long getBeginTimeLeftRange() const; + void setBeginTimeLeftRange(long beginTimeLeftRange); + int getPageNumber() const; + void setPageNumber(int pageNumber); + std::string getCallingNumber() const; + void setCallingNumber(const std::string &callingNumber); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getBeginTimeRightRange() const; + void setBeginTimeRightRange(long beginTimeRightRange); + int getPageSize() const; + void setPageSize(int pageSize); + +private: + long beginTimeLeftRange_; + int pageNumber_; + std::string callingNumber_; + std::string instanceId_; + long beginTimeRightRange_; + int pageSize_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_QUERYCONVERSATIONSREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/SaveRecordingRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/SaveRecordingRequest.h index f9961dbbe..a9ea2ef99 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/SaveRecordingRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/SaveRecordingRequest.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_VOICENAVIGATOR_MODEL_SAVERECORDINGREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_SAVERECORDINGREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT SaveRecordingRequest : public RpcServiceRequest - { - - public: - SaveRecordingRequest(); - ~SaveRecordingRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - long getStartTime()const; - void setStartTime(long startTime); - std::string getType()const; - void setType(const std::string& type); - std::string getDuration()const; - void setDuration(const std::string& duration); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getFileName()const; - void setFileName(const std::string& fileName); - std::string getFilePath()const; - void setFilePath(const std::string& filePath); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - - private: - std::string conversationId_; - long startTime_; - std::string type_; - std::string duration_; - std::string instanceId_; - std::string fileName_; - std::string filePath_; - long instanceOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_SAVERECORDINGREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_SAVERECORDINGREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_SAVERECORDINGREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT SaveRecordingRequest : public RpcServiceRequest { +public: + SaveRecordingRequest(); + ~SaveRecordingRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + long getStartTime() const; + void setStartTime(long startTime); + std::string getType() const; + void setType(const std::string &type); + std::string getDuration() const; + void setDuration(const std::string &duration); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + std::string getFileName() const; + void setFileName(const std::string &fileName); + std::string getFilePath() const; + void setFilePath(const std::string &filePath); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + +private: + std::string conversationId_; + long startTime_; + std::string type_; + std::string duration_; + std::string instanceId_; + std::string fileName_; + std::string filePath_; + long instanceOwnerId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_SAVERECORDINGREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/SilenceTimeoutRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/SilenceTimeoutRequest.h index dbc65c60b..bf300922e 100644 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/SilenceTimeoutRequest.h +++ b/voicenavigator/include/alibabacloud/voicenavigator/model/SilenceTimeoutRequest.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_VOICENAVIGATOR_MODEL_SILENCETIMEOUTREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_SILENCETIMEOUTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT SilenceTimeoutRequest : public RpcServiceRequest - { - - public: - SilenceTimeoutRequest(); - ~SilenceTimeoutRequest(); - - std::string getConversationId()const; - void setConversationId(const std::string& conversationId); - std::string getInitialContext()const; - void setInitialContext(const std::string& initialContext); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - long getInstanceOwnerId()const; - void setInstanceOwnerId(long instanceOwnerId); - - private: - std::string conversationId_; - std::string initialContext_; - std::string instanceId_; - long instanceOwnerId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_SILENCETIMEOUTREQUEST_H_ \ No newline at end of file + */ + +#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_SILENCETIMEOUTREQUEST_H_ +#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_SILENCETIMEOUTREQUEST_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud { +namespace VoiceNavigator { +namespace Model { +class ALIBABACLOUD_VOICENAVIGATOR_EXPORT SilenceTimeoutRequest : public RpcServiceRequest { +public: + SilenceTimeoutRequest(); + ~SilenceTimeoutRequest(); + std::string getConversationId() const; + void setConversationId(const std::string &conversationId); + std::string getInitialContext() const; + void setInitialContext(const std::string &initialContext); + std::string getInstanceId() const; + void setInstanceId(const std::string &instanceId); + long getInstanceOwnerId() const; + void setInstanceOwnerId(long instanceOwnerId); + +private: + std::string conversationId_; + std::string initialContext_; + std::string instanceId_; + long instanceOwnerId_; +}; +} // namespace Model +} // namespace VoiceNavigator +} // namespace AlibabaCloud +#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_SILENCETIMEOUTREQUEST_H_ diff --git a/voicenavigator/include/alibabacloud/voicenavigator/model/UpdateNewBargeInSwitchRequest.h b/voicenavigator/include/alibabacloud/voicenavigator/model/UpdateNewBargeInSwitchRequest.h deleted file mode 100644 index 945847fb0..000000000 --- a/voicenavigator/include/alibabacloud/voicenavigator/model/UpdateNewBargeInSwitchRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_VOICENAVIGATOR_MODEL_UPDATENEWBARGEINSWITCHREQUEST_H_ -#define ALIBABACLOUD_VOICENAVIGATOR_MODEL_UPDATENEWBARGEINSWITCHREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace VoiceNavigator - { - namespace Model - { - class ALIBABACLOUD_VOICENAVIGATOR_EXPORT UpdateNewBargeInSwitchRequest : public RpcServiceRequest - { - - public: - UpdateNewBargeInSwitchRequest(); - ~UpdateNewBargeInSwitchRequest(); - - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - bool getEnable()const; - void setEnable(bool enable); - - private: - std::string instanceId_; - bool enable_; - - }; - } - } -} -#endif // !ALIBABACLOUD_VOICENAVIGATOR_MODEL_UPDATENEWBARGEINSWITCHREQUEST_H_ \ No newline at end of file diff --git a/voicenavigator/src/VoiceNavigatorClient.cc b/voicenavigator/src/VoiceNavigatorClient.cc index 26b369e10..aa94742c0 100644 --- a/voicenavigator/src/VoiceNavigatorClient.cc +++ b/voicenavigator/src/VoiceNavigatorClient.cc @@ -123,42 +123,6 @@ VoiceNavigatorClient::AuditTTSVoiceOutcomeCallable VoiceNavigatorClient::auditTT return task->get_future(); } -VoiceNavigatorClient::BatchCreateSandBoxWhileListOutcome VoiceNavigatorClient::batchCreateSandBoxWhileList(const BatchCreateSandBoxWhileListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return BatchCreateSandBoxWhileListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return BatchCreateSandBoxWhileListOutcome(BatchCreateSandBoxWhileListResult(outcome.result())); - else - return BatchCreateSandBoxWhileListOutcome(outcome.error()); -} - -void VoiceNavigatorClient::batchCreateSandBoxWhileListAsync(const BatchCreateSandBoxWhileListRequest& request, const BatchCreateSandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, batchCreateSandBoxWhileList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VoiceNavigatorClient::BatchCreateSandBoxWhileListOutcomeCallable VoiceNavigatorClient::batchCreateSandBoxWhileListCallable(const BatchCreateSandBoxWhileListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->batchCreateSandBoxWhileList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VoiceNavigatorClient::BeginDialogueOutcome VoiceNavigatorClient::beginDialogue(const BeginDialogueRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -447,78 +411,6 @@ VoiceNavigatorClient::DeleteInstanceOutcomeCallable VoiceNavigatorClient::delete return task->get_future(); } -VoiceNavigatorClient::DeleteSandBoxWhileListOutcome VoiceNavigatorClient::deleteSandBoxWhileList(const DeleteSandBoxWhileListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DeleteSandBoxWhileListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DeleteSandBoxWhileListOutcome(DeleteSandBoxWhileListResult(outcome.result())); - else - return DeleteSandBoxWhileListOutcome(outcome.error()); -} - -void VoiceNavigatorClient::deleteSandBoxWhileListAsync(const DeleteSandBoxWhileListRequest& request, const DeleteSandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, deleteSandBoxWhileList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VoiceNavigatorClient::DeleteSandBoxWhileListOutcomeCallable VoiceNavigatorClient::deleteSandBoxWhileListCallable(const DeleteSandBoxWhileListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->deleteSandBoxWhileList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VoiceNavigatorClient::DescribeAsrVadConfigOutcome VoiceNavigatorClient::describeAsrVadConfig(const DescribeAsrVadConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeAsrVadConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeAsrVadConfigOutcome(DescribeAsrVadConfigResult(outcome.result())); - else - return DescribeAsrVadConfigOutcome(outcome.error()); -} - -void VoiceNavigatorClient::describeAsrVadConfigAsync(const DescribeAsrVadConfigRequest& request, const DescribeAsrVadConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeAsrVadConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VoiceNavigatorClient::DescribeAsrVadConfigOutcomeCallable VoiceNavigatorClient::describeAsrVadConfigCallable(const DescribeAsrVadConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeAsrVadConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VoiceNavigatorClient::DescribeConversationOutcome VoiceNavigatorClient::describeConversation(const DescribeConversationRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -807,42 +699,6 @@ VoiceNavigatorClient::DescribeTTSConfigOutcomeCallable VoiceNavigatorClient::des return task->get_future(); } -VoiceNavigatorClient::DescribeVoiceConfigOutcome VoiceNavigatorClient::describeVoiceConfig(const DescribeVoiceConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DescribeVoiceConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DescribeVoiceConfigOutcome(DescribeVoiceConfigResult(outcome.result())); - else - return DescribeVoiceConfigOutcome(outcome.error()); -} - -void VoiceNavigatorClient::describeVoiceConfigAsync(const DescribeVoiceConfigRequest& request, const DescribeVoiceConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, describeVoiceConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VoiceNavigatorClient::DescribeVoiceConfigOutcomeCallable VoiceNavigatorClient::describeVoiceConfigCallable(const DescribeVoiceConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->describeVoiceConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VoiceNavigatorClient::DialogueOutcome VoiceNavigatorClient::dialogue(const DialogueRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -915,42 +771,6 @@ VoiceNavigatorClient::DisableInstanceOutcomeCallable VoiceNavigatorClient::disab return task->get_future(); } -VoiceNavigatorClient::DisableSandBoxWhileListOutcome VoiceNavigatorClient::disableSandBoxWhileList(const DisableSandBoxWhileListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return DisableSandBoxWhileListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return DisableSandBoxWhileListOutcome(DisableSandBoxWhileListResult(outcome.result())); - else - return DisableSandBoxWhileListOutcome(outcome.error()); -} - -void VoiceNavigatorClient::disableSandBoxWhileListAsync(const DisableSandBoxWhileListRequest& request, const DisableSandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, disableSandBoxWhileList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VoiceNavigatorClient::DisableSandBoxWhileListOutcomeCallable VoiceNavigatorClient::disableSandBoxWhileListCallable(const DisableSandBoxWhileListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->disableSandBoxWhileList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VoiceNavigatorClient::EnableInstanceOutcome VoiceNavigatorClient::enableInstance(const EnableInstanceRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -987,42 +807,6 @@ VoiceNavigatorClient::EnableInstanceOutcomeCallable VoiceNavigatorClient::enable return task->get_future(); } -VoiceNavigatorClient::EnableSandBoxWhileListOutcome VoiceNavigatorClient::enableSandBoxWhileList(const EnableSandBoxWhileListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return EnableSandBoxWhileListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return EnableSandBoxWhileListOutcome(EnableSandBoxWhileListResult(outcome.result())); - else - return EnableSandBoxWhileListOutcome(outcome.error()); -} - -void VoiceNavigatorClient::enableSandBoxWhileListAsync(const EnableSandBoxWhileListRequest& request, const EnableSandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, enableSandBoxWhileList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VoiceNavigatorClient::EnableSandBoxWhileListOutcomeCallable VoiceNavigatorClient::enableSandBoxWhileListCallable(const EnableSandBoxWhileListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->enableSandBoxWhileList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VoiceNavigatorClient::EndDialogueOutcome VoiceNavigatorClient::endDialogue(const EndDialogueRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1131,72 +915,72 @@ VoiceNavigatorClient::ExportStatisticalDataOutcomeCallable VoiceNavigatorClient: return task->get_future(); } -VoiceNavigatorClient::GetInstanceConfigOutcome VoiceNavigatorClient::getInstanceConfig(const GetInstanceConfigRequest &request) const +VoiceNavigatorClient::GenerateUploadUrlOutcome VoiceNavigatorClient::generateUploadUrl(const GenerateUploadUrlRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetInstanceConfigOutcome(endpointOutcome.error()); + return GenerateUploadUrlOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetInstanceConfigOutcome(GetInstanceConfigResult(outcome.result())); + return GenerateUploadUrlOutcome(GenerateUploadUrlResult(outcome.result())); else - return GetInstanceConfigOutcome(outcome.error()); + return GenerateUploadUrlOutcome(outcome.error()); } -void VoiceNavigatorClient::getInstanceConfigAsync(const GetInstanceConfigRequest& request, const GetInstanceConfigAsyncHandler& handler, const std::shared_ptr& context) const +void VoiceNavigatorClient::generateUploadUrlAsync(const GenerateUploadUrlRequest& request, const GenerateUploadUrlAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getInstanceConfig(request), context); + handler(this, request, generateUploadUrl(request), context); }; asyncExecute(new Runnable(fn)); } -VoiceNavigatorClient::GetInstanceConfigOutcomeCallable VoiceNavigatorClient::getInstanceConfigCallable(const GetInstanceConfigRequest &request) const +VoiceNavigatorClient::GenerateUploadUrlOutcomeCallable VoiceNavigatorClient::generateUploadUrlCallable(const GenerateUploadUrlRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getInstanceConfig(request); + return this->generateUploadUrl(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -VoiceNavigatorClient::GetNewBargeInSwitchOutcome VoiceNavigatorClient::getNewBargeInSwitch(const GetNewBargeInSwitchRequest &request) const +VoiceNavigatorClient::GetAsrConfigOutcome VoiceNavigatorClient::getAsrConfig(const GetAsrConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetNewBargeInSwitchOutcome(endpointOutcome.error()); + return GetAsrConfigOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetNewBargeInSwitchOutcome(GetNewBargeInSwitchResult(outcome.result())); + return GetAsrConfigOutcome(GetAsrConfigResult(outcome.result())); else - return GetNewBargeInSwitchOutcome(outcome.error()); + return GetAsrConfigOutcome(outcome.error()); } -void VoiceNavigatorClient::getNewBargeInSwitchAsync(const GetNewBargeInSwitchRequest& request, const GetNewBargeInSwitchAsyncHandler& handler, const std::shared_ptr& context) const +void VoiceNavigatorClient::getAsrConfigAsync(const GetAsrConfigRequest& request, const GetAsrConfigAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getNewBargeInSwitch(request), context); + handler(this, request, getAsrConfig(request), context); }; asyncExecute(new Runnable(fn)); } -VoiceNavigatorClient::GetNewBargeInSwitchOutcomeCallable VoiceNavigatorClient::getNewBargeInSwitchCallable(const GetNewBargeInSwitchRequest &request) const +VoiceNavigatorClient::GetAsrConfigOutcomeCallable VoiceNavigatorClient::getAsrConfigCallable(const GetAsrConfigRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getNewBargeInSwitch(request); + return this->getAsrConfig(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1383,72 +1167,36 @@ VoiceNavigatorClient::ListInstancesOutcomeCallable VoiceNavigatorClient::listIns return task->get_future(); } -VoiceNavigatorClient::ListSandBoxWhileListOutcome VoiceNavigatorClient::listSandBoxWhileList(const ListSandBoxWhileListRequest &request) const +VoiceNavigatorClient::ModifyAsrConfigOutcome VoiceNavigatorClient::modifyAsrConfig(const ModifyAsrConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListSandBoxWhileListOutcome(endpointOutcome.error()); + return ModifyAsrConfigOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListSandBoxWhileListOutcome(ListSandBoxWhileListResult(outcome.result())); + return ModifyAsrConfigOutcome(ModifyAsrConfigResult(outcome.result())); else - return ListSandBoxWhileListOutcome(outcome.error()); + return ModifyAsrConfigOutcome(outcome.error()); } -void VoiceNavigatorClient::listSandBoxWhileListAsync(const ListSandBoxWhileListRequest& request, const ListSandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context) const +void VoiceNavigatorClient::modifyAsrConfigAsync(const ModifyAsrConfigRequest& request, const ModifyAsrConfigAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listSandBoxWhileList(request), context); + handler(this, request, modifyAsrConfig(request), context); }; asyncExecute(new Runnable(fn)); } -VoiceNavigatorClient::ListSandBoxWhileListOutcomeCallable VoiceNavigatorClient::listSandBoxWhileListCallable(const ListSandBoxWhileListRequest &request) const +VoiceNavigatorClient::ModifyAsrConfigOutcomeCallable VoiceNavigatorClient::modifyAsrConfigCallable(const ModifyAsrConfigRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listSandBoxWhileList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -VoiceNavigatorClient::ModifyAsrVadConfigOutcome VoiceNavigatorClient::modifyAsrVadConfig(const ModifyAsrVadConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifyAsrVadConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifyAsrVadConfigOutcome(ModifyAsrVadConfigResult(outcome.result())); - else - return ModifyAsrVadConfigOutcome(outcome.error()); -} - -void VoiceNavigatorClient::modifyAsrVadConfigAsync(const ModifyAsrVadConfigRequest& request, const ModifyAsrVadConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifyAsrVadConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VoiceNavigatorClient::ModifyAsrVadConfigOutcomeCallable VoiceNavigatorClient::modifyAsrVadConfigCallable(const ModifyAsrVadConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifyAsrVadConfig(request); + return this->modifyAsrConfig(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1527,42 +1275,6 @@ VoiceNavigatorClient::ModifyInstanceOutcomeCallable VoiceNavigatorClient::modify return task->get_future(); } -VoiceNavigatorClient::ModifySandBoxWhileListOutcome VoiceNavigatorClient::modifySandBoxWhileList(const ModifySandBoxWhileListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ModifySandBoxWhileListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ModifySandBoxWhileListOutcome(ModifySandBoxWhileListResult(outcome.result())); - else - return ModifySandBoxWhileListOutcome(outcome.error()); -} - -void VoiceNavigatorClient::modifySandBoxWhileListAsync(const ModifySandBoxWhileListRequest& request, const ModifySandBoxWhileListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, modifySandBoxWhileList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VoiceNavigatorClient::ModifySandBoxWhileListOutcomeCallable VoiceNavigatorClient::modifySandBoxWhileListCallable(const ModifySandBoxWhileListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->modifySandBoxWhileList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - VoiceNavigatorClient::ModifySilenceTimeoutConfigOutcome VoiceNavigatorClient::modifySilenceTimeoutConfig(const ModifySilenceTimeoutConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -1779,39 +1491,3 @@ VoiceNavigatorClient::SilenceTimeoutOutcomeCallable VoiceNavigatorClient::silenc return task->get_future(); } -VoiceNavigatorClient::UpdateNewBargeInSwitchOutcome VoiceNavigatorClient::updateNewBargeInSwitch(const UpdateNewBargeInSwitchRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateNewBargeInSwitchOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateNewBargeInSwitchOutcome(UpdateNewBargeInSwitchResult(outcome.result())); - else - return UpdateNewBargeInSwitchOutcome(outcome.error()); -} - -void VoiceNavigatorClient::updateNewBargeInSwitchAsync(const UpdateNewBargeInSwitchRequest& request, const UpdateNewBargeInSwitchAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateNewBargeInSwitch(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -VoiceNavigatorClient::UpdateNewBargeInSwitchOutcomeCallable VoiceNavigatorClient::updateNewBargeInSwitchCallable(const UpdateNewBargeInSwitchRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateNewBargeInSwitch(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - diff --git a/voicenavigator/src/model/AssociateChatbotInstanceRequest.cc b/voicenavigator/src/model/AssociateChatbotInstanceRequest.cc index 0c3cbf448..03678e072 100644 --- a/voicenavigator/src/model/AssociateChatbotInstanceRequest.cc +++ b/voicenavigator/src/model/AssociateChatbotInstanceRequest.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::VoiceNavigator::Model::AssociateChatbotInstanceRequest; - -AssociateChatbotInstanceRequest::AssociateChatbotInstanceRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "AssociateChatbotInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -AssociateChatbotInstanceRequest::~AssociateChatbotInstanceRequest() -{} - -std::string AssociateChatbotInstanceRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::AssociateChatbotInstanceRequest; + +AssociateChatbotInstanceRequest::AssociateChatbotInstanceRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "AssociateChatbotInstance") { + setMethod(HttpRequest::Method::Post); } -void AssociateChatbotInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +AssociateChatbotInstanceRequest::~AssociateChatbotInstanceRequest() {} + +std::string AssociateChatbotInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string AssociateChatbotInstanceRequest::getChatbotInstanceId()const -{ - return chatbotInstanceId_; +void AssociateChatbotInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AssociateChatbotInstanceRequest::setChatbotInstanceId(const std::string& chatbotInstanceId) -{ - chatbotInstanceId_ = chatbotInstanceId; - setParameter("ChatbotInstanceId", chatbotInstanceId); +std::string AssociateChatbotInstanceRequest::getChatbotInstanceId() const { + return chatbotInstanceId_; } -std::string AssociateChatbotInstanceRequest::getChatbotName()const -{ - return chatbotName_; +void AssociateChatbotInstanceRequest::setChatbotInstanceId(const std::string &chatbotInstanceId) { + chatbotInstanceId_ = chatbotInstanceId; + setParameter(std::string("ChatbotInstanceId"), chatbotInstanceId); } -void AssociateChatbotInstanceRequest::setChatbotName(const std::string& chatbotName) -{ - chatbotName_ = chatbotName; - setParameter("ChatbotName", chatbotName); +std::string AssociateChatbotInstanceRequest::getChatbotName() const { + return chatbotName_; +} + +void AssociateChatbotInstanceRequest::setChatbotName(const std::string &chatbotName) { + chatbotName_ = chatbotName; + setParameter(std::string("ChatbotName"), chatbotName); } diff --git a/voicenavigator/src/model/AuditTTSVoiceRequest.cc b/voicenavigator/src/model/AuditTTSVoiceRequest.cc index 6e290e330..c70b96b7c 100644 --- a/voicenavigator/src/model/AuditTTSVoiceRequest.cc +++ b/voicenavigator/src/model/AuditTTSVoiceRequest.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::VoiceNavigator::Model::AuditTTSVoiceRequest; - -AuditTTSVoiceRequest::AuditTTSVoiceRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "AuditTTSVoice") -{ - setMethod(HttpRequest::Method::Post); -} - -AuditTTSVoiceRequest::~AuditTTSVoiceRequest() -{} - -std::string AuditTTSVoiceRequest::getVoice()const -{ - return voice_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::AuditTTSVoiceRequest; + +AuditTTSVoiceRequest::AuditTTSVoiceRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "AuditTTSVoice") { + setMethod(HttpRequest::Method::Post); } -void AuditTTSVoiceRequest::setVoice(const std::string& voice) -{ - voice_ = voice; - setParameter("Voice", voice); +AuditTTSVoiceRequest::~AuditTTSVoiceRequest() {} + +std::string AuditTTSVoiceRequest::getVoice() const { + return voice_; } -std::string AuditTTSVoiceRequest::getVolume()const -{ - return volume_; +void AuditTTSVoiceRequest::setVoice(const std::string &voice) { + voice_ = voice; + setParameter(std::string("Voice"), voice); } -void AuditTTSVoiceRequest::setVolume(const std::string& volume) -{ - volume_ = volume; - setParameter("Volume", volume); +std::string AuditTTSVoiceRequest::getVolume() const { + return volume_; } -std::string AuditTTSVoiceRequest::getInstanceId()const -{ - return instanceId_; +void AuditTTSVoiceRequest::setVolume(const std::string &volume) { + volume_ = volume; + setParameter(std::string("Volume"), volume); } -void AuditTTSVoiceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string AuditTTSVoiceRequest::getInstanceId() const { + return instanceId_; } -std::string AuditTTSVoiceRequest::getText()const -{ - return text_; +void AuditTTSVoiceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void AuditTTSVoiceRequest::setText(const std::string& text) -{ - text_ = text; - setParameter("Text", text); +std::string AuditTTSVoiceRequest::getText() const { + return text_; } -std::string AuditTTSVoiceRequest::getSpeechRate()const -{ - return speechRate_; +void AuditTTSVoiceRequest::setText(const std::string &text) { + text_ = text; + setParameter(std::string("Text"), text); } -void AuditTTSVoiceRequest::setSpeechRate(const std::string& speechRate) -{ - speechRate_ = speechRate; - setParameter("SpeechRate", speechRate); +std::string AuditTTSVoiceRequest::getSpeechRate() const { + return speechRate_; +} + +void AuditTTSVoiceRequest::setSpeechRate(const std::string &speechRate) { + speechRate_ = speechRate; + setParameter(std::string("SpeechRate"), speechRate); } diff --git a/voicenavigator/src/model/BatchCreateSandBoxWhileListRequest.cc b/voicenavigator/src/model/BatchCreateSandBoxWhileListRequest.cc deleted file mode 100644 index 3061ec08d..000000000 --- a/voicenavigator/src/model/BatchCreateSandBoxWhileListRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::BatchCreateSandBoxWhileListRequest; - -BatchCreateSandBoxWhileListRequest::BatchCreateSandBoxWhileListRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "BatchCreateSandBoxWhileList") -{ - setMethod(HttpRequest::Method::Post); -} - -BatchCreateSandBoxWhileListRequest::~BatchCreateSandBoxWhileListRequest() -{} - -std::string BatchCreateSandBoxWhileListRequest::getWhiteListJson()const -{ - return whiteListJson_; -} - -void BatchCreateSandBoxWhileListRequest::setWhiteListJson(const std::string& whiteListJson) -{ - whiteListJson_ = whiteListJson; - setParameter("WhiteListJson", whiteListJson); -} - diff --git a/voicenavigator/src/model/BatchCreateSandBoxWhileListResult.cc b/voicenavigator/src/model/BatchCreateSandBoxWhileListResult.cc deleted file mode 100644 index 3f68b5be8..000000000 --- a/voicenavigator/src/model/BatchCreateSandBoxWhileListResult.cc +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::VoiceNavigator; -using namespace AlibabaCloud::VoiceNavigator::Model; - -BatchCreateSandBoxWhileListResult::BatchCreateSandBoxWhileListResult() : - ServiceResult() -{} - -BatchCreateSandBoxWhileListResult::BatchCreateSandBoxWhileListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -BatchCreateSandBoxWhileListResult::~BatchCreateSandBoxWhileListResult() -{} - -void BatchCreateSandBoxWhileListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allWhiteListNode = value["WhiteList"]["WhiteListItem"]; - for (auto valueWhiteListWhiteListItem : allWhiteListNode) - { - WhiteListItem whiteListObject; - if(!valueWhiteListWhiteListItem["Uuid"].isNull()) - whiteListObject.uuid = valueWhiteListWhiteListItem["Uuid"].asString(); - if(!valueWhiteListWhiteListItem["PhoneNumber"].isNull()) - whiteListObject.phoneNumber = valueWhiteListWhiteListItem["PhoneNumber"].asString(); - if(!valueWhiteListWhiteListItem["Description"].isNull()) - whiteListObject.description = valueWhiteListWhiteListItem["Description"].asString(); - if(!valueWhiteListWhiteListItem["IsEnable"].isNull()) - whiteListObject.isEnable = std::stoi(valueWhiteListWhiteListItem["IsEnable"].asString()); - if(!valueWhiteListWhiteListItem["GmtCreate"].isNull()) - whiteListObject.gmtCreate = std::stol(valueWhiteListWhiteListItem["GmtCreate"].asString()); - if(!valueWhiteListWhiteListItem["InstanceId"].isNull()) - whiteListObject.instanceId = valueWhiteListWhiteListItem["InstanceId"].asString(); - if(!valueWhiteListWhiteListItem["GmtModified"].isNull()) - whiteListObject.gmtModified = std::stol(valueWhiteListWhiteListItem["GmtModified"].asString()); - if(!valueWhiteListWhiteListItem["Name"].isNull()) - whiteListObject.name = valueWhiteListWhiteListItem["Name"].asString(); - whiteList_.push_back(whiteListObject); - } - if(!value["Repeat"].isNull()) - repeat_ = value["Repeat"].asString() == "true"; - -} - -std::vector BatchCreateSandBoxWhileListResult::getWhiteList()const -{ - return whiteList_; -} - -bool BatchCreateSandBoxWhileListResult::getRepeat()const -{ - return repeat_; -} - diff --git a/voicenavigator/src/model/BeginDialogueRequest.cc b/voicenavigator/src/model/BeginDialogueRequest.cc index c74db5ebc..dcba0bfe8 100644 --- a/voicenavigator/src/model/BeginDialogueRequest.cc +++ b/voicenavigator/src/model/BeginDialogueRequest.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::VoiceNavigator::Model::BeginDialogueRequest; - -BeginDialogueRequest::BeginDialogueRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "BeginDialogue") -{ - setMethod(HttpRequest::Method::Post); -} - -BeginDialogueRequest::~BeginDialogueRequest() -{} - -std::string BeginDialogueRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::BeginDialogueRequest; + +BeginDialogueRequest::BeginDialogueRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "BeginDialogue") { + setMethod(HttpRequest::Method::Post); } -void BeginDialogueRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +BeginDialogueRequest::~BeginDialogueRequest() {} + +std::string BeginDialogueRequest::getConversationId() const { + return conversationId_; } -std::string BeginDialogueRequest::getInitialContext()const -{ - return initialContext_; +void BeginDialogueRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void BeginDialogueRequest::setInitialContext(const std::string& initialContext) -{ - initialContext_ = initialContext; - setParameter("InitialContext", initialContext); +std::string BeginDialogueRequest::getInitialContext() const { + return initialContext_; } -std::string BeginDialogueRequest::getCallingNumber()const -{ - return callingNumber_; +void BeginDialogueRequest::setInitialContext(const std::string &initialContext) { + initialContext_ = initialContext; + setParameter(std::string("InitialContext"), initialContext); } -void BeginDialogueRequest::setCallingNumber(const std::string& callingNumber) -{ - callingNumber_ = callingNumber; - setParameter("CallingNumber", callingNumber); +std::string BeginDialogueRequest::getCallingNumber() const { + return callingNumber_; } -std::string BeginDialogueRequest::getInstanceId()const -{ - return instanceId_; +void BeginDialogueRequest::setCallingNumber(const std::string &callingNumber) { + callingNumber_ = callingNumber; + setParameter(std::string("CallingNumber"), callingNumber); } -void BeginDialogueRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string BeginDialogueRequest::getInstanceId() const { + return instanceId_; } -std::string BeginDialogueRequest::getCalledNumber()const -{ - return calledNumber_; +void BeginDialogueRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void BeginDialogueRequest::setCalledNumber(const std::string& calledNumber) -{ - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); +std::string BeginDialogueRequest::getCalledNumber() const { + return calledNumber_; } -long BeginDialogueRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void BeginDialogueRequest::setCalledNumber(const std::string &calledNumber) { + calledNumber_ = calledNumber; + setParameter(std::string("CalledNumber"), calledNumber); } -void BeginDialogueRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long BeginDialogueRequest::getInstanceOwnerId() const { + return instanceOwnerId_; +} + +void BeginDialogueRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } diff --git a/voicenavigator/src/model/CollectedNumberRequest.cc b/voicenavigator/src/model/CollectedNumberRequest.cc index b3a942da0..8534acefe 100644 --- a/voicenavigator/src/model/CollectedNumberRequest.cc +++ b/voicenavigator/src/model/CollectedNumberRequest.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::VoiceNavigator::Model::CollectedNumberRequest; - -CollectedNumberRequest::CollectedNumberRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "CollectedNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -CollectedNumberRequest::~CollectedNumberRequest() -{} - -std::string CollectedNumberRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::CollectedNumberRequest; + +CollectedNumberRequest::CollectedNumberRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "CollectedNumber") { + setMethod(HttpRequest::Method::Post); } -void CollectedNumberRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +CollectedNumberRequest::~CollectedNumberRequest() {} + +std::string CollectedNumberRequest::getConversationId() const { + return conversationId_; } -std::string CollectedNumberRequest::getNumber()const -{ - return number_; +void CollectedNumberRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void CollectedNumberRequest::setNumber(const std::string& number) -{ - number_ = number; - setParameter("Number", number); +std::string CollectedNumberRequest::getNumber() const { + return number_; } -std::string CollectedNumberRequest::getInstanceId()const -{ - return instanceId_; +void CollectedNumberRequest::setNumber(const std::string &number) { + number_ = number; + setParameter(std::string("Number"), number); } -void CollectedNumberRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string CollectedNumberRequest::getInstanceId() const { + return instanceId_; } -long CollectedNumberRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void CollectedNumberRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void CollectedNumberRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long CollectedNumberRequest::getInstanceOwnerId() const { + return instanceOwnerId_; +} + +void CollectedNumberRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } diff --git a/voicenavigator/src/model/CreateDownloadUrlRequest.cc b/voicenavigator/src/model/CreateDownloadUrlRequest.cc index 5406fb041..e21d6a590 100644 --- a/voicenavigator/src/model/CreateDownloadUrlRequest.cc +++ b/voicenavigator/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::VoiceNavigator::Model::CreateDownloadUrlRequest; - -CreateDownloadUrlRequest::CreateDownloadUrlRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "CreateDownloadUrl") -{ - setMethod(HttpRequest::Method::Get); -} - -CreateDownloadUrlRequest::~CreateDownloadUrlRequest() -{} - -std::string CreateDownloadUrlRequest::getDownloadTaskId()const -{ - return downloadTaskId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::CreateDownloadUrlRequest; + +CreateDownloadUrlRequest::CreateDownloadUrlRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "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/voicenavigator/src/model/CreateInstanceRequest.cc b/voicenavigator/src/model/CreateInstanceRequest.cc index ae9647a42..bf5189763 100644 --- a/voicenavigator/src/model/CreateInstanceRequest.cc +++ b/voicenavigator/src/model/CreateInstanceRequest.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::VoiceNavigator::Model::CreateInstanceRequest; - -CreateInstanceRequest::CreateInstanceRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "CreateInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -CreateInstanceRequest::~CreateInstanceRequest() -{} - -std::string CreateInstanceRequest::getDescription()const -{ - return description_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::CreateInstanceRequest; + +CreateInstanceRequest::CreateInstanceRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "CreateInstance") { + setMethod(HttpRequest::Method::Post); } -void CreateInstanceRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +CreateInstanceRequest::~CreateInstanceRequest() {} + +std::string CreateInstanceRequest::getDescription() const { + return description_; } -long CreateInstanceRequest::getConcurrency()const -{ - return concurrency_; +void CreateInstanceRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void CreateInstanceRequest::setConcurrency(long concurrency) -{ - concurrency_ = concurrency; - setParameter("Concurrency", std::to_string(concurrency)); +long CreateInstanceRequest::getConcurrency() const { + return concurrency_; } -std::string CreateInstanceRequest::getChatbotInstanceId()const -{ - return chatbotInstanceId_; +void CreateInstanceRequest::setConcurrency(long concurrency) { + concurrency_ = concurrency; + setParameter(std::string("Concurrency"), std::to_string(concurrency)); } -void CreateInstanceRequest::setChatbotInstanceId(const std::string& chatbotInstanceId) -{ - chatbotInstanceId_ = chatbotInstanceId; - setParameter("ChatbotInstanceId", chatbotInstanceId); +std::string CreateInstanceRequest::getChatbotInstanceId() const { + return chatbotInstanceId_; } -std::string CreateInstanceRequest::getName()const -{ - return name_; +void CreateInstanceRequest::setChatbotInstanceId(const std::string &chatbotInstanceId) { + chatbotInstanceId_ = chatbotInstanceId; + setParameter(std::string("ChatbotInstanceId"), chatbotInstanceId); } -void CreateInstanceRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); +std::string CreateInstanceRequest::getName() const { + return name_; } -std::string CreateInstanceRequest::getNluServiceType()const -{ - return nluServiceType_; +void CreateInstanceRequest::setName(const std::string &name) { + name_ = name; + setParameter(std::string("Name"), name); } -void CreateInstanceRequest::setNluServiceType(const std::string& nluServiceType) -{ - nluServiceType_ = nluServiceType; - setParameter("NluServiceType", nluServiceType); +std::string CreateInstanceRequest::getNluServiceType() const { + return nluServiceType_; } -std::string CreateInstanceRequest::getChatbotName()const -{ - return chatbotName_; +void CreateInstanceRequest::setNluServiceType(const std::string &nluServiceType) { + nluServiceType_ = nluServiceType; + setParameter(std::string("NluServiceType"), nluServiceType); } -void CreateInstanceRequest::setChatbotName(const std::string& chatbotName) -{ - chatbotName_ = chatbotName; - setParameter("ChatbotName", chatbotName); +std::string CreateInstanceRequest::getChatbotName() const { + return chatbotName_; +} + +void CreateInstanceRequest::setChatbotName(const std::string &chatbotName) { + chatbotName_ = chatbotName; + setParameter(std::string("ChatbotName"), chatbotName); } diff --git a/voicenavigator/src/model/DebugBeginDialogueRequest.cc b/voicenavigator/src/model/DebugBeginDialogueRequest.cc index ef7b7ad69..84053590f 100644 --- a/voicenavigator/src/model/DebugBeginDialogueRequest.cc +++ b/voicenavigator/src/model/DebugBeginDialogueRequest.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::VoiceNavigator::Model::DebugBeginDialogueRequest; - -DebugBeginDialogueRequest::DebugBeginDialogueRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DebugBeginDialogue") -{ - setMethod(HttpRequest::Method::Post); -} - -DebugBeginDialogueRequest::~DebugBeginDialogueRequest() -{} - -std::string DebugBeginDialogueRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DebugBeginDialogueRequest; + +DebugBeginDialogueRequest::DebugBeginDialogueRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DebugBeginDialogue") { + setMethod(HttpRequest::Method::Post); } -void DebugBeginDialogueRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +DebugBeginDialogueRequest::~DebugBeginDialogueRequest() {} + +std::string DebugBeginDialogueRequest::getConversationId() const { + return conversationId_; } -std::string DebugBeginDialogueRequest::getInitialContext()const -{ - return initialContext_; +void DebugBeginDialogueRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void DebugBeginDialogueRequest::setInitialContext(const std::string& initialContext) -{ - initialContext_ = initialContext; - setParameter("InitialContext", initialContext); +std::string DebugBeginDialogueRequest::getInitialContext() const { + return initialContext_; } -std::string DebugBeginDialogueRequest::getCallingNumber()const -{ - return callingNumber_; +void DebugBeginDialogueRequest::setInitialContext(const std::string &initialContext) { + initialContext_ = initialContext; + setParameter(std::string("InitialContext"), initialContext); } -void DebugBeginDialogueRequest::setCallingNumber(const std::string& callingNumber) -{ - callingNumber_ = callingNumber; - setParameter("CallingNumber", callingNumber); +std::string DebugBeginDialogueRequest::getCallingNumber() const { + return callingNumber_; } -std::string DebugBeginDialogueRequest::getInstanceId()const -{ - return instanceId_; +void DebugBeginDialogueRequest::setCallingNumber(const std::string &callingNumber) { + callingNumber_ = callingNumber; + setParameter(std::string("CallingNumber"), callingNumber); } -void DebugBeginDialogueRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DebugBeginDialogueRequest::getInstanceId() const { + return instanceId_; } -std::string DebugBeginDialogueRequest::getCalledNumber()const -{ - return calledNumber_; +void DebugBeginDialogueRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DebugBeginDialogueRequest::setCalledNumber(const std::string& calledNumber) -{ - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); +std::string DebugBeginDialogueRequest::getCalledNumber() const { + return calledNumber_; +} + +void DebugBeginDialogueRequest::setCalledNumber(const std::string &calledNumber) { + calledNumber_ = calledNumber; + setParameter(std::string("CalledNumber"), calledNumber); } diff --git a/voicenavigator/src/model/DebugBeginDialogueResult.cc b/voicenavigator/src/model/DebugBeginDialogueResult.cc index a104410a8..c6d8b71b4 100644 --- a/voicenavigator/src/model/DebugBeginDialogueResult.cc +++ b/voicenavigator/src/model/DebugBeginDialogueResult.cc @@ -41,10 +41,10 @@ void DebugBeginDialogueResult::parse(const std::string &payload) setRequestId(value["RequestId"].asString()); if(!value["Action"].isNull()) action_ = value["Action"].asString(); - if(!value["ActionParams"].isNull()) - actionParams_ = value["ActionParams"].asString(); if(!value["Interruptible"].isNull()) interruptible_ = value["Interruptible"].asString() == "true"; + if(!value["ActionParams"].isNull()) + actionParams_ = value["ActionParams"].asString(); if(!value["TextResponse"].isNull()) textResponse_ = value["TextResponse"].asString(); diff --git a/voicenavigator/src/model/DebugCollectedNumberRequest.cc b/voicenavigator/src/model/DebugCollectedNumberRequest.cc index aeff5bdb2..bfd795b3d 100644 --- a/voicenavigator/src/model/DebugCollectedNumberRequest.cc +++ b/voicenavigator/src/model/DebugCollectedNumberRequest.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::VoiceNavigator::Model::DebugCollectedNumberRequest; - -DebugCollectedNumberRequest::DebugCollectedNumberRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DebugCollectedNumber") -{ - setMethod(HttpRequest::Method::Post); -} - -DebugCollectedNumberRequest::~DebugCollectedNumberRequest() -{} - -std::string DebugCollectedNumberRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DebugCollectedNumberRequest; + +DebugCollectedNumberRequest::DebugCollectedNumberRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DebugCollectedNumber") { + setMethod(HttpRequest::Method::Post); } -void DebugCollectedNumberRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +DebugCollectedNumberRequest::~DebugCollectedNumberRequest() {} + +std::string DebugCollectedNumberRequest::getConversationId() const { + return conversationId_; } -std::string DebugCollectedNumberRequest::getNumber()const -{ - return number_; +void DebugCollectedNumberRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void DebugCollectedNumberRequest::setNumber(const std::string& number) -{ - number_ = number; - setParameter("Number", number); +std::string DebugCollectedNumberRequest::getNumber() const { + return number_; } -std::string DebugCollectedNumberRequest::getInstanceId()const -{ - return instanceId_; +void DebugCollectedNumberRequest::setNumber(const std::string &number) { + number_ = number; + setParameter(std::string("Number"), number); } -void DebugCollectedNumberRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DebugCollectedNumberRequest::getInstanceId() const { + return instanceId_; +} + +void DebugCollectedNumberRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/voicenavigator/src/model/DebugCollectedNumberResult.cc b/voicenavigator/src/model/DebugCollectedNumberResult.cc index d24b607e0..93ca8af86 100644 --- a/voicenavigator/src/model/DebugCollectedNumberResult.cc +++ b/voicenavigator/src/model/DebugCollectedNumberResult.cc @@ -39,27 +39,27 @@ void DebugCollectedNumberResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["TextResponse"].isNull()) - textResponse_ = value["TextResponse"].asString(); - if(!value["Interruptible"].isNull()) - interruptible_ = value["Interruptible"].asString() == "true"; if(!value["Action"].isNull()) action_ = value["Action"].asString(); + if(!value["Interruptible"].isNull()) + interruptible_ = value["Interruptible"].asString() == "true"; if(!value["ActionParams"].isNull()) actionParams_ = value["ActionParams"].asString(); + if(!value["TextResponse"].isNull()) + textResponse_ = value["TextResponse"].asString(); } -bool DebugCollectedNumberResult::getInterruptible()const -{ - return interruptible_; -} - std::string DebugCollectedNumberResult::getAction()const { return action_; } +bool DebugCollectedNumberResult::getInterruptible()const +{ + return interruptible_; +} + std::string DebugCollectedNumberResult::getActionParams()const { return actionParams_; diff --git a/voicenavigator/src/model/DebugDialogueRequest.cc b/voicenavigator/src/model/DebugDialogueRequest.cc index fd4872955..3dc01c824 100644 --- a/voicenavigator/src/model/DebugDialogueRequest.cc +++ b/voicenavigator/src/model/DebugDialogueRequest.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::VoiceNavigator::Model::DebugDialogueRequest; - -DebugDialogueRequest::DebugDialogueRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DebugDialogue") -{ - setMethod(HttpRequest::Method::Post); -} - -DebugDialogueRequest::~DebugDialogueRequest() -{} - -std::string DebugDialogueRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DebugDialogueRequest; + +DebugDialogueRequest::DebugDialogueRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DebugDialogue") { + setMethod(HttpRequest::Method::Post); } -void DebugDialogueRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +DebugDialogueRequest::~DebugDialogueRequest() {} + +std::string DebugDialogueRequest::getConversationId() const { + return conversationId_; } -std::string DebugDialogueRequest::getInstanceId()const -{ - return instanceId_; +void DebugDialogueRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void DebugDialogueRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DebugDialogueRequest::getInstanceId() const { + return instanceId_; } -std::string DebugDialogueRequest::getAdditionalContext()const -{ - return additionalContext_; +void DebugDialogueRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DebugDialogueRequest::setAdditionalContext(const std::string& additionalContext) -{ - additionalContext_ = additionalContext; - setParameter("AdditionalContext", additionalContext); +std::string DebugDialogueRequest::getAdditionalContext() const { + return additionalContext_; } -std::string DebugDialogueRequest::getUtterance()const -{ - return utterance_; +void DebugDialogueRequest::setAdditionalContext(const std::string &additionalContext) { + additionalContext_ = additionalContext; + setParameter(std::string("AdditionalContext"), additionalContext); } -void DebugDialogueRequest::setUtterance(const std::string& utterance) -{ - utterance_ = utterance; - setParameter("Utterance", utterance); +std::string DebugDialogueRequest::getUtterance() const { + return utterance_; +} + +void DebugDialogueRequest::setUtterance(const std::string &utterance) { + utterance_ = utterance; + setParameter(std::string("Utterance"), utterance); } diff --git a/voicenavigator/src/model/DebugDialogueResult.cc b/voicenavigator/src/model/DebugDialogueResult.cc index ed1cfe4d2..7ebad44b1 100644 --- a/voicenavigator/src/model/DebugDialogueResult.cc +++ b/voicenavigator/src/model/DebugDialogueResult.cc @@ -39,27 +39,27 @@ void DebugDialogueResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["TextResponse"].isNull()) - textResponse_ = value["TextResponse"].asString(); - if(!value["Interruptible"].isNull()) - interruptible_ = value["Interruptible"].asString() == "true"; if(!value["Action"].isNull()) action_ = value["Action"].asString(); + if(!value["Interruptible"].isNull()) + interruptible_ = value["Interruptible"].asString() == "true"; if(!value["ActionParams"].isNull()) actionParams_ = value["ActionParams"].asString(); + if(!value["TextResponse"].isNull()) + textResponse_ = value["TextResponse"].asString(); } -bool DebugDialogueResult::getInterruptible()const -{ - return interruptible_; -} - std::string DebugDialogueResult::getAction()const { return action_; } +bool DebugDialogueResult::getInterruptible()const +{ + return interruptible_; +} + std::string DebugDialogueResult::getActionParams()const { return actionParams_; diff --git a/voicenavigator/src/model/DeleteInstanceRequest.cc b/voicenavigator/src/model/DeleteInstanceRequest.cc index e339e08b4..caa0394c9 100644 --- a/voicenavigator/src/model/DeleteInstanceRequest.cc +++ b/voicenavigator/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::VoiceNavigator::Model::DeleteInstanceRequest; - -DeleteInstanceRequest::DeleteInstanceRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DeleteInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteInstanceRequest::~DeleteInstanceRequest() -{} - -std::string DeleteInstanceRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DeleteInstanceRequest; + +DeleteInstanceRequest::DeleteInstanceRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "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/voicenavigator/src/model/DeleteSandBoxWhileListRequest.cc b/voicenavigator/src/model/DeleteSandBoxWhileListRequest.cc deleted file mode 100644 index 3730b1afc..000000000 --- a/voicenavigator/src/model/DeleteSandBoxWhileListRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::DeleteSandBoxWhileListRequest; - -DeleteSandBoxWhileListRequest::DeleteSandBoxWhileListRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DeleteSandBoxWhileList") -{ - setMethod(HttpRequest::Method::Post); -} - -DeleteSandBoxWhileListRequest::~DeleteSandBoxWhileListRequest() -{} - -std::string DeleteSandBoxWhileListRequest::getPhoneNumber()const -{ - return phoneNumber_; -} - -void DeleteSandBoxWhileListRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); -} - -std::string DeleteSandBoxWhileListRequest::getInstanceId()const -{ - return instanceId_; -} - -void DeleteSandBoxWhileListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/voicenavigator/src/model/DeleteSandBoxWhileListResult.cc b/voicenavigator/src/model/DeleteSandBoxWhileListResult.cc deleted file mode 100644 index eb5c835f4..000000000 --- a/voicenavigator/src/model/DeleteSandBoxWhileListResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::VoiceNavigator; -using namespace AlibabaCloud::VoiceNavigator::Model; - -DeleteSandBoxWhileListResult::DeleteSandBoxWhileListResult() : - ServiceResult() -{} - -DeleteSandBoxWhileListResult::DeleteSandBoxWhileListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteSandBoxWhileListResult::~DeleteSandBoxWhileListResult() -{} - -void DeleteSandBoxWhileListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Uuid"].isNull()) - uuid_ = value["Uuid"].asString(); - if(!value["PhoneNumber"].isNull()) - phoneNumber_ = value["PhoneNumber"].asString(); - -} - -std::string DeleteSandBoxWhileListResult::getUuid()const -{ - return uuid_; -} - -std::string DeleteSandBoxWhileListResult::getPhoneNumber()const -{ - return phoneNumber_; -} - diff --git a/voicenavigator/src/model/DescribeAsrVadConfigRequest.cc b/voicenavigator/src/model/DescribeAsrVadConfigRequest.cc deleted file mode 100644 index be310d0fb..000000000 --- a/voicenavigator/src/model/DescribeAsrVadConfigRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::DescribeAsrVadConfigRequest; - -DescribeAsrVadConfigRequest::DescribeAsrVadConfigRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeAsrVadConfig") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeAsrVadConfigRequest::~DescribeAsrVadConfigRequest() -{} - -std::string DescribeAsrVadConfigRequest::getInstanceId()const -{ - return instanceId_; -} - -void DescribeAsrVadConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/voicenavigator/src/model/DescribeAsrVadConfigResult.cc b/voicenavigator/src/model/DescribeAsrVadConfigResult.cc deleted file mode 100644 index c4d4a2555..000000000 --- a/voicenavigator/src/model/DescribeAsrVadConfigResult.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::VoiceNavigator; -using namespace AlibabaCloud::VoiceNavigator::Model; - -DescribeAsrVadConfigResult::DescribeAsrVadConfigResult() : - ServiceResult() -{} - -DescribeAsrVadConfigResult::DescribeAsrVadConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAsrVadConfigResult::~DescribeAsrVadConfigResult() -{} - -void DescribeAsrVadConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["SpeechNoiseThreshold"].isNull()) - speechNoiseThreshold_ = value["SpeechNoiseThreshold"].asString(); - -} - -std::string DescribeAsrVadConfigResult::getSpeechNoiseThreshold()const -{ - return speechNoiseThreshold_; -} - diff --git a/voicenavigator/src/model/DescribeConversationContextRequest.cc b/voicenavigator/src/model/DescribeConversationContextRequest.cc index 048fec6dc..1dabcb961 100644 --- a/voicenavigator/src/model/DescribeConversationContextRequest.cc +++ b/voicenavigator/src/model/DescribeConversationContextRequest.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::VoiceNavigator::Model::DescribeConversationContextRequest; - -DescribeConversationContextRequest::DescribeConversationContextRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeConversationContext") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeConversationContextRequest::~DescribeConversationContextRequest() -{} - -std::string DescribeConversationContextRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DescribeConversationContextRequest; + +DescribeConversationContextRequest::DescribeConversationContextRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeConversationContext") { + setMethod(HttpRequest::Method::Get); } -void DescribeConversationContextRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +DescribeConversationContextRequest::~DescribeConversationContextRequest() {} + +std::string DescribeConversationContextRequest::getConversationId() const { + return conversationId_; } -std::string DescribeConversationContextRequest::getInstanceId()const -{ - return instanceId_; +void DescribeConversationContextRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void DescribeConversationContextRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeConversationContextRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeConversationContextRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/voicenavigator/src/model/DescribeConversationRequest.cc b/voicenavigator/src/model/DescribeConversationRequest.cc index bb829c3a8..daea68fd3 100644 --- a/voicenavigator/src/model/DescribeConversationRequest.cc +++ b/voicenavigator/src/model/DescribeConversationRequest.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::VoiceNavigator::Model::DescribeConversationRequest; - -DescribeConversationRequest::DescribeConversationRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeConversation") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeConversationRequest::~DescribeConversationRequest() -{} - -std::string DescribeConversationRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DescribeConversationRequest; + +DescribeConversationRequest::DescribeConversationRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeConversation") { + setMethod(HttpRequest::Method::Get); } -void DescribeConversationRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +DescribeConversationRequest::~DescribeConversationRequest() {} + +std::string DescribeConversationRequest::getConversationId() const { + return conversationId_; } -std::string DescribeConversationRequest::getInstanceId()const -{ - return instanceId_; +void DescribeConversationRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void DescribeConversationRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeConversationRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeConversationRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/voicenavigator/src/model/DescribeConversationResult.cc b/voicenavigator/src/model/DescribeConversationResult.cc index 0ab403087..dcba664ea 100644 --- a/voicenavigator/src/model/DescribeConversationResult.cc +++ b/voicenavigator/src/model/DescribeConversationResult.cc @@ -39,22 +39,22 @@ void DescribeConversationResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["CallingNumber"].isNull()) - callingNumber_ = value["CallingNumber"].asString(); - if(!value["BeginTime"].isNull()) - beginTime_ = std::stol(value["BeginTime"].asString()); - if(!value["EndTime"].isNull()) - endTime_ = std::stol(value["EndTime"].asString()); - if(!value["TransferredToAgent"].isNull()) - transferredToAgent_ = value["TransferredToAgent"].asString() == "true"; - if(!value["SkillGroupId"].isNull()) - skillGroupId_ = value["SkillGroupId"].asString(); - if(!value["UserUtteranceCount"].isNull()) - userUtteranceCount_ = std::stoi(value["UserUtteranceCount"].asString()); if(!value["EffectiveAnswerCount"].isNull()) effectiveAnswerCount_ = std::stoi(value["EffectiveAnswerCount"].asString()); if(!value["ConversationId"].isNull()) conversationId_ = value["ConversationId"].asString(); + if(!value["TransferredToAgent"].isNull()) + transferredToAgent_ = value["TransferredToAgent"].asString() == "true"; + if(!value["EndTime"].isNull()) + endTime_ = std::stol(value["EndTime"].asString()); + if(!value["BeginTime"].isNull()) + beginTime_ = std::stol(value["BeginTime"].asString()); + if(!value["SkillGroupId"].isNull()) + skillGroupId_ = value["SkillGroupId"].asString(); + if(!value["CallingNumber"].isNull()) + callingNumber_ = value["CallingNumber"].asString(); + if(!value["UserUtteranceCount"].isNull()) + userUtteranceCount_ = std::stoi(value["UserUtteranceCount"].asString()); } diff --git a/voicenavigator/src/model/DescribeExportProgressRequest.cc b/voicenavigator/src/model/DescribeExportProgressRequest.cc index 4322a529f..63b4c82b3 100644 --- a/voicenavigator/src/model/DescribeExportProgressRequest.cc +++ b/voicenavigator/src/model/DescribeExportProgressRequest.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::VoiceNavigator::Model::DescribeExportProgressRequest; - -DescribeExportProgressRequest::DescribeExportProgressRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeExportProgress") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeExportProgressRequest::~DescribeExportProgressRequest() -{} - -std::string DescribeExportProgressRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DescribeExportProgressRequest; + +DescribeExportProgressRequest::DescribeExportProgressRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeExportProgress") { + setMethod(HttpRequest::Method::Get); } -void DescribeExportProgressRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeExportProgressRequest::~DescribeExportProgressRequest() {} + +std::string DescribeExportProgressRequest::getInstanceId() const { + return instanceId_; } -std::string DescribeExportProgressRequest::getExportTaskId()const -{ - return exportTaskId_; +void DescribeExportProgressRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeExportProgressRequest::setExportTaskId(const std::string& exportTaskId) -{ - exportTaskId_ = exportTaskId; - setParameter("ExportTaskId", exportTaskId); +std::string DescribeExportProgressRequest::getExportTaskId() const { + return exportTaskId_; +} + +void DescribeExportProgressRequest::setExportTaskId(const std::string &exportTaskId) { + exportTaskId_ = exportTaskId; + setParameter(std::string("ExportTaskId"), exportTaskId); } diff --git a/voicenavigator/src/model/DescribeInstanceRequest.cc b/voicenavigator/src/model/DescribeInstanceRequest.cc index 534f741a9..60f418617 100644 --- a/voicenavigator/src/model/DescribeInstanceRequest.cc +++ b/voicenavigator/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::VoiceNavigator::Model::DescribeInstanceRequest; - -DescribeInstanceRequest::DescribeInstanceRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeInstance") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeInstanceRequest::~DescribeInstanceRequest() -{} - -std::string DescribeInstanceRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DescribeInstanceRequest; + +DescribeInstanceRequest::DescribeInstanceRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeInstance") { + setMethod(HttpRequest::Method::Get); } -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/voicenavigator/src/model/DescribeInstanceResult.cc b/voicenavigator/src/model/DescribeInstanceResult.cc index ab4a06baf..452f2bb80 100644 --- a/voicenavigator/src/model/DescribeInstanceResult.cc +++ b/voicenavigator/src/model/DescribeInstanceResult.cc @@ -42,22 +42,22 @@ void DescribeInstanceResult::parse(const std::string &payload) auto allApplicableOperations = value["ApplicableOperations"]["Operation"]; for (const auto &item : allApplicableOperations) applicableOperations_.push_back(item.asString()); - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - if(!value["Name"].isNull()) - name_ = value["Name"].asString(); - if(!value["Description"].isNull()) - description_ = value["Description"].asString(); if(!value["Status"].isNull()) status_ = value["Status"].asString(); - if(!value["Concurrency"].isNull()) - concurrency_ = std::stol(value["Concurrency"].asString()); if(!value["ModifyTime"].isNull()) modifyTime_ = std::stol(value["ModifyTime"].asString()); + if(!value["Description"].isNull()) + description_ = value["Description"].asString(); + if(!value["InstanceId"].isNull()) + instanceId_ = value["InstanceId"].asString(); + if(!value["Concurrency"].isNull()) + concurrency_ = std::stol(value["Concurrency"].asString()); if(!value["ModifyUserName"].isNull()) modifyUserName_ = value["ModifyUserName"].asString(); if(!value["NluServiceType"].isNull()) nluServiceType_ = value["NluServiceType"].asString(); + if(!value["Name"].isNull()) + name_ = value["Name"].asString(); } diff --git a/voicenavigator/src/model/DescribeNavigationConfigRequest.cc b/voicenavigator/src/model/DescribeNavigationConfigRequest.cc index 96f952a15..37f832ee1 100644 --- a/voicenavigator/src/model/DescribeNavigationConfigRequest.cc +++ b/voicenavigator/src/model/DescribeNavigationConfigRequest.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::VoiceNavigator::Model::DescribeNavigationConfigRequest; - -DescribeNavigationConfigRequest::DescribeNavigationConfigRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeNavigationConfig") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeNavigationConfigRequest::~DescribeNavigationConfigRequest() -{} - -std::string DescribeNavigationConfigRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DescribeNavigationConfigRequest; + +DescribeNavigationConfigRequest::DescribeNavigationConfigRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeNavigationConfig") { + setMethod(HttpRequest::Method::Get); } -void DescribeNavigationConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeNavigationConfigRequest::~DescribeNavigationConfigRequest() {} + +std::string DescribeNavigationConfigRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeNavigationConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/voicenavigator/src/model/DescribeNavigationConfigResult.cc b/voicenavigator/src/model/DescribeNavigationConfigResult.cc index 66d89cbe0..587abe783 100644 --- a/voicenavigator/src/model/DescribeNavigationConfigResult.cc +++ b/voicenavigator/src/model/DescribeNavigationConfigResult.cc @@ -39,71 +39,71 @@ void DescribeNavigationConfigResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - auto greetingConfigNode = value["GreetingConfig"]; - if(!greetingConfigNode["GreetingWords"].isNull()) - greetingConfig_.greetingWords = greetingConfigNode["GreetingWords"].asString(); - if(!greetingConfigNode["SourceType"].isNull()) - greetingConfig_.sourceType = greetingConfigNode["SourceType"].asString(); - if(!greetingConfigNode["IntentTrigger"].isNull()) - greetingConfig_.intentTrigger = greetingConfigNode["IntentTrigger"].asString(); - auto unrecognizingConfigNode = value["UnrecognizingConfig"]; - if(!unrecognizingConfigNode["Prompt"].isNull()) - unrecognizingConfig_.prompt = unrecognizingConfigNode["Prompt"].asString(); - if(!unrecognizingConfigNode["Threshold"].isNull()) - unrecognizingConfig_.threshold = std::stoi(unrecognizingConfigNode["Threshold"].asString()); - if(!unrecognizingConfigNode["FinalPrompt"].isNull()) - unrecognizingConfig_.finalPrompt = unrecognizingConfigNode["FinalPrompt"].asString(); - if(!unrecognizingConfigNode["FinalAction"].isNull()) - unrecognizingConfig_.finalAction = unrecognizingConfigNode["FinalAction"].asString(); - if(!unrecognizingConfigNode["FinalActionParams"].isNull()) - unrecognizingConfig_.finalActionParams = unrecognizingConfigNode["FinalActionParams"].asString(); auto repeatingConfigNode = value["RepeatingConfig"]; auto allUtterances = repeatingConfigNode["Utterances"]["Utterance"]; for (auto value : allUtterances) repeatingConfig_.utterances.push_back(value.asString()); auto askingBackConfigNode = value["AskingBackConfig"]; - if(!askingBackConfigNode["Enabled"].isNull()) - askingBackConfig_.enabled = askingBackConfigNode["Enabled"].asString() == "true"; - if(!askingBackConfigNode["Prompt"].isNull()) - askingBackConfig_.prompt = askingBackConfigNode["Prompt"].asString(); - if(!askingBackConfigNode["EnableNegativeFeedback"].isNull()) - askingBackConfig_.enableNegativeFeedback = askingBackConfigNode["EnableNegativeFeedback"].asString() == "true"; if(!askingBackConfigNode["NegativeFeedbackPrompt"].isNull()) askingBackConfig_.negativeFeedbackPrompt = askingBackConfigNode["NegativeFeedbackPrompt"].asString(); if(!askingBackConfigNode["NegativeFeedbackAction"].isNull()) askingBackConfig_.negativeFeedbackAction = askingBackConfigNode["NegativeFeedbackAction"].asString(); if(!askingBackConfigNode["NegativeFeedbackActionParams"].isNull()) askingBackConfig_.negativeFeedbackActionParams = askingBackConfigNode["NegativeFeedbackActionParams"].asString(); + if(!askingBackConfigNode["EnableNegativeFeedback"].isNull()) + askingBackConfig_.enableNegativeFeedback = askingBackConfigNode["EnableNegativeFeedback"].asString() == "true"; + if(!askingBackConfigNode["Enabled"].isNull()) + askingBackConfig_.enabled = askingBackConfigNode["Enabled"].asString() == "true"; + if(!askingBackConfigNode["Prompt"].isNull()) + askingBackConfig_.prompt = askingBackConfigNode["Prompt"].asString(); auto allNegativeFeedbackUtterances = askingBackConfigNode["NegativeFeedbackUtterances"]["Utterance"]; for (auto value : allNegativeFeedbackUtterances) askingBackConfig_.negativeFeedbackUtterances.push_back(value.asString()); + auto silenceTimeoutConfigNode = value["SilenceTimeoutConfig"]; + if(!silenceTimeoutConfigNode["Timeout"].isNull()) + silenceTimeoutConfig_.timeout = std::stol(silenceTimeoutConfigNode["Timeout"].asString()); + if(!silenceTimeoutConfigNode["IntentTrigger"].isNull()) + silenceTimeoutConfig_.intentTrigger = silenceTimeoutConfigNode["IntentTrigger"].asString(); + if(!silenceTimeoutConfigNode["FinalPrompt"].isNull()) + silenceTimeoutConfig_.finalPrompt = silenceTimeoutConfigNode["FinalPrompt"].asString(); + if(!silenceTimeoutConfigNode["SourceType"].isNull()) + silenceTimeoutConfig_.sourceType = silenceTimeoutConfigNode["SourceType"].asString(); + if(!silenceTimeoutConfigNode["FinalAction"].isNull()) + silenceTimeoutConfig_.finalAction = silenceTimeoutConfigNode["FinalAction"].asString(); + if(!silenceTimeoutConfigNode["Prompt"].isNull()) + silenceTimeoutConfig_.prompt = silenceTimeoutConfigNode["Prompt"].asString(); + if(!silenceTimeoutConfigNode["Threshold"].isNull()) + silenceTimeoutConfig_.threshold = std::stoi(silenceTimeoutConfigNode["Threshold"].asString()); + if(!silenceTimeoutConfigNode["FinalActionParams"].isNull()) + silenceTimeoutConfig_.finalActionParams = silenceTimeoutConfigNode["FinalActionParams"].asString(); + auto greetingConfigNode = value["GreetingConfig"]; + if(!greetingConfigNode["IntentTrigger"].isNull()) + greetingConfig_.intentTrigger = greetingConfigNode["IntentTrigger"].asString(); + if(!greetingConfigNode["GreetingWords"].isNull()) + greetingConfig_.greetingWords = greetingConfigNode["GreetingWords"].asString(); + if(!greetingConfigNode["SourceType"].isNull()) + greetingConfig_.sourceType = greetingConfigNode["SourceType"].asString(); + auto unrecognizingConfigNode = value["UnrecognizingConfig"]; + if(!unrecognizingConfigNode["FinalPrompt"].isNull()) + unrecognizingConfig_.finalPrompt = unrecognizingConfigNode["FinalPrompt"].asString(); + if(!unrecognizingConfigNode["FinalAction"].isNull()) + unrecognizingConfig_.finalAction = unrecognizingConfigNode["FinalAction"].asString(); + if(!unrecognizingConfigNode["FinalActionParams"].isNull()) + unrecognizingConfig_.finalActionParams = unrecognizingConfigNode["FinalActionParams"].asString(); + if(!unrecognizingConfigNode["Threshold"].isNull()) + unrecognizingConfig_.threshold = std::stoi(unrecognizingConfigNode["Threshold"].asString()); + if(!unrecognizingConfigNode["Prompt"].isNull()) + unrecognizingConfig_.prompt = unrecognizingConfigNode["Prompt"].asString(); auto complainingConfigNode = value["ComplainingConfig"]; - if(!complainingConfigNode["Prompt"].isNull()) - complainingConfig_.prompt = complainingConfigNode["Prompt"].asString(); if(!complainingConfigNode["FinalAction"].isNull()) complainingConfig_.finalAction = complainingConfigNode["FinalAction"].asString(); + if(!complainingConfigNode["Prompt"].isNull()) + complainingConfig_.prompt = complainingConfigNode["Prompt"].asString(); if(!complainingConfigNode["FinalActionParams"].isNull()) complainingConfig_.finalActionParams = complainingConfigNode["FinalActionParams"].asString(); auto allUtterances1 = complainingConfigNode["Utterances"]["Utterance"]; for (auto value : allUtterances1) complainingConfig_.utterances1.push_back(value.asString()); - auto silenceTimeoutConfigNode = value["SilenceTimeoutConfig"]; - if(!silenceTimeoutConfigNode["Prompt"].isNull()) - silenceTimeoutConfig_.prompt = silenceTimeoutConfigNode["Prompt"].asString(); - if(!silenceTimeoutConfigNode["Timeout"].isNull()) - silenceTimeoutConfig_.timeout = std::stol(silenceTimeoutConfigNode["Timeout"].asString()); - if(!silenceTimeoutConfigNode["Threshold"].isNull()) - silenceTimeoutConfig_.threshold = std::stoi(silenceTimeoutConfigNode["Threshold"].asString()); - if(!silenceTimeoutConfigNode["FinalPrompt"].isNull()) - silenceTimeoutConfig_.finalPrompt = silenceTimeoutConfigNode["FinalPrompt"].asString(); - if(!silenceTimeoutConfigNode["FinalAction"].isNull()) - silenceTimeoutConfig_.finalAction = silenceTimeoutConfigNode["FinalAction"].asString(); - if(!silenceTimeoutConfigNode["FinalActionParams"].isNull()) - silenceTimeoutConfig_.finalActionParams = silenceTimeoutConfigNode["FinalActionParams"].asString(); - if(!silenceTimeoutConfigNode["SourceType"].isNull()) - silenceTimeoutConfig_.sourceType = silenceTimeoutConfigNode["SourceType"].asString(); - if(!silenceTimeoutConfigNode["IntentTrigger"].isNull()) - silenceTimeoutConfig_.intentTrigger = silenceTimeoutConfigNode["IntentTrigger"].asString(); } diff --git a/voicenavigator/src/model/DescribeRecordingRequest.cc b/voicenavigator/src/model/DescribeRecordingRequest.cc index db73f4ba4..7627c9198 100644 --- a/voicenavigator/src/model/DescribeRecordingRequest.cc +++ b/voicenavigator/src/model/DescribeRecordingRequest.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::VoiceNavigator::Model::DescribeRecordingRequest; - -DescribeRecordingRequest::DescribeRecordingRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeRecording") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeRecordingRequest::~DescribeRecordingRequest() -{} - -std::string DescribeRecordingRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DescribeRecordingRequest; + +DescribeRecordingRequest::DescribeRecordingRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeRecording") { + setMethod(HttpRequest::Method::Get); } -void DescribeRecordingRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +DescribeRecordingRequest::~DescribeRecordingRequest() {} + +std::string DescribeRecordingRequest::getConversationId() const { + return conversationId_; } -std::string DescribeRecordingRequest::getInstanceId()const -{ - return instanceId_; +void DescribeRecordingRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void DescribeRecordingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeRecordingRequest::getInstanceId() const { + return instanceId_; +} + +void DescribeRecordingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/voicenavigator/src/model/DescribeRecordingResult.cc b/voicenavigator/src/model/DescribeRecordingResult.cc index e32cd5ee7..a25d0f031 100644 --- a/voicenavigator/src/model/DescribeRecordingResult.cc +++ b/voicenavigator/src/model/DescribeRecordingResult.cc @@ -39,10 +39,10 @@ void DescribeRecordingResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["FileName"].isNull()) - fileName_ = value["FileName"].asString(); if(!value["FilePath"].isNull()) filePath_ = value["FilePath"].asString(); + if(!value["FileName"].isNull()) + fileName_ = value["FileName"].asString(); } diff --git a/voicenavigator/src/model/DescribeStatisticalDataRequest.cc b/voicenavigator/src/model/DescribeStatisticalDataRequest.cc index ac6736ab2..eebeefafd 100644 --- a/voicenavigator/src/model/DescribeStatisticalDataRequest.cc +++ b/voicenavigator/src/model/DescribeStatisticalDataRequest.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::VoiceNavigator::Model::DescribeStatisticalDataRequest; - -DescribeStatisticalDataRequest::DescribeStatisticalDataRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeStatisticalData") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeStatisticalDataRequest::~DescribeStatisticalDataRequest() -{} - -long DescribeStatisticalDataRequest::getBeginTimeLeftRange()const -{ - return beginTimeLeftRange_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DescribeStatisticalDataRequest; + +DescribeStatisticalDataRequest::DescribeStatisticalDataRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeStatisticalData") { + setMethod(HttpRequest::Method::Get); } -void DescribeStatisticalDataRequest::setBeginTimeLeftRange(long beginTimeLeftRange) -{ - beginTimeLeftRange_ = beginTimeLeftRange; - setParameter("BeginTimeLeftRange", std::to_string(beginTimeLeftRange)); +DescribeStatisticalDataRequest::~DescribeStatisticalDataRequest() {} + +long DescribeStatisticalDataRequest::getBeginTimeLeftRange() const { + return beginTimeLeftRange_; } -std::string DescribeStatisticalDataRequest::getTimeUnit()const -{ - return timeUnit_; +void DescribeStatisticalDataRequest::setBeginTimeLeftRange(long beginTimeLeftRange) { + beginTimeLeftRange_ = beginTimeLeftRange; + setParameter(std::string("BeginTimeLeftRange"), std::to_string(beginTimeLeftRange)); } -void DescribeStatisticalDataRequest::setTimeUnit(const std::string& timeUnit) -{ - timeUnit_ = timeUnit; - setParameter("TimeUnit", timeUnit); +std::string DescribeStatisticalDataRequest::getTimeUnit() const { + return timeUnit_; } -std::string DescribeStatisticalDataRequest::getInstanceId()const -{ - return instanceId_; +void DescribeStatisticalDataRequest::setTimeUnit(const std::string &timeUnit) { + timeUnit_ = timeUnit; + setParameter(std::string("TimeUnit"), timeUnit); } -void DescribeStatisticalDataRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string DescribeStatisticalDataRequest::getInstanceId() const { + return instanceId_; } -long DescribeStatisticalDataRequest::getBeginTimeRightRange()const -{ - return beginTimeRightRange_; +void DescribeStatisticalDataRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeStatisticalDataRequest::setBeginTimeRightRange(long beginTimeRightRange) -{ - beginTimeRightRange_ = beginTimeRightRange; - setParameter("BeginTimeRightRange", std::to_string(beginTimeRightRange)); +long DescribeStatisticalDataRequest::getBeginTimeRightRange() const { + return beginTimeRightRange_; +} + +void DescribeStatisticalDataRequest::setBeginTimeRightRange(long beginTimeRightRange) { + beginTimeRightRange_ = beginTimeRightRange; + setParameter(std::string("BeginTimeRightRange"), std::to_string(beginTimeRightRange)); } diff --git a/voicenavigator/src/model/DescribeStatisticalDataResult.cc b/voicenavigator/src/model/DescribeStatisticalDataResult.cc index 8f7d5eb26..8668cd6d7 100644 --- a/voicenavigator/src/model/DescribeStatisticalDataResult.cc +++ b/voicenavigator/src/model/DescribeStatisticalDataResult.cc @@ -43,34 +43,34 @@ void DescribeStatisticalDataResult::parse(const std::string &payload) for (auto valueStatisticalDataReportsStatisticalDataReport : allStatisticalDataReportsNode) { StatisticalDataReport statisticalDataReportsObject; - if(!valueStatisticalDataReportsStatisticalDataReport["StatisticalDate"].isNull()) - statisticalDataReportsObject.statisticalDate = valueStatisticalDataReportsStatisticalDataReport["StatisticalDate"].asString(); + if(!valueStatisticalDataReportsStatisticalDataReport["KnowledgeHitRate"].isNull()) + statisticalDataReportsObject.knowledgeHitRate = valueStatisticalDataReportsStatisticalDataReport["KnowledgeHitRate"].asString(); if(!valueStatisticalDataReportsStatisticalDataReport["ResolvedQuestionNum"].isNull()) statisticalDataReportsObject.resolvedQuestionNum = std::stoi(valueStatisticalDataReportsStatisticalDataReport["ResolvedQuestionNum"].asString()); - if(!valueStatisticalDataReportsStatisticalDataReport["TotalConversationNum"].isNull()) - statisticalDataReportsObject.totalConversationNum = std::stoi(valueStatisticalDataReportsStatisticalDataReport["TotalConversationNum"].asString()); if(!valueStatisticalDataReportsStatisticalDataReport["ResolutionRate"].isNull()) statisticalDataReportsObject.resolutionRate = valueStatisticalDataReportsStatisticalDataReport["ResolutionRate"].asString(); + if(!valueStatisticalDataReportsStatisticalDataReport["StatisticalDate"].isNull()) + statisticalDataReportsObject.statisticalDate = valueStatisticalDataReportsStatisticalDataReport["StatisticalDate"].asString(); + if(!valueStatisticalDataReportsStatisticalDataReport["TotalConversationNum"].isNull()) + statisticalDataReportsObject.totalConversationNum = std::stoi(valueStatisticalDataReportsStatisticalDataReport["TotalConversationNum"].asString()); if(!valueStatisticalDataReportsStatisticalDataReport["ValidAnswerRate"].isNull()) statisticalDataReportsObject.validAnswerRate = valueStatisticalDataReportsStatisticalDataReport["ValidAnswerRate"].asString(); if(!valueStatisticalDataReportsStatisticalDataReport["DialoguePassRate"].isNull()) statisticalDataReportsObject.dialoguePassRate = valueStatisticalDataReportsStatisticalDataReport["DialoguePassRate"].asString(); - if(!valueStatisticalDataReportsStatisticalDataReport["KnowledgeHitRate"].isNull()) - statisticalDataReportsObject.knowledgeHitRate = valueStatisticalDataReportsStatisticalDataReport["KnowledgeHitRate"].asString(); statisticalDataReports_.push_back(statisticalDataReportsObject); } - if(!value["ResolvedQuestionTotalNum"].isNull()) - resolvedQuestionTotalNum_ = std::stol(value["ResolvedQuestionTotalNum"].asString()); - if(!value["ConversationTotalNum"].isNull()) - conversationTotalNum_ = std::stol(value["ConversationTotalNum"].asString()); - if(!value["TotalResolutionRate"].isNull()) - totalResolutionRate_ = value["TotalResolutionRate"].asString(); - if(!value["TotalValidAnswerRate"].isNull()) - totalValidAnswerRate_ = value["TotalValidAnswerRate"].asString(); if(!value["TotalDialoguePassRate"].isNull()) totalDialoguePassRate_ = value["TotalDialoguePassRate"].asString(); if(!value["TotalKnowledgeHitRate"].isNull()) totalKnowledgeHitRate_ = value["TotalKnowledgeHitRate"].asString(); + if(!value["TotalResolutionRate"].isNull()) + totalResolutionRate_ = value["TotalResolutionRate"].asString(); + if(!value["TotalValidAnswerRate"].isNull()) + totalValidAnswerRate_ = value["TotalValidAnswerRate"].asString(); + if(!value["ResolvedQuestionTotalNum"].isNull()) + resolvedQuestionTotalNum_ = std::stol(value["ResolvedQuestionTotalNum"].asString()); + if(!value["ConversationTotalNum"].isNull()) + conversationTotalNum_ = std::stol(value["ConversationTotalNum"].asString()); } diff --git a/voicenavigator/src/model/DescribeTTSConfigRequest.cc b/voicenavigator/src/model/DescribeTTSConfigRequest.cc index dbf170798..902fce062 100644 --- a/voicenavigator/src/model/DescribeTTSConfigRequest.cc +++ b/voicenavigator/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::VoiceNavigator::Model::DescribeTTSConfigRequest; - -DescribeTTSConfigRequest::DescribeTTSConfigRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeTTSConfig") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeTTSConfigRequest::~DescribeTTSConfigRequest() -{} - -std::string DescribeTTSConfigRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DescribeTTSConfigRequest; + +DescribeTTSConfigRequest::DescribeTTSConfigRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeTTSConfig") { + setMethod(HttpRequest::Method::Get); } -void DescribeTTSConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DescribeTTSConfigRequest::~DescribeTTSConfigRequest() {} + +std::string DescribeTTSConfigRequest::getInstanceId() const { + return instanceId_; } -long DescribeTTSConfigRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void DescribeTTSConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DescribeTTSConfigRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long DescribeTTSConfigRequest::getInstanceOwnerId() const { + return instanceOwnerId_; +} + +void DescribeTTSConfigRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } diff --git a/voicenavigator/src/model/DescribeVoiceConfigRequest.cc b/voicenavigator/src/model/DescribeVoiceConfigRequest.cc deleted file mode 100644 index c31e7d48b..000000000 --- a/voicenavigator/src/model/DescribeVoiceConfigRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::DescribeVoiceConfigRequest; - -DescribeVoiceConfigRequest::DescribeVoiceConfigRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DescribeVoiceConfig") -{ - setMethod(HttpRequest::Method::Get); -} - -DescribeVoiceConfigRequest::~DescribeVoiceConfigRequest() -{} - -std::string DescribeVoiceConfigRequest::getInstanceId()const -{ - return instanceId_; -} - -void DescribeVoiceConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -long DescribeVoiceConfigRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; -} - -void DescribeVoiceConfigRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); -} - diff --git a/voicenavigator/src/model/DescribeVoiceConfigResult.cc b/voicenavigator/src/model/DescribeVoiceConfigResult.cc deleted file mode 100644 index b43a05c40..000000000 --- a/voicenavigator/src/model/DescribeVoiceConfigResult.cc +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::VoiceNavigator; -using namespace AlibabaCloud::VoiceNavigator::Model; - -DescribeVoiceConfigResult::DescribeVoiceConfigResult() : - ServiceResult() -{} - -DescribeVoiceConfigResult::DescribeVoiceConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeVoiceConfigResult::~DescribeVoiceConfigResult() -{} - -void DescribeVoiceConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allApesIpListNode = value["ApesIpList"]["Ip"]; - for (auto valueApesIpListIp : allApesIpListNode) - { - Ip apesIpListObject; - if(!valueApesIpListIp["Ip"].isNull()) - apesIpListObject.ip = valueApesIpListIp["Ip"].asString(); - apesIpList_.push_back(apesIpListObject); - } - if(!value["SpeechNoiseThreshold"].isNull()) - speechNoiseThreshold_ = value["SpeechNoiseThreshold"].asString(); - if(!value["AsrCustomizationId"].isNull()) - asrCustomizationId_ = value["AsrCustomizationId"].asString(); - if(!value["Voice"].isNull()) - voice_ = value["Voice"].asString(); - if(!value["AsrClassVocabularyId"].isNull()) - asrClassVocabularyId_ = value["AsrClassVocabularyId"].asString(); - if(!value["AsrVocabularyId"].isNull()) - asrVocabularyId_ = value["AsrVocabularyId"].asString(); - if(!value["AsrAcousticModelId"].isNull()) - asrAcousticModelId_ = value["AsrAcousticModelId"].asString(); - if(!value["Volume"].isNull()) - volume_ = std::stoi(value["Volume"].asString()); - if(!value["SpeechRate"].isNull()) - speechRate_ = std::stoi(value["SpeechRate"].asString()); - -} - -std::string DescribeVoiceConfigResult::getAsrVocabularyId()const -{ - return asrVocabularyId_; -} - -std::string DescribeVoiceConfigResult::getAsrCustomizationId()const -{ - return asrCustomizationId_; -} - -int DescribeVoiceConfigResult::getVolume()const -{ - return volume_; -} - -std::vector DescribeVoiceConfigResult::getApesIpList()const -{ - return apesIpList_; -} - -std::string DescribeVoiceConfigResult::getAsrAcousticModelId()const -{ - return asrAcousticModelId_; -} - -std::string DescribeVoiceConfigResult::getVoice()const -{ - return voice_; -} - -std::string DescribeVoiceConfigResult::getAsrClassVocabularyId()const -{ - return asrClassVocabularyId_; -} - -int DescribeVoiceConfigResult::getSpeechRate()const -{ - return speechRate_; -} - -std::string DescribeVoiceConfigResult::getSpeechNoiseThreshold()const -{ - return speechNoiseThreshold_; -} - diff --git a/voicenavigator/src/model/DialogueRequest.cc b/voicenavigator/src/model/DialogueRequest.cc index aef45d3e1..b4ecebf1a 100644 --- a/voicenavigator/src/model/DialogueRequest.cc +++ b/voicenavigator/src/model/DialogueRequest.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::VoiceNavigator::Model::DialogueRequest; - -DialogueRequest::DialogueRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "Dialogue") -{ - setMethod(HttpRequest::Method::Post); -} - -DialogueRequest::~DialogueRequest() -{} - -std::string DialogueRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DialogueRequest; + +DialogueRequest::DialogueRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "Dialogue") { + setMethod(HttpRequest::Method::Post); } -void DialogueRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +DialogueRequest::~DialogueRequest() {} + +std::string DialogueRequest::getConversationId() const { + return conversationId_; } -std::string DialogueRequest::getCallingNumber()const -{ - return callingNumber_; +void DialogueRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -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::getCalledNumber()const -{ - return calledNumber_; +void DialogueRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void DialogueRequest::setCalledNumber(const std::string& calledNumber) -{ - calledNumber_ = calledNumber; - setParameter("CalledNumber", calledNumber); +std::string DialogueRequest::getCalledNumber() const { + return calledNumber_; } -std::string DialogueRequest::getAdditionalContext()const -{ - return additionalContext_; +void DialogueRequest::setCalledNumber(const std::string &calledNumber) { + calledNumber_ = calledNumber; + setParameter(std::string("CalledNumber"), calledNumber); } -void DialogueRequest::setAdditionalContext(const std::string& additionalContext) -{ - additionalContext_ = additionalContext; - setParameter("AdditionalContext", additionalContext); +std::string DialogueRequest::getAdditionalContext() const { + return additionalContext_; } -long DialogueRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void DialogueRequest::setAdditionalContext(const std::string &additionalContext) { + additionalContext_ = additionalContext; + setParameter(std::string("AdditionalContext"), additionalContext); } -void DialogueRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long DialogueRequest::getInstanceOwnerId() const { + return instanceOwnerId_; } -std::string DialogueRequest::getUtterance()const -{ - return utterance_; +void DialogueRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } -void DialogueRequest::setUtterance(const std::string& utterance) -{ - utterance_ = utterance; - setParameter("Utterance", utterance); +std::string DialogueRequest::getUtterance() const { + return utterance_; +} + +void DialogueRequest::setUtterance(const std::string &utterance) { + utterance_ = utterance; + setParameter(std::string("Utterance"), utterance); } diff --git a/voicenavigator/src/model/DisableInstanceRequest.cc b/voicenavigator/src/model/DisableInstanceRequest.cc index fc1977c64..040de760e 100644 --- a/voicenavigator/src/model/DisableInstanceRequest.cc +++ b/voicenavigator/src/model/DisableInstanceRequest.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::VoiceNavigator::Model::DisableInstanceRequest; - -DisableInstanceRequest::DisableInstanceRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DisableInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableInstanceRequest::~DisableInstanceRequest() -{} - -std::string DisableInstanceRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::DisableInstanceRequest; + +DisableInstanceRequest::DisableInstanceRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "DisableInstance") { + setMethod(HttpRequest::Method::Post); } -void DisableInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +DisableInstanceRequest::~DisableInstanceRequest() {} + +std::string DisableInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void DisableInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/voicenavigator/src/model/DisableSandBoxWhileListRequest.cc b/voicenavigator/src/model/DisableSandBoxWhileListRequest.cc deleted file mode 100644 index 3eb61ccf6..000000000 --- a/voicenavigator/src/model/DisableSandBoxWhileListRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::DisableSandBoxWhileListRequest; - -DisableSandBoxWhileListRequest::DisableSandBoxWhileListRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "DisableSandBoxWhileList") -{ - setMethod(HttpRequest::Method::Post); -} - -DisableSandBoxWhileListRequest::~DisableSandBoxWhileListRequest() -{} - -std::string DisableSandBoxWhileListRequest::getPhoneNumber()const -{ - return phoneNumber_; -} - -void DisableSandBoxWhileListRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); -} - -std::string DisableSandBoxWhileListRequest::getInstanceId()const -{ - return instanceId_; -} - -void DisableSandBoxWhileListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/voicenavigator/src/model/DisableSandBoxWhileListResult.cc b/voicenavigator/src/model/DisableSandBoxWhileListResult.cc deleted file mode 100644 index 4fe1c3105..000000000 --- a/voicenavigator/src/model/DisableSandBoxWhileListResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::VoiceNavigator; -using namespace AlibabaCloud::VoiceNavigator::Model; - -DisableSandBoxWhileListResult::DisableSandBoxWhileListResult() : - ServiceResult() -{} - -DisableSandBoxWhileListResult::DisableSandBoxWhileListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DisableSandBoxWhileListResult::~DisableSandBoxWhileListResult() -{} - -void DisableSandBoxWhileListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Uuid"].isNull()) - uuid_ = value["Uuid"].asString(); - if(!value["PhoneNumber"].isNull()) - phoneNumber_ = value["PhoneNumber"].asString(); - -} - -std::string DisableSandBoxWhileListResult::getUuid()const -{ - return uuid_; -} - -std::string DisableSandBoxWhileListResult::getPhoneNumber()const -{ - return phoneNumber_; -} - diff --git a/voicenavigator/src/model/EnableInstanceRequest.cc b/voicenavigator/src/model/EnableInstanceRequest.cc index d42c57c7f..c43007e48 100644 --- a/voicenavigator/src/model/EnableInstanceRequest.cc +++ b/voicenavigator/src/model/EnableInstanceRequest.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::VoiceNavigator::Model::EnableInstanceRequest; - -EnableInstanceRequest::EnableInstanceRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "EnableInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableInstanceRequest::~EnableInstanceRequest() -{} - -std::string EnableInstanceRequest::getInstanceId()const -{ - return instanceId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::EnableInstanceRequest; + +EnableInstanceRequest::EnableInstanceRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "EnableInstance") { + setMethod(HttpRequest::Method::Post); } -void EnableInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +EnableInstanceRequest::~EnableInstanceRequest() {} + +std::string EnableInstanceRequest::getInstanceId() const { + return instanceId_; +} + +void EnableInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/voicenavigator/src/model/EnableSandBoxWhileListRequest.cc b/voicenavigator/src/model/EnableSandBoxWhileListRequest.cc deleted file mode 100644 index 8fe092aaa..000000000 --- a/voicenavigator/src/model/EnableSandBoxWhileListRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::EnableSandBoxWhileListRequest; - -EnableSandBoxWhileListRequest::EnableSandBoxWhileListRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "EnableSandBoxWhileList") -{ - setMethod(HttpRequest::Method::Post); -} - -EnableSandBoxWhileListRequest::~EnableSandBoxWhileListRequest() -{} - -std::string EnableSandBoxWhileListRequest::getPhoneNumber()const -{ - return phoneNumber_; -} - -void EnableSandBoxWhileListRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); -} - -std::string EnableSandBoxWhileListRequest::getInstanceId()const -{ - return instanceId_; -} - -void EnableSandBoxWhileListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/voicenavigator/src/model/EnableSandBoxWhileListResult.cc b/voicenavigator/src/model/EnableSandBoxWhileListResult.cc deleted file mode 100644 index 031070659..000000000 --- a/voicenavigator/src/model/EnableSandBoxWhileListResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::VoiceNavigator; -using namespace AlibabaCloud::VoiceNavigator::Model; - -EnableSandBoxWhileListResult::EnableSandBoxWhileListResult() : - ServiceResult() -{} - -EnableSandBoxWhileListResult::EnableSandBoxWhileListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -EnableSandBoxWhileListResult::~EnableSandBoxWhileListResult() -{} - -void EnableSandBoxWhileListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Uuid"].isNull()) - uuid_ = value["Uuid"].asString(); - if(!value["PhoneNumber"].isNull()) - phoneNumber_ = value["PhoneNumber"].asString(); - -} - -std::string EnableSandBoxWhileListResult::getUuid()const -{ - return uuid_; -} - -std::string EnableSandBoxWhileListResult::getPhoneNumber()const -{ - return phoneNumber_; -} - diff --git a/voicenavigator/src/model/EndDialogueRequest.cc b/voicenavigator/src/model/EndDialogueRequest.cc index 7b78ca9fd..b13cd872b 100644 --- a/voicenavigator/src/model/EndDialogueRequest.cc +++ b/voicenavigator/src/model/EndDialogueRequest.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::VoiceNavigator::Model::EndDialogueRequest; - -EndDialogueRequest::EndDialogueRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "EndDialogue") -{ - setMethod(HttpRequest::Method::Post); -} - -EndDialogueRequest::~EndDialogueRequest() -{} - -std::string EndDialogueRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::EndDialogueRequest; + +EndDialogueRequest::EndDialogueRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "EndDialogue") { + setMethod(HttpRequest::Method::Post); } -void EndDialogueRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +EndDialogueRequest::~EndDialogueRequest() {} + +std::string EndDialogueRequest::getConversationId() const { + return conversationId_; } -std::string EndDialogueRequest::getHangUpParams()const -{ - return hangUpParams_; +void EndDialogueRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void EndDialogueRequest::setHangUpParams(const std::string& hangUpParams) -{ - hangUpParams_ = hangUpParams; - setParameter("HangUpParams", hangUpParams); +std::string EndDialogueRequest::getHangUpParams() const { + return hangUpParams_; } -std::string EndDialogueRequest::getInstanceId()const -{ - return instanceId_; +void EndDialogueRequest::setHangUpParams(const std::string &hangUpParams) { + hangUpParams_ = hangUpParams; + setParameter(std::string("HangUpParams"), hangUpParams); } -void EndDialogueRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string EndDialogueRequest::getInstanceId() const { + return instanceId_; } -long EndDialogueRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void EndDialogueRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void EndDialogueRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long EndDialogueRequest::getInstanceOwnerId() const { + return instanceOwnerId_; +} + +void EndDialogueRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } diff --git a/voicenavigator/src/model/ExportConversationDetailsRequest.cc b/voicenavigator/src/model/ExportConversationDetailsRequest.cc index 73a04a7b3..dd1fd6799 100644 --- a/voicenavigator/src/model/ExportConversationDetailsRequest.cc +++ b/voicenavigator/src/model/ExportConversationDetailsRequest.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::VoiceNavigator::Model::ExportConversationDetailsRequest; - -ExportConversationDetailsRequest::ExportConversationDetailsRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ExportConversationDetails") -{ - setMethod(HttpRequest::Method::Post); -} - -ExportConversationDetailsRequest::~ExportConversationDetailsRequest() -{} - -long ExportConversationDetailsRequest::getBeginTimeLeftRange()const -{ - return beginTimeLeftRange_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ExportConversationDetailsRequest; + +ExportConversationDetailsRequest::ExportConversationDetailsRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "ExportConversationDetails") { + setMethod(HttpRequest::Method::Post); } -void ExportConversationDetailsRequest::setBeginTimeLeftRange(long beginTimeLeftRange) -{ - beginTimeLeftRange_ = beginTimeLeftRange; - setParameter("BeginTimeLeftRange", std::to_string(beginTimeLeftRange)); +ExportConversationDetailsRequest::~ExportConversationDetailsRequest() {} + +long ExportConversationDetailsRequest::getBeginTimeLeftRange() const { + return beginTimeLeftRange_; } -std::string ExportConversationDetailsRequest::getCallingNumber()const -{ - return callingNumber_; +void ExportConversationDetailsRequest::setBeginTimeLeftRange(long beginTimeLeftRange) { + beginTimeLeftRange_ = beginTimeLeftRange; + setParameter(std::string("BeginTimeLeftRange"), std::to_string(beginTimeLeftRange)); } -void ExportConversationDetailsRequest::setCallingNumber(const std::string& callingNumber) -{ - callingNumber_ = callingNumber; - setParameter("CallingNumber", callingNumber); +std::string ExportConversationDetailsRequest::getCallingNumber() const { + return callingNumber_; } -std::string ExportConversationDetailsRequest::getInstanceId()const -{ - return instanceId_; +void ExportConversationDetailsRequest::setCallingNumber(const std::string &callingNumber) { + callingNumber_ = callingNumber; + setParameter(std::string("CallingNumber"), callingNumber); } -void ExportConversationDetailsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ExportConversationDetailsRequest::getInstanceId() const { + return instanceId_; } -long ExportConversationDetailsRequest::getBeginTimeRightRange()const -{ - return beginTimeRightRange_; +void ExportConversationDetailsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ExportConversationDetailsRequest::setBeginTimeRightRange(long beginTimeRightRange) -{ - beginTimeRightRange_ = beginTimeRightRange; - setParameter("BeginTimeRightRange", std::to_string(beginTimeRightRange)); +long ExportConversationDetailsRequest::getBeginTimeRightRange() const { + return beginTimeRightRange_; } -std::vector ExportConversationDetailsRequest::getOptions()const -{ - return options_; +void ExportConversationDetailsRequest::setBeginTimeRightRange(long beginTimeRightRange) { + beginTimeRightRange_ = beginTimeRightRange; + setParameter(std::string("BeginTimeRightRange"), std::to_string(beginTimeRightRange)); } -void ExportConversationDetailsRequest::setOptions(const std::vector& options) -{ - options_ = options; - for(int dep1 = 0; dep1!= options.size(); dep1++) { - setParameter("Options."+ std::to_string(dep1), options.at(dep1)); - } +std::vector ExportConversationDetailsRequest::getOptions() const { + return options_; +} + +void ExportConversationDetailsRequest::setOptions(const std::vector &options) { + options_ = options; } diff --git a/voicenavigator/src/model/ExportStatisticalDataRequest.cc b/voicenavigator/src/model/ExportStatisticalDataRequest.cc index b26cb89e1..a225134a1 100644 --- a/voicenavigator/src/model/ExportStatisticalDataRequest.cc +++ b/voicenavigator/src/model/ExportStatisticalDataRequest.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::VoiceNavigator::Model::ExportStatisticalDataRequest; - -ExportStatisticalDataRequest::ExportStatisticalDataRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ExportStatisticalData") -{ - setMethod(HttpRequest::Method::Post); -} - -ExportStatisticalDataRequest::~ExportStatisticalDataRequest() -{} - -long ExportStatisticalDataRequest::getBeginTimeLeftRange()const -{ - return beginTimeLeftRange_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ExportStatisticalDataRequest; + +ExportStatisticalDataRequest::ExportStatisticalDataRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "ExportStatisticalData") { + setMethod(HttpRequest::Method::Post); } -void ExportStatisticalDataRequest::setBeginTimeLeftRange(long beginTimeLeftRange) -{ - beginTimeLeftRange_ = beginTimeLeftRange; - setParameter("BeginTimeLeftRange", std::to_string(beginTimeLeftRange)); +ExportStatisticalDataRequest::~ExportStatisticalDataRequest() {} + +long ExportStatisticalDataRequest::getBeginTimeLeftRange() const { + return beginTimeLeftRange_; } -std::string ExportStatisticalDataRequest::getExportType()const -{ - return exportType_; +void ExportStatisticalDataRequest::setBeginTimeLeftRange(long beginTimeLeftRange) { + beginTimeLeftRange_ = beginTimeLeftRange; + setParameter(std::string("BeginTimeLeftRange"), std::to_string(beginTimeLeftRange)); } -void ExportStatisticalDataRequest::setExportType(const std::string& exportType) -{ - exportType_ = exportType; - setParameter("ExportType", exportType); +std::string ExportStatisticalDataRequest::getExportType() const { + return exportType_; } -std::string ExportStatisticalDataRequest::getTimeUnit()const -{ - return timeUnit_; +void ExportStatisticalDataRequest::setExportType(const std::string &exportType) { + exportType_ = exportType; + setParameter(std::string("ExportType"), exportType); } -void ExportStatisticalDataRequest::setTimeUnit(const std::string& timeUnit) -{ - timeUnit_ = timeUnit; - setParameter("TimeUnit", timeUnit); +std::string ExportStatisticalDataRequest::getTimeUnit() const { + return timeUnit_; } -std::string ExportStatisticalDataRequest::getInstanceId()const -{ - return instanceId_; +void ExportStatisticalDataRequest::setTimeUnit(const std::string &timeUnit) { + timeUnit_ = timeUnit; + setParameter(std::string("TimeUnit"), timeUnit); } -void ExportStatisticalDataRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ExportStatisticalDataRequest::getInstanceId() const { + return instanceId_; } -long ExportStatisticalDataRequest::getBeginTimeRightRange()const -{ - return beginTimeRightRange_; +void ExportStatisticalDataRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ExportStatisticalDataRequest::setBeginTimeRightRange(long beginTimeRightRange) -{ - beginTimeRightRange_ = beginTimeRightRange; - setParameter("BeginTimeRightRange", std::to_string(beginTimeRightRange)); +long ExportStatisticalDataRequest::getBeginTimeRightRange() const { + return beginTimeRightRange_; +} + +void ExportStatisticalDataRequest::setBeginTimeRightRange(long beginTimeRightRange) { + beginTimeRightRange_ = beginTimeRightRange; + setParameter(std::string("BeginTimeRightRange"), std::to_string(beginTimeRightRange)); } diff --git a/voicenavigator/src/model/GenerateUploadUrlRequest.cc b/voicenavigator/src/model/GenerateUploadUrlRequest.cc new file mode 100644 index 000000000..bfa8ece95 --- /dev/null +++ b/voicenavigator/src/model/GenerateUploadUrlRequest.cc @@ -0,0 +1,252 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::GenerateUploadUrlRequest; + +GenerateUploadUrlRequest::GenerateUploadUrlRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "GenerateUploadUrl") { + setMethod(HttpRequest::Method::Post); +} + +GenerateUploadUrlRequest::~GenerateUploadUrlRequest() {} + +long GenerateUploadUrlRequest::getCallerParentId() const { + return callerParentId_; +} + +void GenerateUploadUrlRequest::setCallerParentId(long callerParentId) { + callerParentId_ = callerParentId; + setBodyParameter(std::string("CallerParentId"), std::to_string(callerParentId)); +} + +bool GenerateUploadUrlRequest::getSecurityTransport() const { + return securityTransport_; +} + +void GenerateUploadUrlRequest::setSecurityTransport(bool securityTransport) { + securityTransport_ = securityTransport; + setBodyParameter(std::string("SecurityTransport"), securityTransport ? "true" : "false"); +} + +bool GenerateUploadUrlRequest::getProxyOriginalSecurityTransport() const { + return proxyOriginalSecurityTransport_; +} + +void GenerateUploadUrlRequest::setProxyOriginalSecurityTransport(bool proxyOriginalSecurityTransport) { + proxyOriginalSecurityTransport_ = proxyOriginalSecurityTransport; + setBodyParameter(std::string("ProxyOriginalSecurityTransport"), proxyOriginalSecurityTransport ? "true" : "false"); +} + +long GenerateUploadUrlRequest::getUserId() const { + return userId_; +} + +void GenerateUploadUrlRequest::setUserId(long userId) { + userId_ = userId; + setBodyParameter(std::string("UserId"), std::to_string(userId)); +} + +std::string GenerateUploadUrlRequest::getCallerType() const { + return callerType_; +} + +void GenerateUploadUrlRequest::setCallerType(const std::string &callerType) { + callerType_ = callerType; + setBodyParameter(std::string("CallerType"), callerType); +} + +std::string GenerateUploadUrlRequest::getCallerIp() const { + return callerIp_; +} + +void GenerateUploadUrlRequest::setCallerIp(const std::string &callerIp) { + callerIp_ = callerIp; + setBodyParameter(std::string("CallerIp"), callerIp); +} + +std::string GenerateUploadUrlRequest::getAccessKeyId() const { + return accessKeyId_; +} + +void GenerateUploadUrlRequest::setAccessKeyId(const std::string &accessKeyId) { + accessKeyId_ = accessKeyId; + setBodyParameter(std::string("AccessKeyId"), accessKeyId); +} + +std::string GenerateUploadUrlRequest::getSecurityToken() const { + return securityToken_; +} + +void GenerateUploadUrlRequest::setSecurityToken(const std::string &securityToken) { + securityToken_ = securityToken; + setBodyParameter(std::string("SecurityToken"), securityToken); +} + +long GenerateUploadUrlRequest::getInstanceOwnerId() const { + return instanceOwnerId_; +} + +void GenerateUploadUrlRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setBodyParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); +} + +std::string GenerateUploadUrlRequest::getClientIp() const { + return clientIp_; +} + +void GenerateUploadUrlRequest::setClientIp(const std::string &clientIp) { + clientIp_ = clientIp; + setBodyParameter(std::string("ClientIp"), clientIp); +} + +long GenerateUploadUrlRequest::getTenantId() const { + return tenantId_; +} + +void GenerateUploadUrlRequest::setTenantId(long tenantId) { + tenantId_ = tenantId; + setBodyParameter(std::string("TenantId"), std::to_string(tenantId)); +} + +std::string GenerateUploadUrlRequest::getProxyOriginalSourceIp() const { + return proxyOriginalSourceIp_; +} + +void GenerateUploadUrlRequest::setProxyOriginalSourceIp(const std::string &proxyOriginalSourceIp) { + proxyOriginalSourceIp_ = proxyOriginalSourceIp; + setBodyParameter(std::string("ProxyOriginalSourceIp"), proxyOriginalSourceIp); +} + +std::string GenerateUploadUrlRequest::getKey() const { + return key_; +} + +void GenerateUploadUrlRequest::setKey(const std::string &key) { + key_ = key; + setBodyParameter(std::string("Key"), key); +} + +long GenerateUploadUrlRequest::getCallerUid() const { + return callerUid_; +} + +void GenerateUploadUrlRequest::setCallerUid(long callerUid) { + callerUid_ = callerUid; + setBodyParameter(std::string("CallerUid"), std::to_string(callerUid)); +} + +std::string GenerateUploadUrlRequest::getCallerBid() const { + return callerBid_; +} + +void GenerateUploadUrlRequest::setCallerBid(const std::string &callerBid) { + callerBid_ = callerBid; + setBodyParameter(std::string("CallerBid"), callerBid); +} + +long GenerateUploadUrlRequest::getXspaceTenantBuId() const { + return xspaceTenantBuId_; +} + +void GenerateUploadUrlRequest::setXspaceTenantBuId(long xspaceTenantBuId) { + xspaceTenantBuId_ = xspaceTenantBuId; + setBodyParameter(std::string("XspaceTenantBuId"), std::to_string(xspaceTenantBuId)); +} + +bool GenerateUploadUrlRequest::getMfaPresent() const { + return mfaPresent_; +} + +void GenerateUploadUrlRequest::setMfaPresent(bool mfaPresent) { + mfaPresent_ = mfaPresent; + setBodyParameter(std::string("MfaPresent"), mfaPresent ? "true" : "false"); +} + +int GenerateUploadUrlRequest::getEnvironment() const { + return environment_; +} + +void GenerateUploadUrlRequest::setEnvironment(int environment) { + environment_ = environment; + setBodyParameter(std::string("Environment"), std::to_string(environment)); +} + +std::string GenerateUploadUrlRequest::getFileName() const { + return fileName_; +} + +void GenerateUploadUrlRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setBodyParameter(std::string("FileName"), fileName); +} + +std::string GenerateUploadUrlRequest::getInstanceId() const { + return instanceId_; +} + +void GenerateUploadUrlRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setBodyParameter(std::string("InstanceId"), instanceId); +} + +std::string GenerateUploadUrlRequest::getRequestId() const { + return requestId_; +} + +void GenerateUploadUrlRequest::setRequestId(const std::string &requestId) { + requestId_ = requestId; + setBodyParameter(std::string("RequestId"), requestId); +} + +long GenerateUploadUrlRequest::getXspaceServicerId() const { + return xspaceServicerId_; +} + +void GenerateUploadUrlRequest::setXspaceServicerId(long xspaceServicerId) { + xspaceServicerId_ = xspaceServicerId; + setBodyParameter(std::string("XspaceServicerId"), std::to_string(xspaceServicerId)); +} + +std::string GenerateUploadUrlRequest::getTenantName() const { + return tenantName_; +} + +void GenerateUploadUrlRequest::setTenantName(const std::string &tenantName) { + tenantName_ = tenantName; + setBodyParameter(std::string("TenantName"), tenantName); +} + +bool GenerateUploadUrlRequest::getProxyTrustTransportInfo() const { + return proxyTrustTransportInfo_; +} + +void GenerateUploadUrlRequest::setProxyTrustTransportInfo(bool proxyTrustTransportInfo) { + proxyTrustTransportInfo_ = proxyTrustTransportInfo; + setBodyParameter(std::string("ProxyTrustTransportInfo"), proxyTrustTransportInfo ? "true" : "false"); +} + +std::string GenerateUploadUrlRequest::getUserName() const { + return userName_; +} + +void GenerateUploadUrlRequest::setUserName(const std::string &userName) { + userName_ = userName; + setBodyParameter(std::string("UserName"), userName); +} + diff --git a/voicenavigator/src/model/GenerateUploadUrlResult.cc b/voicenavigator/src/model/GenerateUploadUrlResult.cc new file mode 100644 index 000000000..6b369aad4 --- /dev/null +++ b/voicenavigator/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::VoiceNavigator; +using namespace AlibabaCloud::VoiceNavigator::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/voicenavigator/src/model/GetAsrConfigRequest.cc b/voicenavigator/src/model/GetAsrConfigRequest.cc new file mode 100644 index 000000000..175381141 --- /dev/null +++ b/voicenavigator/src/model/GetAsrConfigRequest.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::VoiceNavigator::Model::GetAsrConfigRequest; + +GetAsrConfigRequest::GetAsrConfigRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "GetAsrConfig") { + setMethod(HttpRequest::Method::Post); +} + +GetAsrConfigRequest::~GetAsrConfigRequest() {} + +std::string GetAsrConfigRequest::getEntryId() const { + return entryId_; +} + +void GetAsrConfigRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); +} + +int GetAsrConfigRequest::getConfigLevel() const { + return configLevel_; +} + +void GetAsrConfigRequest::setConfigLevel(int configLevel) { + configLevel_ = configLevel; + setParameter(std::string("ConfigLevel"), std::to_string(configLevel)); +} + diff --git a/voicenavigator/src/model/GetInstanceConfigResult.cc b/voicenavigator/src/model/GetAsrConfigResult.cc similarity index 58% rename from voicenavigator/src/model/GetInstanceConfigResult.cc rename to voicenavigator/src/model/GetAsrConfigResult.cc index 482c8a849..b1a01edbb 100644 --- a/voicenavigator/src/model/GetInstanceConfigResult.cc +++ b/voicenavigator/src/model/GetAsrConfigResult.cc @@ -14,37 +14,40 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::VoiceNavigator; using namespace AlibabaCloud::VoiceNavigator::Model; -GetInstanceConfigResult::GetInstanceConfigResult() : +GetAsrConfigResult::GetAsrConfigResult() : ServiceResult() {} -GetInstanceConfigResult::GetInstanceConfigResult(const std::string &payload) : +GetAsrConfigResult::GetAsrConfigResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetInstanceConfigResult::~GetInstanceConfigResult() +GetAsrConfigResult::~GetAsrConfigResult() {} -void GetInstanceConfigResult::parse(const std::string &payload) +void GetAsrConfigResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto dataNode = value["Data"]; - auto instanceConfigNode = dataNode["InstanceConfig"]; - if(!instanceConfigNode["MiniPlaybackSystemSwitch"].isNull()) - data_.instanceConfig.miniPlaybackSystemSwitch = instanceConfigNode["MiniPlaybackSystemSwitch"].asString() == "true"; - if(!instanceConfigNode["NewBargeInSystemSwitch"].isNull()) - data_.instanceConfig.newBargeInSystemSwitch = instanceConfigNode["NewBargeInSystemSwitch"].asString() == "true"; + if(!dataNode["AsrVocabularyId"].isNull()) + data_.asrVocabularyId = dataNode["AsrVocabularyId"].asString(); + if(!dataNode["AsrCustomizationId"].isNull()) + data_.asrCustomizationId = dataNode["AsrCustomizationId"].asString(); + if(!dataNode["AsrAcousticModelId"].isNull()) + data_.asrAcousticModelId = dataNode["AsrAcousticModelId"].asString(); + if(!dataNode["AsrClassVocabularyId"].isNull()) + data_.asrClassVocabularyId = dataNode["AsrClassVocabularyId"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["HttpStatusCode"].isNull()) @@ -56,27 +59,27 @@ void GetInstanceConfigResult::parse(const std::string &payload) } -int GetInstanceConfigResult::getHttpStatusCode()const +int GetAsrConfigResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string GetInstanceConfigResult::getErrorMsg()const +std::string GetAsrConfigResult::getErrorMsg()const { return errorMsg_; } -GetInstanceConfigResult::Data GetInstanceConfigResult::getData()const +GetAsrConfigResult::Data GetAsrConfigResult::getData()const { return data_; } -std::string GetInstanceConfigResult::getCode()const +std::string GetAsrConfigResult::getCode()const { return code_; } -bool GetInstanceConfigResult::getSuccess()const +bool GetAsrConfigResult::getSuccess()const { return success_; } diff --git a/voicenavigator/src/model/GetInstanceConfigRequest.cc b/voicenavigator/src/model/GetInstanceConfigRequest.cc deleted file mode 100644 index 0094c21a5..000000000 --- a/voicenavigator/src/model/GetInstanceConfigRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::GetInstanceConfigRequest; - -GetInstanceConfigRequest::GetInstanceConfigRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "GetInstanceConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -GetInstanceConfigRequest::~GetInstanceConfigRequest() -{} - -std::string GetInstanceConfigRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetInstanceConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/voicenavigator/src/model/GetNewBargeInSwitchRequest.cc b/voicenavigator/src/model/GetNewBargeInSwitchRequest.cc deleted file mode 100644 index cf3d6ca1a..000000000 --- a/voicenavigator/src/model/GetNewBargeInSwitchRequest.cc +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::GetNewBargeInSwitchRequest; - -GetNewBargeInSwitchRequest::GetNewBargeInSwitchRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "GetNewBargeInSwitch") -{ - setMethod(HttpRequest::Method::Post); -} - -GetNewBargeInSwitchRequest::~GetNewBargeInSwitchRequest() -{} - -std::string GetNewBargeInSwitchRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetNewBargeInSwitchRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - diff --git a/voicenavigator/src/model/ListChatbotInstancesRequest.cc b/voicenavigator/src/model/ListChatbotInstancesRequest.cc index 3f23c4900..5a3f57bf8 100644 --- a/voicenavigator/src/model/ListChatbotInstancesRequest.cc +++ b/voicenavigator/src/model/ListChatbotInstancesRequest.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::VoiceNavigator::Model::ListChatbotInstancesRequest; - -ListChatbotInstancesRequest::ListChatbotInstancesRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ListChatbotInstances") -{ - setMethod(HttpRequest::Method::Get); -} - -ListChatbotInstancesRequest::~ListChatbotInstancesRequest() -{} - -int ListChatbotInstancesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ListChatbotInstancesRequest; + +ListChatbotInstancesRequest::ListChatbotInstancesRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "ListChatbotInstances") { + setMethod(HttpRequest::Method::Get); } -void ListChatbotInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListChatbotInstancesRequest::~ListChatbotInstancesRequest() {} + +int ListChatbotInstancesRequest::getPageNumber() const { + return pageNumber_; } -std::string ListChatbotInstancesRequest::getInstanceId()const -{ - return instanceId_; +void ListChatbotInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListChatbotInstancesRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListChatbotInstancesRequest::getInstanceId() const { + return instanceId_; } -int ListChatbotInstancesRequest::getPageSize()const -{ - return pageSize_; +void ListChatbotInstancesRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -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/voicenavigator/src/model/ListChatbotInstancesResult.cc b/voicenavigator/src/model/ListChatbotInstancesResult.cc index 914ec499d..8b25f9352 100644 --- a/voicenavigator/src/model/ListChatbotInstancesResult.cc +++ b/voicenavigator/src/model/ListChatbotInstancesResult.cc @@ -43,28 +43,28 @@ void ListChatbotInstancesResult::parse(const std::string &payload) for (auto valueBotsBot : allBotsNode) { Bot botsObject; - if(!valueBotsBot["InstanceId"].isNull()) - botsObject.instanceId = valueBotsBot["InstanceId"].asString(); - if(!valueBotsBot["TimeZone"].isNull()) - botsObject.timeZone = valueBotsBot["TimeZone"].asString(); - if(!valueBotsBot["Avatar"].isNull()) - botsObject.avatar = valueBotsBot["Avatar"].asString(); - if(!valueBotsBot["LanguageCode"].isNull()) - botsObject.languageCode = valueBotsBot["LanguageCode"].asString(); - if(!valueBotsBot["Name"].isNull()) - botsObject.name = valueBotsBot["Name"].asString(); if(!valueBotsBot["Introduction"].isNull()) botsObject.introduction = valueBotsBot["Introduction"].asString(); + if(!valueBotsBot["Avatar"].isNull()) + botsObject.avatar = valueBotsBot["Avatar"].asString(); + if(!valueBotsBot["TimeZone"].isNull()) + botsObject.timeZone = valueBotsBot["TimeZone"].asString(); if(!valueBotsBot["CreateTime"].isNull()) botsObject.createTime = valueBotsBot["CreateTime"].asString(); + if(!valueBotsBot["LanguageCode"].isNull()) + botsObject.languageCode = valueBotsBot["LanguageCode"].asString(); + if(!valueBotsBot["InstanceId"].isNull()) + botsObject.instanceId = valueBotsBot["InstanceId"].asString(); + if(!valueBotsBot["Name"].isNull()) + botsObject.name = valueBotsBot["Name"].asString(); bots_.push_back(botsObject); } - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); if(!value["TotalCount"].isNull()) totalCount_ = std::stol(value["TotalCount"].asString()); if(!value["PageSize"].isNull()) pageSize_ = std::stol(value["PageSize"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/voicenavigator/src/model/ListConversationDetailsRequest.cc b/voicenavigator/src/model/ListConversationDetailsRequest.cc index 38da971c0..57b799071 100644 --- a/voicenavigator/src/model/ListConversationDetailsRequest.cc +++ b/voicenavigator/src/model/ListConversationDetailsRequest.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::VoiceNavigator::Model::ListConversationDetailsRequest; - -ListConversationDetailsRequest::ListConversationDetailsRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ListConversationDetails") -{ - setMethod(HttpRequest::Method::Get); -} - -ListConversationDetailsRequest::~ListConversationDetailsRequest() -{} - -std::string ListConversationDetailsRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ListConversationDetailsRequest; + +ListConversationDetailsRequest::ListConversationDetailsRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "ListConversationDetails") { + setMethod(HttpRequest::Method::Get); } -void ListConversationDetailsRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +ListConversationDetailsRequest::~ListConversationDetailsRequest() {} + +std::string ListConversationDetailsRequest::getConversationId() const { + return conversationId_; } -std::string ListConversationDetailsRequest::getInstanceId()const -{ - return instanceId_; +void ListConversationDetailsRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void ListConversationDetailsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListConversationDetailsRequest::getInstanceId() const { + return instanceId_; +} + +void ListConversationDetailsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } diff --git a/voicenavigator/src/model/ListConversationDetailsResult.cc b/voicenavigator/src/model/ListConversationDetailsResult.cc index a1a488869..a6fa35e6a 100644 --- a/voicenavigator/src/model/ListConversationDetailsResult.cc +++ b/voicenavigator/src/model/ListConversationDetailsResult.cc @@ -43,20 +43,20 @@ void ListConversationDetailsResult::parse(const std::string &payload) for (auto valueConversationDetailsConversationDetail : allConversationDetailsNode) { ConversationDetail conversationDetailsObject; - if(!valueConversationDetailsConversationDetail["ConversationId"].isNull()) - conversationDetailsObject.conversationId = valueConversationDetailsConversationDetail["ConversationId"].asString(); - if(!valueConversationDetailsConversationDetail["Speaker"].isNull()) - conversationDetailsObject.speaker = valueConversationDetailsConversationDetail["Speaker"].asString(); - if(!valueConversationDetailsConversationDetail["Utterance"].isNull()) - conversationDetailsObject.utterance = valueConversationDetailsConversationDetail["Utterance"].asString(); if(!valueConversationDetailsConversationDetail["Action"].isNull()) conversationDetailsObject.action = valueConversationDetailsConversationDetail["Action"].asString(); - if(!valueConversationDetailsConversationDetail["ActionParams"].isNull()) - conversationDetailsObject.actionParams = valueConversationDetailsConversationDetail["ActionParams"].asString(); + if(!valueConversationDetailsConversationDetail["Speaker"].isNull()) + conversationDetailsObject.speaker = valueConversationDetailsConversationDetail["Speaker"].asString(); if(!valueConversationDetailsConversationDetail["CreateTime"].isNull()) conversationDetailsObject.createTime = std::stol(valueConversationDetailsConversationDetail["CreateTime"].asString()); + if(!valueConversationDetailsConversationDetail["ConversationId"].isNull()) + conversationDetailsObject.conversationId = valueConversationDetailsConversationDetail["ConversationId"].asString(); + if(!valueConversationDetailsConversationDetail["ActionParams"].isNull()) + conversationDetailsObject.actionParams = valueConversationDetailsConversationDetail["ActionParams"].asString(); if(!valueConversationDetailsConversationDetail["SequenceId"].isNull()) conversationDetailsObject.sequenceId = valueConversationDetailsConversationDetail["SequenceId"].asString(); + if(!valueConversationDetailsConversationDetail["Utterance"].isNull()) + conversationDetailsObject.utterance = valueConversationDetailsConversationDetail["Utterance"].asString(); conversationDetails_.push_back(conversationDetailsObject); } diff --git a/voicenavigator/src/model/ListConversationsRequest.cc b/voicenavigator/src/model/ListConversationsRequest.cc index 95662ff48..3da128b79 100644 --- a/voicenavigator/src/model/ListConversationsRequest.cc +++ b/voicenavigator/src/model/ListConversationsRequest.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::VoiceNavigator::Model::ListConversationsRequest; - -ListConversationsRequest::ListConversationsRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ListConversations") -{ - setMethod(HttpRequest::Method::Get); -} - -ListConversationsRequest::~ListConversationsRequest() -{} - -long ListConversationsRequest::getBeginTimeLeftRange()const -{ - return beginTimeLeftRange_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ListConversationsRequest; + +ListConversationsRequest::ListConversationsRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "ListConversations") { + setMethod(HttpRequest::Method::Get); } -void ListConversationsRequest::setBeginTimeLeftRange(long beginTimeLeftRange) -{ - beginTimeLeftRange_ = beginTimeLeftRange; - setParameter("BeginTimeLeftRange", std::to_string(beginTimeLeftRange)); +ListConversationsRequest::~ListConversationsRequest() {} + +long ListConversationsRequest::getBeginTimeLeftRange() const { + return beginTimeLeftRange_; } -std::string ListConversationsRequest::getQuery()const -{ - return query_; +void ListConversationsRequest::setBeginTimeLeftRange(long beginTimeLeftRange) { + beginTimeLeftRange_ = beginTimeLeftRange; + setParameter(std::string("BeginTimeLeftRange"), std::to_string(beginTimeLeftRange)); } -void ListConversationsRequest::setQuery(const std::string& query) -{ - query_ = query; - setParameter("Query", query); +std::string ListConversationsRequest::getQuery() const { + return query_; } -int ListConversationsRequest::getPageNumber()const -{ - return pageNumber_; +void ListConversationsRequest::setQuery(const std::string &query) { + query_ = query; + setParameter(std::string("Query"), query); } -void ListConversationsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int ListConversationsRequest::getPageNumber() const { + return pageNumber_; } -long ListConversationsRequest::getResult()const -{ - return result_; +void ListConversationsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListConversationsRequest::setResult(long result) -{ - result_ = result; - setParameter("Result", std::to_string(result)); +long ListConversationsRequest::getResult() const { + return result_; } -std::string ListConversationsRequest::getCallingNumber()const -{ - return callingNumber_; +void ListConversationsRequest::setResult(long result) { + result_ = result; + setParameter(std::string("Result"), std::to_string(result)); } -void ListConversationsRequest::setCallingNumber(const std::string& callingNumber) -{ - callingNumber_ = callingNumber; - setParameter("CallingNumber", callingNumber); +std::string ListConversationsRequest::getCallingNumber() const { + return callingNumber_; } -std::string ListConversationsRequest::getInstanceId()const -{ - return instanceId_; +void ListConversationsRequest::setCallingNumber(const std::string &callingNumber) { + callingNumber_ = callingNumber; + setParameter(std::string("CallingNumber"), callingNumber); } -void ListConversationsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ListConversationsRequest::getInstanceId() const { + return instanceId_; } -long ListConversationsRequest::getBeginTimeRightRange()const -{ - return beginTimeRightRange_; +void ListConversationsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ListConversationsRequest::setBeginTimeRightRange(long beginTimeRightRange) -{ - beginTimeRightRange_ = beginTimeRightRange; - setParameter("BeginTimeRightRange", std::to_string(beginTimeRightRange)); +long ListConversationsRequest::getBeginTimeRightRange() const { + return beginTimeRightRange_; } -std::string ListConversationsRequest::getIsSandBox()const -{ - return isSandBox_; +void ListConversationsRequest::setBeginTimeRightRange(long beginTimeRightRange) { + beginTimeRightRange_ = beginTimeRightRange; + setParameter(std::string("BeginTimeRightRange"), std::to_string(beginTimeRightRange)); } -void ListConversationsRequest::setIsSandBox(const std::string& isSandBox) -{ - isSandBox_ = isSandBox; - setParameter("IsSandBox", isSandBox); +std::string ListConversationsRequest::getIsSandBox() const { + return isSandBox_; } -int ListConversationsRequest::getPageSize()const -{ - return pageSize_; +void ListConversationsRequest::setIsSandBox(const std::string &isSandBox) { + isSandBox_ = isSandBox; + setParameter(std::string("IsSandBox"), isSandBox); } -void ListConversationsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int ListConversationsRequest::getPageSize() const { + return pageSize_; +} + +void ListConversationsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/voicenavigator/src/model/ListDownloadTasksRequest.cc b/voicenavigator/src/model/ListDownloadTasksRequest.cc index a616186d5..f6a687f17 100644 --- a/voicenavigator/src/model/ListDownloadTasksRequest.cc +++ b/voicenavigator/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::VoiceNavigator::Model::ListDownloadTasksRequest; - -ListDownloadTasksRequest::ListDownloadTasksRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ListDownloadTasks") -{ - setMethod(HttpRequest::Method::Get); -} - -ListDownloadTasksRequest::~ListDownloadTasksRequest() -{} - -int ListDownloadTasksRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ListDownloadTasksRequest; + +ListDownloadTasksRequest::ListDownloadTasksRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "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/voicenavigator/src/model/ListInstancesRequest.cc b/voicenavigator/src/model/ListInstancesRequest.cc index f9de43134..da79f88c6 100644 --- a/voicenavigator/src/model/ListInstancesRequest.cc +++ b/voicenavigator/src/model/ListInstancesRequest.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::VoiceNavigator::Model::ListInstancesRequest; - -ListInstancesRequest::ListInstancesRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ListInstances") -{ - setMethod(HttpRequest::Method::Get); -} - -ListInstancesRequest::~ListInstancesRequest() -{} - -int ListInstancesRequest::getPageNumber()const -{ - return pageNumber_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ListInstancesRequest; + +ListInstancesRequest::ListInstancesRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "ListInstances") { + setMethod(HttpRequest::Method::Get); } -void ListInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +ListInstancesRequest::~ListInstancesRequest() {} + +int ListInstancesRequest::getPageNumber() const { + return pageNumber_; } -int ListInstancesRequest::getPageSize()const -{ - return pageSize_; +void ListInstancesRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void ListInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +std::string ListInstancesRequest::getNluServiceTypeListJsonString() const { + return nluServiceTypeListJsonString_; +} + +void ListInstancesRequest::setNluServiceTypeListJsonString(const std::string &nluServiceTypeListJsonString) { + nluServiceTypeListJsonString_ = nluServiceTypeListJsonString; + setParameter(std::string("NluServiceTypeListJsonString"), nluServiceTypeListJsonString); +} + +int ListInstancesRequest::getPageSize() const { + return pageSize_; +} + +void ListInstancesRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/voicenavigator/src/model/ListInstancesResult.cc b/voicenavigator/src/model/ListInstancesResult.cc index eb5f714a2..7ecf0ff62 100644 --- a/voicenavigator/src/model/ListInstancesResult.cc +++ b/voicenavigator/src/model/ListInstancesResult.cc @@ -43,22 +43,22 @@ void ListInstancesResult::parse(const std::string &payload) for (auto valueInstancesInstance : allInstancesNode) { Instance instancesObject; + if(!valueInstancesInstance["Status"].isNull()) + instancesObject.status = valueInstancesInstance["Status"].asString(); + if(!valueInstancesInstance["NluServiceType"].isNull()) + instancesObject.nluServiceType = valueInstancesInstance["NluServiceType"].asString(); + if(!valueInstancesInstance["ModifyUserName"].isNull()) + instancesObject.modifyUserName = valueInstancesInstance["ModifyUserName"].asString(); + if(!valueInstancesInstance["Description"].isNull()) + instancesObject.description = valueInstancesInstance["Description"].asString(); if(!valueInstancesInstance["InstanceId"].isNull()) instancesObject.instanceId = valueInstancesInstance["InstanceId"].asString(); if(!valueInstancesInstance["Name"].isNull()) instancesObject.name = valueInstancesInstance["Name"].asString(); - if(!valueInstancesInstance["Description"].isNull()) - instancesObject.description = valueInstancesInstance["Description"].asString(); - if(!valueInstancesInstance["Status"].isNull()) - instancesObject.status = valueInstancesInstance["Status"].asString(); if(!valueInstancesInstance["Concurrency"].isNull()) instancesObject.concurrency = std::stol(valueInstancesInstance["Concurrency"].asString()); if(!valueInstancesInstance["ModifyTime"].isNull()) instancesObject.modifyTime = std::stol(valueInstancesInstance["ModifyTime"].asString()); - if(!valueInstancesInstance["ModifyUserName"].isNull()) - instancesObject.modifyUserName = valueInstancesInstance["ModifyUserName"].asString(); - if(!valueInstancesInstance["NluServiceType"].isNull()) - instancesObject.nluServiceType = valueInstancesInstance["NluServiceType"].asString(); auto allApplicableOperations = value["ApplicableOperations"]["Operation"]; for (auto value : allApplicableOperations) instancesObject.applicableOperations.push_back(value.asString()); @@ -66,10 +66,10 @@ void ListInstancesResult::parse(const std::string &payload) } 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["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/voicenavigator/src/model/ListSandBoxWhileListRequest.cc b/voicenavigator/src/model/ListSandBoxWhileListRequest.cc deleted file mode 100644 index 7dfbecdfe..000000000 --- a/voicenavigator/src/model/ListSandBoxWhileListRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::ListSandBoxWhileListRequest; - -ListSandBoxWhileListRequest::ListSandBoxWhileListRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ListSandBoxWhileList") -{ - setMethod(HttpRequest::Method::Post); -} - -ListSandBoxWhileListRequest::~ListSandBoxWhileListRequest() -{} - -std::string ListSandBoxWhileListRequest::getPhoneNumber()const -{ - return phoneNumber_; -} - -void ListSandBoxWhileListRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); -} - -int ListSandBoxWhileListRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListSandBoxWhileListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListSandBoxWhileListRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListSandBoxWhileListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ListSandBoxWhileListRequest::getName()const -{ - return name_; -} - -void ListSandBoxWhileListRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - -int ListSandBoxWhileListRequest::getPageSize()const -{ - return pageSize_; -} - -void ListSandBoxWhileListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - diff --git a/voicenavigator/src/model/ListSandBoxWhileListResult.cc b/voicenavigator/src/model/ListSandBoxWhileListResult.cc deleted file mode 100644 index 2d14440af..000000000 --- a/voicenavigator/src/model/ListSandBoxWhileListResult.cc +++ /dev/null @@ -1,92 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::VoiceNavigator; -using namespace AlibabaCloud::VoiceNavigator::Model; - -ListSandBoxWhileListResult::ListSandBoxWhileListResult() : - ServiceResult() -{} - -ListSandBoxWhileListResult::ListSandBoxWhileListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListSandBoxWhileListResult::~ListSandBoxWhileListResult() -{} - -void ListSandBoxWhileListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allWhiteListNode = value["WhiteList"]["WhiteListItem"]; - for (auto valueWhiteListWhiteListItem : allWhiteListNode) - { - WhiteListItem whiteListObject; - if(!valueWhiteListWhiteListItem["Uuid"].isNull()) - whiteListObject.uuid = valueWhiteListWhiteListItem["Uuid"].asString(); - if(!valueWhiteListWhiteListItem["PhoneNumber"].isNull()) - whiteListObject.phoneNumber = valueWhiteListWhiteListItem["PhoneNumber"].asString(); - if(!valueWhiteListWhiteListItem["Description"].isNull()) - whiteListObject.description = valueWhiteListWhiteListItem["Description"].asString(); - if(!valueWhiteListWhiteListItem["IsEnable"].isNull()) - whiteListObject.isEnable = std::stoi(valueWhiteListWhiteListItem["IsEnable"].asString()); - if(!valueWhiteListWhiteListItem["GmtCreate"].isNull()) - whiteListObject.gmtCreate = std::stol(valueWhiteListWhiteListItem["GmtCreate"].asString()); - if(!valueWhiteListWhiteListItem["InstanceId"].isNull()) - whiteListObject.instanceId = valueWhiteListWhiteListItem["InstanceId"].asString(); - if(!valueWhiteListWhiteListItem["GmtModified"].isNull()) - whiteListObject.gmtModified = std::stol(valueWhiteListWhiteListItem["GmtModified"].asString()); - if(!valueWhiteListWhiteListItem["Name"].isNull()) - whiteListObject.name = valueWhiteListWhiteListItem["Name"].asString(); - whiteList_.push_back(whiteListObject); - } - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stol(value["TotalCount"].asString()); - -} - -long ListSandBoxWhileListResult::getTotalCount()const -{ - return totalCount_; -} - -int ListSandBoxWhileListResult::getPageSize()const -{ - return pageSize_; -} - -int ListSandBoxWhileListResult::getPageNumber()const -{ - return pageNumber_; -} - -std::vector ListSandBoxWhileListResult::getWhiteList()const -{ - return whiteList_; -} - diff --git a/voicenavigator/src/model/ModifyAsrConfigRequest.cc b/voicenavigator/src/model/ModifyAsrConfigRequest.cc new file mode 100644 index 000000000..05947ca42 --- /dev/null +++ b/voicenavigator/src/model/ModifyAsrConfigRequest.cc @@ -0,0 +1,81 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ModifyAsrConfigRequest; + +ModifyAsrConfigRequest::ModifyAsrConfigRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "ModifyAsrConfig") { + setMethod(HttpRequest::Method::Post); +} + +ModifyAsrConfigRequest::~ModifyAsrConfigRequest() {} + +std::string ModifyAsrConfigRequest::getAsrVocabularyId() const { + return asrVocabularyId_; +} + +void ModifyAsrConfigRequest::setAsrVocabularyId(const std::string &asrVocabularyId) { + asrVocabularyId_ = asrVocabularyId; + setParameter(std::string("AsrVocabularyId"), asrVocabularyId); +} + +std::string ModifyAsrConfigRequest::getAsrClassVocabularyId() const { + return asrClassVocabularyId_; +} + +void ModifyAsrConfigRequest::setAsrClassVocabularyId(const std::string &asrClassVocabularyId) { + asrClassVocabularyId_ = asrClassVocabularyId; + setParameter(std::string("AsrClassVocabularyId"), asrClassVocabularyId); +} + +std::string ModifyAsrConfigRequest::getEntryId() const { + return entryId_; +} + +void ModifyAsrConfigRequest::setEntryId(const std::string &entryId) { + entryId_ = entryId; + setParameter(std::string("EntryId"), entryId); +} + +std::string ModifyAsrConfigRequest::getAsrCustomizationId() const { + return asrCustomizationId_; +} + +void ModifyAsrConfigRequest::setAsrCustomizationId(const std::string &asrCustomizationId) { + asrCustomizationId_ = asrCustomizationId; + setParameter(std::string("AsrCustomizationId"), asrCustomizationId); +} + +int ModifyAsrConfigRequest::getConfigLevel() const { + return configLevel_; +} + +void ModifyAsrConfigRequest::setConfigLevel(int configLevel) { + configLevel_ = configLevel; + setParameter(std::string("ConfigLevel"), std::to_string(configLevel)); +} + +std::string ModifyAsrConfigRequest::getAsrAcousticModelId() const { + return asrAcousticModelId_; +} + +void ModifyAsrConfigRequest::setAsrAcousticModelId(const std::string &asrAcousticModelId) { + asrAcousticModelId_ = asrAcousticModelId; + setParameter(std::string("AsrAcousticModelId"), asrAcousticModelId); +} + diff --git a/voicenavigator/src/model/GetNewBargeInSwitchResult.cc b/voicenavigator/src/model/ModifyAsrConfigResult.cc similarity index 66% rename from voicenavigator/src/model/GetNewBargeInSwitchResult.cc rename to voicenavigator/src/model/ModifyAsrConfigResult.cc index fb99755d2..383b8077d 100644 --- a/voicenavigator/src/model/GetNewBargeInSwitchResult.cc +++ b/voicenavigator/src/model/ModifyAsrConfigResult.cc @@ -14,34 +14,34 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::VoiceNavigator; using namespace AlibabaCloud::VoiceNavigator::Model; -GetNewBargeInSwitchResult::GetNewBargeInSwitchResult() : +ModifyAsrConfigResult::ModifyAsrConfigResult() : ServiceResult() {} -GetNewBargeInSwitchResult::GetNewBargeInSwitchResult(const std::string &payload) : +ModifyAsrConfigResult::ModifyAsrConfigResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetNewBargeInSwitchResult::~GetNewBargeInSwitchResult() +ModifyAsrConfigResult::~ModifyAsrConfigResult() {} -void GetNewBargeInSwitchResult::parse(const std::string &payload) +void ModifyAsrConfigResult::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["Enable"].isNull()) - data_.enable = dataNode["Enable"].asString() == "true"; + if(!dataNode["AffectedRows"].isNull()) + data_.affectedRows = std::stoi(dataNode["AffectedRows"].asString()); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["HttpStatusCode"].isNull()) @@ -53,27 +53,27 @@ void GetNewBargeInSwitchResult::parse(const std::string &payload) } -int GetNewBargeInSwitchResult::getHttpStatusCode()const +int ModifyAsrConfigResult::getHttpStatusCode()const { return httpStatusCode_; } -std::string GetNewBargeInSwitchResult::getErrorMsg()const +std::string ModifyAsrConfigResult::getErrorMsg()const { return errorMsg_; } -GetNewBargeInSwitchResult::Data GetNewBargeInSwitchResult::getData()const +ModifyAsrConfigResult::Data ModifyAsrConfigResult::getData()const { return data_; } -std::string GetNewBargeInSwitchResult::getCode()const +std::string ModifyAsrConfigResult::getCode()const { return code_; } -bool GetNewBargeInSwitchResult::getSuccess()const +bool ModifyAsrConfigResult::getSuccess()const { return success_; } diff --git a/voicenavigator/src/model/ModifyAsrVadConfigRequest.cc b/voicenavigator/src/model/ModifyAsrVadConfigRequest.cc deleted file mode 100644 index ffe889bf2..000000000 --- a/voicenavigator/src/model/ModifyAsrVadConfigRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::ModifyAsrVadConfigRequest; - -ModifyAsrVadConfigRequest::ModifyAsrVadConfigRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ModifyAsrVadConfig") -{ - setMethod(HttpRequest::Method::Get); -} - -ModifyAsrVadConfigRequest::~ModifyAsrVadConfigRequest() -{} - -std::string ModifyAsrVadConfigRequest::getInstanceId()const -{ - return instanceId_; -} - -void ModifyAsrVadConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ModifyAsrVadConfigRequest::getSpeechNoiseThreshold()const -{ - return speechNoiseThreshold_; -} - -void ModifyAsrVadConfigRequest::setSpeechNoiseThreshold(const std::string& speechNoiseThreshold) -{ - speechNoiseThreshold_ = speechNoiseThreshold; - setParameter("SpeechNoiseThreshold", speechNoiseThreshold); -} - diff --git a/voicenavigator/src/model/ModifyAsrVadConfigResult.cc b/voicenavigator/src/model/ModifyAsrVadConfigResult.cc deleted file mode 100644 index 5a39429c4..000000000 --- a/voicenavigator/src/model/ModifyAsrVadConfigResult.cc +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::VoiceNavigator; -using namespace AlibabaCloud::VoiceNavigator::Model; - -ModifyAsrVadConfigResult::ModifyAsrVadConfigResult() : - ServiceResult() -{} - -ModifyAsrVadConfigResult::ModifyAsrVadConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifyAsrVadConfigResult::~ModifyAsrVadConfigResult() -{} - -void ModifyAsrVadConfigResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - -} - diff --git a/voicenavigator/src/model/ModifyGreetingConfigRequest.cc b/voicenavigator/src/model/ModifyGreetingConfigRequest.cc index 75204954a..9e443ffc1 100644 --- a/voicenavigator/src/model/ModifyGreetingConfigRequest.cc +++ b/voicenavigator/src/model/ModifyGreetingConfigRequest.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::VoiceNavigator::Model::ModifyGreetingConfigRequest; - -ModifyGreetingConfigRequest::ModifyGreetingConfigRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ModifyGreetingConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyGreetingConfigRequest::~ModifyGreetingConfigRequest() -{} - -std::string ModifyGreetingConfigRequest::getGreetingWords()const -{ - return greetingWords_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ModifyGreetingConfigRequest; + +ModifyGreetingConfigRequest::ModifyGreetingConfigRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "ModifyGreetingConfig") { + setMethod(HttpRequest::Method::Post); } -void ModifyGreetingConfigRequest::setGreetingWords(const std::string& greetingWords) -{ - greetingWords_ = greetingWords; - setParameter("GreetingWords", greetingWords); +ModifyGreetingConfigRequest::~ModifyGreetingConfigRequest() {} + +std::string ModifyGreetingConfigRequest::getGreetingWords() const { + return greetingWords_; } -std::string ModifyGreetingConfigRequest::getIntentTrigger()const -{ - return intentTrigger_; +void ModifyGreetingConfigRequest::setGreetingWords(const std::string &greetingWords) { + greetingWords_ = greetingWords; + setParameter(std::string("GreetingWords"), greetingWords); } -void ModifyGreetingConfigRequest::setIntentTrigger(const std::string& intentTrigger) -{ - intentTrigger_ = intentTrigger; - setParameter("IntentTrigger", intentTrigger); +std::string ModifyGreetingConfigRequest::getIntentTrigger() const { + return intentTrigger_; } -std::string ModifyGreetingConfigRequest::getInstanceId()const -{ - return instanceId_; +void ModifyGreetingConfigRequest::setIntentTrigger(const std::string &intentTrigger) { + intentTrigger_ = intentTrigger; + setParameter(std::string("IntentTrigger"), intentTrigger); } -void ModifyGreetingConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyGreetingConfigRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyGreetingConfigRequest::getSourceType()const -{ - return sourceType_; +void ModifyGreetingConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyGreetingConfigRequest::setSourceType(const std::string& sourceType) -{ - sourceType_ = sourceType; - setParameter("SourceType", sourceType); +std::string ModifyGreetingConfigRequest::getSourceType() const { + return sourceType_; +} + +void ModifyGreetingConfigRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); } diff --git a/voicenavigator/src/model/ModifyInstanceRequest.cc b/voicenavigator/src/model/ModifyInstanceRequest.cc index c3bb7f015..744006a75 100644 --- a/voicenavigator/src/model/ModifyInstanceRequest.cc +++ b/voicenavigator/src/model/ModifyInstanceRequest.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::VoiceNavigator::Model::ModifyInstanceRequest; - -ModifyInstanceRequest::ModifyInstanceRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ModifyInstance") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyInstanceRequest::~ModifyInstanceRequest() -{} - -std::string ModifyInstanceRequest::getDescription()const -{ - return description_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ModifyInstanceRequest; + +ModifyInstanceRequest::ModifyInstanceRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "ModifyInstance") { + setMethod(HttpRequest::Method::Post); } -void ModifyInstanceRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); +ModifyInstanceRequest::~ModifyInstanceRequest() {} + +std::string ModifyInstanceRequest::getDescription() const { + return description_; } -long ModifyInstanceRequest::getConcurrency()const -{ - return concurrency_; +void ModifyInstanceRequest::setDescription(const std::string &description) { + description_ = description; + setParameter(std::string("Description"), description); } -void ModifyInstanceRequest::setConcurrency(long concurrency) -{ - concurrency_ = concurrency; - setParameter("Concurrency", std::to_string(concurrency)); +long ModifyInstanceRequest::getConcurrency() const { + return concurrency_; } -std::string ModifyInstanceRequest::getInstanceId()const -{ - return instanceId_; +void ModifyInstanceRequest::setConcurrency(long concurrency) { + concurrency_ = concurrency; + setParameter(std::string("Concurrency"), std::to_string(concurrency)); } -void ModifyInstanceRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyInstanceRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyInstanceRequest::getChatbotInstanceId()const -{ - return chatbotInstanceId_; +void ModifyInstanceRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyInstanceRequest::setChatbotInstanceId(const std::string& chatbotInstanceId) -{ - chatbotInstanceId_ = chatbotInstanceId; - setParameter("ChatbotInstanceId", chatbotInstanceId); +std::string ModifyInstanceRequest::getChatbotInstanceId() const { + return chatbotInstanceId_; +} + +void ModifyInstanceRequest::setChatbotInstanceId(const std::string &chatbotInstanceId) { + chatbotInstanceId_ = chatbotInstanceId; + setParameter(std::string("ChatbotInstanceId"), chatbotInstanceId); } diff --git a/voicenavigator/src/model/ModifySandBoxWhileListRequest.cc b/voicenavigator/src/model/ModifySandBoxWhileListRequest.cc deleted file mode 100644 index 0f233397b..000000000 --- a/voicenavigator/src/model/ModifySandBoxWhileListRequest.cc +++ /dev/null @@ -1,84 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::ModifySandBoxWhileListRequest; - -ModifySandBoxWhileListRequest::ModifySandBoxWhileListRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ModifySandBoxWhileList") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySandBoxWhileListRequest::~ModifySandBoxWhileListRequest() -{} - -std::string ModifySandBoxWhileListRequest::getPhoneNumber()const -{ - return phoneNumber_; -} - -void ModifySandBoxWhileListRequest::setPhoneNumber(const std::string& phoneNumber) -{ - phoneNumber_ = phoneNumber; - setParameter("PhoneNumber", phoneNumber); -} - -std::string ModifySandBoxWhileListRequest::getDescription()const -{ - return description_; -} - -void ModifySandBoxWhileListRequest::setDescription(const std::string& description) -{ - description_ = description; - setParameter("Description", description); -} - -std::string ModifySandBoxWhileListRequest::getUuid()const -{ - return uuid_; -} - -void ModifySandBoxWhileListRequest::setUuid(const std::string& uuid) -{ - uuid_ = uuid; - setParameter("Uuid", uuid); -} - -std::string ModifySandBoxWhileListRequest::getInstanceId()const -{ - return instanceId_; -} - -void ModifySandBoxWhileListRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -std::string ModifySandBoxWhileListRequest::getName()const -{ - return name_; -} - -void ModifySandBoxWhileListRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - diff --git a/voicenavigator/src/model/ModifySandBoxWhileListResult.cc b/voicenavigator/src/model/ModifySandBoxWhileListResult.cc deleted file mode 100644 index b99cf6f5f..000000000 --- a/voicenavigator/src/model/ModifySandBoxWhileListResult.cc +++ /dev/null @@ -1,58 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::VoiceNavigator; -using namespace AlibabaCloud::VoiceNavigator::Model; - -ModifySandBoxWhileListResult::ModifySandBoxWhileListResult() : - ServiceResult() -{} - -ModifySandBoxWhileListResult::ModifySandBoxWhileListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ModifySandBoxWhileListResult::~ModifySandBoxWhileListResult() -{} - -void ModifySandBoxWhileListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Uuid"].isNull()) - uuid_ = value["Uuid"].asString(); - if(!value["PhoneNumber"].isNull()) - phoneNumber_ = value["PhoneNumber"].asString(); - -} - -std::string ModifySandBoxWhileListResult::getUuid()const -{ - return uuid_; -} - -std::string ModifySandBoxWhileListResult::getPhoneNumber()const -{ - return phoneNumber_; -} - diff --git a/voicenavigator/src/model/ModifySilenceTimeoutConfigRequest.cc b/voicenavigator/src/model/ModifySilenceTimeoutConfigRequest.cc index 22d37b064..e48afe862 100644 --- a/voicenavigator/src/model/ModifySilenceTimeoutConfigRequest.cc +++ b/voicenavigator/src/model/ModifySilenceTimeoutConfigRequest.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::VoiceNavigator::Model::ModifySilenceTimeoutConfigRequest; - -ModifySilenceTimeoutConfigRequest::ModifySilenceTimeoutConfigRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ModifySilenceTimeoutConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifySilenceTimeoutConfigRequest::~ModifySilenceTimeoutConfigRequest() -{} - -std::string ModifySilenceTimeoutConfigRequest::getFinalAction()const -{ - return finalAction_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ModifySilenceTimeoutConfigRequest; + +ModifySilenceTimeoutConfigRequest::ModifySilenceTimeoutConfigRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "ModifySilenceTimeoutConfig") { + setMethod(HttpRequest::Method::Post); } -void ModifySilenceTimeoutConfigRequest::setFinalAction(const std::string& finalAction) -{ - finalAction_ = finalAction; - setParameter("FinalAction", finalAction); +ModifySilenceTimeoutConfigRequest::~ModifySilenceTimeoutConfigRequest() {} + +std::string ModifySilenceTimeoutConfigRequest::getFinalAction() const { + return finalAction_; } -std::string ModifySilenceTimeoutConfigRequest::getFinalPrompt()const -{ - return finalPrompt_; +void ModifySilenceTimeoutConfigRequest::setFinalAction(const std::string &finalAction) { + finalAction_ = finalAction; + setParameter(std::string("FinalAction"), finalAction); } -void ModifySilenceTimeoutConfigRequest::setFinalPrompt(const std::string& finalPrompt) -{ - finalPrompt_ = finalPrompt; - setParameter("FinalPrompt", finalPrompt); +std::string ModifySilenceTimeoutConfigRequest::getFinalPrompt() const { + return finalPrompt_; } -int ModifySilenceTimeoutConfigRequest::getThreshold()const -{ - return threshold_; +void ModifySilenceTimeoutConfigRequest::setFinalPrompt(const std::string &finalPrompt) { + finalPrompt_ = finalPrompt; + setParameter(std::string("FinalPrompt"), finalPrompt); } -void ModifySilenceTimeoutConfigRequest::setThreshold(int threshold) -{ - threshold_ = threshold; - setParameter("Threshold", std::to_string(threshold)); +int ModifySilenceTimeoutConfigRequest::getThreshold() const { + return threshold_; } -std::string ModifySilenceTimeoutConfigRequest::getIntentTrigger()const -{ - return intentTrigger_; +void ModifySilenceTimeoutConfigRequest::setThreshold(int threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), std::to_string(threshold)); } -void ModifySilenceTimeoutConfigRequest::setIntentTrigger(const std::string& intentTrigger) -{ - intentTrigger_ = intentTrigger; - setParameter("IntentTrigger", intentTrigger); +std::string ModifySilenceTimeoutConfigRequest::getIntentTrigger() const { + return intentTrigger_; } -long ModifySilenceTimeoutConfigRequest::getTimeout()const -{ - return timeout_; +void ModifySilenceTimeoutConfigRequest::setIntentTrigger(const std::string &intentTrigger) { + intentTrigger_ = intentTrigger; + setParameter(std::string("IntentTrigger"), intentTrigger); } -void ModifySilenceTimeoutConfigRequest::setTimeout(long timeout) -{ - timeout_ = timeout; - setParameter("Timeout", std::to_string(timeout)); +long ModifySilenceTimeoutConfigRequest::getTimeout() const { + return timeout_; } -std::string ModifySilenceTimeoutConfigRequest::getInstanceId()const -{ - return instanceId_; +void ModifySilenceTimeoutConfigRequest::setTimeout(long timeout) { + timeout_ = timeout; + setParameter(std::string("Timeout"), std::to_string(timeout)); } -void ModifySilenceTimeoutConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifySilenceTimeoutConfigRequest::getInstanceId() const { + return instanceId_; } -std::string ModifySilenceTimeoutConfigRequest::getSourceType()const -{ - return sourceType_; +void ModifySilenceTimeoutConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifySilenceTimeoutConfigRequest::setSourceType(const std::string& sourceType) -{ - sourceType_ = sourceType; - setParameter("SourceType", sourceType); +std::string ModifySilenceTimeoutConfigRequest::getSourceType() const { + return sourceType_; } -std::string ModifySilenceTimeoutConfigRequest::getFinalActionParams()const -{ - return finalActionParams_; +void ModifySilenceTimeoutConfigRequest::setSourceType(const std::string &sourceType) { + sourceType_ = sourceType; + setParameter(std::string("SourceType"), sourceType); } -void ModifySilenceTimeoutConfigRequest::setFinalActionParams(const std::string& finalActionParams) -{ - finalActionParams_ = finalActionParams; - setParameter("FinalActionParams", finalActionParams); +std::string ModifySilenceTimeoutConfigRequest::getFinalActionParams() const { + return finalActionParams_; } -std::string ModifySilenceTimeoutConfigRequest::getPrompt()const -{ - return prompt_; +void ModifySilenceTimeoutConfigRequest::setFinalActionParams(const std::string &finalActionParams) { + finalActionParams_ = finalActionParams; + setParameter(std::string("FinalActionParams"), finalActionParams); } -void ModifySilenceTimeoutConfigRequest::setPrompt(const std::string& prompt) -{ - prompt_ = prompt; - setParameter("Prompt", prompt); +std::string ModifySilenceTimeoutConfigRequest::getPrompt() const { + return prompt_; +} + +void ModifySilenceTimeoutConfigRequest::setPrompt(const std::string &prompt) { + prompt_ = prompt; + setParameter(std::string("Prompt"), prompt); } diff --git a/voicenavigator/src/model/ModifyTTSConfigRequest.cc b/voicenavigator/src/model/ModifyTTSConfigRequest.cc index eccdb5ab7..8e8c6dfd3 100644 --- a/voicenavigator/src/model/ModifyTTSConfigRequest.cc +++ b/voicenavigator/src/model/ModifyTTSConfigRequest.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::VoiceNavigator::Model::ModifyTTSConfigRequest; - -ModifyTTSConfigRequest::ModifyTTSConfigRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ModifyTTSConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyTTSConfigRequest::~ModifyTTSConfigRequest() -{} - -std::string ModifyTTSConfigRequest::getVoice()const -{ - return voice_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ModifyTTSConfigRequest; + +ModifyTTSConfigRequest::ModifyTTSConfigRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "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::getVolume()const -{ - return volume_; +void ModifyTTSConfigRequest::setVoice(const std::string &voice) { + voice_ = voice; + setParameter(std::string("Voice"), voice); } -void ModifyTTSConfigRequest::setVolume(const std::string& volume) -{ - volume_ = volume; - setParameter("Volume", volume); +std::string ModifyTTSConfigRequest::getVolume() const { + return volume_; } -std::string ModifyTTSConfigRequest::getInstanceId()const -{ - return instanceId_; +void ModifyTTSConfigRequest::setVolume(const std::string &volume) { + volume_ = volume; + setParameter(std::string("Volume"), volume); } -void ModifyTTSConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyTTSConfigRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyTTSConfigRequest::getSpeechRate()const -{ - return speechRate_; +void ModifyTTSConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -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/voicenavigator/src/model/ModifyUnrecognizingConfigRequest.cc b/voicenavigator/src/model/ModifyUnrecognizingConfigRequest.cc index 493a1ee7d..0216c5841 100644 --- a/voicenavigator/src/model/ModifyUnrecognizingConfigRequest.cc +++ b/voicenavigator/src/model/ModifyUnrecognizingConfigRequest.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::VoiceNavigator::Model::ModifyUnrecognizingConfigRequest; - -ModifyUnrecognizingConfigRequest::ModifyUnrecognizingConfigRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "ModifyUnrecognizingConfig") -{ - setMethod(HttpRequest::Method::Post); -} - -ModifyUnrecognizingConfigRequest::~ModifyUnrecognizingConfigRequest() -{} - -std::string ModifyUnrecognizingConfigRequest::getFinalAction()const -{ - return finalAction_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::ModifyUnrecognizingConfigRequest; + +ModifyUnrecognizingConfigRequest::ModifyUnrecognizingConfigRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "ModifyUnrecognizingConfig") { + setMethod(HttpRequest::Method::Post); } -void ModifyUnrecognizingConfigRequest::setFinalAction(const std::string& finalAction) -{ - finalAction_ = finalAction; - setParameter("FinalAction", finalAction); +ModifyUnrecognizingConfigRequest::~ModifyUnrecognizingConfigRequest() {} + +std::string ModifyUnrecognizingConfigRequest::getFinalAction() const { + return finalAction_; } -std::string ModifyUnrecognizingConfigRequest::getFinalPrompt()const -{ - return finalPrompt_; +void ModifyUnrecognizingConfigRequest::setFinalAction(const std::string &finalAction) { + finalAction_ = finalAction; + setParameter(std::string("FinalAction"), finalAction); } -void ModifyUnrecognizingConfigRequest::setFinalPrompt(const std::string& finalPrompt) -{ - finalPrompt_ = finalPrompt; - setParameter("FinalPrompt", finalPrompt); +std::string ModifyUnrecognizingConfigRequest::getFinalPrompt() const { + return finalPrompt_; } -int ModifyUnrecognizingConfigRequest::getThreshold()const -{ - return threshold_; +void ModifyUnrecognizingConfigRequest::setFinalPrompt(const std::string &finalPrompt) { + finalPrompt_ = finalPrompt; + setParameter(std::string("FinalPrompt"), finalPrompt); } -void ModifyUnrecognizingConfigRequest::setThreshold(int threshold) -{ - threshold_ = threshold; - setParameter("Threshold", std::to_string(threshold)); +int ModifyUnrecognizingConfigRequest::getThreshold() const { + return threshold_; } -std::string ModifyUnrecognizingConfigRequest::getInstanceId()const -{ - return instanceId_; +void ModifyUnrecognizingConfigRequest::setThreshold(int threshold) { + threshold_ = threshold; + setParameter(std::string("Threshold"), std::to_string(threshold)); } -void ModifyUnrecognizingConfigRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string ModifyUnrecognizingConfigRequest::getInstanceId() const { + return instanceId_; } -std::string ModifyUnrecognizingConfigRequest::getFinalActionParams()const -{ - return finalActionParams_; +void ModifyUnrecognizingConfigRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void ModifyUnrecognizingConfigRequest::setFinalActionParams(const std::string& finalActionParams) -{ - finalActionParams_ = finalActionParams; - setParameter("FinalActionParams", finalActionParams); +std::string ModifyUnrecognizingConfigRequest::getFinalActionParams() const { + return finalActionParams_; } -std::string ModifyUnrecognizingConfigRequest::getPrompt()const -{ - return prompt_; +void ModifyUnrecognizingConfigRequest::setFinalActionParams(const std::string &finalActionParams) { + finalActionParams_ = finalActionParams; + setParameter(std::string("FinalActionParams"), finalActionParams); } -void ModifyUnrecognizingConfigRequest::setPrompt(const std::string& prompt) -{ - prompt_ = prompt; - setParameter("Prompt", prompt); +std::string ModifyUnrecognizingConfigRequest::getPrompt() const { + return prompt_; +} + +void ModifyUnrecognizingConfigRequest::setPrompt(const std::string &prompt) { + prompt_ = prompt; + setParameter(std::string("Prompt"), prompt); } diff --git a/voicenavigator/src/model/QueryConversationsRequest.cc b/voicenavigator/src/model/QueryConversationsRequest.cc index 4b9b8920b..24888befe 100644 --- a/voicenavigator/src/model/QueryConversationsRequest.cc +++ b/voicenavigator/src/model/QueryConversationsRequest.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::VoiceNavigator::Model::QueryConversationsRequest; - -QueryConversationsRequest::QueryConversationsRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "QueryConversations") -{ - setMethod(HttpRequest::Method::Get); -} - -QueryConversationsRequest::~QueryConversationsRequest() -{} - -long QueryConversationsRequest::getBeginTimeLeftRange()const -{ - return beginTimeLeftRange_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::QueryConversationsRequest; + +QueryConversationsRequest::QueryConversationsRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "QueryConversations") { + setMethod(HttpRequest::Method::Get); } -void QueryConversationsRequest::setBeginTimeLeftRange(long beginTimeLeftRange) -{ - beginTimeLeftRange_ = beginTimeLeftRange; - setParameter("BeginTimeLeftRange", std::to_string(beginTimeLeftRange)); +QueryConversationsRequest::~QueryConversationsRequest() {} + +long QueryConversationsRequest::getBeginTimeLeftRange() const { + return beginTimeLeftRange_; } -int QueryConversationsRequest::getPageNumber()const -{ - return pageNumber_; +void QueryConversationsRequest::setBeginTimeLeftRange(long beginTimeLeftRange) { + beginTimeLeftRange_ = beginTimeLeftRange; + setParameter(std::string("BeginTimeLeftRange"), std::to_string(beginTimeLeftRange)); } -void QueryConversationsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); +int QueryConversationsRequest::getPageNumber() const { + return pageNumber_; } -std::string QueryConversationsRequest::getCallingNumber()const -{ - return callingNumber_; +void QueryConversationsRequest::setPageNumber(int pageNumber) { + pageNumber_ = pageNumber; + setParameter(std::string("PageNumber"), std::to_string(pageNumber)); } -void QueryConversationsRequest::setCallingNumber(const std::string& callingNumber) -{ - callingNumber_ = callingNumber; - setParameter("CallingNumber", callingNumber); +std::string QueryConversationsRequest::getCallingNumber() const { + return callingNumber_; } -std::string QueryConversationsRequest::getInstanceId()const -{ - return instanceId_; +void QueryConversationsRequest::setCallingNumber(const std::string &callingNumber) { + callingNumber_ = callingNumber; + setParameter(std::string("CallingNumber"), callingNumber); } -void QueryConversationsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string QueryConversationsRequest::getInstanceId() const { + return instanceId_; } -long QueryConversationsRequest::getBeginTimeRightRange()const -{ - return beginTimeRightRange_; +void QueryConversationsRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void QueryConversationsRequest::setBeginTimeRightRange(long beginTimeRightRange) -{ - beginTimeRightRange_ = beginTimeRightRange; - setParameter("BeginTimeRightRange", std::to_string(beginTimeRightRange)); +long QueryConversationsRequest::getBeginTimeRightRange() const { + return beginTimeRightRange_; } -int QueryConversationsRequest::getPageSize()const -{ - return pageSize_; +void QueryConversationsRequest::setBeginTimeRightRange(long beginTimeRightRange) { + beginTimeRightRange_ = beginTimeRightRange; + setParameter(std::string("BeginTimeRightRange"), std::to_string(beginTimeRightRange)); } -void QueryConversationsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); +int QueryConversationsRequest::getPageSize() const { + return pageSize_; +} + +void QueryConversationsRequest::setPageSize(int pageSize) { + pageSize_ = pageSize; + setParameter(std::string("PageSize"), std::to_string(pageSize)); } diff --git a/voicenavigator/src/model/QueryConversationsResult.cc b/voicenavigator/src/model/QueryConversationsResult.cc index 83e080cd3..18dcd4414 100644 --- a/voicenavigator/src/model/QueryConversationsResult.cc +++ b/voicenavigator/src/model/QueryConversationsResult.cc @@ -43,30 +43,30 @@ void QueryConversationsResult::parse(const std::string &payload) for (auto valueConversationsConversation : allConversationsNode) { Conversation conversationsObject; - if(!valueConversationsConversation["CallingNumber"].isNull()) - conversationsObject.callingNumber = valueConversationsConversation["CallingNumber"].asString(); - if(!valueConversationsConversation["BeginTime"].isNull()) - conversationsObject.beginTime = std::stol(valueConversationsConversation["BeginTime"].asString()); if(!valueConversationsConversation["EndTime"].isNull()) conversationsObject.endTime = std::stol(valueConversationsConversation["EndTime"].asString()); - if(!valueConversationsConversation["TransferredToAgent"].isNull()) - conversationsObject.transferredToAgent = valueConversationsConversation["TransferredToAgent"].asString() == "true"; - if(!valueConversationsConversation["SkillGroupId"].isNull()) - conversationsObject.skillGroupId = valueConversationsConversation["SkillGroupId"].asString(); - if(!valueConversationsConversation["UserUtteranceCount"].isNull()) - conversationsObject.userUtteranceCount = std::stoi(valueConversationsConversation["UserUtteranceCount"].asString()); if(!valueConversationsConversation["EffectiveAnswerCount"].isNull()) conversationsObject.effectiveAnswerCount = std::stoi(valueConversationsConversation["EffectiveAnswerCount"].asString()); + if(!valueConversationsConversation["TransferredToAgent"].isNull()) + conversationsObject.transferredToAgent = valueConversationsConversation["TransferredToAgent"].asString() == "true"; + if(!valueConversationsConversation["BeginTime"].isNull()) + conversationsObject.beginTime = std::stol(valueConversationsConversation["BeginTime"].asString()); + if(!valueConversationsConversation["SkillGroupId"].isNull()) + conversationsObject.skillGroupId = valueConversationsConversation["SkillGroupId"].asString(); if(!valueConversationsConversation["ConversationId"].isNull()) conversationsObject.conversationId = valueConversationsConversation["ConversationId"].asString(); + if(!valueConversationsConversation["CallingNumber"].isNull()) + conversationsObject.callingNumber = valueConversationsConversation["CallingNumber"].asString(); + if(!valueConversationsConversation["UserUtteranceCount"].isNull()) + conversationsObject.userUtteranceCount = std::stoi(valueConversationsConversation["UserUtteranceCount"].asString()); conversations_.push_back(conversationsObject); } if(!value["TotalCount"].isNull()) totalCount_ = std::stol(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["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); } diff --git a/voicenavigator/src/model/SaveRecordingRequest.cc b/voicenavigator/src/model/SaveRecordingRequest.cc index 51beb726b..cf685d4ea 100644 --- a/voicenavigator/src/model/SaveRecordingRequest.cc +++ b/voicenavigator/src/model/SaveRecordingRequest.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::VoiceNavigator::Model::SaveRecordingRequest; - -SaveRecordingRequest::SaveRecordingRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "SaveRecording") -{ - setMethod(HttpRequest::Method::Post); -} - -SaveRecordingRequest::~SaveRecordingRequest() -{} - -std::string SaveRecordingRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::SaveRecordingRequest; + +SaveRecordingRequest::SaveRecordingRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "SaveRecording") { + setMethod(HttpRequest::Method::Post); } -void SaveRecordingRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +SaveRecordingRequest::~SaveRecordingRequest() {} + +std::string SaveRecordingRequest::getConversationId() const { + return conversationId_; } -long SaveRecordingRequest::getStartTime()const -{ - return startTime_; +void SaveRecordingRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void SaveRecordingRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setParameter("StartTime", std::to_string(startTime)); +long SaveRecordingRequest::getStartTime() const { + return startTime_; } -std::string SaveRecordingRequest::getType()const -{ - return type_; +void SaveRecordingRequest::setStartTime(long startTime) { + startTime_ = startTime; + setParameter(std::string("StartTime"), std::to_string(startTime)); } -void SaveRecordingRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); +std::string SaveRecordingRequest::getType() const { + return type_; } -std::string SaveRecordingRequest::getDuration()const -{ - return duration_; +void SaveRecordingRequest::setType(const std::string &type) { + type_ = type; + setParameter(std::string("Type"), type); } -void SaveRecordingRequest::setDuration(const std::string& duration) -{ - duration_ = duration; - setParameter("Duration", duration); +std::string SaveRecordingRequest::getDuration() const { + return duration_; } -std::string SaveRecordingRequest::getInstanceId()const -{ - return instanceId_; +void SaveRecordingRequest::setDuration(const std::string &duration) { + duration_ = duration; + setParameter(std::string("Duration"), duration); } -void SaveRecordingRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string SaveRecordingRequest::getInstanceId() const { + return instanceId_; } -std::string SaveRecordingRequest::getFileName()const -{ - return fileName_; +void SaveRecordingRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void SaveRecordingRequest::setFileName(const std::string& fileName) -{ - fileName_ = fileName; - setParameter("FileName", fileName); +std::string SaveRecordingRequest::getFileName() const { + return fileName_; } -std::string SaveRecordingRequest::getFilePath()const -{ - return filePath_; +void SaveRecordingRequest::setFileName(const std::string &fileName) { + fileName_ = fileName; + setParameter(std::string("FileName"), fileName); } -void SaveRecordingRequest::setFilePath(const std::string& filePath) -{ - filePath_ = filePath; - setParameter("FilePath", filePath); +std::string SaveRecordingRequest::getFilePath() const { + return filePath_; } -long SaveRecordingRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void SaveRecordingRequest::setFilePath(const std::string &filePath) { + filePath_ = filePath; + setParameter(std::string("FilePath"), filePath); } -void SaveRecordingRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long SaveRecordingRequest::getInstanceOwnerId() const { + return instanceOwnerId_; +} + +void SaveRecordingRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } diff --git a/voicenavigator/src/model/SilenceTimeoutRequest.cc b/voicenavigator/src/model/SilenceTimeoutRequest.cc index c281d8b3f..7e5fd4529 100644 --- a/voicenavigator/src/model/SilenceTimeoutRequest.cc +++ b/voicenavigator/src/model/SilenceTimeoutRequest.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::VoiceNavigator::Model::SilenceTimeoutRequest; - -SilenceTimeoutRequest::SilenceTimeoutRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "SilenceTimeout") -{ - setMethod(HttpRequest::Method::Post); -} - -SilenceTimeoutRequest::~SilenceTimeoutRequest() -{} - -std::string SilenceTimeoutRequest::getConversationId()const -{ - return conversationId_; + */ + +#include + +using AlibabaCloud::VoiceNavigator::Model::SilenceTimeoutRequest; + +SilenceTimeoutRequest::SilenceTimeoutRequest() + : RpcServiceRequest("voicenavigator", "2018-06-12", "SilenceTimeout") { + setMethod(HttpRequest::Method::Post); } -void SilenceTimeoutRequest::setConversationId(const std::string& conversationId) -{ - conversationId_ = conversationId; - setParameter("ConversationId", conversationId); +SilenceTimeoutRequest::~SilenceTimeoutRequest() {} + +std::string SilenceTimeoutRequest::getConversationId() const { + return conversationId_; } -std::string SilenceTimeoutRequest::getInitialContext()const -{ - return initialContext_; +void SilenceTimeoutRequest::setConversationId(const std::string &conversationId) { + conversationId_ = conversationId; + setParameter(std::string("ConversationId"), conversationId); } -void SilenceTimeoutRequest::setInitialContext(const std::string& initialContext) -{ - initialContext_ = initialContext; - setParameter("InitialContext", initialContext); +std::string SilenceTimeoutRequest::getInitialContext() const { + return initialContext_; } -std::string SilenceTimeoutRequest::getInstanceId()const -{ - return instanceId_; +void SilenceTimeoutRequest::setInitialContext(const std::string &initialContext) { + initialContext_ = initialContext; + setParameter(std::string("InitialContext"), initialContext); } -void SilenceTimeoutRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); +std::string SilenceTimeoutRequest::getInstanceId() const { + return instanceId_; } -long SilenceTimeoutRequest::getInstanceOwnerId()const -{ - return instanceOwnerId_; +void SilenceTimeoutRequest::setInstanceId(const std::string &instanceId) { + instanceId_ = instanceId; + setParameter(std::string("InstanceId"), instanceId); } -void SilenceTimeoutRequest::setInstanceOwnerId(long instanceOwnerId) -{ - instanceOwnerId_ = instanceOwnerId; - setParameter("InstanceOwnerId", std::to_string(instanceOwnerId)); +long SilenceTimeoutRequest::getInstanceOwnerId() const { + return instanceOwnerId_; +} + +void SilenceTimeoutRequest::setInstanceOwnerId(long instanceOwnerId) { + instanceOwnerId_ = instanceOwnerId; + setParameter(std::string("InstanceOwnerId"), std::to_string(instanceOwnerId)); } diff --git a/voicenavigator/src/model/UpdateNewBargeInSwitchRequest.cc b/voicenavigator/src/model/UpdateNewBargeInSwitchRequest.cc deleted file mode 100644 index d4ad630e8..000000000 --- a/voicenavigator/src/model/UpdateNewBargeInSwitchRequest.cc +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include - -using AlibabaCloud::VoiceNavigator::Model::UpdateNewBargeInSwitchRequest; - -UpdateNewBargeInSwitchRequest::UpdateNewBargeInSwitchRequest() : - RpcServiceRequest("voicenavigator", "2018-06-12", "UpdateNewBargeInSwitch") -{ - setMethod(HttpRequest::Method::Post); -} - -UpdateNewBargeInSwitchRequest::~UpdateNewBargeInSwitchRequest() -{} - -std::string UpdateNewBargeInSwitchRequest::getInstanceId()const -{ - return instanceId_; -} - -void UpdateNewBargeInSwitchRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setParameter("InstanceId", instanceId); -} - -bool UpdateNewBargeInSwitchRequest::getEnable()const -{ - return enable_; -} - -void UpdateNewBargeInSwitchRequest::setEnable(bool enable) -{ - enable_ = enable; - setParameter("Enable", enable ? "true" : "false"); -} - diff --git a/voicenavigator/src/model/UpdateNewBargeInSwitchResult.cc b/voicenavigator/src/model/UpdateNewBargeInSwitchResult.cc deleted file mode 100644 index 09204ba41..000000000 --- a/voicenavigator/src/model/UpdateNewBargeInSwitchResult.cc +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::VoiceNavigator; -using namespace AlibabaCloud::VoiceNavigator::Model; - -UpdateNewBargeInSwitchResult::UpdateNewBargeInSwitchResult() : - ServiceResult() -{} - -UpdateNewBargeInSwitchResult::UpdateNewBargeInSwitchResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateNewBargeInSwitchResult::~UpdateNewBargeInSwitchResult() -{} - -void UpdateNewBargeInSwitchResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["ErrorMsg"].isNull()) - errorMsg_ = value["ErrorMsg"].asString(); - -} - -int UpdateNewBargeInSwitchResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -std::string UpdateNewBargeInSwitchResult::getErrorMsg()const -{ - return errorMsg_; -} - -std::string UpdateNewBargeInSwitchResult::getCode()const -{ - return code_; -} - -bool UpdateNewBargeInSwitchResult::getSuccess()const -{ - return success_; -} -