AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UpdateDataSourceRequest.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/DataDeletionPolicy.h>
10#include <aws/bedrock-agent/model/DataSourceConfiguration.h>
11#include <aws/bedrock-agent/model/ServerSideEncryptionConfiguration.h>
12#include <aws/bedrock-agent/model/VectorIngestionConfiguration.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 UpdateDataSourceRequest() = 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 "UpdateDataSource"; }
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>
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& GetDataSourceId() const { return m_dataSourceId; }
58 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
59 template <typename DataSourceIdT = Aws::String>
61 m_dataSourceIdHasBeenSet = true;
62 m_dataSourceId = std::forward<DataSourceIdT>(value);
63 }
64 template <typename DataSourceIdT = Aws::String>
66 SetDataSourceId(std::forward<DataSourceIdT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
77 template <typename NameT = Aws::String>
78 void SetName(NameT&& value) {
79 m_nameHasBeenSet = true;
80 m_name = std::forward<NameT>(value);
81 }
82 template <typename NameT = Aws::String>
84 SetName(std::forward<NameT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::String& GetDescription() const { return m_description; }
94 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
95 template <typename DescriptionT = Aws::String>
97 m_descriptionHasBeenSet = true;
98 m_description = std::forward<DescriptionT>(value);
99 }
100 template <typename DescriptionT = Aws::String>
102 SetDescription(std::forward<DescriptionT>(value));
103 return *this;
104 }
106
108
111 inline const DataSourceConfiguration& GetDataSourceConfiguration() const { return m_dataSourceConfiguration; }
112 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
113 template <typename DataSourceConfigurationT = DataSourceConfiguration>
115 m_dataSourceConfigurationHasBeenSet = true;
116 m_dataSourceConfiguration = std::forward<DataSourceConfigurationT>(value);
117 }
118 template <typename DataSourceConfigurationT = DataSourceConfiguration>
120 SetDataSourceConfiguration(std::forward<DataSourceConfigurationT>(value));
121 return *this;
122 }
124
126
129 inline DataDeletionPolicy GetDataDeletionPolicy() const { return m_dataDeletionPolicy; }
130 inline bool DataDeletionPolicyHasBeenSet() const { return m_dataDeletionPolicyHasBeenSet; }
132 m_dataDeletionPolicyHasBeenSet = true;
133 m_dataDeletionPolicy = value;
134 }
137 return *this;
138 }
140
142
146 return m_serverSideEncryptionConfiguration;
147 }
148 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
149 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
151 m_serverSideEncryptionConfigurationHasBeenSet = true;
152 m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value);
153 }
154 template <typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
156 SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value));
157 return *this;
158 }
160
162
165 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const { return m_vectorIngestionConfiguration; }
166 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
167 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
169 m_vectorIngestionConfigurationHasBeenSet = true;
170 m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value);
171 }
172 template <typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
174 SetVectorIngestionConfiguration(std::forward<VectorIngestionConfigurationT>(value));
175 return *this;
176 }
178 private:
179 Aws::String m_knowledgeBaseId;
180
181 Aws::String m_dataSourceId;
182
183 Aws::String m_name;
184
185 Aws::String m_description;
186
187 DataSourceConfiguration m_dataSourceConfiguration;
188
190
191 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
192
193 VectorIngestionConfiguration m_vectorIngestionConfiguration;
194 bool m_knowledgeBaseIdHasBeenSet = false;
195 bool m_dataSourceIdHasBeenSet = false;
196 bool m_nameHasBeenSet = false;
197 bool m_descriptionHasBeenSet = false;
198 bool m_dataSourceConfigurationHasBeenSet = false;
199 bool m_dataDeletionPolicyHasBeenSet = false;
200 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
201 bool m_vectorIngestionConfigurationHasBeenSet = false;
202};
203
204} // namespace Model
205} // namespace BedrockAgent
206} // namespace Aws
void SetVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
UpdateDataSourceRequest & WithDataDeletionPolicy(DataDeletionPolicy value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
UpdateDataSourceRequest & WithDataSourceConfiguration(DataSourceConfigurationT &&value)
const DataSourceConfiguration & GetDataSourceConfiguration() const
UpdateDataSourceRequest & WithDataSourceId(DataSourceIdT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
UpdateDataSourceRequest & WithDescription(DescriptionT &&value)
UpdateDataSourceRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
AWS_BEDROCKAGENT_API UpdateDataSourceRequest()=default
void SetDataSourceConfiguration(DataSourceConfigurationT &&value)
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
UpdateDataSourceRequest & WithVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
UpdateDataSourceRequest & WithName(NameT &&value)
UpdateDataSourceRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String