AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
MongoDbAtlasConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/bedrock-agent/model/MongoDbAtlasFieldMapping.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace BedrockAgent {
21namespace Model {
22
30 public:
31 AWS_BEDROCKAGENT_API MongoDbAtlasConfiguration() = default;
34 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
41 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
42 template <typename EndpointT = Aws::String>
43 void SetEndpoint(EndpointT&& value) {
44 m_endpointHasBeenSet = true;
45 m_endpoint = std::forward<EndpointT>(value);
46 }
47 template <typename EndpointT = Aws::String>
49 SetEndpoint(std::forward<EndpointT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
59 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
60 template <typename DatabaseNameT = Aws::String>
62 m_databaseNameHasBeenSet = true;
63 m_databaseName = std::forward<DatabaseNameT>(value);
64 }
65 template <typename DatabaseNameT = Aws::String>
67 SetDatabaseName(std::forward<DatabaseNameT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetCollectionName() const { return m_collectionName; }
77 inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; }
78 template <typename CollectionNameT = Aws::String>
80 m_collectionNameHasBeenSet = true;
81 m_collectionName = std::forward<CollectionNameT>(value);
82 }
83 template <typename CollectionNameT = Aws::String>
85 SetCollectionName(std::forward<CollectionNameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetVectorIndexName() const { return m_vectorIndexName; }
95 inline bool VectorIndexNameHasBeenSet() const { return m_vectorIndexNameHasBeenSet; }
96 template <typename VectorIndexNameT = Aws::String>
98 m_vectorIndexNameHasBeenSet = true;
99 m_vectorIndexName = std::forward<VectorIndexNameT>(value);
100 }
101 template <typename VectorIndexNameT = Aws::String>
103 SetVectorIndexName(std::forward<VectorIndexNameT>(value));
104 return *this;
105 }
107
109
113 inline const Aws::String& GetCredentialsSecretArn() const { return m_credentialsSecretArn; }
114 inline bool CredentialsSecretArnHasBeenSet() const { return m_credentialsSecretArnHasBeenSet; }
115 template <typename CredentialsSecretArnT = Aws::String>
117 m_credentialsSecretArnHasBeenSet = true;
118 m_credentialsSecretArn = std::forward<CredentialsSecretArnT>(value);
119 }
120 template <typename CredentialsSecretArnT = Aws::String>
122 SetCredentialsSecretArn(std::forward<CredentialsSecretArnT>(value));
123 return *this;
124 }
126
128
132 inline const MongoDbAtlasFieldMapping& GetFieldMapping() const { return m_fieldMapping; }
133 inline bool FieldMappingHasBeenSet() const { return m_fieldMappingHasBeenSet; }
134 template <typename FieldMappingT = MongoDbAtlasFieldMapping>
136 m_fieldMappingHasBeenSet = true;
137 m_fieldMapping = std::forward<FieldMappingT>(value);
138 }
139 template <typename FieldMappingT = MongoDbAtlasFieldMapping>
141 SetFieldMapping(std::forward<FieldMappingT>(value));
142 return *this;
143 }
145
147
151 inline const Aws::String& GetEndpointServiceName() const { return m_endpointServiceName; }
152 inline bool EndpointServiceNameHasBeenSet() const { return m_endpointServiceNameHasBeenSet; }
153 template <typename EndpointServiceNameT = Aws::String>
155 m_endpointServiceNameHasBeenSet = true;
156 m_endpointServiceName = std::forward<EndpointServiceNameT>(value);
157 }
158 template <typename EndpointServiceNameT = Aws::String>
160 SetEndpointServiceName(std::forward<EndpointServiceNameT>(value));
161 return *this;
162 }
164
166
170 inline const Aws::String& GetTextIndexName() const { return m_textIndexName; }
171 inline bool TextIndexNameHasBeenSet() const { return m_textIndexNameHasBeenSet; }
172 template <typename TextIndexNameT = Aws::String>
174 m_textIndexNameHasBeenSet = true;
175 m_textIndexName = std::forward<TextIndexNameT>(value);
176 }
177 template <typename TextIndexNameT = Aws::String>
179 SetTextIndexName(std::forward<TextIndexNameT>(value));
180 return *this;
181 }
183 private:
184 Aws::String m_endpoint;
185
186 Aws::String m_databaseName;
187
188 Aws::String m_collectionName;
189
190 Aws::String m_vectorIndexName;
191
192 Aws::String m_credentialsSecretArn;
193
194 MongoDbAtlasFieldMapping m_fieldMapping;
195
196 Aws::String m_endpointServiceName;
197
198 Aws::String m_textIndexName;
199 bool m_endpointHasBeenSet = false;
200 bool m_databaseNameHasBeenSet = false;
201 bool m_collectionNameHasBeenSet = false;
202 bool m_vectorIndexNameHasBeenSet = false;
203 bool m_credentialsSecretArnHasBeenSet = false;
204 bool m_fieldMappingHasBeenSet = false;
205 bool m_endpointServiceNameHasBeenSet = false;
206 bool m_textIndexNameHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace BedrockAgent
211} // namespace Aws
MongoDbAtlasConfiguration & WithDatabaseName(DatabaseNameT &&value)
MongoDbAtlasConfiguration & WithTextIndexName(TextIndexNameT &&value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
const MongoDbAtlasFieldMapping & GetFieldMapping() const
MongoDbAtlasConfiguration & WithCollectionName(CollectionNameT &&value)
AWS_BEDROCKAGENT_API MongoDbAtlasConfiguration()=default
MongoDbAtlasConfiguration & WithCredentialsSecretArn(CredentialsSecretArnT &&value)
AWS_BEDROCKAGENT_API MongoDbAtlasConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
MongoDbAtlasConfiguration & WithEndpoint(EndpointT &&value)
MongoDbAtlasConfiguration & WithFieldMapping(FieldMappingT &&value)
MongoDbAtlasConfiguration & WithVectorIndexName(VectorIndexNameT &&value)
MongoDbAtlasConfiguration & WithEndpointServiceName(EndpointServiceNameT &&value)
AWS_BEDROCKAGENT_API MongoDbAtlasConfiguration(Aws::Utils::Json::JsonView jsonValue)
std::shared_ptr< T > MakeShared(const char *allocationTag, ArgTypes &&... args)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue