AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
RetrieveAndGenerateConfiguration.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/model/ExternalSourcesRetrieveAndGenerateConfiguration.h>
9#include <aws/bedrock/model/KnowledgeBaseRetrieveAndGenerateConfiguration.h>
10#include <aws/bedrock/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 Bedrock {
22namespace Model {
23
31 public:
32 AWS_BEDROCK_API RetrieveAndGenerateConfiguration() = default;
35 AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
44 inline RetrieveAndGenerateType GetType() const { return m_type; }
45 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
46 inline void SetType(RetrieveAndGenerateType value) {
47 m_typeHasBeenSet = true;
48 m_type = value;
49 }
51 SetType(value);
52 return *this;
53 }
55
57
61 inline const KnowledgeBaseRetrieveAndGenerateConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
62 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
63 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseRetrieveAndGenerateConfiguration>
65 m_knowledgeBaseConfigurationHasBeenSet = true;
66 m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value);
67 }
68 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseRetrieveAndGenerateConfiguration>
70 SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value));
71 return *this;
72 }
74
76
81 return m_externalSourcesConfiguration;
82 }
83 inline bool ExternalSourcesConfigurationHasBeenSet() const { return m_externalSourcesConfigurationHasBeenSet; }
84 template <typename ExternalSourcesConfigurationT = ExternalSourcesRetrieveAndGenerateConfiguration>
86 m_externalSourcesConfigurationHasBeenSet = true;
87 m_externalSourcesConfiguration = std::forward<ExternalSourcesConfigurationT>(value);
88 }
89 template <typename ExternalSourcesConfigurationT = ExternalSourcesRetrieveAndGenerateConfiguration>
91 SetExternalSourcesConfiguration(std::forward<ExternalSourcesConfigurationT>(value));
92 return *this;
93 }
95 private:
97
98 KnowledgeBaseRetrieveAndGenerateConfiguration m_knowledgeBaseConfiguration;
99
100 ExternalSourcesRetrieveAndGenerateConfiguration m_externalSourcesConfiguration;
101 bool m_typeHasBeenSet = false;
102 bool m_knowledgeBaseConfigurationHasBeenSet = false;
103 bool m_externalSourcesConfigurationHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace Bedrock
108} // namespace Aws
AWS_BEDROCK_API RetrieveAndGenerateConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const KnowledgeBaseRetrieveAndGenerateConfiguration & GetKnowledgeBaseConfiguration() const
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
RetrieveAndGenerateConfiguration & WithType(RetrieveAndGenerateType value)
void SetExternalSourcesConfiguration(ExternalSourcesConfigurationT &&value)
RetrieveAndGenerateConfiguration & WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
AWS_BEDROCK_API RetrieveAndGenerateConfiguration(Aws::Utils::Json::JsonView jsonValue)
const ExternalSourcesRetrieveAndGenerateConfiguration & GetExternalSourcesConfiguration() const
AWS_BEDROCK_API RetrieveAndGenerateConfiguration()=default
AWS_BEDROCK_API Aws::Utils::Json::JsonValue Jsonize() const
RetrieveAndGenerateConfiguration & WithExternalSourcesConfiguration(ExternalSourcesConfigurationT &&value)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
Aws::Utils::Json::JsonValue JsonValue