AWS SDK for C++  0.14.3
AWS SDK for C++
ElasticsearchDestinationUpdate.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
23 
24 namespace Aws
25 {
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace Firehose
34 {
35 namespace Model
36 {
37 
42  {
43  public:
47  Aws::Utils::Json::JsonValue Jsonize() const;
48 
55  inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
56 
63  inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
64 
71  inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
72 
79  inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
80 
87  inline ElasticsearchDestinationUpdate& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
88 
95  inline ElasticsearchDestinationUpdate& WithRoleARN(Aws::String&& value) { SetRoleARN(value); return *this;}
96 
103  inline ElasticsearchDestinationUpdate& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
104 
110  inline const Aws::String& GetDomainARN() const{ return m_domainARN; }
111 
117  inline void SetDomainARN(const Aws::String& value) { m_domainARNHasBeenSet = true; m_domainARN = value; }
118 
124  inline void SetDomainARN(Aws::String&& value) { m_domainARNHasBeenSet = true; m_domainARN = value; }
125 
131  inline void SetDomainARN(const char* value) { m_domainARNHasBeenSet = true; m_domainARN.assign(value); }
132 
138  inline ElasticsearchDestinationUpdate& WithDomainARN(const Aws::String& value) { SetDomainARN(value); return *this;}
139 
145  inline ElasticsearchDestinationUpdate& WithDomainARN(Aws::String&& value) { SetDomainARN(value); return *this;}
146 
152  inline ElasticsearchDestinationUpdate& WithDomainARN(const char* value) { SetDomainARN(value); return *this;}
153 
157  inline const Aws::String& GetIndexName() const{ return m_indexName; }
158 
162  inline void SetIndexName(const Aws::String& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
163 
167  inline void SetIndexName(Aws::String&& value) { m_indexNameHasBeenSet = true; m_indexName = value; }
168 
172  inline void SetIndexName(const char* value) { m_indexNameHasBeenSet = true; m_indexName.assign(value); }
173 
177  inline ElasticsearchDestinationUpdate& WithIndexName(const Aws::String& value) { SetIndexName(value); return *this;}
178 
182  inline ElasticsearchDestinationUpdate& WithIndexName(Aws::String&& value) { SetIndexName(value); return *this;}
183 
187  inline ElasticsearchDestinationUpdate& WithIndexName(const char* value) { SetIndexName(value); return *this;}
188 
192  inline const Aws::String& GetTypeName() const{ return m_typeName; }
193 
197  inline void SetTypeName(const Aws::String& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
198 
202  inline void SetTypeName(Aws::String&& value) { m_typeNameHasBeenSet = true; m_typeName = value; }
203 
207  inline void SetTypeName(const char* value) { m_typeNameHasBeenSet = true; m_typeName.assign(value); }
208 
212  inline ElasticsearchDestinationUpdate& WithTypeName(const Aws::String& value) { SetTypeName(value); return *this;}
213 
217  inline ElasticsearchDestinationUpdate& WithTypeName(Aws::String&& value) { SetTypeName(value); return *this;}
218 
222  inline ElasticsearchDestinationUpdate& WithTypeName(const char* value) { SetTypeName(value); return *this;}
223 
232  inline const ElasticsearchIndexRotationPeriod& GetIndexRotationPeriod() const{ return m_indexRotationPeriod; }
233 
242  inline void SetIndexRotationPeriod(const ElasticsearchIndexRotationPeriod& value) { m_indexRotationPeriodHasBeenSet = true; m_indexRotationPeriod = value; }
243 
252  inline void SetIndexRotationPeriod(ElasticsearchIndexRotationPeriod&& value) { m_indexRotationPeriodHasBeenSet = true; m_indexRotationPeriod = value; }
253 
262  inline ElasticsearchDestinationUpdate& WithIndexRotationPeriod(const ElasticsearchIndexRotationPeriod& value) { SetIndexRotationPeriod(value); return *this;}
263 
272  inline ElasticsearchDestinationUpdate& WithIndexRotationPeriod(ElasticsearchIndexRotationPeriod&& value) { SetIndexRotationPeriod(value); return *this;}
273 
278  inline const ElasticsearchBufferingHints& GetBufferingHints() const{ return m_bufferingHints; }
279 
284  inline void SetBufferingHints(const ElasticsearchBufferingHints& value) { m_bufferingHintsHasBeenSet = true; m_bufferingHints = value; }
285 
290  inline void SetBufferingHints(ElasticsearchBufferingHints&& value) { m_bufferingHintsHasBeenSet = true; m_bufferingHints = value; }
291 
296  inline ElasticsearchDestinationUpdate& WithBufferingHints(const ElasticsearchBufferingHints& value) { SetBufferingHints(value); return *this;}
297 
302  inline ElasticsearchDestinationUpdate& WithBufferingHints(ElasticsearchBufferingHints&& value) { SetBufferingHints(value); return *this;}
303 
308  inline const ElasticsearchRetryOptions& GetRetryOptions() const{ return m_retryOptions; }
309 
314  inline void SetRetryOptions(const ElasticsearchRetryOptions& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = value; }
315 
320  inline void SetRetryOptions(ElasticsearchRetryOptions&& value) { m_retryOptionsHasBeenSet = true; m_retryOptions = value; }
321 
326  inline ElasticsearchDestinationUpdate& WithRetryOptions(const ElasticsearchRetryOptions& value) { SetRetryOptions(value); return *this;}
327 
332  inline ElasticsearchDestinationUpdate& WithRetryOptions(ElasticsearchRetryOptions&& value) { SetRetryOptions(value); return *this;}
333 
334 
335  inline const S3DestinationUpdate& GetS3Update() const{ return m_s3Update; }
336 
337 
338  inline void SetS3Update(const S3DestinationUpdate& value) { m_s3UpdateHasBeenSet = true; m_s3Update = value; }
339 
340 
341  inline void SetS3Update(S3DestinationUpdate&& value) { m_s3UpdateHasBeenSet = true; m_s3Update = value; }
342 
343 
344  inline ElasticsearchDestinationUpdate& WithS3Update(const S3DestinationUpdate& value) { SetS3Update(value); return *this;}
345 
346 
347  inline ElasticsearchDestinationUpdate& WithS3Update(S3DestinationUpdate&& value) { SetS3Update(value); return *this;}
348 
352  inline const CloudWatchLoggingOptions& GetCloudWatchLoggingOptions() const{ return m_cloudWatchLoggingOptions; }
353 
357  inline void SetCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; }
358 
362  inline void SetCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; }
363 
367  inline ElasticsearchDestinationUpdate& WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions& value) { SetCloudWatchLoggingOptions(value); return *this;}
368 
372  inline ElasticsearchDestinationUpdate& WithCloudWatchLoggingOptions(CloudWatchLoggingOptions&& value) { SetCloudWatchLoggingOptions(value); return *this;}
373 
374  private:
375  Aws::String m_roleARN;
376  bool m_roleARNHasBeenSet;
377  Aws::String m_domainARN;
378  bool m_domainARNHasBeenSet;
379  Aws::String m_indexName;
380  bool m_indexNameHasBeenSet;
381  Aws::String m_typeName;
382  bool m_typeNameHasBeenSet;
383  ElasticsearchIndexRotationPeriod m_indexRotationPeriod;
384  bool m_indexRotationPeriodHasBeenSet;
385  ElasticsearchBufferingHints m_bufferingHints;
386  bool m_bufferingHintsHasBeenSet;
387  ElasticsearchRetryOptions m_retryOptions;
388  bool m_retryOptionsHasBeenSet;
389  S3DestinationUpdate m_s3Update;
390  bool m_s3UpdateHasBeenSet;
391  CloudWatchLoggingOptions m_cloudWatchLoggingOptions;
392  bool m_cloudWatchLoggingOptionsHasBeenSet;
393  };
394 
395 } // namespace Model
396 } // namespace Firehose
397 } // namespace Aws
const CloudWatchLoggingOptions & GetCloudWatchLoggingOptions() const
void SetRetryOptions(const ElasticsearchRetryOptions &value)
ElasticsearchDestinationUpdate & WithDomainARN(const Aws::String &value)
ElasticsearchDestinationUpdate & WithCloudWatchLoggingOptions(CloudWatchLoggingOptions &&value)
ElasticsearchDestinationUpdate & WithIndexName(const char *value)
#define AWS_FIREHOSE_API
ElasticsearchDestinationUpdate & WithDomainARN(const char *value)
ElasticsearchDestinationUpdate & WithTypeName(const Aws::String &value)
ElasticsearchDestinationUpdate & WithIndexRotationPeriod(ElasticsearchIndexRotationPeriod &&value)
ElasticsearchDestinationUpdate & WithRoleARN(const char *value)
ElasticsearchDestinationUpdate & WithIndexName(Aws::String &&value)
ElasticsearchDestinationUpdate & WithIndexRotationPeriod(const ElasticsearchIndexRotationPeriod &value)
const ElasticsearchRetryOptions & GetRetryOptions() const
void SetCloudWatchLoggingOptions(CloudWatchLoggingOptions &&value)
void SetIndexRotationPeriod(const ElasticsearchIndexRotationPeriod &value)
ElasticsearchDestinationUpdate & WithBufferingHints(const ElasticsearchBufferingHints &value)
ElasticsearchDestinationUpdate & WithIndexName(const Aws::String &value)
ElasticsearchDestinationUpdate & WithTypeName(Aws::String &&value)
const ElasticsearchBufferingHints & GetBufferingHints() const
ElasticsearchDestinationUpdate & WithDomainARN(Aws::String &&value)
void SetCloudWatchLoggingOptions(const CloudWatchLoggingOptions &value)
ElasticsearchDestinationUpdate & WithS3Update(const S3DestinationUpdate &value)
ElasticsearchDestinationUpdate & WithRoleARN(Aws::String &&value)
ElasticsearchDestinationUpdate & WithRetryOptions(ElasticsearchRetryOptions &&value)
void SetIndexRotationPeriod(ElasticsearchIndexRotationPeriod &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ElasticsearchDestinationUpdate & WithRoleARN(const Aws::String &value)
ElasticsearchDestinationUpdate & WithBufferingHints(ElasticsearchBufferingHints &&value)
ElasticsearchDestinationUpdate & WithTypeName(const char *value)
ElasticsearchDestinationUpdate & WithCloudWatchLoggingOptions(const CloudWatchLoggingOptions &value)
const ElasticsearchIndexRotationPeriod & GetIndexRotationPeriod() const
ElasticsearchDestinationUpdate & WithRetryOptions(const ElasticsearchRetryOptions &value)
ElasticsearchDestinationUpdate & WithS3Update(S3DestinationUpdate &&value)
void SetBufferingHints(const ElasticsearchBufferingHints &value)
JSON (JavaScript Object Notation).