AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateDataSourceRequest.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/BedrockAgentRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock-agent/model/DataDeletionPolicy.h>
11#include <aws/bedrock-agent/model/DataSourceConfiguration.h>
12#include <aws/bedrock-agent/model/ServerSideEncryptionConfiguration.h>
13#include <aws/bedrock-agent/model/VectorIngestionConfiguration.h>
14#include <utility>
15#include <aws/core/utils/UUID.h>
16
17namespace Aws
18{
19namespace BedrockAgent
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_BEDROCKAGENT_API CreateDataSourceRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateDataSource"; }
36
37 AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override;
38
39
41
48 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
49 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
50 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
51 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
52 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
53 inline CreateDataSourceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
54 inline CreateDataSourceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
55 inline CreateDataSourceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
57
59
70 inline const DataDeletionPolicy& GetDataDeletionPolicy() const{ return m_dataDeletionPolicy; }
71 inline bool DataDeletionPolicyHasBeenSet() const { return m_dataDeletionPolicyHasBeenSet; }
72 inline void SetDataDeletionPolicy(const DataDeletionPolicy& value) { m_dataDeletionPolicyHasBeenSet = true; m_dataDeletionPolicy = value; }
73 inline void SetDataDeletionPolicy(DataDeletionPolicy&& value) { m_dataDeletionPolicyHasBeenSet = true; m_dataDeletionPolicy = std::move(value); }
77
79
82 inline const DataSourceConfiguration& GetDataSourceConfiguration() const{ return m_dataSourceConfiguration; }
83 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
84 inline void SetDataSourceConfiguration(const DataSourceConfiguration& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = value; }
85 inline void SetDataSourceConfiguration(DataSourceConfiguration&& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = std::move(value); }
89
91
94 inline const Aws::String& GetDescription() const{ return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
97 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
98 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
99 inline CreateDataSourceRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
100 inline CreateDataSourceRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
101 inline CreateDataSourceRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
103
105
109 inline const Aws::String& GetKnowledgeBaseId() const{ return m_knowledgeBaseId; }
110 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
111 inline void SetKnowledgeBaseId(const Aws::String& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = value; }
112 inline void SetKnowledgeBaseId(Aws::String&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::move(value); }
113 inline void SetKnowledgeBaseId(const char* value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId.assign(value); }
114 inline CreateDataSourceRequest& WithKnowledgeBaseId(const Aws::String& value) { SetKnowledgeBaseId(value); return *this;}
115 inline CreateDataSourceRequest& WithKnowledgeBaseId(Aws::String&& value) { SetKnowledgeBaseId(std::move(value)); return *this;}
116 inline CreateDataSourceRequest& WithKnowledgeBaseId(const char* value) { SetKnowledgeBaseId(value); return *this;}
118
120
123 inline const Aws::String& GetName() const{ return m_name; }
124 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
125 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
126 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
127 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
128 inline CreateDataSourceRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
129 inline CreateDataSourceRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
130 inline CreateDataSourceRequest& WithName(const char* value) { SetName(value); return *this;}
132
134
137 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const{ return m_serverSideEncryptionConfiguration; }
138 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
139 inline void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = value; }
140 inline void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::move(value); }
144
146
149 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const{ return m_vectorIngestionConfiguration; }
150 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
151 inline void SetVectorIngestionConfiguration(const VectorIngestionConfiguration& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = value; }
152 inline void SetVectorIngestionConfiguration(VectorIngestionConfiguration&& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = std::move(value); }
156 private:
157
158 Aws::String m_clientToken;
159 bool m_clientTokenHasBeenSet = false;
160
161 DataDeletionPolicy m_dataDeletionPolicy;
162 bool m_dataDeletionPolicyHasBeenSet = false;
163
164 DataSourceConfiguration m_dataSourceConfiguration;
165 bool m_dataSourceConfigurationHasBeenSet = false;
166
167 Aws::String m_description;
168 bool m_descriptionHasBeenSet = false;
169
170 Aws::String m_knowledgeBaseId;
171 bool m_knowledgeBaseIdHasBeenSet = false;
172
173 Aws::String m_name;
174 bool m_nameHasBeenSet = false;
175
176 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
177 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
178
179 VectorIngestionConfiguration m_vectorIngestionConfiguration;
180 bool m_vectorIngestionConfigurationHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace BedrockAgent
185} // namespace Aws
CreateDataSourceRequest & WithName(const Aws::String &value)
void SetDataDeletionPolicy(const DataDeletionPolicy &value)
CreateDataSourceRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
const DataDeletionPolicy & GetDataDeletionPolicy() const
const DataSourceConfiguration & GetDataSourceConfiguration() const
CreateDataSourceRequest & WithClientToken(const Aws::String &value)
void SetDataSourceConfiguration(const DataSourceConfiguration &value)
CreateDataSourceRequest & WithVectorIngestionConfiguration(const VectorIngestionConfiguration &value)
CreateDataSourceRequest & WithKnowledgeBaseId(Aws::String &&value)
void SetVectorIngestionConfiguration(const VectorIngestionConfiguration &value)
CreateDataSourceRequest & WithName(Aws::String &&value)
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
void SetVectorIngestionConfiguration(VectorIngestionConfiguration &&value)
CreateDataSourceRequest & WithVectorIngestionConfiguration(VectorIngestionConfiguration &&value)
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
CreateDataSourceRequest & WithServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
CreateDataSourceRequest & WithDataDeletionPolicy(DataDeletionPolicy &&value)
CreateDataSourceRequest & WithKnowledgeBaseId(const Aws::String &value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfiguration &&value)
CreateDataSourceRequest & WithDescription(const char *value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
void SetServerSideEncryptionConfiguration(const ServerSideEncryptionConfiguration &value)
CreateDataSourceRequest & WithDataSourceConfiguration(DataSourceConfiguration &&value)
CreateDataSourceRequest & WithClientToken(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetDataSourceConfiguration(DataSourceConfiguration &&value)
CreateDataSourceRequest & WithDescription(Aws::String &&value)
CreateDataSourceRequest & WithDataDeletionPolicy(const DataDeletionPolicy &value)
CreateDataSourceRequest & WithKnowledgeBaseId(const char *value)
CreateDataSourceRequest & WithDataSourceConfiguration(const DataSourceConfiguration &value)
CreateDataSourceRequest & WithClientToken(const char *value)
CreateDataSourceRequest & WithDescription(const Aws::String &value)
CreateDataSourceRequest & WithName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String