AWS SDK for C++  0.14.3
AWS SDK for C++
ElasticsearchDestinationDescription.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
24 
25 namespace Aws
26 {
27 namespace Utils
28 {
29 namespace Json
30 {
31  class JsonValue;
32 } // namespace Json
33 } // namespace Utils
34 namespace Firehose
35 {
36 namespace Model
37 {
38 
43  {
44  public:
48  Aws::Utils::Json::JsonValue Jsonize() const;
49 
53  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
54 
58  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
59 
63  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
64 
68  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
69 
73  inline ElasticsearchDestinationDescription& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
74 
78  inline ElasticsearchDestinationDescription& WithRoleARN(Aws::String&& value) { SetRoleARN(value); return *this;}
79 
83  inline ElasticsearchDestinationDescription& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
84 
88  inline const Aws::String& GetDomainARN() const{ return m_domainARN; }
89 
93  inline void SetDomainARN(const Aws::String& value) { m_domainARNHasBeenSet = true; m_domainARN = value; }
94 
98  inline void SetDomainARN(Aws::String&& value) { m_domainARNHasBeenSet = true; m_domainARN = value; }
99 
103  inline void SetDomainARN(const char* value) { m_domainARNHasBeenSet = true; m_domainARN.assign(value); }
104 
108  inline ElasticsearchDestinationDescription& WithDomainARN(const Aws::String& value) { SetDomainARN(value); return *this;}
109 
113  inline ElasticsearchDestinationDescription& WithDomainARN(Aws::String&& value) { SetDomainARN(value); return *this;}
114 
118  inline ElasticsearchDestinationDescription& WithDomainARN(const char* value) { SetDomainARN(value); return *this;}
119 
123  inline const Aws::String& GetIndexName() const{ return m_indexName; }
124 
128  inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
129 
133  inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
134 
138  inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
139 
143  inline ElasticsearchDestinationDescription& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
144 
148  inline ElasticsearchDestinationDescription& WithIndexName(Aws::String&& value) { SetIndexName(value); return *this;}
149 
153  inline ElasticsearchDestinationDescription& WithIndexName(const char* value) { SetIndexName(value); return *this;}
154 
158  inline const Aws::String& GetTypeName() const{ return m_typeName; }
159 
163  inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
164 
168  inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
169 
173  inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
174 
178  inline ElasticsearchDestinationDescription& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
179 
183  inline ElasticsearchDestinationDescription& WithTypeName(Aws::String&& value) { SetTypeName(value); return *this;}
184 
188  inline ElasticsearchDestinationDescription& WithTypeName(const char* value) { SetTypeName(value); return *this;}
189 
193  inline const ElasticsearchIndexRotationPeriod& GetIndexRotationPeriod() const{ return m_indexRotationPeriod; }
194 
198  inline void SetIndexRotationPeriod(const ElasticsearchIndexRotationPeriod& value) { m_indexRotationPeriodHasBeenSet = true; m_indexRotationPeriod = value; }
199 
203  inline void SetIndexRotationPeriod(ElasticsearchIndexRotationPeriod&& value) { m_indexRotationPeriodHasBeenSet = true; m_indexRotationPeriod = value; }
204 
208  inline ElasticsearchDestinationDescription& WithIndexRotationPeriod(const ElasticsearchIndexRotationPeriod& value) { SetIndexRotationPeriod(value); return *this;}
209 
213  inline ElasticsearchDestinationDescription& WithIndexRotationPeriod(ElasticsearchIndexRotationPeriod&& value) { SetIndexRotationPeriod(value); return *this;}
214 
218  inline const ElasticsearchBufferingHints& GetBufferingHints() const{ return m_bufferingHints; }
219 
223  inline void SetBufferingHints(const ElasticsearchBufferingHints& value) { m_bufferingHintsHasBeenSet = true; m_bufferingHints = value; }
224 
228  inline void SetBufferingHints(ElasticsearchBufferingHints&& value) { m_bufferingHintsHasBeenSet = true; m_bufferingHints = value; }
229 
233  inline ElasticsearchDestinationDescription& WithBufferingHints(const ElasticsearchBufferingHints& value) { SetBufferingHints(value); return *this;}
234 
238  inline ElasticsearchDestinationDescription& WithBufferingHints(ElasticsearchBufferingHints&& value) { SetBufferingHints(value); return *this;}
239 
243  inline const ElasticsearchRetryOptions& GetRetryOptions() const{ return m_retryOptions; }
244 
248  inline void SetRetryOptions(const ElasticsearchRetryOptions& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = value; }
249 
253  inline void SetRetryOptions(ElasticsearchRetryOptions&& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = value; }
254 
258  inline ElasticsearchDestinationDescription& WithRetryOptions(const ElasticsearchRetryOptions& value) { SetRetryOptions(value); return *this;}
259 
263  inline ElasticsearchDestinationDescription& WithRetryOptions(ElasticsearchRetryOptions&& value) { SetRetryOptions(value); return *this;}
264 
268  inline const ElasticsearchS3BackupMode& GetS3BackupMode() const{ return m_s3BackupMode; }
269 
273  inline void SetS3BackupMode(const ElasticsearchS3BackupMode& value) { m_s3BackupModeHasBeenSet = true; m_s3BackupMode = value; }
274 
278  inline void SetS3BackupMode(ElasticsearchS3BackupMode&& value) { m_s3BackupModeHasBeenSet = true; m_s3BackupMode = value; }
279 
283  inline ElasticsearchDestinationDescription& WithS3BackupMode(const ElasticsearchS3BackupMode& value) { SetS3BackupMode(value); return *this;}
284 
288  inline ElasticsearchDestinationDescription& WithS3BackupMode(ElasticsearchS3BackupMode&& value) { SetS3BackupMode(value); return *this;}
289 
290 
291  inline const S3DestinationDescription& GetS3DestinationDescription() const{ return m_s3DestinationDescription; }
292 
293 
294  inline void SetS3DestinationDescription(const S3DestinationDescription& value) { m_s3DestinationDescriptionHasBeenSet = true; m_s3DestinationDescription = value; }
295 
296 
297  inline void SetS3DestinationDescription(S3DestinationDescription&& value) { m_s3DestinationDescriptionHasBeenSet = true; m_s3DestinationDescription = value; }
298 
299 
300  inline ElasticsearchDestinationDescription& WithS3DestinationDescription(const S3DestinationDescription& value) { SetS3DestinationDescription(value); return *this;}
301 
302 
303  inline ElasticsearchDestinationDescription& WithS3DestinationDescription(S3DestinationDescription&& value) { SetS3DestinationDescription(value); return *this;}
304 
308  inline const CloudWatchLoggingOptions& GetCloudWatchLoggingOptions() const{ return m_cloudWatchLoggingOptions; }
309 
313  inline void SetCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; }
314 
318  inline void SetCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; }
319 
323  inline ElasticsearchDestinationDescription& WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { SetCloudWatchLoggingOptions(value); return *this;}
324 
328  inline ElasticsearchDestinationDescription& WithCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { SetCloudWatchLoggingOptions(value); return *this;}
329 
330  private:
331  Aws::String m_roleARN;
332  bool m_roleARNHasBeenSet;
333  Aws::String m_domainARN;
334  bool m_domainARNHasBeenSet;
335  Aws::String m_indexName;
336  bool m_indexNameHasBeenSet;
337  Aws::String m_typeName;
338  bool m_typeNameHasBeenSet;
339  ElasticsearchIndexRotationPeriod m_indexRotationPeriod;
340  bool m_indexRotationPeriodHasBeenSet;
341  ElasticsearchBufferingHints m_bufferingHints;
342  bool m_bufferingHintsHasBeenSet;
343  ElasticsearchRetryOptions m_retryOptions;
344  bool m_retryOptionsHasBeenSet;
345  ElasticsearchS3BackupMode m_s3BackupMode;
346  bool m_s3BackupModeHasBeenSet;
347  S3DestinationDescription m_s3DestinationDescription;
348  bool m_s3DestinationDescriptionHasBeenSet;
349  CloudWatchLoggingOptions m_cloudWatchLoggingOptions;
350  bool m_cloudWatchLoggingOptionsHasBeenSet;
351  };
352 
353 } // namespace Model
354 } // namespace Firehose
355 } // namespace Aws
ElasticsearchDestinationDescription & WithDomainARN(const char *value)
ElasticsearchDestinationDescription & WithRetryOptions(ElasticsearchRetryOptions &&value)
ElasticsearchDestinationDescription & WithIndexName(const Aws::String &value)
ElasticsearchDestinationDescription & WithCloudWatchLoggingOptions(CloudWatchLoggingOptions &&value)
ElasticsearchDestinationDescription & WithIndexName(const char *value)
ElasticsearchDestinationDescription & WithBufferingHints(ElasticsearchBufferingHints &&value)
const ElasticsearchIndexRotationPeriod & GetIndexRotationPeriod() const
ElasticsearchDestinationDescription & WithIndexName(Aws::String &&value)
#define AWS_FIREHOSE_API
ElasticsearchDestinationDescription & WithIndexRotationPeriod(const ElasticsearchIndexRotationPeriod &value)
ElasticsearchDestinationDescription & WithS3DestinationDescription(const S3DestinationDescription &value)
ElasticsearchDestinationDescription & WithDomainARN(Aws::String &&value)
ElasticsearchDestinationDescription & WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions &value)
ElasticsearchDestinationDescription & WithIndexRotationPeriod(ElasticsearchIndexRotationPeriod &&value)
ElasticsearchDestinationDescription & WithS3BackupMode(const ElasticsearchS3BackupMode &value)
ElasticsearchDestinationDescription & WithS3BackupMode(ElasticsearchS3BackupMode &&value)
ElasticsearchDestinationDescription & WithRoleARN(const char *value)
ElasticsearchDestinationDescription & WithDomainARN(const Aws::String &value)
ElasticsearchDestinationDescription & WithS3DestinationDescription(S3DestinationDescription &&value)
ElasticsearchDestinationDescription & WithRoleARN(Aws::String &&value)
ElasticsearchDestinationDescription & WithTypeName(Aws::String &&value)
ElasticsearchDestinationDescription & WithBufferingHints(const ElasticsearchBufferingHints &value)
void SetIndexRotationPeriod(const ElasticsearchIndexRotationPeriod &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ElasticsearchDestinationDescription & WithTypeName(const Aws::String &value)
ElasticsearchDestinationDescription & WithRetryOptions(const ElasticsearchRetryOptions &value)
ElasticsearchDestinationDescription & WithTypeName(const char *value)
JSON (JavaScript Object Notation).
ElasticsearchDestinationDescription & WithRoleARN(const Aws::String &value)