AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Kinesis
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_KINESIS_API SubscribeToShardEventStream() = default;
39 AWS_KINESIS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
49 inline const SubscribeToShardEvent& GetSubscribeToShardEvent() const { return m_subscribeToShardEvent; }
50 inline bool SubscribeToShardEventHasBeenSet() const { return m_subscribeToShardEventHasBeenSet; }
51 template<typename SubscribeToShardEventT = SubscribeToShardEvent>
52 void SetSubscribeToShardEvent(SubscribeToShardEventT&& value) { m_subscribeToShardEventHasBeenSet = true; m_subscribeToShardEvent = std::forward<SubscribeToShardEventT>(value); }
53 template<typename SubscribeToShardEventT = SubscribeToShardEvent>
54 SubscribeToShardEventStream& WithSubscribeToShardEvent(SubscribeToShardEventT&& value) { SetSubscribeToShardEvent(std::forward<SubscribeToShardEventT>(value)); return *this;}
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) { m_resourceNotFoundExceptionHasBeenSet = true; m_resourceNotFoundException = std::forward<ResourceNotFoundExceptionT>(value); }
63 template<typename ResourceNotFoundExceptionT = KinesisError>
64 SubscribeToShardEventStream& WithResourceNotFoundException(ResourceNotFoundExceptionT&& value) { SetResourceNotFoundException(std::forward<ResourceNotFoundExceptionT>(value)); return *this;}
66
68
69 inline const KinesisError& GetResourceInUseException() const { return m_resourceInUseException; }
70 inline bool ResourceInUseExceptionHasBeenSet() const { return m_resourceInUseExceptionHasBeenSet; }
71 template<typename ResourceInUseExceptionT = KinesisError>
72 void SetResourceInUseException(ResourceInUseExceptionT&& value) { m_resourceInUseExceptionHasBeenSet = true; m_resourceInUseException = std::forward<ResourceInUseExceptionT>(value); }
73 template<typename ResourceInUseExceptionT = KinesisError>
74 SubscribeToShardEventStream& WithResourceInUseException(ResourceInUseExceptionT&& value) { SetResourceInUseException(std::forward<ResourceInUseExceptionT>(value)); return *this;}
76
78
79 inline const KinesisError& GetKMSDisabledException() const { return m_kMSDisabledException; }
80 inline bool KMSDisabledExceptionHasBeenSet() const { return m_kMSDisabledExceptionHasBeenSet; }
81 template<typename KMSDisabledExceptionT = KinesisError>
82 void SetKMSDisabledException(KMSDisabledExceptionT&& value) { m_kMSDisabledExceptionHasBeenSet = true; m_kMSDisabledException = std::forward<KMSDisabledExceptionT>(value); }
83 template<typename KMSDisabledExceptionT = KinesisError>
84 SubscribeToShardEventStream& WithKMSDisabledException(KMSDisabledExceptionT&& value) { SetKMSDisabledException(std::forward<KMSDisabledExceptionT>(value)); return *this;}
86
88
89 inline const KinesisError& GetKMSInvalidStateException() const { return m_kMSInvalidStateException; }
90 inline bool KMSInvalidStateExceptionHasBeenSet() const { return m_kMSInvalidStateExceptionHasBeenSet; }
91 template<typename KMSInvalidStateExceptionT = KinesisError>
92 void SetKMSInvalidStateException(KMSInvalidStateExceptionT&& value) { m_kMSInvalidStateExceptionHasBeenSet = true; m_kMSInvalidStateException = std::forward<KMSInvalidStateExceptionT>(value); }
93 template<typename KMSInvalidStateExceptionT = KinesisError>
94 SubscribeToShardEventStream& WithKMSInvalidStateException(KMSInvalidStateExceptionT&& value) { SetKMSInvalidStateException(std::forward<KMSInvalidStateExceptionT>(value)); return *this;}
96
98
99 inline const KinesisError& GetKMSAccessDeniedException() const { return m_kMSAccessDeniedException; }
100 inline bool KMSAccessDeniedExceptionHasBeenSet() const { return m_kMSAccessDeniedExceptionHasBeenSet; }
101 template<typename KMSAccessDeniedExceptionT = KinesisError>
102 void SetKMSAccessDeniedException(KMSAccessDeniedExceptionT&& value) { m_kMSAccessDeniedExceptionHasBeenSet = true; m_kMSAccessDeniedException = std::forward<KMSAccessDeniedExceptionT>(value); }
103 template<typename KMSAccessDeniedExceptionT = KinesisError>
104 SubscribeToShardEventStream& WithKMSAccessDeniedException(KMSAccessDeniedExceptionT&& value) { SetKMSAccessDeniedException(std::forward<KMSAccessDeniedExceptionT>(value)); return *this;}
106
108
109 inline const KinesisError& GetKMSNotFoundException() const { return m_kMSNotFoundException; }
110 inline bool KMSNotFoundExceptionHasBeenSet() const { return m_kMSNotFoundExceptionHasBeenSet; }
111 template<typename KMSNotFoundExceptionT = KinesisError>
112 void SetKMSNotFoundException(KMSNotFoundExceptionT&& value) { m_kMSNotFoundExceptionHasBeenSet = true; m_kMSNotFoundException = std::forward<KMSNotFoundExceptionT>(value); }
113 template<typename KMSNotFoundExceptionT = KinesisError>
114 SubscribeToShardEventStream& WithKMSNotFoundException(KMSNotFoundExceptionT&& value) { SetKMSNotFoundException(std::forward<KMSNotFoundExceptionT>(value)); return *this;}
116
118
119 inline const KinesisError& GetKMSOptInRequired() const { return m_kMSOptInRequired; }
120 inline bool KMSOptInRequiredHasBeenSet() const { return m_kMSOptInRequiredHasBeenSet; }
121 template<typename KMSOptInRequiredT = KinesisError>
122 void SetKMSOptInRequired(KMSOptInRequiredT&& value) { m_kMSOptInRequiredHasBeenSet = true; m_kMSOptInRequired = std::forward<KMSOptInRequiredT>(value); }
123 template<typename KMSOptInRequiredT = KinesisError>
124 SubscribeToShardEventStream& WithKMSOptInRequired(KMSOptInRequiredT&& value) { SetKMSOptInRequired(std::forward<KMSOptInRequiredT>(value)); return *this;}
126
128
129 inline const KinesisError& GetKMSThrottlingException() const { return m_kMSThrottlingException; }
130 inline bool KMSThrottlingExceptionHasBeenSet() const { return m_kMSThrottlingExceptionHasBeenSet; }
131 template<typename KMSThrottlingExceptionT = KinesisError>
132 void SetKMSThrottlingException(KMSThrottlingExceptionT&& value) { m_kMSThrottlingExceptionHasBeenSet = true; m_kMSThrottlingException = std::forward<KMSThrottlingExceptionT>(value); }
133 template<typename KMSThrottlingExceptionT = KinesisError>
134 SubscribeToShardEventStream& WithKMSThrottlingException(KMSThrottlingExceptionT&& value) { SetKMSThrottlingException(std::forward<KMSThrottlingExceptionT>(value)); return *this;}
136
138
142 inline const KinesisError& GetInternalFailureException() const { return m_internalFailureException; }
143 inline bool InternalFailureExceptionHasBeenSet() const { return m_internalFailureExceptionHasBeenSet; }
144 template<typename InternalFailureExceptionT = KinesisError>
145 void SetInternalFailureException(InternalFailureExceptionT&& value) { m_internalFailureExceptionHasBeenSet = true; m_internalFailureException = std::forward<InternalFailureExceptionT>(value); }
146 template<typename InternalFailureExceptionT = KinesisError>
147 SubscribeToShardEventStream& WithInternalFailureException(InternalFailureExceptionT&& value) { SetInternalFailureException(std::forward<InternalFailureExceptionT>(value)); return *this;}
149 private:
150
151 SubscribeToShardEvent m_subscribeToShardEvent;
152 bool m_subscribeToShardEventHasBeenSet = false;
153
154 KinesisError m_resourceNotFoundException;
155 bool m_resourceNotFoundExceptionHasBeenSet = false;
156
157 KinesisError m_resourceInUseException;
158 bool m_resourceInUseExceptionHasBeenSet = false;
159
160 KinesisError m_kMSDisabledException;
161 bool m_kMSDisabledExceptionHasBeenSet = false;
162
163 KinesisError m_kMSInvalidStateException;
164 bool m_kMSInvalidStateExceptionHasBeenSet = false;
165
166 KinesisError m_kMSAccessDeniedException;
167 bool m_kMSAccessDeniedExceptionHasBeenSet = false;
168
169 KinesisError m_kMSNotFoundException;
170 bool m_kMSNotFoundExceptionHasBeenSet = false;
171
172 KinesisError m_kMSOptInRequired;
173 bool m_kMSOptInRequiredHasBeenSet = false;
174
175 KinesisError m_kMSThrottlingException;
176 bool m_kMSThrottlingExceptionHasBeenSet = false;
177
178 KinesisError m_internalFailureException;
179 bool m_internalFailureExceptionHasBeenSet = false;
180 };
181
182} // namespace Model
183} // namespace Kinesis
184} // 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