AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 const DataDeletionPolicy& GetDataDeletionPolicy() const{ return m_dataDeletionPolicy; }
44 inline bool DataDeletionPolicyHasBeenSet() const { return m_dataDeletionPolicyHasBeenSet; }
45 inline void SetDataDeletionPolicy(const DataDeletionPolicy& value) { m_dataDeletionPolicyHasBeenSet = true; m_dataDeletionPolicy = value; }
46 inline void SetDataDeletionPolicy(DataDeletionPolicy&& value) { m_dataDeletionPolicyHasBeenSet = true; m_dataDeletionPolicy = std::move(value); }
50
52
55 inline const DataSourceConfiguration& GetDataSourceConfiguration() const{ return m_dataSourceConfiguration; }
56 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
57 inline void SetDataSourceConfiguration(const DataSourceConfiguration& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = value; }
58 inline void SetDataSourceConfiguration(DataSourceConfiguration&& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = std::move(value); }
62
64
67 inline const Aws::String& GetDataSourceId() const{ return m_dataSourceId; }
68 inline bool DataSourceIdHasBeenSet() const { return m_dataSourceIdHasBeenSet; }
69 inline void SetDataSourceId(const Aws::String& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = value; }
70 inline void SetDataSourceId(Aws::String&& value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId = std::move(value); }
71 inline void SetDataSourceId(const char* value) { m_dataSourceIdHasBeenSet = true; m_dataSourceId.assign(value); }
72 inline UpdateDataSourceRequest& WithDataSourceId(const Aws::String& value) { SetDataSourceId(value); return *this;}
73 inline UpdateDataSourceRequest& WithDataSourceId(Aws::String&& value) { SetDataSourceId(std::move(value)); return *this;}
74 inline UpdateDataSourceRequest& WithDataSourceId(const char* value) { SetDataSourceId(value); return *this;}
76
78
81 inline const Aws::String& GetDescription() const{ return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
84 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
85 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
86 inline UpdateDataSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
87 inline UpdateDataSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
88 inline UpdateDataSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
90
92
95 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
96 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
97 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
98 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
99 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
100 inline UpdateDataSourceRequest& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
101 inline UpdateDataSourceRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
102 inline UpdateDataSourceRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
104
106
109 inline const Aws::String& GetName() const{ return m_name; }
110 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
111 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
112 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
113 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
114 inline UpdateDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
115 inline UpdateDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
116 inline UpdateDataSourceRequest& WithName(const char* value) { SetName(value); return *this;}
118
120
123 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const{ return m_serverSideEncryptionConfiguration; }
124 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
125 inline void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = value; }
126 inline void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::move(value); }
130
132
135 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const{ return m_vectorIngestionConfiguration; }
136 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
137 inline void SetVectorIngestionConfiguration(const VectorIngestionConfiguration& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = value; }
138 inline void SetVectorIngestionConfiguration(VectorIngestionConfiguration&& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = std::move(value); }
142 private:
143
144 DataDeletionPolicy m_dataDeletionPolicy;
145 bool m_dataDeletionPolicyHasBeenSet = false;
146
147 DataSourceConfiguration m_dataSourceConfiguration;
148 bool m_dataSourceConfigurationHasBeenSet = false;
149
150 Aws::String m_dataSourceId;
151 bool m_dataSourceIdHasBeenSet = false;
152
153 Aws::String m_description;
154 bool m_descriptionHasBeenSet = false;
155
156 Aws::String m_knowledgeBaseId;
157 bool m_knowledgeBaseIdHasBeenSet = false;
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
163 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
164
165 VectorIngestionConfiguration m_vectorIngestionConfiguration;
166 bool m_vectorIngestionConfigurationHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace BedrockAgent
171} // namespace Aws
UpdateDataSourceRequest & WithKnowledgeBaseId(const char *value)
UpdateDataSourceRequest & WithDataSourceConfiguration(DataSourceConfiguration &&value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
UpdateDataSourceRequest & WithDataDeletionPolicy(const DataDeletionPolicy &value)
UpdateDataSourceRequest & WithDescription(const char *value)
void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
UpdateDataSourceRequest & WithName(Aws::String &&value)
UpdateDataSourceRequest & WithVectorIngestionConfiguration(VectorIngestionConfiguration &&value)
const DataSourceConfiguration & GetDataSourceConfiguration() const
UpdateDataSourceRequest & WithServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
void SetVectorIngestionConfiguration(const VectorIngestionConfiguration &value)
UpdateDataSourceRequest & WithVectorIngestionConfiguration(const VectorIngestionConfiguration &value)
UpdateDataSourceRequest & WithDescription(Aws::String &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
void SetVectorIngestionConfiguration(VectorIngestionConfiguration &&value)
const DataDeletionPolicy & GetDataDeletionPolicy() const
UpdateDataSourceRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
UpdateDataSourceRequest & WithDataSourceId(Aws::String &&value)
void SetDataSourceConfiguration(DataSourceConfiguration &&value)
UpdateDataSourceRequest & WithKnowledgeBaseId(Aws::String &&value)
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
void SetDataDeletionPolicy(const DataDeletionPolicy &value)
UpdateDataSourceRequest & WithDataSourceId(const Aws::String &value)
UpdateDataSourceRequest & WithDescription(const Aws::String &value)
UpdateDataSourceRequest & WithDataSourceConfiguration(const DataSourceConfiguration &value)
UpdateDataSourceRequest & WithDataSourceId(const char *value)
UpdateDataSourceRequest & WithKnowledgeBaseId(const Aws::String &value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
void SetDataSourceConfiguration(const DataSourceConfiguration &value)
UpdateDataSourceRequest & WithName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateDataSourceRequest & WithDataDeletionPolicy(DataDeletionPolicy &&value)
UpdateDataSourceRequest & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String