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/kinesisanalytics/KinesisAnalytics_EXPORTS.h>
8 #include <aws/core/utils/memory/stl/AWSString.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17   class JsonValue;
18   class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace KinesisAnalytics
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p> Identifies an Amazon Kinesis stream as the streaming source. You provide the
28    * stream's Amazon Resource Name (ARN) and an IAM role ARN that enables Amazon
29    * Kinesis Analytics to access the stream on your behalf.</p><p><h3>See Also:</h3>
30    * <a
31    * href="http://docs.aws.amazon.com/goto/WebAPI/kinesisanalytics-2015-08-14/KinesisStreamsInput">AWS
32    * API Reference</a></p>
33    */
34   class AWS_KINESISANALYTICS_API KinesisStreamsInput
35   {
36   public:
37     KinesisStreamsInput();
38     KinesisStreamsInput(Aws::Utils::Json::JsonView jsonValue);
39     KinesisStreamsInput& operator=(Aws::Utils::Json::JsonView jsonValue);
40     Aws::Utils::Json::JsonValue Jsonize() const;
41 
42 
43     /**
44      * <p>ARN of the input Amazon Kinesis stream to read.</p>
45      */
GetResourceARN()46     inline const Aws::String& GetResourceARN() const{ return m_resourceARN; }
47 
48     /**
49      * <p>ARN of the input Amazon Kinesis stream to read.</p>
50      */
ResourceARNHasBeenSet()51     inline bool ResourceARNHasBeenSet() const { return m_resourceARNHasBeenSet; }
52 
53     /**
54      * <p>ARN of the input Amazon Kinesis stream to read.</p>
55      */
SetResourceARN(const Aws::String & value)56     inline void SetResourceARN(const Aws::String& value) { m_resourceARNHasBeenSet = true; m_resourceARN = value; }
57 
58     /**
59      * <p>ARN of the input Amazon Kinesis stream to read.</p>
60      */
SetResourceARN(Aws::String && value)61     inline void SetResourceARN(Aws::String&& value) { m_resourceARNHasBeenSet = true; m_resourceARN = std::move(value); }
62 
63     /**
64      * <p>ARN of the input Amazon Kinesis stream to read.</p>
65      */
SetResourceARN(const char * value)66     inline void SetResourceARN(const char* value) { m_resourceARNHasBeenSet = true; m_resourceARN.assign(value); }
67 
68     /**
69      * <p>ARN of the input Amazon Kinesis stream to read.</p>
70      */
WithResourceARN(const Aws::String & value)71     inline KinesisStreamsInput& WithResourceARN(const Aws::String& value) { SetResourceARN(value); return *this;}
72 
73     /**
74      * <p>ARN of the input Amazon Kinesis stream to read.</p>
75      */
WithResourceARN(Aws::String && value)76     inline KinesisStreamsInput& WithResourceARN(Aws::String&& value) { SetResourceARN(std::move(value)); return *this;}
77 
78     /**
79      * <p>ARN of the input Amazon Kinesis stream to read.</p>
80      */
WithResourceARN(const char * value)81     inline KinesisStreamsInput& WithResourceARN(const char* value) { SetResourceARN(value); return *this;}
82 
83 
84     /**
85      * <p>ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
86      * stream on your behalf. You need to grant the necessary permissions to this
87      * role.</p>
88      */
GetRoleARN()89     inline const Aws::String& GetRoleARN() const{ return m_roleARN; }
90 
91     /**
92      * <p>ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
93      * stream on your behalf. You need to grant the necessary permissions to this
94      * role.</p>
95      */
RoleARNHasBeenSet()96     inline bool RoleARNHasBeenSet() const { return m_roleARNHasBeenSet; }
97 
98     /**
99      * <p>ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
100      * stream on your behalf. You need to grant the necessary permissions to this
101      * role.</p>
102      */
SetRoleARN(const Aws::String & value)103     inline void SetRoleARN(const Aws::String& value) { m_roleARNHasBeenSet = true; m_roleARN = value; }
104 
105     /**
106      * <p>ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
107      * stream on your behalf. You need to grant the necessary permissions to this
108      * role.</p>
109      */
SetRoleARN(Aws::String && value)110     inline void SetRoleARN(Aws::String&& value) { m_roleARNHasBeenSet = true; m_roleARN = std::move(value); }
111 
112     /**
113      * <p>ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
114      * stream on your behalf. You need to grant the necessary permissions to this
115      * role.</p>
116      */
SetRoleARN(const char * value)117     inline void SetRoleARN(const char* value) { m_roleARNHasBeenSet = true; m_roleARN.assign(value); }
118 
119     /**
120      * <p>ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
121      * stream on your behalf. You need to grant the necessary permissions to this
122      * role.</p>
123      */
WithRoleARN(const Aws::String & value)124     inline KinesisStreamsInput& WithRoleARN(const Aws::String& value) { SetRoleARN(value); return *this;}
125 
126     /**
127      * <p>ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
128      * stream on your behalf. You need to grant the necessary permissions to this
129      * role.</p>
130      */
WithRoleARN(Aws::String && value)131     inline KinesisStreamsInput& WithRoleARN(Aws::String&& value) { SetRoleARN(std::move(value)); return *this;}
132 
133     /**
134      * <p>ARN of the IAM role that Amazon Kinesis Analytics can assume to access the
135      * stream on your behalf. You need to grant the necessary permissions to this
136      * role.</p>
137      */
WithRoleARN(const char * value)138     inline KinesisStreamsInput& WithRoleARN(const char* value) { SetRoleARN(value); return *this;}
139 
140   private:
141 
142     Aws::String m_resourceARN;
143     bool m_resourceARNHasBeenSet;
144 
145     Aws::String m_roleARN;
146     bool m_roleARNHasBeenSet;
147   };
148 
149 } // namespace Model
150 } // namespace KinesisAnalytics
151 } // namespace Aws
152