AWS SDK for C++

AWS SDK for C++ Version 1.11.717

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/ivs-realtime/Ivsrealtime_EXPORTS.h>
10#include <aws/ivs-realtime/model/IngestConfigurationState.h>
11#include <aws/ivs-realtime/model/IngestProtocol.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace ivsrealtime {
23namespace Model {
24
31 public:
32 AWS_IVSREALTIME_API IngestConfiguration() = default;
33 AWS_IVSREALTIME_API IngestConfiguration(Aws::Utils::Json::JsonView jsonValue);
35 AWS_IVSREALTIME_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template <typename NameT = Aws::String>
44 void SetName(NameT&& value) {
45 m_nameHasBeenSet = true;
46 m_name = std::forward<NameT>(value);
47 }
48 template <typename NameT = Aws::String>
49 IngestConfiguration& WithName(NameT&& value) {
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetArn() const { return m_arn; }
60 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
61 template <typename ArnT = Aws::String>
62 void SetArn(ArnT&& value) {
63 m_arnHasBeenSet = true;
64 m_arn = std::forward<ArnT>(value);
65 }
66 template <typename ArnT = Aws::String>
68 SetArn(std::forward<ArnT>(value));
69 return *this;
70 }
72
74
77 inline IngestProtocol GetIngestProtocol() const { return m_ingestProtocol; }
78 inline bool IngestProtocolHasBeenSet() const { return m_ingestProtocolHasBeenSet; }
79 inline void SetIngestProtocol(IngestProtocol value) {
80 m_ingestProtocolHasBeenSet = true;
81 m_ingestProtocol = value;
82 }
84 SetIngestProtocol(value);
85 return *this;
86 }
88
90
93 inline const Aws::String& GetStreamKey() const { return m_streamKey; }
94 inline bool StreamKeyHasBeenSet() const { return m_streamKeyHasBeenSet; }
95 template <typename StreamKeyT = Aws::String>
96 void SetStreamKey(StreamKeyT&& value) {
97 m_streamKeyHasBeenSet = true;
98 m_streamKey = std::forward<StreamKeyT>(value);
99 }
100 template <typename StreamKeyT = Aws::String>
101 IngestConfiguration& WithStreamKey(StreamKeyT&& value) {
102 SetStreamKey(std::forward<StreamKeyT>(value));
103 return *this;
104 }
106
108
111 inline const Aws::String& GetStageArn() const { return m_stageArn; }
112 inline bool StageArnHasBeenSet() const { return m_stageArnHasBeenSet; }
113 template <typename StageArnT = Aws::String>
114 void SetStageArn(StageArnT&& value) {
115 m_stageArnHasBeenSet = true;
116 m_stageArn = std::forward<StageArnT>(value);
117 }
118 template <typename StageArnT = Aws::String>
119 IngestConfiguration& WithStageArn(StageArnT&& value) {
120 SetStageArn(std::forward<StageArnT>(value));
121 return *this;
122 }
124
126
129 inline const Aws::String& GetParticipantId() const { return m_participantId; }
130 inline bool ParticipantIdHasBeenSet() const { return m_participantIdHasBeenSet; }
131 template <typename ParticipantIdT = Aws::String>
132 void SetParticipantId(ParticipantIdT&& value) {
133 m_participantIdHasBeenSet = true;
134 m_participantId = std::forward<ParticipantIdT>(value);
135 }
136 template <typename ParticipantIdT = Aws::String>
137 IngestConfiguration& WithParticipantId(ParticipantIdT&& value) {
138 SetParticipantId(std::forward<ParticipantIdT>(value));
139 return *this;
140 }
142
144
149 inline IngestConfigurationState GetState() const { return m_state; }
150 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
152 m_stateHasBeenSet = true;
153 m_state = value;
154 }
156 SetState(value);
157 return *this;
158 }
160
162
169 inline const Aws::String& GetUserId() const { return m_userId; }
170 inline bool UserIdHasBeenSet() const { return m_userIdHasBeenSet; }
171 template <typename UserIdT = Aws::String>
172 void SetUserId(UserIdT&& value) {
173 m_userIdHasBeenSet = true;
174 m_userId = std::forward<UserIdT>(value);
175 }
176 template <typename UserIdT = Aws::String>
177 IngestConfiguration& WithUserId(UserIdT&& value) {
178 SetUserId(std::forward<UserIdT>(value));
179 return *this;
180 }
182
184
191 inline const Aws::Map<Aws::String, Aws::String>& GetAttributes() const { return m_attributes; }
192 inline bool AttributesHasBeenSet() const { return m_attributesHasBeenSet; }
193 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
194 void SetAttributes(AttributesT&& value) {
195 m_attributesHasBeenSet = true;
196 m_attributes = std::forward<AttributesT>(value);
197 }
198 template <typename AttributesT = Aws::Map<Aws::String, Aws::String>>
199 IngestConfiguration& WithAttributes(AttributesT&& value) {
200 SetAttributes(std::forward<AttributesT>(value));
201 return *this;
202 }
203 template <typename AttributesKeyT = Aws::String, typename AttributesValueT = Aws::String>
204 IngestConfiguration& AddAttributes(AttributesKeyT&& key, AttributesValueT&& value) {
205 m_attributesHasBeenSet = true;
206 m_attributes.emplace(std::forward<AttributesKeyT>(key), std::forward<AttributesValueT>(value));
207 return *this;
208 }
210
212
221 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
222 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
223 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
224 void SetTags(TagsT&& value) {
225 m_tagsHasBeenSet = true;
226 m_tags = std::forward<TagsT>(value);
227 }
228 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
230 SetTags(std::forward<TagsT>(value));
231 return *this;
232 }
233 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
234 IngestConfiguration& AddTags(TagsKeyT&& key, TagsValueT&& value) {
235 m_tagsHasBeenSet = true;
236 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
237 return *this;
238 }
240 private:
241 Aws::String m_name;
242
243 Aws::String m_arn;
244
245 IngestProtocol m_ingestProtocol{IngestProtocol::NOT_SET};
246
247 Aws::String m_streamKey;
248
249 Aws::String m_stageArn;
250
251 Aws::String m_participantId;
252
254
255 Aws::String m_userId;
256
258
260 bool m_nameHasBeenSet = false;
261 bool m_arnHasBeenSet = false;
262 bool m_ingestProtocolHasBeenSet = false;
263 bool m_streamKeyHasBeenSet = false;
264 bool m_stageArnHasBeenSet = false;
265 bool m_participantIdHasBeenSet = false;
266 bool m_stateHasBeenSet = false;
267 bool m_userIdHasBeenSet = false;
268 bool m_attributesHasBeenSet = false;
269 bool m_tagsHasBeenSet = false;
270};
271
272} // namespace Model
273} // namespace ivsrealtime
274} // 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 & WithUserId(UserIdT &&value)
IngestConfiguration & WithIngestProtocol(IngestProtocol value)
void SetState(IngestConfigurationState 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
Aws::Utils::Json::JsonValue JsonValue