AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
SubscribeToShardEventStream.h
1
6#pragma once
7#include <aws/kinesis/Kinesis_EXPORTS.h>
8#include <aws/kinesis/model/SubscribeToShardEvent.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Kinesis {
20namespace Model {
21
30 public:
31 AWS_KINESIS_API SubscribeToShardEventStream() = default;
34 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
43 inline const SubscribeToShardEvent& GetSubscribeToShardEvent() const { return m_subscribeToShardEvent; }
44 inline bool SubscribeToShardEventHasBeenSet() const { return m_subscribeToShardEventHasBeenSet; }
45 template <typename SubscribeToShardEventT = SubscribeToShardEvent>
46 void SetSubscribeToShardEvent(SubscribeToShardEventT&& value) {
47 m_subscribeToShardEventHasBeenSet = true;
48 m_subscribeToShardEvent = std::forward<SubscribeToShardEventT>(value);
49 }
50 template <typename SubscribeToShardEventT = SubscribeToShardEvent>
51 SubscribeToShardEventStream& WithSubscribeToShardEvent(SubscribeToShardEventT&& value) {
52 SetSubscribeToShardEvent(std::forward<SubscribeToShardEventT>(value));
53 return *this;
54 }
56
58
59 inline const KinesisError& GetResourceNotFoundException() const { return m_resourceNotFoundException; }
60 inline bool ResourceNotFoundExceptionHasBeenSet() const { return m_resourceNotFoundExceptionHasBeenSet; }
61 template <typename ResourceNotFoundExceptionT = KinesisError>
62 void SetResourceNotFoundException(ResourceNotFoundExceptionT&& value) {
63 m_resourceNotFoundExceptionHasBeenSet = true;
64 m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value);
65 }
66 template <typename ResourceNotFoundExceptionT = KinesisError>
67 SubscribeToShardEventStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) {
68 SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value));
69 return *this;
70 }
72
74
75 inline const KinesisError& GetResourceInUseException() const { return m_resourceInUseException; }
76 inline bool ResourceInUseExceptionHasBeenSet() const { return m_resourceInUseExceptionHasBeenSet; }
77 template <typename ResourceInUseExceptionT = KinesisError>
78 void SetResourceInUseException(ResourceInUseExceptionT&& value) {
79 m_resourceInUseExceptionHasBeenSet = true;
80 m_resourceInUseException = std::forward<ResourceInUseExceptionT>(value);
81 }
82 template <typename ResourceInUseExceptionT = KinesisError>
83 SubscribeToShardEventStream& WithResourceInUseException(ResourceInUseExceptionT&& value) {
84 SetResourceInUseException(std::forward<ResourceInUseExceptionT>(value));
85 return *this;
86 }
88
90
91 inline const KinesisError& GetKMSDisabledException() const { return m_kMSDisabledException; }
92 inline bool KMSDisabledExceptionHasBeenSet() const { return m_kMSDisabledExceptionHasBeenSet; }
93 template <typename KMSDisabledExceptionT = KinesisError>
94 void SetKMSDisabledException(KMSDisabledExceptionT&& value) {
95 m_kMSDisabledExceptionHasBeenSet = true;
96 m_kMSDisabledException = std::forward<KMSDisabledExceptionT>(value);
97 }
98 template <typename KMSDisabledExceptionT = KinesisError>
99 SubscribeToShardEventStream& WithKMSDisabledException(KMSDisabledExceptionT&& value) {
100 SetKMSDisabledException(std::forward<KMSDisabledExceptionT>(value));
101 return *this;
102 }
104
106
107 inline const KinesisError& GetKMSInvalidStateException() const { return m_kMSInvalidStateException; }
108 inline bool KMSInvalidStateExceptionHasBeenSet() const { return m_kMSInvalidStateExceptionHasBeenSet; }
109 template <typename KMSInvalidStateExceptionT = KinesisError>
110 void SetKMSInvalidStateException(KMSInvalidStateExceptionT&& value) {
111 m_kMSInvalidStateExceptionHasBeenSet = true;
112 m_kMSInvalidStateException = std::forward<KMSInvalidStateExceptionT>(value);
113 }
114 template <typename KMSInvalidStateExceptionT = KinesisError>
115 SubscribeToShardEventStream& WithKMSInvalidStateException(KMSInvalidStateExceptionT&& value) {
116 SetKMSInvalidStateException(std::forward<KMSInvalidStateExceptionT>(value));
117 return *this;
118 }
120
122
123 inline const KinesisError& GetKMSAccessDeniedException() const { return m_kMSAccessDeniedException; }
124 inline bool KMSAccessDeniedExceptionHasBeenSet() const { return m_kMSAccessDeniedExceptionHasBeenSet; }
125 template <typename KMSAccessDeniedExceptionT = KinesisError>
126 void SetKMSAccessDeniedException(KMSAccessDeniedExceptionT&& value) {
127 m_kMSAccessDeniedExceptionHasBeenSet = true;
128 m_kMSAccessDeniedException = std::forward<KMSAccessDeniedExceptionT>(value);
129 }
130 template <typename KMSAccessDeniedExceptionT = KinesisError>
131 SubscribeToShardEventStream& WithKMSAccessDeniedException(KMSAccessDeniedExceptionT&& value) {
132 SetKMSAccessDeniedException(std::forward<KMSAccessDeniedExceptionT>(value));
133 return *this;
134 }
136
138
139 inline const KinesisError& GetKMSNotFoundException() const { return m_kMSNotFoundException; }
140 inline bool KMSNotFoundExceptionHasBeenSet() const { return m_kMSNotFoundExceptionHasBeenSet; }
141 template <typename KMSNotFoundExceptionT = KinesisError>
142 void SetKMSNotFoundException(KMSNotFoundExceptionT&& value) {
143 m_kMSNotFoundExceptionHasBeenSet = true;
144 m_kMSNotFoundException = std::forward<KMSNotFoundExceptionT>(value);
145 }
146 template <typename KMSNotFoundExceptionT = KinesisError>
148 SetKMSNotFoundException(std::forward<KMSNotFoundExceptionT>(value));
149 return *this;
150 }
152
154
155 inline const KinesisError& GetKMSOptInRequired() const { return m_kMSOptInRequired; }
156 inline bool KMSOptInRequiredHasBeenSet() const { return m_kMSOptInRequiredHasBeenSet; }
157 template <typename KMSOptInRequiredT = KinesisError>
158 void SetKMSOptInRequired(KMSOptInRequiredT&& value) {
159 m_kMSOptInRequiredHasBeenSet = true;
160 m_kMSOptInRequired = std::forward<KMSOptInRequiredT>(value);
161 }
162 template <typename KMSOptInRequiredT = KinesisError>
164 SetKMSOptInRequired(std::forward<KMSOptInRequiredT>(value));
165 return *this;
166 }
168
170
171 inline const KinesisError& GetKMSThrottlingException() const { return m_kMSThrottlingException; }
172 inline bool KMSThrottlingExceptionHasBeenSet() const { return m_kMSThrottlingExceptionHasBeenSet; }
173 template <typename KMSThrottlingExceptionT = KinesisError>
174 void SetKMSThrottlingException(KMSThrottlingExceptionT&& value) {
175 m_kMSThrottlingExceptionHasBeenSet = true;
176 m_kMSThrottlingException = std::forward<KMSThrottlingExceptionT>(value);
177 }
178 template <typename KMSThrottlingExceptionT = KinesisError>
179 SubscribeToShardEventStream& WithKMSThrottlingException(KMSThrottlingExceptionT&& value) {
180 SetKMSThrottlingException(std::forward<KMSThrottlingExceptionT>(value));
181 return *this;
182 }
184
186
190 inline const KinesisError& GetInternalFailureException() const { return m_internalFailureException; }
191 inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; }
192 template <typename InternalFailureExceptionT = KinesisError>
193 void SetInternalFailureException(InternalFailureExceptionT&& value) {
194 m_internalFailureExceptionHasBeenSet = true;
195 m_internalFailureException = std::forward<InternalFailureExceptionT>(value);
196 }
197 template <typename InternalFailureExceptionT = KinesisError>
198 SubscribeToShardEventStream& WithInternalFailureException(InternalFailureExceptionT&& value) {
199 SetInternalFailureException(std::forward<InternalFailureExceptionT>(value));
200 return *this;
201 }
203 private:
204 SubscribeToShardEvent m_subscribeToShardEvent;
205
206 KinesisError m_resourceNotFoundException;
207
208 KinesisError m_resourceInUseException;
209
210 KinesisError m_kMSDisabledException;
211
212 KinesisError m_kMSInvalidStateException;
213
214 KinesisError m_kMSAccessDeniedException;
215
216 KinesisError m_kMSNotFoundException;
217
218 KinesisError m_kMSOptInRequired;
219
220 KinesisError m_kMSThrottlingException;
221
222 KinesisError m_internalFailureException;
223 bool m_subscribeToShardEventHasBeenSet = false;
224 bool m_resourceNotFoundExceptionHasBeenSet = false;
225 bool m_resourceInUseExceptionHasBeenSet = false;
226 bool m_kMSDisabledExceptionHasBeenSet = false;
227 bool m_kMSInvalidStateExceptionHasBeenSet = false;
228 bool m_kMSAccessDeniedExceptionHasBeenSet = false;
229 bool m_kMSNotFoundExceptionHasBeenSet = false;
230 bool m_kMSOptInRequiredHasBeenSet = false;
231 bool m_kMSThrottlingExceptionHasBeenSet = false;
232 bool m_internalFailureExceptionHasBeenSet = false;
233};
234
235} // namespace Model
236} // namespace Kinesis
237} // namespace Aws
AWS_KINESIS_API SubscribeToShardEventStream & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetSubscribeToShardEvent(SubscribeToShardEventT &&value)
AWS_KINESIS_API SubscribeToShardEventStream()=default
void SetResourceInUseException(ResourceInUseExceptionT &&value)
void SetKMSDisabledException(KMSDisabledExceptionT &&value)
SubscribeToShardEventStream & WithKMSDisabledException(KMSDisabledExceptionT &&value)
SubscribeToShardEventStream & WithKMSInvalidStateException(KMSInvalidStateExceptionT &&value)
SubscribeToShardEventStream & WithKMSOptInRequired(KMSOptInRequiredT &&value)
SubscribeToShardEventStream & WithSubscribeToShardEvent(SubscribeToShardEventT &&value)
SubscribeToShardEventStream & WithResourceNotFoundException(ResourceNotFoundExceptionT &&value)
SubscribeToShardEventStream & WithKMSThrottlingException(KMSThrottlingExceptionT &&value)
void SetKMSInvalidStateException(KMSInvalidStateExceptionT &&value)
void SetResourceNotFoundException(ResourceNotFoundExceptionT &&value)
SubscribeToShardEventStream & WithKMSNotFoundException(KMSNotFoundExceptionT &&value)
AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KINESIS_API SubscribeToShardEventStream(Aws::Utils::Json::JsonView jsonValue)
SubscribeToShardEventStream & WithKMSAccessDeniedException(KMSAccessDeniedExceptionT &&value)
void SetKMSAccessDeniedException(KMSAccessDeniedExceptionT &&value)
const SubscribeToShardEvent & GetSubscribeToShardEvent() const
void SetKMSThrottlingException(KMSThrottlingExceptionT &&value)
void SetInternalFailureException(InternalFailureExceptionT &&value)
SubscribeToShardEventStream & WithInternalFailureException(InternalFailureExceptionT &&value)
SubscribeToShardEventStream & WithResourceInUseException(ResourceInUseExceptionT &&value)
Aws::Utils::Json::JsonValue JsonValue