AWS SDK for C++

AWS SDK for C++ Version 1.11.936

Loading...
Searching...
No Matches
UpdateKnowledgeBaseRequest.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/MetadataConfiguration.h>
11#include <aws/bedrock-agent/model/StorageConfiguration.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace BedrockAgent {
19namespace Model {
20
24 public:
25 AWS_BEDROCKAGENT_API UpdateKnowledgeBaseRequest() = 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 "UpdateKnowledgeBase"; }
32
33 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
40 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
41 template <typename KnowledgeBaseIdT = Aws::String>
42 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) {
43 m_knowledgeBaseIdHasBeenSet = true;
44 m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value);
45 }
46 template <typename KnowledgeBaseIdT = Aws::String>
48 SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetDescription() const { return m_description; }
76 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
77 template <typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) {
79 m_descriptionHasBeenSet = true;
80 m_description = std::forward<DescriptionT>(value);
81 }
82 template <typename DescriptionT = Aws::String>
84 SetDescription(std::forward<DescriptionT>(value));
85 return *this;
86 }
88
90
94 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
95 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
96 template <typename RoleArnT = Aws::String>
97 void SetRoleArn(RoleArnT&& value) {
98 m_roleArnHasBeenSet = true;
99 m_roleArn = std::forward<RoleArnT>(value);
100 }
101 template <typename RoleArnT = Aws::String>
103 SetRoleArn(std::forward<RoleArnT>(value));
104 return *this;
105 }
107
109
114 inline const KnowledgeBaseConfiguration& GetKnowledgeBaseConfiguration() const { return m_knowledgeBaseConfiguration; }
115 inline bool KnowledgeBaseConfigurationHasBeenSet() const { return m_knowledgeBaseConfigurationHasBeenSet; }
116 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
117 void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
118 m_knowledgeBaseConfigurationHasBeenSet = true;
119 m_knowledgeBaseConfiguration = std::forward<KnowledgeBaseConfigurationT>(value);
120 }
121 template <typename KnowledgeBaseConfigurationT = KnowledgeBaseConfiguration>
122 UpdateKnowledgeBaseRequest& WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT&& value) {
123 SetKnowledgeBaseConfiguration(std::forward<KnowledgeBaseConfigurationT>(value));
124 return *this;
125 }
127
129
133 inline const StorageConfiguration& GetStorageConfiguration() const { return m_storageConfiguration; }
134 inline bool StorageConfigurationHasBeenSet() const { return m_storageConfigurationHasBeenSet; }
135 template <typename StorageConfigurationT = StorageConfiguration>
136 void SetStorageConfiguration(StorageConfigurationT&& value) {
137 m_storageConfigurationHasBeenSet = true;
138 m_storageConfiguration = std::forward<StorageConfigurationT>(value);
139 }
140 template <typename StorageConfigurationT = StorageConfiguration>
141 UpdateKnowledgeBaseRequest& WithStorageConfiguration(StorageConfigurationT&& value) {
142 SetStorageConfiguration(std::forward<StorageConfigurationT>(value));
143 return *this;
144 }
146
148
155 inline const Aws::Vector<MetadataConfiguration>& GetMetadataConfigurations() const { return m_metadataConfigurations; }
156 inline bool MetadataConfigurationsHasBeenSet() const { return m_metadataConfigurationsHasBeenSet; }
157 template <typename MetadataConfigurationsT = Aws::Vector<MetadataConfiguration>>
158 void SetMetadataConfigurations(MetadataConfigurationsT&& value) {
159 m_metadataConfigurationsHasBeenSet = true;
160 m_metadataConfigurations = std::forward<MetadataConfigurationsT>(value);
161 }
162 template <typename MetadataConfigurationsT = Aws::Vector<MetadataConfiguration>>
163 UpdateKnowledgeBaseRequest& WithMetadataConfigurations(MetadataConfigurationsT&& value) {
164 SetMetadataConfigurations(std::forward<MetadataConfigurationsT>(value));
165 return *this;
166 }
167 template <typename MetadataConfigurationsT = MetadataConfiguration>
168 UpdateKnowledgeBaseRequest& AddMetadataConfigurations(MetadataConfigurationsT&& value) {
169 m_metadataConfigurationsHasBeenSet = true;
170 m_metadataConfigurations.emplace_back(std::forward<MetadataConfigurationsT>(value));
171 return *this;
172 }
174 private:
175 Aws::String m_knowledgeBaseId;
176
177 Aws::String m_name;
178
179 Aws::String m_description;
180
181 Aws::String m_roleArn;
182
183 KnowledgeBaseConfiguration m_knowledgeBaseConfiguration;
184
185 StorageConfiguration m_storageConfiguration;
186
187 Aws::Vector<MetadataConfiguration> m_metadataConfigurations;
188 bool m_knowledgeBaseIdHasBeenSet = false;
189 bool m_nameHasBeenSet = false;
190 bool m_descriptionHasBeenSet = false;
191 bool m_roleArnHasBeenSet = false;
192 bool m_knowledgeBaseConfigurationHasBeenSet = false;
193 bool m_storageConfigurationHasBeenSet = false;
194 bool m_metadataConfigurationsHasBeenSet = false;
195};
196
197} // namespace Model
198} // namespace BedrockAgent
199} // namespace Aws
UpdateKnowledgeBaseRequest & WithKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
const Aws::Vector< MetadataConfiguration > & GetMetadataConfigurations() const
UpdateKnowledgeBaseRequest & WithDescription(DescriptionT &&value)
UpdateKnowledgeBaseRequest & AddMetadataConfigurations(MetadataConfigurationsT &&value)
AWS_BEDROCKAGENT_API UpdateKnowledgeBaseRequest()=default
UpdateKnowledgeBaseRequest & WithStorageConfiguration(StorageConfigurationT &&value)
void SetKnowledgeBaseConfiguration(KnowledgeBaseConfigurationT &&value)
void SetMetadataConfigurations(MetadataConfigurationsT &&value)
UpdateKnowledgeBaseRequest & WithName(NameT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdateKnowledgeBaseRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
UpdateKnowledgeBaseRequest & WithRoleArn(RoleArnT &&value)
UpdateKnowledgeBaseRequest & WithMetadataConfigurations(MetadataConfigurationsT &&value)
const KnowledgeBaseConfiguration & GetKnowledgeBaseConfiguration() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector