AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Channel.h
1
6#pragma once
7#include <aws/ivs/IVS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ivs/model/ContainerFormat.h>
10#include <aws/ivs/model/ChannelLatencyMode.h>
11#include <aws/ivs/model/MultitrackInputConfiguration.h>
12#include <aws/ivs/model/TranscodePreset.h>
13#include <aws/ivs/model/Srt.h>
14#include <aws/core/utils/memory/stl/AWSMap.h>
15#include <aws/ivs/model/ChannelType.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Json
23{
24 class JsonValue;
25 class JsonView;
26} // namespace Json
27} // namespace Utils
28namespace IVS
29{
30namespace Model
31{
32
38 class Channel
39 {
40 public:
41 AWS_IVS_API Channel() = default;
42 AWS_IVS_API Channel(Aws::Utils::Json::JsonView jsonValue);
45
46
48
51 inline const Aws::String& GetArn() const { return m_arn; }
52 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
53 template<typename ArnT = Aws::String>
54 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
55 template<typename ArnT = Aws::String>
56 Channel& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
58
60
64 inline bool GetAuthorized() const { return m_authorized; }
65 inline bool AuthorizedHasBeenSet() const { return m_authorizedHasBeenSet; }
66 inline void SetAuthorized(bool value) { m_authorizedHasBeenSet = true; m_authorized = value; }
67 inline Channel& WithAuthorized(bool value) { SetAuthorized(value); return *this;}
69
71
79 inline ContainerFormat GetContainerFormat() const { return m_containerFormat; }
80 inline bool ContainerFormatHasBeenSet() const { return m_containerFormatHasBeenSet; }
81 inline void SetContainerFormat(ContainerFormat value) { m_containerFormatHasBeenSet = true; m_containerFormat = value; }
82 inline Channel& WithContainerFormat(ContainerFormat value) { SetContainerFormat(value); return *this;}
84
86
90 inline const Aws::String& GetIngestEndpoint() const { return m_ingestEndpoint; }
91 inline bool IngestEndpointHasBeenSet() const { return m_ingestEndpointHasBeenSet; }
92 template<typename IngestEndpointT = Aws::String>
93 void SetIngestEndpoint(IngestEndpointT&& value) { m_ingestEndpointHasBeenSet = true; m_ingestEndpoint = std::forward<IngestEndpointT>(value); }
94 template<typename IngestEndpointT = Aws::String>
95 Channel& WithIngestEndpoint(IngestEndpointT&& value) { SetIngestEndpoint(std::forward<IngestEndpointT>(value)); return *this;}
97
99
103 inline bool GetInsecureIngest() const { return m_insecureIngest; }
104 inline bool InsecureIngestHasBeenSet() const { return m_insecureIngestHasBeenSet; }
105 inline void SetInsecureIngest(bool value) { m_insecureIngestHasBeenSet = true; m_insecureIngest = value; }
106 inline Channel& WithInsecureIngest(bool value) { SetInsecureIngest(value); return *this;}
108
110
115 inline ChannelLatencyMode GetLatencyMode() const { return m_latencyMode; }
116 inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; }
117 inline void SetLatencyMode(ChannelLatencyMode value) { m_latencyModeHasBeenSet = true; m_latencyMode = value; }
118 inline Channel& WithLatencyMode(ChannelLatencyMode value) { SetLatencyMode(value); return *this;}
120
122
126 inline const MultitrackInputConfiguration& GetMultitrackInputConfiguration() const { return m_multitrackInputConfiguration; }
127 inline bool MultitrackInputConfigurationHasBeenSet() const { return m_multitrackInputConfigurationHasBeenSet; }
128 template<typename MultitrackInputConfigurationT = MultitrackInputConfiguration>
129 void SetMultitrackInputConfiguration(MultitrackInputConfigurationT&& value) { m_multitrackInputConfigurationHasBeenSet = true; m_multitrackInputConfiguration = std::forward<MultitrackInputConfigurationT>(value); }
130 template<typename MultitrackInputConfigurationT = MultitrackInputConfiguration>
131 Channel& WithMultitrackInputConfiguration(MultitrackInputConfigurationT&& value) { SetMultitrackInputConfiguration(std::forward<MultitrackInputConfigurationT>(value)); return *this;}
133
135
138 inline const Aws::String& GetName() const { return m_name; }
139 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
140 template<typename NameT = Aws::String>
141 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
142 template<typename NameT = Aws::String>
143 Channel& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
145
147
152 inline const Aws::String& GetPlaybackRestrictionPolicyArn() const { return m_playbackRestrictionPolicyArn; }
153 inline bool PlaybackRestrictionPolicyArnHasBeenSet() const { return m_playbackRestrictionPolicyArnHasBeenSet; }
154 template<typename PlaybackRestrictionPolicyArnT = Aws::String>
155 void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) { m_playbackRestrictionPolicyArnHasBeenSet = true; m_playbackRestrictionPolicyArn = std::forward<PlaybackRestrictionPolicyArnT>(value); }
156 template<typename PlaybackRestrictionPolicyArnT = Aws::String>
157 Channel& WithPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) { SetPlaybackRestrictionPolicyArn(std::forward<PlaybackRestrictionPolicyArnT>(value)); return *this;}
159
161
164 inline const Aws::String& GetPlaybackUrl() const { return m_playbackUrl; }
165 inline bool PlaybackUrlHasBeenSet() const { return m_playbackUrlHasBeenSet; }
166 template<typename PlaybackUrlT = Aws::String>
167 void SetPlaybackUrl(PlaybackUrlT&& value) { m_playbackUrlHasBeenSet = true; m_playbackUrl = std::forward<PlaybackUrlT>(value); }
168 template<typename PlaybackUrlT = Aws::String>
169 Channel& WithPlaybackUrl(PlaybackUrlT&& value) { SetPlaybackUrl(std::forward<PlaybackUrlT>(value)); return *this;}
171
173
181 inline TranscodePreset GetPreset() const { return m_preset; }
182 inline bool PresetHasBeenSet() const { return m_presetHasBeenSet; }
183 inline void SetPreset(TranscodePreset value) { m_presetHasBeenSet = true; m_preset = value; }
184 inline Channel& WithPreset(TranscodePreset value) { SetPreset(value); return *this;}
186
188
192 inline const Aws::String& GetRecordingConfigurationArn() const { return m_recordingConfigurationArn; }
193 inline bool RecordingConfigurationArnHasBeenSet() const { return m_recordingConfigurationArnHasBeenSet; }
194 template<typename RecordingConfigurationArnT = Aws::String>
195 void SetRecordingConfigurationArn(RecordingConfigurationArnT&& value) { m_recordingConfigurationArnHasBeenSet = true; m_recordingConfigurationArn = std::forward<RecordingConfigurationArnT>(value); }
196 template<typename RecordingConfigurationArnT = Aws::String>
197 Channel& WithRecordingConfigurationArn(RecordingConfigurationArnT&& value) { SetRecordingConfigurationArn(std::forward<RecordingConfigurationArnT>(value)); return *this;}
199
201
205 inline const Srt& GetSrt() const { return m_srt; }
206 inline bool SrtHasBeenSet() const { return m_srtHasBeenSet; }
207 template<typename SrtT = Srt>
208 void SetSrt(SrtT&& value) { m_srtHasBeenSet = true; m_srt = std::forward<SrtT>(value); }
209 template<typename SrtT = Srt>
210 Channel& WithSrt(SrtT&& value) { SetSrt(std::forward<SrtT>(value)); return *this;}
212
214
223 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
224 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
225 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
226 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
227 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
228 Channel& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
229 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
230 Channel& AddTags(TagsKeyT&& key, TagsValueT&& value) {
231 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
232 }
234
236
243 inline ChannelType GetType() const { return m_type; }
244 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
245 inline void SetType(ChannelType value) { m_typeHasBeenSet = true; m_type = value; }
246 inline Channel& WithType(ChannelType value) { SetType(value); return *this;}
248 private:
249
250 Aws::String m_arn;
251 bool m_arnHasBeenSet = false;
252
253 bool m_authorized{false};
254 bool m_authorizedHasBeenSet = false;
255
256 ContainerFormat m_containerFormat{ContainerFormat::NOT_SET};
257 bool m_containerFormatHasBeenSet = false;
258
259 Aws::String m_ingestEndpoint;
260 bool m_ingestEndpointHasBeenSet = false;
261
262 bool m_insecureIngest{false};
263 bool m_insecureIngestHasBeenSet = false;
264
266 bool m_latencyModeHasBeenSet = false;
267
268 MultitrackInputConfiguration m_multitrackInputConfiguration;
269 bool m_multitrackInputConfigurationHasBeenSet = false;
270
271 Aws::String m_name;
272 bool m_nameHasBeenSet = false;
273
274 Aws::String m_playbackRestrictionPolicyArn;
275 bool m_playbackRestrictionPolicyArnHasBeenSet = false;
276
277 Aws::String m_playbackUrl;
278 bool m_playbackUrlHasBeenSet = false;
279
281 bool m_presetHasBeenSet = false;
282
283 Aws::String m_recordingConfigurationArn;
284 bool m_recordingConfigurationArnHasBeenSet = false;
285
286 Srt m_srt;
287 bool m_srtHasBeenSet = false;
288
290 bool m_tagsHasBeenSet = false;
291
293 bool m_typeHasBeenSet = false;
294 };
295
296} // namespace Model
297} // namespace IVS
298} // namespace Aws
Channel & WithPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT &&value)
Definition Channel.h:157
bool ContainerFormatHasBeenSet() const
Definition Channel.h:80
Channel & WithAuthorized(bool value)
Definition Channel.h:67
Channel & WithContainerFormat(ContainerFormat value)
Definition Channel.h:82
bool PlaybackRestrictionPolicyArnHasBeenSet() const
Definition Channel.h:153
bool RecordingConfigurationArnHasBeenSet() const
Definition Channel.h:193
void SetLatencyMode(ChannelLatencyMode value)
Definition Channel.h:117
bool TypeHasBeenSet() const
Definition Channel.h:244
AWS_IVS_API Channel(Aws::Utils::Json::JsonView jsonValue)
bool GetInsecureIngest() const
Definition Channel.h:103
Channel & WithPlaybackUrl(PlaybackUrlT &&value)
Definition Channel.h:169
bool InsecureIngestHasBeenSet() const
Definition Channel.h:104
bool PlaybackUrlHasBeenSet() const
Definition Channel.h:165
const Aws::String & GetRecordingConfigurationArn() const
Definition Channel.h:192
const Aws::String & GetIngestEndpoint() const
Definition Channel.h:90
Channel & WithName(NameT &&value)
Definition Channel.h:143
void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT &&value)
Definition Channel.h:155
const Aws::String & GetPlaybackRestrictionPolicyArn() const
Definition Channel.h:152
Channel & WithPreset(TranscodePreset value)
Definition Channel.h:184
Channel & WithLatencyMode(ChannelLatencyMode value)
Definition Channel.h:118
void SetIngestEndpoint(IngestEndpointT &&value)
Definition Channel.h:93
bool PresetHasBeenSet() const
Definition Channel.h:182
const Aws::String & GetPlaybackUrl() const
Definition Channel.h:164
const Aws::String & GetName() const
Definition Channel.h:138
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
const Srt & GetSrt() const
Definition Channel.h:205
const MultitrackInputConfiguration & GetMultitrackInputConfiguration() const
Definition Channel.h:126
bool SrtHasBeenSet() const
Definition Channel.h:206
void SetName(NameT &&value)
Definition Channel.h:141
bool MultitrackInputConfigurationHasBeenSet() const
Definition Channel.h:127
void SetMultitrackInputConfiguration(MultitrackInputConfigurationT &&value)
Definition Channel.h:129
AWS_IVS_API Channel & operator=(Aws::Utils::Json::JsonView jsonValue)
bool TagsHasBeenSet() const
Definition Channel.h:224
bool IngestEndpointHasBeenSet() const
Definition Channel.h:91
void SetContainerFormat(ContainerFormat value)
Definition Channel.h:81
void SetPreset(TranscodePreset value)
Definition Channel.h:183
Channel & WithInsecureIngest(bool value)
Definition Channel.h:106
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Channel.h:223
bool GetAuthorized() const
Definition Channel.h:64
void SetAuthorized(bool value)
Definition Channel.h:66
Channel & WithArn(ArnT &&value)
Definition Channel.h:56
ChannelType GetType() const
Definition Channel.h:243
void SetPlaybackUrl(PlaybackUrlT &&value)
Definition Channel.h:167
void SetSrt(SrtT &&value)
Definition Channel.h:208
Channel & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Channel.h:230
void SetTags(TagsT &&value)
Definition Channel.h:226
Channel & WithSrt(SrtT &&value)
Definition Channel.h:210
ContainerFormat GetContainerFormat() const
Definition Channel.h:79
bool AuthorizedHasBeenSet() const
Definition Channel.h:65
AWS_IVS_API Channel()=default
Channel & WithType(ChannelType value)
Definition Channel.h:246
void SetInsecureIngest(bool value)
Definition Channel.h:105
const Aws::String & GetArn() const
Definition Channel.h:51
TranscodePreset GetPreset() const
Definition Channel.h:181
ChannelLatencyMode GetLatencyMode() const
Definition Channel.h:115
void SetRecordingConfigurationArn(RecordingConfigurationArnT &&value)
Definition Channel.h:195
Channel & WithRecordingConfigurationArn(RecordingConfigurationArnT &&value)
Definition Channel.h:197
void SetType(ChannelType value)
Definition Channel.h:245
bool NameHasBeenSet() const
Definition Channel.h:139
void SetArn(ArnT &&value)
Definition Channel.h:54
bool ArnHasBeenSet() const
Definition Channel.h:52
Channel & WithMultitrackInputConfiguration(MultitrackInputConfigurationT &&value)
Definition Channel.h:131
bool LatencyModeHasBeenSet() const
Definition Channel.h:116
Channel & WithIngestEndpoint(IngestEndpointT &&value)
Definition Channel.h:95
Channel & WithTags(TagsT &&value)
Definition Channel.h:228
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