AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
RetrieveAndGenerateConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent-runtime/BedrockAgentRuntime_EXPORTS.h>
8#include <aws/bedrock-agent-runtime/model/ExternalSourcesRetrieveAndGenerateConfiguration.h>
9#include <aws/bedrock-agent-runtime/model/KnowledgeBaseRetrieveAndGenerateConfiguration.h>
10#include <aws/bedrock-agent-runtime/model/RetrieveAndGenerateType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentRuntime {
22namespace Model {
23
34 public:
35 AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateConfiguration() = default;
38 AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
46 return m_externalSourcesConfiguration;
47 }
48 inline bool ExternalSourcesConfigurationHasBeenSet() const { return m_externalSourcesConfigurationHasBeenSet; }
49 template <typename ExternalSourcesConfigurationT = ExternalSourcesRetrieveAndGenerateConfiguration>
51 m_externalSourcesConfigurationHasBeenSet = true;
52 m_externalSourcesConfiguration = std::forward<ExternalSourcesConfigurationT>(value);
53 }
54 template <typename ExternalSourcesConfigurationT = ExternalSourcesRetrieveAndGenerateConfiguration>
56 SetExternalSourcesConfiguration(std::forward<ExternalSourcesConfigurationT>(value));
57 return *this;
58 }
60
62
66 inline const KnowledgeBaseRetrieveAndGenerateConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
67 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
68 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseRetrieveAndGenerateConfiguration>
70 m_knowledgeBaseConfigurationHasBeenSet = true;
71 m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value);
72 }
73 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseRetrieveAndGenerateConfiguration>
75 SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value));
76 return *this;
77 }
79
81
87 inline RetrieveAndGenerateType GetType() const { return m_type; }
88 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
89 inline void SetType(RetrieveAndGenerateType value) {
90 m_typeHasBeenSet = true;
91 m_type = value;
92 }
94 SetType(value);
95 return *this;
96 }
98 private:
99 ExternalSourcesRetrieveAndGenerateConfiguration m_externalSourcesConfiguration;
100
101 KnowledgeBaseRetrieveAndGenerateConfiguration m_knowledgeBaseConfiguration;
102
104 bool m_externalSourcesConfigurationHasBeenSet = false;
105 bool m_knowledgeBaseConfigurationHasBeenSet = false;
106 bool m_typeHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace BedrockAgentRuntime
111} // namespace Aws
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateConfiguration(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const ExternalSourcesRetrieveAndGenerateConfiguration & GetExternalSourcesConfiguration() const
const KnowledgeBaseRetrieveAndGenerateConfiguration & GetKnowledgeBaseConfiguration() const
AWS_BEDROCKAGENTRUNTIME_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_BEDROCKAGENTRUNTIME_API RetrieveAndGenerateConfiguration()=default
RetrieveAndGenerateConfiguration & WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
RetrieveAndGenerateConfiguration & WithExternalSourcesConfiguration(ExternalSourcesConfigurationT &&value)
RetrieveAndGenerateConfiguration & WithType(RetrieveAndGenerateType value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue