AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
ElasticsearchDestinationConfiguration.h
1
6#pragma once
7#include <aws/firehose/Firehose_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/firehose/model/ElasticsearchIndexRotationPeriod.h>
10#include <aws/firehose/model/ElasticsearchBufferingHints.h>
11#include <aws/firehose/model/ElasticsearchRetryOptions.h>
12#include <aws/firehose/model/ElasticsearchS3BackupMode.h>
13#include <aws/firehose/model/S3DestinationConfiguration.h>
14#include <aws/firehose/model/ProcessingConfiguration.h>
15#include <aws/firehose/model/CloudWatchLoggingOptions.h>
16#include <aws/firehose/model/VpcConfiguration.h>
17#include <aws/firehose/model/DocumentIdOptions.h>
18#include <utility>
19
20namespace Aws
21{
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27 class JsonView;
28} // namespace Json
29} // namespace Utils
30namespace Firehose
31{
32namespace Model
33{
34
42 {
43 public:
44 AWS_FIREHOSE_API ElasticsearchDestinationConfiguration() = default;
47 AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const;
48
49
51
60 inline const Aws::String& GetRoleARN() const { return m_roleARN; }
61 inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
62 template<typename RoleARNT = Aws::String>
63 void SetRoleARN(RoleARNT&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::forward<RoleARNT>(value); }
64 template<typename RoleARNT = Aws::String>
65 ElasticsearchDestinationConfiguration& WithRoleARN(RoleARNT&& value) { SetRoleARN(std::forward<RoleARNT>(value)); return *this;}
67
69
78 inline const Aws::String& GetDomainARN() const { return m_domainARN; }
79 inline bool DomainARNHasBeenSet() const { return m_domainARNHasBeenSet; }
80 template<typename DomainARNT = Aws::String>
81 void SetDomainARN(DomainARNT&& value) { m_domainARNHasBeenSet = true; m_domainARN = std::forward<DomainARNT>(value); }
82 template<typename DomainARNT = Aws::String>
83 ElasticsearchDestinationConfiguration& WithDomainARN(DomainARNT&& value) { SetDomainARN(std::forward<DomainARNT>(value)); return *this;}
85
87
91 inline const Aws::String& GetClusterEndpoint() const { return m_clusterEndpoint; }
92 inline bool ClusterEndpointHasBeenSet() const { return m_clusterEndpointHasBeenSet; }
93 template<typename ClusterEndpointT = Aws::String>
94 void SetClusterEndpoint(ClusterEndpointT&& value) { m_clusterEndpointHasBeenSet = true; m_clusterEndpoint = std::forward<ClusterEndpointT>(value); }
95 template<typename ClusterEndpointT = Aws::String>
96 ElasticsearchDestinationConfiguration& WithClusterEndpoint(ClusterEndpointT&& value) { SetClusterEndpoint(std::forward<ClusterEndpointT>(value)); return *this;}
98
100
103 inline const Aws::String& GetIndexName() const { return m_indexName; }
104 inline bool IndexNameHasBeenSet() const { return m_indexNameHasBeenSet; }
105 template<typename IndexNameT = Aws::String>
106 void SetIndexName(IndexNameT&& value) { m_indexNameHasBeenSet = true; m_indexName = std::forward<IndexNameT>(value); }
107 template<typename IndexNameT = Aws::String>
108 ElasticsearchDestinationConfiguration& WithIndexName(IndexNameT&& value) { SetIndexName(std::forward<IndexNameT>(value)); return *this;}
110
112
118 inline const Aws::String& GetTypeName() const { return m_typeName; }
119 inline bool TypeNameHasBeenSet() const { return m_typeNameHasBeenSet; }
120 template<typename TypeNameT = Aws::String>
121 void SetTypeName(TypeNameT&& value) { m_typeNameHasBeenSet = true; m_typeName = std::forward<TypeNameT>(value); }
122 template<typename TypeNameT = Aws::String>
123 ElasticsearchDestinationConfiguration& WithTypeName(TypeNameT&& value) { SetTypeName(std::forward<TypeNameT>(value)); return *this;}
125
127
135 inline ElasticsearchIndexRotationPeriod GetIndexRotationPeriod() const { return m_indexRotationPeriod; }
136 inline bool IndexRotationPeriodHasBeenSet() const { return m_indexRotationPeriodHasBeenSet; }
137 inline void SetIndexRotationPeriod(ElasticsearchIndexRotationPeriod value) { m_indexRotationPeriodHasBeenSet = true; m_indexRotationPeriod = value; }
140
142
146 inline const ElasticsearchBufferingHints& GetBufferingHints() const { return m_bufferingHints; }
147 inline bool BufferingHintsHasBeenSet() const { return m_bufferingHintsHasBeenSet; }
148 template<typename BufferingHintsT = ElasticsearchBufferingHints>
149 void SetBufferingHints(BufferingHintsT&& value) { m_bufferingHintsHasBeenSet = true; m_bufferingHints = std::forward<BufferingHintsT>(value); }
150 template<typename BufferingHintsT = ElasticsearchBufferingHints>
151 ElasticsearchDestinationConfiguration& WithBufferingHints(BufferingHintsT&& value) { SetBufferingHints(std::forward<BufferingHintsT>(value)); return *this;}
153
155
159 inline const ElasticsearchRetryOptions& GetRetryOptions() const { return m_retryOptions; }
160 inline bool RetryOptionsHasBeenSet() const { return m_retryOptionsHasBeenSet; }
161 template<typename RetryOptionsT = ElasticsearchRetryOptions>
162 void SetRetryOptions(RetryOptionsT&& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = std::forward<RetryOptionsT>(value); }
163 template<typename RetryOptionsT = ElasticsearchRetryOptions>
164 ElasticsearchDestinationConfiguration& WithRetryOptions(RetryOptionsT&& value) { SetRetryOptions(std::forward<RetryOptionsT>(value)); return *this;}
166
168
182 inline ElasticsearchS3BackupMode GetS3BackupMode() const { return m_s3BackupMode; }
183 inline bool S3BackupModeHasBeenSet() const { return m_s3BackupModeHasBeenSet; }
184 inline void SetS3BackupMode(ElasticsearchS3BackupMode value) { m_s3BackupModeHasBeenSet = true; m_s3BackupMode = value; }
187
189
192 inline const S3DestinationConfiguration& GetS3Configuration() const { return m_s3Configuration; }
193 inline bool S3ConfigurationHasBeenSet() const { return m_s3ConfigurationHasBeenSet; }
194 template<typename S3ConfigurationT = S3DestinationConfiguration>
195 void SetS3Configuration(S3ConfigurationT&& value) { m_s3ConfigurationHasBeenSet = true; m_s3Configuration = std::forward<S3ConfigurationT>(value); }
196 template<typename S3ConfigurationT = S3DestinationConfiguration>
197 ElasticsearchDestinationConfiguration& WithS3Configuration(S3ConfigurationT&& value) { SetS3Configuration(std::forward<S3ConfigurationT>(value)); return *this;}
199
201
204 inline const ProcessingConfiguration& GetProcessingConfiguration() const { return m_processingConfiguration; }
205 inline bool ProcessingConfigurationHasBeenSet() const { return m_processingConfigurationHasBeenSet; }
206 template<typename ProcessingConfigurationT = ProcessingConfiguration>
207 void SetProcessingConfiguration(ProcessingConfigurationT&& value) { m_processingConfigurationHasBeenSet = true; m_processingConfiguration = std::forward<ProcessingConfigurationT>(value); }
208 template<typename ProcessingConfigurationT = ProcessingConfiguration>
209 ElasticsearchDestinationConfiguration& WithProcessingConfiguration(ProcessingConfigurationT&& value) { SetProcessingConfiguration(std::forward<ProcessingConfigurationT>(value)); return *this;}
211
213
216 inline const CloudWatchLoggingOptions& GetCloudWatchLoggingOptions() const { return m_cloudWatchLoggingOptions; }
217 inline bool CloudWatchLoggingOptionsHasBeenSet() const { return m_cloudWatchLoggingOptionsHasBeenSet; }
218 template<typename CloudWatchLoggingOptionsT = CloudWatchLoggingOptions>
219 void SetCloudWatchLoggingOptions(CloudWatchLoggingOptionsT&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = std::forward<CloudWatchLoggingOptionsT>(value); }
220 template<typename CloudWatchLoggingOptionsT = CloudWatchLoggingOptions>
221 ElasticsearchDestinationConfiguration& WithCloudWatchLoggingOptions(CloudWatchLoggingOptionsT&& value) { SetCloudWatchLoggingOptions(std::forward<CloudWatchLoggingOptionsT>(value)); return *this;}
223
225
228 inline const VpcConfiguration& GetVpcConfiguration() const { return m_vpcConfiguration; }
229 inline bool VpcConfigurationHasBeenSet() const { return m_vpcConfigurationHasBeenSet; }
230 template<typename VpcConfigurationT = VpcConfiguration>
231 void SetVpcConfiguration(VpcConfigurationT&& value) { m_vpcConfigurationHasBeenSet = true; m_vpcConfiguration = std::forward<VpcConfigurationT>(value); }
232 template<typename VpcConfigurationT = VpcConfiguration>
233 ElasticsearchDestinationConfiguration& WithVpcConfiguration(VpcConfigurationT&& value) { SetVpcConfiguration(std::forward<VpcConfigurationT>(value)); return *this;}
235
237
241 inline const DocumentIdOptions& GetDocumentIdOptions() const { return m_documentIdOptions; }
242 inline bool DocumentIdOptionsHasBeenSet() const { return m_documentIdOptionsHasBeenSet; }
243 template<typename DocumentIdOptionsT = DocumentIdOptions>
244 void SetDocumentIdOptions(DocumentIdOptionsT&& value) { m_documentIdOptionsHasBeenSet = true; m_documentIdOptions = std::forward<DocumentIdOptionsT>(value); }
245 template<typename DocumentIdOptionsT = DocumentIdOptions>
246 ElasticsearchDestinationConfiguration& WithDocumentIdOptions(DocumentIdOptionsT&& value) { SetDocumentIdOptions(std::forward<DocumentIdOptionsT>(value)); return *this;}
248 private:
249
250 Aws::String m_roleARN;
251 bool m_roleARNHasBeenSet = false;
252
253 Aws::String m_domainARN;
254 bool m_domainARNHasBeenSet = false;
255
256 Aws::String m_clusterEndpoint;
257 bool m_clusterEndpointHasBeenSet = false;
258
259 Aws::String m_indexName;
260 bool m_indexNameHasBeenSet = false;
261
262 Aws::String m_typeName;
263 bool m_typeNameHasBeenSet = false;
264
266 bool m_indexRotationPeriodHasBeenSet = false;
267
268 ElasticsearchBufferingHints m_bufferingHints;
269 bool m_bufferingHintsHasBeenSet = false;
270
271 ElasticsearchRetryOptions m_retryOptions;
272 bool m_retryOptionsHasBeenSet = false;
273
275 bool m_s3BackupModeHasBeenSet = false;
276
277 S3DestinationConfiguration m_s3Configuration;
278 bool m_s3ConfigurationHasBeenSet = false;
279
280 ProcessingConfiguration m_processingConfiguration;
281 bool m_processingConfigurationHasBeenSet = false;
282
283 CloudWatchLoggingOptions m_cloudWatchLoggingOptions;
284 bool m_cloudWatchLoggingOptionsHasBeenSet = false;
285
286 VpcConfiguration m_vpcConfiguration;
287 bool m_vpcConfigurationHasBeenSet = false;
288
289 DocumentIdOptions m_documentIdOptions;
290 bool m_documentIdOptionsHasBeenSet = false;
291 };
292
293} // namespace Model
294} // namespace Firehose
295} // namespace Aws
AWS_FIREHOSE_API ElasticsearchDestinationConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
ElasticsearchDestinationConfiguration & WithIndexName(IndexNameT &&value)
ElasticsearchDestinationConfiguration & WithS3BackupMode(ElasticsearchS3BackupMode value)
ElasticsearchDestinationConfiguration & WithProcessingConfiguration(ProcessingConfigurationT &&value)
ElasticsearchDestinationConfiguration & WithClusterEndpoint(ClusterEndpointT &&value)
ElasticsearchDestinationConfiguration & WithCloudWatchLoggingOptions(CloudWatchLoggingOptionsT &&value)
ElasticsearchDestinationConfiguration & WithRetryOptions(RetryOptionsT &&value)
ElasticsearchDestinationConfiguration & WithTypeName(TypeNameT &&value)
ElasticsearchDestinationConfiguration & WithBufferingHints(BufferingHintsT &&value)
ElasticsearchDestinationConfiguration & WithDocumentIdOptions(DocumentIdOptionsT &&value)
ElasticsearchDestinationConfiguration & WithDomainARN(DomainARNT &&value)
ElasticsearchDestinationConfiguration & WithIndexRotationPeriod(ElasticsearchIndexRotationPeriod value)
AWS_FIREHOSE_API ElasticsearchDestinationConfiguration(Aws::Utils::Json::JsonView jsonValue)
ElasticsearchDestinationConfiguration & WithRoleARN(RoleARNT &&value)
ElasticsearchDestinationConfiguration & WithVpcConfiguration(VpcConfigurationT &&value)
ElasticsearchDestinationConfiguration & WithS3Configuration(S3ConfigurationT &&value)
AWS_FIREHOSE_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue