AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetCollectionName(const Aws::String& value) { m_collectionNameHasBeenSet = true; m_collectionName = value; }
49 inline void SetCollectionName(Aws::String&& value) { m_collectionNameHasBeenSet = true; m_collectionName = std::move(value); }
50 inline void SetCollectionName(const char* value) { m_collectionNameHasBeenSet = true; m_collectionName.assign(value); }
51 inline MongoDbAtlasConfiguration& WithCollectionName(const Aws::String& value) { SetCollectionName(value); return *this;}
52 inline MongoDbAtlasConfiguration& WithCollectionName(Aws::String&& value) { SetCollectionName(std::move(value)); return *this;}
53 inline MongoDbAtlasConfiguration& WithCollectionName(const char* value) { SetCollectionName(value); return *this;}
55
57
61 inline const Aws::String& GetCredentialsSecretArn() const{ return m_credentialsSecretArn; }
62 inline bool CredentialsSecretArnHasBeenSet() const { return m_credentialsSecretArnHasBeenSet; }
63 inline void SetCredentialsSecretArn(const Aws::String& value) { m_credentialsSecretArnHasBeenSet = true; m_credentialsSecretArn = value; }
64 inline void SetCredentialsSecretArn(Aws::String&& value) { m_credentialsSecretArnHasBeenSet = true; m_credentialsSecretArn = std::move(value); }
65 inline void SetCredentialsSecretArn(const char* value) { m_credentialsSecretArnHasBeenSet = true; m_credentialsSecretArn.assign(value); }
68 inline MongoDbAtlasConfiguration& WithCredentialsSecretArn(const char* value) { SetCredentialsSecretArn(value); return *this;}
70
72
75 inline const Aws::String& GetDatabaseName() const{ return m_databaseName; }
76 inline bool DatabaseNameHasBeenSet() const { return m_databaseNameHasBeenSet; }
77 inline void SetDatabaseName(const Aws::String& value) { m_databaseNameHasBeenSet = true; m_databaseName = value; }
78 inline void SetDatabaseName(Aws::String&& value) { m_databaseNameHasBeenSet = true; m_databaseName = std::move(value); }
79 inline void SetDatabaseName(const char* value) { m_databaseNameHasBeenSet = true; m_databaseName.assign(value); }
80 inline MongoDbAtlasConfiguration& WithDatabaseName(const Aws::String& value) { SetDatabaseName(value); return *this;}
81 inline MongoDbAtlasConfiguration& WithDatabaseName(Aws::String&& value) { SetDatabaseName(std::move(value)); return *this;}
82 inline MongoDbAtlasConfiguration& WithDatabaseName(const char* value) { SetDatabaseName(value); return *this;}
84
86
89 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
90 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
91 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
92 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
93 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
94 inline MongoDbAtlasConfiguration& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
95 inline MongoDbAtlasConfiguration& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
96 inline MongoDbAtlasConfiguration& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
98
100
104 inline const Aws::String& GetEndpointServiceName() const{ return m_endpointServiceName; }
105 inline bool EndpointServiceNameHasBeenSet() const { return m_endpointServiceNameHasBeenSet; }
106 inline void SetEndpointServiceName(const Aws::String& value) { m_endpointServiceNameHasBeenSet = true; m_endpointServiceName = value; }
107 inline void SetEndpointServiceName(Aws::String&& value) { m_endpointServiceNameHasBeenSet = true; m_endpointServiceName = std::move(value); }
108 inline void SetEndpointServiceName(const char* value) { m_endpointServiceNameHasBeenSet = true; m_endpointServiceName.assign(value); }
110 inline MongoDbAtlasConfiguration& WithEndpointServiceName(Aws::String&& value) { SetEndpointServiceName(std::move(value)); return *this;}
111 inline MongoDbAtlasConfiguration& WithEndpointServiceName(const char* value) { SetEndpointServiceName(value); return *this;}
113
115
119 inline const MongoDbAtlasFieldMapping& GetFieldMapping() const{ return m_fieldMapping; }
120 inline bool FieldMappingHasBeenSet() const { return m_fieldMappingHasBeenSet; }
121 inline void SetFieldMapping(const MongoDbAtlasFieldMapping& value) { m_fieldMappingHasBeenSet = true; m_fieldMapping = value; }
122 inline void SetFieldMapping(MongoDbAtlasFieldMapping&& value) { m_fieldMappingHasBeenSet = true; m_fieldMapping = std::move(value); }
124 inline MongoDbAtlasConfiguration& WithFieldMapping(MongoDbAtlasFieldMapping&& value) { SetFieldMapping(std::move(value)); return *this;}
126
128
131 inline const Aws::String& GetVectorIndexName() const{ return m_vectorIndexName; }
132 inline bool VectorIndexNameHasBeenSet() const { return m_vectorIndexNameHasBeenSet; }
133 inline void SetVectorIndexName(const Aws::String& value) { m_vectorIndexNameHasBeenSet = true; m_vectorIndexName = value; }
134 inline void SetVectorIndexName(Aws::String&& value) { m_vectorIndexNameHasBeenSet = true; m_vectorIndexName = std::move(value); }
135 inline void SetVectorIndexName(const char* value) { m_vectorIndexNameHasBeenSet = true; m_vectorIndexName.assign(value); }
137 inline MongoDbAtlasConfiguration& WithVectorIndexName(Aws::String&& value) { SetVectorIndexName(std::move(value)); return *this;}
138 inline MongoDbAtlasConfiguration& WithVectorIndexName(const char* value) { SetVectorIndexName(value); return *this;}
140 private:
141
142 Aws::String m_collectionName;
143 bool m_collectionNameHasBeenSet = false;
144
145 Aws::String m_credentialsSecretArn;
146 bool m_credentialsSecretArnHasBeenSet = false;
147
148 Aws::String m_databaseName;
149 bool m_databaseNameHasBeenSet = false;
150
151 Aws::String m_endpoint;
152 bool m_endpointHasBeenSet = false;
153
154 Aws::String m_endpointServiceName;
155 bool m_endpointServiceNameHasBeenSet = false;
156
157 MongoDbAtlasFieldMapping m_fieldMapping;
158 bool m_fieldMappingHasBeenSet = false;
159
160 Aws::String m_vectorIndexName;
161 bool m_vectorIndexNameHasBeenSet = false;
162 };
163
164} // namespace Model
165} // namespace BedrockAgent
166} // namespace Aws
MongoDbAtlasConfiguration & WithDatabaseName(const Aws::String &value)
MongoDbAtlasConfiguration & WithEndpoint(const Aws::String &value)
MongoDbAtlasConfiguration & WithVectorIndexName(const char *value)
MongoDbAtlasConfiguration & WithEndpointServiceName(Aws::String &&value)
MongoDbAtlasConfiguration & WithCollectionName(Aws::String &&value)
MongoDbAtlasConfiguration & WithCollectionName(const Aws::String &value)
MongoDbAtlasConfiguration & WithCollectionName(const char *value)
AWS_BEDROCKAGENT_API Aws::Utils::Json::JsonValue Jsonize() const
MongoDbAtlasConfiguration & WithFieldMapping(MongoDbAtlasFieldMapping &&value)
const MongoDbAtlasFieldMapping & GetFieldMapping() const
MongoDbAtlasConfiguration & WithEndpoint(Aws::String &&value)
MongoDbAtlasConfiguration & WithVectorIndexName(Aws::String &&value)
MongoDbAtlasConfiguration & WithCredentialsSecretArn(const char *value)
MongoDbAtlasConfiguration & WithFieldMapping(const MongoDbAtlasFieldMapping &value)
MongoDbAtlasConfiguration & WithCredentialsSecretArn(Aws::String &&value)
AWS_BEDROCKAGENT_API MongoDbAtlasConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFieldMapping(const MongoDbAtlasFieldMapping &value)
MongoDbAtlasConfiguration & WithEndpointServiceName(const char *value)
MongoDbAtlasConfiguration & WithDatabaseName(const char *value)
MongoDbAtlasConfiguration & WithCredentialsSecretArn(const Aws::String &value)
MongoDbAtlasConfiguration & WithVectorIndexName(const Aws::String &value)
MongoDbAtlasConfiguration & WithDatabaseName(Aws::String &&value)
MongoDbAtlasConfiguration & WithEndpointServiceName(const Aws::String &value)
MongoDbAtlasConfiguration & WithEndpoint(const char *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