AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
MongoDbAtlasConfiguration.h
1
6#pragma once
7#include <aws/bedrock-agent/BedrockAgent_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/bedrock-agent/model/MongoDbAtlasFieldMapping.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace BedrockAgent
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_BEDROCKAGENT_API MongoDbAtlasConfiguration() = default;
39 AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCollectionName() const { return m_collectionName; }
47 inline bool CollectionNameHasBeenSet() const { return m_collectionNameHasBeenSet; }
48 template<typename CollectionNameT = Aws::String>
49 void SetCollectionName(CollectionNameT&& value) { m_collectionNameHasBeenSet = true; m_collectionName = std::forward<CollectionNameT>(value); }
50 template<typename CollectionNameT = Aws::String>
51 MongoDbAtlasConfiguration& WithCollectionName(CollectionNameT&& value) { SetCollectionName(std::forward<CollectionNameT>(value)); return *this;}
53
55
59 inline const Aws::String& GetCredentialsSecretArn() const { return m_credentialsSecretArn; }
60 inline bool CredentialsSecretArnHasBeenSet() const { return m_credentialsSecretArnHasBeenSet; }
61 template<typename CredentialsSecretArnT = Aws::String>
62 void SetCredentialsSecretArn(CredentialsSecretArnT&& value) { m_credentialsSecretArnHasBeenSet = true; m_credentialsSecretArn = std::forward<CredentialsSecretArnT>(value); }
63 template<typename CredentialsSecretArnT = Aws::String>
64 MongoDbAtlasConfiguration& WithCredentialsSecretArn(CredentialsSecretArnT&& value) { SetCredentialsSecretArn(std::forward<CredentialsSecretArnT>(value)); return *this;}
66
68
71 inline const Aws::String& GetDatabaseName() const { return m_databaseName; }
72 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
73 template<typename DatabaseNameT = Aws::String>
74 void SetDatabaseName(DatabaseNameT&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::forward<DatabaseNameT>(value); }
75 template<typename DatabaseNameT = Aws::String>
76 MongoDbAtlasConfiguration& WithDatabaseName(DatabaseNameT&& value) { SetDatabaseName(std::forward<DatabaseNameT>(value)); return *this;}
78
80
83 inline const Aws::String& GetEndpoint() const { return m_endpoint; }
84 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
85 template<typename EndpointT = Aws::String>
86 void SetEndpoint(EndpointT&& value) { m_endpointHasBeenSet = true; m_endpoint = std::forward<EndpointT>(value); }
87 template<typename EndpointT = Aws::String>
88 MongoDbAtlasConfiguration& WithEndpoint(EndpointT&& value) { SetEndpoint(std::forward<EndpointT>(value)); return *this;}
90
92
96 inline const Aws::String& GetEndpointServiceName() const { return m_endpointServiceName; }
97 inline bool EndpointServiceNameHasBeenSet() const { return m_endpointServiceNameHasBeenSet; }
98 template<typename EndpointServiceNameT = Aws::String>
99 void SetEndpointServiceName(EndpointServiceNameT&& value) { m_endpointServiceNameHasBeenSet = true; m_endpointServiceName = std::forward<EndpointServiceNameT>(value); }
100 template<typename EndpointServiceNameT = Aws::String>
101 MongoDbAtlasConfiguration& WithEndpointServiceName(EndpointServiceNameT&& value) { SetEndpointServiceName(std::forward<EndpointServiceNameT>(value)); return *this;}
103
105
109 inline const MongoDbAtlasFieldMapping& GetFieldMapping() const { return m_fieldMapping; }
110 inline bool FieldMappingHasBeenSet() const { return m_fieldMappingHasBeenSet; }
111 template<typename FieldMappingT = MongoDbAtlasFieldMapping>
112 void SetFieldMapping(FieldMappingT&& value) { m_fieldMappingHasBeenSet = true; m_fieldMapping = std::forward<FieldMappingT>(value); }
113 template<typename FieldMappingT = MongoDbAtlasFieldMapping>
114 MongoDbAtlasConfiguration& WithFieldMapping(FieldMappingT&& value) { SetFieldMapping(std::forward<FieldMappingT>(value)); return *this;}
116
118
122 inline const Aws::String& GetTextIndexName() const { return m_textIndexName; }
123 inline bool TextIndexNameHasBeenSet() const { return m_textIndexNameHasBeenSet; }
124 template<typename TextIndexNameT = Aws::String>
125 void SetTextIndexName(TextIndexNameT&& value) { m_textIndexNameHasBeenSet = true; m_textIndexName = std::forward<TextIndexNameT>(value); }
126 template<typename TextIndexNameT = Aws::String>
127 MongoDbAtlasConfiguration& WithTextIndexName(TextIndexNameT&& value) { SetTextIndexName(std::forward<TextIndexNameT>(value)); return *this;}
129
131
134 inline const Aws::String& GetVectorIndexName() const { return m_vectorIndexName; }
135 inline bool VectorIndexNameHasBeenSet() const { return m_vectorIndexNameHasBeenSet; }
136 template<typename VectorIndexNameT = Aws::String>
137 void SetVectorIndexName(VectorIndexNameT&& value) { m_vectorIndexNameHasBeenSet = true; m_vectorIndexName = std::forward<VectorIndexNameT>(value); }
138 template<typename VectorIndexNameT = Aws::String>
139 MongoDbAtlasConfiguration& WithVectorIndexName(VectorIndexNameT&& value) { SetVectorIndexName(std::forward<VectorIndexNameT>(value)); return *this;}
141 private:
142
143 Aws::String m_collectionName;
144 bool m_collectionNameHasBeenSet = false;
145
146 Aws::String m_credentialsSecretArn;
147 bool m_credentialsSecretArnHasBeenSet = false;
148
149 Aws::String m_databaseName;
150 bool m_databaseNameHasBeenSet = false;
151
152 Aws::String m_endpoint;
153 bool m_endpointHasBeenSet = false;
154
155 Aws::String m_endpointServiceName;
156 bool m_endpointServiceNameHasBeenSet = false;
157
158 MongoDbAtlasFieldMapping m_fieldMapping;
159 bool m_fieldMappingHasBeenSet = false;
160
161 Aws::String m_textIndexName;
162 bool m_textIndexNameHasBeenSet = false;
163
164 Aws::String m_vectorIndexName;
165 bool m_vectorIndexNameHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace BedrockAgent
170} // 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::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue