AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateDataSourceRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/BedrockAgentRequest.h>
9#include <aws/bedrock-agent/model/DataDeletionPolicy.h>
10#include <aws/bedrock-agent/model/DataSourceConfiguration.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/bedrock-agent/model/ServerSideEncryptionConfiguration.h>
13#include <aws/bedrock-agent/model/VectorIngestionConfiguration.h>
14#include <utility>
15
16namespace Aws
17{
18namespace BedrockAgent
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_BEDROCKAGENT_API UpdateDataSourceRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateDataSource"; }
35
36 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
37
38
40
43 inline DataDeletionPolicy GetDataDeletionPolicy() const { return m_dataDeletionPolicy; }
44 inline bool DataDeletionPolicyHasBeenSet() const { return m_dataDeletionPolicyHasBeenSet; }
45 inline void SetDataDeletionPolicy(DataDeletionPolicy value) { m_dataDeletionPolicyHasBeenSet = true; m_dataDeletionPolicy = value; }
48
50
53 inline const DataSourceConfiguration& GetDataSourceConfiguration() const { return m_dataSourceConfiguration; }
54 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
55 template<typename DataSourceConfigurationT = DataSourceConfiguration>
56 void SetDataSourceConfiguration(DataSourceConfigurationT&& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = std::forward<DataSourceConfigurationT>(value); }
57 template<typename DataSourceConfigurationT = DataSourceConfiguration>
58 UpdateDataSourceRequest& WithDataSourceConfiguration(DataSourceConfigurationT&& value) { SetDataSourceConfiguration(std::forward<DataSourceConfigurationT>(value)); return *this;}
60
62
65 inline const Aws::String& GetDataSourceId() const { return m_dataSourceId; }
66 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
67 template<typename DataSourceIdT = Aws::String>
68 void SetDataSourceId(DataSourceIdT&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::forward<DataSourceIdT>(value); }
69 template<typename DataSourceIdT = Aws::String>
70 UpdateDataSourceRequest& WithDataSourceId(DataSourceIdT&& value) { SetDataSourceId(std::forward<DataSourceIdT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 UpdateDataSourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
84
86
89 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
90 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
91 template<typename KnowledgeBaseIdT = Aws::String>
92 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
93 template<typename KnowledgeBaseIdT = Aws::String>
94 UpdateDataSourceRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
96
98
101 inline const Aws::String& GetName() const { return m_name; }
102 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
103 template<typename NameT = Aws::String>
104 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
105 template<typename NameT = Aws::String>
106 UpdateDataSourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
108
110
113 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const { return m_serverSideEncryptionConfiguration; }
114 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
115 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
116 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value); }
117 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
118 UpdateDataSourceRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value)); return *this;}
120
122
125 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const { return m_vectorIngestionConfiguration; }
126 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
127 template<typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
128 void SetVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value); }
129 template<typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
130 UpdateDataSourceRequest& WithVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) { SetVectorIngestionConfiguration(std::forward<VectorIngestionConfigurationT>(value)); return *this;}
132 private:
133
135 bool m_dataDeletionPolicyHasBeenSet = false;
136
137 DataSourceConfiguration m_dataSourceConfiguration;
138 bool m_dataSourceConfigurationHasBeenSet = false;
139
140 Aws::String m_dataSourceId;
141 bool m_dataSourceIdHasBeenSet = false;
142
143 Aws::String m_description;
144 bool m_descriptionHasBeenSet = false;
145
146 Aws::String m_knowledgeBaseId;
147 bool m_knowledgeBaseIdHasBeenSet = false;
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
152 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
153 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
154
155 VectorIngestionConfiguration m_vectorIngestionConfiguration;
156 bool m_vectorIngestionConfigurationHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace BedrockAgent
161} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String