AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
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 template<typename ClientTokenT = Aws::String>
51 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
52 template<typename ClientTokenT = Aws::String>
53 CreateDataSourceRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
55
57
68 inline DataDeletionPolicy GetDataDeletionPolicy() const { return m_dataDeletionPolicy; }
69 inline bool DataDeletionPolicyHasBeenSet() const { return m_dataDeletionPolicyHasBeenSet; }
70 inline void SetDataDeletionPolicy(DataDeletionPolicy value) { m_dataDeletionPolicyHasBeenSet = true; m_dataDeletionPolicy = value; }
73
75
78 inline const DataSourceConfiguration& GetDataSourceConfiguration() const { return m_dataSourceConfiguration; }
79 inline bool DataSourceConfigurationHasBeenSet() const { return m_dataSourceConfigurationHasBeenSet; }
80 template<typename DataSourceConfigurationT = DataSourceConfiguration>
81 void SetDataSourceConfiguration(DataSourceConfigurationT&& value) { m_dataSourceConfigurationHasBeenSet = true; m_dataSourceConfiguration = std::forward<DataSourceConfigurationT>(value); }
82 template<typename DataSourceConfigurationT = DataSourceConfiguration>
83 CreateDataSourceRequest& WithDataSourceConfiguration(DataSourceConfigurationT&& value) { SetDataSourceConfiguration(std::forward<DataSourceConfigurationT>(value)); return *this;}
85
87
90 inline const Aws::String& GetDescription() const { return m_description; }
91 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
92 template<typename DescriptionT = Aws::String>
93 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
94 template<typename DescriptionT = Aws::String>
95 CreateDataSourceRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
97
99
103 inline const Aws::String& GetKnowledgeBaseId() const { return m_knowledgeBaseId; }
104 inline bool KnowledgeBaseIdHasBeenSet() const { return m_knowledgeBaseIdHasBeenSet; }
105 template<typename KnowledgeBaseIdT = Aws::String>
106 void SetKnowledgeBaseId(KnowledgeBaseIdT&& value) { m_knowledgeBaseIdHasBeenSet = true; m_knowledgeBaseId = std::forward<KnowledgeBaseIdT>(value); }
107 template<typename KnowledgeBaseIdT = Aws::String>
108 CreateDataSourceRequest& WithKnowledgeBaseId(KnowledgeBaseIdT&& value) { SetKnowledgeBaseId(std::forward<KnowledgeBaseIdT>(value)); return *this;}
110
112
115 inline const Aws::String& GetName() const { return m_name; }
116 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
117 template<typename NameT = Aws::String>
118 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
119 template<typename NameT = Aws::String>
120 CreateDataSourceRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
122
124
127 inline const ServerSideEncryptionConfiguration& GetServerSideEncryptionConfiguration() const { return m_serverSideEncryptionConfiguration; }
128 inline bool ServerSideEncryptionConfigurationHasBeenSet() const { return m_serverSideEncryptionConfigurationHasBeenSet; }
129 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
130 void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { m_serverSideEncryptionConfigurationHasBeenSet = true; m_serverSideEncryptionConfiguration = std::forward<ServerSideEncryptionConfigurationT>(value); }
131 template<typename ServerSideEncryptionConfigurationT = ServerSideEncryptionConfiguration>
132 CreateDataSourceRequest& WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT&& value) { SetServerSideEncryptionConfiguration(std::forward<ServerSideEncryptionConfigurationT>(value)); return *this;}
134
136
139 inline const VectorIngestionConfiguration& GetVectorIngestionConfiguration() const { return m_vectorIngestionConfiguration; }
140 inline bool VectorIngestionConfigurationHasBeenSet() const { return m_vectorIngestionConfigurationHasBeenSet; }
141 template<typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
142 void SetVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) { m_vectorIngestionConfigurationHasBeenSet = true; m_vectorIngestionConfiguration = std::forward<VectorIngestionConfigurationT>(value); }
143 template<typename VectorIngestionConfigurationT = VectorIngestionConfiguration>
144 CreateDataSourceRequest& WithVectorIngestionConfiguration(VectorIngestionConfigurationT&& value) { SetVectorIngestionConfiguration(std::forward<VectorIngestionConfigurationT>(value)); return *this;}
146 private:
147
149 bool m_clientTokenHasBeenSet = true;
150
152 bool m_dataDeletionPolicyHasBeenSet = false;
153
154 DataSourceConfiguration m_dataSourceConfiguration;
155 bool m_dataSourceConfigurationHasBeenSet = false;
156
157 Aws::String m_description;
158 bool m_descriptionHasBeenSet = false;
159
160 Aws::String m_knowledgeBaseId;
161 bool m_knowledgeBaseIdHasBeenSet = false;
162
163 Aws::String m_name;
164 bool m_nameHasBeenSet = false;
165
166 ServerSideEncryptionConfiguration m_serverSideEncryptionConfiguration;
167 bool m_serverSideEncryptionConfigurationHasBeenSet = false;
168
169 VectorIngestionConfiguration m_vectorIngestionConfiguration;
170 bool m_vectorIngestionConfigurationHasBeenSet = false;
171 };
172
173} // namespace Model
174} // namespace BedrockAgent
175} // namespace Aws
const DataSourceConfiguration & GetDataSourceConfiguration() const
const ServerSideEncryptionConfiguration & GetServerSideEncryptionConfiguration() const
const VectorIngestionConfiguration & GetVectorIngestionConfiguration() const
CreateDataSourceRequest & WithName(NameT &&value)
CreateDataSourceRequest & WithServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
CreateDataSourceRequest & WithKnowledgeBaseId(KnowledgeBaseIdT &&value)
CreateDataSourceRequest & WithDescription(DescriptionT &&value)
void SetDataSourceConfiguration(DataSourceConfigurationT &&value)
CreateDataSourceRequest & WithClientToken(ClientTokenT &&value)
AWS_BEDROCKAGENT_API Aws::String SerializePayload() const override
void SetVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
AWS_BEDROCKAGENT_API CreateDataSourceRequest()=default
CreateDataSourceRequest & WithDataSourceConfiguration(DataSourceConfigurationT &&value)
virtual const char * GetServiceRequestName() const override
CreateDataSourceRequest & WithVectorIngestionConfiguration(VectorIngestionConfigurationT &&value)
void SetServerSideEncryptionConfiguration(ServerSideEncryptionConfigurationT &&value)
CreateDataSourceRequest & WithDataDeletionPolicy(DataDeletionPolicy value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String