AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
IngestConfiguration.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ivs-realtime/Ivsrealtime_EXPORTS.h>
11#include <aws/ivs-realtime/model/IngestConfigurationState.h>
12#include <aws/ivs-realtime/model/IngestProtocol.h>
13#include <aws/ivs-realtime/model/RedundantIngestCredential.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ivsrealtime {
25namespace Model {
26
33 public:
34 AWS_IVSREALTIME_API IngestConfiguration() = default;
35 AWS_IVSREALTIME_API IngestConfiguration(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 IngestConfiguration& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetArn() const { return m_arn; }
62 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
63 template <typename ArnT = Aws::String>
64 void SetArn(ArnT&& value) {
65 m_arnHasBeenSet = true;
66 m_arn = std::forward<ArnT>(value);
67 }
68 template <typename ArnT = Aws::String>
70 SetArn(std::forward<ArnT>(value));
71 return *this;
72 }
74
76
79 inline IngestProtocol GetIngestProtocol() const { return m_ingestProtocol; }
80 inline bool IngestProtocolHasBeenSet() const { return m_ingestProtocolHasBeenSet; }
81 inline void SetIngestProtocol(IngestProtocol value) {
82 m_ingestProtocolHasBeenSet = true;
83 m_ingestProtocol = value;
84 }
86 SetIngestProtocol(value);
87 return *this;
88 }
90
92
95 inline const Aws::String& GetStreamKey() const { return m_streamKey; }
96 inline bool StreamKeyHasBeenSet() const { return m_streamKeyHasBeenSet; }
97 template <typename StreamKeyT = Aws::String>
98 void SetStreamKey(StreamKeyT&& value) {
99 m_streamKeyHasBeenSet = true;
100 m_streamKey = std::forward<StreamKeyT>(value);
101 }
102 template <typename StreamKeyT = Aws::String>
103 IngestConfiguration& WithStreamKey(StreamKeyT&& value) {
104 SetStreamKey(std::forward<StreamKeyT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::String& GetStageArn() const { return m_stageArn; }
114 inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; }
115 template <typename StageArnT = Aws::String>
116 void SetStageArn(StageArnT&& value) {
117 m_stageArnHasBeenSet = true;
118 m_stageArn = std::forward<StageArnT>(value);
119 }
120 template <typename StageArnT = Aws::String>
121 IngestConfiguration& WithStageArn(StageArnT&& value) {
122 SetStageArn(std::forward<StageArnT>(value));
123 return *this;
124 }
126
128
131 inline const Aws::String& GetParticipantId() const { return m_participantId; }
132 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
133 template <typename ParticipantIdT = Aws::String>
134 void SetParticipantId(ParticipantIdT&& value) {
135 m_participantIdHasBeenSet = true;
136 m_participantId = std::forward<ParticipantIdT>(value);
137 }
138 template <typename ParticipantIdT = Aws::String>
139 IngestConfiguration& WithParticipantId(ParticipantIdT&& value) {
140 SetParticipantId(std::forward<ParticipantIdT>(value));
141 return *this;
142 }
144
146
151 inline IngestConfigurationState GetState() const { return m_state; }
152 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
154 m_stateHasBeenSet = true;
155 m_state = value;
156 }
158 SetState(value);
159 return *this;
160 }
162
164
171 inline const Aws::String& GetUserId() const { return m_userId; }
172 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
173 template <typename UserIdT = Aws::String>
174 void SetUserId(UserIdT&& value) {
175 m_userIdHasBeenSet = true;
176 m_userId = std::forward<UserIdT>(value);
177 }
178 template <typename UserIdT = Aws::String>
179 IngestConfiguration& WithUserId(UserIdT&& value) {
180 SetUserId(std::forward<UserIdT>(value));
181 return *this;
182 }
184
186
190 inline bool GetRedundantIngest() const { return m_redundantIngest; }
191 inline bool RedundantIngestHasBeenSet() const { return m_redundantIngestHasBeenSet; }
192 inline void SetRedundantIngest(bool value) {
193 m_redundantIngestHasBeenSet = true;
194 m_redundantIngest = value;
195 }
197 SetRedundantIngest(value);
198 return *this;
199 }
201
203
209 inline const Aws::Vector<RedundantIngestCredential>& GetRedundantIngestCredentials() const { return m_redundantIngestCredentials; }
210 inline bool RedundantIngestCredentialsHasBeenSet() const { return m_redundantIngestCredentialsHasBeenSet; }
211 template <typename RedundantIngestCredentialsT = Aws::Vector<RedundantIngestCredential>>
212 void SetRedundantIngestCredentials(RedundantIngestCredentialsT&& value) {
213 m_redundantIngestCredentialsHasBeenSet = true;
214 m_redundantIngestCredentials = std::forward<RedundantIngestCredentialsT>(value);
215 }
216 template <typename RedundantIngestCredentialsT = Aws::Vector<RedundantIngestCredential>>
217 IngestConfiguration& WithRedundantIngestCredentials(RedundantIngestCredentialsT&& value) {
218 SetRedundantIngestCredentials(std::forward<RedundantIngestCredentialsT>(value));
219 return *this;
220 }
221 template <typename RedundantIngestCredentialsT = RedundantIngestCredential>
222 IngestConfiguration& AddRedundantIngestCredentials(RedundantIngestCredentialsT&& value) {
223 m_redundantIngestCredentialsHasBeenSet = true;
224 m_redundantIngestCredentials.emplace_back(std::forward<RedundantIngestCredentialsT>(value));
225 return *this;
226 }
228
230
237 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
238 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
239 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
240 void SetAttributes(AttributesT&& value) {
241 m_attributesHasBeenSet = true;
242 m_attributes = std::forward<AttributesT>(value);
243 }
244 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
245 IngestConfiguration& WithAttributes(AttributesT&& value) {
246 SetAttributes(std::forward<AttributesT>(value));
247 return *this;
248 }
249 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
250 IngestConfiguration& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
251 m_attributesHasBeenSet = true;
252 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
253 return *this;
254 }
256
258
267 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
268 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
269 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
270 void SetTags(TagsT&& value) {
271 m_tagsHasBeenSet = true;
272 m_tags = std::forward<TagsT>(value);
273 }
274 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
276 SetTags(std::forward<TagsT>(value));
277 return *this;
278 }
279 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
280 IngestConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
281 m_tagsHasBeenSet = true;
282 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
283 return *this;
284 }
286 private:
287 Aws::String m_name;
288
289 Aws::String m_arn;
290
291 IngestProtocol m_ingestProtocol{IngestProtocol::NOT_SET};
292
293 Aws::String m_streamKey;
294
295 Aws::String m_stageArn;
296
297 Aws::String m_participantId;
298
300
301 Aws::String m_userId;
302
303 bool m_redundantIngest{false};
304
305 Aws::Vector<RedundantIngestCredential> m_redundantIngestCredentials;
306
308
310 bool m_nameHasBeenSet = false;
311 bool m_arnHasBeenSet = false;
312 bool m_ingestProtocolHasBeenSet = false;
313 bool m_streamKeyHasBeenSet = false;
314 bool m_stageArnHasBeenSet = false;
315 bool m_participantIdHasBeenSet = false;
316 bool m_stateHasBeenSet = false;
317 bool m_userIdHasBeenSet = false;
318 bool m_redundantIngestHasBeenSet = false;
319 bool m_redundantIngestCredentialsHasBeenSet = false;
320 bool m_attributesHasBeenSet = false;
321 bool m_tagsHasBeenSet = false;
322};
323
324} // namespace Model
325} // namespace ivsrealtime
326} // namespace Aws
IngestConfiguration & WithArn(ArnT &&value)
IngestConfiguration & WithName(NameT &&value)
IngestConfiguration & WithParticipantId(ParticipantIdT &&value)
IngestConfiguration & WithStageArn(StageArnT &&value)
IngestConfiguration & WithStreamKey(StreamKeyT &&value)
AWS_IVSREALTIME_API IngestConfiguration()=default
AWS_IVSREALTIME_API IngestConfiguration(Aws::Utils::Json::JsonView jsonValue)
IngestConfiguration & WithRedundantIngestCredentials(RedundantIngestCredentialsT &&value)
void SetRedundantIngestCredentials(RedundantIngestCredentialsT &&value)
const Aws::Vector< RedundantIngestCredential > & GetRedundantIngestCredentials() const
IngestConfiguration & WithUserId(UserIdT &&value)
IngestConfiguration & AddRedundantIngestCredentials(RedundantIngestCredentialsT &&value)
IngestConfiguration & WithIngestProtocol(IngestProtocol value)
void SetState(IngestConfigurationState value)
IngestConfiguration & WithRedundantIngest(bool value)
IngestConfiguration & AddTags(TagsKeyT &&key, TagsValueT &&value)
IngestConfiguration & WithAttributes(AttributesT &&value)
const Aws::Map< Aws::String, Aws::String > & GetAttributes() const
AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const
IngestConfiguration & WithState(IngestConfigurationState value)
AWS_IVSREALTIME_API IngestConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
IngestConfiguration & WithTags(TagsT &&value)
IngestConfiguration & AddAttributes(AttributesKeyT &&key, AttributesValueT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue