From cca7d9210b373f847ff9c73900a6832ffdd3d231 Mon Sep 17 00:00:00 2001 From: aws-sdk-cpp-automation Date: Mon, 7 Oct 2024 18:15:00 +0000 Subject: [PATCH] Documentation-only update for AWS Marketplace Reporting API. Add validation pattern to S3KeyPrefix on the EnableLogging API Add support for using the template from a previous job during job creation and listing parameter definitions for a job. This release adds support for the following capabilities: Configuration of the Gen AI system via AIAgent and AIPrompts. Integration support for Bedrock Knowledge Base. --- VERSION | 2 +- .../include/aws/deadline/DeadlineClient.h | 25 + .../aws/deadline/DeadlineServiceClientModel.h | 5 + .../aws/deadline/model/CreateJobRequest.h | 17 + .../include/aws/deadline/model/GetJobResult.h | 15 + .../aws/deadline/model/JobSearchSummary.h | 17 + .../include/aws/deadline/model/JobSummary.h | 17 + .../ListJobParameterDefinitionsRequest.h | 128 + .../model/ListJobParameterDefinitionsResult.h | 90 + .../source/DeadlineClient.cpp | 51 + .../source/model/CreateJobRequest.cpp | 9 +- .../source/model/GetJobResult.cpp | 6 + .../source/model/JobSearchSummary.cpp | 16 +- .../source/model/JobSummary.cpp | 16 +- .../ListJobParameterDefinitionsRequest.cpp | 53 + .../ListJobParameterDefinitionsResult.cpp | 57 + .../MarketplaceReportingClient.h | 78 +- .../include/aws/qconnect/QConnectClient.h | 490 +++- .../aws/qconnect/QConnectServiceClientModel.h | 95 + .../AIAgentAssociationConfigurationType.h | 30 + .../aws/qconnect/model/AIAgentConfiguration.h | 77 + .../qconnect/model/AIAgentConfigurationData.h | 63 + .../include/aws/qconnect/model/AIAgentData.h | 268 ++ .../aws/qconnect/model/AIAgentSummary.h | 268 ++ .../include/aws/qconnect/model/AIAgentType.h | 31 + .../qconnect/model/AIAgentVersionSummary.h | 72 + .../aws/qconnect/model/AIPromptAPIFormat.h | 31 + .../include/aws/qconnect/model/AIPromptData.h | 318 +++ .../aws/qconnect/model/AIPromptSummary.h | 302 +++ .../model/AIPromptTemplateConfiguration.h | 61 + .../aws/qconnect/model/AIPromptTemplateType.h | 30 + .../include/aws/qconnect/model/AIPromptType.h | 32 + .../qconnect/model/AIPromptVersionSummary.h | 72 + ...AnswerRecommendationAIAgentConfiguration.h | 118 + .../model/AppIntegrationsConfiguration.h | 2 +- .../aws/qconnect/model/AssistantData.h | 24 +- .../aws/qconnect/model/AssistantSummary.h | 24 +- .../qconnect/model/AssociationConfiguration.h | 95 + .../model/AssociationConfigurationData.h | 61 + ...ckFoundationModelConfigurationForParsing.h | 78 + .../qconnect/model/ChunkingConfiguration.h | 119 + .../aws/qconnect/model/ChunkingStrategy.h | 33 + .../include/aws/qconnect/model/CitationSpan.h | 69 + .../aws/qconnect/model/ContentReference.h | 33 + .../aws/qconnect/model/CreateAIAgentRequest.h | 184 ++ .../aws/qconnect/model/CreateAIAgentResult.h | 66 + .../model/CreateAIAgentVersionRequest.h | 117 + .../model/CreateAIAgentVersionResult.h | 77 + .../qconnect/model/CreateAIPromptRequest.h | 234 ++ .../aws/qconnect/model/CreateAIPromptResult.h | 66 + .../model/CreateAIPromptVersionRequest.h | 112 + .../model/CreateAIPromptVersionResult.h | 77 + .../model/CreateKnowledgeBaseRequest.h | 16 + .../aws/qconnect/model/CreateSessionRequest.h | 24 +- .../include/aws/qconnect/model/DataDetails.h | 16 + .../aws/qconnect/model/DeleteAIAgentRequest.h | 75 + .../aws/qconnect/model/DeleteAIAgentResult.h | 52 + .../model/DeleteAIAgentVersionRequest.h | 88 + .../model/DeleteAIAgentVersionResult.h | 52 + .../qconnect/model/DeleteAIPromptRequest.h | 75 + .../aws/qconnect/model/DeleteAIPromptResult.h | 52 + .../model/DeleteAIPromptVersionRequest.h | 87 + .../model/DeleteAIPromptVersionResult.h | 52 + .../model/FixedSizeChunkingConfiguration.h | 70 + .../aws/qconnect/model/GetAIAgentRequest.h | 75 + .../aws/qconnect/model/GetAIAgentResult.h | 79 + .../aws/qconnect/model/GetAIPromptRequest.h | 74 + .../aws/qconnect/model/GetAIPromptResult.h | 79 + .../model/HierarchicalChunkingConfiguration.h | 78 + .../HierarchicalChunkingLevelConfiguration.h | 55 + .../model/IntentDetectedDataDetails.h | 78 + .../aws/qconnect/model/IntentInputData.h | 61 + ...nowledgeBaseAssociationConfigurationData.h | 89 + .../aws/qconnect/model/KnowledgeBaseData.h | 51 + .../qconnect/model/KnowledgeBaseSearchType.h | 31 + .../aws/qconnect/model/KnowledgeBaseSummary.h | 16 + .../aws/qconnect/model/KnowledgeBaseType.h | 4 +- .../model/ListAIAgentVersionsRequest.h | 130 + .../model/ListAIAgentVersionsResult.h | 85 + .../aws/qconnect/model/ListAIAgentsRequest.h | 112 + .../aws/qconnect/model/ListAIAgentsResult.h | 85 + .../model/ListAIPromptVersionsRequest.h | 130 + .../model/ListAIPromptVersionsResult.h | 85 + .../aws/qconnect/model/ListAIPromptsRequest.h | 112 + .../aws/qconnect/model/ListAIPromptsResult.h | 85 + .../model/ManagedSourceConfiguration.h | 59 + .../model/ManualSearchAIAgentConfiguration.h | 82 + .../include/aws/qconnect/model/Origin.h | 31 + .../aws/qconnect/model/ParsingConfiguration.h | 80 + .../aws/qconnect/model/ParsingPrompt.h | 62 + .../aws/qconnect/model/ParsingStrategy.h | 30 + .../aws/qconnect/model/QueryInputData.h | 75 + .../aws/qconnect/model/QueryResultType.h | 1 + .../aws/qconnect/model/QueryTextInputData.h | 61 + .../aws/qconnect/model/RecommendationType.h | 3 +- .../aws/qconnect/model/ReferenceType.h | 31 + .../model/RemoveAssistantAIAgentRequest.h | 80 + .../model/RemoveAssistantAIAgentResult.h | 52 + .../aws/qconnect/model/RuntimeSessionData.h | 78 + .../qconnect/model/RuntimeSessionDataValue.h | 62 + .../include/aws/qconnect/model/SeedUrl.h | 61 + .../model/SemanticChunkingConfiguration.h | 84 + .../include/aws/qconnect/model/SessionData.h | 24 +- .../aws/qconnect/model/SessionDataNamespace.h | 30 + .../aws/qconnect/model/SourceConfiguration.h | 16 + .../qconnect/model/SourceContentDataDetails.h | 17 + .../include/aws/qconnect/model/Status.h | 35 + .../include/aws/qconnect/model/SyncStatus.h | 33 + ...extFullAIPromptEditTemplateConfiguration.h | 62 + .../aws/qconnect/model/UpdateAIAgentRequest.h | 145 + .../aws/qconnect/model/UpdateAIAgentResult.h | 66 + .../qconnect/model/UpdateAIPromptRequest.h | 145 + .../aws/qconnect/model/UpdateAIPromptResult.h | 66 + .../model/UpdateAssistantAIAgentRequest.h | 91 + .../model/UpdateAssistantAIAgentResult.h | 64 + .../qconnect/model/UpdateSessionDataRequest.h | 111 + .../qconnect/model/UpdateSessionDataResult.h | 114 + .../aws/qconnect/model/UpdateSessionRequest.h | 23 + .../aws/qconnect/model/UrlConfiguration.h | 63 + .../model/VectorIngestionConfiguration.h | 78 + .../aws/qconnect/model/VisibilityStatus.h | 31 + .../qconnect/model/WebCrawlerConfiguration.h | 143 + .../aws/qconnect/model/WebCrawlerLimits.h | 56 + .../include/aws/qconnect/model/WebScopeType.h | 31 + .../source/QConnectClient.cpp | 767 ++++++ .../AIAgentAssociationConfigurationType.cpp | 65 + .../source/model/AIAgentConfiguration.cpp | 73 + .../source/model/AIAgentConfigurationData.cpp | 59 + .../source/model/AIAgentData.cpp | 234 ++ .../source/model/AIAgentSummary.cpp | 234 ++ .../source/model/AIAgentType.cpp | 72 + .../source/model/AIAgentVersionSummary.cpp | 74 + .../source/model/AIPromptAPIFormat.cpp | 72 + .../source/model/AIPromptData.cpp | 276 ++ .../source/model/AIPromptSummary.cpp | 262 ++ .../model/AIPromptTemplateConfiguration.cpp | 59 + .../source/model/AIPromptTemplateType.cpp | 65 + .../source/model/AIPromptType.cpp | 79 + .../source/model/AIPromptVersionSummary.cpp | 74 + ...swerRecommendationAIAgentConfiguration.cpp | 109 + .../source/model/AssistantData.cpp | 22 + .../source/model/AssistantSummary.cpp | 22 + .../source/model/AssociationConfiguration.cpp | 87 + .../model/AssociationConfigurationData.cpp | 59 + ...FoundationModelConfigurationForParsing.cpp | 73 + .../source/model/ChunkingConfiguration.cpp | 101 + .../source/model/ChunkingStrategy.cpp | 86 + .../source/model/CitationSpan.cpp | 75 + .../source/model/ContentReference.cpp | 30 +- .../source/model/CreateAIAgentRequest.cpp | 84 + .../source/model/CreateAIAgentResult.cpp | 48 + .../model/CreateAIAgentVersionRequest.cpp | 44 + .../model/CreateAIAgentVersionResult.cpp | 56 + .../source/model/CreateAIPromptRequest.cpp | 105 + .../source/model/CreateAIPromptResult.cpp | 48 + .../model/CreateAIPromptVersionRequest.cpp | 44 + .../model/CreateAIPromptVersionResult.cpp | 56 + .../model/CreateKnowledgeBaseRequest.cpp | 9 +- .../source/model/CreateSessionRequest.cpp | 12 + .../source/model/DataDetails.cpp | 14 + .../source/model/DeleteAIAgentRequest.cpp | 28 + .../source/model/DeleteAIAgentResult.cpp | 42 + .../model/DeleteAIAgentVersionRequest.cpp | 30 + .../model/DeleteAIAgentVersionResult.cpp | 42 + .../source/model/DeleteAIPromptRequest.cpp | 28 + .../source/model/DeleteAIPromptResult.cpp | 42 + .../model/DeleteAIPromptVersionRequest.cpp | 30 + .../model/DeleteAIPromptVersionResult.cpp | 42 + .../model/FixedSizeChunkingConfiguration.cpp | 75 + .../source/model/GetAIAgentRequest.cpp | 28 + .../source/model/GetAIAgentResult.cpp | 56 + .../source/model/GetAIPromptRequest.cpp | 28 + .../source/model/GetAIPromptResult.cpp | 56 + .../HierarchicalChunkingConfiguration.cpp | 82 + ...HierarchicalChunkingLevelConfiguration.cpp | 60 + .../model/IntentDetectedDataDetails.cpp | 73 + .../source/model/IntentInputData.cpp | 59 + ...wledgeBaseAssociationConfigurationData.cpp | 88 + .../source/model/KnowledgeBaseData.cpp | 52 +- .../source/model/KnowledgeBaseSearchType.cpp | 72 + .../source/model/KnowledgeBaseSummary.cpp | 16 +- .../source/model/KnowledgeBaseType.cpp | 14 + .../model/ListAIAgentVersionsRequest.cpp | 61 + .../model/ListAIAgentVersionsResult.cpp | 57 + .../source/model/ListAIAgentsRequest.cpp | 60 + .../source/model/ListAIAgentsResult.cpp | 57 + .../model/ListAIPromptVersionsRequest.cpp | 61 + .../model/ListAIPromptVersionsResult.cpp | 57 + .../source/model/ListAIPromptsRequest.cpp | 60 + .../source/model/ListAIPromptsResult.cpp | 57 + .../model/ManagedSourceConfiguration.cpp | 59 + .../ManualSearchAIAgentConfiguration.cpp | 81 + .../source/model/Origin.cpp | 72 + .../source/model/ParsingConfiguration.cpp | 73 + .../source/model/ParsingPrompt.cpp | 59 + .../source/model/ParsingStrategy.cpp | 65 + .../source/model/QueryInputData.cpp | 73 + .../source/model/QueryResultType.cpp | 7 + .../source/model/QueryTextInputData.cpp | 59 + .../source/model/RecommendationType.cpp | 7 + .../source/model/ReferenceType.cpp | 72 + .../model/RemoveAssistantAIAgentRequest.cpp | 43 + .../model/RemoveAssistantAIAgentResult.cpp | 42 + .../source/model/RuntimeSessionData.cpp | 73 + .../source/model/RuntimeSessionDataValue.cpp | 59 + .../source/model/SeedUrl.cpp | 59 + .../model/SemanticChunkingConfiguration.cpp | 90 + .../source/model/SessionData.cpp | 22 + .../source/model/SessionDataNamespace.cpp | 65 + .../source/model/SourceConfiguration.cpp | 16 +- .../source/model/SourceContentDataDetails.cpp | 14 + .../source/model/Status.cpp | 100 + .../source/model/SyncStatus.cpp | 86 + ...tFullAIPromptEditTemplateConfiguration.cpp | 59 + .../source/model/UpdateAIAgentRequest.cpp | 59 + .../source/model/UpdateAIAgentResult.cpp | 48 + .../source/model/UpdateAIPromptRequest.cpp | 59 + .../source/model/UpdateAIPromptResult.cpp | 48 + .../model/UpdateAssistantAIAgentRequest.cpp | 43 + .../model/UpdateAssistantAIAgentResult.cpp | 48 + .../source/model/UpdateSessionDataRequest.cpp | 49 + .../source/model/UpdateSessionDataResult.cpp | 71 + .../source/model/UpdateSessionRequest.cpp | 12 + .../source/model/UrlConfiguration.cpp | 67 + .../model/VectorIngestionConfiguration.cpp | 73 + .../source/model/VisibilityStatus.cpp | 72 + .../source/model/WebCrawlerConfiguration.cpp | 131 + .../source/model/WebCrawlerLimits.cpp | 60 + .../source/model/WebScopeType.cpp | 72 + .../aws/redshift/model/EnableLoggingRequest.h | 12 +- .../include/aws/core/VersionConfig.h | 4 +- .../deadline-2023-10-12.normal.json | 101 +- ...rketplace-reporting-2018-05-10.normal.json | 4 +- .../qconnect-2020-10-19.normal.json | 2368 ++++++++++++++++- .../redshift-2012-12-01.normal.json | 11 +- 235 files changed, 18858 insertions(+), 131 deletions(-) create mode 100644 generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/ListJobParameterDefinitionsRequest.h create mode 100644 generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/ListJobParameterDefinitionsResult.h create mode 100644 generated/src/aws-cpp-sdk-deadline/source/model/ListJobParameterDefinitionsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-deadline/source/model/ListJobParameterDefinitionsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentAssociationConfigurationType.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentConfigurationData.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentData.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentSummary.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentType.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentVersionSummary.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptAPIFormat.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptData.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptSummary.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptTemplateConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptTemplateType.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptType.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptVersionSummary.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AnswerRecommendationAIAgentConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssociationConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssociationConfigurationData.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/BedrockFoundationModelConfigurationForParsing.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ChunkingConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ChunkingStrategy.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CitationSpan.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentVersionRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentVersionResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptVersionRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptVersionResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentVersionRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentVersionResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptVersionRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptVersionResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/FixedSizeChunkingConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIAgentRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIAgentResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIPromptRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIPromptResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/HierarchicalChunkingConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/HierarchicalChunkingLevelConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/IntentDetectedDataDetails.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/IntentInputData.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseAssociationConfigurationData.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseSearchType.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentVersionsRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentVersionsResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentsRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentsResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptVersionsRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptVersionsResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptsRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptsResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ManagedSourceConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ManualSearchAIAgentConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/Origin.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingPrompt.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingStrategy.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryInputData.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryTextInputData.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ReferenceType.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RemoveAssistantAIAgentRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RemoveAssistantAIAgentResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RuntimeSessionData.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RuntimeSessionDataValue.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SeedUrl.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SemanticChunkingConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SessionDataNamespace.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/Status.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SyncStatus.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/TextFullAIPromptEditTemplateConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIAgentRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIAgentResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIPromptRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIPromptResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAssistantAIAgentRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAssistantAIAgentResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionDataRequest.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionDataResult.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UrlConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/VectorIngestionConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/VisibilityStatus.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebCrawlerConfiguration.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebCrawlerLimits.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebScopeType.h create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentAssociationConfigurationType.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentConfigurationData.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentData.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentType.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentVersionSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptAPIFormat.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptData.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptTemplateConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptTemplateType.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptType.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptVersionSummary.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AnswerRecommendationAIAgentConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AssociationConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/AssociationConfigurationData.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/BedrockFoundationModelConfigurationForParsing.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ChunkingConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ChunkingStrategy.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/CitationSpan.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentVersionRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentVersionResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptVersionRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptVersionResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentVersionRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentVersionResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptVersionRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptVersionResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/FixedSizeChunkingConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/GetAIAgentRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/GetAIAgentResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/GetAIPromptRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/GetAIPromptResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/HierarchicalChunkingConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/HierarchicalChunkingLevelConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/IntentDetectedDataDetails.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/IntentInputData.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseAssociationConfigurationData.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseSearchType.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentVersionsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentVersionsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptVersionsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptVersionsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptsRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptsResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ManagedSourceConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ManualSearchAIAgentConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/Origin.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ParsingConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ParsingPrompt.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ParsingStrategy.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/QueryInputData.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/QueryTextInputData.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/ReferenceType.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/RemoveAssistantAIAgentRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/RemoveAssistantAIAgentResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/RuntimeSessionData.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/RuntimeSessionDataValue.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/SeedUrl.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/SemanticChunkingConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/SessionDataNamespace.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/Status.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/SyncStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/TextFullAIPromptEditTemplateConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIAgentRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIAgentResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIPromptRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIPromptResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAssistantAIAgentRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAssistantAIAgentResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionDataRequest.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionDataResult.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/UrlConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/VectorIngestionConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/VisibilityStatus.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/WebCrawlerConfiguration.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/WebCrawlerLimits.cpp create mode 100644 generated/src/aws-cpp-sdk-qconnect/source/model/WebScopeType.cpp diff --git a/VERSION b/VERSION index c91ea58cfe3..b199bef6f0d 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.11.420 \ No newline at end of file +1.11.421 \ No newline at end of file diff --git a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/DeadlineClient.h b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/DeadlineClient.h index d91ebc7bb31..18bd30c7708 100644 --- a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/DeadlineClient.h +++ b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/DeadlineClient.h @@ -1643,6 +1643,31 @@ namespace deadline return SubmitAsync(&DeadlineClient::ListJobMembers, request, handler, context); } + /** + *

Lists parameter definitions of a job.

See Also:

AWS + * API Reference

+ */ + virtual Model::ListJobParameterDefinitionsOutcome ListJobParameterDefinitions(const Model::ListJobParameterDefinitionsRequest& request) const; + + /** + * A Callable wrapper for ListJobParameterDefinitions that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListJobParameterDefinitionsOutcomeCallable ListJobParameterDefinitionsCallable(const ListJobParameterDefinitionsRequestT& request) const + { + return SubmitCallable(&DeadlineClient::ListJobParameterDefinitions, request); + } + + /** + * An Async wrapper for ListJobParameterDefinitions that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListJobParameterDefinitionsAsync(const ListJobParameterDefinitionsRequestT& request, const ListJobParameterDefinitionsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&DeadlineClient::ListJobParameterDefinitions, request, handler, context); + } + /** *

Lists jobs.

See Also:

AWS diff --git a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/DeadlineServiceClientModel.h b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/DeadlineServiceClientModel.h index ecd99ffd545..348d2c9a3c0 100644 --- a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/DeadlineServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/DeadlineServiceClientModel.h @@ -79,6 +79,7 @@ #include #include #include +#include #include #include #include @@ -225,6 +226,7 @@ namespace Aws class ListFleetMembersRequest; class ListFleetsRequest; class ListJobMembersRequest; + class ListJobParameterDefinitionsRequest; class ListJobsRequest; class ListLicenseEndpointsRequest; class ListMeteredProductsRequest; @@ -330,6 +332,7 @@ namespace Aws typedef Aws::Utils::Outcome ListFleetMembersOutcome; typedef Aws::Utils::Outcome ListFleetsOutcome; typedef Aws::Utils::Outcome ListJobMembersOutcome; + typedef Aws::Utils::Outcome ListJobParameterDefinitionsOutcome; typedef Aws::Utils::Outcome ListJobsOutcome; typedef Aws::Utils::Outcome ListLicenseEndpointsOutcome; typedef Aws::Utils::Outcome ListMeteredProductsOutcome; @@ -435,6 +438,7 @@ namespace Aws typedef std::future ListFleetMembersOutcomeCallable; typedef std::future ListFleetsOutcomeCallable; typedef std::future ListJobMembersOutcomeCallable; + typedef std::future ListJobParameterDefinitionsOutcomeCallable; typedef std::future ListJobsOutcomeCallable; typedef std::future ListLicenseEndpointsOutcomeCallable; typedef std::future ListMeteredProductsOutcomeCallable; @@ -543,6 +547,7 @@ namespace Aws typedef std::function&) > ListFleetMembersResponseReceivedHandler; typedef std::function&) > ListFleetsResponseReceivedHandler; typedef std::function&) > ListJobMembersResponseReceivedHandler; + typedef std::function&) > ListJobParameterDefinitionsResponseReceivedHandler; typedef std::function&) > ListJobsResponseReceivedHandler; typedef std::function&) > ListLicenseEndpointsResponseReceivedHandler; typedef std::function&) > ListMeteredProductsResponseReceivedHandler; diff --git a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/CreateJobRequest.h b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/CreateJobRequest.h index 1f095580944..bc40c1b249a 100644 --- a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/CreateJobRequest.h +++ b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/CreateJobRequest.h @@ -199,6 +199,20 @@ namespace Model inline void SetMaxRetriesPerTask(int value) { m_maxRetriesPerTaskHasBeenSet = true; m_maxRetriesPerTask = value; } inline CreateJobRequest& WithMaxRetriesPerTask(int value) { SetMaxRetriesPerTask(value); return *this;} ///@} + + ///@{ + /** + *

The job ID for the source job.

+ */ + inline const Aws::String& GetSourceJobId() const{ return m_sourceJobId; } + inline bool SourceJobIdHasBeenSet() const { return m_sourceJobIdHasBeenSet; } + inline void SetSourceJobId(const Aws::String& value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId = value; } + inline void SetSourceJobId(Aws::String&& value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId = std::move(value); } + inline void SetSourceJobId(const char* value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId.assign(value); } + inline CreateJobRequest& WithSourceJobId(const Aws::String& value) { SetSourceJobId(value); return *this;} + inline CreateJobRequest& WithSourceJobId(Aws::String&& value) { SetSourceJobId(std::move(value)); return *this;} + inline CreateJobRequest& WithSourceJobId(const char* value) { SetSourceJobId(value); return *this;} + ///@} private: Aws::String m_farmId; @@ -236,6 +250,9 @@ namespace Model int m_maxRetriesPerTask; bool m_maxRetriesPerTaskHasBeenSet = false; + + Aws::String m_sourceJobId; + bool m_sourceJobIdHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/GetJobResult.h b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/GetJobResult.h index 79d4579558a..13e675c8a47 100644 --- a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/GetJobResult.h +++ b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/GetJobResult.h @@ -278,6 +278,19 @@ namespace Model inline GetJobResult& WithDescription(const char* value) { SetDescription(value); return *this;} ///@} + ///@{ + /** + *

The job ID for the source job.

+ */ + inline const Aws::String& GetSourceJobId() const{ return m_sourceJobId; } + inline void SetSourceJobId(const Aws::String& value) { m_sourceJobId = value; } + inline void SetSourceJobId(Aws::String&& value) { m_sourceJobId = std::move(value); } + inline void SetSourceJobId(const char* value) { m_sourceJobId.assign(value); } + inline GetJobResult& WithSourceJobId(const Aws::String& value) { SetSourceJobId(value); return *this;} + inline GetJobResult& WithSourceJobId(Aws::String&& value) { SetSourceJobId(std::move(value)); return *this;} + inline GetJobResult& WithSourceJobId(const char* value) { SetSourceJobId(value); return *this;} + ///@} + ///@{ inline const Aws::String& GetRequestId() const{ return m_requestId; } @@ -330,6 +343,8 @@ namespace Model Aws::String m_description; + Aws::String m_sourceJobId; + Aws::String m_requestId; }; diff --git a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/JobSearchSummary.h b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/JobSearchSummary.h index 94b7ad97046..0ca7e533535 100644 --- a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/JobSearchSummary.h +++ b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/JobSearchSummary.h @@ -257,6 +257,20 @@ namespace Model inline JobSearchSummary& AddJobParameters(const char* key, JobParameter&& value) { m_jobParametersHasBeenSet = true; m_jobParameters.emplace(key, std::move(value)); return *this; } inline JobSearchSummary& AddJobParameters(const char* key, const JobParameter& value) { m_jobParametersHasBeenSet = true; m_jobParameters.emplace(key, value); return *this; } ///@} + + ///@{ + /** + *

The job ID for the source job.

+ */ + inline const Aws::String& GetSourceJobId() const{ return m_sourceJobId; } + inline bool SourceJobIdHasBeenSet() const { return m_sourceJobIdHasBeenSet; } + inline void SetSourceJobId(const Aws::String& value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId = value; } + inline void SetSourceJobId(Aws::String&& value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId = std::move(value); } + inline void SetSourceJobId(const char* value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId.assign(value); } + inline JobSearchSummary& WithSourceJobId(const Aws::String& value) { SetSourceJobId(value); return *this;} + inline JobSearchSummary& WithSourceJobId(Aws::String&& value) { SetSourceJobId(std::move(value)); return *this;} + inline JobSearchSummary& WithSourceJobId(const char* value) { SetSourceJobId(value); return *this;} + ///@} private: Aws::String m_jobId; @@ -306,6 +320,9 @@ namespace Model Aws::Map m_jobParameters; bool m_jobParametersHasBeenSet = false; + + Aws::String m_sourceJobId; + bool m_sourceJobIdHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/JobSummary.h b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/JobSummary.h index 29741e9e1d9..fb2701896e1 100644 --- a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/JobSummary.h +++ b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/JobSummary.h @@ -250,6 +250,20 @@ namespace Model inline void SetMaxRetriesPerTask(int value) { m_maxRetriesPerTaskHasBeenSet = true; m_maxRetriesPerTask = value; } inline JobSummary& WithMaxRetriesPerTask(int value) { SetMaxRetriesPerTask(value); return *this;} ///@} + + ///@{ + /** + *

The job ID for the source job.

+ */ + inline const Aws::String& GetSourceJobId() const{ return m_sourceJobId; } + inline bool SourceJobIdHasBeenSet() const { return m_sourceJobIdHasBeenSet; } + inline void SetSourceJobId(const Aws::String& value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId = value; } + inline void SetSourceJobId(Aws::String&& value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId = std::move(value); } + inline void SetSourceJobId(const char* value) { m_sourceJobIdHasBeenSet = true; m_sourceJobId.assign(value); } + inline JobSummary& WithSourceJobId(const Aws::String& value) { SetSourceJobId(value); return *this;} + inline JobSummary& WithSourceJobId(Aws::String&& value) { SetSourceJobId(std::move(value)); return *this;} + inline JobSummary& WithSourceJobId(const char* value) { SetSourceJobId(value); return *this;} + ///@} private: Aws::String m_jobId; @@ -299,6 +313,9 @@ namespace Model int m_maxRetriesPerTask; bool m_maxRetriesPerTaskHasBeenSet = false; + + Aws::String m_sourceJobId; + bool m_sourceJobIdHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/ListJobParameterDefinitionsRequest.h b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/ListJobParameterDefinitionsRequest.h new file mode 100644 index 00000000000..41a3abdfc57 --- /dev/null +++ b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/ListJobParameterDefinitionsRequest.h @@ -0,0 +1,128 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace deadline +{ +namespace Model +{ + + /** + */ + class ListJobParameterDefinitionsRequest : public DeadlineRequest + { + public: + AWS_DEADLINE_API ListJobParameterDefinitionsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListJobParameterDefinitions"; } + + AWS_DEADLINE_API Aws::String SerializePayload() const override; + + AWS_DEADLINE_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

The farm ID of the job to list.

+ */ + inline const Aws::String& GetFarmId() const{ return m_farmId; } + inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; } + inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; } + inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); } + inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); } + inline ListJobParameterDefinitionsRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;} + inline ListJobParameterDefinitionsRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;} + inline ListJobParameterDefinitionsRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;} + ///@} + + ///@{ + /** + *

The job ID to include on the list.

+ */ + inline const Aws::String& GetJobId() const{ return m_jobId; } + inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; } + inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; } + inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); } + inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); } + inline ListJobParameterDefinitionsRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;} + inline ListJobParameterDefinitionsRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;} + inline ListJobParameterDefinitionsRequest& WithJobId(const char* value) { SetJobId(value); return *this;} + ///@} + + ///@{ + /** + *

The queue ID to include on the list.

+ */ + inline const Aws::String& GetQueueId() const{ return m_queueId; } + inline bool QueueIdHasBeenSet() const { return m_queueIdHasBeenSet; } + inline void SetQueueId(const Aws::String& value) { m_queueIdHasBeenSet = true; m_queueId = value; } + inline void SetQueueId(Aws::String&& value) { m_queueIdHasBeenSet = true; m_queueId = std::move(value); } + inline void SetQueueId(const char* value) { m_queueIdHasBeenSet = true; m_queueId.assign(value); } + inline ListJobParameterDefinitionsRequest& WithQueueId(const Aws::String& value) { SetQueueId(value); return *this;} + inline ListJobParameterDefinitionsRequest& WithQueueId(Aws::String&& value) { SetQueueId(std::move(value)); return *this;} + inline ListJobParameterDefinitionsRequest& WithQueueId(const char* value) { SetQueueId(value); return *this;} + ///@} + + ///@{ + /** + *

The token for the next set of results, or null to start from the + * beginning.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListJobParameterDefinitionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListJobParameterDefinitionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListJobParameterDefinitionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

The maximum number of results to return. Use this parameter with + * NextToken to get results as a set of sequential pages.

+ */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListJobParameterDefinitionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + private: + + Aws::String m_farmId; + bool m_farmIdHasBeenSet = false; + + Aws::String m_jobId; + bool m_jobIdHasBeenSet = false; + + Aws::String m_queueId; + bool m_queueIdHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + }; + +} // namespace Model +} // namespace deadline +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/ListJobParameterDefinitionsResult.h b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/ListJobParameterDefinitionsResult.h new file mode 100644 index 00000000000..2d4ac2a47e5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-deadline/include/aws/deadline/model/ListJobParameterDefinitionsResult.h @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace deadline +{ +namespace Model +{ + class ListJobParameterDefinitionsResult + { + public: + AWS_DEADLINE_API ListJobParameterDefinitionsResult(); + AWS_DEADLINE_API ListJobParameterDefinitionsResult(const Aws::AmazonWebServiceResult& result); + AWS_DEADLINE_API ListJobParameterDefinitionsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

Lists parameter definitions of a job.

+ */ + inline const Aws::Vector& GetJobParameterDefinitions() const{ return m_jobParameterDefinitions; } + inline void SetJobParameterDefinitions(const Aws::Vector& value) { m_jobParameterDefinitions = value; } + inline void SetJobParameterDefinitions(Aws::Vector&& value) { m_jobParameterDefinitions = std::move(value); } + inline ListJobParameterDefinitionsResult& WithJobParameterDefinitions(const Aws::Vector& value) { SetJobParameterDefinitions(value); return *this;} + inline ListJobParameterDefinitionsResult& WithJobParameterDefinitions(Aws::Vector&& value) { SetJobParameterDefinitions(std::move(value)); return *this;} + inline ListJobParameterDefinitionsResult& AddJobParameterDefinitions(const Aws::Utils::Document& value) { m_jobParameterDefinitions.push_back(value); return *this; } + inline ListJobParameterDefinitionsResult& AddJobParameterDefinitions(Aws::Utils::Document&& value) { m_jobParameterDefinitions.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

If Deadline Cloud returns nextToken, then there are more results + * available. The value of nextToken is a unique pagination token for + * each page. To retrieve the next page, call the operation again using the + * returned token. Keep all other arguments unchanged. If no results remain, then + * nextToken is set to null. Each pagination token + * expires after 24 hours. If you provide a token that isn't valid, then you + * receive an HTTP 400 ValidationException error.

+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListJobParameterDefinitionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListJobParameterDefinitionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListJobParameterDefinitionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListJobParameterDefinitionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListJobParameterDefinitionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListJobParameterDefinitionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_jobParameterDefinitions; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace deadline +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-deadline/source/DeadlineClient.cpp b/generated/src/aws-cpp-sdk-deadline/source/DeadlineClient.cpp index 7c041f8c191..c4bad72e583 100644 --- a/generated/src/aws-cpp-sdk-deadline/source/DeadlineClient.cpp +++ b/generated/src/aws-cpp-sdk-deadline/source/DeadlineClient.cpp @@ -82,6 +82,7 @@ #include #include #include +#include #include #include #include @@ -2897,6 +2898,56 @@ ListJobMembersOutcome DeadlineClient::ListJobMembers(const ListJobMembersRequest {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListJobParameterDefinitionsOutcome DeadlineClient::ListJobParameterDefinitions(const ListJobParameterDefinitionsRequest& request) const +{ + AWS_OPERATION_GUARD(ListJobParameterDefinitions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListJobParameterDefinitions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.FarmIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListJobParameterDefinitions", "Required field: FarmId, is not set"); + return ListJobParameterDefinitionsOutcome(Aws::Client::AWSError(DeadlineErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [FarmId]", false)); + } + if (!request.JobIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListJobParameterDefinitions", "Required field: JobId, is not set"); + return ListJobParameterDefinitionsOutcome(Aws::Client::AWSError(DeadlineErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [JobId]", false)); + } + if (!request.QueueIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListJobParameterDefinitions", "Required field: QueueId, is not set"); + return ListJobParameterDefinitionsOutcome(Aws::Client::AWSError(DeadlineErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [QueueId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListJobParameterDefinitions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListJobParameterDefinitions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListJobParameterDefinitions", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListJobParameterDefinitionsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListJobParameterDefinitions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + auto addPrefixErr = endpointResolutionOutcome.GetResult().AddPrefixIfMissing("management."); + AWS_CHECK(SERVICE_NAME, !addPrefixErr, addPrefixErr->GetMessage(), ListJobParameterDefinitionsOutcome(addPrefixErr.value())); + endpointResolutionOutcome.GetResult().AddPathSegments("/2023-10-12/farms/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetFarmId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/queues/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetQueueId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/jobs/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetJobId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/parameter-definitions"); + return ListJobParameterDefinitionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListJobsOutcome DeadlineClient::ListJobs(const ListJobsRequest& request) const { AWS_OPERATION_GUARD(ListJobs); diff --git a/generated/src/aws-cpp-sdk-deadline/source/model/CreateJobRequest.cpp b/generated/src/aws-cpp-sdk-deadline/source/model/CreateJobRequest.cpp index 5188f28ec21..a937905d484 100644 --- a/generated/src/aws-cpp-sdk-deadline/source/model/CreateJobRequest.cpp +++ b/generated/src/aws-cpp-sdk-deadline/source/model/CreateJobRequest.cpp @@ -31,7 +31,8 @@ CreateJobRequest::CreateJobRequest() : m_maxFailedTasksCount(0), m_maxFailedTasksCountHasBeenSet(false), m_maxRetriesPerTask(0), - m_maxRetriesPerTaskHasBeenSet(false) + m_maxRetriesPerTaskHasBeenSet(false), + m_sourceJobIdHasBeenSet(false) { } @@ -96,6 +97,12 @@ Aws::String CreateJobRequest::SerializePayload() const } + if(m_sourceJobIdHasBeenSet) + { + payload.WithString("sourceJobId", m_sourceJobId); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-deadline/source/model/GetJobResult.cpp b/generated/src/aws-cpp-sdk-deadline/source/model/GetJobResult.cpp index 504407a8cd4..3a287657c63 100644 --- a/generated/src/aws-cpp-sdk-deadline/source/model/GetJobResult.cpp +++ b/generated/src/aws-cpp-sdk-deadline/source/model/GetJobResult.cpp @@ -162,6 +162,12 @@ GetJobResult& GetJobResult::operator =(const Aws::AmazonWebServiceResult +#include +#include +#include + +#include + +using namespace Aws::deadline::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListJobParameterDefinitionsRequest::ListJobParameterDefinitionsRequest() : + m_farmIdHasBeenSet(false), + m_jobIdHasBeenSet(false), + m_queueIdHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false) +{ +} + +Aws::String ListJobParameterDefinitionsRequest::SerializePayload() const +{ + return {}; +} + +void ListJobParameterDefinitionsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-deadline/source/model/ListJobParameterDefinitionsResult.cpp b/generated/src/aws-cpp-sdk-deadline/source/model/ListJobParameterDefinitionsResult.cpp new file mode 100644 index 00000000000..3787161d540 --- /dev/null +++ b/generated/src/aws-cpp-sdk-deadline/source/model/ListJobParameterDefinitionsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::deadline::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListJobParameterDefinitionsResult::ListJobParameterDefinitionsResult() +{ +} + +ListJobParameterDefinitionsResult::ListJobParameterDefinitionsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListJobParameterDefinitionsResult& ListJobParameterDefinitionsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("jobParameterDefinitions")) + { + Aws::Utils::Array jobParameterDefinitionsJsonList = jsonValue.GetArray("jobParameterDefinitions"); + for(unsigned jobParameterDefinitionsIndex = 0; jobParameterDefinitionsIndex < jobParameterDefinitionsJsonList.GetLength(); ++jobParameterDefinitionsIndex) + { + m_jobParameterDefinitions.push_back(jobParameterDefinitionsJsonList[jobParameterDefinitionsIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingClient.h b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingClient.h index d217bc9e188..74ea908161b 100644 --- a/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingClient.h +++ b/generated/src/aws-cpp-sdk-marketplace-reporting/include/aws/marketplace-reporting/MarketplaceReportingClient.h @@ -16,50 +16,57 @@ namespace Aws namespace MarketplaceReporting { /** - *

The AWS Marketplace GetBuyerDashboard API enables you to get a - * procurement insights dashboard programmatically. The API gets the agreement and - * cost analysis dashboards with data for all of the Amazon Web Services accounts - * in your Amazon Web Services organization.

To use the API, you must - * complete the following prerequisites:

*/ class AWS_MARKETPLACEREPORTING_API MarketplaceReportingClient : public Aws::Client::AWSJsonClient, public Aws::Client::ClientWithAsyncTemplateMethods { @@ -121,12 +128,15 @@ namespace MarketplaceReporting /** *

Generates an embedding URL for an Amazon QuickSight dashboard for an - * anonymous user.

The following rules apply to a generated URL:

    - *
  • It contains a temporary bearer token, valid for 5 minutes after it is - * generated. Once redeemed within that period, it cannot be re-used again.

    - *
  • It has a session lifetime of one hour. The 5-minute validity - * period runs separately from the session lifetime.

See - * Also:

This API is available only to Amazon Web Services + * Organization management accounts or delegated administrators registered for the + * procurement insights + * (procurement-insights.marketplace.amazonaws.com) feature.

+ *

The following rules apply to a generated URL:

  • It + * contains a temporary bearer token, valid for 5 minutes after it is generated. + * Once redeemed within that period, it cannot be re-used again.

  • + *

    It has a session lifetime of one hour. The 5-minute validity period runs + * separately from the session lifetime.

See Also:

AWS * API Reference

*/ diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/QConnectClient.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/QConnectClient.h index 0bf14a65a8d..83725b3a41a 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/QConnectClient.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/QConnectClient.h @@ -16,7 +16,12 @@ namespace Aws namespace QConnect { /** - *

Powered by Amazon Bedrock: Amazon Web Services implements

  • Amazon + * Q actions

  • Amazon + * Q data types

  • Powered by Amazon Bedrock: + * Amazon Web Services implements automated * abuse detection. Because Amazon Q in Connect is built on Amazon Bedrock, * users can take full advantage of the controls implemented in Amazon Bedrock to @@ -95,6 +100,108 @@ namespace QConnect /* End of legacy constructors due deprecation */ virtual ~QConnectClient(); + /** + *

    Creates an Amazon Q in Connect AI Agent.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateAIAgentOutcome CreateAIAgent(const Model::CreateAIAgentRequest& request) const; + + /** + * A Callable wrapper for CreateAIAgent that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateAIAgentOutcomeCallable CreateAIAgentCallable(const CreateAIAgentRequestT& request) const + { + return SubmitCallable(&QConnectClient::CreateAIAgent, request); + } + + /** + * An Async wrapper for CreateAIAgent that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateAIAgentAsync(const CreateAIAgentRequestT& request, const CreateAIAgentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::CreateAIAgent, request, handler, context); + } + + /** + *

    Creates and Amazon Q in Connect AI Agent version.

    See Also:

    + * AWS + * API Reference

    + */ + virtual Model::CreateAIAgentVersionOutcome CreateAIAgentVersion(const Model::CreateAIAgentVersionRequest& request) const; + + /** + * A Callable wrapper for CreateAIAgentVersion that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateAIAgentVersionOutcomeCallable CreateAIAgentVersionCallable(const CreateAIAgentVersionRequestT& request) const + { + return SubmitCallable(&QConnectClient::CreateAIAgentVersion, request); + } + + /** + * An Async wrapper for CreateAIAgentVersion that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateAIAgentVersionAsync(const CreateAIAgentVersionRequestT& request, const CreateAIAgentVersionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::CreateAIAgentVersion, request, handler, context); + } + + /** + *

    Creates an Amazon Q in Connect AI Prompt.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::CreateAIPromptOutcome CreateAIPrompt(const Model::CreateAIPromptRequest& request) const; + + /** + * A Callable wrapper for CreateAIPrompt that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateAIPromptOutcomeCallable CreateAIPromptCallable(const CreateAIPromptRequestT& request) const + { + return SubmitCallable(&QConnectClient::CreateAIPrompt, request); + } + + /** + * An Async wrapper for CreateAIPrompt that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateAIPromptAsync(const CreateAIPromptRequestT& request, const CreateAIPromptResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::CreateAIPrompt, request, handler, context); + } + + /** + *

    Creates an Amazon Q in Connect AI Prompt version.

    See Also:

    + * AWS + * API Reference

    + */ + virtual Model::CreateAIPromptVersionOutcome CreateAIPromptVersion(const Model::CreateAIPromptVersionRequest& request) const; + + /** + * A Callable wrapper for CreateAIPromptVersion that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::CreateAIPromptVersionOutcomeCallable CreateAIPromptVersionCallable(const CreateAIPromptVersionRequestT& request) const + { + return SubmitCallable(&QConnectClient::CreateAIPromptVersion, request); + } + + /** + * An Async wrapper for CreateAIPromptVersion that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void CreateAIPromptVersionAsync(const CreateAIPromptVersionRequestT& request, const CreateAIPromptVersionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::CreateAIPromptVersion, request, handler, context); + } + /** *

    Creates an Amazon Q in Connect assistant.

    See Also:

    AWS @@ -306,6 +413,108 @@ namespace QConnect return SubmitAsync(&QConnectClient::CreateSession, request, handler, context); } + /** + *

    Deletes an Amazon Q in Connect AI Agent.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteAIAgentOutcome DeleteAIAgent(const Model::DeleteAIAgentRequest& request) const; + + /** + * A Callable wrapper for DeleteAIAgent that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteAIAgentOutcomeCallable DeleteAIAgentCallable(const DeleteAIAgentRequestT& request) const + { + return SubmitCallable(&QConnectClient::DeleteAIAgent, request); + } + + /** + * An Async wrapper for DeleteAIAgent that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteAIAgentAsync(const DeleteAIAgentRequestT& request, const DeleteAIAgentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::DeleteAIAgent, request, handler, context); + } + + /** + *

    Deletes an Amazon Q in Connect AI Agent Version.

    See Also:

    + * AWS + * API Reference

    + */ + virtual Model::DeleteAIAgentVersionOutcome DeleteAIAgentVersion(const Model::DeleteAIAgentVersionRequest& request) const; + + /** + * A Callable wrapper for DeleteAIAgentVersion that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteAIAgentVersionOutcomeCallable DeleteAIAgentVersionCallable(const DeleteAIAgentVersionRequestT& request) const + { + return SubmitCallable(&QConnectClient::DeleteAIAgentVersion, request); + } + + /** + * An Async wrapper for DeleteAIAgentVersion that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteAIAgentVersionAsync(const DeleteAIAgentVersionRequestT& request, const DeleteAIAgentVersionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::DeleteAIAgentVersion, request, handler, context); + } + + /** + *

    Deletes an Amazon Q in Connect AI Prompt.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::DeleteAIPromptOutcome DeleteAIPrompt(const Model::DeleteAIPromptRequest& request) const; + + /** + * A Callable wrapper for DeleteAIPrompt that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteAIPromptOutcomeCallable DeleteAIPromptCallable(const DeleteAIPromptRequestT& request) const + { + return SubmitCallable(&QConnectClient::DeleteAIPrompt, request); + } + + /** + * An Async wrapper for DeleteAIPrompt that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteAIPromptAsync(const DeleteAIPromptRequestT& request, const DeleteAIPromptResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::DeleteAIPrompt, request, handler, context); + } + + /** + *

    Delete and Amazon Q in Connect AI Prompt version.

    See Also:

    + * AWS + * API Reference

    + */ + virtual Model::DeleteAIPromptVersionOutcome DeleteAIPromptVersion(const Model::DeleteAIPromptVersionRequest& request) const; + + /** + * A Callable wrapper for DeleteAIPromptVersion that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::DeleteAIPromptVersionOutcomeCallable DeleteAIPromptVersionCallable(const DeleteAIPromptVersionRequestT& request) const + { + return SubmitCallable(&QConnectClient::DeleteAIPromptVersion, request); + } + + /** + * An Async wrapper for DeleteAIPromptVersion that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void DeleteAIPromptVersionAsync(const DeleteAIPromptVersionRequestT& request, const DeleteAIPromptVersionResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::DeleteAIPromptVersion, request, handler, context); + } + /** *

    Deletes an assistant.

    See Also:

    AWS @@ -496,6 +705,56 @@ namespace QConnect return SubmitAsync(&QConnectClient::DeleteQuickResponse, request, handler, context); } + /** + *

    Gets an Amazon Q in Connect AI Agent.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetAIAgentOutcome GetAIAgent(const Model::GetAIAgentRequest& request) const; + + /** + * A Callable wrapper for GetAIAgent that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetAIAgentOutcomeCallable GetAIAgentCallable(const GetAIAgentRequestT& request) const + { + return SubmitCallable(&QConnectClient::GetAIAgent, request); + } + + /** + * An Async wrapper for GetAIAgent that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetAIAgentAsync(const GetAIAgentRequestT& request, const GetAIAgentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::GetAIAgent, request, handler, context); + } + + /** + *

    Gets and Amazon Q in Connect AI Prompt.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::GetAIPromptOutcome GetAIPrompt(const Model::GetAIPromptRequest& request) const; + + /** + * A Callable wrapper for GetAIPrompt that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::GetAIPromptOutcomeCallable GetAIPromptCallable(const GetAIPromptRequestT& request) const + { + return SubmitCallable(&QConnectClient::GetAIPrompt, request); + } + + /** + * An Async wrapper for GetAIPrompt that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void GetAIPromptAsync(const GetAIPromptRequestT& request, const GetAIPromptResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::GetAIPrompt, request, handler, context); + } + /** *

    Retrieves information about an assistant.

    See Also:

    AWS @@ -728,6 +987,107 @@ namespace QConnect return SubmitAsync(&QConnectClient::GetSession, request, handler, context); } + /** + *

    List AI Agent versions.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListAIAgentVersionsOutcome ListAIAgentVersions(const Model::ListAIAgentVersionsRequest& request) const; + + /** + * A Callable wrapper for ListAIAgentVersions that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListAIAgentVersionsOutcomeCallable ListAIAgentVersionsCallable(const ListAIAgentVersionsRequestT& request) const + { + return SubmitCallable(&QConnectClient::ListAIAgentVersions, request); + } + + /** + * An Async wrapper for ListAIAgentVersions that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListAIAgentVersionsAsync(const ListAIAgentVersionsRequestT& request, const ListAIAgentVersionsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::ListAIAgentVersions, request, handler, context); + } + + /** + *

    Lists AI Agents.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListAIAgentsOutcome ListAIAgents(const Model::ListAIAgentsRequest& request) const; + + /** + * A Callable wrapper for ListAIAgents that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListAIAgentsOutcomeCallable ListAIAgentsCallable(const ListAIAgentsRequestT& request) const + { + return SubmitCallable(&QConnectClient::ListAIAgents, request); + } + + /** + * An Async wrapper for ListAIAgents that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListAIAgentsAsync(const ListAIAgentsRequestT& request, const ListAIAgentsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::ListAIAgents, request, handler, context); + } + + /** + *

    Lists AI Prompt versions.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListAIPromptVersionsOutcome ListAIPromptVersions(const Model::ListAIPromptVersionsRequest& request) const; + + /** + * A Callable wrapper for ListAIPromptVersions that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListAIPromptVersionsOutcomeCallable ListAIPromptVersionsCallable(const ListAIPromptVersionsRequestT& request) const + { + return SubmitCallable(&QConnectClient::ListAIPromptVersions, request); + } + + /** + * An Async wrapper for ListAIPromptVersions that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListAIPromptVersionsAsync(const ListAIPromptVersionsRequestT& request, const ListAIPromptVersionsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::ListAIPromptVersions, request, handler, context); + } + + /** + *

    Lists the AI Prompts available on the Amazon Q in Connect + * assistant.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::ListAIPromptsOutcome ListAIPrompts(const Model::ListAIPromptsRequest& request) const; + + /** + * A Callable wrapper for ListAIPrompts that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::ListAIPromptsOutcomeCallable ListAIPromptsCallable(const ListAIPromptsRequestT& request) const + { + return SubmitCallable(&QConnectClient::ListAIPrompts, request); + } + + /** + * An Async wrapper for ListAIPrompts that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void ListAIPromptsAsync(const ListAIPromptsRequestT& request, const ListAIPromptsResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::ListAIPrompts, request, handler, context); + } + /** *

    Lists information about assistant associations.

    See Also:

    AWS @@ -987,6 +1347,32 @@ namespace QConnect return SubmitAsync(&QConnectClient::PutFeedback, request, handler, context); } + /** + *

    Removes the AI Agent that is set for use by defafult on an Amazon Q in + * Connect Assistant.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::RemoveAssistantAIAgentOutcome RemoveAssistantAIAgent(const Model::RemoveAssistantAIAgentRequest& request) const; + + /** + * A Callable wrapper for RemoveAssistantAIAgent that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::RemoveAssistantAIAgentOutcomeCallable RemoveAssistantAIAgentCallable(const RemoveAssistantAIAgentRequestT& request) const + { + return SubmitCallable(&QConnectClient::RemoveAssistantAIAgent, request); + } + + /** + * An Async wrapper for RemoveAssistantAIAgent that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void RemoveAssistantAIAgentAsync(const RemoveAssistantAIAgentRequestT& request, const RemoveAssistantAIAgentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::RemoveAssistantAIAgent, request, handler, context); + } + /** *

    Removes a URI template from a knowledge base.

    See Also:

    AWS @@ -1206,6 +1592,82 @@ namespace QConnect return SubmitAsync(&QConnectClient::UntagResource, request, handler, context); } + /** + *

    Updates an AI Agent.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateAIAgentOutcome UpdateAIAgent(const Model::UpdateAIAgentRequest& request) const; + + /** + * A Callable wrapper for UpdateAIAgent that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateAIAgentOutcomeCallable UpdateAIAgentCallable(const UpdateAIAgentRequestT& request) const + { + return SubmitCallable(&QConnectClient::UpdateAIAgent, request); + } + + /** + * An Async wrapper for UpdateAIAgent that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateAIAgentAsync(const UpdateAIAgentRequestT& request, const UpdateAIAgentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::UpdateAIAgent, request, handler, context); + } + + /** + *

    Updates an AI Prompt.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateAIPromptOutcome UpdateAIPrompt(const Model::UpdateAIPromptRequest& request) const; + + /** + * A Callable wrapper for UpdateAIPrompt that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateAIPromptOutcomeCallable UpdateAIPromptCallable(const UpdateAIPromptRequestT& request) const + { + return SubmitCallable(&QConnectClient::UpdateAIPrompt, request); + } + + /** + * An Async wrapper for UpdateAIPrompt that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateAIPromptAsync(const UpdateAIPromptRequestT& request, const UpdateAIPromptResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::UpdateAIPrompt, request, handler, context); + } + + /** + *

    Updates the AI Agent that is set for use by defafult on an Amazon Q in + * Connect Assistant.

    See Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateAssistantAIAgentOutcome UpdateAssistantAIAgent(const Model::UpdateAssistantAIAgentRequest& request) const; + + /** + * A Callable wrapper for UpdateAssistantAIAgent that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateAssistantAIAgentOutcomeCallable UpdateAssistantAIAgentCallable(const UpdateAssistantAIAgentRequestT& request) const + { + return SubmitCallable(&QConnectClient::UpdateAssistantAIAgent, request); + } + + /** + * An Async wrapper for UpdateAssistantAIAgent that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateAssistantAIAgentAsync(const UpdateAssistantAIAgentRequestT& request, const UpdateAssistantAIAgentResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::UpdateAssistantAIAgent, request, handler, context); + } + /** *

    Updates information about the content.

    See Also:

    AWS @@ -1316,6 +1778,32 @@ namespace QConnect return SubmitAsync(&QConnectClient::UpdateSession, request, handler, context); } + /** + *

    Updates the data stored on an Amazon Q in Connect Session.

    See + * Also:

    AWS + * API Reference

    + */ + virtual Model::UpdateSessionDataOutcome UpdateSessionData(const Model::UpdateSessionDataRequest& request) const; + + /** + * A Callable wrapper for UpdateSessionData that returns a future to the operation so that it can be executed in parallel to other requests. + */ + template + Model::UpdateSessionDataOutcomeCallable UpdateSessionDataCallable(const UpdateSessionDataRequestT& request) const + { + return SubmitCallable(&QConnectClient::UpdateSessionData, request); + } + + /** + * An Async wrapper for UpdateSessionData that queues the request into a thread executor and triggers associated callback when operation has finished. + */ + template + void UpdateSessionDataAsync(const UpdateSessionDataRequestT& request, const UpdateSessionDataResponseReceivedHandler& handler, const std::shared_ptr& context = nullptr) const + { + return SubmitAsync(&QConnectClient::UpdateSessionData, request, handler, context); + } + void OverrideEndpoint(const Aws::String& endpoint); std::shared_ptr& accessEndpointProvider(); diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/QConnectServiceClientModel.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/QConnectServiceClientModel.h index c99c9d3cae8..50b1750116d 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/QConnectServiceClientModel.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/QConnectServiceClientModel.h @@ -18,6 +18,10 @@ /* End of generic header includes */ /* Service model headers required in QConnectClient header */ +#include +#include +#include +#include #include #include #include @@ -25,6 +29,10 @@ #include #include #include +#include +#include +#include +#include #include #include #include @@ -32,6 +40,8 @@ #include #include #include +#include +#include #include #include #include @@ -41,6 +51,10 @@ #include #include #include +#include +#include +#include +#include #include #include #include @@ -51,6 +65,7 @@ #include #include #include +#include #include #include #include @@ -59,10 +74,14 @@ #include #include #include +#include +#include +#include #include #include #include #include +#include #include #include /* End of service model headers required in QConnectClient header */ @@ -105,6 +124,10 @@ namespace Aws namespace Model { /* Service model forward declarations required in QConnectClient header */ + class CreateAIAgentRequest; + class CreateAIAgentVersionRequest; + class CreateAIPromptRequest; + class CreateAIPromptVersionRequest; class CreateAssistantRequest; class CreateAssistantAssociationRequest; class CreateContentRequest; @@ -112,6 +135,10 @@ namespace Aws class CreateKnowledgeBaseRequest; class CreateQuickResponseRequest; class CreateSessionRequest; + class DeleteAIAgentRequest; + class DeleteAIAgentVersionRequest; + class DeleteAIPromptRequest; + class DeleteAIPromptVersionRequest; class DeleteAssistantRequest; class DeleteAssistantAssociationRequest; class DeleteContentRequest; @@ -119,6 +146,8 @@ namespace Aws class DeleteImportJobRequest; class DeleteKnowledgeBaseRequest; class DeleteQuickResponseRequest; + class GetAIAgentRequest; + class GetAIPromptRequest; class GetAssistantRequest; class GetAssistantAssociationRequest; class GetContentRequest; @@ -128,6 +157,10 @@ namespace Aws class GetKnowledgeBaseRequest; class GetQuickResponseRequest; class GetSessionRequest; + class ListAIAgentVersionsRequest; + class ListAIAgentsRequest; + class ListAIPromptVersionsRequest; + class ListAIPromptsRequest; class ListAssistantAssociationsRequest; class ListAssistantsRequest; class ListContentAssociationsRequest; @@ -138,6 +171,7 @@ namespace Aws class ListTagsForResourceRequest; class NotifyRecommendationsReceivedRequest; class PutFeedbackRequest; + class RemoveAssistantAIAgentRequest; class RemoveKnowledgeBaseTemplateUriRequest; class SearchContentRequest; class SearchQuickResponsesRequest; @@ -146,13 +180,21 @@ namespace Aws class StartImportJobRequest; class TagResourceRequest; class UntagResourceRequest; + class UpdateAIAgentRequest; + class UpdateAIPromptRequest; + class UpdateAssistantAIAgentRequest; class UpdateContentRequest; class UpdateKnowledgeBaseTemplateUriRequest; class UpdateQuickResponseRequest; class UpdateSessionRequest; + class UpdateSessionDataRequest; /* End of service model forward declarations required in QConnectClient header */ /* Service model Outcome class definitions */ + typedef Aws::Utils::Outcome CreateAIAgentOutcome; + typedef Aws::Utils::Outcome CreateAIAgentVersionOutcome; + typedef Aws::Utils::Outcome CreateAIPromptOutcome; + typedef Aws::Utils::Outcome CreateAIPromptVersionOutcome; typedef Aws::Utils::Outcome CreateAssistantOutcome; typedef Aws::Utils::Outcome CreateAssistantAssociationOutcome; typedef Aws::Utils::Outcome CreateContentOutcome; @@ -160,6 +202,10 @@ namespace Aws typedef Aws::Utils::Outcome CreateKnowledgeBaseOutcome; typedef Aws::Utils::Outcome CreateQuickResponseOutcome; typedef Aws::Utils::Outcome CreateSessionOutcome; + typedef Aws::Utils::Outcome DeleteAIAgentOutcome; + typedef Aws::Utils::Outcome DeleteAIAgentVersionOutcome; + typedef Aws::Utils::Outcome DeleteAIPromptOutcome; + typedef Aws::Utils::Outcome DeleteAIPromptVersionOutcome; typedef Aws::Utils::Outcome DeleteAssistantOutcome; typedef Aws::Utils::Outcome DeleteAssistantAssociationOutcome; typedef Aws::Utils::Outcome DeleteContentOutcome; @@ -167,6 +213,8 @@ namespace Aws typedef Aws::Utils::Outcome DeleteImportJobOutcome; typedef Aws::Utils::Outcome DeleteKnowledgeBaseOutcome; typedef Aws::Utils::Outcome DeleteQuickResponseOutcome; + typedef Aws::Utils::Outcome GetAIAgentOutcome; + typedef Aws::Utils::Outcome GetAIPromptOutcome; typedef Aws::Utils::Outcome GetAssistantOutcome; typedef Aws::Utils::Outcome GetAssistantAssociationOutcome; typedef Aws::Utils::Outcome GetContentOutcome; @@ -176,6 +224,10 @@ namespace Aws typedef Aws::Utils::Outcome GetKnowledgeBaseOutcome; typedef Aws::Utils::Outcome GetQuickResponseOutcome; typedef Aws::Utils::Outcome GetSessionOutcome; + typedef Aws::Utils::Outcome ListAIAgentVersionsOutcome; + typedef Aws::Utils::Outcome ListAIAgentsOutcome; + typedef Aws::Utils::Outcome ListAIPromptVersionsOutcome; + typedef Aws::Utils::Outcome ListAIPromptsOutcome; typedef Aws::Utils::Outcome ListAssistantAssociationsOutcome; typedef Aws::Utils::Outcome ListAssistantsOutcome; typedef Aws::Utils::Outcome ListContentAssociationsOutcome; @@ -186,6 +238,7 @@ namespace Aws typedef Aws::Utils::Outcome ListTagsForResourceOutcome; typedef Aws::Utils::Outcome NotifyRecommendationsReceivedOutcome; typedef Aws::Utils::Outcome PutFeedbackOutcome; + typedef Aws::Utils::Outcome RemoveAssistantAIAgentOutcome; typedef Aws::Utils::Outcome RemoveKnowledgeBaseTemplateUriOutcome; typedef Aws::Utils::Outcome SearchContentOutcome; typedef Aws::Utils::Outcome SearchQuickResponsesOutcome; @@ -194,13 +247,21 @@ namespace Aws typedef Aws::Utils::Outcome StartImportJobOutcome; typedef Aws::Utils::Outcome TagResourceOutcome; typedef Aws::Utils::Outcome UntagResourceOutcome; + typedef Aws::Utils::Outcome UpdateAIAgentOutcome; + typedef Aws::Utils::Outcome UpdateAIPromptOutcome; + typedef Aws::Utils::Outcome UpdateAssistantAIAgentOutcome; typedef Aws::Utils::Outcome UpdateContentOutcome; typedef Aws::Utils::Outcome UpdateKnowledgeBaseTemplateUriOutcome; typedef Aws::Utils::Outcome UpdateQuickResponseOutcome; typedef Aws::Utils::Outcome UpdateSessionOutcome; + typedef Aws::Utils::Outcome UpdateSessionDataOutcome; /* End of service model Outcome class definitions */ /* Service model Outcome callable definitions */ + typedef std::future CreateAIAgentOutcomeCallable; + typedef std::future CreateAIAgentVersionOutcomeCallable; + typedef std::future CreateAIPromptOutcomeCallable; + typedef std::future CreateAIPromptVersionOutcomeCallable; typedef std::future CreateAssistantOutcomeCallable; typedef std::future CreateAssistantAssociationOutcomeCallable; typedef std::future CreateContentOutcomeCallable; @@ -208,6 +269,10 @@ namespace Aws typedef std::future CreateKnowledgeBaseOutcomeCallable; typedef std::future CreateQuickResponseOutcomeCallable; typedef std::future CreateSessionOutcomeCallable; + typedef std::future DeleteAIAgentOutcomeCallable; + typedef std::future DeleteAIAgentVersionOutcomeCallable; + typedef std::future DeleteAIPromptOutcomeCallable; + typedef std::future DeleteAIPromptVersionOutcomeCallable; typedef std::future DeleteAssistantOutcomeCallable; typedef std::future DeleteAssistantAssociationOutcomeCallable; typedef std::future DeleteContentOutcomeCallable; @@ -215,6 +280,8 @@ namespace Aws typedef std::future DeleteImportJobOutcomeCallable; typedef std::future DeleteKnowledgeBaseOutcomeCallable; typedef std::future DeleteQuickResponseOutcomeCallable; + typedef std::future GetAIAgentOutcomeCallable; + typedef std::future GetAIPromptOutcomeCallable; typedef std::future GetAssistantOutcomeCallable; typedef std::future GetAssistantAssociationOutcomeCallable; typedef std::future GetContentOutcomeCallable; @@ -224,6 +291,10 @@ namespace Aws typedef std::future GetKnowledgeBaseOutcomeCallable; typedef std::future GetQuickResponseOutcomeCallable; typedef std::future GetSessionOutcomeCallable; + typedef std::future ListAIAgentVersionsOutcomeCallable; + typedef std::future ListAIAgentsOutcomeCallable; + typedef std::future ListAIPromptVersionsOutcomeCallable; + typedef std::future ListAIPromptsOutcomeCallable; typedef std::future ListAssistantAssociationsOutcomeCallable; typedef std::future ListAssistantsOutcomeCallable; typedef std::future ListContentAssociationsOutcomeCallable; @@ -234,6 +305,7 @@ namespace Aws typedef std::future ListTagsForResourceOutcomeCallable; typedef std::future NotifyRecommendationsReceivedOutcomeCallable; typedef std::future PutFeedbackOutcomeCallable; + typedef std::future RemoveAssistantAIAgentOutcomeCallable; typedef std::future RemoveKnowledgeBaseTemplateUriOutcomeCallable; typedef std::future SearchContentOutcomeCallable; typedef std::future SearchQuickResponsesOutcomeCallable; @@ -242,16 +314,24 @@ namespace Aws typedef std::future StartImportJobOutcomeCallable; typedef std::future TagResourceOutcomeCallable; typedef std::future UntagResourceOutcomeCallable; + typedef std::future UpdateAIAgentOutcomeCallable; + typedef std::future UpdateAIPromptOutcomeCallable; + typedef std::future UpdateAssistantAIAgentOutcomeCallable; typedef std::future UpdateContentOutcomeCallable; typedef std::future UpdateKnowledgeBaseTemplateUriOutcomeCallable; typedef std::future UpdateQuickResponseOutcomeCallable; typedef std::future UpdateSessionOutcomeCallable; + typedef std::future UpdateSessionDataOutcomeCallable; /* End of service model Outcome callable definitions */ } // namespace Model class QConnectClient; /* Service model async handlers definitions */ + typedef std::function&) > CreateAIAgentResponseReceivedHandler; + typedef std::function&) > CreateAIAgentVersionResponseReceivedHandler; + typedef std::function&) > CreateAIPromptResponseReceivedHandler; + typedef std::function&) > CreateAIPromptVersionResponseReceivedHandler; typedef std::function&) > CreateAssistantResponseReceivedHandler; typedef std::function&) > CreateAssistantAssociationResponseReceivedHandler; typedef std::function&) > CreateContentResponseReceivedHandler; @@ -259,6 +339,10 @@ namespace Aws typedef std::function&) > CreateKnowledgeBaseResponseReceivedHandler; typedef std::function&) > CreateQuickResponseResponseReceivedHandler; typedef std::function&) > CreateSessionResponseReceivedHandler; + typedef std::function&) > DeleteAIAgentResponseReceivedHandler; + typedef std::function&) > DeleteAIAgentVersionResponseReceivedHandler; + typedef std::function&) > DeleteAIPromptResponseReceivedHandler; + typedef std::function&) > DeleteAIPromptVersionResponseReceivedHandler; typedef std::function&) > DeleteAssistantResponseReceivedHandler; typedef std::function&) > DeleteAssistantAssociationResponseReceivedHandler; typedef std::function&) > DeleteContentResponseReceivedHandler; @@ -266,6 +350,8 @@ namespace Aws typedef std::function&) > DeleteImportJobResponseReceivedHandler; typedef std::function&) > DeleteKnowledgeBaseResponseReceivedHandler; typedef std::function&) > DeleteQuickResponseResponseReceivedHandler; + typedef std::function&) > GetAIAgentResponseReceivedHandler; + typedef std::function&) > GetAIPromptResponseReceivedHandler; typedef std::function&) > GetAssistantResponseReceivedHandler; typedef std::function&) > GetAssistantAssociationResponseReceivedHandler; typedef std::function&) > GetContentResponseReceivedHandler; @@ -275,6 +361,10 @@ namespace Aws typedef std::function&) > GetKnowledgeBaseResponseReceivedHandler; typedef std::function&) > GetQuickResponseResponseReceivedHandler; typedef std::function&) > GetSessionResponseReceivedHandler; + typedef std::function&) > ListAIAgentVersionsResponseReceivedHandler; + typedef std::function&) > ListAIAgentsResponseReceivedHandler; + typedef std::function&) > ListAIPromptVersionsResponseReceivedHandler; + typedef std::function&) > ListAIPromptsResponseReceivedHandler; typedef std::function&) > ListAssistantAssociationsResponseReceivedHandler; typedef std::function&) > ListAssistantsResponseReceivedHandler; typedef std::function&) > ListContentAssociationsResponseReceivedHandler; @@ -285,6 +375,7 @@ namespace Aws typedef std::function&) > ListTagsForResourceResponseReceivedHandler; typedef std::function&) > NotifyRecommendationsReceivedResponseReceivedHandler; typedef std::function&) > PutFeedbackResponseReceivedHandler; + typedef std::function&) > RemoveAssistantAIAgentResponseReceivedHandler; typedef std::function&) > RemoveKnowledgeBaseTemplateUriResponseReceivedHandler; typedef std::function&) > SearchContentResponseReceivedHandler; typedef std::function&) > SearchQuickResponsesResponseReceivedHandler; @@ -293,10 +384,14 @@ namespace Aws typedef std::function&) > StartImportJobResponseReceivedHandler; typedef std::function&) > TagResourceResponseReceivedHandler; typedef std::function&) > UntagResourceResponseReceivedHandler; + typedef std::function&) > UpdateAIAgentResponseReceivedHandler; + typedef std::function&) > UpdateAIPromptResponseReceivedHandler; + typedef std::function&) > UpdateAssistantAIAgentResponseReceivedHandler; typedef std::function&) > UpdateContentResponseReceivedHandler; typedef std::function&) > UpdateKnowledgeBaseTemplateUriResponseReceivedHandler; typedef std::function&) > UpdateQuickResponseResponseReceivedHandler; typedef std::function&) > UpdateSessionResponseReceivedHandler; + typedef std::function&) > UpdateSessionDataResponseReceivedHandler; /* End of service model async handlers definitions */ } // namespace QConnect } // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentAssociationConfigurationType.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentAssociationConfigurationType.h new file mode 100644 index 00000000000..fccf08c6a76 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentAssociationConfigurationType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class AIAgentAssociationConfigurationType + { + NOT_SET, + KNOWLEDGE_BASE + }; + +namespace AIAgentAssociationConfigurationTypeMapper +{ +AWS_QCONNECT_API AIAgentAssociationConfigurationType GetAIAgentAssociationConfigurationTypeForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForAIAgentAssociationConfigurationType(AIAgentAssociationConfigurationType value); +} // namespace AIAgentAssociationConfigurationTypeMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentConfiguration.h new file mode 100644 index 00000000000..0a1013409db --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentConfiguration.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    A typed union that specifies the configuration based on the type of AI + * Agent.

    See Also:

    AWS + * API Reference

    + */ + class AIAgentConfiguration + { + public: + AWS_QCONNECT_API AIAgentConfiguration(); + AWS_QCONNECT_API AIAgentConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AIAgentConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The configuration for AI Agents of type + * ANSWER_RECOMMENDATION.

    + */ + inline const AnswerRecommendationAIAgentConfiguration& GetAnswerRecommendationAIAgentConfiguration() const{ return m_answerRecommendationAIAgentConfiguration; } + inline bool AnswerRecommendationAIAgentConfigurationHasBeenSet() const { return m_answerRecommendationAIAgentConfigurationHasBeenSet; } + inline void SetAnswerRecommendationAIAgentConfiguration(const AnswerRecommendationAIAgentConfiguration& value) { m_answerRecommendationAIAgentConfigurationHasBeenSet = true; m_answerRecommendationAIAgentConfiguration = value; } + inline void SetAnswerRecommendationAIAgentConfiguration(AnswerRecommendationAIAgentConfiguration&& value) { m_answerRecommendationAIAgentConfigurationHasBeenSet = true; m_answerRecommendationAIAgentConfiguration = std::move(value); } + inline AIAgentConfiguration& WithAnswerRecommendationAIAgentConfiguration(const AnswerRecommendationAIAgentConfiguration& value) { SetAnswerRecommendationAIAgentConfiguration(value); return *this;} + inline AIAgentConfiguration& WithAnswerRecommendationAIAgentConfiguration(AnswerRecommendationAIAgentConfiguration&& value) { SetAnswerRecommendationAIAgentConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The configuration for AI Agents of type MANUAL_SEARCH.

    + */ + inline const ManualSearchAIAgentConfiguration& GetManualSearchAIAgentConfiguration() const{ return m_manualSearchAIAgentConfiguration; } + inline bool ManualSearchAIAgentConfigurationHasBeenSet() const { return m_manualSearchAIAgentConfigurationHasBeenSet; } + inline void SetManualSearchAIAgentConfiguration(const ManualSearchAIAgentConfiguration& value) { m_manualSearchAIAgentConfigurationHasBeenSet = true; m_manualSearchAIAgentConfiguration = value; } + inline void SetManualSearchAIAgentConfiguration(ManualSearchAIAgentConfiguration&& value) { m_manualSearchAIAgentConfigurationHasBeenSet = true; m_manualSearchAIAgentConfiguration = std::move(value); } + inline AIAgentConfiguration& WithManualSearchAIAgentConfiguration(const ManualSearchAIAgentConfiguration& value) { SetManualSearchAIAgentConfiguration(value); return *this;} + inline AIAgentConfiguration& WithManualSearchAIAgentConfiguration(ManualSearchAIAgentConfiguration&& value) { SetManualSearchAIAgentConfiguration(std::move(value)); return *this;} + ///@} + private: + + AnswerRecommendationAIAgentConfiguration m_answerRecommendationAIAgentConfiguration; + bool m_answerRecommendationAIAgentConfigurationHasBeenSet = false; + + ManualSearchAIAgentConfiguration m_manualSearchAIAgentConfiguration; + bool m_manualSearchAIAgentConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentConfigurationData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentConfigurationData.h new file mode 100644 index 00000000000..1a40092a494 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentConfigurationData.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    A type that specifies the AI Agent ID configuration data when mapping an AI + * Agents to be used for an AI Agent type on a session or assistant.

    See + * Also:

    AWS + * API Reference

    + */ + class AIAgentConfigurationData + { + public: + AWS_QCONNECT_API AIAgentConfigurationData(); + AWS_QCONNECT_API AIAgentConfigurationData(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AIAgentConfigurationData& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The ID of the AI Agent to be configured.

    + */ + inline const Aws::String& GetAiAgentId() const{ return m_aiAgentId; } + inline bool AiAgentIdHasBeenSet() const { return m_aiAgentIdHasBeenSet; } + inline void SetAiAgentId(const Aws::String& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = value; } + inline void SetAiAgentId(Aws::String&& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = std::move(value); } + inline void SetAiAgentId(const char* value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId.assign(value); } + inline AIAgentConfigurationData& WithAiAgentId(const Aws::String& value) { SetAiAgentId(value); return *this;} + inline AIAgentConfigurationData& WithAiAgentId(Aws::String&& value) { SetAiAgentId(std::move(value)); return *this;} + inline AIAgentConfigurationData& WithAiAgentId(const char* value) { SetAiAgentId(value); return *this;} + ///@} + private: + + Aws::String m_aiAgentId; + bool m_aiAgentIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentData.h new file mode 100644 index 00000000000..c171fa62e63 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentData.h @@ -0,0 +1,268 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The data for the AI Agent.

    See Also:

    AWS + * API Reference

    + */ + class AIAgentData + { + public: + AWS_QCONNECT_API AIAgentData(); + AWS_QCONNECT_API AIAgentData(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AIAgentData& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the AI agent.

    + */ + inline const Aws::String& GetAiAgentArn() const{ return m_aiAgentArn; } + inline bool AiAgentArnHasBeenSet() const { return m_aiAgentArnHasBeenSet; } + inline void SetAiAgentArn(const Aws::String& value) { m_aiAgentArnHasBeenSet = true; m_aiAgentArn = value; } + inline void SetAiAgentArn(Aws::String&& value) { m_aiAgentArnHasBeenSet = true; m_aiAgentArn = std::move(value); } + inline void SetAiAgentArn(const char* value) { m_aiAgentArnHasBeenSet = true; m_aiAgentArn.assign(value); } + inline AIAgentData& WithAiAgentArn(const Aws::String& value) { SetAiAgentArn(value); return *this;} + inline AIAgentData& WithAiAgentArn(Aws::String&& value) { SetAiAgentArn(std::move(value)); return *this;} + inline AIAgentData& WithAiAgentArn(const char* value) { SetAiAgentArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the AI Agent.

    + */ + inline const Aws::String& GetAiAgentId() const{ return m_aiAgentId; } + inline bool AiAgentIdHasBeenSet() const { return m_aiAgentIdHasBeenSet; } + inline void SetAiAgentId(const Aws::String& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = value; } + inline void SetAiAgentId(Aws::String&& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = std::move(value); } + inline void SetAiAgentId(const char* value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId.assign(value); } + inline AIAgentData& WithAiAgentId(const Aws::String& value) { SetAiAgentId(value); return *this;} + inline AIAgentData& WithAiAgentId(Aws::String&& value) { SetAiAgentId(std::move(value)); return *this;} + inline AIAgentData& WithAiAgentId(const char* value) { SetAiAgentId(value); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    + */ + inline const Aws::String& GetAssistantArn() const{ return m_assistantArn; } + inline bool AssistantArnHasBeenSet() const { return m_assistantArnHasBeenSet; } + inline void SetAssistantArn(const Aws::String& value) { m_assistantArnHasBeenSet = true; m_assistantArn = value; } + inline void SetAssistantArn(Aws::String&& value) { m_assistantArnHasBeenSet = true; m_assistantArn = std::move(value); } + inline void SetAssistantArn(const char* value) { m_assistantArnHasBeenSet = true; m_assistantArn.assign(value); } + inline AIAgentData& WithAssistantArn(const Aws::String& value) { SetAssistantArn(value); return *this;} + inline AIAgentData& WithAssistantArn(Aws::String&& value) { SetAssistantArn(std::move(value)); return *this;} + inline AIAgentData& WithAssistantArn(const char* value) { SetAssistantArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline AIAgentData& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline AIAgentData& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline AIAgentData& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    Configuration for the AI Agent.

    + */ + inline const AIAgentConfiguration& GetConfiguration() const{ return m_configuration; } + inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } + inline void SetConfiguration(const AIAgentConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } + inline void SetConfiguration(AIAgentConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } + inline AIAgentData& WithConfiguration(const AIAgentConfiguration& value) { SetConfiguration(value); return *this;} + inline AIAgentData& WithConfiguration(AIAgentConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The description of the AI Agent.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline AIAgentData& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline AIAgentData& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline AIAgentData& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

    The time the AI Agent was last modified.

    + */ + inline const Aws::Utils::DateTime& GetModifiedTime() const{ return m_modifiedTime; } + inline bool ModifiedTimeHasBeenSet() const { return m_modifiedTimeHasBeenSet; } + inline void SetModifiedTime(const Aws::Utils::DateTime& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = value; } + inline void SetModifiedTime(Aws::Utils::DateTime&& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = std::move(value); } + inline AIAgentData& WithModifiedTime(const Aws::Utils::DateTime& value) { SetModifiedTime(value); return *this;} + inline AIAgentData& WithModifiedTime(Aws::Utils::DateTime&& value) { SetModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The name of the AI Agent.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline AIAgentData& WithName(const Aws::String& value) { SetName(value); return *this;} + inline AIAgentData& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline AIAgentData& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

    Specifies the origin of the AI Agent. SYSTEM for a default AI + * Agent created by Q in Connect or CUSTOMER for an AI Agent created + * by calling AI Agent creation APIs.

    + */ + inline const Origin& GetOrigin() const{ return m_origin; } + inline bool OriginHasBeenSet() const { return m_originHasBeenSet; } + inline void SetOrigin(const Origin& value) { m_originHasBeenSet = true; m_origin = value; } + inline void SetOrigin(Origin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); } + inline AIAgentData& WithOrigin(const Origin& value) { SetOrigin(value); return *this;} + inline AIAgentData& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The status of the AI Agent.

    + */ + inline const Status& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline AIAgentData& WithStatus(const Status& value) { SetStatus(value); return *this;} + inline AIAgentData& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The tags used to organize, track, or control access for this resource.

    + */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline AIAgentData& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline AIAgentData& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline AIAgentData& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline AIAgentData& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline AIAgentData& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline AIAgentData& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline AIAgentData& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline AIAgentData& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline AIAgentData& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

    The type of the AI Agent.

    + */ + inline const AIAgentType& GetType() const{ return m_type; } + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + inline void SetType(const AIAgentType& value) { m_typeHasBeenSet = true; m_type = value; } + inline void SetType(AIAgentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + inline AIAgentData& WithType(const AIAgentType& value) { SetType(value); return *this;} + inline AIAgentData& WithType(AIAgentType&& value) { SetType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The visibility status of the AI Agent.

    + */ + inline const VisibilityStatus& GetVisibilityStatus() const{ return m_visibilityStatus; } + inline bool VisibilityStatusHasBeenSet() const { return m_visibilityStatusHasBeenSet; } + inline void SetVisibilityStatus(const VisibilityStatus& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = value; } + inline void SetVisibilityStatus(VisibilityStatus&& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = std::move(value); } + inline AIAgentData& WithVisibilityStatus(const VisibilityStatus& value) { SetVisibilityStatus(value); return *this;} + inline AIAgentData& WithVisibilityStatus(VisibilityStatus&& value) { SetVisibilityStatus(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_aiAgentArn; + bool m_aiAgentArnHasBeenSet = false; + + Aws::String m_aiAgentId; + bool m_aiAgentIdHasBeenSet = false; + + Aws::String m_assistantArn; + bool m_assistantArnHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + AIAgentConfiguration m_configuration; + bool m_configurationHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::Utils::DateTime m_modifiedTime; + bool m_modifiedTimeHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Origin m_origin; + bool m_originHasBeenSet = false; + + Status m_status; + bool m_statusHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + + AIAgentType m_type; + bool m_typeHasBeenSet = false; + + VisibilityStatus m_visibilityStatus; + bool m_visibilityStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentSummary.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentSummary.h new file mode 100644 index 00000000000..b30623cbd5a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentSummary.h @@ -0,0 +1,268 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The summary of the AI Agent.

    See Also:

    AWS + * API Reference

    + */ + class AIAgentSummary + { + public: + AWS_QCONNECT_API AIAgentSummary(); + AWS_QCONNECT_API AIAgentSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AIAgentSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the AI agent.

    + */ + inline const Aws::String& GetAiAgentArn() const{ return m_aiAgentArn; } + inline bool AiAgentArnHasBeenSet() const { return m_aiAgentArnHasBeenSet; } + inline void SetAiAgentArn(const Aws::String& value) { m_aiAgentArnHasBeenSet = true; m_aiAgentArn = value; } + inline void SetAiAgentArn(Aws::String&& value) { m_aiAgentArnHasBeenSet = true; m_aiAgentArn = std::move(value); } + inline void SetAiAgentArn(const char* value) { m_aiAgentArnHasBeenSet = true; m_aiAgentArn.assign(value); } + inline AIAgentSummary& WithAiAgentArn(const Aws::String& value) { SetAiAgentArn(value); return *this;} + inline AIAgentSummary& WithAiAgentArn(Aws::String&& value) { SetAiAgentArn(std::move(value)); return *this;} + inline AIAgentSummary& WithAiAgentArn(const char* value) { SetAiAgentArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the AI Agent.

    + */ + inline const Aws::String& GetAiAgentId() const{ return m_aiAgentId; } + inline bool AiAgentIdHasBeenSet() const { return m_aiAgentIdHasBeenSet; } + inline void SetAiAgentId(const Aws::String& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = value; } + inline void SetAiAgentId(Aws::String&& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = std::move(value); } + inline void SetAiAgentId(const char* value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId.assign(value); } + inline AIAgentSummary& WithAiAgentId(const Aws::String& value) { SetAiAgentId(value); return *this;} + inline AIAgentSummary& WithAiAgentId(Aws::String&& value) { SetAiAgentId(std::move(value)); return *this;} + inline AIAgentSummary& WithAiAgentId(const char* value) { SetAiAgentId(value); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    + */ + inline const Aws::String& GetAssistantArn() const{ return m_assistantArn; } + inline bool AssistantArnHasBeenSet() const { return m_assistantArnHasBeenSet; } + inline void SetAssistantArn(const Aws::String& value) { m_assistantArnHasBeenSet = true; m_assistantArn = value; } + inline void SetAssistantArn(Aws::String&& value) { m_assistantArnHasBeenSet = true; m_assistantArn = std::move(value); } + inline void SetAssistantArn(const char* value) { m_assistantArnHasBeenSet = true; m_assistantArn.assign(value); } + inline AIAgentSummary& WithAssistantArn(const Aws::String& value) { SetAssistantArn(value); return *this;} + inline AIAgentSummary& WithAssistantArn(Aws::String&& value) { SetAssistantArn(std::move(value)); return *this;} + inline AIAgentSummary& WithAssistantArn(const char* value) { SetAssistantArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline AIAgentSummary& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline AIAgentSummary& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline AIAgentSummary& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    The configuration for the AI Agent.

    + */ + inline const AIAgentConfiguration& GetConfiguration() const{ return m_configuration; } + inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } + inline void SetConfiguration(const AIAgentConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } + inline void SetConfiguration(AIAgentConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } + inline AIAgentSummary& WithConfiguration(const AIAgentConfiguration& value) { SetConfiguration(value); return *this;} + inline AIAgentSummary& WithConfiguration(AIAgentConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The description of the AI Agent.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline AIAgentSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline AIAgentSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline AIAgentSummary& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

    The time the AI Agent was last modified.

    + */ + inline const Aws::Utils::DateTime& GetModifiedTime() const{ return m_modifiedTime; } + inline bool ModifiedTimeHasBeenSet() const { return m_modifiedTimeHasBeenSet; } + inline void SetModifiedTime(const Aws::Utils::DateTime& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = value; } + inline void SetModifiedTime(Aws::Utils::DateTime&& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = std::move(value); } + inline AIAgentSummary& WithModifiedTime(const Aws::Utils::DateTime& value) { SetModifiedTime(value); return *this;} + inline AIAgentSummary& WithModifiedTime(Aws::Utils::DateTime&& value) { SetModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The name of the AI Agent.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline AIAgentSummary& WithName(const Aws::String& value) { SetName(value); return *this;} + inline AIAgentSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline AIAgentSummary& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

    The origin of the AI Agent. SYSTEM for a default AI Agent + * created by Q in Connect or CUSTOMER for an AI Agent created by + * calling AI Agent creation APIs.

    + */ + inline const Origin& GetOrigin() const{ return m_origin; } + inline bool OriginHasBeenSet() const { return m_originHasBeenSet; } + inline void SetOrigin(const Origin& value) { m_originHasBeenSet = true; m_origin = value; } + inline void SetOrigin(Origin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); } + inline AIAgentSummary& WithOrigin(const Origin& value) { SetOrigin(value); return *this;} + inline AIAgentSummary& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The status of the AI Agent.

    + */ + inline const Status& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline AIAgentSummary& WithStatus(const Status& value) { SetStatus(value); return *this;} + inline AIAgentSummary& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The tags used to organize, track, or control access for this resource.

    + */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline AIAgentSummary& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline AIAgentSummary& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline AIAgentSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline AIAgentSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline AIAgentSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline AIAgentSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline AIAgentSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline AIAgentSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline AIAgentSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

    The type of the AI Agent.

    + */ + inline const AIAgentType& GetType() const{ return m_type; } + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + inline void SetType(const AIAgentType& value) { m_typeHasBeenSet = true; m_type = value; } + inline void SetType(AIAgentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + inline AIAgentSummary& WithType(const AIAgentType& value) { SetType(value); return *this;} + inline AIAgentSummary& WithType(AIAgentType&& value) { SetType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The visibility status of the AI Agent.

    + */ + inline const VisibilityStatus& GetVisibilityStatus() const{ return m_visibilityStatus; } + inline bool VisibilityStatusHasBeenSet() const { return m_visibilityStatusHasBeenSet; } + inline void SetVisibilityStatus(const VisibilityStatus& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = value; } + inline void SetVisibilityStatus(VisibilityStatus&& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = std::move(value); } + inline AIAgentSummary& WithVisibilityStatus(const VisibilityStatus& value) { SetVisibilityStatus(value); return *this;} + inline AIAgentSummary& WithVisibilityStatus(VisibilityStatus&& value) { SetVisibilityStatus(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_aiAgentArn; + bool m_aiAgentArnHasBeenSet = false; + + Aws::String m_aiAgentId; + bool m_aiAgentIdHasBeenSet = false; + + Aws::String m_assistantArn; + bool m_assistantArnHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + AIAgentConfiguration m_configuration; + bool m_configurationHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::Utils::DateTime m_modifiedTime; + bool m_modifiedTimeHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Origin m_origin; + bool m_originHasBeenSet = false; + + Status m_status; + bool m_statusHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + + AIAgentType m_type; + bool m_typeHasBeenSet = false; + + VisibilityStatus m_visibilityStatus; + bool m_visibilityStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentType.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentType.h new file mode 100644 index 00000000000..d3d5b8e38ed --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class AIAgentType + { + NOT_SET, + MANUAL_SEARCH, + ANSWER_RECOMMENDATION + }; + +namespace AIAgentTypeMapper +{ +AWS_QCONNECT_API AIAgentType GetAIAgentTypeForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForAIAgentType(AIAgentType value); +} // namespace AIAgentTypeMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentVersionSummary.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentVersionSummary.h new file mode 100644 index 00000000000..f5380336a68 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIAgentVersionSummary.h @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The summary of the AI Agent version.

    See Also:

    AWS + * API Reference

    + */ + class AIAgentVersionSummary + { + public: + AWS_QCONNECT_API AIAgentVersionSummary(); + AWS_QCONNECT_API AIAgentVersionSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AIAgentVersionSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The data for the summary of the AI Agent version.

    + */ + inline const AIAgentSummary& GetAiAgentSummary() const{ return m_aiAgentSummary; } + inline bool AiAgentSummaryHasBeenSet() const { return m_aiAgentSummaryHasBeenSet; } + inline void SetAiAgentSummary(const AIAgentSummary& value) { m_aiAgentSummaryHasBeenSet = true; m_aiAgentSummary = value; } + inline void SetAiAgentSummary(AIAgentSummary&& value) { m_aiAgentSummaryHasBeenSet = true; m_aiAgentSummary = std::move(value); } + inline AIAgentVersionSummary& WithAiAgentSummary(const AIAgentSummary& value) { SetAiAgentSummary(value); return *this;} + inline AIAgentVersionSummary& WithAiAgentSummary(AIAgentSummary&& value) { SetAiAgentSummary(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The version number for this AI Agent version.

    + */ + inline long long GetVersionNumber() const{ return m_versionNumber; } + inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; } + inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; } + inline AIAgentVersionSummary& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} + ///@} + private: + + AIAgentSummary m_aiAgentSummary; + bool m_aiAgentSummaryHasBeenSet = false; + + long long m_versionNumber; + bool m_versionNumberHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptAPIFormat.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptAPIFormat.h new file mode 100644 index 00000000000..23973944002 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptAPIFormat.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class AIPromptAPIFormat + { + NOT_SET, + ANTHROPIC_CLAUDE_MESSAGES, + ANTHROPIC_CLAUDE_TEXT_COMPLETIONS + }; + +namespace AIPromptAPIFormatMapper +{ +AWS_QCONNECT_API AIPromptAPIFormat GetAIPromptAPIFormatForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForAIPromptAPIFormat(AIPromptAPIFormat value); +} // namespace AIPromptAPIFormatMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptData.h new file mode 100644 index 00000000000..d3259063f90 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptData.h @@ -0,0 +1,318 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The data for the AI Prompt

    See Also:

    AWS + * API Reference

    + */ + class AIPromptData + { + public: + AWS_QCONNECT_API AIPromptData(); + AWS_QCONNECT_API AIPromptData(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AIPromptData& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the AI Prompt.

    + */ + inline const Aws::String& GetAiPromptArn() const{ return m_aiPromptArn; } + inline bool AiPromptArnHasBeenSet() const { return m_aiPromptArnHasBeenSet; } + inline void SetAiPromptArn(const Aws::String& value) { m_aiPromptArnHasBeenSet = true; m_aiPromptArn = value; } + inline void SetAiPromptArn(Aws::String&& value) { m_aiPromptArnHasBeenSet = true; m_aiPromptArn = std::move(value); } + inline void SetAiPromptArn(const char* value) { m_aiPromptArnHasBeenSet = true; m_aiPromptArn.assign(value); } + inline AIPromptData& WithAiPromptArn(const Aws::String& value) { SetAiPromptArn(value); return *this;} + inline AIPromptData& WithAiPromptArn(Aws::String&& value) { SetAiPromptArn(std::move(value)); return *this;} + inline AIPromptData& WithAiPromptArn(const char* value) { SetAiPromptArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI prompt.

    + */ + inline const Aws::String& GetAiPromptId() const{ return m_aiPromptId; } + inline bool AiPromptIdHasBeenSet() const { return m_aiPromptIdHasBeenSet; } + inline void SetAiPromptId(const Aws::String& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = value; } + inline void SetAiPromptId(Aws::String&& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = std::move(value); } + inline void SetAiPromptId(const char* value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId.assign(value); } + inline AIPromptData& WithAiPromptId(const Aws::String& value) { SetAiPromptId(value); return *this;} + inline AIPromptData& WithAiPromptId(Aws::String&& value) { SetAiPromptId(std::move(value)); return *this;} + inline AIPromptData& WithAiPromptId(const char* value) { SetAiPromptId(value); return *this;} + ///@} + + ///@{ + /** + *

    The API format used for this AI Prompt.

    + */ + inline const AIPromptAPIFormat& GetApiFormat() const{ return m_apiFormat; } + inline bool ApiFormatHasBeenSet() const { return m_apiFormatHasBeenSet; } + inline void SetApiFormat(const AIPromptAPIFormat& value) { m_apiFormatHasBeenSet = true; m_apiFormat = value; } + inline void SetApiFormat(AIPromptAPIFormat&& value) { m_apiFormatHasBeenSet = true; m_apiFormat = std::move(value); } + inline AIPromptData& WithApiFormat(const AIPromptAPIFormat& value) { SetApiFormat(value); return *this;} + inline AIPromptData& WithApiFormat(AIPromptAPIFormat&& value) { SetApiFormat(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    + */ + inline const Aws::String& GetAssistantArn() const{ return m_assistantArn; } + inline bool AssistantArnHasBeenSet() const { return m_assistantArnHasBeenSet; } + inline void SetAssistantArn(const Aws::String& value) { m_assistantArnHasBeenSet = true; m_assistantArn = value; } + inline void SetAssistantArn(Aws::String&& value) { m_assistantArnHasBeenSet = true; m_assistantArn = std::move(value); } + inline void SetAssistantArn(const char* value) { m_assistantArnHasBeenSet = true; m_assistantArn.assign(value); } + inline AIPromptData& WithAssistantArn(const Aws::String& value) { SetAssistantArn(value); return *this;} + inline AIPromptData& WithAssistantArn(Aws::String&& value) { SetAssistantArn(std::move(value)); return *this;} + inline AIPromptData& WithAssistantArn(const char* value) { SetAssistantArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline AIPromptData& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline AIPromptData& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline AIPromptData& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the AI Prompt.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline AIPromptData& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline AIPromptData& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline AIPromptData& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the model used for this AI Prompt. Model Ids supported are: + * CLAUDE_3_HAIKU_20240307_V1.

    + */ + inline const Aws::String& GetModelId() const{ return m_modelId; } + inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } + inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; } + inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); } + inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); } + inline AIPromptData& WithModelId(const Aws::String& value) { SetModelId(value); return *this;} + inline AIPromptData& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;} + inline AIPromptData& WithModelId(const char* value) { SetModelId(value); return *this;} + ///@} + + ///@{ + /** + *

    The time the AI Prompt was last modified.

    + */ + inline const Aws::Utils::DateTime& GetModifiedTime() const{ return m_modifiedTime; } + inline bool ModifiedTimeHasBeenSet() const { return m_modifiedTimeHasBeenSet; } + inline void SetModifiedTime(const Aws::Utils::DateTime& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = value; } + inline void SetModifiedTime(Aws::Utils::DateTime&& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = std::move(value); } + inline AIPromptData& WithModifiedTime(const Aws::Utils::DateTime& value) { SetModifiedTime(value); return *this;} + inline AIPromptData& WithModifiedTime(Aws::Utils::DateTime&& value) { SetModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The name of the AI Prompt

    + */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline AIPromptData& WithName(const Aws::String& value) { SetName(value); return *this;} + inline AIPromptData& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline AIPromptData& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

    The origin of the AI Prompt. SYSTEM for a default AI Prompt + * created by Q in Connect or CUSTOMER for an AI Prompt created by + * calling AI Prompt creation APIs.

    + */ + inline const Origin& GetOrigin() const{ return m_origin; } + inline bool OriginHasBeenSet() const { return m_originHasBeenSet; } + inline void SetOrigin(const Origin& value) { m_originHasBeenSet = true; m_origin = value; } + inline void SetOrigin(Origin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); } + inline AIPromptData& WithOrigin(const Origin& value) { SetOrigin(value); return *this;} + inline AIPromptData& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The status of the AI Prompt.

    + */ + inline const Status& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline AIPromptData& WithStatus(const Status& value) { SetStatus(value); return *this;} + inline AIPromptData& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The tags used to organize, track, or control access for this resource.

    + */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline AIPromptData& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline AIPromptData& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline AIPromptData& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline AIPromptData& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline AIPromptData& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline AIPromptData& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline AIPromptData& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline AIPromptData& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline AIPromptData& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

    The configuration of the prompt template for this AI Prompt.

    + */ + inline const AIPromptTemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; } + inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; } + inline void SetTemplateConfiguration(const AIPromptTemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; } + inline void SetTemplateConfiguration(AIPromptTemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); } + inline AIPromptData& WithTemplateConfiguration(const AIPromptTemplateConfiguration& value) { SetTemplateConfiguration(value); return *this;} + inline AIPromptData& WithTemplateConfiguration(AIPromptTemplateConfiguration&& value) { SetTemplateConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The type of the prompt template for this AI Prompt.

    + */ + inline const AIPromptTemplateType& GetTemplateType() const{ return m_templateType; } + inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; } + inline void SetTemplateType(const AIPromptTemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; } + inline void SetTemplateType(AIPromptTemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); } + inline AIPromptData& WithTemplateType(const AIPromptTemplateType& value) { SetTemplateType(value); return *this;} + inline AIPromptData& WithTemplateType(AIPromptTemplateType&& value) { SetTemplateType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The type of this AI Prompt.

    + */ + inline const AIPromptType& GetType() const{ return m_type; } + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + inline void SetType(const AIPromptType& value) { m_typeHasBeenSet = true; m_type = value; } + inline void SetType(AIPromptType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + inline AIPromptData& WithType(const AIPromptType& value) { SetType(value); return *this;} + inline AIPromptData& WithType(AIPromptType&& value) { SetType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The visibility status of the AI Prompt.

    + */ + inline const VisibilityStatus& GetVisibilityStatus() const{ return m_visibilityStatus; } + inline bool VisibilityStatusHasBeenSet() const { return m_visibilityStatusHasBeenSet; } + inline void SetVisibilityStatus(const VisibilityStatus& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = value; } + inline void SetVisibilityStatus(VisibilityStatus&& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = std::move(value); } + inline AIPromptData& WithVisibilityStatus(const VisibilityStatus& value) { SetVisibilityStatus(value); return *this;} + inline AIPromptData& WithVisibilityStatus(VisibilityStatus&& value) { SetVisibilityStatus(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_aiPromptArn; + bool m_aiPromptArnHasBeenSet = false; + + Aws::String m_aiPromptId; + bool m_aiPromptIdHasBeenSet = false; + + AIPromptAPIFormat m_apiFormat; + bool m_apiFormatHasBeenSet = false; + + Aws::String m_assistantArn; + bool m_assistantArnHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_modelId; + bool m_modelIdHasBeenSet = false; + + Aws::Utils::DateTime m_modifiedTime; + bool m_modifiedTimeHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Origin m_origin; + bool m_originHasBeenSet = false; + + Status m_status; + bool m_statusHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + + AIPromptTemplateConfiguration m_templateConfiguration; + bool m_templateConfigurationHasBeenSet = false; + + AIPromptTemplateType m_templateType; + bool m_templateTypeHasBeenSet = false; + + AIPromptType m_type; + bool m_typeHasBeenSet = false; + + VisibilityStatus m_visibilityStatus; + bool m_visibilityStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptSummary.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptSummary.h new file mode 100644 index 00000000000..20fe3d4514e --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptSummary.h @@ -0,0 +1,302 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The summary of the AI Prompt.

    See Also:

    AWS + * API Reference

    + */ + class AIPromptSummary + { + public: + AWS_QCONNECT_API AIPromptSummary(); + AWS_QCONNECT_API AIPromptSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AIPromptSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the AI Prompt.

    + */ + inline const Aws::String& GetAiPromptArn() const{ return m_aiPromptArn; } + inline bool AiPromptArnHasBeenSet() const { return m_aiPromptArnHasBeenSet; } + inline void SetAiPromptArn(const Aws::String& value) { m_aiPromptArnHasBeenSet = true; m_aiPromptArn = value; } + inline void SetAiPromptArn(Aws::String&& value) { m_aiPromptArnHasBeenSet = true; m_aiPromptArn = std::move(value); } + inline void SetAiPromptArn(const char* value) { m_aiPromptArnHasBeenSet = true; m_aiPromptArn.assign(value); } + inline AIPromptSummary& WithAiPromptArn(const Aws::String& value) { SetAiPromptArn(value); return *this;} + inline AIPromptSummary& WithAiPromptArn(Aws::String&& value) { SetAiPromptArn(std::move(value)); return *this;} + inline AIPromptSummary& WithAiPromptArn(const char* value) { SetAiPromptArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI prompt.

    + */ + inline const Aws::String& GetAiPromptId() const{ return m_aiPromptId; } + inline bool AiPromptIdHasBeenSet() const { return m_aiPromptIdHasBeenSet; } + inline void SetAiPromptId(const Aws::String& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = value; } + inline void SetAiPromptId(Aws::String&& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = std::move(value); } + inline void SetAiPromptId(const char* value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId.assign(value); } + inline AIPromptSummary& WithAiPromptId(const Aws::String& value) { SetAiPromptId(value); return *this;} + inline AIPromptSummary& WithAiPromptId(Aws::String&& value) { SetAiPromptId(std::move(value)); return *this;} + inline AIPromptSummary& WithAiPromptId(const char* value) { SetAiPromptId(value); return *this;} + ///@} + + ///@{ + /** + *

    The API format used for this AI Prompt.

    + */ + inline const AIPromptAPIFormat& GetApiFormat() const{ return m_apiFormat; } + inline bool ApiFormatHasBeenSet() const { return m_apiFormatHasBeenSet; } + inline void SetApiFormat(const AIPromptAPIFormat& value) { m_apiFormatHasBeenSet = true; m_apiFormat = value; } + inline void SetApiFormat(AIPromptAPIFormat&& value) { m_apiFormatHasBeenSet = true; m_apiFormat = std::move(value); } + inline AIPromptSummary& WithApiFormat(const AIPromptAPIFormat& value) { SetApiFormat(value); return *this;} + inline AIPromptSummary& WithApiFormat(AIPromptAPIFormat&& value) { SetApiFormat(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    + */ + inline const Aws::String& GetAssistantArn() const{ return m_assistantArn; } + inline bool AssistantArnHasBeenSet() const { return m_assistantArnHasBeenSet; } + inline void SetAssistantArn(const Aws::String& value) { m_assistantArnHasBeenSet = true; m_assistantArn = value; } + inline void SetAssistantArn(Aws::String&& value) { m_assistantArnHasBeenSet = true; m_assistantArn = std::move(value); } + inline void SetAssistantArn(const char* value) { m_assistantArnHasBeenSet = true; m_assistantArn.assign(value); } + inline AIPromptSummary& WithAssistantArn(const Aws::String& value) { SetAssistantArn(value); return *this;} + inline AIPromptSummary& WithAssistantArn(Aws::String&& value) { SetAssistantArn(std::move(value)); return *this;} + inline AIPromptSummary& WithAssistantArn(const char* value) { SetAssistantArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline AIPromptSummary& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline AIPromptSummary& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline AIPromptSummary& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the AI Prompt.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline AIPromptSummary& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline AIPromptSummary& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline AIPromptSummary& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the model used for this AI Prompt. Model Ids supported are: + * CLAUDE_3_HAIKU_20240307_V1.

    + */ + inline const Aws::String& GetModelId() const{ return m_modelId; } + inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } + inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; } + inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); } + inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); } + inline AIPromptSummary& WithModelId(const Aws::String& value) { SetModelId(value); return *this;} + inline AIPromptSummary& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;} + inline AIPromptSummary& WithModelId(const char* value) { SetModelId(value); return *this;} + ///@} + + ///@{ + /** + *

    The time the AI Prompt was last modified.

    + */ + inline const Aws::Utils::DateTime& GetModifiedTime() const{ return m_modifiedTime; } + inline bool ModifiedTimeHasBeenSet() const { return m_modifiedTimeHasBeenSet; } + inline void SetModifiedTime(const Aws::Utils::DateTime& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = value; } + inline void SetModifiedTime(Aws::Utils::DateTime&& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = std::move(value); } + inline AIPromptSummary& WithModifiedTime(const Aws::Utils::DateTime& value) { SetModifiedTime(value); return *this;} + inline AIPromptSummary& WithModifiedTime(Aws::Utils::DateTime&& value) { SetModifiedTime(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The name of the AI Prompt.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline AIPromptSummary& WithName(const Aws::String& value) { SetName(value); return *this;} + inline AIPromptSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline AIPromptSummary& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

    The origin of the AI Prompt. SYSTEM for a default AI Prompt + * created by Q in Connect or CUSTOMER for an AI Prompt created by + * calling AI Prompt creation APIs.

    + */ + inline const Origin& GetOrigin() const{ return m_origin; } + inline bool OriginHasBeenSet() const { return m_originHasBeenSet; } + inline void SetOrigin(const Origin& value) { m_originHasBeenSet = true; m_origin = value; } + inline void SetOrigin(Origin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); } + inline AIPromptSummary& WithOrigin(const Origin& value) { SetOrigin(value); return *this;} + inline AIPromptSummary& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The status of the AI Prompt.

    + */ + inline const Status& GetStatus() const{ return m_status; } + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + inline void SetStatus(const Status& value) { m_statusHasBeenSet = true; m_status = value; } + inline void SetStatus(Status&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + inline AIPromptSummary& WithStatus(const Status& value) { SetStatus(value); return *this;} + inline AIPromptSummary& WithStatus(Status&& value) { SetStatus(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The tags used to organize, track, or control access for this resource.

    + */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline AIPromptSummary& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline AIPromptSummary& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline AIPromptSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline AIPromptSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline AIPromptSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline AIPromptSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline AIPromptSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline AIPromptSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline AIPromptSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

    The type of the prompt template for this AI Prompt.

    + */ + inline const AIPromptTemplateType& GetTemplateType() const{ return m_templateType; } + inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; } + inline void SetTemplateType(const AIPromptTemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; } + inline void SetTemplateType(AIPromptTemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); } + inline AIPromptSummary& WithTemplateType(const AIPromptTemplateType& value) { SetTemplateType(value); return *this;} + inline AIPromptSummary& WithTemplateType(AIPromptTemplateType&& value) { SetTemplateType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The type of this AI Prompt.

    + */ + inline const AIPromptType& GetType() const{ return m_type; } + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + inline void SetType(const AIPromptType& value) { m_typeHasBeenSet = true; m_type = value; } + inline void SetType(AIPromptType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + inline AIPromptSummary& WithType(const AIPromptType& value) { SetType(value); return *this;} + inline AIPromptSummary& WithType(AIPromptType&& value) { SetType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The visibility status of the AI Prompt.

    + */ + inline const VisibilityStatus& GetVisibilityStatus() const{ return m_visibilityStatus; } + inline bool VisibilityStatusHasBeenSet() const { return m_visibilityStatusHasBeenSet; } + inline void SetVisibilityStatus(const VisibilityStatus& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = value; } + inline void SetVisibilityStatus(VisibilityStatus&& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = std::move(value); } + inline AIPromptSummary& WithVisibilityStatus(const VisibilityStatus& value) { SetVisibilityStatus(value); return *this;} + inline AIPromptSummary& WithVisibilityStatus(VisibilityStatus&& value) { SetVisibilityStatus(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_aiPromptArn; + bool m_aiPromptArnHasBeenSet = false; + + Aws::String m_aiPromptId; + bool m_aiPromptIdHasBeenSet = false; + + AIPromptAPIFormat m_apiFormat; + bool m_apiFormatHasBeenSet = false; + + Aws::String m_assistantArn; + bool m_assistantArnHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_modelId; + bool m_modelIdHasBeenSet = false; + + Aws::Utils::DateTime m_modifiedTime; + bool m_modifiedTimeHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Origin m_origin; + bool m_originHasBeenSet = false; + + Status m_status; + bool m_statusHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + + AIPromptTemplateType m_templateType; + bool m_templateTypeHasBeenSet = false; + + AIPromptType m_type; + bool m_typeHasBeenSet = false; + + VisibilityStatus m_visibilityStatus; + bool m_visibilityStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptTemplateConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptTemplateConfiguration.h new file mode 100644 index 00000000000..c0ec03d17d5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptTemplateConfiguration.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    A typed union that specifies the configuration for a prompt template based on + * its type.

    See Also:

    AWS + * API Reference

    + */ + class AIPromptTemplateConfiguration + { + public: + AWS_QCONNECT_API AIPromptTemplateConfiguration(); + AWS_QCONNECT_API AIPromptTemplateConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AIPromptTemplateConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The configuration for a prompt template that supports full textual prompt + * configuration using a YAML prompt.

    + */ + inline const TextFullAIPromptEditTemplateConfiguration& GetTextFullAIPromptEditTemplateConfiguration() const{ return m_textFullAIPromptEditTemplateConfiguration; } + inline bool TextFullAIPromptEditTemplateConfigurationHasBeenSet() const { return m_textFullAIPromptEditTemplateConfigurationHasBeenSet; } + inline void SetTextFullAIPromptEditTemplateConfiguration(const TextFullAIPromptEditTemplateConfiguration& value) { m_textFullAIPromptEditTemplateConfigurationHasBeenSet = true; m_textFullAIPromptEditTemplateConfiguration = value; } + inline void SetTextFullAIPromptEditTemplateConfiguration(TextFullAIPromptEditTemplateConfiguration&& value) { m_textFullAIPromptEditTemplateConfigurationHasBeenSet = true; m_textFullAIPromptEditTemplateConfiguration = std::move(value); } + inline AIPromptTemplateConfiguration& WithTextFullAIPromptEditTemplateConfiguration(const TextFullAIPromptEditTemplateConfiguration& value) { SetTextFullAIPromptEditTemplateConfiguration(value); return *this;} + inline AIPromptTemplateConfiguration& WithTextFullAIPromptEditTemplateConfiguration(TextFullAIPromptEditTemplateConfiguration&& value) { SetTextFullAIPromptEditTemplateConfiguration(std::move(value)); return *this;} + ///@} + private: + + TextFullAIPromptEditTemplateConfiguration m_textFullAIPromptEditTemplateConfiguration; + bool m_textFullAIPromptEditTemplateConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptTemplateType.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptTemplateType.h new file mode 100644 index 00000000000..e579be93023 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptTemplateType.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class AIPromptTemplateType + { + NOT_SET, + TEXT + }; + +namespace AIPromptTemplateTypeMapper +{ +AWS_QCONNECT_API AIPromptTemplateType GetAIPromptTemplateTypeForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForAIPromptTemplateType(AIPromptTemplateType value); +} // namespace AIPromptTemplateTypeMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptType.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptType.h new file mode 100644 index 00000000000..0b986dece11 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptType.h @@ -0,0 +1,32 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class AIPromptType + { + NOT_SET, + ANSWER_GENERATION, + INTENT_LABELING_GENERATION, + QUERY_REFORMULATION + }; + +namespace AIPromptTypeMapper +{ +AWS_QCONNECT_API AIPromptType GetAIPromptTypeForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForAIPromptType(AIPromptType value); +} // namespace AIPromptTypeMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptVersionSummary.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptVersionSummary.h new file mode 100644 index 00000000000..a6e1512fa1a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AIPromptVersionSummary.h @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The summary of the AI Prompt version.

    See Also:

    AWS + * API Reference

    + */ + class AIPromptVersionSummary + { + public: + AWS_QCONNECT_API AIPromptVersionSummary(); + AWS_QCONNECT_API AIPromptVersionSummary(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AIPromptVersionSummary& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The date for the summary of the AI Prompt version.

    + */ + inline const AIPromptSummary& GetAiPromptSummary() const{ return m_aiPromptSummary; } + inline bool AiPromptSummaryHasBeenSet() const { return m_aiPromptSummaryHasBeenSet; } + inline void SetAiPromptSummary(const AIPromptSummary& value) { m_aiPromptSummaryHasBeenSet = true; m_aiPromptSummary = value; } + inline void SetAiPromptSummary(AIPromptSummary&& value) { m_aiPromptSummaryHasBeenSet = true; m_aiPromptSummary = std::move(value); } + inline AIPromptVersionSummary& WithAiPromptSummary(const AIPromptSummary& value) { SetAiPromptSummary(value); return *this;} + inline AIPromptVersionSummary& WithAiPromptSummary(AIPromptSummary&& value) { SetAiPromptSummary(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The version number for this AI Prompt version.

    + */ + inline long long GetVersionNumber() const{ return m_versionNumber; } + inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; } + inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; } + inline AIPromptVersionSummary& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} + ///@} + private: + + AIPromptSummary m_aiPromptSummary; + bool m_aiPromptSummaryHasBeenSet = false; + + long long m_versionNumber; + bool m_versionNumberHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AnswerRecommendationAIAgentConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AnswerRecommendationAIAgentConfiguration.h new file mode 100644 index 00000000000..fde9e3741ff --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AnswerRecommendationAIAgentConfiguration.h @@ -0,0 +1,118 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The configuration for the ANSWER_RECOMMENDATION AI Agent + * type.

    See Also:

    AWS + * API Reference

    + */ + class AnswerRecommendationAIAgentConfiguration + { + public: + AWS_QCONNECT_API AnswerRecommendationAIAgentConfiguration(); + AWS_QCONNECT_API AnswerRecommendationAIAgentConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AnswerRecommendationAIAgentConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The AI Prompt identifier for the Answer Generation prompt used by the + * ANSWER_RECOMMENDATION AI Agent.

    + */ + inline const Aws::String& GetAnswerGenerationAIPromptId() const{ return m_answerGenerationAIPromptId; } + inline bool AnswerGenerationAIPromptIdHasBeenSet() const { return m_answerGenerationAIPromptIdHasBeenSet; } + inline void SetAnswerGenerationAIPromptId(const Aws::String& value) { m_answerGenerationAIPromptIdHasBeenSet = true; m_answerGenerationAIPromptId = value; } + inline void SetAnswerGenerationAIPromptId(Aws::String&& value) { m_answerGenerationAIPromptIdHasBeenSet = true; m_answerGenerationAIPromptId = std::move(value); } + inline void SetAnswerGenerationAIPromptId(const char* value) { m_answerGenerationAIPromptIdHasBeenSet = true; m_answerGenerationAIPromptId.assign(value); } + inline AnswerRecommendationAIAgentConfiguration& WithAnswerGenerationAIPromptId(const Aws::String& value) { SetAnswerGenerationAIPromptId(value); return *this;} + inline AnswerRecommendationAIAgentConfiguration& WithAnswerGenerationAIPromptId(Aws::String&& value) { SetAnswerGenerationAIPromptId(std::move(value)); return *this;} + inline AnswerRecommendationAIAgentConfiguration& WithAnswerGenerationAIPromptId(const char* value) { SetAnswerGenerationAIPromptId(value); return *this;} + ///@} + + ///@{ + /** + *

    The association configurations for overriding behavior on this AI Agent.

    + */ + inline const Aws::Vector& GetAssociationConfigurations() const{ return m_associationConfigurations; } + inline bool AssociationConfigurationsHasBeenSet() const { return m_associationConfigurationsHasBeenSet; } + inline void SetAssociationConfigurations(const Aws::Vector& value) { m_associationConfigurationsHasBeenSet = true; m_associationConfigurations = value; } + inline void SetAssociationConfigurations(Aws::Vector&& value) { m_associationConfigurationsHasBeenSet = true; m_associationConfigurations = std::move(value); } + inline AnswerRecommendationAIAgentConfiguration& WithAssociationConfigurations(const Aws::Vector& value) { SetAssociationConfigurations(value); return *this;} + inline AnswerRecommendationAIAgentConfiguration& WithAssociationConfigurations(Aws::Vector&& value) { SetAssociationConfigurations(std::move(value)); return *this;} + inline AnswerRecommendationAIAgentConfiguration& AddAssociationConfigurations(const AssociationConfiguration& value) { m_associationConfigurationsHasBeenSet = true; m_associationConfigurations.push_back(value); return *this; } + inline AnswerRecommendationAIAgentConfiguration& AddAssociationConfigurations(AssociationConfiguration&& value) { m_associationConfigurationsHasBeenSet = true; m_associationConfigurations.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The AI Prompt identifier for the Intent Labeling prompt used by the + * ANSWER_RECOMMENDATION AI Agent.

    + */ + inline const Aws::String& GetIntentLabelingGenerationAIPromptId() const{ return m_intentLabelingGenerationAIPromptId; } + inline bool IntentLabelingGenerationAIPromptIdHasBeenSet() const { return m_intentLabelingGenerationAIPromptIdHasBeenSet; } + inline void SetIntentLabelingGenerationAIPromptId(const Aws::String& value) { m_intentLabelingGenerationAIPromptIdHasBeenSet = true; m_intentLabelingGenerationAIPromptId = value; } + inline void SetIntentLabelingGenerationAIPromptId(Aws::String&& value) { m_intentLabelingGenerationAIPromptIdHasBeenSet = true; m_intentLabelingGenerationAIPromptId = std::move(value); } + inline void SetIntentLabelingGenerationAIPromptId(const char* value) { m_intentLabelingGenerationAIPromptIdHasBeenSet = true; m_intentLabelingGenerationAIPromptId.assign(value); } + inline AnswerRecommendationAIAgentConfiguration& WithIntentLabelingGenerationAIPromptId(const Aws::String& value) { SetIntentLabelingGenerationAIPromptId(value); return *this;} + inline AnswerRecommendationAIAgentConfiguration& WithIntentLabelingGenerationAIPromptId(Aws::String&& value) { SetIntentLabelingGenerationAIPromptId(std::move(value)); return *this;} + inline AnswerRecommendationAIAgentConfiguration& WithIntentLabelingGenerationAIPromptId(const char* value) { SetIntentLabelingGenerationAIPromptId(value); return *this;} + ///@} + + ///@{ + /** + *

    The AI Prompt identifier for the Query Reformulation prompt used by the + * ANSWER_RECOMMENDATION AI Agent.

    + */ + inline const Aws::String& GetQueryReformulationAIPromptId() const{ return m_queryReformulationAIPromptId; } + inline bool QueryReformulationAIPromptIdHasBeenSet() const { return m_queryReformulationAIPromptIdHasBeenSet; } + inline void SetQueryReformulationAIPromptId(const Aws::String& value) { m_queryReformulationAIPromptIdHasBeenSet = true; m_queryReformulationAIPromptId = value; } + inline void SetQueryReformulationAIPromptId(Aws::String&& value) { m_queryReformulationAIPromptIdHasBeenSet = true; m_queryReformulationAIPromptId = std::move(value); } + inline void SetQueryReformulationAIPromptId(const char* value) { m_queryReformulationAIPromptIdHasBeenSet = true; m_queryReformulationAIPromptId.assign(value); } + inline AnswerRecommendationAIAgentConfiguration& WithQueryReformulationAIPromptId(const Aws::String& value) { SetQueryReformulationAIPromptId(value); return *this;} + inline AnswerRecommendationAIAgentConfiguration& WithQueryReformulationAIPromptId(Aws::String&& value) { SetQueryReformulationAIPromptId(std::move(value)); return *this;} + inline AnswerRecommendationAIAgentConfiguration& WithQueryReformulationAIPromptId(const char* value) { SetQueryReformulationAIPromptId(value); return *this;} + ///@} + private: + + Aws::String m_answerGenerationAIPromptId; + bool m_answerGenerationAIPromptIdHasBeenSet = false; + + Aws::Vector m_associationConfigurations; + bool m_associationConfigurationsHasBeenSet = false; + + Aws::String m_intentLabelingGenerationAIPromptId; + bool m_intentLabelingGenerationAIPromptIdHasBeenSet = false; + + Aws::String m_queryReformulationAIPromptId; + bool m_queryReformulationAIPromptIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AppIntegrationsConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AppIntegrationsConfiguration.h index fc38ead0010..1d20d9743b0 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AppIntegrationsConfiguration.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AppIntegrationsConfiguration.h @@ -64,7 +64,7 @@ namespace Model * your AppIntegrations DataIntegration must have a FileConfiguration, including * only file extensions that are among docx, pdf, * html, htm, and txt.

  • - * For Amazon S3, the ObjectConfiguration + * For Amazon S3, the ObjectConfiguration * and FileConfiguration of your AppIntegrations DataIntegration must be null. The * SourceURI of your DataIntegration must use the following format: * s3://your_s3_bucket_name.

    The bucket policy of diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssistantData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssistantData.h index c97034ee413..1cabc16d3ab 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssistantData.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssistantData.h @@ -5,13 +5,15 @@ #pragma once #include +#include #include #include #include #include #include -#include #include +#include +#include #include namespace Aws @@ -43,6 +45,23 @@ namespace Model AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + ///@{ + /** + *

    The configuration of the AI Agents (mapped by AI Agent Type to AI Agent + * version) that is set on the Amazon Q in Connect Assistant.

    + */ + inline const Aws::Map& GetAiAgentConfiguration() const{ return m_aiAgentConfiguration; } + inline bool AiAgentConfigurationHasBeenSet() const { return m_aiAgentConfigurationHasBeenSet; } + inline void SetAiAgentConfiguration(const Aws::Map& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = value; } + inline void SetAiAgentConfiguration(Aws::Map&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = std::move(value); } + inline AssistantData& WithAiAgentConfiguration(const Aws::Map& value) { SetAiAgentConfiguration(value); return *this;} + inline AssistantData& WithAiAgentConfiguration(Aws::Map&& value) { SetAiAgentConfiguration(std::move(value)); return *this;} + inline AssistantData& AddAiAgentConfiguration(const AIAgentType& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, value); return *this; } + inline AssistantData& AddAiAgentConfiguration(AIAgentType&& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), value); return *this; } + inline AssistantData& AddAiAgentConfiguration(const AIAgentType& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, std::move(value)); return *this; } + inline AssistantData& AddAiAgentConfiguration(AIAgentType&& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), std::move(value)); return *this; } + ///@} + ///@{ /** *

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    @@ -192,6 +211,9 @@ namespace Model ///@} private: + Aws::Map m_aiAgentConfiguration; + bool m_aiAgentConfigurationHasBeenSet = false; + Aws::String m_assistantArn; bool m_assistantArnHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssistantSummary.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssistantSummary.h index 6d05b54ed84..e3c4bfe8905 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssistantSummary.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssistantSummary.h @@ -5,13 +5,15 @@ #pragma once #include +#include #include #include #include #include #include -#include #include +#include +#include #include namespace Aws @@ -43,6 +45,23 @@ namespace Model AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + ///@{ + /** + *

    The configuration of the AI Agents (mapped by AI Agent Type to AI Agent + * version) that is set on the Amazon Q in Connect Assistant.

    + */ + inline const Aws::Map& GetAiAgentConfiguration() const{ return m_aiAgentConfiguration; } + inline bool AiAgentConfigurationHasBeenSet() const { return m_aiAgentConfigurationHasBeenSet; } + inline void SetAiAgentConfiguration(const Aws::Map& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = value; } + inline void SetAiAgentConfiguration(Aws::Map&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = std::move(value); } + inline AssistantSummary& WithAiAgentConfiguration(const Aws::Map& value) { SetAiAgentConfiguration(value); return *this;} + inline AssistantSummary& WithAiAgentConfiguration(Aws::Map&& value) { SetAiAgentConfiguration(std::move(value)); return *this;} + inline AssistantSummary& AddAiAgentConfiguration(const AIAgentType& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, value); return *this; } + inline AssistantSummary& AddAiAgentConfiguration(AIAgentType&& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), value); return *this; } + inline AssistantSummary& AddAiAgentConfiguration(const AIAgentType& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, std::move(value)); return *this; } + inline AssistantSummary& AddAiAgentConfiguration(AIAgentType&& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), std::move(value)); return *this; } + ///@} + ///@{ /** *

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    @@ -192,6 +211,9 @@ namespace Model ///@} private: + Aws::Map m_aiAgentConfiguration; + bool m_aiAgentConfigurationHasBeenSet = false; + Aws::String m_assistantArn; bool m_assistantArnHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssociationConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssociationConfiguration.h new file mode 100644 index 00000000000..12d8026ffb3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssociationConfiguration.h @@ -0,0 +1,95 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The configuration for an Amazon Q in Connect Assistant + * Association.

    See Also:

    AWS + * API Reference

    + */ + class AssociationConfiguration + { + public: + AWS_QCONNECT_API AssociationConfiguration(); + AWS_QCONNECT_API AssociationConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AssociationConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The data of the configuration for an Amazon Q in Connect Assistant + * Association.

    + */ + inline const AssociationConfigurationData& GetAssociationConfigurationData() const{ return m_associationConfigurationData; } + inline bool AssociationConfigurationDataHasBeenSet() const { return m_associationConfigurationDataHasBeenSet; } + inline void SetAssociationConfigurationData(const AssociationConfigurationData& value) { m_associationConfigurationDataHasBeenSet = true; m_associationConfigurationData = value; } + inline void SetAssociationConfigurationData(AssociationConfigurationData&& value) { m_associationConfigurationDataHasBeenSet = true; m_associationConfigurationData = std::move(value); } + inline AssociationConfiguration& WithAssociationConfigurationData(const AssociationConfigurationData& value) { SetAssociationConfigurationData(value); return *this;} + inline AssociationConfiguration& WithAssociationConfigurationData(AssociationConfigurationData&& value) { SetAssociationConfigurationData(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the association for this Association Configuration.

    + */ + inline const Aws::String& GetAssociationId() const{ return m_associationId; } + inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; } + inline void SetAssociationId(const Aws::String& value) { m_associationIdHasBeenSet = true; m_associationId = value; } + inline void SetAssociationId(Aws::String&& value) { m_associationIdHasBeenSet = true; m_associationId = std::move(value); } + inline void SetAssociationId(const char* value) { m_associationIdHasBeenSet = true; m_associationId.assign(value); } + inline AssociationConfiguration& WithAssociationId(const Aws::String& value) { SetAssociationId(value); return *this;} + inline AssociationConfiguration& WithAssociationId(Aws::String&& value) { SetAssociationId(std::move(value)); return *this;} + inline AssociationConfiguration& WithAssociationId(const char* value) { SetAssociationId(value); return *this;} + ///@} + + ///@{ + /** + *

    The type of the association for this Association Configuration.

    + */ + inline const AIAgentAssociationConfigurationType& GetAssociationType() const{ return m_associationType; } + inline bool AssociationTypeHasBeenSet() const { return m_associationTypeHasBeenSet; } + inline void SetAssociationType(const AIAgentAssociationConfigurationType& value) { m_associationTypeHasBeenSet = true; m_associationType = value; } + inline void SetAssociationType(AIAgentAssociationConfigurationType&& value) { m_associationTypeHasBeenSet = true; m_associationType = std::move(value); } + inline AssociationConfiguration& WithAssociationType(const AIAgentAssociationConfigurationType& value) { SetAssociationType(value); return *this;} + inline AssociationConfiguration& WithAssociationType(AIAgentAssociationConfigurationType&& value) { SetAssociationType(std::move(value)); return *this;} + ///@} + private: + + AssociationConfigurationData m_associationConfigurationData; + bool m_associationConfigurationDataHasBeenSet = false; + + Aws::String m_associationId; + bool m_associationIdHasBeenSet = false; + + AIAgentAssociationConfigurationType m_associationType; + bool m_associationTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssociationConfigurationData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssociationConfigurationData.h new file mode 100644 index 00000000000..8a50822cb85 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/AssociationConfigurationData.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    A typed union of the data of the configuration for an Amazon Q in Connect + * Assistant Association.

    See Also:

    AWS + * API Reference

    + */ + class AssociationConfigurationData + { + public: + AWS_QCONNECT_API AssociationConfigurationData(); + AWS_QCONNECT_API AssociationConfigurationData(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API AssociationConfigurationData& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The data of the configuration for a KNOWLEDGE_BASE type Amazon Q + * in Connect Assistant Association.

    + */ + inline const KnowledgeBaseAssociationConfigurationData& GetKnowledgeBaseAssociationConfigurationData() const{ return m_knowledgeBaseAssociationConfigurationData; } + inline bool KnowledgeBaseAssociationConfigurationDataHasBeenSet() const { return m_knowledgeBaseAssociationConfigurationDataHasBeenSet; } + inline void SetKnowledgeBaseAssociationConfigurationData(const KnowledgeBaseAssociationConfigurationData& value) { m_knowledgeBaseAssociationConfigurationDataHasBeenSet = true; m_knowledgeBaseAssociationConfigurationData = value; } + inline void SetKnowledgeBaseAssociationConfigurationData(KnowledgeBaseAssociationConfigurationData&& value) { m_knowledgeBaseAssociationConfigurationDataHasBeenSet = true; m_knowledgeBaseAssociationConfigurationData = std::move(value); } + inline AssociationConfigurationData& WithKnowledgeBaseAssociationConfigurationData(const KnowledgeBaseAssociationConfigurationData& value) { SetKnowledgeBaseAssociationConfigurationData(value); return *this;} + inline AssociationConfigurationData& WithKnowledgeBaseAssociationConfigurationData(KnowledgeBaseAssociationConfigurationData&& value) { SetKnowledgeBaseAssociationConfigurationData(std::move(value)); return *this;} + ///@} + private: + + KnowledgeBaseAssociationConfigurationData m_knowledgeBaseAssociationConfigurationData; + bool m_knowledgeBaseAssociationConfigurationDataHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/BedrockFoundationModelConfigurationForParsing.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/BedrockFoundationModelConfigurationForParsing.h new file mode 100644 index 00000000000..76c61fa01d5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/BedrockFoundationModelConfigurationForParsing.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Settings for a foundation model used to parse documents for a data + * source.

    See Also:

    AWS + * API Reference

    + */ + class BedrockFoundationModelConfigurationForParsing + { + public: + AWS_QCONNECT_API BedrockFoundationModelConfigurationForParsing(); + AWS_QCONNECT_API BedrockFoundationModelConfigurationForParsing(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API BedrockFoundationModelConfigurationForParsing& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The ARN of the foundation model.

    + */ + inline const Aws::String& GetModelArn() const{ return m_modelArn; } + inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; } + inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; } + inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); } + inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); } + inline BedrockFoundationModelConfigurationForParsing& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;} + inline BedrockFoundationModelConfigurationForParsing& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;} + inline BedrockFoundationModelConfigurationForParsing& WithModelArn(const char* value) { SetModelArn(value); return *this;} + ///@} + + ///@{ + /** + *

    Instructions for interpreting the contents of a document.

    + */ + inline const ParsingPrompt& GetParsingPrompt() const{ return m_parsingPrompt; } + inline bool ParsingPromptHasBeenSet() const { return m_parsingPromptHasBeenSet; } + inline void SetParsingPrompt(const ParsingPrompt& value) { m_parsingPromptHasBeenSet = true; m_parsingPrompt = value; } + inline void SetParsingPrompt(ParsingPrompt&& value) { m_parsingPromptHasBeenSet = true; m_parsingPrompt = std::move(value); } + inline BedrockFoundationModelConfigurationForParsing& WithParsingPrompt(const ParsingPrompt& value) { SetParsingPrompt(value); return *this;} + inline BedrockFoundationModelConfigurationForParsing& WithParsingPrompt(ParsingPrompt&& value) { SetParsingPrompt(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_modelArn; + bool m_modelArnHasBeenSet = false; + + ParsingPrompt m_parsingPrompt; + bool m_parsingPromptHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ChunkingConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ChunkingConfiguration.h new file mode 100644 index 00000000000..10ca489a6c5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ChunkingConfiguration.h @@ -0,0 +1,119 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Details about how to chunk the documents in the data source. A chunk refers + * to an excerpt from a data source that is returned when the knowledge base that + * it belongs to is queried.

    See Also:

    AWS + * API Reference

    + */ + class ChunkingConfiguration + { + public: + AWS_QCONNECT_API ChunkingConfiguration(); + AWS_QCONNECT_API ChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API ChunkingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    Knowledge base can split your source data into chunks. A chunk refers to an + * excerpt from a data source that is returned when the knowledge base that it + * belongs to is queried. You have the following options for chunking your data. If + * you opt for NONE, then you may want to pre-process your files by + * splitting them up such that each file corresponds to a chunk.

    + */ + inline const ChunkingStrategy& GetChunkingStrategy() const{ return m_chunkingStrategy; } + inline bool ChunkingStrategyHasBeenSet() const { return m_chunkingStrategyHasBeenSet; } + inline void SetChunkingStrategy(const ChunkingStrategy& value) { m_chunkingStrategyHasBeenSet = true; m_chunkingStrategy = value; } + inline void SetChunkingStrategy(ChunkingStrategy&& value) { m_chunkingStrategyHasBeenSet = true; m_chunkingStrategy = std::move(value); } + inline ChunkingConfiguration& WithChunkingStrategy(const ChunkingStrategy& value) { SetChunkingStrategy(value); return *this;} + inline ChunkingConfiguration& WithChunkingStrategy(ChunkingStrategy&& value) { SetChunkingStrategy(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Configurations for when you choose fixed-size chunking. If you set the + * chunkingStrategy as NONE, exclude this field.

    + */ + inline const FixedSizeChunkingConfiguration& GetFixedSizeChunkingConfiguration() const{ return m_fixedSizeChunkingConfiguration; } + inline bool FixedSizeChunkingConfigurationHasBeenSet() const { return m_fixedSizeChunkingConfigurationHasBeenSet; } + inline void SetFixedSizeChunkingConfiguration(const FixedSizeChunkingConfiguration& value) { m_fixedSizeChunkingConfigurationHasBeenSet = true; m_fixedSizeChunkingConfiguration = value; } + inline void SetFixedSizeChunkingConfiguration(FixedSizeChunkingConfiguration&& value) { m_fixedSizeChunkingConfigurationHasBeenSet = true; m_fixedSizeChunkingConfiguration = std::move(value); } + inline ChunkingConfiguration& WithFixedSizeChunkingConfiguration(const FixedSizeChunkingConfiguration& value) { SetFixedSizeChunkingConfiguration(value); return *this;} + inline ChunkingConfiguration& WithFixedSizeChunkingConfiguration(FixedSizeChunkingConfiguration&& value) { SetFixedSizeChunkingConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Settings for hierarchical document chunking for a data source. Hierarchical + * chunking splits documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the + * first layer.

    + */ + inline const HierarchicalChunkingConfiguration& GetHierarchicalChunkingConfiguration() const{ return m_hierarchicalChunkingConfiguration; } + inline bool HierarchicalChunkingConfigurationHasBeenSet() const { return m_hierarchicalChunkingConfigurationHasBeenSet; } + inline void SetHierarchicalChunkingConfiguration(const HierarchicalChunkingConfiguration& value) { m_hierarchicalChunkingConfigurationHasBeenSet = true; m_hierarchicalChunkingConfiguration = value; } + inline void SetHierarchicalChunkingConfiguration(HierarchicalChunkingConfiguration&& value) { m_hierarchicalChunkingConfigurationHasBeenSet = true; m_hierarchicalChunkingConfiguration = std::move(value); } + inline ChunkingConfiguration& WithHierarchicalChunkingConfiguration(const HierarchicalChunkingConfiguration& value) { SetHierarchicalChunkingConfiguration(value); return *this;} + inline ChunkingConfiguration& WithHierarchicalChunkingConfiguration(HierarchicalChunkingConfiguration&& value) { SetHierarchicalChunkingConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Settings for semantic document chunking for a data source. Semantic chunking + * splits a document into smaller documents based on groups of similar content + * derived from the text with natural language processing.

    + */ + inline const SemanticChunkingConfiguration& GetSemanticChunkingConfiguration() const{ return m_semanticChunkingConfiguration; } + inline bool SemanticChunkingConfigurationHasBeenSet() const { return m_semanticChunkingConfigurationHasBeenSet; } + inline void SetSemanticChunkingConfiguration(const SemanticChunkingConfiguration& value) { m_semanticChunkingConfigurationHasBeenSet = true; m_semanticChunkingConfiguration = value; } + inline void SetSemanticChunkingConfiguration(SemanticChunkingConfiguration&& value) { m_semanticChunkingConfigurationHasBeenSet = true; m_semanticChunkingConfiguration = std::move(value); } + inline ChunkingConfiguration& WithSemanticChunkingConfiguration(const SemanticChunkingConfiguration& value) { SetSemanticChunkingConfiguration(value); return *this;} + inline ChunkingConfiguration& WithSemanticChunkingConfiguration(SemanticChunkingConfiguration&& value) { SetSemanticChunkingConfiguration(std::move(value)); return *this;} + ///@} + private: + + ChunkingStrategy m_chunkingStrategy; + bool m_chunkingStrategyHasBeenSet = false; + + FixedSizeChunkingConfiguration m_fixedSizeChunkingConfiguration; + bool m_fixedSizeChunkingConfigurationHasBeenSet = false; + + HierarchicalChunkingConfiguration m_hierarchicalChunkingConfiguration; + bool m_hierarchicalChunkingConfigurationHasBeenSet = false; + + SemanticChunkingConfiguration m_semanticChunkingConfiguration; + bool m_semanticChunkingConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ChunkingStrategy.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ChunkingStrategy.h new file mode 100644 index 00000000000..a84b1e085c1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ChunkingStrategy.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class ChunkingStrategy + { + NOT_SET, + FIXED_SIZE, + NONE, + HIERARCHICAL, + SEMANTIC + }; + +namespace ChunkingStrategyMapper +{ +AWS_QCONNECT_API ChunkingStrategy GetChunkingStrategyForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForChunkingStrategy(ChunkingStrategy value); +} // namespace ChunkingStrategyMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CitationSpan.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CitationSpan.h new file mode 100644 index 00000000000..9dd1e14c5f7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CitationSpan.h @@ -0,0 +1,69 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Contains information about where the text with a citation begins and ends in + * the generated output.

    See Also:

    AWS + * API Reference

    + */ + class CitationSpan + { + public: + AWS_QCONNECT_API CitationSpan(); + AWS_QCONNECT_API CitationSpan(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API CitationSpan& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    Where the text with a citation starts in the generated output.

    + */ + inline int GetBeginOffsetInclusive() const{ return m_beginOffsetInclusive; } + inline bool BeginOffsetInclusiveHasBeenSet() const { return m_beginOffsetInclusiveHasBeenSet; } + inline void SetBeginOffsetInclusive(int value) { m_beginOffsetInclusiveHasBeenSet = true; m_beginOffsetInclusive = value; } + inline CitationSpan& WithBeginOffsetInclusive(int value) { SetBeginOffsetInclusive(value); return *this;} + ///@} + + ///@{ + /** + *

    Where the text with a citation ends in the generated output.

    + */ + inline int GetEndOffsetExclusive() const{ return m_endOffsetExclusive; } + inline bool EndOffsetExclusiveHasBeenSet() const { return m_endOffsetExclusiveHasBeenSet; } + inline void SetEndOffsetExclusive(int value) { m_endOffsetExclusiveHasBeenSet = true; m_endOffsetExclusive = value; } + inline CitationSpan& WithEndOffsetExclusive(int value) { SetEndOffsetExclusive(value); return *this;} + ///@} + private: + + int m_beginOffsetInclusive; + bool m_beginOffsetInclusiveHasBeenSet = false; + + int m_endOffsetExclusive; + bool m_endOffsetExclusiveHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ContentReference.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ContentReference.h index 886645e96cc..410e22c1da9 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ContentReference.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ContentReference.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include namespace Aws @@ -93,6 +94,32 @@ namespace Model inline ContentReference& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;} inline ContentReference& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;} ///@} + + ///@{ + /** + *

    The type of reference content.

    + */ + inline const ReferenceType& GetReferenceType() const{ return m_referenceType; } + inline bool ReferenceTypeHasBeenSet() const { return m_referenceTypeHasBeenSet; } + inline void SetReferenceType(const ReferenceType& value) { m_referenceTypeHasBeenSet = true; m_referenceType = value; } + inline void SetReferenceType(ReferenceType&& value) { m_referenceTypeHasBeenSet = true; m_referenceType = std::move(value); } + inline ContentReference& WithReferenceType(const ReferenceType& value) { SetReferenceType(value); return *this;} + inline ContentReference& WithReferenceType(ReferenceType&& value) { SetReferenceType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The web URL of the source content.

    + */ + inline const Aws::String& GetSourceURL() const{ return m_sourceURL; } + inline bool SourceURLHasBeenSet() const { return m_sourceURLHasBeenSet; } + inline void SetSourceURL(const Aws::String& value) { m_sourceURLHasBeenSet = true; m_sourceURL = value; } + inline void SetSourceURL(Aws::String&& value) { m_sourceURLHasBeenSet = true; m_sourceURL = std::move(value); } + inline void SetSourceURL(const char* value) { m_sourceURLHasBeenSet = true; m_sourceURL.assign(value); } + inline ContentReference& WithSourceURL(const Aws::String& value) { SetSourceURL(value); return *this;} + inline ContentReference& WithSourceURL(Aws::String&& value) { SetSourceURL(std::move(value)); return *this;} + inline ContentReference& WithSourceURL(const char* value) { SetSourceURL(value); return *this;} + ///@} private: Aws::String m_contentArn; @@ -106,6 +133,12 @@ namespace Model Aws::String m_knowledgeBaseId; bool m_knowledgeBaseIdHasBeenSet = false; + + ReferenceType m_referenceType; + bool m_referenceTypeHasBeenSet = false; + + Aws::String m_sourceURL; + bool m_sourceURLHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentRequest.h new file mode 100644 index 00000000000..550cf1e6df7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentRequest.h @@ -0,0 +1,184 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class CreateAIAgentRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API CreateAIAgentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateAIAgent"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline CreateAIAgentRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline CreateAIAgentRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline CreateAIAgentRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the AWS SDK populates this field. + * For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline CreateAIAgentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline CreateAIAgentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline CreateAIAgentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The configuration of the AI Agent.

    + */ + inline const AIAgentConfiguration& GetConfiguration() const{ return m_configuration; } + inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } + inline void SetConfiguration(const AIAgentConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } + inline void SetConfiguration(AIAgentConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } + inline CreateAIAgentRequest& WithConfiguration(const AIAgentConfiguration& value) { SetConfiguration(value); return *this;} + inline CreateAIAgentRequest& WithConfiguration(AIAgentConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The description of the AI Agent.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline CreateAIAgentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline CreateAIAgentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline CreateAIAgentRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

    The name of the AI Agent.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline CreateAIAgentRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + inline CreateAIAgentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline CreateAIAgentRequest& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

    The tags used to organize, track, or control access for this resource.

    + */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline CreateAIAgentRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline CreateAIAgentRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline CreateAIAgentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline CreateAIAgentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateAIAgentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateAIAgentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline CreateAIAgentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateAIAgentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateAIAgentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

    The type of the AI Agent.

    + */ + inline const AIAgentType& GetType() const{ return m_type; } + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + inline void SetType(const AIAgentType& value) { m_typeHasBeenSet = true; m_type = value; } + inline void SetType(AIAgentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + inline CreateAIAgentRequest& WithType(const AIAgentType& value) { SetType(value); return *this;} + inline CreateAIAgentRequest& WithType(AIAgentType&& value) { SetType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The visibility status of the AI Agent.

    + */ + inline const VisibilityStatus& GetVisibilityStatus() const{ return m_visibilityStatus; } + inline bool VisibilityStatusHasBeenSet() const { return m_visibilityStatusHasBeenSet; } + inline void SetVisibilityStatus(const VisibilityStatus& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = value; } + inline void SetVisibilityStatus(VisibilityStatus&& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = std::move(value); } + inline CreateAIAgentRequest& WithVisibilityStatus(const VisibilityStatus& value) { SetVisibilityStatus(value); return *this;} + inline CreateAIAgentRequest& WithVisibilityStatus(VisibilityStatus&& value) { SetVisibilityStatus(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + AIAgentConfiguration m_configuration; + bool m_configurationHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + + AIAgentType m_type; + bool m_typeHasBeenSet = false; + + VisibilityStatus m_visibilityStatus; + bool m_visibilityStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentResult.h new file mode 100644 index 00000000000..b241061a996 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentResult.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class CreateAIAgentResult + { + public: + AWS_QCONNECT_API CreateAIAgentResult(); + AWS_QCONNECT_API CreateAIAgentResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API CreateAIAgentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The data of the created AI Agent.

    + */ + inline const AIAgentData& GetAiAgent() const{ return m_aiAgent; } + inline void SetAiAgent(const AIAgentData& value) { m_aiAgent = value; } + inline void SetAiAgent(AIAgentData&& value) { m_aiAgent = std::move(value); } + inline CreateAIAgentResult& WithAiAgent(const AIAgentData& value) { SetAiAgent(value); return *this;} + inline CreateAIAgentResult& WithAiAgent(AIAgentData&& value) { SetAiAgent(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline CreateAIAgentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateAIAgentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateAIAgentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AIAgentData m_aiAgent; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentVersionRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentVersionRequest.h new file mode 100644 index 00000000000..e3e6df0615b --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentVersionRequest.h @@ -0,0 +1,117 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class CreateAIAgentVersionRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API CreateAIAgentVersionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateAIAgentVersion"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI Agent.

    + */ + inline const Aws::String& GetAiAgentId() const{ return m_aiAgentId; } + inline bool AiAgentIdHasBeenSet() const { return m_aiAgentIdHasBeenSet; } + inline void SetAiAgentId(const Aws::String& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = value; } + inline void SetAiAgentId(Aws::String&& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = std::move(value); } + inline void SetAiAgentId(const char* value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId.assign(value); } + inline CreateAIAgentVersionRequest& WithAiAgentId(const Aws::String& value) { SetAiAgentId(value); return *this;} + inline CreateAIAgentVersionRequest& WithAiAgentId(Aws::String&& value) { SetAiAgentId(std::move(value)); return *this;} + inline CreateAIAgentVersionRequest& WithAiAgentId(const char* value) { SetAiAgentId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline CreateAIAgentVersionRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline CreateAIAgentVersionRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline CreateAIAgentVersionRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the AWS SDK populates this field. + * For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline CreateAIAgentVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline CreateAIAgentVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline CreateAIAgentVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The modification time of the AI Agent should be tracked for version creation. + * This field should be specified to avoid version creation when simultaneous + * update to the underlying AI Agent are possible. The value should be the + * modifiedTime returned from the request to create or update an AI Agent so that + * version creation can fail if an update to the AI Agent post the specified + * modification time has been made.

    + */ + inline const Aws::Utils::DateTime& GetModifiedTime() const{ return m_modifiedTime; } + inline bool ModifiedTimeHasBeenSet() const { return m_modifiedTimeHasBeenSet; } + inline void SetModifiedTime(const Aws::Utils::DateTime& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = value; } + inline void SetModifiedTime(Aws::Utils::DateTime&& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = std::move(value); } + inline CreateAIAgentVersionRequest& WithModifiedTime(const Aws::Utils::DateTime& value) { SetModifiedTime(value); return *this;} + inline CreateAIAgentVersionRequest& WithModifiedTime(Aws::Utils::DateTime&& value) { SetModifiedTime(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_aiAgentId; + bool m_aiAgentIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::Utils::DateTime m_modifiedTime; + bool m_modifiedTimeHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentVersionResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentVersionResult.h new file mode 100644 index 00000000000..9742cbb6d1f --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIAgentVersionResult.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class CreateAIAgentVersionResult + { + public: + AWS_QCONNECT_API CreateAIAgentVersionResult(); + AWS_QCONNECT_API CreateAIAgentVersionResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API CreateAIAgentVersionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The data of the AI Agent version.

    + */ + inline const AIAgentData& GetAiAgent() const{ return m_aiAgent; } + inline void SetAiAgent(const AIAgentData& value) { m_aiAgent = value; } + inline void SetAiAgent(AIAgentData&& value) { m_aiAgent = std::move(value); } + inline CreateAIAgentVersionResult& WithAiAgent(const AIAgentData& value) { SetAiAgent(value); return *this;} + inline CreateAIAgentVersionResult& WithAiAgent(AIAgentData&& value) { SetAiAgent(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The version number of the AI Agent version.

    + */ + inline long long GetVersionNumber() const{ return m_versionNumber; } + inline void SetVersionNumber(long long value) { m_versionNumber = value; } + inline CreateAIAgentVersionResult& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline CreateAIAgentVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateAIAgentVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateAIAgentVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AIAgentData m_aiAgent; + + long long m_versionNumber; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptRequest.h new file mode 100644 index 00000000000..a2f150929a5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptRequest.h @@ -0,0 +1,234 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class CreateAIPromptRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API CreateAIPromptRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateAIPrompt"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The API Format of the AI Prompt.

    + */ + inline const AIPromptAPIFormat& GetApiFormat() const{ return m_apiFormat; } + inline bool ApiFormatHasBeenSet() const { return m_apiFormatHasBeenSet; } + inline void SetApiFormat(const AIPromptAPIFormat& value) { m_apiFormatHasBeenSet = true; m_apiFormat = value; } + inline void SetApiFormat(AIPromptAPIFormat&& value) { m_apiFormatHasBeenSet = true; m_apiFormat = std::move(value); } + inline CreateAIPromptRequest& WithApiFormat(const AIPromptAPIFormat& value) { SetApiFormat(value); return *this;} + inline CreateAIPromptRequest& WithApiFormat(AIPromptAPIFormat&& value) { SetApiFormat(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline CreateAIPromptRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline CreateAIPromptRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline CreateAIPromptRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the AWS SDK populates this field. + * For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline CreateAIPromptRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline CreateAIPromptRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline CreateAIPromptRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the AI Prompt.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline CreateAIPromptRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline CreateAIPromptRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline CreateAIPromptRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the model used for this AI Prompt. Model Ids supported are: + * CLAUDE_3_HAIKU_20240307_V1

    + */ + inline const Aws::String& GetModelId() const{ return m_modelId; } + inline bool ModelIdHasBeenSet() const { return m_modelIdHasBeenSet; } + inline void SetModelId(const Aws::String& value) { m_modelIdHasBeenSet = true; m_modelId = value; } + inline void SetModelId(Aws::String&& value) { m_modelIdHasBeenSet = true; m_modelId = std::move(value); } + inline void SetModelId(const char* value) { m_modelIdHasBeenSet = true; m_modelId.assign(value); } + inline CreateAIPromptRequest& WithModelId(const Aws::String& value) { SetModelId(value); return *this;} + inline CreateAIPromptRequest& WithModelId(Aws::String&& value) { SetModelId(std::move(value)); return *this;} + inline CreateAIPromptRequest& WithModelId(const char* value) { SetModelId(value); return *this;} + ///@} + + ///@{ + /** + *

    The name of the AI Prompt.

    + */ + inline const Aws::String& GetName() const{ return m_name; } + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + inline CreateAIPromptRequest& WithName(const Aws::String& value) { SetName(value); return *this;} + inline CreateAIPromptRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + inline CreateAIPromptRequest& WithName(const char* value) { SetName(value); return *this;} + ///@} + + ///@{ + /** + *

    The tags used to organize, track, or control access for this resource.

    + */ + inline const Aws::Map& GetTags() const{ return m_tags; } + inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } + inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } + inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } + inline CreateAIPromptRequest& WithTags(const Aws::Map& value) { SetTags(value); return *this;} + inline CreateAIPromptRequest& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} + inline CreateAIPromptRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + inline CreateAIPromptRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateAIPromptRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateAIPromptRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } + inline CreateAIPromptRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } + inline CreateAIPromptRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } + inline CreateAIPromptRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } + ///@} + + ///@{ + /** + *

    The configuration of the prompt template for this AI Prompt.

    + */ + inline const AIPromptTemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; } + inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; } + inline void SetTemplateConfiguration(const AIPromptTemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; } + inline void SetTemplateConfiguration(AIPromptTemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); } + inline CreateAIPromptRequest& WithTemplateConfiguration(const AIPromptTemplateConfiguration& value) { SetTemplateConfiguration(value); return *this;} + inline CreateAIPromptRequest& WithTemplateConfiguration(AIPromptTemplateConfiguration&& value) { SetTemplateConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The type of the prompt template for this AI Prompt.

    + */ + inline const AIPromptTemplateType& GetTemplateType() const{ return m_templateType; } + inline bool TemplateTypeHasBeenSet() const { return m_templateTypeHasBeenSet; } + inline void SetTemplateType(const AIPromptTemplateType& value) { m_templateTypeHasBeenSet = true; m_templateType = value; } + inline void SetTemplateType(AIPromptTemplateType&& value) { m_templateTypeHasBeenSet = true; m_templateType = std::move(value); } + inline CreateAIPromptRequest& WithTemplateType(const AIPromptTemplateType& value) { SetTemplateType(value); return *this;} + inline CreateAIPromptRequest& WithTemplateType(AIPromptTemplateType&& value) { SetTemplateType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The type of this AI Prompt.

    + */ + inline const AIPromptType& GetType() const{ return m_type; } + inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } + inline void SetType(const AIPromptType& value) { m_typeHasBeenSet = true; m_type = value; } + inline void SetType(AIPromptType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } + inline CreateAIPromptRequest& WithType(const AIPromptType& value) { SetType(value); return *this;} + inline CreateAIPromptRequest& WithType(AIPromptType&& value) { SetType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The visibility status of the AI Prompt.

    + */ + inline const VisibilityStatus& GetVisibilityStatus() const{ return m_visibilityStatus; } + inline bool VisibilityStatusHasBeenSet() const { return m_visibilityStatusHasBeenSet; } + inline void SetVisibilityStatus(const VisibilityStatus& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = value; } + inline void SetVisibilityStatus(VisibilityStatus&& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = std::move(value); } + inline CreateAIPromptRequest& WithVisibilityStatus(const VisibilityStatus& value) { SetVisibilityStatus(value); return *this;} + inline CreateAIPromptRequest& WithVisibilityStatus(VisibilityStatus&& value) { SetVisibilityStatus(std::move(value)); return *this;} + ///@} + private: + + AIPromptAPIFormat m_apiFormat; + bool m_apiFormatHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + Aws::String m_modelId; + bool m_modelIdHasBeenSet = false; + + Aws::String m_name; + bool m_nameHasBeenSet = false; + + Aws::Map m_tags; + bool m_tagsHasBeenSet = false; + + AIPromptTemplateConfiguration m_templateConfiguration; + bool m_templateConfigurationHasBeenSet = false; + + AIPromptTemplateType m_templateType; + bool m_templateTypeHasBeenSet = false; + + AIPromptType m_type; + bool m_typeHasBeenSet = false; + + VisibilityStatus m_visibilityStatus; + bool m_visibilityStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptResult.h new file mode 100644 index 00000000000..c28b64d0092 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptResult.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class CreateAIPromptResult + { + public: + AWS_QCONNECT_API CreateAIPromptResult(); + AWS_QCONNECT_API CreateAIPromptResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API CreateAIPromptResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The data of the AI Prompt.

    + */ + inline const AIPromptData& GetAiPrompt() const{ return m_aiPrompt; } + inline void SetAiPrompt(const AIPromptData& value) { m_aiPrompt = value; } + inline void SetAiPrompt(AIPromptData&& value) { m_aiPrompt = std::move(value); } + inline CreateAIPromptResult& WithAiPrompt(const AIPromptData& value) { SetAiPrompt(value); return *this;} + inline CreateAIPromptResult& WithAiPrompt(AIPromptData&& value) { SetAiPrompt(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline CreateAIPromptResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateAIPromptResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateAIPromptResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AIPromptData m_aiPrompt; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptVersionRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptVersionRequest.h new file mode 100644 index 00000000000..502279d4e3a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptVersionRequest.h @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class CreateAIPromptVersionRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API CreateAIPromptVersionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "CreateAIPromptVersion"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI prompt.

    + */ + inline const Aws::String& GetAiPromptId() const{ return m_aiPromptId; } + inline bool AiPromptIdHasBeenSet() const { return m_aiPromptIdHasBeenSet; } + inline void SetAiPromptId(const Aws::String& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = value; } + inline void SetAiPromptId(Aws::String&& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = std::move(value); } + inline void SetAiPromptId(const char* value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId.assign(value); } + inline CreateAIPromptVersionRequest& WithAiPromptId(const Aws::String& value) { SetAiPromptId(value); return *this;} + inline CreateAIPromptVersionRequest& WithAiPromptId(Aws::String&& value) { SetAiPromptId(std::move(value)); return *this;} + inline CreateAIPromptVersionRequest& WithAiPromptId(const char* value) { SetAiPromptId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline CreateAIPromptVersionRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline CreateAIPromptVersionRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline CreateAIPromptVersionRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the AWS SDK populates this field. + * For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline CreateAIPromptVersionRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline CreateAIPromptVersionRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline CreateAIPromptVersionRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The time the AI Prompt was last modified.

    + */ + inline const Aws::Utils::DateTime& GetModifiedTime() const{ return m_modifiedTime; } + inline bool ModifiedTimeHasBeenSet() const { return m_modifiedTimeHasBeenSet; } + inline void SetModifiedTime(const Aws::Utils::DateTime& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = value; } + inline void SetModifiedTime(Aws::Utils::DateTime&& value) { m_modifiedTimeHasBeenSet = true; m_modifiedTime = std::move(value); } + inline CreateAIPromptVersionRequest& WithModifiedTime(const Aws::Utils::DateTime& value) { SetModifiedTime(value); return *this;} + inline CreateAIPromptVersionRequest& WithModifiedTime(Aws::Utils::DateTime&& value) { SetModifiedTime(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_aiPromptId; + bool m_aiPromptIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::Utils::DateTime m_modifiedTime; + bool m_modifiedTimeHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptVersionResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptVersionResult.h new file mode 100644 index 00000000000..cbee92089d8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateAIPromptVersionResult.h @@ -0,0 +1,77 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class CreateAIPromptVersionResult + { + public: + AWS_QCONNECT_API CreateAIPromptVersionResult(); + AWS_QCONNECT_API CreateAIPromptVersionResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API CreateAIPromptVersionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The data of the AI Prompt version.

    + */ + inline const AIPromptData& GetAiPrompt() const{ return m_aiPrompt; } + inline void SetAiPrompt(const AIPromptData& value) { m_aiPrompt = value; } + inline void SetAiPrompt(AIPromptData&& value) { m_aiPrompt = std::move(value); } + inline CreateAIPromptVersionResult& WithAiPrompt(const AIPromptData& value) { SetAiPrompt(value); return *this;} + inline CreateAIPromptVersionResult& WithAiPrompt(AIPromptData&& value) { SetAiPrompt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The version number of the AI Prompt version.

    + */ + inline long long GetVersionNumber() const{ return m_versionNumber; } + inline void SetVersionNumber(long long value) { m_versionNumber = value; } + inline CreateAIPromptVersionResult& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline CreateAIPromptVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline CreateAIPromptVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline CreateAIPromptVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AIPromptData m_aiPrompt; + + long long m_versionNumber; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateKnowledgeBaseRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateKnowledgeBaseRequest.h index 51e5c97a87e..a4100e89c0c 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateKnowledgeBaseRequest.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateKnowledgeBaseRequest.h @@ -12,6 +12,7 @@ #include #include #include +#include #include #include @@ -161,6 +162,18 @@ namespace Model inline CreateKnowledgeBaseRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } inline CreateKnowledgeBaseRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } ///@} + + ///@{ + /** + *

    Contains details about how to ingest the documents in a data source.

    + */ + inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const{ return m_vectorIngestionConfiguration; } + inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; } + inline void SetVectorIngestionConfiguration(const VectorIngestionConfiguration& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = value; } + inline void SetVectorIngestionConfiguration(VectorIngestionConfiguration&& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = std::move(value); } + inline CreateKnowledgeBaseRequest& WithVectorIngestionConfiguration(const VectorIngestionConfiguration& value) { SetVectorIngestionConfiguration(value); return *this;} + inline CreateKnowledgeBaseRequest& WithVectorIngestionConfiguration(VectorIngestionConfiguration&& value) { SetVectorIngestionConfiguration(std::move(value)); return *this;} + ///@} private: Aws::String m_clientToken; @@ -186,6 +199,9 @@ namespace Model Aws::Map m_tags; bool m_tagsHasBeenSet = false; + + VectorIngestionConfiguration m_vectorIngestionConfiguration; + bool m_vectorIngestionConfigurationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateSessionRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateSessionRequest.h index a3f3a0deb92..c739f6cc94a 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateSessionRequest.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/CreateSessionRequest.h @@ -6,9 +6,11 @@ #pragma once #include #include +#include #include #include -#include +#include +#include #include #include @@ -35,6 +37,23 @@ namespace Model AWS_QCONNECT_API Aws::String SerializePayload() const override; + ///@{ + /** + *

    The configuration of the AI Agents (mapped by AI Agent Type to AI Agent + * version) that should be used by Amazon Q in Connect for this Session.

    + */ + inline const Aws::Map& GetAiAgentConfiguration() const{ return m_aiAgentConfiguration; } + inline bool AiAgentConfigurationHasBeenSet() const { return m_aiAgentConfigurationHasBeenSet; } + inline void SetAiAgentConfiguration(const Aws::Map& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = value; } + inline void SetAiAgentConfiguration(Aws::Map&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = std::move(value); } + inline CreateSessionRequest& WithAiAgentConfiguration(const Aws::Map& value) { SetAiAgentConfiguration(value); return *this;} + inline CreateSessionRequest& WithAiAgentConfiguration(Aws::Map&& value) { SetAiAgentConfiguration(std::move(value)); return *this;} + inline CreateSessionRequest& AddAiAgentConfiguration(const AIAgentType& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, value); return *this; } + inline CreateSessionRequest& AddAiAgentConfiguration(AIAgentType&& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), value); return *this; } + inline CreateSessionRequest& AddAiAgentConfiguration(const AIAgentType& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, std::move(value)); return *this; } + inline CreateSessionRequest& AddAiAgentConfiguration(AIAgentType&& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), std::move(value)); return *this; } + ///@} + ///@{ /** *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or @@ -128,6 +147,9 @@ namespace Model ///@} private: + Aws::Map m_aiAgentConfiguration; + bool m_aiAgentConfigurationHasBeenSet = false; + Aws::String m_assistantId; bool m_assistantIdHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DataDetails.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DataDetails.h index 62bc1a354e2..91149015eeb 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DataDetails.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DataDetails.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include #include #include @@ -64,6 +65,18 @@ namespace Model AWS_QCONNECT_API DataDetails& WithGenerativeData(GenerativeDataDetails&& value); ///@} + ///@{ + /** + *

    Details about the intent data.

    + */ + inline const IntentDetectedDataDetails& GetIntentDetectedData() const{ return m_intentDetectedData; } + inline bool IntentDetectedDataHasBeenSet() const { return m_intentDetectedDataHasBeenSet; } + inline void SetIntentDetectedData(const IntentDetectedDataDetails& value) { m_intentDetectedDataHasBeenSet = true; m_intentDetectedData = value; } + inline void SetIntentDetectedData(IntentDetectedDataDetails&& value) { m_intentDetectedDataHasBeenSet = true; m_intentDetectedData = std::move(value); } + inline DataDetails& WithIntentDetectedData(const IntentDetectedDataDetails& value) { SetIntentDetectedData(value); return *this;} + inline DataDetails& WithIntentDetectedData(IntentDetectedDataDetails&& value) { SetIntentDetectedData(std::move(value)); return *this;} + ///@} + ///@{ /** *

    Details about the content data.

    @@ -83,6 +96,9 @@ namespace Model std::shared_ptr m_generativeData; bool m_generativeDataHasBeenSet = false; + IntentDetectedDataDetails m_intentDetectedData; + bool m_intentDetectedDataHasBeenSet = false; + SourceContentDataDetails m_sourceContentData; bool m_sourceContentDataHasBeenSet = false; }; diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentRequest.h new file mode 100644 index 00000000000..d748df242c4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentRequest.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class DeleteAIAgentRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API DeleteAIAgentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteAIAgent"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI Agent. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAiAgentId() const{ return m_aiAgentId; } + inline bool AiAgentIdHasBeenSet() const { return m_aiAgentIdHasBeenSet; } + inline void SetAiAgentId(const Aws::String& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = value; } + inline void SetAiAgentId(Aws::String&& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = std::move(value); } + inline void SetAiAgentId(const char* value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId.assign(value); } + inline DeleteAIAgentRequest& WithAiAgentId(const Aws::String& value) { SetAiAgentId(value); return *this;} + inline DeleteAIAgentRequest& WithAiAgentId(Aws::String&& value) { SetAiAgentId(std::move(value)); return *this;} + inline DeleteAIAgentRequest& WithAiAgentId(const char* value) { SetAiAgentId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline DeleteAIAgentRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline DeleteAIAgentRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline DeleteAIAgentRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + private: + + Aws::String m_aiAgentId; + bool m_aiAgentIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentResult.h new file mode 100644 index 00000000000..9f6653c5768 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentResult.h @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class DeleteAIAgentResult + { + public: + AWS_QCONNECT_API DeleteAIAgentResult(); + AWS_QCONNECT_API DeleteAIAgentResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API DeleteAIAgentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline DeleteAIAgentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DeleteAIAgentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DeleteAIAgentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentVersionRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentVersionRequest.h new file mode 100644 index 00000000000..2b7ffcf4480 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentVersionRequest.h @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class DeleteAIAgentVersionRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API DeleteAIAgentVersionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteAIAgentVersion"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI Agent. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAiAgentId() const{ return m_aiAgentId; } + inline bool AiAgentIdHasBeenSet() const { return m_aiAgentIdHasBeenSet; } + inline void SetAiAgentId(const Aws::String& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = value; } + inline void SetAiAgentId(Aws::String&& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = std::move(value); } + inline void SetAiAgentId(const char* value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId.assign(value); } + inline DeleteAIAgentVersionRequest& WithAiAgentId(const Aws::String& value) { SetAiAgentId(value); return *this;} + inline DeleteAIAgentVersionRequest& WithAiAgentId(Aws::String&& value) { SetAiAgentId(std::move(value)); return *this;} + inline DeleteAIAgentVersionRequest& WithAiAgentId(const char* value) { SetAiAgentId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline DeleteAIAgentVersionRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline DeleteAIAgentVersionRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline DeleteAIAgentVersionRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    The version number of the AI Agent version.

    + */ + inline long long GetVersionNumber() const{ return m_versionNumber; } + inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; } + inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; } + inline DeleteAIAgentVersionRequest& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} + ///@} + private: + + Aws::String m_aiAgentId; + bool m_aiAgentIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + long long m_versionNumber; + bool m_versionNumberHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentVersionResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentVersionResult.h new file mode 100644 index 00000000000..e57518de1ba --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIAgentVersionResult.h @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class DeleteAIAgentVersionResult + { + public: + AWS_QCONNECT_API DeleteAIAgentVersionResult(); + AWS_QCONNECT_API DeleteAIAgentVersionResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API DeleteAIAgentVersionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline DeleteAIAgentVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DeleteAIAgentVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DeleteAIAgentVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptRequest.h new file mode 100644 index 00000000000..b36c6f990f8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptRequest.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class DeleteAIPromptRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API DeleteAIPromptRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteAIPrompt"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI prompt. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAiPromptId() const{ return m_aiPromptId; } + inline bool AiPromptIdHasBeenSet() const { return m_aiPromptIdHasBeenSet; } + inline void SetAiPromptId(const Aws::String& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = value; } + inline void SetAiPromptId(Aws::String&& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = std::move(value); } + inline void SetAiPromptId(const char* value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId.assign(value); } + inline DeleteAIPromptRequest& WithAiPromptId(const Aws::String& value) { SetAiPromptId(value); return *this;} + inline DeleteAIPromptRequest& WithAiPromptId(Aws::String&& value) { SetAiPromptId(std::move(value)); return *this;} + inline DeleteAIPromptRequest& WithAiPromptId(const char* value) { SetAiPromptId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline DeleteAIPromptRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline DeleteAIPromptRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline DeleteAIPromptRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + private: + + Aws::String m_aiPromptId; + bool m_aiPromptIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptResult.h new file mode 100644 index 00000000000..6ee1654de9b --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptResult.h @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class DeleteAIPromptResult + { + public: + AWS_QCONNECT_API DeleteAIPromptResult(); + AWS_QCONNECT_API DeleteAIPromptResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API DeleteAIPromptResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline DeleteAIPromptResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DeleteAIPromptResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DeleteAIPromptResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptVersionRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptVersionRequest.h new file mode 100644 index 00000000000..f73cac461b6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptVersionRequest.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class DeleteAIPromptVersionRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API DeleteAIPromptVersionRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "DeleteAIPromptVersion"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI prompt.

    + */ + inline const Aws::String& GetAiPromptId() const{ return m_aiPromptId; } + inline bool AiPromptIdHasBeenSet() const { return m_aiPromptIdHasBeenSet; } + inline void SetAiPromptId(const Aws::String& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = value; } + inline void SetAiPromptId(Aws::String&& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = std::move(value); } + inline void SetAiPromptId(const char* value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId.assign(value); } + inline DeleteAIPromptVersionRequest& WithAiPromptId(const Aws::String& value) { SetAiPromptId(value); return *this;} + inline DeleteAIPromptVersionRequest& WithAiPromptId(Aws::String&& value) { SetAiPromptId(std::move(value)); return *this;} + inline DeleteAIPromptVersionRequest& WithAiPromptId(const char* value) { SetAiPromptId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline DeleteAIPromptVersionRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline DeleteAIPromptVersionRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline DeleteAIPromptVersionRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    The version number of the AI Prompt version to be deleted.

    + */ + inline long long GetVersionNumber() const{ return m_versionNumber; } + inline bool VersionNumberHasBeenSet() const { return m_versionNumberHasBeenSet; } + inline void SetVersionNumber(long long value) { m_versionNumberHasBeenSet = true; m_versionNumber = value; } + inline DeleteAIPromptVersionRequest& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} + ///@} + private: + + Aws::String m_aiPromptId; + bool m_aiPromptIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + long long m_versionNumber; + bool m_versionNumberHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptVersionResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptVersionResult.h new file mode 100644 index 00000000000..d0584f26365 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/DeleteAIPromptVersionResult.h @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class DeleteAIPromptVersionResult + { + public: + AWS_QCONNECT_API DeleteAIPromptVersionResult(); + AWS_QCONNECT_API DeleteAIPromptVersionResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API DeleteAIPromptVersionResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline DeleteAIPromptVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline DeleteAIPromptVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline DeleteAIPromptVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/FixedSizeChunkingConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/FixedSizeChunkingConfiguration.h new file mode 100644 index 00000000000..39ac0b3e7b0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/FixedSizeChunkingConfiguration.h @@ -0,0 +1,70 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Configurations for when you choose fixed-size chunking. If you set the + * chunkingStrategy as NONE, exclude this + * field.

    See Also:

    AWS + * API Reference

    + */ + class FixedSizeChunkingConfiguration + { + public: + AWS_QCONNECT_API FixedSizeChunkingConfiguration(); + AWS_QCONNECT_API FixedSizeChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API FixedSizeChunkingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The maximum number of tokens to include in a chunk.

    + */ + inline int GetMaxTokens() const{ return m_maxTokens; } + inline bool MaxTokensHasBeenSet() const { return m_maxTokensHasBeenSet; } + inline void SetMaxTokens(int value) { m_maxTokensHasBeenSet = true; m_maxTokens = value; } + inline FixedSizeChunkingConfiguration& WithMaxTokens(int value) { SetMaxTokens(value); return *this;} + ///@} + + ///@{ + /** + *

    The percentage of overlap between adjacent chunks of a data source.

    + */ + inline int GetOverlapPercentage() const{ return m_overlapPercentage; } + inline bool OverlapPercentageHasBeenSet() const { return m_overlapPercentageHasBeenSet; } + inline void SetOverlapPercentage(int value) { m_overlapPercentageHasBeenSet = true; m_overlapPercentage = value; } + inline FixedSizeChunkingConfiguration& WithOverlapPercentage(int value) { SetOverlapPercentage(value); return *this;} + ///@} + private: + + int m_maxTokens; + bool m_maxTokensHasBeenSet = false; + + int m_overlapPercentage; + bool m_overlapPercentageHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIAgentRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIAgentRequest.h new file mode 100644 index 00000000000..2100f36ba9c --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIAgentRequest.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class GetAIAgentRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API GetAIAgentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetAIAgent"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI Agent (with or without a version + * qualifier). Can be either the ID or the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAiAgentId() const{ return m_aiAgentId; } + inline bool AiAgentIdHasBeenSet() const { return m_aiAgentIdHasBeenSet; } + inline void SetAiAgentId(const Aws::String& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = value; } + inline void SetAiAgentId(Aws::String&& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = std::move(value); } + inline void SetAiAgentId(const char* value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId.assign(value); } + inline GetAIAgentRequest& WithAiAgentId(const Aws::String& value) { SetAiAgentId(value); return *this;} + inline GetAIAgentRequest& WithAiAgentId(Aws::String&& value) { SetAiAgentId(std::move(value)); return *this;} + inline GetAIAgentRequest& WithAiAgentId(const char* value) { SetAiAgentId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline GetAIAgentRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline GetAIAgentRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline GetAIAgentRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + private: + + Aws::String m_aiAgentId; + bool m_aiAgentIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIAgentResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIAgentResult.h new file mode 100644 index 00000000000..2978c5e70af --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIAgentResult.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class GetAIAgentResult + { + public: + AWS_QCONNECT_API GetAIAgentResult(); + AWS_QCONNECT_API GetAIAgentResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API GetAIAgentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The data of the AI Agent.

    + */ + inline const AIAgentData& GetAiAgent() const{ return m_aiAgent; } + inline void SetAiAgent(const AIAgentData& value) { m_aiAgent = value; } + inline void SetAiAgent(AIAgentData&& value) { m_aiAgent = std::move(value); } + inline GetAIAgentResult& WithAiAgent(const AIAgentData& value) { SetAiAgent(value); return *this;} + inline GetAIAgentResult& WithAiAgent(AIAgentData&& value) { SetAiAgent(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The version number of the AI Agent version (returned if an AI Agent version + * was specified via use of a qualifier for the aiAgentId on the + * request).

    + */ + inline long long GetVersionNumber() const{ return m_versionNumber; } + inline void SetVersionNumber(long long value) { m_versionNumber = value; } + inline GetAIAgentResult& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetAIAgentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetAIAgentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetAIAgentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AIAgentData m_aiAgent; + + long long m_versionNumber; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIPromptRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIPromptRequest.h new file mode 100644 index 00000000000..01c71d0a976 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIPromptRequest.h @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class GetAIPromptRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API GetAIPromptRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "GetAIPrompt"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI prompt.

    + */ + inline const Aws::String& GetAiPromptId() const{ return m_aiPromptId; } + inline bool AiPromptIdHasBeenSet() const { return m_aiPromptIdHasBeenSet; } + inline void SetAiPromptId(const Aws::String& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = value; } + inline void SetAiPromptId(Aws::String&& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = std::move(value); } + inline void SetAiPromptId(const char* value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId.assign(value); } + inline GetAIPromptRequest& WithAiPromptId(const Aws::String& value) { SetAiPromptId(value); return *this;} + inline GetAIPromptRequest& WithAiPromptId(Aws::String&& value) { SetAiPromptId(std::move(value)); return *this;} + inline GetAIPromptRequest& WithAiPromptId(const char* value) { SetAiPromptId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline GetAIPromptRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline GetAIPromptRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline GetAIPromptRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + private: + + Aws::String m_aiPromptId; + bool m_aiPromptIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIPromptResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIPromptResult.h new file mode 100644 index 00000000000..dffd0734aae --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/GetAIPromptResult.h @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class GetAIPromptResult + { + public: + AWS_QCONNECT_API GetAIPromptResult(); + AWS_QCONNECT_API GetAIPromptResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API GetAIPromptResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The data of the AI Prompt.

    + */ + inline const AIPromptData& GetAiPrompt() const{ return m_aiPrompt; } + inline void SetAiPrompt(const AIPromptData& value) { m_aiPrompt = value; } + inline void SetAiPrompt(AIPromptData&& value) { m_aiPrompt = std::move(value); } + inline GetAIPromptResult& WithAiPrompt(const AIPromptData& value) { SetAiPrompt(value); return *this;} + inline GetAIPromptResult& WithAiPrompt(AIPromptData&& value) { SetAiPrompt(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The version number of the AI Prompt version (returned if an AI Prompt version + * was specified via use of a qualifier for the aiPromptId on the + * request).

    + */ + inline long long GetVersionNumber() const{ return m_versionNumber; } + inline void SetVersionNumber(long long value) { m_versionNumber = value; } + inline GetAIPromptResult& WithVersionNumber(long long value) { SetVersionNumber(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline GetAIPromptResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline GetAIPromptResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline GetAIPromptResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AIPromptData m_aiPrompt; + + long long m_versionNumber; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/HierarchicalChunkingConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/HierarchicalChunkingConfiguration.h new file mode 100644 index 00000000000..0923c00e644 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/HierarchicalChunkingConfiguration.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Settings for hierarchical document chunking for a data source. Hierarchical + * chunking splits documents into layers of chunks where the first layer contains + * large chunks, and the second layer contains smaller chunks derived from the + * first layer.

    See Also:

    AWS + * API Reference

    + */ + class HierarchicalChunkingConfiguration + { + public: + AWS_QCONNECT_API HierarchicalChunkingConfiguration(); + AWS_QCONNECT_API HierarchicalChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API HierarchicalChunkingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    Token settings for each layer.

    + */ + inline const Aws::Vector& GetLevelConfigurations() const{ return m_levelConfigurations; } + inline bool LevelConfigurationsHasBeenSet() const { return m_levelConfigurationsHasBeenSet; } + inline void SetLevelConfigurations(const Aws::Vector& value) { m_levelConfigurationsHasBeenSet = true; m_levelConfigurations = value; } + inline void SetLevelConfigurations(Aws::Vector&& value) { m_levelConfigurationsHasBeenSet = true; m_levelConfigurations = std::move(value); } + inline HierarchicalChunkingConfiguration& WithLevelConfigurations(const Aws::Vector& value) { SetLevelConfigurations(value); return *this;} + inline HierarchicalChunkingConfiguration& WithLevelConfigurations(Aws::Vector&& value) { SetLevelConfigurations(std::move(value)); return *this;} + inline HierarchicalChunkingConfiguration& AddLevelConfigurations(const HierarchicalChunkingLevelConfiguration& value) { m_levelConfigurationsHasBeenSet = true; m_levelConfigurations.push_back(value); return *this; } + inline HierarchicalChunkingConfiguration& AddLevelConfigurations(HierarchicalChunkingLevelConfiguration&& value) { m_levelConfigurationsHasBeenSet = true; m_levelConfigurations.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The number of tokens to repeat across chunks in the same layer.

    + */ + inline int GetOverlapTokens() const{ return m_overlapTokens; } + inline bool OverlapTokensHasBeenSet() const { return m_overlapTokensHasBeenSet; } + inline void SetOverlapTokens(int value) { m_overlapTokensHasBeenSet = true; m_overlapTokens = value; } + inline HierarchicalChunkingConfiguration& WithOverlapTokens(int value) { SetOverlapTokens(value); return *this;} + ///@} + private: + + Aws::Vector m_levelConfigurations; + bool m_levelConfigurationsHasBeenSet = false; + + int m_overlapTokens; + bool m_overlapTokensHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/HierarchicalChunkingLevelConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/HierarchicalChunkingLevelConfiguration.h new file mode 100644 index 00000000000..608827e904e --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/HierarchicalChunkingLevelConfiguration.h @@ -0,0 +1,55 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Token settings for each layer.

    See Also:

    AWS + * API Reference

    + */ + class HierarchicalChunkingLevelConfiguration + { + public: + AWS_QCONNECT_API HierarchicalChunkingLevelConfiguration(); + AWS_QCONNECT_API HierarchicalChunkingLevelConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API HierarchicalChunkingLevelConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The maximum number of tokens that a chunk can contain in this layer.

    + */ + inline int GetMaxTokens() const{ return m_maxTokens; } + inline bool MaxTokensHasBeenSet() const { return m_maxTokensHasBeenSet; } + inline void SetMaxTokens(int value) { m_maxTokensHasBeenSet = true; m_maxTokens = value; } + inline HierarchicalChunkingLevelConfiguration& WithMaxTokens(int value) { SetMaxTokens(value); return *this;} + ///@} + private: + + int m_maxTokens; + bool m_maxTokensHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/IntentDetectedDataDetails.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/IntentDetectedDataDetails.h new file mode 100644 index 00000000000..c8e08bb9993 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/IntentDetectedDataDetails.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Details about the detected intent.

    See Also:

    AWS + * API Reference

    + */ + class IntentDetectedDataDetails + { + public: + AWS_QCONNECT_API IntentDetectedDataDetails(); + AWS_QCONNECT_API IntentDetectedDataDetails(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API IntentDetectedDataDetails& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The detected intent.

    + */ + inline const Aws::String& GetIntent() const{ return m_intent; } + inline bool IntentHasBeenSet() const { return m_intentHasBeenSet; } + inline void SetIntent(const Aws::String& value) { m_intentHasBeenSet = true; m_intent = value; } + inline void SetIntent(Aws::String&& value) { m_intentHasBeenSet = true; m_intent = std::move(value); } + inline void SetIntent(const char* value) { m_intentHasBeenSet = true; m_intent.assign(value); } + inline IntentDetectedDataDetails& WithIntent(const Aws::String& value) { SetIntent(value); return *this;} + inline IntentDetectedDataDetails& WithIntent(Aws::String&& value) { SetIntent(std::move(value)); return *this;} + inline IntentDetectedDataDetails& WithIntent(const char* value) { SetIntent(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the detected intent.

    + */ + inline const Aws::String& GetIntentId() const{ return m_intentId; } + inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; } + inline void SetIntentId(const Aws::String& value) { m_intentIdHasBeenSet = true; m_intentId = value; } + inline void SetIntentId(Aws::String&& value) { m_intentIdHasBeenSet = true; m_intentId = std::move(value); } + inline void SetIntentId(const char* value) { m_intentIdHasBeenSet = true; m_intentId.assign(value); } + inline IntentDetectedDataDetails& WithIntentId(const Aws::String& value) { SetIntentId(value); return *this;} + inline IntentDetectedDataDetails& WithIntentId(Aws::String&& value) { SetIntentId(std::move(value)); return *this;} + inline IntentDetectedDataDetails& WithIntentId(const char* value) { SetIntentId(value); return *this;} + ///@} + private: + + Aws::String m_intent; + bool m_intentHasBeenSet = false; + + Aws::String m_intentId; + bool m_intentIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/IntentInputData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/IntentInputData.h new file mode 100644 index 00000000000..b485c6e8593 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/IntentInputData.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Information about the Amazon Q intent.

    See Also:

    AWS + * API Reference

    + */ + class IntentInputData + { + public: + AWS_QCONNECT_API IntentInputData(); + AWS_QCONNECT_API IntentInputData(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API IntentInputData& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The identifier of the Amazon Q intent.

    + */ + inline const Aws::String& GetIntentId() const{ return m_intentId; } + inline bool IntentIdHasBeenSet() const { return m_intentIdHasBeenSet; } + inline void SetIntentId(const Aws::String& value) { m_intentIdHasBeenSet = true; m_intentId = value; } + inline void SetIntentId(Aws::String&& value) { m_intentIdHasBeenSet = true; m_intentId = std::move(value); } + inline void SetIntentId(const char* value) { m_intentIdHasBeenSet = true; m_intentId.assign(value); } + inline IntentInputData& WithIntentId(const Aws::String& value) { SetIntentId(value); return *this;} + inline IntentInputData& WithIntentId(Aws::String&& value) { SetIntentId(std::move(value)); return *this;} + inline IntentInputData& WithIntentId(const char* value) { SetIntentId(value); return *this;} + ///@} + private: + + Aws::String m_intentId; + bool m_intentIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseAssociationConfigurationData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseAssociationConfigurationData.h new file mode 100644 index 00000000000..2d75f65a52a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseAssociationConfigurationData.h @@ -0,0 +1,89 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The data of the configuration for a KNOWLEDGE_BASE type Amazon Q + * in Connect Assistant Association.

    See Also:

    AWS + * API Reference

    + */ + class KnowledgeBaseAssociationConfigurationData + { + public: + AWS_QCONNECT_API KnowledgeBaseAssociationConfigurationData(); + AWS_QCONNECT_API KnowledgeBaseAssociationConfigurationData(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API KnowledgeBaseAssociationConfigurationData& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + + inline const TagFilter& GetContentTagFilter() const{ return m_contentTagFilter; } + inline bool ContentTagFilterHasBeenSet() const { return m_contentTagFilterHasBeenSet; } + inline void SetContentTagFilter(const TagFilter& value) { m_contentTagFilterHasBeenSet = true; m_contentTagFilter = value; } + inline void SetContentTagFilter(TagFilter&& value) { m_contentTagFilterHasBeenSet = true; m_contentTagFilter = std::move(value); } + inline KnowledgeBaseAssociationConfigurationData& WithContentTagFilter(const TagFilter& value) { SetContentTagFilter(value); return *this;} + inline KnowledgeBaseAssociationConfigurationData& WithContentTagFilter(TagFilter&& value) { SetContentTagFilter(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of results to return per page.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline KnowledgeBaseAssociationConfigurationData& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

    The search type to be used against the Knowledge Base for this request. The + * values can be SEMANTIC which uses vector embeddings or + * HYBRID which use vector embeddings and raw text

    + */ + inline const KnowledgeBaseSearchType& GetOverrideKnowledgeBaseSearchType() const{ return m_overrideKnowledgeBaseSearchType; } + inline bool OverrideKnowledgeBaseSearchTypeHasBeenSet() const { return m_overrideKnowledgeBaseSearchTypeHasBeenSet; } + inline void SetOverrideKnowledgeBaseSearchType(const KnowledgeBaseSearchType& value) { m_overrideKnowledgeBaseSearchTypeHasBeenSet = true; m_overrideKnowledgeBaseSearchType = value; } + inline void SetOverrideKnowledgeBaseSearchType(KnowledgeBaseSearchType&& value) { m_overrideKnowledgeBaseSearchTypeHasBeenSet = true; m_overrideKnowledgeBaseSearchType = std::move(value); } + inline KnowledgeBaseAssociationConfigurationData& WithOverrideKnowledgeBaseSearchType(const KnowledgeBaseSearchType& value) { SetOverrideKnowledgeBaseSearchType(value); return *this;} + inline KnowledgeBaseAssociationConfigurationData& WithOverrideKnowledgeBaseSearchType(KnowledgeBaseSearchType&& value) { SetOverrideKnowledgeBaseSearchType(std::move(value)); return *this;} + ///@} + private: + + TagFilter m_contentTagFilter; + bool m_contentTagFilterHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + KnowledgeBaseSearchType m_overrideKnowledgeBaseSearchType; + bool m_overrideKnowledgeBaseSearchTypeHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseData.h index 8e17656c0d7..a32d2631bf9 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseData.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseData.h @@ -6,6 +6,8 @@ #pragma once #include #include +#include +#include #include #include #include @@ -13,6 +15,7 @@ #include #include #include +#include #include namespace Aws @@ -58,6 +61,33 @@ namespace Model inline KnowledgeBaseData& WithDescription(const char* value) { SetDescription(value); return *this;} ///@} + ///@{ + /** + *

    List of failure reasons on ingestion per file.

    + */ + inline const Aws::Vector& GetIngestionFailureReasons() const{ return m_ingestionFailureReasons; } + inline bool IngestionFailureReasonsHasBeenSet() const { return m_ingestionFailureReasonsHasBeenSet; } + inline void SetIngestionFailureReasons(const Aws::Vector& value) { m_ingestionFailureReasonsHasBeenSet = true; m_ingestionFailureReasons = value; } + inline void SetIngestionFailureReasons(Aws::Vector&& value) { m_ingestionFailureReasonsHasBeenSet = true; m_ingestionFailureReasons = std::move(value); } + inline KnowledgeBaseData& WithIngestionFailureReasons(const Aws::Vector& value) { SetIngestionFailureReasons(value); return *this;} + inline KnowledgeBaseData& WithIngestionFailureReasons(Aws::Vector&& value) { SetIngestionFailureReasons(std::move(value)); return *this;} + inline KnowledgeBaseData& AddIngestionFailureReasons(const Aws::String& value) { m_ingestionFailureReasonsHasBeenSet = true; m_ingestionFailureReasons.push_back(value); return *this; } + inline KnowledgeBaseData& AddIngestionFailureReasons(Aws::String&& value) { m_ingestionFailureReasonsHasBeenSet = true; m_ingestionFailureReasons.push_back(std::move(value)); return *this; } + inline KnowledgeBaseData& AddIngestionFailureReasons(const char* value) { m_ingestionFailureReasonsHasBeenSet = true; m_ingestionFailureReasons.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    Status of ingestion on data source.

    + */ + inline const SyncStatus& GetIngestionStatus() const{ return m_ingestionStatus; } + inline bool IngestionStatusHasBeenSet() const { return m_ingestionStatusHasBeenSet; } + inline void SetIngestionStatus(const SyncStatus& value) { m_ingestionStatusHasBeenSet = true; m_ingestionStatus = value; } + inline void SetIngestionStatus(SyncStatus&& value) { m_ingestionStatusHasBeenSet = true; m_ingestionStatus = std::move(value); } + inline KnowledgeBaseData& WithIngestionStatus(const SyncStatus& value) { SetIngestionStatus(value); return *this;} + inline KnowledgeBaseData& WithIngestionStatus(SyncStatus&& value) { SetIngestionStatus(std::move(value)); return *this;} + ///@} + ///@{ /** *

    The Amazon Resource Name (ARN) of the knowledge base.

    @@ -200,11 +230,29 @@ namespace Model inline KnowledgeBaseData& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } inline KnowledgeBaseData& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } ///@} + + ///@{ + /** + *

    Contains details about how to ingest the documents in a data source.

    + */ + inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const{ return m_vectorIngestionConfiguration; } + inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; } + inline void SetVectorIngestionConfiguration(const VectorIngestionConfiguration& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = value; } + inline void SetVectorIngestionConfiguration(VectorIngestionConfiguration&& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = std::move(value); } + inline KnowledgeBaseData& WithVectorIngestionConfiguration(const VectorIngestionConfiguration& value) { SetVectorIngestionConfiguration(value); return *this;} + inline KnowledgeBaseData& WithVectorIngestionConfiguration(VectorIngestionConfiguration&& value) { SetVectorIngestionConfiguration(std::move(value)); return *this;} + ///@} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; + Aws::Vector m_ingestionFailureReasons; + bool m_ingestionFailureReasonsHasBeenSet = false; + + SyncStatus m_ingestionStatus; + bool m_ingestionStatusHasBeenSet = false; + Aws::String m_knowledgeBaseArn; bool m_knowledgeBaseArnHasBeenSet = false; @@ -234,6 +282,9 @@ namespace Model Aws::Map m_tags; bool m_tagsHasBeenSet = false; + + VectorIngestionConfiguration m_vectorIngestionConfiguration; + bool m_vectorIngestionConfigurationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseSearchType.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseSearchType.h new file mode 100644 index 00000000000..fbbfa28ad73 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseSearchType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class KnowledgeBaseSearchType + { + NOT_SET, + HYBRID, + SEMANTIC + }; + +namespace KnowledgeBaseSearchTypeMapper +{ +AWS_QCONNECT_API KnowledgeBaseSearchType GetKnowledgeBaseSearchTypeForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForKnowledgeBaseSearchType(KnowledgeBaseSearchType value); +} // namespace KnowledgeBaseSearchTypeMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseSummary.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseSummary.h index 2374dfdf150..84796b834f8 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseSummary.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseSummary.h @@ -12,6 +12,7 @@ #include #include #include +#include #include namespace Aws @@ -185,6 +186,18 @@ namespace Model inline KnowledgeBaseSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } inline KnowledgeBaseSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } ///@} + + ///@{ + /** + *

    Contains details about how to ingest the documents in a data source.

    + */ + inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const{ return m_vectorIngestionConfiguration; } + inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; } + inline void SetVectorIngestionConfiguration(const VectorIngestionConfiguration& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = value; } + inline void SetVectorIngestionConfiguration(VectorIngestionConfiguration&& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = std::move(value); } + inline KnowledgeBaseSummary& WithVectorIngestionConfiguration(const VectorIngestionConfiguration& value) { SetVectorIngestionConfiguration(value); return *this;} + inline KnowledgeBaseSummary& WithVectorIngestionConfiguration(VectorIngestionConfiguration&& value) { SetVectorIngestionConfiguration(std::move(value)); return *this;} + ///@} private: Aws::String m_description; @@ -216,6 +229,9 @@ namespace Model Aws::Map m_tags; bool m_tagsHasBeenSet = false; + + VectorIngestionConfiguration m_vectorIngestionConfiguration; + bool m_vectorIngestionConfigurationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseType.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseType.h index 4cbb3b97fb0..31f9c2e266b 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseType.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/KnowledgeBaseType.h @@ -18,7 +18,9 @@ namespace Model NOT_SET, EXTERNAL, CUSTOM, - QUICK_RESPONSES + QUICK_RESPONSES, + MESSAGE_TEMPLATES, + MANAGED }; namespace KnowledgeBaseTypeMapper diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentVersionsRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentVersionsRequest.h new file mode 100644 index 00000000000..48695543b06 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentVersionsRequest.h @@ -0,0 +1,130 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace QConnect +{ +namespace Model +{ + + /** + */ + class ListAIAgentVersionsRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API ListAIAgentVersionsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListAIAgentVersions"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI Agent for which versions are to + * be listed.

    + */ + inline const Aws::String& GetAiAgentId() const{ return m_aiAgentId; } + inline bool AiAgentIdHasBeenSet() const { return m_aiAgentIdHasBeenSet; } + inline void SetAiAgentId(const Aws::String& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = value; } + inline void SetAiAgentId(Aws::String&& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = std::move(value); } + inline void SetAiAgentId(const char* value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId.assign(value); } + inline ListAIAgentVersionsRequest& WithAiAgentId(const Aws::String& value) { SetAiAgentId(value); return *this;} + inline ListAIAgentVersionsRequest& WithAiAgentId(Aws::String&& value) { SetAiAgentId(std::move(value)); return *this;} + inline ListAIAgentVersionsRequest& WithAiAgentId(const char* value) { SetAiAgentId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline ListAIAgentVersionsRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline ListAIAgentVersionsRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline ListAIAgentVersionsRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of results to return per page.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListAIAgentVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

    The token for the next set of results. Use the value returned in the previous + * response in the next request to retrieve the next set of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListAIAgentVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListAIAgentVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListAIAgentVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The origin of the AI Agent versions to be listed. SYSTEM for a + * default AI Agent created by Q in Connect or CUSTOMER for an AI + * Agent created by calling AI Agent creation APIs.

    + */ + inline const Origin& GetOrigin() const{ return m_origin; } + inline bool OriginHasBeenSet() const { return m_originHasBeenSet; } + inline void SetOrigin(const Origin& value) { m_originHasBeenSet = true; m_origin = value; } + inline void SetOrigin(Origin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); } + inline ListAIAgentVersionsRequest& WithOrigin(const Origin& value) { SetOrigin(value); return *this;} + inline ListAIAgentVersionsRequest& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_aiAgentId; + bool m_aiAgentIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + Origin m_origin; + bool m_originHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentVersionsResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentVersionsResult.h new file mode 100644 index 00000000000..fe2373fc5cf --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentVersionsResult.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class ListAIAgentVersionsResult + { + public: + AWS_QCONNECT_API ListAIAgentVersionsResult(); + AWS_QCONNECT_API ListAIAgentVersionsResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API ListAIAgentVersionsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The summaries of AI Agent versions.

    + */ + inline const Aws::Vector& GetAiAgentVersionSummaries() const{ return m_aiAgentVersionSummaries; } + inline void SetAiAgentVersionSummaries(const Aws::Vector& value) { m_aiAgentVersionSummaries = value; } + inline void SetAiAgentVersionSummaries(Aws::Vector&& value) { m_aiAgentVersionSummaries = std::move(value); } + inline ListAIAgentVersionsResult& WithAiAgentVersionSummaries(const Aws::Vector& value) { SetAiAgentVersionSummaries(value); return *this;} + inline ListAIAgentVersionsResult& WithAiAgentVersionSummaries(Aws::Vector&& value) { SetAiAgentVersionSummaries(std::move(value)); return *this;} + inline ListAIAgentVersionsResult& AddAiAgentVersionSummaries(const AIAgentVersionSummary& value) { m_aiAgentVersionSummaries.push_back(value); return *this; } + inline ListAIAgentVersionsResult& AddAiAgentVersionSummaries(AIAgentVersionSummary&& value) { m_aiAgentVersionSummaries.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The token for the next set of results. Use the value returned in the previous + * response in the next request to retrieve the next set of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListAIAgentVersionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListAIAgentVersionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListAIAgentVersionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListAIAgentVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListAIAgentVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListAIAgentVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_aiAgentVersionSummaries; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentsRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentsRequest.h new file mode 100644 index 00000000000..b8659ac0fef --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentsRequest.h @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace QConnect +{ +namespace Model +{ + + /** + */ + class ListAIAgentsRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API ListAIAgentsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListAIAgents"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline ListAIAgentsRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline ListAIAgentsRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline ListAIAgentsRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of results to return per page.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListAIAgentsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

    The token for the next set of results. Use the value returned in the previous + * response in the next request to retrieve the next set of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListAIAgentsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListAIAgentsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListAIAgentsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The origin of the AI Agents to be listed. SYSTEM for a default + * AI Agent created by Q in Connect or CUSTOMER for an AI Agent + * created by calling AI Agent creation APIs.

    + */ + inline const Origin& GetOrigin() const{ return m_origin; } + inline bool OriginHasBeenSet() const { return m_originHasBeenSet; } + inline void SetOrigin(const Origin& value) { m_originHasBeenSet = true; m_origin = value; } + inline void SetOrigin(Origin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); } + inline ListAIAgentsRequest& WithOrigin(const Origin& value) { SetOrigin(value); return *this;} + inline ListAIAgentsRequest& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + Origin m_origin; + bool m_originHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentsResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentsResult.h new file mode 100644 index 00000000000..bd90420c3db --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIAgentsResult.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class ListAIAgentsResult + { + public: + AWS_QCONNECT_API ListAIAgentsResult(); + AWS_QCONNECT_API ListAIAgentsResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API ListAIAgentsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The summaries of AI Agents.

    + */ + inline const Aws::Vector& GetAiAgentSummaries() const{ return m_aiAgentSummaries; } + inline void SetAiAgentSummaries(const Aws::Vector& value) { m_aiAgentSummaries = value; } + inline void SetAiAgentSummaries(Aws::Vector&& value) { m_aiAgentSummaries = std::move(value); } + inline ListAIAgentsResult& WithAiAgentSummaries(const Aws::Vector& value) { SetAiAgentSummaries(value); return *this;} + inline ListAIAgentsResult& WithAiAgentSummaries(Aws::Vector&& value) { SetAiAgentSummaries(std::move(value)); return *this;} + inline ListAIAgentsResult& AddAiAgentSummaries(const AIAgentSummary& value) { m_aiAgentSummaries.push_back(value); return *this; } + inline ListAIAgentsResult& AddAiAgentSummaries(AIAgentSummary&& value) { m_aiAgentSummaries.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The token for the next set of results. Use the value returned in the previous + * response in the next request to retrieve the next set of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListAIAgentsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListAIAgentsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListAIAgentsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListAIAgentsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListAIAgentsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListAIAgentsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_aiAgentSummaries; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptVersionsRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptVersionsRequest.h new file mode 100644 index 00000000000..b16c318f8c5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptVersionsRequest.h @@ -0,0 +1,130 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace QConnect +{ +namespace Model +{ + + /** + */ + class ListAIPromptVersionsRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API ListAIPromptVersionsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListAIPromptVersions"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI prompt for which versions are to + * be listed.

    + */ + inline const Aws::String& GetAiPromptId() const{ return m_aiPromptId; } + inline bool AiPromptIdHasBeenSet() const { return m_aiPromptIdHasBeenSet; } + inline void SetAiPromptId(const Aws::String& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = value; } + inline void SetAiPromptId(Aws::String&& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = std::move(value); } + inline void SetAiPromptId(const char* value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId.assign(value); } + inline ListAIPromptVersionsRequest& WithAiPromptId(const Aws::String& value) { SetAiPromptId(value); return *this;} + inline ListAIPromptVersionsRequest& WithAiPromptId(Aws::String&& value) { SetAiPromptId(std::move(value)); return *this;} + inline ListAIPromptVersionsRequest& WithAiPromptId(const char* value) { SetAiPromptId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline ListAIPromptVersionsRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline ListAIPromptVersionsRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline ListAIPromptVersionsRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of results to return per page.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListAIPromptVersionsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

    The token for the next set of results. Use the value returned in the previous + * response in the next request to retrieve the next set of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListAIPromptVersionsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListAIPromptVersionsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListAIPromptVersionsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The origin of the AI Prompt versions to be listed. SYSTEM for a + * default AI Agent created by Q in Connect or CUSTOMER for an AI + * Agent created by calling AI Agent creation APIs.

    + */ + inline const Origin& GetOrigin() const{ return m_origin; } + inline bool OriginHasBeenSet() const { return m_originHasBeenSet; } + inline void SetOrigin(const Origin& value) { m_originHasBeenSet = true; m_origin = value; } + inline void SetOrigin(Origin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); } + inline ListAIPromptVersionsRequest& WithOrigin(const Origin& value) { SetOrigin(value); return *this;} + inline ListAIPromptVersionsRequest& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_aiPromptId; + bool m_aiPromptIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + Origin m_origin; + bool m_originHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptVersionsResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptVersionsResult.h new file mode 100644 index 00000000000..20d47b3617b --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptVersionsResult.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class ListAIPromptVersionsResult + { + public: + AWS_QCONNECT_API ListAIPromptVersionsResult(); + AWS_QCONNECT_API ListAIPromptVersionsResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API ListAIPromptVersionsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The summaries of the AI Prompt versions.

    + */ + inline const Aws::Vector& GetAiPromptVersionSummaries() const{ return m_aiPromptVersionSummaries; } + inline void SetAiPromptVersionSummaries(const Aws::Vector& value) { m_aiPromptVersionSummaries = value; } + inline void SetAiPromptVersionSummaries(Aws::Vector&& value) { m_aiPromptVersionSummaries = std::move(value); } + inline ListAIPromptVersionsResult& WithAiPromptVersionSummaries(const Aws::Vector& value) { SetAiPromptVersionSummaries(value); return *this;} + inline ListAIPromptVersionsResult& WithAiPromptVersionSummaries(Aws::Vector&& value) { SetAiPromptVersionSummaries(std::move(value)); return *this;} + inline ListAIPromptVersionsResult& AddAiPromptVersionSummaries(const AIPromptVersionSummary& value) { m_aiPromptVersionSummaries.push_back(value); return *this; } + inline ListAIPromptVersionsResult& AddAiPromptVersionSummaries(AIPromptVersionSummary&& value) { m_aiPromptVersionSummaries.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The token for the next set of results. Use the value returned in the previous + * response in the next request to retrieve the next set of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListAIPromptVersionsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListAIPromptVersionsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListAIPromptVersionsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListAIPromptVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListAIPromptVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListAIPromptVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_aiPromptVersionSummaries; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptsRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptsRequest.h new file mode 100644 index 00000000000..6bd7f326fac --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptsRequest.h @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace QConnect +{ +namespace Model +{ + + /** + */ + class ListAIPromptsRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API ListAIPromptsRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "ListAIPrompts"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline ListAIPromptsRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline ListAIPromptsRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline ListAIPromptsRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of results to return per page.

    + */ + inline int GetMaxResults() const{ return m_maxResults; } + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + inline ListAIPromptsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + ///@} + + ///@{ + /** + *

    The token for the next set of results. Use the value returned in the previous + * response in the next request to retrieve the next set of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + inline ListAIPromptsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListAIPromptsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListAIPromptsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The origin of the AI Prompts to be listed. SYSTEM for a default + * AI Agent created by Q in Connect or CUSTOMER for an AI Agent + * created by calling AI Agent creation APIs.

    + */ + inline const Origin& GetOrigin() const{ return m_origin; } + inline bool OriginHasBeenSet() const { return m_originHasBeenSet; } + inline void SetOrigin(const Origin& value) { m_originHasBeenSet = true; m_origin = value; } + inline void SetOrigin(Origin&& value) { m_originHasBeenSet = true; m_origin = std::move(value); } + inline ListAIPromptsRequest& WithOrigin(const Origin& value) { SetOrigin(value); return *this;} + inline ListAIPromptsRequest& WithOrigin(Origin&& value) { SetOrigin(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + int m_maxResults; + bool m_maxResultsHasBeenSet = false; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet = false; + + Origin m_origin; + bool m_originHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptsResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptsResult.h new file mode 100644 index 00000000000..d6585b08849 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ListAIPromptsResult.h @@ -0,0 +1,85 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class ListAIPromptsResult + { + public: + AWS_QCONNECT_API ListAIPromptsResult(); + AWS_QCONNECT_API ListAIPromptsResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API ListAIPromptsResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The summaries of the AI Prompts.

    + */ + inline const Aws::Vector& GetAiPromptSummaries() const{ return m_aiPromptSummaries; } + inline void SetAiPromptSummaries(const Aws::Vector& value) { m_aiPromptSummaries = value; } + inline void SetAiPromptSummaries(Aws::Vector&& value) { m_aiPromptSummaries = std::move(value); } + inline ListAIPromptsResult& WithAiPromptSummaries(const Aws::Vector& value) { SetAiPromptSummaries(value); return *this;} + inline ListAIPromptsResult& WithAiPromptSummaries(Aws::Vector&& value) { SetAiPromptSummaries(std::move(value)); return *this;} + inline ListAIPromptsResult& AddAiPromptSummaries(const AIPromptSummary& value) { m_aiPromptSummaries.push_back(value); return *this; } + inline ListAIPromptsResult& AddAiPromptSummaries(AIPromptSummary&& value) { m_aiPromptSummaries.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The token for the next set of results. Use the value returned in the previous + * response in the next request to retrieve the next set of results.

    + */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + inline ListAIPromptsResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + inline ListAIPromptsResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + inline ListAIPromptsResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline ListAIPromptsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline ListAIPromptsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline ListAIPromptsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_aiPromptSummaries; + + Aws::String m_nextToken; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ManagedSourceConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ManagedSourceConfiguration.h new file mode 100644 index 00000000000..2db870bc5b5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ManagedSourceConfiguration.h @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Source configuration for managed resources.

    See Also:

    AWS + * API Reference

    + */ + class ManagedSourceConfiguration + { + public: + AWS_QCONNECT_API ManagedSourceConfiguration(); + AWS_QCONNECT_API ManagedSourceConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API ManagedSourceConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    Configuration data for web crawler data source.

    + */ + inline const WebCrawlerConfiguration& GetWebCrawlerConfiguration() const{ return m_webCrawlerConfiguration; } + inline bool WebCrawlerConfigurationHasBeenSet() const { return m_webCrawlerConfigurationHasBeenSet; } + inline void SetWebCrawlerConfiguration(const WebCrawlerConfiguration& value) { m_webCrawlerConfigurationHasBeenSet = true; m_webCrawlerConfiguration = value; } + inline void SetWebCrawlerConfiguration(WebCrawlerConfiguration&& value) { m_webCrawlerConfigurationHasBeenSet = true; m_webCrawlerConfiguration = std::move(value); } + inline ManagedSourceConfiguration& WithWebCrawlerConfiguration(const WebCrawlerConfiguration& value) { SetWebCrawlerConfiguration(value); return *this;} + inline ManagedSourceConfiguration& WithWebCrawlerConfiguration(WebCrawlerConfiguration&& value) { SetWebCrawlerConfiguration(std::move(value)); return *this;} + ///@} + private: + + WebCrawlerConfiguration m_webCrawlerConfiguration; + bool m_webCrawlerConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ManualSearchAIAgentConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ManualSearchAIAgentConfiguration.h new file mode 100644 index 00000000000..d674f0eaf9b --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ManualSearchAIAgentConfiguration.h @@ -0,0 +1,82 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The configuration for the MANUAL_SEARCH AI Agent + * type.

    See Also:

    AWS + * API Reference

    + */ + class ManualSearchAIAgentConfiguration + { + public: + AWS_QCONNECT_API ManualSearchAIAgentConfiguration(); + AWS_QCONNECT_API ManualSearchAIAgentConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API ManualSearchAIAgentConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The AI Prompt identifier for the Answer Generation prompt used by the + * MANUAL_SEARCH AI Agent.

    + */ + inline const Aws::String& GetAnswerGenerationAIPromptId() const{ return m_answerGenerationAIPromptId; } + inline bool AnswerGenerationAIPromptIdHasBeenSet() const { return m_answerGenerationAIPromptIdHasBeenSet; } + inline void SetAnswerGenerationAIPromptId(const Aws::String& value) { m_answerGenerationAIPromptIdHasBeenSet = true; m_answerGenerationAIPromptId = value; } + inline void SetAnswerGenerationAIPromptId(Aws::String&& value) { m_answerGenerationAIPromptIdHasBeenSet = true; m_answerGenerationAIPromptId = std::move(value); } + inline void SetAnswerGenerationAIPromptId(const char* value) { m_answerGenerationAIPromptIdHasBeenSet = true; m_answerGenerationAIPromptId.assign(value); } + inline ManualSearchAIAgentConfiguration& WithAnswerGenerationAIPromptId(const Aws::String& value) { SetAnswerGenerationAIPromptId(value); return *this;} + inline ManualSearchAIAgentConfiguration& WithAnswerGenerationAIPromptId(Aws::String&& value) { SetAnswerGenerationAIPromptId(std::move(value)); return *this;} + inline ManualSearchAIAgentConfiguration& WithAnswerGenerationAIPromptId(const char* value) { SetAnswerGenerationAIPromptId(value); return *this;} + ///@} + + ///@{ + /** + *

    The association configurations for overriding behavior on this AI Agent.

    + */ + inline const Aws::Vector& GetAssociationConfigurations() const{ return m_associationConfigurations; } + inline bool AssociationConfigurationsHasBeenSet() const { return m_associationConfigurationsHasBeenSet; } + inline void SetAssociationConfigurations(const Aws::Vector& value) { m_associationConfigurationsHasBeenSet = true; m_associationConfigurations = value; } + inline void SetAssociationConfigurations(Aws::Vector&& value) { m_associationConfigurationsHasBeenSet = true; m_associationConfigurations = std::move(value); } + inline ManualSearchAIAgentConfiguration& WithAssociationConfigurations(const Aws::Vector& value) { SetAssociationConfigurations(value); return *this;} + inline ManualSearchAIAgentConfiguration& WithAssociationConfigurations(Aws::Vector&& value) { SetAssociationConfigurations(std::move(value)); return *this;} + inline ManualSearchAIAgentConfiguration& AddAssociationConfigurations(const AssociationConfiguration& value) { m_associationConfigurationsHasBeenSet = true; m_associationConfigurations.push_back(value); return *this; } + inline ManualSearchAIAgentConfiguration& AddAssociationConfigurations(AssociationConfiguration&& value) { m_associationConfigurationsHasBeenSet = true; m_associationConfigurations.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::String m_answerGenerationAIPromptId; + bool m_answerGenerationAIPromptIdHasBeenSet = false; + + Aws::Vector m_associationConfigurations; + bool m_associationConfigurationsHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/Origin.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/Origin.h new file mode 100644 index 00000000000..8513d32e776 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/Origin.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class Origin + { + NOT_SET, + SYSTEM, + CUSTOMER + }; + +namespace OriginMapper +{ +AWS_QCONNECT_API Origin GetOriginForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForOrigin(Origin value); +} // namespace OriginMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingConfiguration.h new file mode 100644 index 00000000000..7dd1d95000c --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingConfiguration.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Settings for parsing document contents. By default, the service converts the + * contents of each document into text before splitting it into chunks. To improve + * processing of PDF files with tables and images, you can configure the data + * source to convert the pages of text into images and use a model to describe the + * contents of each page.

    See Also:

    AWS + * API Reference

    + */ + class ParsingConfiguration + { + public: + AWS_QCONNECT_API ParsingConfiguration(); + AWS_QCONNECT_API ParsingConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API ParsingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    Settings for a foundation model used to parse documents for a data + * source.

    + */ + inline const BedrockFoundationModelConfigurationForParsing& GetBedrockFoundationModelConfiguration() const{ return m_bedrockFoundationModelConfiguration; } + inline bool BedrockFoundationModelConfigurationHasBeenSet() const { return m_bedrockFoundationModelConfigurationHasBeenSet; } + inline void SetBedrockFoundationModelConfiguration(const BedrockFoundationModelConfigurationForParsing& value) { m_bedrockFoundationModelConfigurationHasBeenSet = true; m_bedrockFoundationModelConfiguration = value; } + inline void SetBedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationForParsing&& value) { m_bedrockFoundationModelConfigurationHasBeenSet = true; m_bedrockFoundationModelConfiguration = std::move(value); } + inline ParsingConfiguration& WithBedrockFoundationModelConfiguration(const BedrockFoundationModelConfigurationForParsing& value) { SetBedrockFoundationModelConfiguration(value); return *this;} + inline ParsingConfiguration& WithBedrockFoundationModelConfiguration(BedrockFoundationModelConfigurationForParsing&& value) { SetBedrockFoundationModelConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The parsing strategy for the data source.

    + */ + inline const ParsingStrategy& GetParsingStrategy() const{ return m_parsingStrategy; } + inline bool ParsingStrategyHasBeenSet() const { return m_parsingStrategyHasBeenSet; } + inline void SetParsingStrategy(const ParsingStrategy& value) { m_parsingStrategyHasBeenSet = true; m_parsingStrategy = value; } + inline void SetParsingStrategy(ParsingStrategy&& value) { m_parsingStrategyHasBeenSet = true; m_parsingStrategy = std::move(value); } + inline ParsingConfiguration& WithParsingStrategy(const ParsingStrategy& value) { SetParsingStrategy(value); return *this;} + inline ParsingConfiguration& WithParsingStrategy(ParsingStrategy&& value) { SetParsingStrategy(std::move(value)); return *this;} + ///@} + private: + + BedrockFoundationModelConfigurationForParsing m_bedrockFoundationModelConfiguration; + bool m_bedrockFoundationModelConfigurationHasBeenSet = false; + + ParsingStrategy m_parsingStrategy; + bool m_parsingStrategyHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingPrompt.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingPrompt.h new file mode 100644 index 00000000000..3a7a472995d --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingPrompt.h @@ -0,0 +1,62 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Instructions for interpreting the contents of a document.

    See + * Also:

    AWS + * API Reference

    + */ + class ParsingPrompt + { + public: + AWS_QCONNECT_API ParsingPrompt(); + AWS_QCONNECT_API ParsingPrompt(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API ParsingPrompt& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    Instructions for interpreting the contents of a document.

    + */ + inline const Aws::String& GetParsingPromptText() const{ return m_parsingPromptText; } + inline bool ParsingPromptTextHasBeenSet() const { return m_parsingPromptTextHasBeenSet; } + inline void SetParsingPromptText(const Aws::String& value) { m_parsingPromptTextHasBeenSet = true; m_parsingPromptText = value; } + inline void SetParsingPromptText(Aws::String&& value) { m_parsingPromptTextHasBeenSet = true; m_parsingPromptText = std::move(value); } + inline void SetParsingPromptText(const char* value) { m_parsingPromptTextHasBeenSet = true; m_parsingPromptText.assign(value); } + inline ParsingPrompt& WithParsingPromptText(const Aws::String& value) { SetParsingPromptText(value); return *this;} + inline ParsingPrompt& WithParsingPromptText(Aws::String&& value) { SetParsingPromptText(std::move(value)); return *this;} + inline ParsingPrompt& WithParsingPromptText(const char* value) { SetParsingPromptText(value); return *this;} + ///@} + private: + + Aws::String m_parsingPromptText; + bool m_parsingPromptTextHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingStrategy.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingStrategy.h new file mode 100644 index 00000000000..c9e97267c5d --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ParsingStrategy.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class ParsingStrategy + { + NOT_SET, + BEDROCK_FOUNDATION_MODEL + }; + +namespace ParsingStrategyMapper +{ +AWS_QCONNECT_API ParsingStrategy GetParsingStrategyForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForParsingStrategy(ParsingStrategy value); +} // namespace ParsingStrategyMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryInputData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryInputData.h new file mode 100644 index 00000000000..60b89102da1 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryInputData.h @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Input information for the query.

    See Also:

    AWS + * API Reference

    + */ + class QueryInputData + { + public: + AWS_QCONNECT_API QueryInputData(); + AWS_QCONNECT_API QueryInputData(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API QueryInputData& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    Input information for the intent.

    + */ + inline const IntentInputData& GetIntentInputData() const{ return m_intentInputData; } + inline bool IntentInputDataHasBeenSet() const { return m_intentInputDataHasBeenSet; } + inline void SetIntentInputData(const IntentInputData& value) { m_intentInputDataHasBeenSet = true; m_intentInputData = value; } + inline void SetIntentInputData(IntentInputData&& value) { m_intentInputDataHasBeenSet = true; m_intentInputData = std::move(value); } + inline QueryInputData& WithIntentInputData(const IntentInputData& value) { SetIntentInputData(value); return *this;} + inline QueryInputData& WithIntentInputData(IntentInputData&& value) { SetIntentInputData(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    Input information for the query.

    + */ + inline const QueryTextInputData& GetQueryTextInputData() const{ return m_queryTextInputData; } + inline bool QueryTextInputDataHasBeenSet() const { return m_queryTextInputDataHasBeenSet; } + inline void SetQueryTextInputData(const QueryTextInputData& value) { m_queryTextInputDataHasBeenSet = true; m_queryTextInputData = value; } + inline void SetQueryTextInputData(QueryTextInputData&& value) { m_queryTextInputDataHasBeenSet = true; m_queryTextInputData = std::move(value); } + inline QueryInputData& WithQueryTextInputData(const QueryTextInputData& value) { SetQueryTextInputData(value); return *this;} + inline QueryInputData& WithQueryTextInputData(QueryTextInputData&& value) { SetQueryTextInputData(std::move(value)); return *this;} + ///@} + private: + + IntentInputData m_intentInputData; + bool m_intentInputDataHasBeenSet = false; + + QueryTextInputData m_queryTextInputData; + bool m_queryTextInputDataHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryResultType.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryResultType.h index aa87bfa2155..c59c0d7edf6 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryResultType.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryResultType.h @@ -17,6 +17,7 @@ namespace Model { NOT_SET, KNOWLEDGE_CONTENT, + INTENT_ANSWER, GENERATIVE_ANSWER }; diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryTextInputData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryTextInputData.h new file mode 100644 index 00000000000..5b0fa201102 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/QueryTextInputData.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Information about the text to search for.

    See Also:

    AWS + * API Reference

    + */ + class QueryTextInputData + { + public: + AWS_QCONNECT_API QueryTextInputData(); + AWS_QCONNECT_API QueryTextInputData(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API QueryTextInputData& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The text to search for.

    + */ + inline const Aws::String& GetText() const{ return m_text; } + inline bool TextHasBeenSet() const { return m_textHasBeenSet; } + inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } + inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } + inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } + inline QueryTextInputData& WithText(const Aws::String& value) { SetText(value); return *this;} + inline QueryTextInputData& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} + inline QueryTextInputData& WithText(const char* value) { SetText(value); return *this;} + ///@} + private: + + Aws::String m_text; + bool m_textHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RecommendationType.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RecommendationType.h index f7adbf21521..bc721347fa9 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RecommendationType.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RecommendationType.h @@ -18,7 +18,8 @@ namespace Model NOT_SET, KNOWLEDGE_CONTENT, GENERATIVE_RESPONSE, - GENERATIVE_ANSWER + GENERATIVE_ANSWER, + DETECTED_INTENT }; namespace RecommendationTypeMapper diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ReferenceType.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ReferenceType.h new file mode 100644 index 00000000000..bf3d3a8bc8c --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/ReferenceType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class ReferenceType + { + NOT_SET, + WEB_CRAWLER, + KNOWLEDGE_BASE + }; + +namespace ReferenceTypeMapper +{ +AWS_QCONNECT_API ReferenceType GetReferenceTypeForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForReferenceType(ReferenceType value); +} // namespace ReferenceTypeMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RemoveAssistantAIAgentRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RemoveAssistantAIAgentRequest.h new file mode 100644 index 00000000000..426686fbadc --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RemoveAssistantAIAgentRequest.h @@ -0,0 +1,80 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Http +{ + class URI; +} //namespace Http +namespace QConnect +{ +namespace Model +{ + + /** + */ + class RemoveAssistantAIAgentRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API RemoveAssistantAIAgentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "RemoveAssistantAIAgent"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + AWS_QCONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; + + + ///@{ + /** + *

    The type of the AI Agent being removed for use by default from the Amazon Q + * in Connect Assistant.

    + */ + inline const AIAgentType& GetAiAgentType() const{ return m_aiAgentType; } + inline bool AiAgentTypeHasBeenSet() const { return m_aiAgentTypeHasBeenSet; } + inline void SetAiAgentType(const AIAgentType& value) { m_aiAgentTypeHasBeenSet = true; m_aiAgentType = value; } + inline void SetAiAgentType(AIAgentType&& value) { m_aiAgentTypeHasBeenSet = true; m_aiAgentType = std::move(value); } + inline RemoveAssistantAIAgentRequest& WithAiAgentType(const AIAgentType& value) { SetAiAgentType(value); return *this;} + inline RemoveAssistantAIAgentRequest& WithAiAgentType(AIAgentType&& value) { SetAiAgentType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline RemoveAssistantAIAgentRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline RemoveAssistantAIAgentRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline RemoveAssistantAIAgentRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + private: + + AIAgentType m_aiAgentType; + bool m_aiAgentTypeHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RemoveAssistantAIAgentResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RemoveAssistantAIAgentResult.h new file mode 100644 index 00000000000..91a4d76e98f --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RemoveAssistantAIAgentResult.h @@ -0,0 +1,52 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class RemoveAssistantAIAgentResult + { + public: + AWS_QCONNECT_API RemoveAssistantAIAgentResult(); + AWS_QCONNECT_API RemoveAssistantAIAgentResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API RemoveAssistantAIAgentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline RemoveAssistantAIAgentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline RemoveAssistantAIAgentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline RemoveAssistantAIAgentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RuntimeSessionData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RuntimeSessionData.h new file mode 100644 index 00000000000..1b99487d743 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RuntimeSessionData.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The list of key-value pairs that are stored on the session.

    See + * Also:

    AWS + * API Reference

    + */ + class RuntimeSessionData + { + public: + AWS_QCONNECT_API RuntimeSessionData(); + AWS_QCONNECT_API RuntimeSessionData(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API RuntimeSessionData& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The key of the data stored on the session.

    + */ + inline const Aws::String& GetKey() const{ return m_key; } + inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; } + inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; } + inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); } + inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); } + inline RuntimeSessionData& WithKey(const Aws::String& value) { SetKey(value); return *this;} + inline RuntimeSessionData& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;} + inline RuntimeSessionData& WithKey(const char* value) { SetKey(value); return *this;} + ///@} + + ///@{ + /** + *

    The value of the data stored on the session.

    + */ + inline const RuntimeSessionDataValue& GetValue() const{ return m_value; } + inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } + inline void SetValue(const RuntimeSessionDataValue& value) { m_valueHasBeenSet = true; m_value = value; } + inline void SetValue(RuntimeSessionDataValue&& value) { m_valueHasBeenSet = true; m_value = std::move(value); } + inline RuntimeSessionData& WithValue(const RuntimeSessionDataValue& value) { SetValue(value); return *this;} + inline RuntimeSessionData& WithValue(RuntimeSessionDataValue&& value) { SetValue(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_key; + bool m_keyHasBeenSet = false; + + RuntimeSessionDataValue m_value; + bool m_valueHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RuntimeSessionDataValue.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RuntimeSessionDataValue.h new file mode 100644 index 00000000000..839ec95ac14 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/RuntimeSessionDataValue.h @@ -0,0 +1,62 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    A union type that specifies the data stored on the session.

    See + * Also:

    AWS + * API Reference

    + */ + class RuntimeSessionDataValue + { + public: + AWS_QCONNECT_API RuntimeSessionDataValue(); + AWS_QCONNECT_API RuntimeSessionDataValue(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API RuntimeSessionDataValue& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The string value of the data stored on the session.

    + */ + inline const Aws::String& GetStringValue() const{ return m_stringValue; } + inline bool StringValueHasBeenSet() const { return m_stringValueHasBeenSet; } + inline void SetStringValue(const Aws::String& value) { m_stringValueHasBeenSet = true; m_stringValue = value; } + inline void SetStringValue(Aws::String&& value) { m_stringValueHasBeenSet = true; m_stringValue = std::move(value); } + inline void SetStringValue(const char* value) { m_stringValueHasBeenSet = true; m_stringValue.assign(value); } + inline RuntimeSessionDataValue& WithStringValue(const Aws::String& value) { SetStringValue(value); return *this;} + inline RuntimeSessionDataValue& WithStringValue(Aws::String&& value) { SetStringValue(std::move(value)); return *this;} + inline RuntimeSessionDataValue& WithStringValue(const char* value) { SetStringValue(value); return *this;} + ///@} + private: + + Aws::String m_stringValue; + bool m_stringValueHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SeedUrl.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SeedUrl.h new file mode 100644 index 00000000000..8dc0154470b --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SeedUrl.h @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    A URL for crawling.

    See Also:

    AWS + * API Reference

    + */ + class SeedUrl + { + public: + AWS_QCONNECT_API SeedUrl(); + AWS_QCONNECT_API SeedUrl(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API SeedUrl& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    URL for crawling

    + */ + inline const Aws::String& GetUrl() const{ return m_url; } + inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } + inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } + inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } + inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } + inline SeedUrl& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} + inline SeedUrl& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} + inline SeedUrl& WithUrl(const char* value) { SetUrl(value); return *this;} + ///@} + private: + + Aws::String m_url; + bool m_urlHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SemanticChunkingConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SemanticChunkingConfiguration.h new file mode 100644 index 00000000000..2971e0b4132 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SemanticChunkingConfiguration.h @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Settings for semantic document chunking for a data source. Semantic chunking + * splits a document into smaller documents based on groups of similar content + * derived from the text with natural language processing.

    See Also:

    + * AWS + * API Reference

    + */ + class SemanticChunkingConfiguration + { + public: + AWS_QCONNECT_API SemanticChunkingConfiguration(); + AWS_QCONNECT_API SemanticChunkingConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API SemanticChunkingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The dissimilarity threshold for splitting chunks.

    + */ + inline int GetBreakpointPercentileThreshold() const{ return m_breakpointPercentileThreshold; } + inline bool BreakpointPercentileThresholdHasBeenSet() const { return m_breakpointPercentileThresholdHasBeenSet; } + inline void SetBreakpointPercentileThreshold(int value) { m_breakpointPercentileThresholdHasBeenSet = true; m_breakpointPercentileThreshold = value; } + inline SemanticChunkingConfiguration& WithBreakpointPercentileThreshold(int value) { SetBreakpointPercentileThreshold(value); return *this;} + ///@} + + ///@{ + /** + *

    The buffer size.

    + */ + inline int GetBufferSize() const{ return m_bufferSize; } + inline bool BufferSizeHasBeenSet() const { return m_bufferSizeHasBeenSet; } + inline void SetBufferSize(int value) { m_bufferSizeHasBeenSet = true; m_bufferSize = value; } + inline SemanticChunkingConfiguration& WithBufferSize(int value) { SetBufferSize(value); return *this;} + ///@} + + ///@{ + /** + *

    The maximum number of tokens that a chunk can contain.

    + */ + inline int GetMaxTokens() const{ return m_maxTokens; } + inline bool MaxTokensHasBeenSet() const { return m_maxTokensHasBeenSet; } + inline void SetMaxTokens(int value) { m_maxTokensHasBeenSet = true; m_maxTokens = value; } + inline SemanticChunkingConfiguration& WithMaxTokens(int value) { SetMaxTokens(value); return *this;} + ///@} + private: + + int m_breakpointPercentileThreshold; + bool m_breakpointPercentileThresholdHasBeenSet = false; + + int m_bufferSize; + bool m_bufferSizeHasBeenSet = false; + + int m_maxTokens; + bool m_maxTokensHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SessionData.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SessionData.h index e5eaa83716b..047c9ba8a1e 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SessionData.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SessionData.h @@ -5,10 +5,12 @@ #pragma once #include +#include #include #include #include -#include +#include +#include #include namespace Aws @@ -40,6 +42,23 @@ namespace Model AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + ///@{ + /** + *

    The configuration of the AI Agents (mapped by AI Agent Type to AI Agent + * version) that should be used by Amazon Q in Connect for this Session.

    + */ + inline const Aws::Map& GetAiAgentConfiguration() const{ return m_aiAgentConfiguration; } + inline bool AiAgentConfigurationHasBeenSet() const { return m_aiAgentConfigurationHasBeenSet; } + inline void SetAiAgentConfiguration(const Aws::Map& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = value; } + inline void SetAiAgentConfiguration(Aws::Map&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = std::move(value); } + inline SessionData& WithAiAgentConfiguration(const Aws::Map& value) { SetAiAgentConfiguration(value); return *this;} + inline SessionData& WithAiAgentConfiguration(Aws::Map&& value) { SetAiAgentConfiguration(std::move(value)); return *this;} + inline SessionData& AddAiAgentConfiguration(const AIAgentType& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, value); return *this; } + inline SessionData& AddAiAgentConfiguration(AIAgentType&& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), value); return *this; } + inline SessionData& AddAiAgentConfiguration(const AIAgentType& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, std::move(value)); return *this; } + inline SessionData& AddAiAgentConfiguration(AIAgentType&& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), std::move(value)); return *this; } + ///@} + ///@{ /** *

    The description of the session.

    @@ -140,6 +159,9 @@ namespace Model ///@} private: + Aws::Map m_aiAgentConfiguration; + bool m_aiAgentConfigurationHasBeenSet = false; + Aws::String m_description; bool m_descriptionHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SessionDataNamespace.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SessionDataNamespace.h new file mode 100644 index 00000000000..dcfea982693 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SessionDataNamespace.h @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class SessionDataNamespace + { + NOT_SET, + Custom + }; + +namespace SessionDataNamespaceMapper +{ +AWS_QCONNECT_API SessionDataNamespace GetSessionDataNamespaceForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForSessionDataNamespace(SessionDataNamespace value); +} // namespace SessionDataNamespaceMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SourceConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SourceConfiguration.h index 3a07bd660c0..6bffdd8c757 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SourceConfiguration.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SourceConfiguration.h @@ -6,6 +6,7 @@ #pragma once #include #include +#include #include namespace Aws @@ -50,10 +51,25 @@ namespace Model inline SourceConfiguration& WithAppIntegrations(const AppIntegrationsConfiguration& value) { SetAppIntegrations(value); return *this;} inline SourceConfiguration& WithAppIntegrations(AppIntegrationsConfiguration&& value) { SetAppIntegrations(std::move(value)); return *this;} ///@} + + ///@{ + /** + *

    Source configuration for managed resources.

    + */ + inline const ManagedSourceConfiguration& GetManagedSourceConfiguration() const{ return m_managedSourceConfiguration; } + inline bool ManagedSourceConfigurationHasBeenSet() const { return m_managedSourceConfigurationHasBeenSet; } + inline void SetManagedSourceConfiguration(const ManagedSourceConfiguration& value) { m_managedSourceConfigurationHasBeenSet = true; m_managedSourceConfiguration = value; } + inline void SetManagedSourceConfiguration(ManagedSourceConfiguration&& value) { m_managedSourceConfigurationHasBeenSet = true; m_managedSourceConfiguration = std::move(value); } + inline SourceConfiguration& WithManagedSourceConfiguration(const ManagedSourceConfiguration& value) { SetManagedSourceConfiguration(value); return *this;} + inline SourceConfiguration& WithManagedSourceConfiguration(ManagedSourceConfiguration&& value) { SetManagedSourceConfiguration(std::move(value)); return *this;} + ///@} private: AppIntegrationsConfiguration m_appIntegrations; bool m_appIntegrationsHasBeenSet = false; + + ManagedSourceConfiguration m_managedSourceConfiguration; + bool m_managedSourceConfigurationHasBeenSet = false; }; } // namespace Model diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SourceContentDataDetails.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SourceContentDataDetails.h index 245d1764b22..cbfecfa2d68 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SourceContentDataDetails.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SourceContentDataDetails.h @@ -5,6 +5,7 @@ #pragma once #include +#include #include #include #include @@ -40,6 +41,19 @@ namespace Model AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + ///@{ + /** + *

    Contains information about where the text with a citation begins and ends in + * the generated output.

    + */ + inline const CitationSpan& GetCitationSpan() const{ return m_citationSpan; } + inline bool CitationSpanHasBeenSet() const { return m_citationSpanHasBeenSet; } + inline void SetCitationSpan(const CitationSpan& value) { m_citationSpanHasBeenSet = true; m_citationSpan = value; } + inline void SetCitationSpan(CitationSpan&& value) { m_citationSpanHasBeenSet = true; m_citationSpan = std::move(value); } + inline SourceContentDataDetails& WithCitationSpan(const CitationSpan& value) { SetCitationSpan(value); return *this;} + inline SourceContentDataDetails& WithCitationSpan(CitationSpan&& value) { SetCitationSpan(std::move(value)); return *this;} + ///@} + ///@{ /** *

    The identifier of the source content.

    @@ -91,6 +105,9 @@ namespace Model ///@} private: + CitationSpan m_citationSpan; + bool m_citationSpanHasBeenSet = false; + Aws::String m_id; bool m_idHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/Status.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/Status.h new file mode 100644 index 00000000000..7be02168a81 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/Status.h @@ -0,0 +1,35 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class Status + { + NOT_SET, + CREATE_IN_PROGRESS, + CREATE_FAILED, + ACTIVE, + DELETE_IN_PROGRESS, + DELETE_FAILED, + DELETED + }; + +namespace StatusMapper +{ +AWS_QCONNECT_API Status GetStatusForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForStatus(Status value); +} // namespace StatusMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SyncStatus.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SyncStatus.h new file mode 100644 index 00000000000..880b11669c2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/SyncStatus.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class SyncStatus + { + NOT_SET, + SYNC_FAILED, + SYNCING_IN_PROGRESS, + SYNC_SUCCESS, + CREATE_IN_PROGRESS + }; + +namespace SyncStatusMapper +{ +AWS_QCONNECT_API SyncStatus GetSyncStatusForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForSyncStatus(SyncStatus value); +} // namespace SyncStatusMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/TextFullAIPromptEditTemplateConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/TextFullAIPromptEditTemplateConfiguration.h new file mode 100644 index 00000000000..037d4c613c7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/TextFullAIPromptEditTemplateConfiguration.h @@ -0,0 +1,62 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The configuration for a prompt template that supports full textual prompt + * configuration using a YAML prompt.

    See Also:

    AWS + * API Reference

    + */ + class TextFullAIPromptEditTemplateConfiguration + { + public: + AWS_QCONNECT_API TextFullAIPromptEditTemplateConfiguration(); + AWS_QCONNECT_API TextFullAIPromptEditTemplateConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API TextFullAIPromptEditTemplateConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The YAML text for the AI Prompt template.

    + */ + inline const Aws::String& GetText() const{ return m_text; } + inline bool TextHasBeenSet() const { return m_textHasBeenSet; } + inline void SetText(const Aws::String& value) { m_textHasBeenSet = true; m_text = value; } + inline void SetText(Aws::String&& value) { m_textHasBeenSet = true; m_text = std::move(value); } + inline void SetText(const char* value) { m_textHasBeenSet = true; m_text.assign(value); } + inline TextFullAIPromptEditTemplateConfiguration& WithText(const Aws::String& value) { SetText(value); return *this;} + inline TextFullAIPromptEditTemplateConfiguration& WithText(Aws::String&& value) { SetText(std::move(value)); return *this;} + inline TextFullAIPromptEditTemplateConfiguration& WithText(const char* value) { SetText(value); return *this;} + ///@} + private: + + Aws::String m_text; + bool m_textHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIAgentRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIAgentRequest.h new file mode 100644 index 00000000000..000303df343 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIAgentRequest.h @@ -0,0 +1,145 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class UpdateAIAgentRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API UpdateAIAgentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateAIAgent"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI Agent.

    + */ + inline const Aws::String& GetAiAgentId() const{ return m_aiAgentId; } + inline bool AiAgentIdHasBeenSet() const { return m_aiAgentIdHasBeenSet; } + inline void SetAiAgentId(const Aws::String& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = value; } + inline void SetAiAgentId(Aws::String&& value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId = std::move(value); } + inline void SetAiAgentId(const char* value) { m_aiAgentIdHasBeenSet = true; m_aiAgentId.assign(value); } + inline UpdateAIAgentRequest& WithAiAgentId(const Aws::String& value) { SetAiAgentId(value); return *this;} + inline UpdateAIAgentRequest& WithAiAgentId(Aws::String&& value) { SetAiAgentId(std::move(value)); return *this;} + inline UpdateAIAgentRequest& WithAiAgentId(const char* value) { SetAiAgentId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline UpdateAIAgentRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline UpdateAIAgentRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline UpdateAIAgentRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the AWS SDK populates this field. + * For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline UpdateAIAgentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline UpdateAIAgentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline UpdateAIAgentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The configuration of the Amazon Q in Connect AI Agent.

    + */ + inline const AIAgentConfiguration& GetConfiguration() const{ return m_configuration; } + inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } + inline void SetConfiguration(const AIAgentConfiguration& value) { m_configurationHasBeenSet = true; m_configuration = value; } + inline void SetConfiguration(AIAgentConfiguration&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } + inline UpdateAIAgentRequest& WithConfiguration(const AIAgentConfiguration& value) { SetConfiguration(value); return *this;} + inline UpdateAIAgentRequest& WithConfiguration(AIAgentConfiguration&& value) { SetConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The description of the Amazon Q in Connect AI Agent.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline UpdateAIAgentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline UpdateAIAgentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline UpdateAIAgentRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

    The visbility status of the Amazon Q in Connect AI Agent.

    + */ + inline const VisibilityStatus& GetVisibilityStatus() const{ return m_visibilityStatus; } + inline bool VisibilityStatusHasBeenSet() const { return m_visibilityStatusHasBeenSet; } + inline void SetVisibilityStatus(const VisibilityStatus& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = value; } + inline void SetVisibilityStatus(VisibilityStatus&& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = std::move(value); } + inline UpdateAIAgentRequest& WithVisibilityStatus(const VisibilityStatus& value) { SetVisibilityStatus(value); return *this;} + inline UpdateAIAgentRequest& WithVisibilityStatus(VisibilityStatus&& value) { SetVisibilityStatus(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_aiAgentId; + bool m_aiAgentIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + AIAgentConfiguration m_configuration; + bool m_configurationHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + VisibilityStatus m_visibilityStatus; + bool m_visibilityStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIAgentResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIAgentResult.h new file mode 100644 index 00000000000..0ec62538e06 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIAgentResult.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class UpdateAIAgentResult + { + public: + AWS_QCONNECT_API UpdateAIAgentResult(); + AWS_QCONNECT_API UpdateAIAgentResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API UpdateAIAgentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The data of the updated Amazon Q in Connect AI Agent.

    + */ + inline const AIAgentData& GetAiAgent() const{ return m_aiAgent; } + inline void SetAiAgent(const AIAgentData& value) { m_aiAgent = value; } + inline void SetAiAgent(AIAgentData&& value) { m_aiAgent = std::move(value); } + inline UpdateAIAgentResult& WithAiAgent(const AIAgentData& value) { SetAiAgent(value); return *this;} + inline UpdateAIAgentResult& WithAiAgent(AIAgentData&& value) { SetAiAgent(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline UpdateAIAgentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateAIAgentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateAIAgentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AIAgentData m_aiAgent; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIPromptRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIPromptRequest.h new file mode 100644 index 00000000000..5914a5da43d --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIPromptRequest.h @@ -0,0 +1,145 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class UpdateAIPromptRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API UpdateAIPromptRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateAIPrompt"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect AI Prompt.

    + */ + inline const Aws::String& GetAiPromptId() const{ return m_aiPromptId; } + inline bool AiPromptIdHasBeenSet() const { return m_aiPromptIdHasBeenSet; } + inline void SetAiPromptId(const Aws::String& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = value; } + inline void SetAiPromptId(Aws::String&& value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId = std::move(value); } + inline void SetAiPromptId(const char* value) { m_aiPromptIdHasBeenSet = true; m_aiPromptId.assign(value); } + inline UpdateAIPromptRequest& WithAiPromptId(const Aws::String& value) { SetAiPromptId(value); return *this;} + inline UpdateAIPromptRequest& WithAiPromptId(Aws::String&& value) { SetAiPromptId(std::move(value)); return *this;} + inline UpdateAIPromptRequest& WithAiPromptId(const char* value) { SetAiPromptId(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline UpdateAIPromptRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline UpdateAIPromptRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline UpdateAIPromptRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    A unique, case-sensitive identifier that you provide to ensure the + * idempotency of the request. If not provided, the AWS SDK populates this field. + * For more information about idempotency, see Making + * retries safe with idempotent APIs.

    + */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + inline UpdateAIPromptRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + inline UpdateAIPromptRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + inline UpdateAIPromptRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + ///@} + + ///@{ + /** + *

    The description of the Amazon Q in Connect AI Prompt.

    + */ + inline const Aws::String& GetDescription() const{ return m_description; } + inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } + inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } + inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } + inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } + inline UpdateAIPromptRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} + inline UpdateAIPromptRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} + inline UpdateAIPromptRequest& WithDescription(const char* value) { SetDescription(value); return *this;} + ///@} + + ///@{ + /** + *

    The configuration of the prompt template for this AI Prompt.

    + */ + inline const AIPromptTemplateConfiguration& GetTemplateConfiguration() const{ return m_templateConfiguration; } + inline bool TemplateConfigurationHasBeenSet() const { return m_templateConfigurationHasBeenSet; } + inline void SetTemplateConfiguration(const AIPromptTemplateConfiguration& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = value; } + inline void SetTemplateConfiguration(AIPromptTemplateConfiguration&& value) { m_templateConfigurationHasBeenSet = true; m_templateConfiguration = std::move(value); } + inline UpdateAIPromptRequest& WithTemplateConfiguration(const AIPromptTemplateConfiguration& value) { SetTemplateConfiguration(value); return *this;} + inline UpdateAIPromptRequest& WithTemplateConfiguration(AIPromptTemplateConfiguration&& value) { SetTemplateConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The visibility status of the Amazon Q in Connect AI prompt.

    + */ + inline const VisibilityStatus& GetVisibilityStatus() const{ return m_visibilityStatus; } + inline bool VisibilityStatusHasBeenSet() const { return m_visibilityStatusHasBeenSet; } + inline void SetVisibilityStatus(const VisibilityStatus& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = value; } + inline void SetVisibilityStatus(VisibilityStatus&& value) { m_visibilityStatusHasBeenSet = true; m_visibilityStatus = std::move(value); } + inline UpdateAIPromptRequest& WithVisibilityStatus(const VisibilityStatus& value) { SetVisibilityStatus(value); return *this;} + inline UpdateAIPromptRequest& WithVisibilityStatus(VisibilityStatus&& value) { SetVisibilityStatus(std::move(value)); return *this;} + ///@} + private: + + Aws::String m_aiPromptId; + bool m_aiPromptIdHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet = false; + + Aws::String m_description; + bool m_descriptionHasBeenSet = false; + + AIPromptTemplateConfiguration m_templateConfiguration; + bool m_templateConfigurationHasBeenSet = false; + + VisibilityStatus m_visibilityStatus; + bool m_visibilityStatusHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIPromptResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIPromptResult.h new file mode 100644 index 00000000000..3ab4db41123 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAIPromptResult.h @@ -0,0 +1,66 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class UpdateAIPromptResult + { + public: + AWS_QCONNECT_API UpdateAIPromptResult(); + AWS_QCONNECT_API UpdateAIPromptResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API UpdateAIPromptResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    The data of the updated Amazon Q in Connect AI Prompt.

    + */ + inline const AIPromptData& GetAiPrompt() const{ return m_aiPrompt; } + inline void SetAiPrompt(const AIPromptData& value) { m_aiPrompt = value; } + inline void SetAiPrompt(AIPromptData&& value) { m_aiPrompt = std::move(value); } + inline UpdateAIPromptResult& WithAiPrompt(const AIPromptData& value) { SetAiPrompt(value); return *this;} + inline UpdateAIPromptResult& WithAiPrompt(AIPromptData&& value) { SetAiPrompt(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline UpdateAIPromptResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateAIPromptResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateAIPromptResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AIPromptData m_aiPrompt; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAssistantAIAgentRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAssistantAIAgentRequest.h new file mode 100644 index 00000000000..e8cf6d82297 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAssistantAIAgentRequest.h @@ -0,0 +1,91 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class UpdateAssistantAIAgentRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API UpdateAssistantAIAgentRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateAssistantAIAgent"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The type of the AI Agent being updated for use by default on the Amazon Q in + * Connect Assistant.

    + */ + inline const AIAgentType& GetAiAgentType() const{ return m_aiAgentType; } + inline bool AiAgentTypeHasBeenSet() const { return m_aiAgentTypeHasBeenSet; } + inline void SetAiAgentType(const AIAgentType& value) { m_aiAgentTypeHasBeenSet = true; m_aiAgentType = value; } + inline void SetAiAgentType(AIAgentType&& value) { m_aiAgentTypeHasBeenSet = true; m_aiAgentType = std::move(value); } + inline UpdateAssistantAIAgentRequest& WithAiAgentType(const AIAgentType& value) { SetAiAgentType(value); return *this;} + inline UpdateAssistantAIAgentRequest& WithAiAgentType(AIAgentType&& value) { SetAiAgentType(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline UpdateAssistantAIAgentRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline UpdateAssistantAIAgentRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline UpdateAssistantAIAgentRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    The configuration of the AI Agent being updated for use by default on the + * Amazon Q in Connect Assistant.

    + */ + inline const AIAgentConfigurationData& GetConfiguration() const{ return m_configuration; } + inline bool ConfigurationHasBeenSet() const { return m_configurationHasBeenSet; } + inline void SetConfiguration(const AIAgentConfigurationData& value) { m_configurationHasBeenSet = true; m_configuration = value; } + inline void SetConfiguration(AIAgentConfigurationData&& value) { m_configurationHasBeenSet = true; m_configuration = std::move(value); } + inline UpdateAssistantAIAgentRequest& WithConfiguration(const AIAgentConfigurationData& value) { SetConfiguration(value); return *this;} + inline UpdateAssistantAIAgentRequest& WithConfiguration(AIAgentConfigurationData&& value) { SetConfiguration(std::move(value)); return *this;} + ///@} + private: + + AIAgentType m_aiAgentType; + bool m_aiAgentTypeHasBeenSet = false; + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + AIAgentConfigurationData m_configuration; + bool m_configurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAssistantAIAgentResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAssistantAIAgentResult.h new file mode 100644 index 00000000000..afb1b0651c5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateAssistantAIAgentResult.h @@ -0,0 +1,64 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class UpdateAssistantAIAgentResult + { + public: + AWS_QCONNECT_API UpdateAssistantAIAgentResult(); + AWS_QCONNECT_API UpdateAssistantAIAgentResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API UpdateAssistantAIAgentResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + + inline const AssistantData& GetAssistant() const{ return m_assistant; } + inline void SetAssistant(const AssistantData& value) { m_assistant = value; } + inline void SetAssistant(AssistantData&& value) { m_assistant = std::move(value); } + inline UpdateAssistantAIAgentResult& WithAssistant(const AssistantData& value) { SetAssistant(value); return *this;} + inline UpdateAssistantAIAgentResult& WithAssistant(AssistantData&& value) { SetAssistant(std::move(value)); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline UpdateAssistantAIAgentResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateAssistantAIAgentResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateAssistantAIAgentResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + AssistantData m_assistant; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionDataRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionDataRequest.h new file mode 100644 index 00000000000..49c6517fa1e --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionDataRequest.h @@ -0,0 +1,111 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + + /** + */ + class UpdateSessionDataRequest : public QConnectRequest + { + public: + AWS_QCONNECT_API UpdateSessionDataRequest(); + + // Service request name is the Operation name which will send this request out, + // each operation should has unique request name, so that we can get operation's name from this request. + // Note: this is not true for response, multiple operations may have the same response name, + // so we can not get operation's name from response. + inline virtual const char* GetServiceRequestName() const override { return "UpdateSessionData"; } + + AWS_QCONNECT_API Aws::String SerializePayload() const override; + + + ///@{ + /** + *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or + * the ARN. URLs cannot contain the ARN.

    + */ + inline const Aws::String& GetAssistantId() const{ return m_assistantId; } + inline bool AssistantIdHasBeenSet() const { return m_assistantIdHasBeenSet; } + inline void SetAssistantId(const Aws::String& value) { m_assistantIdHasBeenSet = true; m_assistantId = value; } + inline void SetAssistantId(Aws::String&& value) { m_assistantIdHasBeenSet = true; m_assistantId = std::move(value); } + inline void SetAssistantId(const char* value) { m_assistantIdHasBeenSet = true; m_assistantId.assign(value); } + inline UpdateSessionDataRequest& WithAssistantId(const Aws::String& value) { SetAssistantId(value); return *this;} + inline UpdateSessionDataRequest& WithAssistantId(Aws::String&& value) { SetAssistantId(std::move(value)); return *this;} + inline UpdateSessionDataRequest& WithAssistantId(const char* value) { SetAssistantId(value); return *this;} + ///@} + + ///@{ + /** + *

    The data stored on the Amazon Q in Connect Session.

    + */ + inline const Aws::Vector& GetData() const{ return m_data; } + inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } + inline void SetData(const Aws::Vector& value) { m_dataHasBeenSet = true; m_data = value; } + inline void SetData(Aws::Vector&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } + inline UpdateSessionDataRequest& WithData(const Aws::Vector& value) { SetData(value); return *this;} + inline UpdateSessionDataRequest& WithData(Aws::Vector&& value) { SetData(std::move(value)); return *this;} + inline UpdateSessionDataRequest& AddData(const RuntimeSessionData& value) { m_dataHasBeenSet = true; m_data.push_back(value); return *this; } + inline UpdateSessionDataRequest& AddData(RuntimeSessionData&& value) { m_dataHasBeenSet = true; m_data.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The namespace into which the session data is stored. Supported namespaces + * are: Custom

    + */ + inline const SessionDataNamespace& GetNamespace() const{ return m_namespace; } + inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; } + inline void SetNamespace(const SessionDataNamespace& value) { m_namespaceHasBeenSet = true; m_namespace = value; } + inline void SetNamespace(SessionDataNamespace&& value) { m_namespaceHasBeenSet = true; m_namespace = std::move(value); } + inline UpdateSessionDataRequest& WithNamespace(const SessionDataNamespace& value) { SetNamespace(value); return *this;} + inline UpdateSessionDataRequest& WithNamespace(SessionDataNamespace&& value) { SetNamespace(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the session. Can be either the ID or the ARN. URLs cannot + * contain the ARN.

    + */ + inline const Aws::String& GetSessionId() const{ return m_sessionId; } + inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; } + inline void SetSessionId(const Aws::String& value) { m_sessionIdHasBeenSet = true; m_sessionId = value; } + inline void SetSessionId(Aws::String&& value) { m_sessionIdHasBeenSet = true; m_sessionId = std::move(value); } + inline void SetSessionId(const char* value) { m_sessionIdHasBeenSet = true; m_sessionId.assign(value); } + inline UpdateSessionDataRequest& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} + inline UpdateSessionDataRequest& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} + inline UpdateSessionDataRequest& WithSessionId(const char* value) { SetSessionId(value); return *this;} + ///@} + private: + + Aws::String m_assistantId; + bool m_assistantIdHasBeenSet = false; + + Aws::Vector m_data; + bool m_dataHasBeenSet = false; + + SessionDataNamespace m_namespace; + bool m_namespaceHasBeenSet = false; + + Aws::String m_sessionId; + bool m_sessionIdHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionDataResult.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionDataResult.h new file mode 100644 index 00000000000..e548a0c3243 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionDataResult.h @@ -0,0 +1,114 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +template +class AmazonWebServiceResult; + +namespace Utils +{ +namespace Json +{ + class JsonValue; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + class UpdateSessionDataResult + { + public: + AWS_QCONNECT_API UpdateSessionDataResult(); + AWS_QCONNECT_API UpdateSessionDataResult(const Aws::AmazonWebServiceResult& result); + AWS_QCONNECT_API UpdateSessionDataResult& operator=(const Aws::AmazonWebServiceResult& result); + + + ///@{ + /** + *

    Data stored in the session.

    + */ + inline const Aws::Vector& GetData() const{ return m_data; } + inline void SetData(const Aws::Vector& value) { m_data = value; } + inline void SetData(Aws::Vector&& value) { m_data = std::move(value); } + inline UpdateSessionDataResult& WithData(const Aws::Vector& value) { SetData(value); return *this;} + inline UpdateSessionDataResult& WithData(Aws::Vector&& value) { SetData(std::move(value)); return *this;} + inline UpdateSessionDataResult& AddData(const RuntimeSessionData& value) { m_data.push_back(value); return *this; } + inline UpdateSessionDataResult& AddData(RuntimeSessionData&& value) { m_data.push_back(std::move(value)); return *this; } + ///@} + + ///@{ + /** + *

    The namespace into which the session data is stored. Supported namespaces + * are: Custom

    + */ + inline const SessionDataNamespace& GetNamespace() const{ return m_namespace; } + inline void SetNamespace(const SessionDataNamespace& value) { m_namespace = value; } + inline void SetNamespace(SessionDataNamespace&& value) { m_namespace = std::move(value); } + inline UpdateSessionDataResult& WithNamespace(const SessionDataNamespace& value) { SetNamespace(value); return *this;} + inline UpdateSessionDataResult& WithNamespace(SessionDataNamespace&& value) { SetNamespace(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The Amazon Resource Name (ARN) of the session.

    + */ + inline const Aws::String& GetSessionArn() const{ return m_sessionArn; } + inline void SetSessionArn(const Aws::String& value) { m_sessionArn = value; } + inline void SetSessionArn(Aws::String&& value) { m_sessionArn = std::move(value); } + inline void SetSessionArn(const char* value) { m_sessionArn.assign(value); } + inline UpdateSessionDataResult& WithSessionArn(const Aws::String& value) { SetSessionArn(value); return *this;} + inline UpdateSessionDataResult& WithSessionArn(Aws::String&& value) { SetSessionArn(std::move(value)); return *this;} + inline UpdateSessionDataResult& WithSessionArn(const char* value) { SetSessionArn(value); return *this;} + ///@} + + ///@{ + /** + *

    The identifier of the session.

    + */ + inline const Aws::String& GetSessionId() const{ return m_sessionId; } + inline void SetSessionId(const Aws::String& value) { m_sessionId = value; } + inline void SetSessionId(Aws::String&& value) { m_sessionId = std::move(value); } + inline void SetSessionId(const char* value) { m_sessionId.assign(value); } + inline UpdateSessionDataResult& WithSessionId(const Aws::String& value) { SetSessionId(value); return *this;} + inline UpdateSessionDataResult& WithSessionId(Aws::String&& value) { SetSessionId(std::move(value)); return *this;} + inline UpdateSessionDataResult& WithSessionId(const char* value) { SetSessionId(value); return *this;} + ///@} + + ///@{ + + inline const Aws::String& GetRequestId() const{ return m_requestId; } + inline void SetRequestId(const Aws::String& value) { m_requestId = value; } + inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } + inline void SetRequestId(const char* value) { m_requestId.assign(value); } + inline UpdateSessionDataResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} + inline UpdateSessionDataResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} + inline UpdateSessionDataResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} + ///@} + private: + + Aws::Vector m_data; + + SessionDataNamespace m_namespace; + + Aws::String m_sessionArn; + + Aws::String m_sessionId; + + Aws::String m_requestId; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionRequest.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionRequest.h index fbd1a694e48..ecc8f723f39 100644 --- a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionRequest.h +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UpdateSessionRequest.h @@ -6,8 +6,11 @@ #pragma once #include #include +#include #include #include +#include +#include #include namespace Aws @@ -33,6 +36,23 @@ namespace Model AWS_QCONNECT_API Aws::String SerializePayload() const override; + ///@{ + /** + *

    The configuration of the AI Agents (mapped by AI Agent Type to AI Agent + * version) that should be used by Amazon Q in Connect for this Session.

    + */ + inline const Aws::Map& GetAiAgentConfiguration() const{ return m_aiAgentConfiguration; } + inline bool AiAgentConfigurationHasBeenSet() const { return m_aiAgentConfigurationHasBeenSet; } + inline void SetAiAgentConfiguration(const Aws::Map& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = value; } + inline void SetAiAgentConfiguration(Aws::Map&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration = std::move(value); } + inline UpdateSessionRequest& WithAiAgentConfiguration(const Aws::Map& value) { SetAiAgentConfiguration(value); return *this;} + inline UpdateSessionRequest& WithAiAgentConfiguration(Aws::Map&& value) { SetAiAgentConfiguration(std::move(value)); return *this;} + inline UpdateSessionRequest& AddAiAgentConfiguration(const AIAgentType& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, value); return *this; } + inline UpdateSessionRequest& AddAiAgentConfiguration(AIAgentType&& key, const AIAgentConfigurationData& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), value); return *this; } + inline UpdateSessionRequest& AddAiAgentConfiguration(const AIAgentType& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(key, std::move(value)); return *this; } + inline UpdateSessionRequest& AddAiAgentConfiguration(AIAgentType&& key, AIAgentConfigurationData&& value) { m_aiAgentConfigurationHasBeenSet = true; m_aiAgentConfiguration.emplace(std::move(key), std::move(value)); return *this; } + ///@} + ///@{ /** *

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or @@ -90,6 +110,9 @@ namespace Model ///@} private: + Aws::Map m_aiAgentConfiguration; + bool m_aiAgentConfigurationHasBeenSet = false; + Aws::String m_assistantId; bool m_assistantIdHasBeenSet = false; diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UrlConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UrlConfiguration.h new file mode 100644 index 00000000000..871fc91e33a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/UrlConfiguration.h @@ -0,0 +1,63 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The configuration of the URL/URLs for the web content that you want to crawl. + * You should be authorized to crawl the URLs.

    See Also:

    AWS + * API Reference

    + */ + class UrlConfiguration + { + public: + AWS_QCONNECT_API UrlConfiguration(); + AWS_QCONNECT_API UrlConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API UrlConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    List of URLs for crawling.

    + */ + inline const Aws::Vector& GetSeedUrls() const{ return m_seedUrls; } + inline bool SeedUrlsHasBeenSet() const { return m_seedUrlsHasBeenSet; } + inline void SetSeedUrls(const Aws::Vector& value) { m_seedUrlsHasBeenSet = true; m_seedUrls = value; } + inline void SetSeedUrls(Aws::Vector&& value) { m_seedUrlsHasBeenSet = true; m_seedUrls = std::move(value); } + inline UrlConfiguration& WithSeedUrls(const Aws::Vector& value) { SetSeedUrls(value); return *this;} + inline UrlConfiguration& WithSeedUrls(Aws::Vector&& value) { SetSeedUrls(std::move(value)); return *this;} + inline UrlConfiguration& AddSeedUrls(const SeedUrl& value) { m_seedUrlsHasBeenSet = true; m_seedUrls.push_back(value); return *this; } + inline UrlConfiguration& AddSeedUrls(SeedUrl&& value) { m_seedUrlsHasBeenSet = true; m_seedUrls.push_back(std::move(value)); return *this; } + ///@} + private: + + Aws::Vector m_seedUrls; + bool m_seedUrlsHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/VectorIngestionConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/VectorIngestionConfiguration.h new file mode 100644 index 00000000000..05ab9a4052f --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/VectorIngestionConfiguration.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    Contains details about how to ingest the documents in a data + * source.

    See Also:

    AWS + * API Reference

    + */ + class VectorIngestionConfiguration + { + public: + AWS_QCONNECT_API VectorIngestionConfiguration(); + AWS_QCONNECT_API VectorIngestionConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API VectorIngestionConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    Details about how to chunk the documents in the data source. A chunk refers + * to an excerpt from a data source that is returned when the knowledge base that + * it belongs to is queried.

    + */ + inline const ChunkingConfiguration& GetChunkingConfiguration() const{ return m_chunkingConfiguration; } + inline bool ChunkingConfigurationHasBeenSet() const { return m_chunkingConfigurationHasBeenSet; } + inline void SetChunkingConfiguration(const ChunkingConfiguration& value) { m_chunkingConfigurationHasBeenSet = true; m_chunkingConfiguration = value; } + inline void SetChunkingConfiguration(ChunkingConfiguration&& value) { m_chunkingConfigurationHasBeenSet = true; m_chunkingConfiguration = std::move(value); } + inline VectorIngestionConfiguration& WithChunkingConfiguration(const ChunkingConfiguration& value) { SetChunkingConfiguration(value); return *this;} + inline VectorIngestionConfiguration& WithChunkingConfiguration(ChunkingConfiguration&& value) { SetChunkingConfiguration(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    A custom parser for data source documents.

    + */ + inline const ParsingConfiguration& GetParsingConfiguration() const{ return m_parsingConfiguration; } + inline bool ParsingConfigurationHasBeenSet() const { return m_parsingConfigurationHasBeenSet; } + inline void SetParsingConfiguration(const ParsingConfiguration& value) { m_parsingConfigurationHasBeenSet = true; m_parsingConfiguration = value; } + inline void SetParsingConfiguration(ParsingConfiguration&& value) { m_parsingConfigurationHasBeenSet = true; m_parsingConfiguration = std::move(value); } + inline VectorIngestionConfiguration& WithParsingConfiguration(const ParsingConfiguration& value) { SetParsingConfiguration(value); return *this;} + inline VectorIngestionConfiguration& WithParsingConfiguration(ParsingConfiguration&& value) { SetParsingConfiguration(std::move(value)); return *this;} + ///@} + private: + + ChunkingConfiguration m_chunkingConfiguration; + bool m_chunkingConfigurationHasBeenSet = false; + + ParsingConfiguration m_parsingConfiguration; + bool m_parsingConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/VisibilityStatus.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/VisibilityStatus.h new file mode 100644 index 00000000000..9f523f2e165 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/VisibilityStatus.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class VisibilityStatus + { + NOT_SET, + SAVED, + PUBLISHED + }; + +namespace VisibilityStatusMapper +{ +AWS_QCONNECT_API VisibilityStatus GetVisibilityStatusForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForVisibilityStatus(VisibilityStatus value); +} // namespace VisibilityStatusMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebCrawlerConfiguration.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebCrawlerConfiguration.h new file mode 100644 index 00000000000..386e8e4d5c3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebCrawlerConfiguration.h @@ -0,0 +1,143 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include +#include +#include +#include +#include +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The configuration details for the web data source.

    See Also:

    + * AWS + * API Reference

    + */ + class WebCrawlerConfiguration + { + public: + AWS_QCONNECT_API WebCrawlerConfiguration(); + AWS_QCONNECT_API WebCrawlerConfiguration(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API WebCrawlerConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    The configuration of crawl limits for the web URLs.

    + */ + inline const WebCrawlerLimits& GetCrawlerLimits() const{ return m_crawlerLimits; } + inline bool CrawlerLimitsHasBeenSet() const { return m_crawlerLimitsHasBeenSet; } + inline void SetCrawlerLimits(const WebCrawlerLimits& value) { m_crawlerLimitsHasBeenSet = true; m_crawlerLimits = value; } + inline void SetCrawlerLimits(WebCrawlerLimits&& value) { m_crawlerLimitsHasBeenSet = true; m_crawlerLimits = std::move(value); } + inline WebCrawlerConfiguration& WithCrawlerLimits(const WebCrawlerLimits& value) { SetCrawlerLimits(value); return *this;} + inline WebCrawlerConfiguration& WithCrawlerLimits(WebCrawlerLimits&& value) { SetCrawlerLimits(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    A list of one or more exclusion regular expression patterns to exclude + * certain URLs. If you specify an inclusion and exclusion filter/pattern and both + * match a URL, the exclusion filter takes precedence and the web content of the + * URL isn’t crawled.

    + */ + inline const Aws::Vector& GetExclusionFilters() const{ return m_exclusionFilters; } + inline bool ExclusionFiltersHasBeenSet() const { return m_exclusionFiltersHasBeenSet; } + inline void SetExclusionFilters(const Aws::Vector& value) { m_exclusionFiltersHasBeenSet = true; m_exclusionFilters = value; } + inline void SetExclusionFilters(Aws::Vector&& value) { m_exclusionFiltersHasBeenSet = true; m_exclusionFilters = std::move(value); } + inline WebCrawlerConfiguration& WithExclusionFilters(const Aws::Vector& value) { SetExclusionFilters(value); return *this;} + inline WebCrawlerConfiguration& WithExclusionFilters(Aws::Vector&& value) { SetExclusionFilters(std::move(value)); return *this;} + inline WebCrawlerConfiguration& AddExclusionFilters(const Aws::String& value) { m_exclusionFiltersHasBeenSet = true; m_exclusionFilters.push_back(value); return *this; } + inline WebCrawlerConfiguration& AddExclusionFilters(Aws::String&& value) { m_exclusionFiltersHasBeenSet = true; m_exclusionFilters.push_back(std::move(value)); return *this; } + inline WebCrawlerConfiguration& AddExclusionFilters(const char* value) { m_exclusionFiltersHasBeenSet = true; m_exclusionFilters.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    A list of one or more inclusion regular expression patterns to include + * certain URLs. If you specify an inclusion and exclusion filter/pattern and both + * match a URL, the exclusion filter takes precedence and the web content of the + * URL isn’t crawled.

    + */ + inline const Aws::Vector& GetInclusionFilters() const{ return m_inclusionFilters; } + inline bool InclusionFiltersHasBeenSet() const { return m_inclusionFiltersHasBeenSet; } + inline void SetInclusionFilters(const Aws::Vector& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters = value; } + inline void SetInclusionFilters(Aws::Vector&& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters = std::move(value); } + inline WebCrawlerConfiguration& WithInclusionFilters(const Aws::Vector& value) { SetInclusionFilters(value); return *this;} + inline WebCrawlerConfiguration& WithInclusionFilters(Aws::Vector&& value) { SetInclusionFilters(std::move(value)); return *this;} + inline WebCrawlerConfiguration& AddInclusionFilters(const Aws::String& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters.push_back(value); return *this; } + inline WebCrawlerConfiguration& AddInclusionFilters(Aws::String&& value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters.push_back(std::move(value)); return *this; } + inline WebCrawlerConfiguration& AddInclusionFilters(const char* value) { m_inclusionFiltersHasBeenSet = true; m_inclusionFilters.push_back(value); return *this; } + ///@} + + ///@{ + /** + *

    The scope of what is crawled for your URLs. You can choose to crawl only web + * pages that belong to the same host or primary domain. For example, only web + * pages that contain the seed URL + * https://docs.aws.amazon.com/bedrock/latest/userguide/ and no other + * domains. You can choose to include sub domains in addition to the host or + * primary domain. For example, web pages that contain aws.amazon.com + * can also include sub domain docs.aws.amazon.com.

    + */ + inline const WebScopeType& GetScope() const{ return m_scope; } + inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; } + inline void SetScope(const WebScopeType& value) { m_scopeHasBeenSet = true; m_scope = value; } + inline void SetScope(WebScopeType&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); } + inline WebCrawlerConfiguration& WithScope(const WebScopeType& value) { SetScope(value); return *this;} + inline WebCrawlerConfiguration& WithScope(WebScopeType&& value) { SetScope(std::move(value)); return *this;} + ///@} + + ///@{ + /** + *

    The configuration of the URL/URLs for the web content that you want to crawl. + * You should be authorized to crawl the URLs.

    + */ + inline const UrlConfiguration& GetUrlConfiguration() const{ return m_urlConfiguration; } + inline bool UrlConfigurationHasBeenSet() const { return m_urlConfigurationHasBeenSet; } + inline void SetUrlConfiguration(const UrlConfiguration& value) { m_urlConfigurationHasBeenSet = true; m_urlConfiguration = value; } + inline void SetUrlConfiguration(UrlConfiguration&& value) { m_urlConfigurationHasBeenSet = true; m_urlConfiguration = std::move(value); } + inline WebCrawlerConfiguration& WithUrlConfiguration(const UrlConfiguration& value) { SetUrlConfiguration(value); return *this;} + inline WebCrawlerConfiguration& WithUrlConfiguration(UrlConfiguration&& value) { SetUrlConfiguration(std::move(value)); return *this;} + ///@} + private: + + WebCrawlerLimits m_crawlerLimits; + bool m_crawlerLimitsHasBeenSet = false; + + Aws::Vector m_exclusionFilters; + bool m_exclusionFiltersHasBeenSet = false; + + Aws::Vector m_inclusionFilters; + bool m_inclusionFiltersHasBeenSet = false; + + WebScopeType m_scope; + bool m_scopeHasBeenSet = false; + + UrlConfiguration m_urlConfiguration; + bool m_urlConfigurationHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebCrawlerLimits.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebCrawlerLimits.h new file mode 100644 index 00000000000..1b1259222cc --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebCrawlerLimits.h @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include + +namespace Aws +{ +namespace Utils +{ +namespace Json +{ + class JsonValue; + class JsonView; +} // namespace Json +} // namespace Utils +namespace QConnect +{ +namespace Model +{ + + /** + *

    The configuration of crawl limits for the web URLs.

    See Also:

    + * AWS + * API Reference

    + */ + class WebCrawlerLimits + { + public: + AWS_QCONNECT_API WebCrawlerLimits(); + AWS_QCONNECT_API WebCrawlerLimits(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API WebCrawlerLimits& operator=(Aws::Utils::Json::JsonView jsonValue); + AWS_QCONNECT_API Aws::Utils::Json::JsonValue Jsonize() const; + + + ///@{ + /** + *

    Rate of web URLs retrieved per minute.

    + */ + inline int GetRateLimit() const{ return m_rateLimit; } + inline bool RateLimitHasBeenSet() const { return m_rateLimitHasBeenSet; } + inline void SetRateLimit(int value) { m_rateLimitHasBeenSet = true; m_rateLimit = value; } + inline WebCrawlerLimits& WithRateLimit(int value) { SetRateLimit(value); return *this;} + ///@} + private: + + int m_rateLimit; + bool m_rateLimitHasBeenSet = false; + }; + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebScopeType.h b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebScopeType.h new file mode 100644 index 00000000000..9ea87687233 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/include/aws/qconnect/model/WebScopeType.h @@ -0,0 +1,31 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#include +#include + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + enum class WebScopeType + { + NOT_SET, + HOST_ONLY, + SUBDOMAINS + }; + +namespace WebScopeTypeMapper +{ +AWS_QCONNECT_API WebScopeType GetWebScopeTypeForName(const Aws::String& name); + +AWS_QCONNECT_API Aws::String GetNameForWebScopeType(WebScopeType value); +} // namespace WebScopeTypeMapper +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/QConnectClient.cpp b/generated/src/aws-cpp-sdk-qconnect/source/QConnectClient.cpp index 4347072c4c6..523779cddf1 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/QConnectClient.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/QConnectClient.cpp @@ -21,6 +21,10 @@ #include #include #include +#include +#include +#include +#include #include #include #include @@ -28,6 +32,10 @@ #include #include #include +#include +#include +#include +#include #include #include #include @@ -35,6 +43,8 @@ #include #include #include +#include +#include #include #include #include @@ -44,6 +54,10 @@ #include #include #include +#include +#include +#include +#include #include #include #include @@ -54,6 +68,7 @@ #include #include #include +#include #include #include #include @@ -62,10 +77,14 @@ #include #include #include +#include +#include +#include #include #include #include #include +#include #include @@ -209,6 +228,156 @@ void QConnectClient::OverrideEndpoint(const Aws::String& endpoint) m_endpointProvider->OverrideEndpoint(endpoint); } +CreateAIAgentOutcome QConnectClient::CreateAIAgent(const CreateAIAgentRequest& request) const +{ + AWS_OPERATION_GUARD(CreateAIAgent); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CreateAIAgent", "Required field: AssistantId, is not set"); + return CreateAIAgentOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateAIAgent", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateAIAgentOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiagents"); + return CreateAIAgentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +CreateAIAgentVersionOutcome QConnectClient::CreateAIAgentVersion(const CreateAIAgentVersionRequest& request) const +{ + AWS_OPERATION_GUARD(CreateAIAgentVersion); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateAIAgentVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiAgentIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CreateAIAgentVersion", "Required field: AiAgentId, is not set"); + return CreateAIAgentVersionOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiAgentId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CreateAIAgentVersion", "Required field: AssistantId, is not set"); + return CreateAIAgentVersionOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateAIAgentVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateAIAgentVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateAIAgentVersion", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateAIAgentVersionOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateAIAgentVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiagents/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiAgentId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/versions"); + return CreateAIAgentVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +CreateAIPromptOutcome QConnectClient::CreateAIPrompt(const CreateAIPromptRequest& request) const +{ + AWS_OPERATION_GUARD(CreateAIPrompt); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateAIPrompt, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CreateAIPrompt", "Required field: AssistantId, is not set"); + return CreateAIPromptOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateAIPrompt, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateAIPrompt, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateAIPrompt", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateAIPromptOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateAIPrompt, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiprompts"); + return CreateAIPromptOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +CreateAIPromptVersionOutcome QConnectClient::CreateAIPromptVersion(const CreateAIPromptVersionRequest& request) const +{ + AWS_OPERATION_GUARD(CreateAIPromptVersion); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, CreateAIPromptVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiPromptIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CreateAIPromptVersion", "Required field: AiPromptId, is not set"); + return CreateAIPromptVersionOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiPromptId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("CreateAIPromptVersion", "Required field: AssistantId, is not set"); + return CreateAIPromptVersionOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, CreateAIPromptVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, CreateAIPromptVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".CreateAIPromptVersion", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> CreateAIPromptVersionOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, CreateAIPromptVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiprompts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiPromptId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/versions"); + return CreateAIPromptVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + CreateAssistantOutcome QConnectClient::CreateAssistant(const CreateAssistantRequest& request) const { AWS_OPERATION_GUARD(CreateAssistant); @@ -440,6 +609,180 @@ CreateSessionOutcome QConnectClient::CreateSession(const CreateSessionRequest& r {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +DeleteAIAgentOutcome QConnectClient::DeleteAIAgent(const DeleteAIAgentRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteAIAgent); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiAgentIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAIAgent", "Required field: AiAgentId, is not set"); + return DeleteAIAgentOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiAgentId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAIAgent", "Required field: AssistantId, is not set"); + return DeleteAIAgentOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteAIAgent", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteAIAgentOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiagents/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiAgentId()); + return DeleteAIAgentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteAIAgentVersionOutcome QConnectClient::DeleteAIAgentVersion(const DeleteAIAgentVersionRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteAIAgentVersion); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAIAgentVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiAgentIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAIAgentVersion", "Required field: AiAgentId, is not set"); + return DeleteAIAgentVersionOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiAgentId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAIAgentVersion", "Required field: AssistantId, is not set"); + return DeleteAIAgentVersionOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + if (!request.VersionNumberHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAIAgentVersion", "Required field: VersionNumber, is not set"); + return DeleteAIAgentVersionOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [VersionNumber]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAIAgentVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteAIAgentVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteAIAgentVersion", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteAIAgentVersionOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteAIAgentVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiagents/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiAgentId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/versions/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetVersionNumber()); + return DeleteAIAgentVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteAIPromptOutcome QConnectClient::DeleteAIPrompt(const DeleteAIPromptRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteAIPrompt); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAIPrompt, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiPromptIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAIPrompt", "Required field: AiPromptId, is not set"); + return DeleteAIPromptOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiPromptId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAIPrompt", "Required field: AssistantId, is not set"); + return DeleteAIPromptOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAIPrompt, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteAIPrompt, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteAIPrompt", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteAIPromptOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteAIPrompt, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiprompts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiPromptId()); + return DeleteAIPromptOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +DeleteAIPromptVersionOutcome QConnectClient::DeleteAIPromptVersion(const DeleteAIPromptVersionRequest& request) const +{ + AWS_OPERATION_GUARD(DeleteAIPromptVersion); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, DeleteAIPromptVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiPromptIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAIPromptVersion", "Required field: AiPromptId, is not set"); + return DeleteAIPromptVersionOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiPromptId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAIPromptVersion", "Required field: AssistantId, is not set"); + return DeleteAIPromptVersionOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + if (!request.VersionNumberHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("DeleteAIPromptVersion", "Required field: VersionNumber, is not set"); + return DeleteAIPromptVersionOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [VersionNumber]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, DeleteAIPromptVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, DeleteAIPromptVersion, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".DeleteAIPromptVersion", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> DeleteAIPromptVersionOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, DeleteAIPromptVersion, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiprompts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiPromptId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/versions/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetVersionNumber()); + return DeleteAIPromptVersionOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + DeleteAssistantOutcome QConnectClient::DeleteAssistant(const DeleteAssistantRequest& request) const { AWS_OPERATION_GUARD(DeleteAssistant); @@ -713,6 +1056,86 @@ DeleteQuickResponseOutcome QConnectClient::DeleteQuickResponse(const DeleteQuick {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +GetAIAgentOutcome QConnectClient::GetAIAgent(const GetAIAgentRequest& request) const +{ + AWS_OPERATION_GUARD(GetAIAgent); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiAgentIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetAIAgent", "Required field: AiAgentId, is not set"); + return GetAIAgentOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiAgentId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetAIAgent", "Required field: AssistantId, is not set"); + return GetAIAgentOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetAIAgent", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetAIAgentOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiagents/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiAgentId()); + return GetAIAgentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +GetAIPromptOutcome QConnectClient::GetAIPrompt(const GetAIPromptRequest& request) const +{ + AWS_OPERATION_GUARD(GetAIPrompt); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, GetAIPrompt, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiPromptIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetAIPrompt", "Required field: AiPromptId, is not set"); + return GetAIPromptOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiPromptId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("GetAIPrompt", "Required field: AssistantId, is not set"); + return GetAIPromptOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, GetAIPrompt, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, GetAIPrompt, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".GetAIPrompt", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> GetAIPromptOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, GetAIPrompt, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiprompts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiPromptId()); + return GetAIPromptOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + GetAssistantOutcome QConnectClient::GetAssistant(const GetAssistantRequest& request) const { AWS_OPERATION_GUARD(GetAssistant); @@ -1067,6 +1490,156 @@ GetSessionOutcome QConnectClient::GetSession(const GetSessionRequest& request) c {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +ListAIAgentVersionsOutcome QConnectClient::ListAIAgentVersions(const ListAIAgentVersionsRequest& request) const +{ + AWS_OPERATION_GUARD(ListAIAgentVersions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListAIAgentVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiAgentIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListAIAgentVersions", "Required field: AiAgentId, is not set"); + return ListAIAgentVersionsOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiAgentId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListAIAgentVersions", "Required field: AssistantId, is not set"); + return ListAIAgentVersionsOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListAIAgentVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListAIAgentVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListAIAgentVersions", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListAIAgentVersionsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListAIAgentVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiagents/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiAgentId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/versions"); + return ListAIAgentVersionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListAIAgentsOutcome QConnectClient::ListAIAgents(const ListAIAgentsRequest& request) const +{ + AWS_OPERATION_GUARD(ListAIAgents); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListAIAgents, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListAIAgents", "Required field: AssistantId, is not set"); + return ListAIAgentsOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListAIAgents, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListAIAgents, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListAIAgents", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListAIAgentsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListAIAgents, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiagents"); + return ListAIAgentsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListAIPromptVersionsOutcome QConnectClient::ListAIPromptVersions(const ListAIPromptVersionsRequest& request) const +{ + AWS_OPERATION_GUARD(ListAIPromptVersions); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListAIPromptVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiPromptIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListAIPromptVersions", "Required field: AiPromptId, is not set"); + return ListAIPromptVersionsOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiPromptId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListAIPromptVersions", "Required field: AssistantId, is not set"); + return ListAIPromptVersionsOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListAIPromptVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListAIPromptVersions, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListAIPromptVersions", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListAIPromptVersionsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListAIPromptVersions, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiprompts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiPromptId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/versions"); + return ListAIPromptVersionsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +ListAIPromptsOutcome QConnectClient::ListAIPrompts(const ListAIPromptsRequest& request) const +{ + AWS_OPERATION_GUARD(ListAIPrompts); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, ListAIPrompts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("ListAIPrompts", "Required field: AssistantId, is not set"); + return ListAIPromptsOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, ListAIPrompts, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, ListAIPrompts, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".ListAIPrompts", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> ListAIPromptsOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, ListAIPrompts, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiprompts"); + return ListAIPromptsOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_GET, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + ListAssistantAssociationsOutcome QConnectClient::ListAssistantAssociations(const ListAssistantAssociationsRequest& request) const { AWS_OPERATION_GUARD(ListAssistantAssociations); @@ -1406,6 +1979,45 @@ PutFeedbackOutcome QConnectClient::PutFeedback(const PutFeedbackRequest& request {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +RemoveAssistantAIAgentOutcome QConnectClient::RemoveAssistantAIAgent(const RemoveAssistantAIAgentRequest& request) const +{ + AWS_OPERATION_GUARD(RemoveAssistantAIAgent); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, RemoveAssistantAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiAgentTypeHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("RemoveAssistantAIAgent", "Required field: AiAgentType, is not set"); + return RemoveAssistantAIAgentOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiAgentType]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("RemoveAssistantAIAgent", "Required field: AssistantId, is not set"); + return RemoveAssistantAIAgentOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, RemoveAssistantAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, RemoveAssistantAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".RemoveAssistantAIAgent", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> RemoveAssistantAIAgentOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, RemoveAssistantAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiagentConfiguration"); + return RemoveAssistantAIAgentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_DELETE, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + RemoveKnowledgeBaseTemplateUriOutcome QConnectClient::RemoveKnowledgeBaseTemplateUri(const RemoveKnowledgeBaseTemplateUriRequest& request) const { AWS_OPERATION_GUARD(RemoveKnowledgeBaseTemplateUri); @@ -1681,6 +2293,120 @@ UntagResourceOutcome QConnectClient::UntagResource(const UntagResourceRequest& r {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateAIAgentOutcome QConnectClient::UpdateAIAgent(const UpdateAIAgentRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateAIAgent); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiAgentIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateAIAgent", "Required field: AiAgentId, is not set"); + return UpdateAIAgentOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiAgentId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateAIAgent", "Required field: AssistantId, is not set"); + return UpdateAIAgentOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateAIAgent", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateAIAgentOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiagents/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiAgentId()); + return UpdateAIAgentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateAIPromptOutcome QConnectClient::UpdateAIPrompt(const UpdateAIPromptRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateAIPrompt); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateAIPrompt, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AiPromptIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateAIPrompt", "Required field: AiPromptId, is not set"); + return UpdateAIPromptOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AiPromptId]", false)); + } + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateAIPrompt", "Required field: AssistantId, is not set"); + return UpdateAIPromptOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateAIPrompt, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateAIPrompt, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateAIPrompt", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateAIPromptOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateAIPrompt, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiprompts/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAiPromptId()); + return UpdateAIPromptOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + +UpdateAssistantAIAgentOutcome QConnectClient::UpdateAssistantAIAgent(const UpdateAssistantAIAgentRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateAssistantAIAgent); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateAssistantAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateAssistantAIAgent", "Required field: AssistantId, is not set"); + return UpdateAssistantAIAgentOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateAssistantAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateAssistantAIAgent, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateAssistantAIAgent", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateAssistantAIAgentOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateAssistantAIAgent, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/aiagentConfiguration"); + return UpdateAssistantAIAgentOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_POST, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + UpdateContentOutcome QConnectClient::UpdateContent(const UpdateContentRequest& request) const { AWS_OPERATION_GUARD(UpdateContent); @@ -1835,3 +2561,44 @@ UpdateSessionOutcome QConnectClient::UpdateSession(const UpdateSessionRequest& r {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); } +UpdateSessionDataOutcome QConnectClient::UpdateSessionData(const UpdateSessionDataRequest& request) const +{ + AWS_OPERATION_GUARD(UpdateSessionData); + AWS_OPERATION_CHECK_PTR(m_endpointProvider, UpdateSessionData, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE); + if (!request.AssistantIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateSessionData", "Required field: AssistantId, is not set"); + return UpdateSessionDataOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [AssistantId]", false)); + } + if (!request.SessionIdHasBeenSet()) + { + AWS_LOGSTREAM_ERROR("UpdateSessionData", "Required field: SessionId, is not set"); + return UpdateSessionDataOutcome(Aws::Client::AWSError(QConnectErrors::MISSING_PARAMETER, "MISSING_PARAMETER", "Missing required field [SessionId]", false)); + } + AWS_OPERATION_CHECK_PTR(m_telemetryProvider, UpdateSessionData, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto tracer = m_telemetryProvider->getTracer(this->GetServiceClientName(), {}); + auto meter = m_telemetryProvider->getMeter(this->GetServiceClientName(), {}); + AWS_OPERATION_CHECK_PTR(meter, UpdateSessionData, CoreErrors, CoreErrors::NOT_INITIALIZED); + auto span = tracer->CreateSpan(Aws::String(this->GetServiceClientName()) + ".UpdateSessionData", + {{ TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName() }, { TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName() }, { TracingUtils::SMITHY_SYSTEM_DIMENSION, TracingUtils::SMITHY_METHOD_AWS_VALUE }}, + smithy::components::tracing::SpanKind::CLIENT); + return TracingUtils::MakeCallWithTiming( + [&]()-> UpdateSessionDataOutcome { + auto endpointResolutionOutcome = TracingUtils::MakeCallWithTiming( + [&]() -> ResolveEndpointOutcome { return m_endpointProvider->ResolveEndpoint(request.GetEndpointContextParams()); }, + TracingUtils::SMITHY_CLIENT_ENDPOINT_RESOLUTION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); + AWS_OPERATION_CHECK_SUCCESS(endpointResolutionOutcome, UpdateSessionData, CoreErrors, CoreErrors::ENDPOINT_RESOLUTION_FAILURE, endpointResolutionOutcome.GetError().GetMessage()); + endpointResolutionOutcome.GetResult().AddPathSegments("/assistants/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetAssistantId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/sessions/"); + endpointResolutionOutcome.GetResult().AddPathSegment(request.GetSessionId()); + endpointResolutionOutcome.GetResult().AddPathSegments("/data"); + return UpdateSessionDataOutcome(MakeRequest(request, endpointResolutionOutcome.GetResult(), Aws::Http::HttpMethod::HTTP_PATCH, Aws::Auth::SIGV4_SIGNER)); + }, + TracingUtils::SMITHY_CLIENT_DURATION_METRIC, + *meter, + {{TracingUtils::SMITHY_METHOD_DIMENSION, request.GetServiceRequestName()}, {TracingUtils::SMITHY_SERVICE_DIMENSION, this->GetServiceClientName()}}); +} + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentAssociationConfigurationType.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentAssociationConfigurationType.cpp new file mode 100644 index 00000000000..388053e9452 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentAssociationConfigurationType.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace AIAgentAssociationConfigurationTypeMapper + { + + static const int KNOWLEDGE_BASE_HASH = HashingUtils::HashString("KNOWLEDGE_BASE"); + + + AIAgentAssociationConfigurationType GetAIAgentAssociationConfigurationTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == KNOWLEDGE_BASE_HASH) + { + return AIAgentAssociationConfigurationType::KNOWLEDGE_BASE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AIAgentAssociationConfigurationType::NOT_SET; + } + + Aws::String GetNameForAIAgentAssociationConfigurationType(AIAgentAssociationConfigurationType enumValue) + { + switch(enumValue) + { + case AIAgentAssociationConfigurationType::NOT_SET: + return {}; + case AIAgentAssociationConfigurationType::KNOWLEDGE_BASE: + return "KNOWLEDGE_BASE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AIAgentAssociationConfigurationTypeMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentConfiguration.cpp new file mode 100644 index 00000000000..95b3a27848d --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentConfiguration.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AIAgentConfiguration::AIAgentConfiguration() : + m_answerRecommendationAIAgentConfigurationHasBeenSet(false), + m_manualSearchAIAgentConfigurationHasBeenSet(false) +{ +} + +AIAgentConfiguration::AIAgentConfiguration(JsonView jsonValue) + : AIAgentConfiguration() +{ + *this = jsonValue; +} + +AIAgentConfiguration& AIAgentConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("answerRecommendationAIAgentConfiguration")) + { + m_answerRecommendationAIAgentConfiguration = jsonValue.GetObject("answerRecommendationAIAgentConfiguration"); + + m_answerRecommendationAIAgentConfigurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("manualSearchAIAgentConfiguration")) + { + m_manualSearchAIAgentConfiguration = jsonValue.GetObject("manualSearchAIAgentConfiguration"); + + m_manualSearchAIAgentConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue AIAgentConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_answerRecommendationAIAgentConfigurationHasBeenSet) + { + payload.WithObject("answerRecommendationAIAgentConfiguration", m_answerRecommendationAIAgentConfiguration.Jsonize()); + + } + + if(m_manualSearchAIAgentConfigurationHasBeenSet) + { + payload.WithObject("manualSearchAIAgentConfiguration", m_manualSearchAIAgentConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentConfigurationData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentConfigurationData.cpp new file mode 100644 index 00000000000..afc104fec3d --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentConfigurationData.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AIAgentConfigurationData::AIAgentConfigurationData() : + m_aiAgentIdHasBeenSet(false) +{ +} + +AIAgentConfigurationData::AIAgentConfigurationData(JsonView jsonValue) + : AIAgentConfigurationData() +{ + *this = jsonValue; +} + +AIAgentConfigurationData& AIAgentConfigurationData::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("aiAgentId")) + { + m_aiAgentId = jsonValue.GetString("aiAgentId"); + + m_aiAgentIdHasBeenSet = true; + } + + return *this; +} + +JsonValue AIAgentConfigurationData::Jsonize() const +{ + JsonValue payload; + + if(m_aiAgentIdHasBeenSet) + { + payload.WithString("aiAgentId", m_aiAgentId); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentData.cpp new file mode 100644 index 00000000000..58591387661 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentData.cpp @@ -0,0 +1,234 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AIAgentData::AIAgentData() : + m_aiAgentArnHasBeenSet(false), + m_aiAgentIdHasBeenSet(false), + m_assistantArnHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_configurationHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_modifiedTimeHasBeenSet(false), + m_nameHasBeenSet(false), + m_origin(Origin::NOT_SET), + m_originHasBeenSet(false), + m_status(Status::NOT_SET), + m_statusHasBeenSet(false), + m_tagsHasBeenSet(false), + m_type(AIAgentType::NOT_SET), + m_typeHasBeenSet(false), + m_visibilityStatus(VisibilityStatus::NOT_SET), + m_visibilityStatusHasBeenSet(false) +{ +} + +AIAgentData::AIAgentData(JsonView jsonValue) + : AIAgentData() +{ + *this = jsonValue; +} + +AIAgentData& AIAgentData::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("aiAgentArn")) + { + m_aiAgentArn = jsonValue.GetString("aiAgentArn"); + + m_aiAgentArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("aiAgentId")) + { + m_aiAgentId = jsonValue.GetString("aiAgentId"); + + m_aiAgentIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("assistantArn")) + { + m_assistantArn = jsonValue.GetString("assistantArn"); + + m_assistantArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("assistantId")) + { + m_assistantId = jsonValue.GetString("assistantId"); + + m_assistantIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("configuration")) + { + m_configuration = jsonValue.GetObject("configuration"); + + m_configurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("modifiedTime")) + { + m_modifiedTime = jsonValue.GetDouble("modifiedTime"); + + m_modifiedTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("origin")) + { + m_origin = OriginMapper::GetOriginForName(jsonValue.GetString("origin")); + + m_originHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = StatusMapper::GetStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + m_tagsHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = AIAgentTypeMapper::GetAIAgentTypeForName(jsonValue.GetString("type")); + + m_typeHasBeenSet = true; + } + + if(jsonValue.ValueExists("visibilityStatus")) + { + m_visibilityStatus = VisibilityStatusMapper::GetVisibilityStatusForName(jsonValue.GetString("visibilityStatus")); + + m_visibilityStatusHasBeenSet = true; + } + + return *this; +} + +JsonValue AIAgentData::Jsonize() const +{ + JsonValue payload; + + if(m_aiAgentArnHasBeenSet) + { + payload.WithString("aiAgentArn", m_aiAgentArn); + + } + + if(m_aiAgentIdHasBeenSet) + { + payload.WithString("aiAgentId", m_aiAgentId); + + } + + if(m_assistantArnHasBeenSet) + { + payload.WithString("assistantArn", m_assistantArn); + + } + + if(m_assistantIdHasBeenSet) + { + payload.WithString("assistantId", m_assistantId); + + } + + if(m_configurationHasBeenSet) + { + payload.WithObject("configuration", m_configuration.Jsonize()); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_modifiedTimeHasBeenSet) + { + payload.WithDouble("modifiedTime", m_modifiedTime.SecondsWithMSPrecision()); + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_originHasBeenSet) + { + payload.WithString("origin", OriginMapper::GetNameForOrigin(m_origin)); + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", StatusMapper::GetNameForStatus(m_status)); + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", AIAgentTypeMapper::GetNameForAIAgentType(m_type)); + } + + if(m_visibilityStatusHasBeenSet) + { + payload.WithString("visibilityStatus", VisibilityStatusMapper::GetNameForVisibilityStatus(m_visibilityStatus)); + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentSummary.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentSummary.cpp new file mode 100644 index 00000000000..b186eadcb1d --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentSummary.cpp @@ -0,0 +1,234 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AIAgentSummary::AIAgentSummary() : + m_aiAgentArnHasBeenSet(false), + m_aiAgentIdHasBeenSet(false), + m_assistantArnHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_configurationHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_modifiedTimeHasBeenSet(false), + m_nameHasBeenSet(false), + m_origin(Origin::NOT_SET), + m_originHasBeenSet(false), + m_status(Status::NOT_SET), + m_statusHasBeenSet(false), + m_tagsHasBeenSet(false), + m_type(AIAgentType::NOT_SET), + m_typeHasBeenSet(false), + m_visibilityStatus(VisibilityStatus::NOT_SET), + m_visibilityStatusHasBeenSet(false) +{ +} + +AIAgentSummary::AIAgentSummary(JsonView jsonValue) + : AIAgentSummary() +{ + *this = jsonValue; +} + +AIAgentSummary& AIAgentSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("aiAgentArn")) + { + m_aiAgentArn = jsonValue.GetString("aiAgentArn"); + + m_aiAgentArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("aiAgentId")) + { + m_aiAgentId = jsonValue.GetString("aiAgentId"); + + m_aiAgentIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("assistantArn")) + { + m_assistantArn = jsonValue.GetString("assistantArn"); + + m_assistantArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("assistantId")) + { + m_assistantId = jsonValue.GetString("assistantId"); + + m_assistantIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("configuration")) + { + m_configuration = jsonValue.GetObject("configuration"); + + m_configurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("modifiedTime")) + { + m_modifiedTime = jsonValue.GetDouble("modifiedTime"); + + m_modifiedTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("origin")) + { + m_origin = OriginMapper::GetOriginForName(jsonValue.GetString("origin")); + + m_originHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = StatusMapper::GetStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + m_tagsHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = AIAgentTypeMapper::GetAIAgentTypeForName(jsonValue.GetString("type")); + + m_typeHasBeenSet = true; + } + + if(jsonValue.ValueExists("visibilityStatus")) + { + m_visibilityStatus = VisibilityStatusMapper::GetVisibilityStatusForName(jsonValue.GetString("visibilityStatus")); + + m_visibilityStatusHasBeenSet = true; + } + + return *this; +} + +JsonValue AIAgentSummary::Jsonize() const +{ + JsonValue payload; + + if(m_aiAgentArnHasBeenSet) + { + payload.WithString("aiAgentArn", m_aiAgentArn); + + } + + if(m_aiAgentIdHasBeenSet) + { + payload.WithString("aiAgentId", m_aiAgentId); + + } + + if(m_assistantArnHasBeenSet) + { + payload.WithString("assistantArn", m_assistantArn); + + } + + if(m_assistantIdHasBeenSet) + { + payload.WithString("assistantId", m_assistantId); + + } + + if(m_configurationHasBeenSet) + { + payload.WithObject("configuration", m_configuration.Jsonize()); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_modifiedTimeHasBeenSet) + { + payload.WithDouble("modifiedTime", m_modifiedTime.SecondsWithMSPrecision()); + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_originHasBeenSet) + { + payload.WithString("origin", OriginMapper::GetNameForOrigin(m_origin)); + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", StatusMapper::GetNameForStatus(m_status)); + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", AIAgentTypeMapper::GetNameForAIAgentType(m_type)); + } + + if(m_visibilityStatusHasBeenSet) + { + payload.WithString("visibilityStatus", VisibilityStatusMapper::GetNameForVisibilityStatus(m_visibilityStatus)); + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentType.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentType.cpp new file mode 100644 index 00000000000..919a6c666ed --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentType.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace AIAgentTypeMapper + { + + static const int MANUAL_SEARCH_HASH = HashingUtils::HashString("MANUAL_SEARCH"); + static const int ANSWER_RECOMMENDATION_HASH = HashingUtils::HashString("ANSWER_RECOMMENDATION"); + + + AIAgentType GetAIAgentTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == MANUAL_SEARCH_HASH) + { + return AIAgentType::MANUAL_SEARCH; + } + else if (hashCode == ANSWER_RECOMMENDATION_HASH) + { + return AIAgentType::ANSWER_RECOMMENDATION; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AIAgentType::NOT_SET; + } + + Aws::String GetNameForAIAgentType(AIAgentType enumValue) + { + switch(enumValue) + { + case AIAgentType::NOT_SET: + return {}; + case AIAgentType::MANUAL_SEARCH: + return "MANUAL_SEARCH"; + case AIAgentType::ANSWER_RECOMMENDATION: + return "ANSWER_RECOMMENDATION"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AIAgentTypeMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentVersionSummary.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentVersionSummary.cpp new file mode 100644 index 00000000000..d294151aaa6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIAgentVersionSummary.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AIAgentVersionSummary::AIAgentVersionSummary() : + m_aiAgentSummaryHasBeenSet(false), + m_versionNumber(0), + m_versionNumberHasBeenSet(false) +{ +} + +AIAgentVersionSummary::AIAgentVersionSummary(JsonView jsonValue) + : AIAgentVersionSummary() +{ + *this = jsonValue; +} + +AIAgentVersionSummary& AIAgentVersionSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("aiAgentSummary")) + { + m_aiAgentSummary = jsonValue.GetObject("aiAgentSummary"); + + m_aiAgentSummaryHasBeenSet = true; + } + + if(jsonValue.ValueExists("versionNumber")) + { + m_versionNumber = jsonValue.GetInt64("versionNumber"); + + m_versionNumberHasBeenSet = true; + } + + return *this; +} + +JsonValue AIAgentVersionSummary::Jsonize() const +{ + JsonValue payload; + + if(m_aiAgentSummaryHasBeenSet) + { + payload.WithObject("aiAgentSummary", m_aiAgentSummary.Jsonize()); + + } + + if(m_versionNumberHasBeenSet) + { + payload.WithInt64("versionNumber", m_versionNumber); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptAPIFormat.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptAPIFormat.cpp new file mode 100644 index 00000000000..0de077a1748 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptAPIFormat.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace AIPromptAPIFormatMapper + { + + static const int ANTHROPIC_CLAUDE_MESSAGES_HASH = HashingUtils::HashString("ANTHROPIC_CLAUDE_MESSAGES"); + static const int ANTHROPIC_CLAUDE_TEXT_COMPLETIONS_HASH = HashingUtils::HashString("ANTHROPIC_CLAUDE_TEXT_COMPLETIONS"); + + + AIPromptAPIFormat GetAIPromptAPIFormatForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ANTHROPIC_CLAUDE_MESSAGES_HASH) + { + return AIPromptAPIFormat::ANTHROPIC_CLAUDE_MESSAGES; + } + else if (hashCode == ANTHROPIC_CLAUDE_TEXT_COMPLETIONS_HASH) + { + return AIPromptAPIFormat::ANTHROPIC_CLAUDE_TEXT_COMPLETIONS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AIPromptAPIFormat::NOT_SET; + } + + Aws::String GetNameForAIPromptAPIFormat(AIPromptAPIFormat enumValue) + { + switch(enumValue) + { + case AIPromptAPIFormat::NOT_SET: + return {}; + case AIPromptAPIFormat::ANTHROPIC_CLAUDE_MESSAGES: + return "ANTHROPIC_CLAUDE_MESSAGES"; + case AIPromptAPIFormat::ANTHROPIC_CLAUDE_TEXT_COMPLETIONS: + return "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AIPromptAPIFormatMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptData.cpp new file mode 100644 index 00000000000..c4c7c8ea767 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptData.cpp @@ -0,0 +1,276 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AIPromptData::AIPromptData() : + m_aiPromptArnHasBeenSet(false), + m_aiPromptIdHasBeenSet(false), + m_apiFormat(AIPromptAPIFormat::NOT_SET), + m_apiFormatHasBeenSet(false), + m_assistantArnHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_modelIdHasBeenSet(false), + m_modifiedTimeHasBeenSet(false), + m_nameHasBeenSet(false), + m_origin(Origin::NOT_SET), + m_originHasBeenSet(false), + m_status(Status::NOT_SET), + m_statusHasBeenSet(false), + m_tagsHasBeenSet(false), + m_templateConfigurationHasBeenSet(false), + m_templateType(AIPromptTemplateType::NOT_SET), + m_templateTypeHasBeenSet(false), + m_type(AIPromptType::NOT_SET), + m_typeHasBeenSet(false), + m_visibilityStatus(VisibilityStatus::NOT_SET), + m_visibilityStatusHasBeenSet(false) +{ +} + +AIPromptData::AIPromptData(JsonView jsonValue) + : AIPromptData() +{ + *this = jsonValue; +} + +AIPromptData& AIPromptData::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("aiPromptArn")) + { + m_aiPromptArn = jsonValue.GetString("aiPromptArn"); + + m_aiPromptArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("aiPromptId")) + { + m_aiPromptId = jsonValue.GetString("aiPromptId"); + + m_aiPromptIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("apiFormat")) + { + m_apiFormat = AIPromptAPIFormatMapper::GetAIPromptAPIFormatForName(jsonValue.GetString("apiFormat")); + + m_apiFormatHasBeenSet = true; + } + + if(jsonValue.ValueExists("assistantArn")) + { + m_assistantArn = jsonValue.GetString("assistantArn"); + + m_assistantArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("assistantId")) + { + m_assistantId = jsonValue.GetString("assistantId"); + + m_assistantIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("modelId")) + { + m_modelId = jsonValue.GetString("modelId"); + + m_modelIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("modifiedTime")) + { + m_modifiedTime = jsonValue.GetDouble("modifiedTime"); + + m_modifiedTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("origin")) + { + m_origin = OriginMapper::GetOriginForName(jsonValue.GetString("origin")); + + m_originHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = StatusMapper::GetStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + m_tagsHasBeenSet = true; + } + + if(jsonValue.ValueExists("templateConfiguration")) + { + m_templateConfiguration = jsonValue.GetObject("templateConfiguration"); + + m_templateConfigurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("templateType")) + { + m_templateType = AIPromptTemplateTypeMapper::GetAIPromptTemplateTypeForName(jsonValue.GetString("templateType")); + + m_templateTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = AIPromptTypeMapper::GetAIPromptTypeForName(jsonValue.GetString("type")); + + m_typeHasBeenSet = true; + } + + if(jsonValue.ValueExists("visibilityStatus")) + { + m_visibilityStatus = VisibilityStatusMapper::GetVisibilityStatusForName(jsonValue.GetString("visibilityStatus")); + + m_visibilityStatusHasBeenSet = true; + } + + return *this; +} + +JsonValue AIPromptData::Jsonize() const +{ + JsonValue payload; + + if(m_aiPromptArnHasBeenSet) + { + payload.WithString("aiPromptArn", m_aiPromptArn); + + } + + if(m_aiPromptIdHasBeenSet) + { + payload.WithString("aiPromptId", m_aiPromptId); + + } + + if(m_apiFormatHasBeenSet) + { + payload.WithString("apiFormat", AIPromptAPIFormatMapper::GetNameForAIPromptAPIFormat(m_apiFormat)); + } + + if(m_assistantArnHasBeenSet) + { + payload.WithString("assistantArn", m_assistantArn); + + } + + if(m_assistantIdHasBeenSet) + { + payload.WithString("assistantId", m_assistantId); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_modelIdHasBeenSet) + { + payload.WithString("modelId", m_modelId); + + } + + if(m_modifiedTimeHasBeenSet) + { + payload.WithDouble("modifiedTime", m_modifiedTime.SecondsWithMSPrecision()); + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_originHasBeenSet) + { + payload.WithString("origin", OriginMapper::GetNameForOrigin(m_origin)); + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", StatusMapper::GetNameForStatus(m_status)); + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + if(m_templateConfigurationHasBeenSet) + { + payload.WithObject("templateConfiguration", m_templateConfiguration.Jsonize()); + + } + + if(m_templateTypeHasBeenSet) + { + payload.WithString("templateType", AIPromptTemplateTypeMapper::GetNameForAIPromptTemplateType(m_templateType)); + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", AIPromptTypeMapper::GetNameForAIPromptType(m_type)); + } + + if(m_visibilityStatusHasBeenSet) + { + payload.WithString("visibilityStatus", VisibilityStatusMapper::GetNameForVisibilityStatus(m_visibilityStatus)); + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptSummary.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptSummary.cpp new file mode 100644 index 00000000000..38652b87bf6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptSummary.cpp @@ -0,0 +1,262 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AIPromptSummary::AIPromptSummary() : + m_aiPromptArnHasBeenSet(false), + m_aiPromptIdHasBeenSet(false), + m_apiFormat(AIPromptAPIFormat::NOT_SET), + m_apiFormatHasBeenSet(false), + m_assistantArnHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_modelIdHasBeenSet(false), + m_modifiedTimeHasBeenSet(false), + m_nameHasBeenSet(false), + m_origin(Origin::NOT_SET), + m_originHasBeenSet(false), + m_status(Status::NOT_SET), + m_statusHasBeenSet(false), + m_tagsHasBeenSet(false), + m_templateType(AIPromptTemplateType::NOT_SET), + m_templateTypeHasBeenSet(false), + m_type(AIPromptType::NOT_SET), + m_typeHasBeenSet(false), + m_visibilityStatus(VisibilityStatus::NOT_SET), + m_visibilityStatusHasBeenSet(false) +{ +} + +AIPromptSummary::AIPromptSummary(JsonView jsonValue) + : AIPromptSummary() +{ + *this = jsonValue; +} + +AIPromptSummary& AIPromptSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("aiPromptArn")) + { + m_aiPromptArn = jsonValue.GetString("aiPromptArn"); + + m_aiPromptArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("aiPromptId")) + { + m_aiPromptId = jsonValue.GetString("aiPromptId"); + + m_aiPromptIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("apiFormat")) + { + m_apiFormat = AIPromptAPIFormatMapper::GetAIPromptAPIFormatForName(jsonValue.GetString("apiFormat")); + + m_apiFormatHasBeenSet = true; + } + + if(jsonValue.ValueExists("assistantArn")) + { + m_assistantArn = jsonValue.GetString("assistantArn"); + + m_assistantArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("assistantId")) + { + m_assistantId = jsonValue.GetString("assistantId"); + + m_assistantIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("description")) + { + m_description = jsonValue.GetString("description"); + + m_descriptionHasBeenSet = true; + } + + if(jsonValue.ValueExists("modelId")) + { + m_modelId = jsonValue.GetString("modelId"); + + m_modelIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("modifiedTime")) + { + m_modifiedTime = jsonValue.GetDouble("modifiedTime"); + + m_modifiedTimeHasBeenSet = true; + } + + if(jsonValue.ValueExists("name")) + { + m_name = jsonValue.GetString("name"); + + m_nameHasBeenSet = true; + } + + if(jsonValue.ValueExists("origin")) + { + m_origin = OriginMapper::GetOriginForName(jsonValue.GetString("origin")); + + m_originHasBeenSet = true; + } + + if(jsonValue.ValueExists("status")) + { + m_status = StatusMapper::GetStatusForName(jsonValue.GetString("status")); + + m_statusHasBeenSet = true; + } + + if(jsonValue.ValueExists("tags")) + { + Aws::Map tagsJsonMap = jsonValue.GetObject("tags").GetAllObjects(); + for(auto& tagsItem : tagsJsonMap) + { + m_tags[tagsItem.first] = tagsItem.second.AsString(); + } + m_tagsHasBeenSet = true; + } + + if(jsonValue.ValueExists("templateType")) + { + m_templateType = AIPromptTemplateTypeMapper::GetAIPromptTemplateTypeForName(jsonValue.GetString("templateType")); + + m_templateTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("type")) + { + m_type = AIPromptTypeMapper::GetAIPromptTypeForName(jsonValue.GetString("type")); + + m_typeHasBeenSet = true; + } + + if(jsonValue.ValueExists("visibilityStatus")) + { + m_visibilityStatus = VisibilityStatusMapper::GetVisibilityStatusForName(jsonValue.GetString("visibilityStatus")); + + m_visibilityStatusHasBeenSet = true; + } + + return *this; +} + +JsonValue AIPromptSummary::Jsonize() const +{ + JsonValue payload; + + if(m_aiPromptArnHasBeenSet) + { + payload.WithString("aiPromptArn", m_aiPromptArn); + + } + + if(m_aiPromptIdHasBeenSet) + { + payload.WithString("aiPromptId", m_aiPromptId); + + } + + if(m_apiFormatHasBeenSet) + { + payload.WithString("apiFormat", AIPromptAPIFormatMapper::GetNameForAIPromptAPIFormat(m_apiFormat)); + } + + if(m_assistantArnHasBeenSet) + { + payload.WithString("assistantArn", m_assistantArn); + + } + + if(m_assistantIdHasBeenSet) + { + payload.WithString("assistantId", m_assistantId); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_modelIdHasBeenSet) + { + payload.WithString("modelId", m_modelId); + + } + + if(m_modifiedTimeHasBeenSet) + { + payload.WithDouble("modifiedTime", m_modifiedTime.SecondsWithMSPrecision()); + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_originHasBeenSet) + { + payload.WithString("origin", OriginMapper::GetNameForOrigin(m_origin)); + } + + if(m_statusHasBeenSet) + { + payload.WithString("status", StatusMapper::GetNameForStatus(m_status)); + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + if(m_templateTypeHasBeenSet) + { + payload.WithString("templateType", AIPromptTemplateTypeMapper::GetNameForAIPromptTemplateType(m_templateType)); + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", AIPromptTypeMapper::GetNameForAIPromptType(m_type)); + } + + if(m_visibilityStatusHasBeenSet) + { + payload.WithString("visibilityStatus", VisibilityStatusMapper::GetNameForVisibilityStatus(m_visibilityStatus)); + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptTemplateConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptTemplateConfiguration.cpp new file mode 100644 index 00000000000..33fe438b0b3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptTemplateConfiguration.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AIPromptTemplateConfiguration::AIPromptTemplateConfiguration() : + m_textFullAIPromptEditTemplateConfigurationHasBeenSet(false) +{ +} + +AIPromptTemplateConfiguration::AIPromptTemplateConfiguration(JsonView jsonValue) + : AIPromptTemplateConfiguration() +{ + *this = jsonValue; +} + +AIPromptTemplateConfiguration& AIPromptTemplateConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("textFullAIPromptEditTemplateConfiguration")) + { + m_textFullAIPromptEditTemplateConfiguration = jsonValue.GetObject("textFullAIPromptEditTemplateConfiguration"); + + m_textFullAIPromptEditTemplateConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue AIPromptTemplateConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_textFullAIPromptEditTemplateConfigurationHasBeenSet) + { + payload.WithObject("textFullAIPromptEditTemplateConfiguration", m_textFullAIPromptEditTemplateConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptTemplateType.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptTemplateType.cpp new file mode 100644 index 00000000000..79a3eeaea10 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptTemplateType.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace AIPromptTemplateTypeMapper + { + + static const int TEXT_HASH = HashingUtils::HashString("TEXT"); + + + AIPromptTemplateType GetAIPromptTemplateTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == TEXT_HASH) + { + return AIPromptTemplateType::TEXT; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AIPromptTemplateType::NOT_SET; + } + + Aws::String GetNameForAIPromptTemplateType(AIPromptTemplateType enumValue) + { + switch(enumValue) + { + case AIPromptTemplateType::NOT_SET: + return {}; + case AIPromptTemplateType::TEXT: + return "TEXT"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AIPromptTemplateTypeMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptType.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptType.cpp new file mode 100644 index 00000000000..0be60067c28 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptType.cpp @@ -0,0 +1,79 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace AIPromptTypeMapper + { + + static const int ANSWER_GENERATION_HASH = HashingUtils::HashString("ANSWER_GENERATION"); + static const int INTENT_LABELING_GENERATION_HASH = HashingUtils::HashString("INTENT_LABELING_GENERATION"); + static const int QUERY_REFORMULATION_HASH = HashingUtils::HashString("QUERY_REFORMULATION"); + + + AIPromptType GetAIPromptTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == ANSWER_GENERATION_HASH) + { + return AIPromptType::ANSWER_GENERATION; + } + else if (hashCode == INTENT_LABELING_GENERATION_HASH) + { + return AIPromptType::INTENT_LABELING_GENERATION; + } + else if (hashCode == QUERY_REFORMULATION_HASH) + { + return AIPromptType::QUERY_REFORMULATION; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return AIPromptType::NOT_SET; + } + + Aws::String GetNameForAIPromptType(AIPromptType enumValue) + { + switch(enumValue) + { + case AIPromptType::NOT_SET: + return {}; + case AIPromptType::ANSWER_GENERATION: + return "ANSWER_GENERATION"; + case AIPromptType::INTENT_LABELING_GENERATION: + return "INTENT_LABELING_GENERATION"; + case AIPromptType::QUERY_REFORMULATION: + return "QUERY_REFORMULATION"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace AIPromptTypeMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptVersionSummary.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptVersionSummary.cpp new file mode 100644 index 00000000000..0176dd1e601 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AIPromptVersionSummary.cpp @@ -0,0 +1,74 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AIPromptVersionSummary::AIPromptVersionSummary() : + m_aiPromptSummaryHasBeenSet(false), + m_versionNumber(0), + m_versionNumberHasBeenSet(false) +{ +} + +AIPromptVersionSummary::AIPromptVersionSummary(JsonView jsonValue) + : AIPromptVersionSummary() +{ + *this = jsonValue; +} + +AIPromptVersionSummary& AIPromptVersionSummary::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("aiPromptSummary")) + { + m_aiPromptSummary = jsonValue.GetObject("aiPromptSummary"); + + m_aiPromptSummaryHasBeenSet = true; + } + + if(jsonValue.ValueExists("versionNumber")) + { + m_versionNumber = jsonValue.GetInt64("versionNumber"); + + m_versionNumberHasBeenSet = true; + } + + return *this; +} + +JsonValue AIPromptVersionSummary::Jsonize() const +{ + JsonValue payload; + + if(m_aiPromptSummaryHasBeenSet) + { + payload.WithObject("aiPromptSummary", m_aiPromptSummary.Jsonize()); + + } + + if(m_versionNumberHasBeenSet) + { + payload.WithInt64("versionNumber", m_versionNumber); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AnswerRecommendationAIAgentConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AnswerRecommendationAIAgentConfiguration.cpp new file mode 100644 index 00000000000..c6516136c4a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AnswerRecommendationAIAgentConfiguration.cpp @@ -0,0 +1,109 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AnswerRecommendationAIAgentConfiguration::AnswerRecommendationAIAgentConfiguration() : + m_answerGenerationAIPromptIdHasBeenSet(false), + m_associationConfigurationsHasBeenSet(false), + m_intentLabelingGenerationAIPromptIdHasBeenSet(false), + m_queryReformulationAIPromptIdHasBeenSet(false) +{ +} + +AnswerRecommendationAIAgentConfiguration::AnswerRecommendationAIAgentConfiguration(JsonView jsonValue) + : AnswerRecommendationAIAgentConfiguration() +{ + *this = jsonValue; +} + +AnswerRecommendationAIAgentConfiguration& AnswerRecommendationAIAgentConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("answerGenerationAIPromptId")) + { + m_answerGenerationAIPromptId = jsonValue.GetString("answerGenerationAIPromptId"); + + m_answerGenerationAIPromptIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("associationConfigurations")) + { + Aws::Utils::Array associationConfigurationsJsonList = jsonValue.GetArray("associationConfigurations"); + for(unsigned associationConfigurationsIndex = 0; associationConfigurationsIndex < associationConfigurationsJsonList.GetLength(); ++associationConfigurationsIndex) + { + m_associationConfigurations.push_back(associationConfigurationsJsonList[associationConfigurationsIndex].AsObject()); + } + m_associationConfigurationsHasBeenSet = true; + } + + if(jsonValue.ValueExists("intentLabelingGenerationAIPromptId")) + { + m_intentLabelingGenerationAIPromptId = jsonValue.GetString("intentLabelingGenerationAIPromptId"); + + m_intentLabelingGenerationAIPromptIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("queryReformulationAIPromptId")) + { + m_queryReformulationAIPromptId = jsonValue.GetString("queryReformulationAIPromptId"); + + m_queryReformulationAIPromptIdHasBeenSet = true; + } + + return *this; +} + +JsonValue AnswerRecommendationAIAgentConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_answerGenerationAIPromptIdHasBeenSet) + { + payload.WithString("answerGenerationAIPromptId", m_answerGenerationAIPromptId); + + } + + if(m_associationConfigurationsHasBeenSet) + { + Aws::Utils::Array associationConfigurationsJsonList(m_associationConfigurations.size()); + for(unsigned associationConfigurationsIndex = 0; associationConfigurationsIndex < associationConfigurationsJsonList.GetLength(); ++associationConfigurationsIndex) + { + associationConfigurationsJsonList[associationConfigurationsIndex].AsObject(m_associationConfigurations[associationConfigurationsIndex].Jsonize()); + } + payload.WithArray("associationConfigurations", std::move(associationConfigurationsJsonList)); + + } + + if(m_intentLabelingGenerationAIPromptIdHasBeenSet) + { + payload.WithString("intentLabelingGenerationAIPromptId", m_intentLabelingGenerationAIPromptId); + + } + + if(m_queryReformulationAIPromptIdHasBeenSet) + { + payload.WithString("queryReformulationAIPromptId", m_queryReformulationAIPromptId); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AssistantData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AssistantData.cpp index 87e045ce517..051f7a9102a 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/AssistantData.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AssistantData.cpp @@ -19,6 +19,7 @@ namespace Model { AssistantData::AssistantData() : + m_aiAgentConfigurationHasBeenSet(false), m_assistantArnHasBeenSet(false), m_assistantIdHasBeenSet(false), m_capabilityConfigurationHasBeenSet(false), @@ -42,6 +43,16 @@ AssistantData::AssistantData(JsonView jsonValue) AssistantData& AssistantData::operator =(JsonView jsonValue) { + if(jsonValue.ValueExists("aiAgentConfiguration")) + { + Aws::Map aiAgentConfigurationJsonMap = jsonValue.GetObject("aiAgentConfiguration").GetAllObjects(); + for(auto& aiAgentConfigurationItem : aiAgentConfigurationJsonMap) + { + m_aiAgentConfiguration[AIAgentTypeMapper::GetAIAgentTypeForName(aiAgentConfigurationItem.first)] = aiAgentConfigurationItem.second.AsObject(); + } + m_aiAgentConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("assistantArn")) { m_assistantArn = jsonValue.GetString("assistantArn"); @@ -122,6 +133,17 @@ JsonValue AssistantData::Jsonize() const { JsonValue payload; + if(m_aiAgentConfigurationHasBeenSet) + { + JsonValue aiAgentConfigurationJsonMap; + for(auto& aiAgentConfigurationItem : m_aiAgentConfiguration) + { + aiAgentConfigurationJsonMap.WithObject(AIAgentTypeMapper::GetNameForAIAgentType(aiAgentConfigurationItem.first), aiAgentConfigurationItem.second.Jsonize()); + } + payload.WithObject("aiAgentConfiguration", std::move(aiAgentConfigurationJsonMap)); + + } + if(m_assistantArnHasBeenSet) { payload.WithString("assistantArn", m_assistantArn); diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AssistantSummary.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AssistantSummary.cpp index a168a6bf9c9..b5151e72068 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/AssistantSummary.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AssistantSummary.cpp @@ -19,6 +19,7 @@ namespace Model { AssistantSummary::AssistantSummary() : + m_aiAgentConfigurationHasBeenSet(false), m_assistantArnHasBeenSet(false), m_assistantIdHasBeenSet(false), m_capabilityConfigurationHasBeenSet(false), @@ -42,6 +43,16 @@ AssistantSummary::AssistantSummary(JsonView jsonValue) AssistantSummary& AssistantSummary::operator =(JsonView jsonValue) { + if(jsonValue.ValueExists("aiAgentConfiguration")) + { + Aws::Map aiAgentConfigurationJsonMap = jsonValue.GetObject("aiAgentConfiguration").GetAllObjects(); + for(auto& aiAgentConfigurationItem : aiAgentConfigurationJsonMap) + { + m_aiAgentConfiguration[AIAgentTypeMapper::GetAIAgentTypeForName(aiAgentConfigurationItem.first)] = aiAgentConfigurationItem.second.AsObject(); + } + m_aiAgentConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("assistantArn")) { m_assistantArn = jsonValue.GetString("assistantArn"); @@ -122,6 +133,17 @@ JsonValue AssistantSummary::Jsonize() const { JsonValue payload; + if(m_aiAgentConfigurationHasBeenSet) + { + JsonValue aiAgentConfigurationJsonMap; + for(auto& aiAgentConfigurationItem : m_aiAgentConfiguration) + { + aiAgentConfigurationJsonMap.WithObject(AIAgentTypeMapper::GetNameForAIAgentType(aiAgentConfigurationItem.first), aiAgentConfigurationItem.second.Jsonize()); + } + payload.WithObject("aiAgentConfiguration", std::move(aiAgentConfigurationJsonMap)); + + } + if(m_assistantArnHasBeenSet) { payload.WithString("assistantArn", m_assistantArn); diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AssociationConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AssociationConfiguration.cpp new file mode 100644 index 00000000000..7ca07620bc8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AssociationConfiguration.cpp @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AssociationConfiguration::AssociationConfiguration() : + m_associationConfigurationDataHasBeenSet(false), + m_associationIdHasBeenSet(false), + m_associationType(AIAgentAssociationConfigurationType::NOT_SET), + m_associationTypeHasBeenSet(false) +{ +} + +AssociationConfiguration::AssociationConfiguration(JsonView jsonValue) + : AssociationConfiguration() +{ + *this = jsonValue; +} + +AssociationConfiguration& AssociationConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("associationConfigurationData")) + { + m_associationConfigurationData = jsonValue.GetObject("associationConfigurationData"); + + m_associationConfigurationDataHasBeenSet = true; + } + + if(jsonValue.ValueExists("associationId")) + { + m_associationId = jsonValue.GetString("associationId"); + + m_associationIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("associationType")) + { + m_associationType = AIAgentAssociationConfigurationTypeMapper::GetAIAgentAssociationConfigurationTypeForName(jsonValue.GetString("associationType")); + + m_associationTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue AssociationConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_associationConfigurationDataHasBeenSet) + { + payload.WithObject("associationConfigurationData", m_associationConfigurationData.Jsonize()); + + } + + if(m_associationIdHasBeenSet) + { + payload.WithString("associationId", m_associationId); + + } + + if(m_associationTypeHasBeenSet) + { + payload.WithString("associationType", AIAgentAssociationConfigurationTypeMapper::GetNameForAIAgentAssociationConfigurationType(m_associationType)); + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/AssociationConfigurationData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/AssociationConfigurationData.cpp new file mode 100644 index 00000000000..b31b74cc141 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/AssociationConfigurationData.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +AssociationConfigurationData::AssociationConfigurationData() : + m_knowledgeBaseAssociationConfigurationDataHasBeenSet(false) +{ +} + +AssociationConfigurationData::AssociationConfigurationData(JsonView jsonValue) + : AssociationConfigurationData() +{ + *this = jsonValue; +} + +AssociationConfigurationData& AssociationConfigurationData::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("knowledgeBaseAssociationConfigurationData")) + { + m_knowledgeBaseAssociationConfigurationData = jsonValue.GetObject("knowledgeBaseAssociationConfigurationData"); + + m_knowledgeBaseAssociationConfigurationDataHasBeenSet = true; + } + + return *this; +} + +JsonValue AssociationConfigurationData::Jsonize() const +{ + JsonValue payload; + + if(m_knowledgeBaseAssociationConfigurationDataHasBeenSet) + { + payload.WithObject("knowledgeBaseAssociationConfigurationData", m_knowledgeBaseAssociationConfigurationData.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/BedrockFoundationModelConfigurationForParsing.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/BedrockFoundationModelConfigurationForParsing.cpp new file mode 100644 index 00000000000..b34bde4b023 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/BedrockFoundationModelConfigurationForParsing.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +BedrockFoundationModelConfigurationForParsing::BedrockFoundationModelConfigurationForParsing() : + m_modelArnHasBeenSet(false), + m_parsingPromptHasBeenSet(false) +{ +} + +BedrockFoundationModelConfigurationForParsing::BedrockFoundationModelConfigurationForParsing(JsonView jsonValue) + : BedrockFoundationModelConfigurationForParsing() +{ + *this = jsonValue; +} + +BedrockFoundationModelConfigurationForParsing& BedrockFoundationModelConfigurationForParsing::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("modelArn")) + { + m_modelArn = jsonValue.GetString("modelArn"); + + m_modelArnHasBeenSet = true; + } + + if(jsonValue.ValueExists("parsingPrompt")) + { + m_parsingPrompt = jsonValue.GetObject("parsingPrompt"); + + m_parsingPromptHasBeenSet = true; + } + + return *this; +} + +JsonValue BedrockFoundationModelConfigurationForParsing::Jsonize() const +{ + JsonValue payload; + + if(m_modelArnHasBeenSet) + { + payload.WithString("modelArn", m_modelArn); + + } + + if(m_parsingPromptHasBeenSet) + { + payload.WithObject("parsingPrompt", m_parsingPrompt.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ChunkingConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ChunkingConfiguration.cpp new file mode 100644 index 00000000000..4accc4cad84 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ChunkingConfiguration.cpp @@ -0,0 +1,101 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +ChunkingConfiguration::ChunkingConfiguration() : + m_chunkingStrategy(ChunkingStrategy::NOT_SET), + m_chunkingStrategyHasBeenSet(false), + m_fixedSizeChunkingConfigurationHasBeenSet(false), + m_hierarchicalChunkingConfigurationHasBeenSet(false), + m_semanticChunkingConfigurationHasBeenSet(false) +{ +} + +ChunkingConfiguration::ChunkingConfiguration(JsonView jsonValue) + : ChunkingConfiguration() +{ + *this = jsonValue; +} + +ChunkingConfiguration& ChunkingConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("chunkingStrategy")) + { + m_chunkingStrategy = ChunkingStrategyMapper::GetChunkingStrategyForName(jsonValue.GetString("chunkingStrategy")); + + m_chunkingStrategyHasBeenSet = true; + } + + if(jsonValue.ValueExists("fixedSizeChunkingConfiguration")) + { + m_fixedSizeChunkingConfiguration = jsonValue.GetObject("fixedSizeChunkingConfiguration"); + + m_fixedSizeChunkingConfigurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("hierarchicalChunkingConfiguration")) + { + m_hierarchicalChunkingConfiguration = jsonValue.GetObject("hierarchicalChunkingConfiguration"); + + m_hierarchicalChunkingConfigurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("semanticChunkingConfiguration")) + { + m_semanticChunkingConfiguration = jsonValue.GetObject("semanticChunkingConfiguration"); + + m_semanticChunkingConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue ChunkingConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_chunkingStrategyHasBeenSet) + { + payload.WithString("chunkingStrategy", ChunkingStrategyMapper::GetNameForChunkingStrategy(m_chunkingStrategy)); + } + + if(m_fixedSizeChunkingConfigurationHasBeenSet) + { + payload.WithObject("fixedSizeChunkingConfiguration", m_fixedSizeChunkingConfiguration.Jsonize()); + + } + + if(m_hierarchicalChunkingConfigurationHasBeenSet) + { + payload.WithObject("hierarchicalChunkingConfiguration", m_hierarchicalChunkingConfiguration.Jsonize()); + + } + + if(m_semanticChunkingConfigurationHasBeenSet) + { + payload.WithObject("semanticChunkingConfiguration", m_semanticChunkingConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ChunkingStrategy.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ChunkingStrategy.cpp new file mode 100644 index 00000000000..1fc2e95c8d2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ChunkingStrategy.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace ChunkingStrategyMapper + { + + static const int FIXED_SIZE_HASH = HashingUtils::HashString("FIXED_SIZE"); + static const int NONE_HASH = HashingUtils::HashString("NONE"); + static const int HIERARCHICAL_HASH = HashingUtils::HashString("HIERARCHICAL"); + static const int SEMANTIC_HASH = HashingUtils::HashString("SEMANTIC"); + + + ChunkingStrategy GetChunkingStrategyForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == FIXED_SIZE_HASH) + { + return ChunkingStrategy::FIXED_SIZE; + } + else if (hashCode == NONE_HASH) + { + return ChunkingStrategy::NONE; + } + else if (hashCode == HIERARCHICAL_HASH) + { + return ChunkingStrategy::HIERARCHICAL; + } + else if (hashCode == SEMANTIC_HASH) + { + return ChunkingStrategy::SEMANTIC; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ChunkingStrategy::NOT_SET; + } + + Aws::String GetNameForChunkingStrategy(ChunkingStrategy enumValue) + { + switch(enumValue) + { + case ChunkingStrategy::NOT_SET: + return {}; + case ChunkingStrategy::FIXED_SIZE: + return "FIXED_SIZE"; + case ChunkingStrategy::NONE: + return "NONE"; + case ChunkingStrategy::HIERARCHICAL: + return "HIERARCHICAL"; + case ChunkingStrategy::SEMANTIC: + return "SEMANTIC"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ChunkingStrategyMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/CitationSpan.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/CitationSpan.cpp new file mode 100644 index 00000000000..d50eaca1ea4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/CitationSpan.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +CitationSpan::CitationSpan() : + m_beginOffsetInclusive(0), + m_beginOffsetInclusiveHasBeenSet(false), + m_endOffsetExclusive(0), + m_endOffsetExclusiveHasBeenSet(false) +{ +} + +CitationSpan::CitationSpan(JsonView jsonValue) + : CitationSpan() +{ + *this = jsonValue; +} + +CitationSpan& CitationSpan::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("beginOffsetInclusive")) + { + m_beginOffsetInclusive = jsonValue.GetInteger("beginOffsetInclusive"); + + m_beginOffsetInclusiveHasBeenSet = true; + } + + if(jsonValue.ValueExists("endOffsetExclusive")) + { + m_endOffsetExclusive = jsonValue.GetInteger("endOffsetExclusive"); + + m_endOffsetExclusiveHasBeenSet = true; + } + + return *this; +} + +JsonValue CitationSpan::Jsonize() const +{ + JsonValue payload; + + if(m_beginOffsetInclusiveHasBeenSet) + { + payload.WithInteger("beginOffsetInclusive", m_beginOffsetInclusive); + + } + + if(m_endOffsetExclusiveHasBeenSet) + { + payload.WithInteger("endOffsetExclusive", m_endOffsetExclusive); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ContentReference.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ContentReference.cpp index a10c7a5ba1a..de01bdf4699 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/ContentReference.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ContentReference.cpp @@ -22,7 +22,10 @@ ContentReference::ContentReference() : m_contentArnHasBeenSet(false), m_contentIdHasBeenSet(false), m_knowledgeBaseArnHasBeenSet(false), - m_knowledgeBaseIdHasBeenSet(false) + m_knowledgeBaseIdHasBeenSet(false), + m_referenceType(ReferenceType::NOT_SET), + m_referenceTypeHasBeenSet(false), + m_sourceURLHasBeenSet(false) { } @@ -62,6 +65,20 @@ ContentReference& ContentReference::operator =(JsonView jsonValue) m_knowledgeBaseIdHasBeenSet = true; } + if(jsonValue.ValueExists("referenceType")) + { + m_referenceType = ReferenceTypeMapper::GetReferenceTypeForName(jsonValue.GetString("referenceType")); + + m_referenceTypeHasBeenSet = true; + } + + if(jsonValue.ValueExists("sourceURL")) + { + m_sourceURL = jsonValue.GetString("sourceURL"); + + m_sourceURLHasBeenSet = true; + } + return *this; } @@ -93,6 +110,17 @@ JsonValue ContentReference::Jsonize() const } + if(m_referenceTypeHasBeenSet) + { + payload.WithString("referenceType", ReferenceTypeMapper::GetNameForReferenceType(m_referenceType)); + } + + if(m_sourceURLHasBeenSet) + { + payload.WithString("sourceURL", m_sourceURL); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentRequest.cpp new file mode 100644 index 00000000000..4394d3413be --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentRequest.cpp @@ -0,0 +1,84 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateAIAgentRequest::CreateAIAgentRequest() : + m_assistantIdHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_configurationHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_nameHasBeenSet(false), + m_tagsHasBeenSet(false), + m_type(AIAgentType::NOT_SET), + m_typeHasBeenSet(false), + m_visibilityStatus(VisibilityStatus::NOT_SET), + m_visibilityStatusHasBeenSet(false) +{ +} + +Aws::String CreateAIAgentRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_configurationHasBeenSet) + { + payload.WithObject("configuration", m_configuration.Jsonize()); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", AIAgentTypeMapper::GetNameForAIAgentType(m_type)); + } + + if(m_visibilityStatusHasBeenSet) + { + payload.WithString("visibilityStatus", VisibilityStatusMapper::GetNameForVisibilityStatus(m_visibilityStatus)); + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentResult.cpp new file mode 100644 index 00000000000..b01350d1c18 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateAIAgentResult::CreateAIAgentResult() +{ +} + +CreateAIAgentResult::CreateAIAgentResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateAIAgentResult& CreateAIAgentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiAgent")) + { + m_aiAgent = jsonValue.GetObject("aiAgent"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentVersionRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentVersionRequest.cpp new file mode 100644 index 00000000000..0ae39898088 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentVersionRequest.cpp @@ -0,0 +1,44 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateAIAgentVersionRequest::CreateAIAgentVersionRequest() : + m_aiAgentIdHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_modifiedTimeHasBeenSet(false) +{ +} + +Aws::String CreateAIAgentVersionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_modifiedTimeHasBeenSet) + { + payload.WithDouble("modifiedTime", m_modifiedTime.SecondsWithMSPrecision()); + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentVersionResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentVersionResult.cpp new file mode 100644 index 00000000000..cf7c5eceb92 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIAgentVersionResult.cpp @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateAIAgentVersionResult::CreateAIAgentVersionResult() : + m_versionNumber(0) +{ +} + +CreateAIAgentVersionResult::CreateAIAgentVersionResult(const Aws::AmazonWebServiceResult& result) + : CreateAIAgentVersionResult() +{ + *this = result; +} + +CreateAIAgentVersionResult& CreateAIAgentVersionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiAgent")) + { + m_aiAgent = jsonValue.GetObject("aiAgent"); + + } + + if(jsonValue.ValueExists("versionNumber")) + { + m_versionNumber = jsonValue.GetInt64("versionNumber"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptRequest.cpp new file mode 100644 index 00000000000..04804910cac --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptRequest.cpp @@ -0,0 +1,105 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateAIPromptRequest::CreateAIPromptRequest() : + m_apiFormat(AIPromptAPIFormat::NOT_SET), + m_apiFormatHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_descriptionHasBeenSet(false), + m_modelIdHasBeenSet(false), + m_nameHasBeenSet(false), + m_tagsHasBeenSet(false), + m_templateConfigurationHasBeenSet(false), + m_templateType(AIPromptTemplateType::NOT_SET), + m_templateTypeHasBeenSet(false), + m_type(AIPromptType::NOT_SET), + m_typeHasBeenSet(false), + m_visibilityStatus(VisibilityStatus::NOT_SET), + m_visibilityStatusHasBeenSet(false) +{ +} + +Aws::String CreateAIPromptRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_apiFormatHasBeenSet) + { + payload.WithString("apiFormat", AIPromptAPIFormatMapper::GetNameForAIPromptAPIFormat(m_apiFormat)); + } + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_modelIdHasBeenSet) + { + payload.WithString("modelId", m_modelId); + + } + + if(m_nameHasBeenSet) + { + payload.WithString("name", m_name); + + } + + if(m_tagsHasBeenSet) + { + JsonValue tagsJsonMap; + for(auto& tagsItem : m_tags) + { + tagsJsonMap.WithString(tagsItem.first, tagsItem.second); + } + payload.WithObject("tags", std::move(tagsJsonMap)); + + } + + if(m_templateConfigurationHasBeenSet) + { + payload.WithObject("templateConfiguration", m_templateConfiguration.Jsonize()); + + } + + if(m_templateTypeHasBeenSet) + { + payload.WithString("templateType", AIPromptTemplateTypeMapper::GetNameForAIPromptTemplateType(m_templateType)); + } + + if(m_typeHasBeenSet) + { + payload.WithString("type", AIPromptTypeMapper::GetNameForAIPromptType(m_type)); + } + + if(m_visibilityStatusHasBeenSet) + { + payload.WithString("visibilityStatus", VisibilityStatusMapper::GetNameForVisibilityStatus(m_visibilityStatus)); + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptResult.cpp new file mode 100644 index 00000000000..c5ee22cccfa --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateAIPromptResult::CreateAIPromptResult() +{ +} + +CreateAIPromptResult::CreateAIPromptResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +CreateAIPromptResult& CreateAIPromptResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiPrompt")) + { + m_aiPrompt = jsonValue.GetObject("aiPrompt"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptVersionRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptVersionRequest.cpp new file mode 100644 index 00000000000..6719c973afb --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptVersionRequest.cpp @@ -0,0 +1,44 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +CreateAIPromptVersionRequest::CreateAIPromptVersionRequest() : + m_aiPromptIdHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_modifiedTimeHasBeenSet(false) +{ +} + +Aws::String CreateAIPromptVersionRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_modifiedTimeHasBeenSet) + { + payload.WithDouble("modifiedTime", m_modifiedTime.SecondsWithMSPrecision()); + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptVersionResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptVersionResult.cpp new file mode 100644 index 00000000000..ba012c3af71 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateAIPromptVersionResult.cpp @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +CreateAIPromptVersionResult::CreateAIPromptVersionResult() : + m_versionNumber(0) +{ +} + +CreateAIPromptVersionResult::CreateAIPromptVersionResult(const Aws::AmazonWebServiceResult& result) + : CreateAIPromptVersionResult() +{ + *this = result; +} + +CreateAIPromptVersionResult& CreateAIPromptVersionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiPrompt")) + { + m_aiPrompt = jsonValue.GetObject("aiPrompt"); + + } + + if(jsonValue.ValueExists("versionNumber")) + { + m_versionNumber = jsonValue.GetInt64("versionNumber"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateKnowledgeBaseRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateKnowledgeBaseRequest.cpp index 3e040200848..09c34738ad2 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateKnowledgeBaseRequest.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateKnowledgeBaseRequest.cpp @@ -22,7 +22,8 @@ CreateKnowledgeBaseRequest::CreateKnowledgeBaseRequest() : m_renderingConfigurationHasBeenSet(false), m_serverSideEncryptionConfigurationHasBeenSet(false), m_sourceConfigurationHasBeenSet(false), - m_tagsHasBeenSet(false) + m_tagsHasBeenSet(false), + m_vectorIngestionConfigurationHasBeenSet(false) { } @@ -82,6 +83,12 @@ Aws::String CreateKnowledgeBaseRequest::SerializePayload() const } + if(m_vectorIngestionConfigurationHasBeenSet) + { + payload.WithObject("vectorIngestionConfiguration", m_vectorIngestionConfiguration.Jsonize()); + + } + return payload.View().WriteReadable(); } diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateSessionRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateSessionRequest.cpp index e2b58fd6594..40deba0bf82 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/CreateSessionRequest.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/CreateSessionRequest.cpp @@ -13,6 +13,7 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; CreateSessionRequest::CreateSessionRequest() : + m_aiAgentConfigurationHasBeenSet(false), m_assistantIdHasBeenSet(false), m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), m_clientTokenHasBeenSet(true), @@ -27,6 +28,17 @@ Aws::String CreateSessionRequest::SerializePayload() const { JsonValue payload; + if(m_aiAgentConfigurationHasBeenSet) + { + JsonValue aiAgentConfigurationJsonMap; + for(auto& aiAgentConfigurationItem : m_aiAgentConfiguration) + { + aiAgentConfigurationJsonMap.WithObject(AIAgentTypeMapper::GetNameForAIAgentType(aiAgentConfigurationItem.first), aiAgentConfigurationItem.second.Jsonize()); + } + payload.WithObject("aiAgentConfiguration", std::move(aiAgentConfigurationJsonMap)); + + } + if(m_clientTokenHasBeenSet) { payload.WithString("clientToken", m_clientToken); diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/DataDetails.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/DataDetails.cpp index eb768316640..7c427628acd 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/DataDetails.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/DataDetails.cpp @@ -22,6 +22,7 @@ namespace Model DataDetails::DataDetails() : m_contentDataHasBeenSet(false), m_generativeDataHasBeenSet(false), + m_intentDetectedDataHasBeenSet(false), m_sourceContentDataHasBeenSet(false) { } @@ -55,6 +56,13 @@ DataDetails& DataDetails::operator =(JsonView jsonValue) m_generativeDataHasBeenSet = true; } + if(jsonValue.ValueExists("intentDetectedData")) + { + m_intentDetectedData = jsonValue.GetObject("intentDetectedData"); + + m_intentDetectedDataHasBeenSet = true; + } + if(jsonValue.ValueExists("sourceContentData")) { m_sourceContentData = jsonValue.GetObject("sourceContentData"); @@ -81,6 +89,12 @@ JsonValue DataDetails::Jsonize() const } + if(m_intentDetectedDataHasBeenSet) + { + payload.WithObject("intentDetectedData", m_intentDetectedData.Jsonize()); + + } + if(m_sourceContentDataHasBeenSet) { payload.WithObject("sourceContentData", m_sourceContentData.Jsonize()); diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentRequest.cpp new file mode 100644 index 00000000000..2b1e408a30e --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteAIAgentRequest::DeleteAIAgentRequest() : + m_aiAgentIdHasBeenSet(false), + m_assistantIdHasBeenSet(false) +{ +} + +Aws::String DeleteAIAgentRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentResult.cpp new file mode 100644 index 00000000000..691e6226fce --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteAIAgentResult::DeleteAIAgentResult() +{ +} + +DeleteAIAgentResult::DeleteAIAgentResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteAIAgentResult& DeleteAIAgentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentVersionRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentVersionRequest.cpp new file mode 100644 index 00000000000..5349c360831 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentVersionRequest.cpp @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteAIAgentVersionRequest::DeleteAIAgentVersionRequest() : + m_aiAgentIdHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_versionNumber(0), + m_versionNumberHasBeenSet(false) +{ +} + +Aws::String DeleteAIAgentVersionRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentVersionResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentVersionResult.cpp new file mode 100644 index 00000000000..e710a5f1320 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIAgentVersionResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteAIAgentVersionResult::DeleteAIAgentVersionResult() +{ +} + +DeleteAIAgentVersionResult::DeleteAIAgentVersionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteAIAgentVersionResult& DeleteAIAgentVersionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptRequest.cpp new file mode 100644 index 00000000000..f71c1d28955 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteAIPromptRequest::DeleteAIPromptRequest() : + m_aiPromptIdHasBeenSet(false), + m_assistantIdHasBeenSet(false) +{ +} + +Aws::String DeleteAIPromptRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptResult.cpp new file mode 100644 index 00000000000..7f0ae4b2bc0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteAIPromptResult::DeleteAIPromptResult() +{ +} + +DeleteAIPromptResult::DeleteAIPromptResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteAIPromptResult& DeleteAIPromptResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptVersionRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptVersionRequest.cpp new file mode 100644 index 00000000000..4999a6c2d96 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptVersionRequest.cpp @@ -0,0 +1,30 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +DeleteAIPromptVersionRequest::DeleteAIPromptVersionRequest() : + m_aiPromptIdHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_versionNumber(0), + m_versionNumberHasBeenSet(false) +{ +} + +Aws::String DeleteAIPromptVersionRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptVersionResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptVersionResult.cpp new file mode 100644 index 00000000000..f4a5e451d7e --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/DeleteAIPromptVersionResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +DeleteAIPromptVersionResult::DeleteAIPromptVersionResult() +{ +} + +DeleteAIPromptVersionResult::DeleteAIPromptVersionResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +DeleteAIPromptVersionResult& DeleteAIPromptVersionResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/FixedSizeChunkingConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/FixedSizeChunkingConfiguration.cpp new file mode 100644 index 00000000000..d42910632ff --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/FixedSizeChunkingConfiguration.cpp @@ -0,0 +1,75 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +FixedSizeChunkingConfiguration::FixedSizeChunkingConfiguration() : + m_maxTokens(0), + m_maxTokensHasBeenSet(false), + m_overlapPercentage(0), + m_overlapPercentageHasBeenSet(false) +{ +} + +FixedSizeChunkingConfiguration::FixedSizeChunkingConfiguration(JsonView jsonValue) + : FixedSizeChunkingConfiguration() +{ + *this = jsonValue; +} + +FixedSizeChunkingConfiguration& FixedSizeChunkingConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("maxTokens")) + { + m_maxTokens = jsonValue.GetInteger("maxTokens"); + + m_maxTokensHasBeenSet = true; + } + + if(jsonValue.ValueExists("overlapPercentage")) + { + m_overlapPercentage = jsonValue.GetInteger("overlapPercentage"); + + m_overlapPercentageHasBeenSet = true; + } + + return *this; +} + +JsonValue FixedSizeChunkingConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_maxTokensHasBeenSet) + { + payload.WithInteger("maxTokens", m_maxTokens); + + } + + if(m_overlapPercentageHasBeenSet) + { + payload.WithInteger("overlapPercentage", m_overlapPercentage); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIAgentRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIAgentRequest.cpp new file mode 100644 index 00000000000..5941470e21f --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIAgentRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetAIAgentRequest::GetAIAgentRequest() : + m_aiAgentIdHasBeenSet(false), + m_assistantIdHasBeenSet(false) +{ +} + +Aws::String GetAIAgentRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIAgentResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIAgentResult.cpp new file mode 100644 index 00000000000..9d94a7cca46 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIAgentResult.cpp @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetAIAgentResult::GetAIAgentResult() : + m_versionNumber(0) +{ +} + +GetAIAgentResult::GetAIAgentResult(const Aws::AmazonWebServiceResult& result) + : GetAIAgentResult() +{ + *this = result; +} + +GetAIAgentResult& GetAIAgentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiAgent")) + { + m_aiAgent = jsonValue.GetObject("aiAgent"); + + } + + if(jsonValue.ValueExists("versionNumber")) + { + m_versionNumber = jsonValue.GetInt64("versionNumber"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIPromptRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIPromptRequest.cpp new file mode 100644 index 00000000000..ffd9bd9c6ca --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIPromptRequest.cpp @@ -0,0 +1,28 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +GetAIPromptRequest::GetAIPromptRequest() : + m_aiPromptIdHasBeenSet(false), + m_assistantIdHasBeenSet(false) +{ +} + +Aws::String GetAIPromptRequest::SerializePayload() const +{ + return {}; +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIPromptResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIPromptResult.cpp new file mode 100644 index 00000000000..0837dd04304 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/GetAIPromptResult.cpp @@ -0,0 +1,56 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +GetAIPromptResult::GetAIPromptResult() : + m_versionNumber(0) +{ +} + +GetAIPromptResult::GetAIPromptResult(const Aws::AmazonWebServiceResult& result) + : GetAIPromptResult() +{ + *this = result; +} + +GetAIPromptResult& GetAIPromptResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiPrompt")) + { + m_aiPrompt = jsonValue.GetObject("aiPrompt"); + + } + + if(jsonValue.ValueExists("versionNumber")) + { + m_versionNumber = jsonValue.GetInt64("versionNumber"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/HierarchicalChunkingConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/HierarchicalChunkingConfiguration.cpp new file mode 100644 index 00000000000..2f90634e913 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/HierarchicalChunkingConfiguration.cpp @@ -0,0 +1,82 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +HierarchicalChunkingConfiguration::HierarchicalChunkingConfiguration() : + m_levelConfigurationsHasBeenSet(false), + m_overlapTokens(0), + m_overlapTokensHasBeenSet(false) +{ +} + +HierarchicalChunkingConfiguration::HierarchicalChunkingConfiguration(JsonView jsonValue) + : HierarchicalChunkingConfiguration() +{ + *this = jsonValue; +} + +HierarchicalChunkingConfiguration& HierarchicalChunkingConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("levelConfigurations")) + { + Aws::Utils::Array levelConfigurationsJsonList = jsonValue.GetArray("levelConfigurations"); + for(unsigned levelConfigurationsIndex = 0; levelConfigurationsIndex < levelConfigurationsJsonList.GetLength(); ++levelConfigurationsIndex) + { + m_levelConfigurations.push_back(levelConfigurationsJsonList[levelConfigurationsIndex].AsObject()); + } + m_levelConfigurationsHasBeenSet = true; + } + + if(jsonValue.ValueExists("overlapTokens")) + { + m_overlapTokens = jsonValue.GetInteger("overlapTokens"); + + m_overlapTokensHasBeenSet = true; + } + + return *this; +} + +JsonValue HierarchicalChunkingConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_levelConfigurationsHasBeenSet) + { + Aws::Utils::Array levelConfigurationsJsonList(m_levelConfigurations.size()); + for(unsigned levelConfigurationsIndex = 0; levelConfigurationsIndex < levelConfigurationsJsonList.GetLength(); ++levelConfigurationsIndex) + { + levelConfigurationsJsonList[levelConfigurationsIndex].AsObject(m_levelConfigurations[levelConfigurationsIndex].Jsonize()); + } + payload.WithArray("levelConfigurations", std::move(levelConfigurationsJsonList)); + + } + + if(m_overlapTokensHasBeenSet) + { + payload.WithInteger("overlapTokens", m_overlapTokens); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/HierarchicalChunkingLevelConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/HierarchicalChunkingLevelConfiguration.cpp new file mode 100644 index 00000000000..8aa733668af --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/HierarchicalChunkingLevelConfiguration.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +HierarchicalChunkingLevelConfiguration::HierarchicalChunkingLevelConfiguration() : + m_maxTokens(0), + m_maxTokensHasBeenSet(false) +{ +} + +HierarchicalChunkingLevelConfiguration::HierarchicalChunkingLevelConfiguration(JsonView jsonValue) + : HierarchicalChunkingLevelConfiguration() +{ + *this = jsonValue; +} + +HierarchicalChunkingLevelConfiguration& HierarchicalChunkingLevelConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("maxTokens")) + { + m_maxTokens = jsonValue.GetInteger("maxTokens"); + + m_maxTokensHasBeenSet = true; + } + + return *this; +} + +JsonValue HierarchicalChunkingLevelConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_maxTokensHasBeenSet) + { + payload.WithInteger("maxTokens", m_maxTokens); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/IntentDetectedDataDetails.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/IntentDetectedDataDetails.cpp new file mode 100644 index 00000000000..a45b39cde5b --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/IntentDetectedDataDetails.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +IntentDetectedDataDetails::IntentDetectedDataDetails() : + m_intentHasBeenSet(false), + m_intentIdHasBeenSet(false) +{ +} + +IntentDetectedDataDetails::IntentDetectedDataDetails(JsonView jsonValue) + : IntentDetectedDataDetails() +{ + *this = jsonValue; +} + +IntentDetectedDataDetails& IntentDetectedDataDetails::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("intent")) + { + m_intent = jsonValue.GetString("intent"); + + m_intentHasBeenSet = true; + } + + if(jsonValue.ValueExists("intentId")) + { + m_intentId = jsonValue.GetString("intentId"); + + m_intentIdHasBeenSet = true; + } + + return *this; +} + +JsonValue IntentDetectedDataDetails::Jsonize() const +{ + JsonValue payload; + + if(m_intentHasBeenSet) + { + payload.WithString("intent", m_intent); + + } + + if(m_intentIdHasBeenSet) + { + payload.WithString("intentId", m_intentId); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/IntentInputData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/IntentInputData.cpp new file mode 100644 index 00000000000..e07674e818a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/IntentInputData.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +IntentInputData::IntentInputData() : + m_intentIdHasBeenSet(false) +{ +} + +IntentInputData::IntentInputData(JsonView jsonValue) + : IntentInputData() +{ + *this = jsonValue; +} + +IntentInputData& IntentInputData::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("intentId")) + { + m_intentId = jsonValue.GetString("intentId"); + + m_intentIdHasBeenSet = true; + } + + return *this; +} + +JsonValue IntentInputData::Jsonize() const +{ + JsonValue payload; + + if(m_intentIdHasBeenSet) + { + payload.WithString("intentId", m_intentId); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseAssociationConfigurationData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseAssociationConfigurationData.cpp new file mode 100644 index 00000000000..5161120bbc0 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseAssociationConfigurationData.cpp @@ -0,0 +1,88 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +KnowledgeBaseAssociationConfigurationData::KnowledgeBaseAssociationConfigurationData() : + m_contentTagFilterHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_overrideKnowledgeBaseSearchType(KnowledgeBaseSearchType::NOT_SET), + m_overrideKnowledgeBaseSearchTypeHasBeenSet(false) +{ +} + +KnowledgeBaseAssociationConfigurationData::KnowledgeBaseAssociationConfigurationData(JsonView jsonValue) + : KnowledgeBaseAssociationConfigurationData() +{ + *this = jsonValue; +} + +KnowledgeBaseAssociationConfigurationData& KnowledgeBaseAssociationConfigurationData::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("contentTagFilter")) + { + m_contentTagFilter = jsonValue.GetObject("contentTagFilter"); + + m_contentTagFilterHasBeenSet = true; + } + + if(jsonValue.ValueExists("maxResults")) + { + m_maxResults = jsonValue.GetInteger("maxResults"); + + m_maxResultsHasBeenSet = true; + } + + if(jsonValue.ValueExists("overrideKnowledgeBaseSearchType")) + { + m_overrideKnowledgeBaseSearchType = KnowledgeBaseSearchTypeMapper::GetKnowledgeBaseSearchTypeForName(jsonValue.GetString("overrideKnowledgeBaseSearchType")); + + m_overrideKnowledgeBaseSearchTypeHasBeenSet = true; + } + + return *this; +} + +JsonValue KnowledgeBaseAssociationConfigurationData::Jsonize() const +{ + JsonValue payload; + + if(m_contentTagFilterHasBeenSet) + { + payload.WithObject("contentTagFilter", m_contentTagFilter.Jsonize()); + + } + + if(m_maxResultsHasBeenSet) + { + payload.WithInteger("maxResults", m_maxResults); + + } + + if(m_overrideKnowledgeBaseSearchTypeHasBeenSet) + { + payload.WithString("overrideKnowledgeBaseSearchType", KnowledgeBaseSearchTypeMapper::GetNameForKnowledgeBaseSearchType(m_overrideKnowledgeBaseSearchType)); + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseData.cpp index a31a64e80fe..176cf8df477 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseData.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseData.cpp @@ -20,6 +20,9 @@ namespace Model KnowledgeBaseData::KnowledgeBaseData() : m_descriptionHasBeenSet(false), + m_ingestionFailureReasonsHasBeenSet(false), + m_ingestionStatus(SyncStatus::NOT_SET), + m_ingestionStatusHasBeenSet(false), m_knowledgeBaseArnHasBeenSet(false), m_knowledgeBaseIdHasBeenSet(false), m_knowledgeBaseType(KnowledgeBaseType::NOT_SET), @@ -31,7 +34,8 @@ KnowledgeBaseData::KnowledgeBaseData() : m_sourceConfigurationHasBeenSet(false), m_status(KnowledgeBaseStatus::NOT_SET), m_statusHasBeenSet(false), - m_tagsHasBeenSet(false) + m_tagsHasBeenSet(false), + m_vectorIngestionConfigurationHasBeenSet(false) { } @@ -50,6 +54,23 @@ KnowledgeBaseData& KnowledgeBaseData::operator =(JsonView jsonValue) m_descriptionHasBeenSet = true; } + if(jsonValue.ValueExists("ingestionFailureReasons")) + { + Aws::Utils::Array ingestionFailureReasonsJsonList = jsonValue.GetArray("ingestionFailureReasons"); + for(unsigned ingestionFailureReasonsIndex = 0; ingestionFailureReasonsIndex < ingestionFailureReasonsJsonList.GetLength(); ++ingestionFailureReasonsIndex) + { + m_ingestionFailureReasons.push_back(ingestionFailureReasonsJsonList[ingestionFailureReasonsIndex].AsString()); + } + m_ingestionFailureReasonsHasBeenSet = true; + } + + if(jsonValue.ValueExists("ingestionStatus")) + { + m_ingestionStatus = SyncStatusMapper::GetSyncStatusForName(jsonValue.GetString("ingestionStatus")); + + m_ingestionStatusHasBeenSet = true; + } + if(jsonValue.ValueExists("knowledgeBaseArn")) { m_knowledgeBaseArn = jsonValue.GetString("knowledgeBaseArn"); @@ -123,6 +144,13 @@ KnowledgeBaseData& KnowledgeBaseData::operator =(JsonView jsonValue) m_tagsHasBeenSet = true; } + if(jsonValue.ValueExists("vectorIngestionConfiguration")) + { + m_vectorIngestionConfiguration = jsonValue.GetObject("vectorIngestionConfiguration"); + + m_vectorIngestionConfigurationHasBeenSet = true; + } + return *this; } @@ -136,6 +164,22 @@ JsonValue KnowledgeBaseData::Jsonize() const } + if(m_ingestionFailureReasonsHasBeenSet) + { + Aws::Utils::Array ingestionFailureReasonsJsonList(m_ingestionFailureReasons.size()); + for(unsigned ingestionFailureReasonsIndex = 0; ingestionFailureReasonsIndex < ingestionFailureReasonsJsonList.GetLength(); ++ingestionFailureReasonsIndex) + { + ingestionFailureReasonsJsonList[ingestionFailureReasonsIndex].AsString(m_ingestionFailureReasons[ingestionFailureReasonsIndex]); + } + payload.WithArray("ingestionFailureReasons", std::move(ingestionFailureReasonsJsonList)); + + } + + if(m_ingestionStatusHasBeenSet) + { + payload.WithString("ingestionStatus", SyncStatusMapper::GetNameForSyncStatus(m_ingestionStatus)); + } + if(m_knowledgeBaseArnHasBeenSet) { payload.WithString("knowledgeBaseArn", m_knowledgeBaseArn); @@ -198,6 +242,12 @@ JsonValue KnowledgeBaseData::Jsonize() const } + if(m_vectorIngestionConfigurationHasBeenSet) + { + payload.WithObject("vectorIngestionConfiguration", m_vectorIngestionConfiguration.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseSearchType.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseSearchType.cpp new file mode 100644 index 00000000000..d040c32bae8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseSearchType.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace KnowledgeBaseSearchTypeMapper + { + + static const int HYBRID_HASH = HashingUtils::HashString("HYBRID"); + static const int SEMANTIC_HASH = HashingUtils::HashString("SEMANTIC"); + + + KnowledgeBaseSearchType GetKnowledgeBaseSearchTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == HYBRID_HASH) + { + return KnowledgeBaseSearchType::HYBRID; + } + else if (hashCode == SEMANTIC_HASH) + { + return KnowledgeBaseSearchType::SEMANTIC; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return KnowledgeBaseSearchType::NOT_SET; + } + + Aws::String GetNameForKnowledgeBaseSearchType(KnowledgeBaseSearchType enumValue) + { + switch(enumValue) + { + case KnowledgeBaseSearchType::NOT_SET: + return {}; + case KnowledgeBaseSearchType::HYBRID: + return "HYBRID"; + case KnowledgeBaseSearchType::SEMANTIC: + return "SEMANTIC"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace KnowledgeBaseSearchTypeMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseSummary.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseSummary.cpp index 2a297591e3b..b3460f7eaf6 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseSummary.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseSummary.cpp @@ -30,7 +30,8 @@ KnowledgeBaseSummary::KnowledgeBaseSummary() : m_sourceConfigurationHasBeenSet(false), m_status(KnowledgeBaseStatus::NOT_SET), m_statusHasBeenSet(false), - m_tagsHasBeenSet(false) + m_tagsHasBeenSet(false), + m_vectorIngestionConfigurationHasBeenSet(false) { } @@ -115,6 +116,13 @@ KnowledgeBaseSummary& KnowledgeBaseSummary::operator =(JsonView jsonValue) m_tagsHasBeenSet = true; } + if(jsonValue.ValueExists("vectorIngestionConfiguration")) + { + m_vectorIngestionConfiguration = jsonValue.GetObject("vectorIngestionConfiguration"); + + m_vectorIngestionConfigurationHasBeenSet = true; + } + return *this; } @@ -185,6 +193,12 @@ JsonValue KnowledgeBaseSummary::Jsonize() const } + if(m_vectorIngestionConfigurationHasBeenSet) + { + payload.WithObject("vectorIngestionConfiguration", m_vectorIngestionConfiguration.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseType.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseType.cpp index fb1c0ef6002..1a9f342a919 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseType.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/KnowledgeBaseType.cpp @@ -23,6 +23,8 @@ namespace Aws static const int EXTERNAL_HASH = HashingUtils::HashString("EXTERNAL"); static const int CUSTOM_HASH = HashingUtils::HashString("CUSTOM"); static const int QUICK_RESPONSES_HASH = HashingUtils::HashString("QUICK_RESPONSES"); + static const int MESSAGE_TEMPLATES_HASH = HashingUtils::HashString("MESSAGE_TEMPLATES"); + static const int MANAGED_HASH = HashingUtils::HashString("MANAGED"); KnowledgeBaseType GetKnowledgeBaseTypeForName(const Aws::String& name) @@ -40,6 +42,14 @@ namespace Aws { return KnowledgeBaseType::QUICK_RESPONSES; } + else if (hashCode == MESSAGE_TEMPLATES_HASH) + { + return KnowledgeBaseType::MESSAGE_TEMPLATES; + } + else if (hashCode == MANAGED_HASH) + { + return KnowledgeBaseType::MANAGED; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -62,6 +72,10 @@ namespace Aws return "CUSTOM"; case KnowledgeBaseType::QUICK_RESPONSES: return "QUICK_RESPONSES"; + case KnowledgeBaseType::MESSAGE_TEMPLATES: + return "MESSAGE_TEMPLATES"; + case KnowledgeBaseType::MANAGED: + return "MANAGED"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentVersionsRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentVersionsRequest.cpp new file mode 100644 index 00000000000..13f8e59c8cc --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentVersionsRequest.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListAIAgentVersionsRequest::ListAIAgentVersionsRequest() : + m_aiAgentIdHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_origin(Origin::NOT_SET), + m_originHasBeenSet(false) +{ +} + +Aws::String ListAIAgentVersionsRequest::SerializePayload() const +{ + return {}; +} + +void ListAIAgentVersionsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_originHasBeenSet) + { + ss << OriginMapper::GetNameForOrigin(m_origin); + uri.AddQueryStringParameter("origin", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentVersionsResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentVersionsResult.cpp new file mode 100644 index 00000000000..c68342fd94b --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentVersionsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListAIAgentVersionsResult::ListAIAgentVersionsResult() +{ +} + +ListAIAgentVersionsResult::ListAIAgentVersionsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListAIAgentVersionsResult& ListAIAgentVersionsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiAgentVersionSummaries")) + { + Aws::Utils::Array aiAgentVersionSummariesJsonList = jsonValue.GetArray("aiAgentVersionSummaries"); + for(unsigned aiAgentVersionSummariesIndex = 0; aiAgentVersionSummariesIndex < aiAgentVersionSummariesJsonList.GetLength(); ++aiAgentVersionSummariesIndex) + { + m_aiAgentVersionSummaries.push_back(aiAgentVersionSummariesJsonList[aiAgentVersionSummariesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentsRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentsRequest.cpp new file mode 100644 index 00000000000..bbae59a2cb2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentsRequest.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListAIAgentsRequest::ListAIAgentsRequest() : + m_assistantIdHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_origin(Origin::NOT_SET), + m_originHasBeenSet(false) +{ +} + +Aws::String ListAIAgentsRequest::SerializePayload() const +{ + return {}; +} + +void ListAIAgentsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_originHasBeenSet) + { + ss << OriginMapper::GetNameForOrigin(m_origin); + uri.AddQueryStringParameter("origin", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentsResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentsResult.cpp new file mode 100644 index 00000000000..da8c84bcca3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIAgentsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListAIAgentsResult::ListAIAgentsResult() +{ +} + +ListAIAgentsResult::ListAIAgentsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListAIAgentsResult& ListAIAgentsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiAgentSummaries")) + { + Aws::Utils::Array aiAgentSummariesJsonList = jsonValue.GetArray("aiAgentSummaries"); + for(unsigned aiAgentSummariesIndex = 0; aiAgentSummariesIndex < aiAgentSummariesJsonList.GetLength(); ++aiAgentSummariesIndex) + { + m_aiAgentSummaries.push_back(aiAgentSummariesJsonList[aiAgentSummariesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptVersionsRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptVersionsRequest.cpp new file mode 100644 index 00000000000..7276c3a9b95 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptVersionsRequest.cpp @@ -0,0 +1,61 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListAIPromptVersionsRequest::ListAIPromptVersionsRequest() : + m_aiPromptIdHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_origin(Origin::NOT_SET), + m_originHasBeenSet(false) +{ +} + +Aws::String ListAIPromptVersionsRequest::SerializePayload() const +{ + return {}; +} + +void ListAIPromptVersionsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_originHasBeenSet) + { + ss << OriginMapper::GetNameForOrigin(m_origin); + uri.AddQueryStringParameter("origin", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptVersionsResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptVersionsResult.cpp new file mode 100644 index 00000000000..a0d6d9d44e6 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptVersionsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListAIPromptVersionsResult::ListAIPromptVersionsResult() +{ +} + +ListAIPromptVersionsResult::ListAIPromptVersionsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListAIPromptVersionsResult& ListAIPromptVersionsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiPromptVersionSummaries")) + { + Aws::Utils::Array aiPromptVersionSummariesJsonList = jsonValue.GetArray("aiPromptVersionSummaries"); + for(unsigned aiPromptVersionSummariesIndex = 0; aiPromptVersionSummariesIndex < aiPromptVersionSummariesJsonList.GetLength(); ++aiPromptVersionSummariesIndex) + { + m_aiPromptVersionSummaries.push_back(aiPromptVersionSummariesJsonList[aiPromptVersionSummariesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptsRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptsRequest.cpp new file mode 100644 index 00000000000..638b58e8510 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptsRequest.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +ListAIPromptsRequest::ListAIPromptsRequest() : + m_assistantIdHasBeenSet(false), + m_maxResults(0), + m_maxResultsHasBeenSet(false), + m_nextTokenHasBeenSet(false), + m_origin(Origin::NOT_SET), + m_originHasBeenSet(false) +{ +} + +Aws::String ListAIPromptsRequest::SerializePayload() const +{ + return {}; +} + +void ListAIPromptsRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_maxResultsHasBeenSet) + { + ss << m_maxResults; + uri.AddQueryStringParameter("maxResults", ss.str()); + ss.str(""); + } + + if(m_nextTokenHasBeenSet) + { + ss << m_nextToken; + uri.AddQueryStringParameter("nextToken", ss.str()); + ss.str(""); + } + + if(m_originHasBeenSet) + { + ss << OriginMapper::GetNameForOrigin(m_origin); + uri.AddQueryStringParameter("origin", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptsResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptsResult.cpp new file mode 100644 index 00000000000..901c626952a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ListAIPromptsResult.cpp @@ -0,0 +1,57 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +ListAIPromptsResult::ListAIPromptsResult() +{ +} + +ListAIPromptsResult::ListAIPromptsResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +ListAIPromptsResult& ListAIPromptsResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiPromptSummaries")) + { + Aws::Utils::Array aiPromptSummariesJsonList = jsonValue.GetArray("aiPromptSummaries"); + for(unsigned aiPromptSummariesIndex = 0; aiPromptSummariesIndex < aiPromptSummariesJsonList.GetLength(); ++aiPromptSummariesIndex) + { + m_aiPromptSummaries.push_back(aiPromptSummariesJsonList[aiPromptSummariesIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("nextToken")) + { + m_nextToken = jsonValue.GetString("nextToken"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ManagedSourceConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ManagedSourceConfiguration.cpp new file mode 100644 index 00000000000..9fbc1dfade7 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ManagedSourceConfiguration.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +ManagedSourceConfiguration::ManagedSourceConfiguration() : + m_webCrawlerConfigurationHasBeenSet(false) +{ +} + +ManagedSourceConfiguration::ManagedSourceConfiguration(JsonView jsonValue) + : ManagedSourceConfiguration() +{ + *this = jsonValue; +} + +ManagedSourceConfiguration& ManagedSourceConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("webCrawlerConfiguration")) + { + m_webCrawlerConfiguration = jsonValue.GetObject("webCrawlerConfiguration"); + + m_webCrawlerConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue ManagedSourceConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_webCrawlerConfigurationHasBeenSet) + { + payload.WithObject("webCrawlerConfiguration", m_webCrawlerConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ManualSearchAIAgentConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ManualSearchAIAgentConfiguration.cpp new file mode 100644 index 00000000000..38dc211fbbe --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ManualSearchAIAgentConfiguration.cpp @@ -0,0 +1,81 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +ManualSearchAIAgentConfiguration::ManualSearchAIAgentConfiguration() : + m_answerGenerationAIPromptIdHasBeenSet(false), + m_associationConfigurationsHasBeenSet(false) +{ +} + +ManualSearchAIAgentConfiguration::ManualSearchAIAgentConfiguration(JsonView jsonValue) + : ManualSearchAIAgentConfiguration() +{ + *this = jsonValue; +} + +ManualSearchAIAgentConfiguration& ManualSearchAIAgentConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("answerGenerationAIPromptId")) + { + m_answerGenerationAIPromptId = jsonValue.GetString("answerGenerationAIPromptId"); + + m_answerGenerationAIPromptIdHasBeenSet = true; + } + + if(jsonValue.ValueExists("associationConfigurations")) + { + Aws::Utils::Array associationConfigurationsJsonList = jsonValue.GetArray("associationConfigurations"); + for(unsigned associationConfigurationsIndex = 0; associationConfigurationsIndex < associationConfigurationsJsonList.GetLength(); ++associationConfigurationsIndex) + { + m_associationConfigurations.push_back(associationConfigurationsJsonList[associationConfigurationsIndex].AsObject()); + } + m_associationConfigurationsHasBeenSet = true; + } + + return *this; +} + +JsonValue ManualSearchAIAgentConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_answerGenerationAIPromptIdHasBeenSet) + { + payload.WithString("answerGenerationAIPromptId", m_answerGenerationAIPromptId); + + } + + if(m_associationConfigurationsHasBeenSet) + { + Aws::Utils::Array associationConfigurationsJsonList(m_associationConfigurations.size()); + for(unsigned associationConfigurationsIndex = 0; associationConfigurationsIndex < associationConfigurationsJsonList.GetLength(); ++associationConfigurationsIndex) + { + associationConfigurationsJsonList[associationConfigurationsIndex].AsObject(m_associationConfigurations[associationConfigurationsIndex].Jsonize()); + } + payload.WithArray("associationConfigurations", std::move(associationConfigurationsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/Origin.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/Origin.cpp new file mode 100644 index 00000000000..05fb48e727b --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/Origin.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace OriginMapper + { + + static const int SYSTEM_HASH = HashingUtils::HashString("SYSTEM"); + static const int CUSTOMER_HASH = HashingUtils::HashString("CUSTOMER"); + + + Origin GetOriginForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SYSTEM_HASH) + { + return Origin::SYSTEM; + } + else if (hashCode == CUSTOMER_HASH) + { + return Origin::CUSTOMER; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return Origin::NOT_SET; + } + + Aws::String GetNameForOrigin(Origin enumValue) + { + switch(enumValue) + { + case Origin::NOT_SET: + return {}; + case Origin::SYSTEM: + return "SYSTEM"; + case Origin::CUSTOMER: + return "CUSTOMER"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace OriginMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ParsingConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ParsingConfiguration.cpp new file mode 100644 index 00000000000..764f4f1482a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ParsingConfiguration.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +ParsingConfiguration::ParsingConfiguration() : + m_bedrockFoundationModelConfigurationHasBeenSet(false), + m_parsingStrategy(ParsingStrategy::NOT_SET), + m_parsingStrategyHasBeenSet(false) +{ +} + +ParsingConfiguration::ParsingConfiguration(JsonView jsonValue) + : ParsingConfiguration() +{ + *this = jsonValue; +} + +ParsingConfiguration& ParsingConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("bedrockFoundationModelConfiguration")) + { + m_bedrockFoundationModelConfiguration = jsonValue.GetObject("bedrockFoundationModelConfiguration"); + + m_bedrockFoundationModelConfigurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("parsingStrategy")) + { + m_parsingStrategy = ParsingStrategyMapper::GetParsingStrategyForName(jsonValue.GetString("parsingStrategy")); + + m_parsingStrategyHasBeenSet = true; + } + + return *this; +} + +JsonValue ParsingConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_bedrockFoundationModelConfigurationHasBeenSet) + { + payload.WithObject("bedrockFoundationModelConfiguration", m_bedrockFoundationModelConfiguration.Jsonize()); + + } + + if(m_parsingStrategyHasBeenSet) + { + payload.WithString("parsingStrategy", ParsingStrategyMapper::GetNameForParsingStrategy(m_parsingStrategy)); + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ParsingPrompt.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ParsingPrompt.cpp new file mode 100644 index 00000000000..c3aebe8ebb2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ParsingPrompt.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +ParsingPrompt::ParsingPrompt() : + m_parsingPromptTextHasBeenSet(false) +{ +} + +ParsingPrompt::ParsingPrompt(JsonView jsonValue) + : ParsingPrompt() +{ + *this = jsonValue; +} + +ParsingPrompt& ParsingPrompt::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("parsingPromptText")) + { + m_parsingPromptText = jsonValue.GetString("parsingPromptText"); + + m_parsingPromptTextHasBeenSet = true; + } + + return *this; +} + +JsonValue ParsingPrompt::Jsonize() const +{ + JsonValue payload; + + if(m_parsingPromptTextHasBeenSet) + { + payload.WithString("parsingPromptText", m_parsingPromptText); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ParsingStrategy.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ParsingStrategy.cpp new file mode 100644 index 00000000000..9f510d20f3c --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ParsingStrategy.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace ParsingStrategyMapper + { + + static const int BEDROCK_FOUNDATION_MODEL_HASH = HashingUtils::HashString("BEDROCK_FOUNDATION_MODEL"); + + + ParsingStrategy GetParsingStrategyForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == BEDROCK_FOUNDATION_MODEL_HASH) + { + return ParsingStrategy::BEDROCK_FOUNDATION_MODEL; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ParsingStrategy::NOT_SET; + } + + Aws::String GetNameForParsingStrategy(ParsingStrategy enumValue) + { + switch(enumValue) + { + case ParsingStrategy::NOT_SET: + return {}; + case ParsingStrategy::BEDROCK_FOUNDATION_MODEL: + return "BEDROCK_FOUNDATION_MODEL"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ParsingStrategyMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/QueryInputData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/QueryInputData.cpp new file mode 100644 index 00000000000..613439f385b --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/QueryInputData.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +QueryInputData::QueryInputData() : + m_intentInputDataHasBeenSet(false), + m_queryTextInputDataHasBeenSet(false) +{ +} + +QueryInputData::QueryInputData(JsonView jsonValue) + : QueryInputData() +{ + *this = jsonValue; +} + +QueryInputData& QueryInputData::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("intentInputData")) + { + m_intentInputData = jsonValue.GetObject("intentInputData"); + + m_intentInputDataHasBeenSet = true; + } + + if(jsonValue.ValueExists("queryTextInputData")) + { + m_queryTextInputData = jsonValue.GetObject("queryTextInputData"); + + m_queryTextInputDataHasBeenSet = true; + } + + return *this; +} + +JsonValue QueryInputData::Jsonize() const +{ + JsonValue payload; + + if(m_intentInputDataHasBeenSet) + { + payload.WithObject("intentInputData", m_intentInputData.Jsonize()); + + } + + if(m_queryTextInputDataHasBeenSet) + { + payload.WithObject("queryTextInputData", m_queryTextInputData.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/QueryResultType.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/QueryResultType.cpp index c0dd7fdd0a6..5dd54ca9d1c 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/QueryResultType.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/QueryResultType.cpp @@ -21,6 +21,7 @@ namespace Aws { static const int KNOWLEDGE_CONTENT_HASH = HashingUtils::HashString("KNOWLEDGE_CONTENT"); + static const int INTENT_ANSWER_HASH = HashingUtils::HashString("INTENT_ANSWER"); static const int GENERATIVE_ANSWER_HASH = HashingUtils::HashString("GENERATIVE_ANSWER"); @@ -31,6 +32,10 @@ namespace Aws { return QueryResultType::KNOWLEDGE_CONTENT; } + else if (hashCode == INTENT_ANSWER_HASH) + { + return QueryResultType::INTENT_ANSWER; + } else if (hashCode == GENERATIVE_ANSWER_HASH) { return QueryResultType::GENERATIVE_ANSWER; @@ -53,6 +58,8 @@ namespace Aws return {}; case QueryResultType::KNOWLEDGE_CONTENT: return "KNOWLEDGE_CONTENT"; + case QueryResultType::INTENT_ANSWER: + return "INTENT_ANSWER"; case QueryResultType::GENERATIVE_ANSWER: return "GENERATIVE_ANSWER"; default: diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/QueryTextInputData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/QueryTextInputData.cpp new file mode 100644 index 00000000000..70165e225b9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/QueryTextInputData.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +QueryTextInputData::QueryTextInputData() : + m_textHasBeenSet(false) +{ +} + +QueryTextInputData::QueryTextInputData(JsonView jsonValue) + : QueryTextInputData() +{ + *this = jsonValue; +} + +QueryTextInputData& QueryTextInputData::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("text")) + { + m_text = jsonValue.GetString("text"); + + m_textHasBeenSet = true; + } + + return *this; +} + +JsonValue QueryTextInputData::Jsonize() const +{ + JsonValue payload; + + if(m_textHasBeenSet) + { + payload.WithString("text", m_text); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/RecommendationType.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/RecommendationType.cpp index 88d802075e2..82537a98980 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/RecommendationType.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/RecommendationType.cpp @@ -23,6 +23,7 @@ namespace Aws static const int KNOWLEDGE_CONTENT_HASH = HashingUtils::HashString("KNOWLEDGE_CONTENT"); static const int GENERATIVE_RESPONSE_HASH = HashingUtils::HashString("GENERATIVE_RESPONSE"); static const int GENERATIVE_ANSWER_HASH = HashingUtils::HashString("GENERATIVE_ANSWER"); + static const int DETECTED_INTENT_HASH = HashingUtils::HashString("DETECTED_INTENT"); RecommendationType GetRecommendationTypeForName(const Aws::String& name) @@ -40,6 +41,10 @@ namespace Aws { return RecommendationType::GENERATIVE_ANSWER; } + else if (hashCode == DETECTED_INTENT_HASH) + { + return RecommendationType::DETECTED_INTENT; + } EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) { @@ -62,6 +67,8 @@ namespace Aws return "GENERATIVE_RESPONSE"; case RecommendationType::GENERATIVE_ANSWER: return "GENERATIVE_ANSWER"; + case RecommendationType::DETECTED_INTENT: + return "DETECTED_INTENT"; default: EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); if(overflowContainer) diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/ReferenceType.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/ReferenceType.cpp new file mode 100644 index 00000000000..c48cbf4e39d --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/ReferenceType.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace ReferenceTypeMapper + { + + static const int WEB_CRAWLER_HASH = HashingUtils::HashString("WEB_CRAWLER"); + static const int KNOWLEDGE_BASE_HASH = HashingUtils::HashString("KNOWLEDGE_BASE"); + + + ReferenceType GetReferenceTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == WEB_CRAWLER_HASH) + { + return ReferenceType::WEB_CRAWLER; + } + else if (hashCode == KNOWLEDGE_BASE_HASH) + { + return ReferenceType::KNOWLEDGE_BASE; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return ReferenceType::NOT_SET; + } + + Aws::String GetNameForReferenceType(ReferenceType enumValue) + { + switch(enumValue) + { + case ReferenceType::NOT_SET: + return {}; + case ReferenceType::WEB_CRAWLER: + return "WEB_CRAWLER"; + case ReferenceType::KNOWLEDGE_BASE: + return "KNOWLEDGE_BASE"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace ReferenceTypeMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/RemoveAssistantAIAgentRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/RemoveAssistantAIAgentRequest.cpp new file mode 100644 index 00000000000..6b0292d6b64 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/RemoveAssistantAIAgentRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws::Http; + +RemoveAssistantAIAgentRequest::RemoveAssistantAIAgentRequest() : + m_aiAgentType(AIAgentType::NOT_SET), + m_aiAgentTypeHasBeenSet(false), + m_assistantIdHasBeenSet(false) +{ +} + +Aws::String RemoveAssistantAIAgentRequest::SerializePayload() const +{ + return {}; +} + +void RemoveAssistantAIAgentRequest::AddQueryStringParameters(URI& uri) const +{ + Aws::StringStream ss; + if(m_aiAgentTypeHasBeenSet) + { + ss << AIAgentTypeMapper::GetNameForAIAgentType(m_aiAgentType); + uri.AddQueryStringParameter("aiAgentType", ss.str()); + ss.str(""); + } + +} + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/RemoveAssistantAIAgentResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/RemoveAssistantAIAgentResult.cpp new file mode 100644 index 00000000000..f0d9716e27a --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/RemoveAssistantAIAgentResult.cpp @@ -0,0 +1,42 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +RemoveAssistantAIAgentResult::RemoveAssistantAIAgentResult() +{ +} + +RemoveAssistantAIAgentResult::RemoveAssistantAIAgentResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +RemoveAssistantAIAgentResult& RemoveAssistantAIAgentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + AWS_UNREFERENCED_PARAM(result); + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/RuntimeSessionData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/RuntimeSessionData.cpp new file mode 100644 index 00000000000..705a55091af --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/RuntimeSessionData.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +RuntimeSessionData::RuntimeSessionData() : + m_keyHasBeenSet(false), + m_valueHasBeenSet(false) +{ +} + +RuntimeSessionData::RuntimeSessionData(JsonView jsonValue) + : RuntimeSessionData() +{ + *this = jsonValue; +} + +RuntimeSessionData& RuntimeSessionData::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("key")) + { + m_key = jsonValue.GetString("key"); + + m_keyHasBeenSet = true; + } + + if(jsonValue.ValueExists("value")) + { + m_value = jsonValue.GetObject("value"); + + m_valueHasBeenSet = true; + } + + return *this; +} + +JsonValue RuntimeSessionData::Jsonize() const +{ + JsonValue payload; + + if(m_keyHasBeenSet) + { + payload.WithString("key", m_key); + + } + + if(m_valueHasBeenSet) + { + payload.WithObject("value", m_value.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/RuntimeSessionDataValue.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/RuntimeSessionDataValue.cpp new file mode 100644 index 00000000000..cda14f1b2ba --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/RuntimeSessionDataValue.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +RuntimeSessionDataValue::RuntimeSessionDataValue() : + m_stringValueHasBeenSet(false) +{ +} + +RuntimeSessionDataValue::RuntimeSessionDataValue(JsonView jsonValue) + : RuntimeSessionDataValue() +{ + *this = jsonValue; +} + +RuntimeSessionDataValue& RuntimeSessionDataValue::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("stringValue")) + { + m_stringValue = jsonValue.GetString("stringValue"); + + m_stringValueHasBeenSet = true; + } + + return *this; +} + +JsonValue RuntimeSessionDataValue::Jsonize() const +{ + JsonValue payload; + + if(m_stringValueHasBeenSet) + { + payload.WithString("stringValue", m_stringValue); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/SeedUrl.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/SeedUrl.cpp new file mode 100644 index 00000000000..904758ff076 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/SeedUrl.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +SeedUrl::SeedUrl() : + m_urlHasBeenSet(false) +{ +} + +SeedUrl::SeedUrl(JsonView jsonValue) + : SeedUrl() +{ + *this = jsonValue; +} + +SeedUrl& SeedUrl::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("url")) + { + m_url = jsonValue.GetString("url"); + + m_urlHasBeenSet = true; + } + + return *this; +} + +JsonValue SeedUrl::Jsonize() const +{ + JsonValue payload; + + if(m_urlHasBeenSet) + { + payload.WithString("url", m_url); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/SemanticChunkingConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/SemanticChunkingConfiguration.cpp new file mode 100644 index 00000000000..eaf4bd214c8 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/SemanticChunkingConfiguration.cpp @@ -0,0 +1,90 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +SemanticChunkingConfiguration::SemanticChunkingConfiguration() : + m_breakpointPercentileThreshold(0), + m_breakpointPercentileThresholdHasBeenSet(false), + m_bufferSize(0), + m_bufferSizeHasBeenSet(false), + m_maxTokens(0), + m_maxTokensHasBeenSet(false) +{ +} + +SemanticChunkingConfiguration::SemanticChunkingConfiguration(JsonView jsonValue) + : SemanticChunkingConfiguration() +{ + *this = jsonValue; +} + +SemanticChunkingConfiguration& SemanticChunkingConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("breakpointPercentileThreshold")) + { + m_breakpointPercentileThreshold = jsonValue.GetInteger("breakpointPercentileThreshold"); + + m_breakpointPercentileThresholdHasBeenSet = true; + } + + if(jsonValue.ValueExists("bufferSize")) + { + m_bufferSize = jsonValue.GetInteger("bufferSize"); + + m_bufferSizeHasBeenSet = true; + } + + if(jsonValue.ValueExists("maxTokens")) + { + m_maxTokens = jsonValue.GetInteger("maxTokens"); + + m_maxTokensHasBeenSet = true; + } + + return *this; +} + +JsonValue SemanticChunkingConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_breakpointPercentileThresholdHasBeenSet) + { + payload.WithInteger("breakpointPercentileThreshold", m_breakpointPercentileThreshold); + + } + + if(m_bufferSizeHasBeenSet) + { + payload.WithInteger("bufferSize", m_bufferSize); + + } + + if(m_maxTokensHasBeenSet) + { + payload.WithInteger("maxTokens", m_maxTokens); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/SessionData.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/SessionData.cpp index d426ed45651..395b8359740 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/SessionData.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/SessionData.cpp @@ -19,6 +19,7 @@ namespace Model { SessionData::SessionData() : + m_aiAgentConfigurationHasBeenSet(false), m_descriptionHasBeenSet(false), m_integrationConfigurationHasBeenSet(false), m_nameHasBeenSet(false), @@ -37,6 +38,16 @@ SessionData::SessionData(JsonView jsonValue) SessionData& SessionData::operator =(JsonView jsonValue) { + if(jsonValue.ValueExists("aiAgentConfiguration")) + { + Aws::Map aiAgentConfigurationJsonMap = jsonValue.GetObject("aiAgentConfiguration").GetAllObjects(); + for(auto& aiAgentConfigurationItem : aiAgentConfigurationJsonMap) + { + m_aiAgentConfiguration[AIAgentTypeMapper::GetAIAgentTypeForName(aiAgentConfigurationItem.first)] = aiAgentConfigurationItem.second.AsObject(); + } + m_aiAgentConfigurationHasBeenSet = true; + } + if(jsonValue.ValueExists("description")) { m_description = jsonValue.GetString("description"); @@ -96,6 +107,17 @@ JsonValue SessionData::Jsonize() const { JsonValue payload; + if(m_aiAgentConfigurationHasBeenSet) + { + JsonValue aiAgentConfigurationJsonMap; + for(auto& aiAgentConfigurationItem : m_aiAgentConfiguration) + { + aiAgentConfigurationJsonMap.WithObject(AIAgentTypeMapper::GetNameForAIAgentType(aiAgentConfigurationItem.first), aiAgentConfigurationItem.second.Jsonize()); + } + payload.WithObject("aiAgentConfiguration", std::move(aiAgentConfigurationJsonMap)); + + } + if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/SessionDataNamespace.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/SessionDataNamespace.cpp new file mode 100644 index 00000000000..ae27cc1cc3e --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/SessionDataNamespace.cpp @@ -0,0 +1,65 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace SessionDataNamespaceMapper + { + + static const int Custom_HASH = HashingUtils::HashString("Custom"); + + + SessionDataNamespace GetSessionDataNamespaceForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == Custom_HASH) + { + return SessionDataNamespace::Custom; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return SessionDataNamespace::NOT_SET; + } + + Aws::String GetNameForSessionDataNamespace(SessionDataNamespace enumValue) + { + switch(enumValue) + { + case SessionDataNamespace::NOT_SET: + return {}; + case SessionDataNamespace::Custom: + return "Custom"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace SessionDataNamespaceMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/SourceConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/SourceConfiguration.cpp index b2dac48c2b9..1e6158b2605 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/SourceConfiguration.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/SourceConfiguration.cpp @@ -19,7 +19,8 @@ namespace Model { SourceConfiguration::SourceConfiguration() : - m_appIntegrationsHasBeenSet(false) + m_appIntegrationsHasBeenSet(false), + m_managedSourceConfigurationHasBeenSet(false) { } @@ -38,6 +39,13 @@ SourceConfiguration& SourceConfiguration::operator =(JsonView jsonValue) m_appIntegrationsHasBeenSet = true; } + if(jsonValue.ValueExists("managedSourceConfiguration")) + { + m_managedSourceConfiguration = jsonValue.GetObject("managedSourceConfiguration"); + + m_managedSourceConfigurationHasBeenSet = true; + } + return *this; } @@ -51,6 +59,12 @@ JsonValue SourceConfiguration::Jsonize() const } + if(m_managedSourceConfigurationHasBeenSet) + { + payload.WithObject("managedSourceConfiguration", m_managedSourceConfiguration.Jsonize()); + + } + return payload; } diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/SourceContentDataDetails.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/SourceContentDataDetails.cpp index 8bc6f5f2c6c..9c1384b36f4 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/SourceContentDataDetails.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/SourceContentDataDetails.cpp @@ -19,6 +19,7 @@ namespace Model { SourceContentDataDetails::SourceContentDataDetails() : + m_citationSpanHasBeenSet(false), m_idHasBeenSet(false), m_rankingDataHasBeenSet(false), m_textDataHasBeenSet(false), @@ -35,6 +36,13 @@ SourceContentDataDetails::SourceContentDataDetails(JsonView jsonValue) SourceContentDataDetails& SourceContentDataDetails::operator =(JsonView jsonValue) { + if(jsonValue.ValueExists("citationSpan")) + { + m_citationSpan = jsonValue.GetObject("citationSpan"); + + m_citationSpanHasBeenSet = true; + } + if(jsonValue.ValueExists("id")) { m_id = jsonValue.GetString("id"); @@ -70,6 +78,12 @@ JsonValue SourceContentDataDetails::Jsonize() const { JsonValue payload; + if(m_citationSpanHasBeenSet) + { + payload.WithObject("citationSpan", m_citationSpan.Jsonize()); + + } + if(m_idHasBeenSet) { payload.WithString("id", m_id); diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/Status.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/Status.cpp new file mode 100644 index 00000000000..3c872471abc --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/Status.cpp @@ -0,0 +1,100 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace StatusMapper + { + + static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); + static const int CREATE_FAILED_HASH = HashingUtils::HashString("CREATE_FAILED"); + static const int ACTIVE_HASH = HashingUtils::HashString("ACTIVE"); + static const int DELETE_IN_PROGRESS_HASH = HashingUtils::HashString("DELETE_IN_PROGRESS"); + static const int DELETE_FAILED_HASH = HashingUtils::HashString("DELETE_FAILED"); + static const int DELETED_HASH = HashingUtils::HashString("DELETED"); + + + Status GetStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == CREATE_IN_PROGRESS_HASH) + { + return Status::CREATE_IN_PROGRESS; + } + else if (hashCode == CREATE_FAILED_HASH) + { + return Status::CREATE_FAILED; + } + else if (hashCode == ACTIVE_HASH) + { + return Status::ACTIVE; + } + else if (hashCode == DELETE_IN_PROGRESS_HASH) + { + return Status::DELETE_IN_PROGRESS; + } + else if (hashCode == DELETE_FAILED_HASH) + { + return Status::DELETE_FAILED; + } + else if (hashCode == DELETED_HASH) + { + return Status::DELETED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return Status::NOT_SET; + } + + Aws::String GetNameForStatus(Status enumValue) + { + switch(enumValue) + { + case Status::NOT_SET: + return {}; + case Status::CREATE_IN_PROGRESS: + return "CREATE_IN_PROGRESS"; + case Status::CREATE_FAILED: + return "CREATE_FAILED"; + case Status::ACTIVE: + return "ACTIVE"; + case Status::DELETE_IN_PROGRESS: + return "DELETE_IN_PROGRESS"; + case Status::DELETE_FAILED: + return "DELETE_FAILED"; + case Status::DELETED: + return "DELETED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace StatusMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/SyncStatus.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/SyncStatus.cpp new file mode 100644 index 00000000000..afa552ae697 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/SyncStatus.cpp @@ -0,0 +1,86 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace SyncStatusMapper + { + + static const int SYNC_FAILED_HASH = HashingUtils::HashString("SYNC_FAILED"); + static const int SYNCING_IN_PROGRESS_HASH = HashingUtils::HashString("SYNCING_IN_PROGRESS"); + static const int SYNC_SUCCESS_HASH = HashingUtils::HashString("SYNC_SUCCESS"); + static const int CREATE_IN_PROGRESS_HASH = HashingUtils::HashString("CREATE_IN_PROGRESS"); + + + SyncStatus GetSyncStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SYNC_FAILED_HASH) + { + return SyncStatus::SYNC_FAILED; + } + else if (hashCode == SYNCING_IN_PROGRESS_HASH) + { + return SyncStatus::SYNCING_IN_PROGRESS; + } + else if (hashCode == SYNC_SUCCESS_HASH) + { + return SyncStatus::SYNC_SUCCESS; + } + else if (hashCode == CREATE_IN_PROGRESS_HASH) + { + return SyncStatus::CREATE_IN_PROGRESS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return SyncStatus::NOT_SET; + } + + Aws::String GetNameForSyncStatus(SyncStatus enumValue) + { + switch(enumValue) + { + case SyncStatus::NOT_SET: + return {}; + case SyncStatus::SYNC_FAILED: + return "SYNC_FAILED"; + case SyncStatus::SYNCING_IN_PROGRESS: + return "SYNCING_IN_PROGRESS"; + case SyncStatus::SYNC_SUCCESS: + return "SYNC_SUCCESS"; + case SyncStatus::CREATE_IN_PROGRESS: + return "CREATE_IN_PROGRESS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace SyncStatusMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/TextFullAIPromptEditTemplateConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/TextFullAIPromptEditTemplateConfiguration.cpp new file mode 100644 index 00000000000..a4e9c55bdb2 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/TextFullAIPromptEditTemplateConfiguration.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +TextFullAIPromptEditTemplateConfiguration::TextFullAIPromptEditTemplateConfiguration() : + m_textHasBeenSet(false) +{ +} + +TextFullAIPromptEditTemplateConfiguration::TextFullAIPromptEditTemplateConfiguration(JsonView jsonValue) + : TextFullAIPromptEditTemplateConfiguration() +{ + *this = jsonValue; +} + +TextFullAIPromptEditTemplateConfiguration& TextFullAIPromptEditTemplateConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("text")) + { + m_text = jsonValue.GetString("text"); + + m_textHasBeenSet = true; + } + + return *this; +} + +JsonValue TextFullAIPromptEditTemplateConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_textHasBeenSet) + { + payload.WithString("text", m_text); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIAgentRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIAgentRequest.cpp new file mode 100644 index 00000000000..1d4fd1a913e --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIAgentRequest.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateAIAgentRequest::UpdateAIAgentRequest() : + m_aiAgentIdHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_configurationHasBeenSet(false), + m_descriptionHasBeenSet(false), + m_visibilityStatus(VisibilityStatus::NOT_SET), + m_visibilityStatusHasBeenSet(false) +{ +} + +Aws::String UpdateAIAgentRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_configurationHasBeenSet) + { + payload.WithObject("configuration", m_configuration.Jsonize()); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_visibilityStatusHasBeenSet) + { + payload.WithString("visibilityStatus", VisibilityStatusMapper::GetNameForVisibilityStatus(m_visibilityStatus)); + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIAgentResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIAgentResult.cpp new file mode 100644 index 00000000000..16847a37e49 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIAgentResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateAIAgentResult::UpdateAIAgentResult() +{ +} + +UpdateAIAgentResult::UpdateAIAgentResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateAIAgentResult& UpdateAIAgentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiAgent")) + { + m_aiAgent = jsonValue.GetObject("aiAgent"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIPromptRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIPromptRequest.cpp new file mode 100644 index 00000000000..6b2f4b31f7f --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIPromptRequest.cpp @@ -0,0 +1,59 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateAIPromptRequest::UpdateAIPromptRequest() : + m_aiPromptIdHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_clientToken(Aws::Utils::UUID::PseudoRandomUUID()), + m_clientTokenHasBeenSet(true), + m_descriptionHasBeenSet(false), + m_templateConfigurationHasBeenSet(false), + m_visibilityStatus(VisibilityStatus::NOT_SET), + m_visibilityStatusHasBeenSet(false) +{ +} + +Aws::String UpdateAIPromptRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_clientTokenHasBeenSet) + { + payload.WithString("clientToken", m_clientToken); + + } + + if(m_descriptionHasBeenSet) + { + payload.WithString("description", m_description); + + } + + if(m_templateConfigurationHasBeenSet) + { + payload.WithObject("templateConfiguration", m_templateConfiguration.Jsonize()); + + } + + if(m_visibilityStatusHasBeenSet) + { + payload.WithString("visibilityStatus", VisibilityStatusMapper::GetNameForVisibilityStatus(m_visibilityStatus)); + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIPromptResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIPromptResult.cpp new file mode 100644 index 00000000000..511251fac96 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAIPromptResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateAIPromptResult::UpdateAIPromptResult() +{ +} + +UpdateAIPromptResult::UpdateAIPromptResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateAIPromptResult& UpdateAIPromptResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("aiPrompt")) + { + m_aiPrompt = jsonValue.GetObject("aiPrompt"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAssistantAIAgentRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAssistantAIAgentRequest.cpp new file mode 100644 index 00000000000..ad0c0174617 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAssistantAIAgentRequest.cpp @@ -0,0 +1,43 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateAssistantAIAgentRequest::UpdateAssistantAIAgentRequest() : + m_aiAgentType(AIAgentType::NOT_SET), + m_aiAgentTypeHasBeenSet(false), + m_assistantIdHasBeenSet(false), + m_configurationHasBeenSet(false) +{ +} + +Aws::String UpdateAssistantAIAgentRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_aiAgentTypeHasBeenSet) + { + payload.WithString("aiAgentType", AIAgentTypeMapper::GetNameForAIAgentType(m_aiAgentType)); + } + + if(m_configurationHasBeenSet) + { + payload.WithObject("configuration", m_configuration.Jsonize()); + + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAssistantAIAgentResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAssistantAIAgentResult.cpp new file mode 100644 index 00000000000..9e97567ae34 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateAssistantAIAgentResult.cpp @@ -0,0 +1,48 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateAssistantAIAgentResult::UpdateAssistantAIAgentResult() +{ +} + +UpdateAssistantAIAgentResult::UpdateAssistantAIAgentResult(const Aws::AmazonWebServiceResult& result) +{ + *this = result; +} + +UpdateAssistantAIAgentResult& UpdateAssistantAIAgentResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("assistant")) + { + m_assistant = jsonValue.GetObject("assistant"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionDataRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionDataRequest.cpp new file mode 100644 index 00000000000..805e4103eb4 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionDataRequest.cpp @@ -0,0 +1,49 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +UpdateSessionDataRequest::UpdateSessionDataRequest() : + m_assistantIdHasBeenSet(false), + m_dataHasBeenSet(false), + m_namespace(SessionDataNamespace::NOT_SET), + m_namespaceHasBeenSet(false), + m_sessionIdHasBeenSet(false) +{ +} + +Aws::String UpdateSessionDataRequest::SerializePayload() const +{ + JsonValue payload; + + if(m_dataHasBeenSet) + { + Aws::Utils::Array dataJsonList(m_data.size()); + for(unsigned dataIndex = 0; dataIndex < dataJsonList.GetLength(); ++dataIndex) + { + dataJsonList[dataIndex].AsObject(m_data[dataIndex].Jsonize()); + } + payload.WithArray("data", std::move(dataJsonList)); + + } + + if(m_namespaceHasBeenSet) + { + payload.WithString("namespace", SessionDataNamespaceMapper::GetNameForSessionDataNamespace(m_namespace)); + } + + return payload.View().WriteReadable(); +} + + + + diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionDataResult.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionDataResult.cpp new file mode 100644 index 00000000000..879ac208706 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionDataResult.cpp @@ -0,0 +1,71 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include +#include +#include + +#include + +using namespace Aws::QConnect::Model; +using namespace Aws::Utils::Json; +using namespace Aws::Utils; +using namespace Aws; + +UpdateSessionDataResult::UpdateSessionDataResult() : + m_namespace(SessionDataNamespace::NOT_SET) +{ +} + +UpdateSessionDataResult::UpdateSessionDataResult(const Aws::AmazonWebServiceResult& result) + : UpdateSessionDataResult() +{ + *this = result; +} + +UpdateSessionDataResult& UpdateSessionDataResult::operator =(const Aws::AmazonWebServiceResult& result) +{ + JsonView jsonValue = result.GetPayload().View(); + if(jsonValue.ValueExists("data")) + { + Aws::Utils::Array dataJsonList = jsonValue.GetArray("data"); + for(unsigned dataIndex = 0; dataIndex < dataJsonList.GetLength(); ++dataIndex) + { + m_data.push_back(dataJsonList[dataIndex].AsObject()); + } + } + + if(jsonValue.ValueExists("namespace")) + { + m_namespace = SessionDataNamespaceMapper::GetSessionDataNamespaceForName(jsonValue.GetString("namespace")); + + } + + if(jsonValue.ValueExists("sessionArn")) + { + m_sessionArn = jsonValue.GetString("sessionArn"); + + } + + if(jsonValue.ValueExists("sessionId")) + { + m_sessionId = jsonValue.GetString("sessionId"); + + } + + + const auto& headers = result.GetHeaderValueCollection(); + const auto& requestIdIter = headers.find("x-amzn-requestid"); + if(requestIdIter != headers.end()) + { + m_requestId = requestIdIter->second; + } + + + return *this; +} diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionRequest.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionRequest.cpp index 80ce0a4d277..edd64ca0324 100644 --- a/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionRequest.cpp +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/UpdateSessionRequest.cpp @@ -13,6 +13,7 @@ using namespace Aws::Utils::Json; using namespace Aws::Utils; UpdateSessionRequest::UpdateSessionRequest() : + m_aiAgentConfigurationHasBeenSet(false), m_assistantIdHasBeenSet(false), m_descriptionHasBeenSet(false), m_sessionIdHasBeenSet(false), @@ -24,6 +25,17 @@ Aws::String UpdateSessionRequest::SerializePayload() const { JsonValue payload; + if(m_aiAgentConfigurationHasBeenSet) + { + JsonValue aiAgentConfigurationJsonMap; + for(auto& aiAgentConfigurationItem : m_aiAgentConfiguration) + { + aiAgentConfigurationJsonMap.WithObject(AIAgentTypeMapper::GetNameForAIAgentType(aiAgentConfigurationItem.first), aiAgentConfigurationItem.second.Jsonize()); + } + payload.WithObject("aiAgentConfiguration", std::move(aiAgentConfigurationJsonMap)); + + } + if(m_descriptionHasBeenSet) { payload.WithString("description", m_description); diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/UrlConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/UrlConfiguration.cpp new file mode 100644 index 00000000000..110d3360ad3 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/UrlConfiguration.cpp @@ -0,0 +1,67 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +UrlConfiguration::UrlConfiguration() : + m_seedUrlsHasBeenSet(false) +{ +} + +UrlConfiguration::UrlConfiguration(JsonView jsonValue) + : UrlConfiguration() +{ + *this = jsonValue; +} + +UrlConfiguration& UrlConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("seedUrls")) + { + Aws::Utils::Array seedUrlsJsonList = jsonValue.GetArray("seedUrls"); + for(unsigned seedUrlsIndex = 0; seedUrlsIndex < seedUrlsJsonList.GetLength(); ++seedUrlsIndex) + { + m_seedUrls.push_back(seedUrlsJsonList[seedUrlsIndex].AsObject()); + } + m_seedUrlsHasBeenSet = true; + } + + return *this; +} + +JsonValue UrlConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_seedUrlsHasBeenSet) + { + Aws::Utils::Array seedUrlsJsonList(m_seedUrls.size()); + for(unsigned seedUrlsIndex = 0; seedUrlsIndex < seedUrlsJsonList.GetLength(); ++seedUrlsIndex) + { + seedUrlsJsonList[seedUrlsIndex].AsObject(m_seedUrls[seedUrlsIndex].Jsonize()); + } + payload.WithArray("seedUrls", std::move(seedUrlsJsonList)); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/VectorIngestionConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/VectorIngestionConfiguration.cpp new file mode 100644 index 00000000000..304292c10d5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/VectorIngestionConfiguration.cpp @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +VectorIngestionConfiguration::VectorIngestionConfiguration() : + m_chunkingConfigurationHasBeenSet(false), + m_parsingConfigurationHasBeenSet(false) +{ +} + +VectorIngestionConfiguration::VectorIngestionConfiguration(JsonView jsonValue) + : VectorIngestionConfiguration() +{ + *this = jsonValue; +} + +VectorIngestionConfiguration& VectorIngestionConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("chunkingConfiguration")) + { + m_chunkingConfiguration = jsonValue.GetObject("chunkingConfiguration"); + + m_chunkingConfigurationHasBeenSet = true; + } + + if(jsonValue.ValueExists("parsingConfiguration")) + { + m_parsingConfiguration = jsonValue.GetObject("parsingConfiguration"); + + m_parsingConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue VectorIngestionConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_chunkingConfigurationHasBeenSet) + { + payload.WithObject("chunkingConfiguration", m_chunkingConfiguration.Jsonize()); + + } + + if(m_parsingConfigurationHasBeenSet) + { + payload.WithObject("parsingConfiguration", m_parsingConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/VisibilityStatus.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/VisibilityStatus.cpp new file mode 100644 index 00000000000..7f019307ca5 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/VisibilityStatus.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace VisibilityStatusMapper + { + + static const int SAVED_HASH = HashingUtils::HashString("SAVED"); + static const int PUBLISHED_HASH = HashingUtils::HashString("PUBLISHED"); + + + VisibilityStatus GetVisibilityStatusForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == SAVED_HASH) + { + return VisibilityStatus::SAVED; + } + else if (hashCode == PUBLISHED_HASH) + { + return VisibilityStatus::PUBLISHED; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return VisibilityStatus::NOT_SET; + } + + Aws::String GetNameForVisibilityStatus(VisibilityStatus enumValue) + { + switch(enumValue) + { + case VisibilityStatus::NOT_SET: + return {}; + case VisibilityStatus::SAVED: + return "SAVED"; + case VisibilityStatus::PUBLISHED: + return "PUBLISHED"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace VisibilityStatusMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/WebCrawlerConfiguration.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/WebCrawlerConfiguration.cpp new file mode 100644 index 00000000000..9bded6722f9 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/WebCrawlerConfiguration.cpp @@ -0,0 +1,131 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +WebCrawlerConfiguration::WebCrawlerConfiguration() : + m_crawlerLimitsHasBeenSet(false), + m_exclusionFiltersHasBeenSet(false), + m_inclusionFiltersHasBeenSet(false), + m_scope(WebScopeType::NOT_SET), + m_scopeHasBeenSet(false), + m_urlConfigurationHasBeenSet(false) +{ +} + +WebCrawlerConfiguration::WebCrawlerConfiguration(JsonView jsonValue) + : WebCrawlerConfiguration() +{ + *this = jsonValue; +} + +WebCrawlerConfiguration& WebCrawlerConfiguration::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("crawlerLimits")) + { + m_crawlerLimits = jsonValue.GetObject("crawlerLimits"); + + m_crawlerLimitsHasBeenSet = true; + } + + if(jsonValue.ValueExists("exclusionFilters")) + { + Aws::Utils::Array exclusionFiltersJsonList = jsonValue.GetArray("exclusionFilters"); + for(unsigned exclusionFiltersIndex = 0; exclusionFiltersIndex < exclusionFiltersJsonList.GetLength(); ++exclusionFiltersIndex) + { + m_exclusionFilters.push_back(exclusionFiltersJsonList[exclusionFiltersIndex].AsString()); + } + m_exclusionFiltersHasBeenSet = true; + } + + if(jsonValue.ValueExists("inclusionFilters")) + { + Aws::Utils::Array inclusionFiltersJsonList = jsonValue.GetArray("inclusionFilters"); + for(unsigned inclusionFiltersIndex = 0; inclusionFiltersIndex < inclusionFiltersJsonList.GetLength(); ++inclusionFiltersIndex) + { + m_inclusionFilters.push_back(inclusionFiltersJsonList[inclusionFiltersIndex].AsString()); + } + m_inclusionFiltersHasBeenSet = true; + } + + if(jsonValue.ValueExists("scope")) + { + m_scope = WebScopeTypeMapper::GetWebScopeTypeForName(jsonValue.GetString("scope")); + + m_scopeHasBeenSet = true; + } + + if(jsonValue.ValueExists("urlConfiguration")) + { + m_urlConfiguration = jsonValue.GetObject("urlConfiguration"); + + m_urlConfigurationHasBeenSet = true; + } + + return *this; +} + +JsonValue WebCrawlerConfiguration::Jsonize() const +{ + JsonValue payload; + + if(m_crawlerLimitsHasBeenSet) + { + payload.WithObject("crawlerLimits", m_crawlerLimits.Jsonize()); + + } + + if(m_exclusionFiltersHasBeenSet) + { + Aws::Utils::Array exclusionFiltersJsonList(m_exclusionFilters.size()); + for(unsigned exclusionFiltersIndex = 0; exclusionFiltersIndex < exclusionFiltersJsonList.GetLength(); ++exclusionFiltersIndex) + { + exclusionFiltersJsonList[exclusionFiltersIndex].AsString(m_exclusionFilters[exclusionFiltersIndex]); + } + payload.WithArray("exclusionFilters", std::move(exclusionFiltersJsonList)); + + } + + if(m_inclusionFiltersHasBeenSet) + { + Aws::Utils::Array inclusionFiltersJsonList(m_inclusionFilters.size()); + for(unsigned inclusionFiltersIndex = 0; inclusionFiltersIndex < inclusionFiltersJsonList.GetLength(); ++inclusionFiltersIndex) + { + inclusionFiltersJsonList[inclusionFiltersIndex].AsString(m_inclusionFilters[inclusionFiltersIndex]); + } + payload.WithArray("inclusionFilters", std::move(inclusionFiltersJsonList)); + + } + + if(m_scopeHasBeenSet) + { + payload.WithString("scope", WebScopeTypeMapper::GetNameForWebScopeType(m_scope)); + } + + if(m_urlConfigurationHasBeenSet) + { + payload.WithObject("urlConfiguration", m_urlConfiguration.Jsonize()); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/WebCrawlerLimits.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/WebCrawlerLimits.cpp new file mode 100644 index 00000000000..cc8cfe4bf2d --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/WebCrawlerLimits.cpp @@ -0,0 +1,60 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include + +#include + +using namespace Aws::Utils::Json; +using namespace Aws::Utils; + +namespace Aws +{ +namespace QConnect +{ +namespace Model +{ + +WebCrawlerLimits::WebCrawlerLimits() : + m_rateLimit(0), + m_rateLimitHasBeenSet(false) +{ +} + +WebCrawlerLimits::WebCrawlerLimits(JsonView jsonValue) + : WebCrawlerLimits() +{ + *this = jsonValue; +} + +WebCrawlerLimits& WebCrawlerLimits::operator =(JsonView jsonValue) +{ + if(jsonValue.ValueExists("rateLimit")) + { + m_rateLimit = jsonValue.GetInteger("rateLimit"); + + m_rateLimitHasBeenSet = true; + } + + return *this; +} + +JsonValue WebCrawlerLimits::Jsonize() const +{ + JsonValue payload; + + if(m_rateLimitHasBeenSet) + { + payload.WithInteger("rateLimit", m_rateLimit); + + } + + return payload; +} + +} // namespace Model +} // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-qconnect/source/model/WebScopeType.cpp b/generated/src/aws-cpp-sdk-qconnect/source/model/WebScopeType.cpp new file mode 100644 index 00000000000..56671df3e32 --- /dev/null +++ b/generated/src/aws-cpp-sdk-qconnect/source/model/WebScopeType.cpp @@ -0,0 +1,72 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include +#include +#include +#include + +using namespace Aws::Utils; + + +namespace Aws +{ + namespace QConnect + { + namespace Model + { + namespace WebScopeTypeMapper + { + + static const int HOST_ONLY_HASH = HashingUtils::HashString("HOST_ONLY"); + static const int SUBDOMAINS_HASH = HashingUtils::HashString("SUBDOMAINS"); + + + WebScopeType GetWebScopeTypeForName(const Aws::String& name) + { + int hashCode = HashingUtils::HashString(name.c_str()); + if (hashCode == HOST_ONLY_HASH) + { + return WebScopeType::HOST_ONLY; + } + else if (hashCode == SUBDOMAINS_HASH) + { + return WebScopeType::SUBDOMAINS; + } + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + overflowContainer->StoreOverflow(hashCode, name); + return static_cast(hashCode); + } + + return WebScopeType::NOT_SET; + } + + Aws::String GetNameForWebScopeType(WebScopeType enumValue) + { + switch(enumValue) + { + case WebScopeType::NOT_SET: + return {}; + case WebScopeType::HOST_ONLY: + return "HOST_ONLY"; + case WebScopeType::SUBDOMAINS: + return "SUBDOMAINS"; + default: + EnumParseOverflowContainer* overflowContainer = Aws::GetEnumOverflowContainer(); + if(overflowContainer) + { + return overflowContainer->RetrieveOverflow(static_cast(enumValue)); + } + + return {}; + } + } + + } // namespace WebScopeTypeMapper + } // namespace Model + } // namespace QConnect +} // namespace Aws diff --git a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/EnableLoggingRequest.h b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/EnableLoggingRequest.h index 95dfcd8a487..f400d6b813f 100644 --- a/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/EnableLoggingRequest.h +++ b/generated/src/aws-cpp-sdk-redshift/include/aws/redshift/model/EnableLoggingRequest.h @@ -75,12 +75,12 @@ namespace Model ///@{ /** - *

    The prefix applied to the log file names.

    Constraints:

    • - *

      Cannot exceed 512 characters

    • Cannot contain spaces( ), - * double quotes ("), single quotes ('), a backslash (\), or control characters. - * The hexadecimal codes for invalid characters are:

      • x00 to - * x20

      • x22

      • x27

      • x5c

      • - *
      • x7f or larger

    + *

    The prefix applied to the log file names.

    Valid characters are any + * letter from any language, any whitespace character, any numeric character, and + * the following characters: underscore (_), period (.), + * colon (:), slash (/), equal (=), plus + * (+), backslash (\), hyphen (-), at symbol + * (@).

    */ inline const Aws::String& GetS3KeyPrefix() const{ return m_s3KeyPrefix; } inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; } diff --git a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h index 0ad23bdfad1..c3c66e84f2c 100644 --- a/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h +++ b/src/aws-cpp-sdk-core/include/aws/core/VersionConfig.h @@ -4,7 +4,7 @@ */ #pragma once -#define AWS_SDK_VERSION_STRING "1.11.420" +#define AWS_SDK_VERSION_STRING "1.11.421" #define AWS_SDK_VERSION_MAJOR 1 #define AWS_SDK_VERSION_MINOR 11 -#define AWS_SDK_VERSION_PATCH 420 +#define AWS_SDK_VERSION_PATCH 421 diff --git a/tools/code-generation/api-descriptions/deadline-2023-10-12.normal.json b/tools/code-generation/api-descriptions/deadline-2023-10-12.normal.json index d4efd087827..01ab8d21225 100644 --- a/tools/code-generation/api-descriptions/deadline-2023-10-12.normal.json +++ b/tools/code-generation/api-descriptions/deadline-2023-10-12.normal.json @@ -1218,6 +1218,25 @@ "documentation":"

    Lists members on a job.

    ", "endpoint":{"hostPrefix":"management."} }, + "ListJobParameterDefinitions":{ + "name":"ListJobParameterDefinitions", + "http":{ + "method":"GET", + "requestUri":"/2023-10-12/farms/{farmId}/queues/{queueId}/jobs/{jobId}/parameter-definitions", + "responseCode":200 + }, + "input":{"shape":"ListJobParameterDefinitionsRequest"}, + "output":{"shape":"ListJobParameterDefinitionsResponse"}, + "errors":[ + {"shape":"AccessDeniedException"}, + {"shape":"InternalServerErrorException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"}, + {"shape":"ValidationException"} + ], + "documentation":"

    Lists parameter definitions of a job.

    ", + "endpoint":{"hostPrefix":"management."} + }, "ListJobs":{ "name":"ListJobs", "http":{ @@ -3203,8 +3222,6 @@ "required":[ "farmId", "queueId", - "template", - "templateType", "priority" ], "members":{ @@ -3262,6 +3279,10 @@ "maxRetriesPerTask":{ "shape":"MaxRetriesPerTask", "documentation":"

    The maximum number of retries for each task.

    " + }, + "sourceJobId":{ + "shape":"JobId", + "documentation":"

    The job ID for the source job.

    " } } }, @@ -5211,6 +5232,10 @@ "description":{ "shape":"JobDescription", "documentation":"

    The description of the job.

    This field can store any content. Escape or encode this content before displaying it on a webpage or any other system that might interpret the content of this field.

    " + }, + "sourceJobId":{ + "shape":"JobId", + "documentation":"

    The job ID for the source job.

    " } } }, @@ -6693,6 +6718,16 @@ "documentation":"

    The details of job parameters.

    ", "union":true }, + "JobParameterDefinition":{ + "type":"structure", + "members":{ + }, + "document":true + }, + "JobParameterDefinitions":{ + "type":"list", + "member":{"shape":"JobParameterDefinition"} + }, "JobParameters":{ "type":"map", "key":{"shape":"String"}, @@ -6794,6 +6829,10 @@ "jobParameters":{ "shape":"JobParameters", "documentation":"

    The job parameters.

    " + }, + "sourceJobId":{ + "shape":"JobId", + "documentation":"

    The job ID for the source job.

    " } }, "documentation":"

    The details of a job search.

    " @@ -6877,6 +6916,10 @@ "maxRetriesPerTask":{ "shape":"MaxRetriesPerTask", "documentation":"

    The maximum number of retries for a job.

    " + }, + "sourceJobId":{ + "shape":"JobId", + "documentation":"

    The job ID for the source job.

    " } }, "documentation":"

    A summary of job details.

    " @@ -7260,6 +7303,60 @@ } } }, + "ListJobParameterDefinitionsRequest":{ + "type":"structure", + "required":[ + "farmId", + "jobId", + "queueId" + ], + "members":{ + "farmId":{ + "shape":"FarmId", + "documentation":"

    The farm ID of the job to list.

    ", + "location":"uri", + "locationName":"farmId" + }, + "jobId":{ + "shape":"JobId", + "documentation":"

    The job ID to include on the list.

    ", + "location":"uri", + "locationName":"jobId" + }, + "queueId":{ + "shape":"QueueId", + "documentation":"

    The queue ID to include on the list.

    ", + "location":"uri", + "locationName":"queueId" + }, + "nextToken":{ + "shape":"String", + "documentation":"

    The token for the next set of results, or null to start from the beginning.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return. Use this parameter with NextToken to get results as a set of sequential pages.

    ", + "location":"querystring", + "locationName":"maxResults" + } + } + }, + "ListJobParameterDefinitionsResponse":{ + "type":"structure", + "required":["jobParameterDefinitions"], + "members":{ + "jobParameterDefinitions":{ + "shape":"JobParameterDefinitions", + "documentation":"

    Lists parameter definitions of a job.

    " + }, + "nextToken":{ + "shape":"String", + "documentation":"

    If Deadline Cloud returns nextToken, then there are more results available. The value of nextToken is a unique pagination token for each page. To retrieve the next page, call the operation again using the returned token. Keep all other arguments unchanged. If no results remain, then nextToken is set to null. Each pagination token expires after 24 hours. If you provide a token that isn't valid, then you receive an HTTP 400 ValidationException error.

    " + } + } + }, "ListJobsRequest":{ "type":"structure", "required":[ diff --git a/tools/code-generation/api-descriptions/marketplace-reporting-2018-05-10.normal.json b/tools/code-generation/api-descriptions/marketplace-reporting-2018-05-10.normal.json index cbbd0a0a77c..1e5917599aa 100644 --- a/tools/code-generation/api-descriptions/marketplace-reporting-2018-05-10.normal.json +++ b/tools/code-generation/api-descriptions/marketplace-reporting-2018-05-10.normal.json @@ -28,7 +28,7 @@ {"shape":"BadRequestException"}, {"shape":"UnauthorizedException"} ], - "documentation":"

    Generates an embedding URL for an Amazon QuickSight dashboard for an anonymous user.

    The following rules apply to a generated URL:

    • It contains a temporary bearer token, valid for 5 minutes after it is generated. Once redeemed within that period, it cannot be re-used again.

    • It has a session lifetime of one hour. The 5-minute validity period runs separately from the session lifetime.

    " + "documentation":"

    Generates an embedding URL for an Amazon QuickSight dashboard for an anonymous user.

    This API is available only to Amazon Web Services Organization management accounts or delegated administrators registered for the procurement insights (procurement-insights.marketplace.amazonaws.com) feature.

    The following rules apply to a generated URL:

    • It contains a temporary bearer token, valid for 5 minutes after it is generated. Once redeemed within that period, it cannot be re-used again.

    • It has a session lifetime of one hour. The 5-minute validity period runs separately from the session lifetime.

    " } }, "shapes":{ @@ -137,5 +137,5 @@ "exception":true } }, - "documentation":"

    The AWS Marketplace GetBuyerDashboard API enables you to get a procurement insights dashboard programmatically. The API gets the agreement and cost analysis dashboards with data for all of the Amazon Web Services accounts in your Amazon Web Services organization.

    To use the API, you must complete the following prerequisites:

    " + "documentation":"

    The Amazon Web Services Marketplace GetBuyerDashboard API enables you to get a procurement insights dashboard programmatically. The API gets the agreement and cost analysis dashboards with data for all of the Amazon Web Services accounts in your Amazon Web Services Organization.

    To use the Amazon Web Services Marketplace Reporting API, you must complete the following prerequisites:

    • Enable all features for your organization. For more information, see Enabling all features for an organization with Organizations, in the Organizations User Guide.

    • Call the service as the Organizations management account or an account registered as a delegated administrator for the procurement insights service.

      For more information about management accounts, see Tutorial: Creating and configuring an organization and Managing the management account with Organizations, both in the Organizations User Guide.

      For more information about delegated administrators, see Using delegated administrators, in the Amazon Web Services Marketplace Buyer Guide.

    • Create an IAM policy that enables the aws-marketplace:GetBuyerDashboard and organizations:DescribeOrganization permissions. In addition, the management account requires the organizations:EnableAWSServiceAccess and iam:CreateServiceLinkedRole permissions to create. For more information about creating the policy, see Policies and permissions in Identity and Access Management, in the IAM User Guide.

      Access can be shared only by registering the desired linked account as a delegated administrator. That requires organizations:RegisterDelegatedAdministrator organizations:ListDelegatedAdministrators and organizations:DeregisterDelegatedAdministrator permissions.

    • Use the Amazon Web Services Marketplace console to create the AWSServiceRoleForProcurementInsightsPolicy service-linked role. The role enables Amazon Web Services Marketplace procurement visibility integration. The management account requires an IAM policy with the organizations:EnableAWSServiceAccess and iam:CreateServiceLinkedRole permissions to create the service-linked role and enable the service access. For more information, see Granting access to Organizations and Service-linked role to share procurement data in the Amazon Web Services Marketplace Buyer Guide.

    • After creating the service-linked role, you must enable trusted access that grants Amazon Web Services Marketplace permission to access data from your Organizations. For more information, see Granting access to Organizations in the Amazon Web Services Marketplace Buyer Guide.

    " } diff --git a/tools/code-generation/api-descriptions/qconnect-2020-10-19.normal.json b/tools/code-generation/api-descriptions/qconnect-2020-10-19.normal.json index 15c7ce6101e..324e5014c22 100644 --- a/tools/code-generation/api-descriptions/qconnect-2020-10-19.normal.json +++ b/tools/code-generation/api-descriptions/qconnect-2020-10-19.normal.json @@ -5,13 +5,95 @@ "endpointPrefix":"wisdom", "jsonVersion":"1.1", "protocol":"rest-json", + "protocols":["rest-json"], "serviceFullName":"Amazon Q Connect", "serviceId":"QConnect", "signatureVersion":"v4", "signingName":"wisdom", - "uid":"qconnect-2020-10-19" + "uid":"qconnect-2020-10-19", + "auth":["aws.auth#sigv4"] }, "operations":{ + "CreateAIAgent":{ + "name":"CreateAIAgent", + "http":{ + "method":"POST", + "requestUri":"/assistants/{assistantId}/aiagents", + "responseCode":200 + }, + "input":{"shape":"CreateAIAgentRequest"}, + "output":{"shape":"CreateAIAgentResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Creates an Amazon Q in Connect AI Agent.

    ", + "idempotent":true + }, + "CreateAIAgentVersion":{ + "name":"CreateAIAgentVersion", + "http":{ + "method":"POST", + "requestUri":"/assistants/{assistantId}/aiagents/{aiAgentId}/versions", + "responseCode":200 + }, + "input":{"shape":"CreateAIAgentVersionRequest"}, + "output":{"shape":"CreateAIAgentVersionResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Creates and Amazon Q in Connect AI Agent version.

    ", + "idempotent":true + }, + "CreateAIPrompt":{ + "name":"CreateAIPrompt", + "http":{ + "method":"POST", + "requestUri":"/assistants/{assistantId}/aiprompts", + "responseCode":200 + }, + "input":{"shape":"CreateAIPromptRequest"}, + "output":{"shape":"CreateAIPromptResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Creates an Amazon Q in Connect AI Prompt.

    ", + "idempotent":true + }, + "CreateAIPromptVersion":{ + "name":"CreateAIPromptVersion", + "http":{ + "method":"POST", + "requestUri":"/assistants/{assistantId}/aiprompts/{aiPromptId}/versions", + "responseCode":200 + }, + "input":{"shape":"CreateAIPromptVersionRequest"}, + "output":{"shape":"CreateAIPromptVersionResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"ServiceQuotaExceededException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Creates an Amazon Q in Connect AI Prompt version.

    ", + "idempotent":true + }, "CreateAssistant":{ "name":"CreateAssistant", "http":{ @@ -142,6 +224,80 @@ "documentation":"

    Creates a session. A session is a contextual container used for generating recommendations. Amazon Connect creates a new Amazon Q in Connect session for each contact on which Amazon Q in Connect is enabled.

    ", "idempotent":true }, + "DeleteAIAgent":{ + "name":"DeleteAIAgent", + "http":{ + "method":"DELETE", + "requestUri":"/assistants/{assistantId}/aiagents/{aiAgentId}", + "responseCode":204 + }, + "input":{"shape":"DeleteAIAgentRequest"}, + "output":{"shape":"DeleteAIAgentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes an Amazon Q in Connect AI Agent.

    ", + "idempotent":true + }, + "DeleteAIAgentVersion":{ + "name":"DeleteAIAgentVersion", + "http":{ + "method":"DELETE", + "requestUri":"/assistants/{assistantId}/aiagents/{aiAgentId}/versions/{versionNumber}", + "responseCode":204 + }, + "input":{"shape":"DeleteAIAgentVersionRequest"}, + "output":{"shape":"DeleteAIAgentVersionResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes an Amazon Q in Connect AI Agent Version.

    ", + "idempotent":true + }, + "DeleteAIPrompt":{ + "name":"DeleteAIPrompt", + "http":{ + "method":"DELETE", + "requestUri":"/assistants/{assistantId}/aiprompts/{aiPromptId}", + "responseCode":204 + }, + "input":{"shape":"DeleteAIPromptRequest"}, + "output":{"shape":"DeleteAIPromptResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Deletes an Amazon Q in Connect AI Prompt.

    ", + "idempotent":true + }, + "DeleteAIPromptVersion":{ + "name":"DeleteAIPromptVersion", + "http":{ + "method":"DELETE", + "requestUri":"/assistants/{assistantId}/aiprompts/{aiPromptId}/versions/{versionNumber}", + "responseCode":204 + }, + "input":{"shape":"DeleteAIPromptVersionRequest"}, + "output":{"shape":"DeleteAIPromptVersionResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Delete and Amazon Q in Connect AI Prompt version.

    ", + "idempotent":true + }, "DeleteAssistant":{ "name":"DeleteAssistant", "http":{ @@ -263,6 +419,40 @@ "documentation":"

    Deletes a quick response.

    ", "idempotent":true }, + "GetAIAgent":{ + "name":"GetAIAgent", + "http":{ + "method":"GET", + "requestUri":"/assistants/{assistantId}/aiagents/{aiAgentId}", + "responseCode":200 + }, + "input":{"shape":"GetAIAgentRequest"}, + "output":{"shape":"GetAIAgentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets an Amazon Q in Connect AI Agent.

    " + }, + "GetAIPrompt":{ + "name":"GetAIPrompt", + "http":{ + "method":"GET", + "requestUri":"/assistants/{assistantId}/aiprompts/{aiPromptId}", + "responseCode":200 + }, + "input":{"shape":"GetAIPromptRequest"}, + "output":{"shape":"GetAIPromptResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Gets and Amazon Q in Connect AI Prompt.

    " + }, "GetAssistant":{ "name":"GetAssistant", "http":{ @@ -425,6 +615,74 @@ ], "documentation":"

    Retrieves information for a specified session.

    " }, + "ListAIAgentVersions":{ + "name":"ListAIAgentVersions", + "http":{ + "method":"GET", + "requestUri":"/assistants/{assistantId}/aiagents/{aiAgentId}/versions", + "responseCode":200 + }, + "input":{"shape":"ListAIAgentVersionsRequest"}, + "output":{"shape":"ListAIAgentVersionsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    List AI Agent versions.

    " + }, + "ListAIAgents":{ + "name":"ListAIAgents", + "http":{ + "method":"GET", + "requestUri":"/assistants/{assistantId}/aiagents", + "responseCode":200 + }, + "input":{"shape":"ListAIAgentsRequest"}, + "output":{"shape":"ListAIAgentsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Lists AI Agents.

    " + }, + "ListAIPromptVersions":{ + "name":"ListAIPromptVersions", + "http":{ + "method":"GET", + "requestUri":"/assistants/{assistantId}/aiprompts/{aiPromptId}/versions", + "responseCode":200 + }, + "input":{"shape":"ListAIPromptVersionsRequest"}, + "output":{"shape":"ListAIPromptVersionsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Lists AI Prompt versions.

    " + }, + "ListAIPrompts":{ + "name":"ListAIPrompts", + "http":{ + "method":"GET", + "requestUri":"/assistants/{assistantId}/aiprompts", + "responseCode":200 + }, + "input":{"shape":"ListAIPromptsRequest"}, + "output":{"shape":"ListAIPromptsResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Lists the AI Prompts available on the Amazon Q in Connect assistant.

    " + }, "ListAssistantAssociations":{ "name":"ListAssistantAssociations", "http":{ @@ -601,6 +859,24 @@ "deprecated":true, "deprecatedMessage":"QueryAssistant API will be discontinued starting June 1, 2024. To receive generative responses after March 1, 2024 you will need to create a new Assistant in the Connect console and integrate the Amazon Q in Connect JavaScript library (amazon-q-connectjs) into your applications." }, + "RemoveAssistantAIAgent":{ + "name":"RemoveAssistantAIAgent", + "http":{ + "method":"DELETE", + "requestUri":"/assistants/{assistantId}/aiagentConfiguration", + "responseCode":204 + }, + "input":{"shape":"RemoveAssistantAIAgentRequest"}, + "output":{"shape":"RemoveAssistantAIAgentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Removes the AI Agent that is set for use by defafult on an Amazon Q in Connect Assistant.

    ", + "idempotent":true + }, "RemoveKnowledgeBaseTemplateUri":{ "name":"RemoveKnowledgeBaseTemplateUri", "http":{ @@ -732,6 +1008,61 @@ "documentation":"

    Removes the specified tags from the specified resource.

    ", "idempotent":true }, + "UpdateAIAgent":{ + "name":"UpdateAIAgent", + "http":{ + "method":"POST", + "requestUri":"/assistants/{assistantId}/aiagents/{aiAgentId}", + "responseCode":200 + }, + "input":{"shape":"UpdateAIAgentRequest"}, + "output":{"shape":"UpdateAIAgentResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Updates an AI Agent.

    ", + "idempotent":true + }, + "UpdateAIPrompt":{ + "name":"UpdateAIPrompt", + "http":{ + "method":"POST", + "requestUri":"/assistants/{assistantId}/aiprompts/{aiPromptId}", + "responseCode":200 + }, + "input":{"shape":"UpdateAIPromptRequest"}, + "output":{"shape":"UpdateAIPromptResponse"}, + "errors":[ + {"shape":"ConflictException"}, + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Updates an AI Prompt.

    ", + "idempotent":true + }, + "UpdateAssistantAIAgent":{ + "name":"UpdateAssistantAIAgent", + "http":{ + "method":"POST", + "requestUri":"/assistants/{assistantId}/aiagentConfiguration", + "responseCode":200 + }, + "input":{"shape":"UpdateAssistantAIAgentRequest"}, + "output":{"shape":"UpdateAssistantAIAgentResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"}, + {"shape":"ThrottlingException"} + ], + "documentation":"

    Updates the AI Agent that is set for use by defafult on an Amazon Q in Connect Assistant.

    " + }, "UpdateContent":{ "name":"UpdateContent", "http":{ @@ -798,42 +1129,497 @@ {"shape":"ResourceNotFoundException"} ], "documentation":"

    Updates a session. A session is a contextual container used for generating recommendations. Amazon Connect updates the existing Amazon Q in Connect session for each contact on which Amazon Q in Connect is enabled.

    " + }, + "UpdateSessionData":{ + "name":"UpdateSessionData", + "http":{ + "method":"PATCH", + "requestUri":"/assistants/{assistantId}/sessions/{sessionId}/data", + "responseCode":200 + }, + "input":{"shape":"UpdateSessionDataRequest"}, + "output":{"shape":"UpdateSessionDataResponse"}, + "errors":[ + {"shape":"ValidationException"}, + {"shape":"AccessDeniedException"}, + {"shape":"ResourceNotFoundException"} + ], + "documentation":"

    Updates the data stored on an Amazon Q in Connect Session.

    " } }, "shapes":{ - "AccessDeniedException":{ + "AIAgentAssociationConfigurationType":{ + "type":"string", + "enum":["KNOWLEDGE_BASE"] + }, + "AIAgentConfiguration":{ "type":"structure", "members":{ - "message":{"shape":"String"} - }, - "documentation":"

    You do not have sufficient access to perform this action.

    ", - "error":{ - "httpStatusCode":403, - "senderFault":true + "answerRecommendationAIAgentConfiguration":{ + "shape":"AnswerRecommendationAIAgentConfiguration", + "documentation":"

    The configuration for AI Agents of type ANSWER_RECOMMENDATION.

    " + }, + "manualSearchAIAgentConfiguration":{ + "shape":"ManualSearchAIAgentConfiguration", + "documentation":"

    The configuration for AI Agents of type MANUAL_SEARCH.

    " + } }, - "exception":true + "documentation":"

    A typed union that specifies the configuration based on the type of AI Agent.

    ", + "union":true }, - "AmazonConnectGuideAssociationData":{ + "AIAgentConfigurationData":{ "type":"structure", + "required":["aiAgentId"], "members":{ - "flowId":{ - "shape":"GenericArn", - "documentation":"

    The Amazon Resource Name (ARN) of an Amazon Connect flow. Step-by-step guides are a type of flow.

    " + "aiAgentId":{ + "shape":"UuidWithQualifier", + "documentation":"

    The ID of the AI Agent to be configured.

    " } }, - "documentation":"

    Content association data for a step-by-step guide.

    " + "documentation":"

    A type that specifies the AI Agent ID configuration data when mapping an AI Agents to be used for an AI Agent type on a session or assistant.

    " }, - "AndConditions":{ - "type":"list", - "member":{"shape":"TagCondition"} + "AIAgentConfigurationMap":{ + "type":"map", + "key":{"shape":"AIAgentType"}, + "value":{"shape":"AIAgentConfigurationData"} }, - "AppIntegrationsConfiguration":{ + "AIAgentData":{ "type":"structure", - "required":["appIntegrationArn"], - "members":{ + "required":[ + "aiAgentArn", + "aiAgentId", + "assistantArn", + "assistantId", + "configuration", + "name", + "type", + "visibilityStatus" + ], + "members":{ + "aiAgentArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the AI agent.

    " + }, + "aiAgentId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the AI Agent.

    " + }, + "assistantArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    " + }, + "assistantId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    " + }, + "configuration":{ + "shape":"AIAgentConfiguration", + "documentation":"

    Configuration for the AI Agent.

    " + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the AI Agent.

    " + }, + "modifiedTime":{ + "shape":"Timestamp", + "documentation":"

    The time the AI Agent was last modified.

    " + }, + "name":{ + "shape":"Name", + "documentation":"

    The name of the AI Agent.

    " + }, + "origin":{ + "shape":"Origin", + "documentation":"

    Specifies the origin of the AI Agent. SYSTEM for a default AI Agent created by Q in Connect or CUSTOMER for an AI Agent created by calling AI Agent creation APIs.

    " + }, + "status":{ + "shape":"Status", + "documentation":"

    The status of the AI Agent.

    " + }, + "tags":{ + "shape":"Tags", + "documentation":"

    The tags used to organize, track, or control access for this resource.

    " + }, + "type":{ + "shape":"AIAgentType", + "documentation":"

    The type of the AI Agent.

    " + }, + "visibilityStatus":{ + "shape":"VisibilityStatus", + "documentation":"

    The visibility status of the AI Agent.

    " + } + }, + "documentation":"

    The data for the AI Agent.

    " + }, + "AIAgentSummary":{ + "type":"structure", + "required":[ + "aiAgentArn", + "aiAgentId", + "assistantArn", + "assistantId", + "name", + "type", + "visibilityStatus" + ], + "members":{ + "aiAgentArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the AI agent.

    " + }, + "aiAgentId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the AI Agent.

    " + }, + "assistantArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    " + }, + "assistantId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    " + }, + "configuration":{ + "shape":"AIAgentConfiguration", + "documentation":"

    The configuration for the AI Agent.

    " + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the AI Agent.

    " + }, + "modifiedTime":{ + "shape":"Timestamp", + "documentation":"

    The time the AI Agent was last modified.

    " + }, + "name":{ + "shape":"Name", + "documentation":"

    The name of the AI Agent.

    " + }, + "origin":{ + "shape":"Origin", + "documentation":"

    The origin of the AI Agent. SYSTEM for a default AI Agent created by Q in Connect or CUSTOMER for an AI Agent created by calling AI Agent creation APIs.

    " + }, + "status":{ + "shape":"Status", + "documentation":"

    The status of the AI Agent.

    " + }, + "tags":{ + "shape":"Tags", + "documentation":"

    The tags used to organize, track, or control access for this resource.

    " + }, + "type":{ + "shape":"AIAgentType", + "documentation":"

    The type of the AI Agent.

    " + }, + "visibilityStatus":{ + "shape":"VisibilityStatus", + "documentation":"

    The visibility status of the AI Agent.

    " + } + }, + "documentation":"

    The summary of the AI Agent.

    " + }, + "AIAgentSummaryList":{ + "type":"list", + "member":{"shape":"AIAgentSummary"} + }, + "AIAgentType":{ + "type":"string", + "enum":[ + "MANUAL_SEARCH", + "ANSWER_RECOMMENDATION" + ] + }, + "AIAgentVersionSummariesList":{ + "type":"list", + "member":{"shape":"AIAgentVersionSummary"} + }, + "AIAgentVersionSummary":{ + "type":"structure", + "members":{ + "aiAgentSummary":{ + "shape":"AIAgentSummary", + "documentation":"

    The data for the summary of the AI Agent version.

    " + }, + "versionNumber":{ + "shape":"Version", + "documentation":"

    The version number for this AI Agent version.

    " + } + }, + "documentation":"

    The summary of the AI Agent version.

    " + }, + "AIPromptAPIFormat":{ + "type":"string", + "enum":[ + "ANTHROPIC_CLAUDE_MESSAGES", + "ANTHROPIC_CLAUDE_TEXT_COMPLETIONS" + ] + }, + "AIPromptData":{ + "type":"structure", + "required":[ + "aiPromptArn", + "aiPromptId", + "apiFormat", + "assistantArn", + "assistantId", + "modelId", + "name", + "templateConfiguration", + "templateType", + "type", + "visibilityStatus" + ], + "members":{ + "aiPromptArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the AI Prompt.

    " + }, + "aiPromptId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the Amazon Q in Connect AI prompt.

    " + }, + "apiFormat":{ + "shape":"AIPromptAPIFormat", + "documentation":"

    The API format used for this AI Prompt.

    " + }, + "assistantArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    " + }, + "assistantId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    " + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the AI Prompt.

    " + }, + "modelId":{ + "shape":"AIPromptModelIdentifier", + "documentation":"

    The identifier of the model used for this AI Prompt. Model Ids supported are: CLAUDE_3_HAIKU_20240307_V1.

    " + }, + "modifiedTime":{ + "shape":"Timestamp", + "documentation":"

    The time the AI Prompt was last modified.

    " + }, + "name":{ + "shape":"Name", + "documentation":"

    The name of the AI Prompt

    " + }, + "origin":{ + "shape":"Origin", + "documentation":"

    The origin of the AI Prompt. SYSTEM for a default AI Prompt created by Q in Connect or CUSTOMER for an AI Prompt created by calling AI Prompt creation APIs.

    " + }, + "status":{ + "shape":"Status", + "documentation":"

    The status of the AI Prompt.

    " + }, + "tags":{ + "shape":"Tags", + "documentation":"

    The tags used to organize, track, or control access for this resource.

    " + }, + "templateConfiguration":{ + "shape":"AIPromptTemplateConfiguration", + "documentation":"

    The configuration of the prompt template for this AI Prompt.

    " + }, + "templateType":{ + "shape":"AIPromptTemplateType", + "documentation":"

    The type of the prompt template for this AI Prompt.

    " + }, + "type":{ + "shape":"AIPromptType", + "documentation":"

    The type of this AI Prompt.

    " + }, + "visibilityStatus":{ + "shape":"VisibilityStatus", + "documentation":"

    The visibility status of the AI Prompt.

    " + } + }, + "documentation":"

    The data for the AI Prompt

    " + }, + "AIPromptModelIdentifier":{ + "type":"string", + "max":2048, + "min":1 + }, + "AIPromptSummary":{ + "type":"structure", + "required":[ + "aiPromptArn", + "aiPromptId", + "apiFormat", + "assistantArn", + "assistantId", + "modelId", + "name", + "templateType", + "type", + "visibilityStatus" + ], + "members":{ + "aiPromptArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the AI Prompt.

    " + }, + "aiPromptId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the Amazon Q in Connect AI prompt.

    " + }, + "apiFormat":{ + "shape":"AIPromptAPIFormat", + "documentation":"

    The API format used for this AI Prompt.

    " + }, + "assistantArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    " + }, + "assistantId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    " + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the AI Prompt.

    " + }, + "modelId":{ + "shape":"AIPromptModelIdentifier", + "documentation":"

    The identifier of the model used for this AI Prompt. Model Ids supported are: CLAUDE_3_HAIKU_20240307_V1.

    " + }, + "modifiedTime":{ + "shape":"Timestamp", + "documentation":"

    The time the AI Prompt was last modified.

    " + }, + "name":{ + "shape":"Name", + "documentation":"

    The name of the AI Prompt.

    " + }, + "origin":{ + "shape":"Origin", + "documentation":"

    The origin of the AI Prompt. SYSTEM for a default AI Prompt created by Q in Connect or CUSTOMER for an AI Prompt created by calling AI Prompt creation APIs.

    " + }, + "status":{ + "shape":"Status", + "documentation":"

    The status of the AI Prompt.

    " + }, + "tags":{ + "shape":"Tags", + "documentation":"

    The tags used to organize, track, or control access for this resource.

    " + }, + "templateType":{ + "shape":"AIPromptTemplateType", + "documentation":"

    The type of the prompt template for this AI Prompt.

    " + }, + "type":{ + "shape":"AIPromptType", + "documentation":"

    The type of this AI Prompt.

    " + }, + "visibilityStatus":{ + "shape":"VisibilityStatus", + "documentation":"

    The visibility status of the AI Prompt.

    " + } + }, + "documentation":"

    The summary of the AI Prompt.

    " + }, + "AIPromptSummaryList":{ + "type":"list", + "member":{"shape":"AIPromptSummary"} + }, + "AIPromptTemplateConfiguration":{ + "type":"structure", + "members":{ + "textFullAIPromptEditTemplateConfiguration":{ + "shape":"TextFullAIPromptEditTemplateConfiguration", + "documentation":"

    The configuration for a prompt template that supports full textual prompt configuration using a YAML prompt.

    " + } + }, + "documentation":"

    A typed union that specifies the configuration for a prompt template based on its type.

    ", + "union":true + }, + "AIPromptTemplateType":{ + "type":"string", + "enum":["TEXT"] + }, + "AIPromptType":{ + "type":"string", + "enum":[ + "ANSWER_GENERATION", + "INTENT_LABELING_GENERATION", + "QUERY_REFORMULATION" + ] + }, + "AIPromptVersionSummariesList":{ + "type":"list", + "member":{"shape":"AIPromptVersionSummary"} + }, + "AIPromptVersionSummary":{ + "type":"structure", + "members":{ + "aiPromptSummary":{ + "shape":"AIPromptSummary", + "documentation":"

    The date for the summary of the AI Prompt version.

    " + }, + "versionNumber":{ + "shape":"Version", + "documentation":"

    The version number for this AI Prompt version.

    " + } + }, + "documentation":"

    The summary of the AI Prompt version.

    " + }, + "AccessDeniedException":{ + "type":"structure", + "members":{ + "message":{"shape":"String"} + }, + "documentation":"

    You do not have sufficient access to perform this action.

    ", + "error":{ + "httpStatusCode":403, + "senderFault":true + }, + "exception":true + }, + "AmazonConnectGuideAssociationData":{ + "type":"structure", + "members":{ + "flowId":{ + "shape":"GenericArn", + "documentation":"

    The Amazon Resource Name (ARN) of an Amazon Connect flow. Step-by-step guides are a type of flow.

    " + } + }, + "documentation":"

    Content association data for a step-by-step guide.

    " + }, + "AndConditions":{ + "type":"list", + "member":{"shape":"TagCondition"} + }, + "AnswerRecommendationAIAgentConfiguration":{ + "type":"structure", + "members":{ + "answerGenerationAIPromptId":{ + "shape":"UuidWithQualifier", + "documentation":"

    The AI Prompt identifier for the Answer Generation prompt used by the ANSWER_RECOMMENDATION AI Agent.

    " + }, + "associationConfigurations":{ + "shape":"AssociationConfigurationList", + "documentation":"

    The association configurations for overriding behavior on this AI Agent.

    " + }, + "intentLabelingGenerationAIPromptId":{ + "shape":"UuidWithQualifier", + "documentation":"

    The AI Prompt identifier for the Intent Labeling prompt used by the ANSWER_RECOMMENDATION AI Agent.

    " + }, + "queryReformulationAIPromptId":{ + "shape":"UuidWithQualifier", + "documentation":"

    The AI Prompt identifier for the Query Reformulation prompt used by the ANSWER_RECOMMENDATION AI Agent.

    " + } + }, + "documentation":"

    The configuration for the ANSWER_RECOMMENDATION AI Agent type.

    " + }, + "AppIntegrationsConfiguration":{ + "type":"structure", + "required":["appIntegrationArn"], + "members":{ "appIntegrationArn":{ "shape":"GenericArn", - "documentation":"

    The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting content.

    • For Salesforce, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least Id, ArticleNumber, VersionNumber, Title, PublishStatus, and IsDeleted as source fields.

    • For ServiceNow, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least number, short_description, sys_mod_count, workflow_state, and active as source fields.

    • For Zendesk, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least id, title, updated_at, and draft as source fields.

    • For SharePoint, your AppIntegrations DataIntegration must have a FileConfiguration, including only file extensions that are among docx, pdf, html, htm, and txt.

    • For Amazon S3, the ObjectConfiguration and FileConfiguration of your AppIntegrations DataIntegration must be null. The SourceURI of your DataIntegration must use the following format: s3://your_s3_bucket_name.

      The bucket policy of the corresponding S3 bucket must allow the Amazon Web Services principal app-integrations.amazonaws.com to perform s3:ListBucket, s3:GetObject, and s3:GetBucketLocation against the bucket.

    " + "documentation":"

    The Amazon Resource Name (ARN) of the AppIntegrations DataIntegration to use for ingesting content.

    • For Salesforce, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least Id, ArticleNumber, VersionNumber, Title, PublishStatus, and IsDeleted as source fields.

    • For ServiceNow, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least number, short_description, sys_mod_count, workflow_state, and active as source fields.

    • For Zendesk, your AppIntegrations DataIntegration must have an ObjectConfiguration if objectFields is not provided, including at least id, title, updated_at, and draft as source fields.

    • For SharePoint, your AppIntegrations DataIntegration must have a FileConfiguration, including only file extensions that are among docx, pdf, html, htm, and txt.

    • For Amazon S3, the ObjectConfiguration and FileConfiguration of your AppIntegrations DataIntegration must be null. The SourceURI of your DataIntegration must use the following format: s3://your_s3_bucket_name.

      The bucket policy of the corresponding S3 bucket must allow the Amazon Web Services principal app-integrations.amazonaws.com to perform s3:ListBucket, s3:GetObject, and s3:GetBucketLocation against the bucket.

    " }, "objectFields":{ "shape":"ObjectFieldsList", @@ -983,6 +1769,10 @@ "type" ], "members":{ + "aiAgentConfiguration":{ + "shape":"AIAgentConfigurationMap", + "documentation":"

    The configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that is set on the Amazon Q in Connect Assistant.

    " + }, "assistantArn":{ "shape":"Arn", "documentation":"

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    " @@ -1061,6 +1851,10 @@ "type" ], "members":{ + "aiAgentConfiguration":{ + "shape":"AIAgentConfigurationMap", + "documentation":"

    The configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that is set on the Amazon Q in Connect Assistant.

    " + }, "assistantArn":{ "shape":"Arn", "documentation":"

    The Amazon Resource Name (ARN) of the Amazon Q in Connect assistant.

    " @@ -1108,10 +1902,64 @@ "type":"string", "enum":["AGENT"] }, + "AssociationConfiguration":{ + "type":"structure", + "members":{ + "associationConfigurationData":{ + "shape":"AssociationConfigurationData", + "documentation":"

    The data of the configuration for an Amazon Q in Connect Assistant Association.

    " + }, + "associationId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the association for this Association Configuration.

    " + }, + "associationType":{ + "shape":"AIAgentAssociationConfigurationType", + "documentation":"

    The type of the association for this Association Configuration.

    " + } + }, + "documentation":"

    The configuration for an Amazon Q in Connect Assistant Association.

    " + }, + "AssociationConfigurationData":{ + "type":"structure", + "members":{ + "knowledgeBaseAssociationConfigurationData":{ + "shape":"KnowledgeBaseAssociationConfigurationData", + "documentation":"

    The data of the configuration for a KNOWLEDGE_BASE type Amazon Q in Connect Assistant Association.

    " + } + }, + "documentation":"

    A typed union of the data of the configuration for an Amazon Q in Connect Assistant Association.

    ", + "union":true + }, + "AssociationConfigurationList":{ + "type":"list", + "member":{"shape":"AssociationConfiguration"} + }, "AssociationType":{ "type":"string", "enum":["KNOWLEDGE_BASE"] }, + "BedrockFoundationModelConfigurationForParsing":{ + "type":"structure", + "required":["modelArn"], + "members":{ + "modelArn":{ + "shape":"BedrockModelArnForParsing", + "documentation":"

    The ARN of the foundation model.

    " + }, + "parsingPrompt":{ + "shape":"ParsingPrompt", + "documentation":"

    Instructions for interpreting the contents of a document.

    " + } + }, + "documentation":"

    Settings for a foundation model used to parse documents for a data source.

    " + }, + "BedrockModelArnForParsing":{ + "type":"string", + "max":2048, + "min":1, + "pattern":"^arn:aws(-[^:]+)?:bedrock:[a-z0-9-]{1,20}::foundation-model/anthropic.claude-3-haiku-20240307-v1:0$" + }, "Boolean":{ "type":"boolean", "box":true @@ -1126,6 +1974,53 @@ "type":"list", "member":{"shape":"Channel"} }, + "ChunkingConfiguration":{ + "type":"structure", + "required":["chunkingStrategy"], + "members":{ + "chunkingStrategy":{ + "shape":"ChunkingStrategy", + "documentation":"

    Knowledge base can split your source data into chunks. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried. You have the following options for chunking your data. If you opt for NONE, then you may want to pre-process your files by splitting them up such that each file corresponds to a chunk.

    " + }, + "fixedSizeChunkingConfiguration":{ + "shape":"FixedSizeChunkingConfiguration", + "documentation":"

    Configurations for when you choose fixed-size chunking. If you set the chunkingStrategy as NONE, exclude this field.

    " + }, + "hierarchicalChunkingConfiguration":{ + "shape":"HierarchicalChunkingConfiguration", + "documentation":"

    Settings for hierarchical document chunking for a data source. Hierarchical chunking splits documents into layers of chunks where the first layer contains large chunks, and the second layer contains smaller chunks derived from the first layer.

    " + }, + "semanticChunkingConfiguration":{ + "shape":"SemanticChunkingConfiguration", + "documentation":"

    Settings for semantic document chunking for a data source. Semantic chunking splits a document into smaller documents based on groups of similar content derived from the text with natural language processing.

    " + } + }, + "documentation":"

    Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.

    " + }, + "ChunkingStrategy":{ + "type":"string", + "enum":[ + "FIXED_SIZE", + "NONE", + "HIERARCHICAL", + "SEMANTIC" + ] + }, + "CitationSpan":{ + "type":"structure", + "members":{ + "beginOffsetInclusive":{ + "shape":"CitationSpanOffset", + "documentation":"

    Where the text with a citation starts in the generated output.

    " + }, + "endOffsetExclusive":{ + "shape":"CitationSpanOffset", + "documentation":"

    Where the text with a citation ends in the generated output.

    " + } + }, + "documentation":"

    Contains information about where the text with a citation begins and ends in the generated output.

    " + }, + "CitationSpanOffset":{"type":"integer"}, "ClientToken":{ "type":"string", "max":4096, @@ -1430,6 +2325,14 @@ "knowledgeBaseId":{ "shape":"Uuid", "documentation":"

    The identifier of the knowledge base. This should not be a QUICK_RESPONSES type knowledge base.

    " + }, + "referenceType":{ + "shape":"ReferenceType", + "documentation":"

    The type of reference content.

    " + }, + "sourceURL":{ + "shape":"String", + "documentation":"

    The web URL of the source content.

    " } }, "documentation":"

    Reference information about the content.

    " @@ -1487,39 +2390,252 @@ }, "name":{ "shape":"Name", - "documentation":"

    The name of the content.

    " - }, - "revisionId":{ - "shape":"NonEmptyString", - "documentation":"

    The identifier of the revision of the content.

    " - }, - "status":{ - "shape":"ContentStatus", - "documentation":"

    The status of the content.

    " + "documentation":"

    The name of the content.

    " + }, + "revisionId":{ + "shape":"NonEmptyString", + "documentation":"

    The identifier of the revision of the content.

    " + }, + "status":{ + "shape":"ContentStatus", + "documentation":"

    The status of the content.

    " + }, + "tags":{ + "shape":"Tags", + "documentation":"

    The tags used to organize, track, or control access for this resource.

    " + }, + "title":{ + "shape":"ContentTitle", + "documentation":"

    The title of the content.

    " + } + }, + "documentation":"

    Summary information about the content.

    " + }, + "ContentSummaryList":{ + "type":"list", + "member":{"shape":"ContentSummary"} + }, + "ContentTitle":{ + "type":"string", + "max":255, + "min":1 + }, + "ContentType":{ + "type":"string", + "pattern":"^(text/(plain|html|csv))|(application/(pdf|vnd\\.openxmlformats-officedocument\\.wordprocessingml\\.document))|(application/x\\.wisdom-json;source=(salesforce|servicenow|zendesk))$" + }, + "CreateAIAgentRequest":{ + "type":"structure", + "required":[ + "assistantId", + "configuration", + "name", + "type", + "visibilityStatus" + ], + "members":{ + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "clientToken":{ + "shape":"ClientToken", + "documentation":"

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the AWS SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

    ", + "idempotencyToken":true + }, + "configuration":{ + "shape":"AIAgentConfiguration", + "documentation":"

    The configuration of the AI Agent.

    " + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the AI Agent.

    " + }, + "name":{ + "shape":"Name", + "documentation":"

    The name of the AI Agent.

    " + }, + "tags":{ + "shape":"Tags", + "documentation":"

    The tags used to organize, track, or control access for this resource.

    " + }, + "type":{ + "shape":"AIAgentType", + "documentation":"

    The type of the AI Agent.

    " + }, + "visibilityStatus":{ + "shape":"VisibilityStatus", + "documentation":"

    The visibility status of the AI Agent.

    " + } + } + }, + "CreateAIAgentResponse":{ + "type":"structure", + "members":{ + "aiAgent":{ + "shape":"AIAgentData", + "documentation":"

    The data of the created AI Agent.

    " + } + } + }, + "CreateAIAgentVersionRequest":{ + "type":"structure", + "required":[ + "aiAgentId", + "assistantId" + ], + "members":{ + "aiAgentId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI Agent.

    ", + "location":"uri", + "locationName":"aiAgentId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "clientToken":{ + "shape":"ClientToken", + "documentation":"

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the AWS SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

    ", + "idempotencyToken":true + }, + "modifiedTime":{ + "shape":"Timestamp", + "documentation":"

    The modification time of the AI Agent should be tracked for version creation. This field should be specified to avoid version creation when simultaneous update to the underlying AI Agent are possible. The value should be the modifiedTime returned from the request to create or update an AI Agent so that version creation can fail if an update to the AI Agent post the specified modification time has been made.

    " + } + } + }, + "CreateAIAgentVersionResponse":{ + "type":"structure", + "members":{ + "aiAgent":{ + "shape":"AIAgentData", + "documentation":"

    The data of the AI Agent version.

    " + }, + "versionNumber":{ + "shape":"Version", + "documentation":"

    The version number of the AI Agent version.

    " + } + } + }, + "CreateAIPromptRequest":{ + "type":"structure", + "required":[ + "apiFormat", + "assistantId", + "modelId", + "name", + "templateConfiguration", + "templateType", + "type", + "visibilityStatus" + ], + "members":{ + "apiFormat":{ + "shape":"AIPromptAPIFormat", + "documentation":"

    The API Format of the AI Prompt.

    " + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "clientToken":{ + "shape":"ClientToken", + "documentation":"

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the AWS SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

    ", + "idempotencyToken":true + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the AI Prompt.

    " + }, + "modelId":{ + "shape":"AIPromptModelIdentifier", + "documentation":"

    The identifier of the model used for this AI Prompt. Model Ids supported are: CLAUDE_3_HAIKU_20240307_V1

    " + }, + "name":{ + "shape":"Name", + "documentation":"

    The name of the AI Prompt.

    " }, "tags":{ "shape":"Tags", "documentation":"

    The tags used to organize, track, or control access for this resource.

    " }, - "title":{ - "shape":"ContentTitle", - "documentation":"

    The title of the content.

    " + "templateConfiguration":{ + "shape":"AIPromptTemplateConfiguration", + "documentation":"

    The configuration of the prompt template for this AI Prompt.

    " + }, + "templateType":{ + "shape":"AIPromptTemplateType", + "documentation":"

    The type of the prompt template for this AI Prompt.

    " + }, + "type":{ + "shape":"AIPromptType", + "documentation":"

    The type of this AI Prompt.

    " + }, + "visibilityStatus":{ + "shape":"VisibilityStatus", + "documentation":"

    The visibility status of the AI Prompt.

    " } - }, - "documentation":"

    Summary information about the content.

    " + } }, - "ContentSummaryList":{ - "type":"list", - "member":{"shape":"ContentSummary"} + "CreateAIPromptResponse":{ + "type":"structure", + "members":{ + "aiPrompt":{ + "shape":"AIPromptData", + "documentation":"

    The data of the AI Prompt.

    " + } + } }, - "ContentTitle":{ - "type":"string", - "max":255, - "min":1 + "CreateAIPromptVersionRequest":{ + "type":"structure", + "required":[ + "aiPromptId", + "assistantId" + ], + "members":{ + "aiPromptId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI prompt.

    ", + "location":"uri", + "locationName":"aiPromptId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "clientToken":{ + "shape":"ClientToken", + "documentation":"

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the AWS SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

    ", + "idempotencyToken":true + }, + "modifiedTime":{ + "shape":"Timestamp", + "documentation":"

    The time the AI Prompt was last modified.

    " + } + } }, - "ContentType":{ - "type":"string", - "pattern":"^(text/(plain|html|csv))|(application/(pdf|vnd\\.openxmlformats-officedocument\\.wordprocessingml\\.document))|(application/x\\.wisdom-json;source=(salesforce|servicenow|zendesk))$" + "CreateAIPromptVersionResponse":{ + "type":"structure", + "members":{ + "aiPrompt":{ + "shape":"AIPromptData", + "documentation":"

    The data of the AI Prompt version.

    " + }, + "versionNumber":{ + "shape":"Version", + "documentation":"

    The version number of the AI Prompt version.

    " + } + } }, "CreateAssistantAssociationRequest":{ "type":"structure", @@ -1748,6 +2864,10 @@ "tags":{ "shape":"Tags", "documentation":"

    The tags used to organize, track, or control access for this resource.

    " + }, + "vectorIngestionConfiguration":{ + "shape":"VectorIngestionConfiguration", + "documentation":"

    Contains details about how to ingest the documents in a data source.

    " } } }, @@ -1837,6 +2957,10 @@ "name" ], "members":{ + "aiAgentConfiguration":{ + "shape":"AIAgentConfigurationMap", + "documentation":"

    The configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that should be used by Amazon Q in Connect for this Session.

    " + }, "assistantId":{ "shape":"UuidOrArn", "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", @@ -1886,6 +3010,10 @@ "shape":"GenerativeDataDetails", "documentation":"

    Details about the generative data.

    " }, + "intentDetectedData":{ + "shape":"IntentDetectedDataDetails", + "documentation":"

    Details about the intent data.

    " + }, "sourceContentData":{ "shape":"SourceContentDataDetails", "documentation":"

    Details about the content data.

    " @@ -1928,6 +3056,124 @@ "type":"list", "member":{"shape":"DataSummary"} }, + "DeleteAIAgentRequest":{ + "type":"structure", + "required":[ + "aiAgentId", + "assistantId" + ], + "members":{ + "aiAgentId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI Agent. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"aiAgentId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + } + } + }, + "DeleteAIAgentResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteAIAgentVersionRequest":{ + "type":"structure", + "required":[ + "aiAgentId", + "assistantId", + "versionNumber" + ], + "members":{ + "aiAgentId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI Agent. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"aiAgentId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "versionNumber":{ + "shape":"Version", + "documentation":"

    The version number of the AI Agent version.

    ", + "location":"uri", + "locationName":"versionNumber" + } + } + }, + "DeleteAIAgentVersionResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteAIPromptRequest":{ + "type":"structure", + "required":[ + "aiPromptId", + "assistantId" + ], + "members":{ + "aiPromptId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI prompt. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"aiPromptId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + } + } + }, + "DeleteAIPromptResponse":{ + "type":"structure", + "members":{ + } + }, + "DeleteAIPromptVersionRequest":{ + "type":"structure", + "required":[ + "aiPromptId", + "assistantId", + "versionNumber" + ], + "members":{ + "aiPromptId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI prompt.

    ", + "location":"uri", + "locationName":"aiPromptId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "versionNumber":{ + "shape":"Version", + "documentation":"

    The version number of the AI Prompt version to be deleted.

    ", + "location":"uri", + "locationName":"versionNumber" + } + } + }, + "DeleteAIPromptVersionResponse":{ + "type":"structure", + "members":{ + } + }, "DeleteAssistantAssociationRequest":{ "type":"structure", "required":[ @@ -2160,6 +3406,10 @@ }, "documentation":"

    The configuration information of the external data source.

    " }, + "FailureReason":{ + "type":"list", + "member":{"shape":"NonEmptyString"} + }, "Filter":{ "type":"structure", "required":[ @@ -2195,6 +3445,35 @@ "type":"string", "enum":["EQUALS"] }, + "FixedSizeChunkingConfiguration":{ + "type":"structure", + "required":[ + "maxTokens", + "overlapPercentage" + ], + "members":{ + "maxTokens":{ + "shape":"FixedSizeChunkingConfigurationMaxTokensInteger", + "documentation":"

    The maximum number of tokens to include in a chunk.

    " + }, + "overlapPercentage":{ + "shape":"FixedSizeChunkingConfigurationOverlapPercentageInteger", + "documentation":"

    The percentage of overlap between adjacent chunks of a data source.

    " + } + }, + "documentation":"

    Configurations for when you choose fixed-size chunking. If you set the chunkingStrategy as NONE, exclude this field.

    " + }, + "FixedSizeChunkingConfigurationMaxTokensInteger":{ + "type":"integer", + "box":true, + "min":1 + }, + "FixedSizeChunkingConfigurationOverlapPercentageInteger":{ + "type":"integer", + "box":true, + "max":99, + "min":1 + }, "GenerativeContentFeedbackData":{ "type":"structure", "required":["relevance"], @@ -2249,6 +3528,74 @@ "min":1, "pattern":"^arn:[a-z-]+?:[a-z-]+?:[a-z0-9-]*?:([0-9]{12})?:[a-zA-Z0-9-:/]+$" }, + "GetAIAgentRequest":{ + "type":"structure", + "required":[ + "aiAgentId", + "assistantId" + ], + "members":{ + "aiAgentId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI Agent (with or without a version qualifier). Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"aiAgentId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + } + } + }, + "GetAIAgentResponse":{ + "type":"structure", + "members":{ + "aiAgent":{ + "shape":"AIAgentData", + "documentation":"

    The data of the AI Agent.

    " + }, + "versionNumber":{ + "shape":"Version", + "documentation":"

    The version number of the AI Agent version (returned if an AI Agent version was specified via use of a qualifier for the aiAgentId on the request).

    " + } + } + }, + "GetAIPromptRequest":{ + "type":"structure", + "required":[ + "aiPromptId", + "assistantId" + ], + "members":{ + "aiPromptId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI prompt.

    ", + "location":"uri", + "locationName":"aiPromptId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + } + } + }, + "GetAIPromptResponse":{ + "type":"structure", + "members":{ + "aiPrompt":{ + "shape":"AIPromptData", + "documentation":"

    The data of the AI Prompt.

    " + }, + "versionNumber":{ + "shape":"Version", + "documentation":"

    The version number of the AI Prompt version (returned if an AI Prompt version was specified via use of a qualifier for the aiPromptId on the request).

    " + } + } + }, "GetAssistantAssociationRequest":{ "type":"structure", "required":[ @@ -2590,6 +3937,52 @@ "key":{"shape":"NonEmptyString"}, "value":{"shape":"NonEmptyString"} }, + "HierarchicalChunkingConfiguration":{ + "type":"structure", + "required":[ + "levelConfigurations", + "overlapTokens" + ], + "members":{ + "levelConfigurations":{ + "shape":"HierarchicalChunkingLevelConfigurations", + "documentation":"

    Token settings for each layer.

    " + }, + "overlapTokens":{ + "shape":"HierarchicalChunkingConfigurationOverlapTokensInteger", + "documentation":"

    The number of tokens to repeat across chunks in the same layer.

    " + } + }, + "documentation":"

    Settings for hierarchical document chunking for a data source. Hierarchical chunking splits documents into layers of chunks where the first layer contains large chunks, and the second layer contains smaller chunks derived from the first layer.

    " + }, + "HierarchicalChunkingConfigurationOverlapTokensInteger":{ + "type":"integer", + "box":true, + "min":1 + }, + "HierarchicalChunkingLevelConfiguration":{ + "type":"structure", + "required":["maxTokens"], + "members":{ + "maxTokens":{ + "shape":"HierarchicalChunkingLevelConfigurationMaxTokensInteger", + "documentation":"

    The maximum number of tokens that a chunk can contain in this layer.

    " + } + }, + "documentation":"

    Token settings for each layer.

    " + }, + "HierarchicalChunkingLevelConfigurationMaxTokensInteger":{ + "type":"integer", + "box":true, + "max":8192, + "min":1 + }, + "HierarchicalChunkingLevelConfigurations":{ + "type":"list", + "member":{"shape":"HierarchicalChunkingLevelConfiguration"}, + "max":2, + "min":2 + }, "Highlight":{ "type":"structure", "members":{ @@ -2740,16 +4133,60 @@ "shape":"ImportJobStatus", "documentation":"

    The status of the import job.

    " }, - "uploadId":{ - "shape":"UploadId", - "documentation":"

    A pointer to the uploaded asset. This value is returned by StartContentUpload.

    " + "uploadId":{ + "shape":"UploadId", + "documentation":"

    A pointer to the uploaded asset. This value is returned by StartContentUpload.

    " + } + }, + "documentation":"

    Summary information about the import job.

    " + }, + "ImportJobType":{ + "type":"string", + "enum":["QUICK_RESPONSES"] + }, + "IntentDetectedDataDetails":{ + "type":"structure", + "required":[ + "intent", + "intentId" + ], + "members":{ + "intent":{ + "shape":"SensitiveString", + "documentation":"

    The detected intent.

    " + }, + "intentId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the detected intent.

    " + } + }, + "documentation":"

    Details about the detected intent.

    " + }, + "IntentInputData":{ + "type":"structure", + "required":["intentId"], + "members":{ + "intentId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the Amazon Q intent.

    " + } + }, + "documentation":"

    Information about the Amazon Q intent.

    " + }, + "KnowledgeBaseAssociationConfigurationData":{ + "type":"structure", + "members":{ + "contentTagFilter":{"shape":"TagFilter"}, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return per page.

    " + }, + "overrideKnowledgeBaseSearchType":{ + "shape":"KnowledgeBaseSearchType", + "documentation":"

    The search type to be used against the Knowledge Base for this request. The values can be SEMANTIC which uses vector embeddings or HYBRID which use vector embeddings and raw text

    " } }, - "documentation":"

    Summary information about the import job.

    " - }, - "ImportJobType":{ - "type":"string", - "enum":["QUICK_RESPONSES"] + "documentation":"

    The data of the configuration for a KNOWLEDGE_BASE type Amazon Q in Connect Assistant Association.

    " }, "KnowledgeBaseAssociationData":{ "type":"structure", @@ -2779,6 +4216,14 @@ "shape":"Description", "documentation":"

    The description.

    " }, + "ingestionFailureReasons":{ + "shape":"FailureReason", + "documentation":"

    List of failure reasons on ingestion per file.

    " + }, + "ingestionStatus":{ + "shape":"SyncStatus", + "documentation":"

    Status of ingestion on data source.

    " + }, "knowledgeBaseArn":{ "shape":"Arn", "documentation":"

    The Amazon Resource Name (ARN) of the knowledge base.

    " @@ -2818,6 +4263,10 @@ "tags":{ "shape":"Tags", "documentation":"

    The tags used to organize, track, or control access for this resource.

    " + }, + "vectorIngestionConfiguration":{ + "shape":"VectorIngestionConfiguration", + "documentation":"

    Contains details about how to ingest the documents in a data source.

    " } }, "documentation":"

    Information about the knowledge base.

    " @@ -2826,6 +4275,13 @@ "type":"list", "member":{"shape":"KnowledgeBaseSummary"} }, + "KnowledgeBaseSearchType":{ + "type":"string", + "enum":[ + "HYBRID", + "SEMANTIC" + ] + }, "KnowledgeBaseStatus":{ "type":"string", "enum":[ @@ -2886,6 +4342,10 @@ "tags":{ "shape":"Tags", "documentation":"

    The tags used to organize, track, or control access for this resource.

    " + }, + "vectorIngestionConfiguration":{ + "shape":"VectorIngestionConfiguration", + "documentation":"

    Contains details about how to ingest the documents in a data source.

    " } }, "documentation":"

    Summary information about the knowledge base.

    " @@ -2895,7 +4355,9 @@ "enum":[ "EXTERNAL", "CUSTOM", - "QUICK_RESPONSES" + "QUICK_RESPONSES", + "MESSAGE_TEMPLATES", + "MANAGED" ] }, "LanguageCode":{ @@ -2903,6 +4365,200 @@ "max":5, "min":2 }, + "ListAIAgentVersionsRequest":{ + "type":"structure", + "required":[ + "aiAgentId", + "assistantId" + ], + "members":{ + "aiAgentId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI Agent for which versions are to be listed.

    ", + "location":"uri", + "locationName":"aiAgentId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return per page.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "origin":{ + "shape":"Origin", + "documentation":"

    The origin of the AI Agent versions to be listed. SYSTEM for a default AI Agent created by Q in Connect or CUSTOMER for an AI Agent created by calling AI Agent creation APIs.

    ", + "location":"querystring", + "locationName":"origin" + } + } + }, + "ListAIAgentVersionsResponse":{ + "type":"structure", + "required":["aiAgentVersionSummaries"], + "members":{ + "aiAgentVersionSummaries":{ + "shape":"AIAgentVersionSummariesList", + "documentation":"

    The summaries of AI Agent versions.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    " + } + } + }, + "ListAIAgentsRequest":{ + "type":"structure", + "required":["assistantId"], + "members":{ + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return per page.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "origin":{ + "shape":"Origin", + "documentation":"

    The origin of the AI Agents to be listed. SYSTEM for a default AI Agent created by Q in Connect or CUSTOMER for an AI Agent created by calling AI Agent creation APIs.

    ", + "location":"querystring", + "locationName":"origin" + } + } + }, + "ListAIAgentsResponse":{ + "type":"structure", + "required":["aiAgentSummaries"], + "members":{ + "aiAgentSummaries":{ + "shape":"AIAgentSummaryList", + "documentation":"

    The summaries of AI Agents.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    " + } + } + }, + "ListAIPromptVersionsRequest":{ + "type":"structure", + "required":[ + "aiPromptId", + "assistantId" + ], + "members":{ + "aiPromptId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI prompt for which versions are to be listed.

    ", + "location":"uri", + "locationName":"aiPromptId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return per page.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "origin":{ + "shape":"Origin", + "documentation":"

    The origin of the AI Prompt versions to be listed. SYSTEM for a default AI Agent created by Q in Connect or CUSTOMER for an AI Agent created by calling AI Agent creation APIs.

    ", + "location":"querystring", + "locationName":"origin" + } + } + }, + "ListAIPromptVersionsResponse":{ + "type":"structure", + "required":["aiPromptVersionSummaries"], + "members":{ + "aiPromptVersionSummaries":{ + "shape":"AIPromptVersionSummariesList", + "documentation":"

    The summaries of the AI Prompt versions.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    " + } + } + }, + "ListAIPromptsRequest":{ + "type":"structure", + "required":["assistantId"], + "members":{ + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "maxResults":{ + "shape":"MaxResults", + "documentation":"

    The maximum number of results to return per page.

    ", + "location":"querystring", + "locationName":"maxResults" + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    ", + "location":"querystring", + "locationName":"nextToken" + }, + "origin":{ + "shape":"Origin", + "documentation":"

    The origin of the AI Prompts to be listed. SYSTEM for a default AI Agent created by Q in Connect or CUSTOMER for an AI Agent created by calling AI Agent creation APIs.

    ", + "location":"querystring", + "locationName":"origin" + } + } + }, + "ListAIPromptsResponse":{ + "type":"structure", + "required":["aiPromptSummaries"], + "members":{ + "aiPromptSummaries":{ + "shape":"AIPromptSummaryList", + "documentation":"

    The summaries of the AI Prompts.

    " + }, + "nextToken":{ + "shape":"NextToken", + "documentation":"

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    " + } + } + }, "ListAssistantAssociationsRequest":{ "type":"structure", "required":["assistantId"], @@ -3190,6 +4846,31 @@ "max":128, "min":1 }, + "ManagedSourceConfiguration":{ + "type":"structure", + "members":{ + "webCrawlerConfiguration":{ + "shape":"WebCrawlerConfiguration", + "documentation":"

    Configuration data for web crawler data source.

    " + } + }, + "documentation":"

    Source configuration for managed resources.

    ", + "union":true + }, + "ManualSearchAIAgentConfiguration":{ + "type":"structure", + "members":{ + "answerGenerationAIPromptId":{ + "shape":"UuidWithQualifier", + "documentation":"

    The AI Prompt identifier for the Answer Generation prompt used by the MANUAL_SEARCH AI Agent.

    " + }, + "associationConfigurations":{ + "shape":"AssociationConfigurationList", + "documentation":"

    The association configurations for overriding behavior on this AI Agent.

    " + } + }, + "documentation":"

    The configuration for the MANUAL_SEARCH AI Agent type.

    " + }, "MaxResults":{ "type":"integer", "box":true, @@ -3207,6 +4888,12 @@ "max":2048, "min":1 }, + "NonEmptySensitiveString":{ + "type":"string", + "max":4096, + "min":1, + "sensitive":true + }, "NonEmptyString":{ "type":"string", "max":4096, @@ -3302,6 +4989,48 @@ "DESC" ] }, + "Origin":{ + "type":"string", + "enum":[ + "SYSTEM", + "CUSTOMER" + ] + }, + "ParsingConfiguration":{ + "type":"structure", + "required":["parsingStrategy"], + "members":{ + "bedrockFoundationModelConfiguration":{ + "shape":"BedrockFoundationModelConfigurationForParsing", + "documentation":"

    Settings for a foundation model used to parse documents for a data source.

    " + }, + "parsingStrategy":{ + "shape":"ParsingStrategy", + "documentation":"

    The parsing strategy for the data source.

    " + } + }, + "documentation":"

    Settings for parsing document contents. By default, the service converts the contents of each document into text before splitting it into chunks. To improve processing of PDF files with tables and images, you can configure the data source to convert the pages of text into images and use a model to describe the contents of each page.

    " + }, + "ParsingPrompt":{ + "type":"structure", + "required":["parsingPromptText"], + "members":{ + "parsingPromptText":{ + "shape":"ParsingPromptText", + "documentation":"

    Instructions for interpreting the contents of a document.

    " + } + }, + "documentation":"

    Instructions for interpreting the contents of a document.

    " + }, + "ParsingPromptText":{ + "type":"string", + "max":10000, + "min":1 + }, + "ParsingStrategy":{ + "type":"string", + "enum":["BEDROCK_FOUNDATION_MODEL"] + }, "PreconditionFailedException":{ "type":"structure", "members":{ @@ -3385,10 +5114,7 @@ }, "QueryAssistantRequest":{ "type":"structure", - "required":[ - "assistantId", - "queryText" - ], + "required":["assistantId"], "members":{ "assistantId":{ "shape":"UuidOrArn", @@ -3404,10 +5130,18 @@ "shape":"NextToken", "documentation":"

    The token for the next set of results. Use the value returned in the previous response in the next request to retrieve the next set of results.

    " }, + "overrideKnowledgeBaseSearchType":{ + "shape":"KnowledgeBaseSearchType", + "documentation":"

    The search type to be used against the Knowledge Base for this request. The values can be SEMANTIC which uses vector embeddings or HYBRID which use vector embeddings and raw text.

    " + }, "queryCondition":{ "shape":"QueryConditionExpression", "documentation":"

    Information about how to query content.

    " }, + "queryInputData":{ + "shape":"QueryInputData", + "documentation":"

    Information about the query.

    " + }, "queryText":{ "shape":"QueryText", "documentation":"

    The text to search for.

    " @@ -3480,6 +5214,21 @@ }, "documentation":"

    The condition for the query.

    " }, + "QueryInputData":{ + "type":"structure", + "members":{ + "intentInputData":{ + "shape":"IntentInputData", + "documentation":"

    Input information for the intent.

    " + }, + "queryTextInputData":{ + "shape":"QueryTextInputData", + "documentation":"

    Input information for the query.

    " + } + }, + "documentation":"

    Input information for the query.

    ", + "union":true + }, "QueryRecommendationTriggerData":{ "type":"structure", "members":{ @@ -3494,6 +5243,7 @@ "type":"string", "enum":[ "KNOWLEDGE_CONTENT", + "INTENT_ANSWER", "GENERATIVE_ANSWER" ] }, @@ -3503,10 +5253,21 @@ }, "QueryText":{ "type":"string", - "max":1024, + "max":512, "min":0, "sensitive":true }, + "QueryTextInputData":{ + "type":"structure", + "required":["text"], + "members":{ + "text":{ + "shape":"QueryText", + "documentation":"

    The text to search for.

    " + } + }, + "documentation":"

    Information about the text to search for.

    " + }, "QuickResponseContent":{ "type":"string", "max":1024, @@ -4105,7 +5866,15 @@ "enum":[ "KNOWLEDGE_CONTENT", "GENERATIVE_RESPONSE", - "GENERATIVE_ANSWER" + "GENERATIVE_ANSWER", + "DETECTED_INTENT" + ] + }, + "ReferenceType":{ + "type":"string", + "enum":[ + "WEB_CRAWLER", + "KNOWLEDGE_BASE" ] }, "Relevance":{ @@ -4127,6 +5896,32 @@ "type":"double", "min":0.0 }, + "RemoveAssistantAIAgentRequest":{ + "type":"structure", + "required":[ + "aiAgentType", + "assistantId" + ], + "members":{ + "aiAgentType":{ + "shape":"AIAgentType", + "documentation":"

    The type of the AI Agent being removed for use by default from the Amazon Q in Connect Assistant.

    ", + "location":"querystring", + "locationName":"aiAgentType" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + } + } + }, + "RemoveAssistantAIAgentResponse":{ + "type":"structure", + "members":{ + } + }, "RemoveKnowledgeBaseTemplateUriRequest":{ "type":"structure", "required":["knowledgeBaseId"], @@ -4203,12 +5998,47 @@ "shape":"Uuid", "documentation":"

    The identifier of the result data.

    " }, - "type":{ - "shape":"QueryResultType", - "documentation":"

    The type of the query result.

    " + "type":{ + "shape":"QueryResultType", + "documentation":"

    The type of the query result.

    " + } + }, + "documentation":"

    Information about the result.

    " + }, + "RuntimeSessionData":{ + "type":"structure", + "required":[ + "key", + "value" + ], + "members":{ + "key":{ + "shape":"NonEmptySensitiveString", + "documentation":"

    The key of the data stored on the session.

    " + }, + "value":{ + "shape":"RuntimeSessionDataValue", + "documentation":"

    The value of the data stored on the session.

    " } }, - "documentation":"

    Information about the result.

    " + "documentation":"

    The list of key-value pairs that are stored on the session.

    " + }, + "RuntimeSessionDataList":{ + "type":"list", + "member":{"shape":"RuntimeSessionData"}, + "max":50, + "min":0 + }, + "RuntimeSessionDataValue":{ + "type":"structure", + "members":{ + "stringValue":{ + "shape":"NonEmptySensitiveString", + "documentation":"

    The string value of the data stored on the session.

    " + } + }, + "documentation":"

    A union type that specifies the data stored on the session.

    ", + "union":true }, "SearchContentRequest":{ "type":"structure", @@ -4360,6 +6190,62 @@ } } }, + "SeedUrl":{ + "type":"structure", + "members":{ + "url":{ + "shape":"WebUrl", + "documentation":"

    URL for crawling

    " + } + }, + "documentation":"

    A URL for crawling.

    " + }, + "SeedUrls":{ + "type":"list", + "member":{"shape":"SeedUrl"}, + "max":100, + "min":1 + }, + "SemanticChunkingConfiguration":{ + "type":"structure", + "required":[ + "breakpointPercentileThreshold", + "bufferSize", + "maxTokens" + ], + "members":{ + "breakpointPercentileThreshold":{ + "shape":"SemanticChunkingConfigurationBreakpointPercentileThresholdInteger", + "documentation":"

    The dissimilarity threshold for splitting chunks.

    " + }, + "bufferSize":{ + "shape":"SemanticChunkingConfigurationBufferSizeInteger", + "documentation":"

    The buffer size.

    " + }, + "maxTokens":{ + "shape":"SemanticChunkingConfigurationMaxTokensInteger", + "documentation":"

    The maximum number of tokens that a chunk can contain.

    " + } + }, + "documentation":"

    Settings for semantic document chunking for a data source. Semantic chunking splits a document into smaller documents based on groups of similar content derived from the text with natural language processing.

    " + }, + "SemanticChunkingConfigurationBreakpointPercentileThresholdInteger":{ + "type":"integer", + "box":true, + "max":99, + "min":50 + }, + "SemanticChunkingConfigurationBufferSizeInteger":{ + "type":"integer", + "box":true, + "max":1, + "min":0 + }, + "SemanticChunkingConfigurationMaxTokensInteger":{ + "type":"integer", + "box":true, + "min":1 + }, "SensitiveString":{ "type":"string", "sensitive":true @@ -4394,6 +6280,10 @@ "sessionId" ], "members":{ + "aiAgentConfiguration":{ + "shape":"AIAgentConfigurationMap", + "documentation":"

    The configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that should be used by Amazon Q in Connect for this Session.

    " + }, "description":{ "shape":"Description", "documentation":"

    The description of the session.

    " @@ -4425,6 +6315,10 @@ }, "documentation":"

    Information about the session.

    " }, + "SessionDataNamespace":{ + "type":"string", + "enum":["Custom"] + }, "SessionIntegrationConfiguration":{ "type":"structure", "members":{ @@ -4478,6 +6372,10 @@ "appIntegrations":{ "shape":"AppIntegrationsConfiguration", "documentation":"

    Configuration information for Amazon AppIntegrations to automatically ingest content.

    " + }, + "managedSourceConfiguration":{ + "shape":"ManagedSourceConfiguration", + "documentation":"

    Source configuration for managed resources.

    " } }, "documentation":"

    Configuration information about the external data source.

    ", @@ -4492,6 +6390,10 @@ "type" ], "members":{ + "citationSpan":{ + "shape":"CitationSpan", + "documentation":"

    Contains information about where the text with a citation begins and ends in the generated output.

    " + }, "id":{ "shape":"Uuid", "documentation":"

    The identifier of the source content.

    " @@ -4611,7 +6513,27 @@ } } }, + "Status":{ + "type":"string", + "enum":[ + "CREATE_IN_PROGRESS", + "CREATE_FAILED", + "ACTIVE", + "DELETE_IN_PROGRESS", + "DELETE_FAILED", + "DELETED" + ] + }, "String":{"type":"string"}, + "SyncStatus":{ + "type":"string", + "enum":[ + "SYNC_FAILED", + "SYNCING_IN_PROGRESS", + "SYNC_SUCCESS", + "CREATE_IN_PROGRESS" + ] + }, "SyntheticTimestamp_epoch_seconds":{ "type":"timestamp", "timestampFormat":"unixTimestamp" @@ -4703,6 +6625,12 @@ "RESULT" ] }, + "TextAIPrompt":{ + "type":"string", + "max":200000, + "min":1, + "sensitive":true + }, "TextData":{ "type":"structure", "members":{ @@ -4711,6 +6639,17 @@ }, "documentation":"

    Details about the source content text data.

    " }, + "TextFullAIPromptEditTemplateConfiguration":{ + "type":"structure", + "required":["text"], + "members":{ + "text":{ + "shape":"TextAIPrompt", + "documentation":"

    The YAML text for the AI Prompt template.

    " + } + }, + "documentation":"

    The configuration for a prompt template that supports full textual prompt configuration using a YAML prompt.

    " + }, "ThrottlingException":{ "type":"structure", "members":{ @@ -4731,6 +6670,7 @@ "max":60, "min":1 }, + "Timestamp":{"type":"timestamp"}, "TooManyTagsException":{ "type":"structure", "members":{ @@ -4773,6 +6713,132 @@ "members":{ } }, + "UpdateAIAgentRequest":{ + "type":"structure", + "required":[ + "aiAgentId", + "assistantId", + "visibilityStatus" + ], + "members":{ + "aiAgentId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI Agent.

    ", + "location":"uri", + "locationName":"aiAgentId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "clientToken":{ + "shape":"ClientToken", + "documentation":"

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the AWS SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

    ", + "idempotencyToken":true + }, + "configuration":{ + "shape":"AIAgentConfiguration", + "documentation":"

    The configuration of the Amazon Q in Connect AI Agent.

    " + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the Amazon Q in Connect AI Agent.

    " + }, + "visibilityStatus":{ + "shape":"VisibilityStatus", + "documentation":"

    The visbility status of the Amazon Q in Connect AI Agent.

    " + } + } + }, + "UpdateAIAgentResponse":{ + "type":"structure", + "members":{ + "aiAgent":{ + "shape":"AIAgentData", + "documentation":"

    The data of the updated Amazon Q in Connect AI Agent.

    " + } + } + }, + "UpdateAIPromptRequest":{ + "type":"structure", + "required":[ + "aiPromptId", + "assistantId", + "visibilityStatus" + ], + "members":{ + "aiPromptId":{ + "shape":"UuidOrArnOrEitherWithQualifier", + "documentation":"

    The identifier of the Amazon Q in Connect AI Prompt.

    ", + "location":"uri", + "locationName":"aiPromptId" + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "clientToken":{ + "shape":"ClientToken", + "documentation":"

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If not provided, the AWS SDK populates this field. For more information about idempotency, see Making retries safe with idempotent APIs.

    ", + "idempotencyToken":true + }, + "description":{ + "shape":"Description", + "documentation":"

    The description of the Amazon Q in Connect AI Prompt.

    " + }, + "templateConfiguration":{ + "shape":"AIPromptTemplateConfiguration", + "documentation":"

    The configuration of the prompt template for this AI Prompt.

    " + }, + "visibilityStatus":{ + "shape":"VisibilityStatus", + "documentation":"

    The visibility status of the Amazon Q in Connect AI prompt.

    " + } + } + }, + "UpdateAIPromptResponse":{ + "type":"structure", + "members":{ + "aiPrompt":{ + "shape":"AIPromptData", + "documentation":"

    The data of the updated Amazon Q in Connect AI Prompt.

    " + } + } + }, + "UpdateAssistantAIAgentRequest":{ + "type":"structure", + "required":[ + "aiAgentType", + "assistantId", + "configuration" + ], + "members":{ + "aiAgentType":{ + "shape":"AIAgentType", + "documentation":"

    The type of the AI Agent being updated for use by default on the Amazon Q in Connect Assistant.

    " + }, + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "configuration":{ + "shape":"AIAgentConfigurationData", + "documentation":"

    The configuration of the AI Agent being updated for use by default on the Amazon Q in Connect Assistant.

    " + } + } + }, + "UpdateAssistantAIAgentResponse":{ + "type":"structure", + "members":{ + "assistant":{"shape":"AssistantData"} + } + }, "UpdateContentRequest":{ "type":"structure", "required":[ @@ -4933,6 +6999,63 @@ } } }, + "UpdateSessionDataRequest":{ + "type":"structure", + "required":[ + "assistantId", + "data", + "sessionId" + ], + "members":{ + "assistantId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"assistantId" + }, + "data":{ + "shape":"RuntimeSessionDataList", + "documentation":"

    The data stored on the Amazon Q in Connect Session.

    " + }, + "namespace":{ + "shape":"SessionDataNamespace", + "documentation":"

    The namespace into which the session data is stored. Supported namespaces are: Custom

    " + }, + "sessionId":{ + "shape":"UuidOrArn", + "documentation":"

    The identifier of the session. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", + "location":"uri", + "locationName":"sessionId" + } + } + }, + "UpdateSessionDataResponse":{ + "type":"structure", + "required":[ + "data", + "namespace", + "sessionArn", + "sessionId" + ], + "members":{ + "data":{ + "shape":"RuntimeSessionDataList", + "documentation":"

    Data stored in the session.

    " + }, + "namespace":{ + "shape":"SessionDataNamespace", + "documentation":"

    The namespace into which the session data is stored. Supported namespaces are: Custom

    " + }, + "sessionArn":{ + "shape":"Arn", + "documentation":"

    The Amazon Resource Name (ARN) of the session.

    " + }, + "sessionId":{ + "shape":"Uuid", + "documentation":"

    The identifier of the session.

    " + } + } + }, "UpdateSessionRequest":{ "type":"structure", "required":[ @@ -4940,6 +7063,10 @@ "sessionId" ], "members":{ + "aiAgentConfiguration":{ + "shape":"AIAgentConfigurationMap", + "documentation":"

    The configuration of the AI Agents (mapped by AI Agent Type to AI Agent version) that should be used by Amazon Q in Connect for this Session.

    " + }, "assistantId":{ "shape":"UuidOrArn", "documentation":"

    The identifier of the Amazon Q in Connect assistant. Can be either the ID or the ARN. URLs cannot contain the ARN.

    ", @@ -4984,6 +7111,29 @@ "min":1, "sensitive":true }, + "UrlConfiguration":{ + "type":"structure", + "members":{ + "seedUrls":{ + "shape":"SeedUrls", + "documentation":"

    List of URLs for crawling.

    " + } + }, + "documentation":"

    The configuration of the URL/URLs for the web content that you want to crawl. You should be authorized to crawl the URLs.

    " + }, + "UrlFilterList":{ + "type":"list", + "member":{"shape":"UrlFilterPattern"}, + "max":25, + "min":1, + "sensitive":true + }, + "UrlFilterPattern":{ + "type":"string", + "max":1000, + "min":1, + "sensitive":true + }, "Uuid":{ "type":"string", "pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$" @@ -4992,6 +7142,14 @@ "type":"string", "pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$|^arn:[a-z-]*?:wisdom:[a-z0-9-]*?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}$" }, + "UuidOrArnOrEitherWithQualifier":{ + "type":"string", + "pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(:[A-Z0-9_$]+){0,1}$|^arn:[a-z-]*?:wisdom:[a-z0-9-]*?:[0-9]{12}:[a-z-]*?/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(?:/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}){0,2}(:[A-Z0-9_$]+){0,1}$" + }, + "UuidWithQualifier":{ + "type":"string", + "pattern":"^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}(:[A-Z0-9_$]+){0,1}$" + }, "ValidationException":{ "type":"structure", "members":{ @@ -5004,11 +7162,91 @@ }, "exception":true }, + "VectorIngestionConfiguration":{ + "type":"structure", + "members":{ + "chunkingConfiguration":{ + "shape":"ChunkingConfiguration", + "documentation":"

    Details about how to chunk the documents in the data source. A chunk refers to an excerpt from a data source that is returned when the knowledge base that it belongs to is queried.

    " + }, + "parsingConfiguration":{ + "shape":"ParsingConfiguration", + "documentation":"

    A custom parser for data source documents.

    " + } + }, + "documentation":"

    Contains details about how to ingest the documents in a data source.

    " + }, + "Version":{ + "type":"long", + "box":true, + "min":1 + }, + "VisibilityStatus":{ + "type":"string", + "enum":[ + "SAVED", + "PUBLISHED" + ] + }, "WaitTimeSeconds":{ "type":"integer", "max":20, "min":0 + }, + "WebCrawlerConfiguration":{ + "type":"structure", + "required":["urlConfiguration"], + "members":{ + "crawlerLimits":{ + "shape":"WebCrawlerLimits", + "documentation":"

    The configuration of crawl limits for the web URLs.

    " + }, + "exclusionFilters":{ + "shape":"UrlFilterList", + "documentation":"

    A list of one or more exclusion regular expression patterns to exclude certain URLs. If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled.

    " + }, + "inclusionFilters":{ + "shape":"UrlFilterList", + "documentation":"

    A list of one or more inclusion regular expression patterns to include certain URLs. If you specify an inclusion and exclusion filter/pattern and both match a URL, the exclusion filter takes precedence and the web content of the URL isn’t crawled.

    " + }, + "scope":{ + "shape":"WebScopeType", + "documentation":"

    The scope of what is crawled for your URLs. You can choose to crawl only web pages that belong to the same host or primary domain. For example, only web pages that contain the seed URL https://docs.aws.amazon.com/bedrock/latest/userguide/ and no other domains. You can choose to include sub domains in addition to the host or primary domain. For example, web pages that contain aws.amazon.com can also include sub domain docs.aws.amazon.com.

    " + }, + "urlConfiguration":{ + "shape":"UrlConfiguration", + "documentation":"

    The configuration of the URL/URLs for the web content that you want to crawl. You should be authorized to crawl the URLs.

    " + } + }, + "documentation":"

    The configuration details for the web data source.

    " + }, + "WebCrawlerLimits":{ + "type":"structure", + "members":{ + "rateLimit":{ + "shape":"WebCrawlerLimitsRateLimitInteger", + "documentation":"

    Rate of web URLs retrieved per minute.

    " + } + }, + "documentation":"

    The configuration of crawl limits for the web URLs.

    " + }, + "WebCrawlerLimitsRateLimitInteger":{ + "type":"integer", + "box":true, + "max":300, + "min":1 + }, + "WebScopeType":{ + "type":"string", + "enum":[ + "HOST_ONLY", + "SUBDOMAINS" + ] + }, + "WebUrl":{ + "type":"string", + "pattern":"^https?://[A-Za-z0-9][^\\s]*$" } }, - "documentation":"

    Powered by Amazon Bedrock: Amazon Web Services implements automated abuse detection. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the responsible use of artificial intelligence (AI).

    Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution of Amazon Connect Wisdom that delivers real-time recommendations to help contact center agents resolve customer issues quickly and accurately.

    Amazon Q in Connect automatically detects customer intent during calls and chats using conversational analytics and natural language understanding (NLU). It then provides agents with immediate, real-time generative responses and suggested actions, and links to relevant documents and articles. Agents can also query Amazon Q in Connect directly using natural language or keywords to answer customer requests.

    Use the Amazon Q in Connect APIs to create an assistant and a knowledge base, for example, or manage content by uploading custom files.

    For more information, see Use Amazon Q in Connect for generative AI powered agent assistance in real-time in the Amazon Connect Administrator Guide.

    " + "documentation":"

    Powered by Amazon Bedrock: Amazon Web Services implements automated abuse detection. Because Amazon Q in Connect is built on Amazon Bedrock, users can take full advantage of the controls implemented in Amazon Bedrock to enforce safety, security, and the responsible use of artificial intelligence (AI).

    Amazon Q in Connect is a generative AI customer service assistant. It is an LLM-enhanced evolution of Amazon Connect Wisdom that delivers real-time recommendations to help contact center agents resolve customer issues quickly and accurately.

    Amazon Q in Connect automatically detects customer intent during calls and chats using conversational analytics and natural language understanding (NLU). It then provides agents with immediate, real-time generative responses and suggested actions, and links to relevant documents and articles. Agents can also query Amazon Q in Connect directly using natural language or keywords to answer customer requests.

    Use the Amazon Q in Connect APIs to create an assistant and a knowledge base, for example, or manage content by uploading custom files.

    For more information, see Use Amazon Q in Connect for generative AI powered agent assistance in real-time in the Amazon Connect Administrator Guide.

    " } diff --git a/tools/code-generation/api-descriptions/redshift-2012-12-01.normal.json b/tools/code-generation/api-descriptions/redshift-2012-12-01.normal.json index 3848efdce78..a6dcb7c39c3 100644 --- a/tools/code-generation/api-descriptions/redshift-2012-12-01.normal.json +++ b/tools/code-generation/api-descriptions/redshift-2012-12-01.normal.json @@ -6420,8 +6420,8 @@ "documentation":"

    The name of an existing S3 bucket where the log files are to be stored.

    Constraints:

    • Must be in the same region as the cluster

    • The cluster must have read bucket and put object permissions

    " }, "S3KeyPrefix":{ - "shape":"String", - "documentation":"

    The prefix applied to the log file names.

    Constraints:

    • Cannot exceed 512 characters

    • Cannot contain spaces( ), double quotes (\"), single quotes ('), a backslash (\\), or control characters. The hexadecimal codes for invalid characters are:

      • x00 to x20

      • x22

      • x27

      • x5c

      • x7f or larger

    " + "shape":"S3KeyPrefixValue", + "documentation":"

    The prefix applied to the log file names.

    Valid characters are any letter from any language, any whitespace character, any numeric character, and the following characters: underscore (_), period (.), colon (:), slash (/), equal (=), plus (+), backslash (\\), hyphen (-), at symbol (@).

    " }, "LogDestinationType":{ "shape":"LogDestinationType", @@ -7916,7 +7916,7 @@ "documentation":"

    The name of the S3 bucket where the log files are stored.

    " }, "S3KeyPrefix":{ - "shape":"String", + "shape":"S3KeyPrefixValue", "documentation":"

    The prefix applied to the log file names.

    " }, "LastSuccessfulDeliveryTime":{ @@ -10201,6 +10201,11 @@ "Cluster":{"shape":"Cluster"} } }, + "S3KeyPrefixValue":{ + "type":"string", + "max":256, + "pattern":"[\\p{L}\\p{Z}\\p{N}_.:/=+\\-@]*" + }, "SNSInvalidTopicFault":{ "type":"structure", "members":{