1 /**
2  * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3  * SPDX-License-Identifier: Apache-2.0.
4  */
5 
6 #pragma once
7 #include <aws/firehose/Firehose_EXPORTS.h>
8 
9 namespace Aws
10 {
11 namespace Utils
12 {
13 namespace Json
14 {
15   class JsonValue;
16   class JsonView;
17 } // namespace Json
18 } // namespace Utils
19 namespace Firehose
20 {
21 namespace Model
22 {
23 
24   class AWS_FIREHOSE_API AmazonopensearchserviceBufferingHints
25   {
26   public:
27     AmazonopensearchserviceBufferingHints();
28     AmazonopensearchserviceBufferingHints(Aws::Utils::Json::JsonView jsonValue);
29     AmazonopensearchserviceBufferingHints& operator=(Aws::Utils::Json::JsonView jsonValue);
30     Aws::Utils::Json::JsonValue Jsonize() const;
31 
32 
33 
GetIntervalInSeconds()34     inline int GetIntervalInSeconds() const{ return m_intervalInSeconds; }
35 
36 
IntervalInSecondsHasBeenSet()37     inline bool IntervalInSecondsHasBeenSet() const { return m_intervalInSecondsHasBeenSet; }
38 
39 
SetIntervalInSeconds(int value)40     inline void SetIntervalInSeconds(int value) { m_intervalInSecondsHasBeenSet = true; m_intervalInSeconds = value; }
41 
42 
WithIntervalInSeconds(int value)43     inline AmazonopensearchserviceBufferingHints& WithIntervalInSeconds(int value) { SetIntervalInSeconds(value); return *this;}
44 
45 
46 
GetSizeInMBs()47     inline int GetSizeInMBs() const{ return m_sizeInMBs; }
48 
49 
SizeInMBsHasBeenSet()50     inline bool SizeInMBsHasBeenSet() const { return m_sizeInMBsHasBeenSet; }
51 
52 
SetSizeInMBs(int value)53     inline void SetSizeInMBs(int value) { m_sizeInMBsHasBeenSet = true; m_sizeInMBs = value; }
54 
55 
WithSizeInMBs(int value)56     inline AmazonopensearchserviceBufferingHints& WithSizeInMBs(int value) { SetSizeInMBs(value); return *this;}
57 
58   private:
59 
60     int m_intervalInSeconds;
61     bool m_intervalInSecondsHasBeenSet;
62 
63     int m_sizeInMBs;
64     bool m_sizeInMBsHasBeenSet;
65   };
66 
67 } // namespace Model
68 } // namespace Firehose
69 } // namespace Aws
70