AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CreateKnowledgeBaseRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgentRequest.h>
8#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
9#include <aws/bedrock-agent/model/KnowledgeBaseConfiguration.h>
10#include <aws/bedrock-agent/model/StorageConfiguration.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/core/utils/memory/stl/AWSString.h>
14
15#include <utility>
16
17namespace Aws {
18namespace BedrockAgent {
19namespace Model {
20
24 public:
25 AWS_BEDROCKAGENT_API CreateKnowledgeBaseRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateKnowledgeBase"; }
32
33 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
34
36
43 inline const Aws::String& GetClientToken() const { return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 template <typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) {
47 m_clientTokenHasBeenSet = true;
48 m_clientToken = std::forward<ClientTokenT>(value);
49 }
50 template <typename ClientTokenT = Aws::String>
52 SetClientToken(std::forward<ClientTokenT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetName() const { return m_name; }
62 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
63 template <typename NameT = Aws::String>
64 void SetName(NameT&& value) {
65 m_nameHasBeenSet = true;
66 m_name = std::forward<NameT>(value);
67 }
68 template <typename NameT = Aws::String>
70 SetName(std::forward<NameT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDescription() const { return m_description; }
80 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
81 template <typename DescriptionT = Aws::String>
82 void SetDescription(DescriptionT&& value) {
83 m_descriptionHasBeenSet = true;
84 m_description = std::forward<DescriptionT>(value);
85 }
86 template <typename DescriptionT = Aws::String>
88 SetDescription(std::forward<DescriptionT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
99 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
100 template <typename RoleArnT = Aws::String>
101 void SetRoleArn(RoleArnT&& value) {
102 m_roleArnHasBeenSet = true;
103 m_roleArn = std::forward<RoleArnT>(value);
104 }
105 template <typename RoleArnT = Aws::String>
107 SetRoleArn(std::forward<RoleArnT>(value));
108 return *this;
109 }
111
113
116 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
117 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
118 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
119 void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
120 m_knowledgeBaseConfigurationHasBeenSet = true;
121 m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value);
122 }
123 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
124 CreateKnowledgeBaseRequest& WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
125 SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value));
126 return *this;
127 }
129
131
135 inline const StorageConfiguration& GetStorageConfiguration() const { return m_storageConfiguration; }
136 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
137 template <typename StorageConfigurationT = StorageConfiguration>
138 void SetStorageConfiguration(StorageConfigurationT&& value) {
139 m_storageConfigurationHasBeenSet = true;
140 m_storageConfiguration = std::forward<StorageConfigurationT>(value);
141 }
142 template <typename StorageConfigurationT = StorageConfiguration>
143 CreateKnowledgeBaseRequest& WithStorageConfiguration(StorageConfigurationT&& value) {
144 SetStorageConfiguration(std::forward<StorageConfigurationT>(value));
145 return *this;
146 }
148
150
154 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
155 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
156 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 void SetTags(TagsT&& value) {
158 m_tagsHasBeenSet = true;
159 m_tags = std::forward<TagsT>(value);
160 }
161 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
163 SetTags(std::forward<TagsT>(value));
164 return *this;
165 }
166 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
167 CreateKnowledgeBaseRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
168 m_tagsHasBeenSet = true;
169 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
170 return *this;
171 }
173 private:
175
176 Aws::String m_name;
177
178 Aws::String m_description;
179
180 Aws::String m_roleArn;
181
182 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
183
184 StorageConfiguration m_storageConfiguration;
185
187 bool m_clientTokenHasBeenSet = true;
188 bool m_nameHasBeenSet = false;
189 bool m_descriptionHasBeenSet = false;
190 bool m_roleArnHasBeenSet = false;
191 bool m_knowledgeBaseConfigurationHasBeenSet = false;
192 bool m_storageConfigurationHasBeenSet = false;
193 bool m_tagsHasBeenSet = false;
194};
195
196} // namespace Model
197} // namespace BedrockAgent
198} // namespace Aws
CreateKnowledgeBaseRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateKnowledgeBaseRequest & WithRoleArn(RoleArnT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
AWS_BEDROCKAGENT_API CreateKnowledgeBaseRequest()=default
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
CreateKnowledgeBaseRequest & WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
CreateKnowledgeBaseRequest & WithName(NameT &&value)
CreateKnowledgeBaseRequest & WithStorageConfiguration(StorageConfigurationT &&value)
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
CreateKnowledgeBaseRequest & WithDescription(DescriptionT &&value)
CreateKnowledgeBaseRequest & WithTags(TagsT &&value)
CreateKnowledgeBaseRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String