AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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/ChannelLatencyMode.h>
10#include <aws/ivs/model/TranscodePreset.h>
11#include <aws/ivs/model/Srt.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/ivs/model/ChannelType.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace IVS
27{
28namespace Model
29{
30
36 class Channel
37 {
38 public:
39 AWS_IVS_API Channel();
40 AWS_IVS_API Channel(Aws::Utils::Json::JsonView jsonValue);
43
44
46
49 inline const Aws::String& GetArn() const{ return m_arn; }
50 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
51 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
52 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
53 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
54 inline Channel& WithArn(const Aws::String& value) { SetArn(value); return *this;}
55 inline Channel& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
56 inline Channel& WithArn(const char* value) { SetArn(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
75 inline const Aws::String& GetIngestEndpoint() const{ return m_ingestEndpoint; }
76 inline bool IngestEndpointHasBeenSet() const { return m_ingestEndpointHasBeenSet; }
77 inline void SetIngestEndpoint(const Aws::String& value) { m_ingestEndpointHasBeenSet = true; m_ingestEndpoint = value; }
78 inline void SetIngestEndpoint(Aws::String&& value) { m_ingestEndpointHasBeenSet = true; m_ingestEndpoint = std::move(value); }
79 inline void SetIngestEndpoint(const char* value) { m_ingestEndpointHasBeenSet = true; m_ingestEndpoint.assign(value); }
80 inline Channel& WithIngestEndpoint(const Aws::String& value) { SetIngestEndpoint(value); return *this;}
81 inline Channel& WithIngestEndpoint(Aws::String&& value) { SetIngestEndpoint(std::move(value)); return *this;}
82 inline Channel& WithIngestEndpoint(const char* value) { SetIngestEndpoint(value); return *this;}
84
86
90 inline bool GetInsecureIngest() const{ return m_insecureIngest; }
91 inline bool InsecureIngestHasBeenSet() const { return m_insecureIngestHasBeenSet; }
92 inline void SetInsecureIngest(bool value) { m_insecureIngestHasBeenSet = true; m_insecureIngest = value; }
93 inline Channel& WithInsecureIngest(bool value) { SetInsecureIngest(value); return *this;}
95
97
102 inline const ChannelLatencyMode& GetLatencyMode() const{ return m_latencyMode; }
103 inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; }
104 inline void SetLatencyMode(const ChannelLatencyMode& value) { m_latencyModeHasBeenSet = true; m_latencyMode = value; }
105 inline void SetLatencyMode(ChannelLatencyMode&& value) { m_latencyModeHasBeenSet = true; m_latencyMode = std::move(value); }
106 inline Channel& WithLatencyMode(const ChannelLatencyMode& value) { SetLatencyMode(value); return *this;}
107 inline Channel& WithLatencyMode(ChannelLatencyMode&& value) { SetLatencyMode(std::move(value)); return *this;}
109
111
114 inline const Aws::String& GetName() const{ return m_name; }
115 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
116 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
117 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
118 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
119 inline Channel& WithName(const Aws::String& value) { SetName(value); return *this;}
120 inline Channel& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
121 inline Channel& WithName(const char* value) { SetName(value); return *this;}
123
125
130 inline const Aws::String& GetPlaybackRestrictionPolicyArn() const{ return m_playbackRestrictionPolicyArn; }
131 inline bool PlaybackRestrictionPolicyArnHasBeenSet() const { return m_playbackRestrictionPolicyArnHasBeenSet; }
132 inline void SetPlaybackRestrictionPolicyArn(const Aws::String& value) { m_playbackRestrictionPolicyArnHasBeenSet = true; m_playbackRestrictionPolicyArn = value; }
133 inline void SetPlaybackRestrictionPolicyArn(Aws::String&& value) { m_playbackRestrictionPolicyArnHasBeenSet = true; m_playbackRestrictionPolicyArn = std::move(value); }
134 inline void SetPlaybackRestrictionPolicyArn(const char* value) { m_playbackRestrictionPolicyArnHasBeenSet = true; m_playbackRestrictionPolicyArn.assign(value); }
136 inline Channel& WithPlaybackRestrictionPolicyArn(Aws::String&& value) { SetPlaybackRestrictionPolicyArn(std::move(value)); return *this;}
137 inline Channel& WithPlaybackRestrictionPolicyArn(const char* value) { SetPlaybackRestrictionPolicyArn(value); return *this;}
139
141
144 inline const Aws::String& GetPlaybackUrl() const{ return m_playbackUrl; }
145 inline bool PlaybackUrlHasBeenSet() const { return m_playbackUrlHasBeenSet; }
146 inline void SetPlaybackUrl(const Aws::String& value) { m_playbackUrlHasBeenSet = true; m_playbackUrl = value; }
147 inline void SetPlaybackUrl(Aws::String&& value) { m_playbackUrlHasBeenSet = true; m_playbackUrl = std::move(value); }
148 inline void SetPlaybackUrl(const char* value) { m_playbackUrlHasBeenSet = true; m_playbackUrl.assign(value); }
149 inline Channel& WithPlaybackUrl(const Aws::String& value) { SetPlaybackUrl(value); return *this;}
150 inline Channel& WithPlaybackUrl(Aws::String&& value) { SetPlaybackUrl(std::move(value)); return *this;}
151 inline Channel& WithPlaybackUrl(const char* value) { SetPlaybackUrl(value); return *this;}
153
155
163 inline const TranscodePreset& GetPreset() const{ return m_preset; }
164 inline bool PresetHasBeenSet() const { return m_presetHasBeenSet; }
165 inline void SetPreset(const TranscodePreset& value) { m_presetHasBeenSet = true; m_preset = value; }
166 inline void SetPreset(TranscodePreset&& value) { m_presetHasBeenSet = true; m_preset = std::move(value); }
167 inline Channel& WithPreset(const TranscodePreset& value) { SetPreset(value); return *this;}
168 inline Channel& WithPreset(TranscodePreset&& value) { SetPreset(std::move(value)); return *this;}
170
172
176 inline const Aws::String& GetRecordingConfigurationArn() const{ return m_recordingConfigurationArn; }
177 inline bool RecordingConfigurationArnHasBeenSet() const { return m_recordingConfigurationArnHasBeenSet; }
178 inline void SetRecordingConfigurationArn(const Aws::String& value) { m_recordingConfigurationArnHasBeenSet = true; m_recordingConfigurationArn = value; }
179 inline void SetRecordingConfigurationArn(Aws::String&& value) { m_recordingConfigurationArnHasBeenSet = true; m_recordingConfigurationArn = std::move(value); }
180 inline void SetRecordingConfigurationArn(const char* value) { m_recordingConfigurationArnHasBeenSet = true; m_recordingConfigurationArn.assign(value); }
182 inline Channel& WithRecordingConfigurationArn(Aws::String&& value) { SetRecordingConfigurationArn(std::move(value)); return *this;}
183 inline Channel& WithRecordingConfigurationArn(const char* value) { SetRecordingConfigurationArn(value); return *this;}
185
187
191 inline const Srt& GetSrt() const{ return m_srt; }
192 inline bool SrtHasBeenSet() const { return m_srtHasBeenSet; }
193 inline void SetSrt(const Srt& value) { m_srtHasBeenSet = true; m_srt = value; }
194 inline void SetSrt(Srt&& value) { m_srtHasBeenSet = true; m_srt = std::move(value); }
195 inline Channel& WithSrt(const Srt& value) { SetSrt(value); return *this;}
196 inline Channel& WithSrt(Srt&& value) { SetSrt(std::move(value)); return *this;}
198
200
209 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
210 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
211 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
212 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
213 inline Channel& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
214 inline Channel& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
215 inline Channel& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
216 inline Channel& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
217 inline Channel& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
218 inline Channel& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
219 inline Channel& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
220 inline Channel& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
221 inline Channel& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
223
225
232 inline const ChannelType& GetType() const{ return m_type; }
233 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
234 inline void SetType(const ChannelType& value) { m_typeHasBeenSet = true; m_type = value; }
235 inline void SetType(ChannelType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
236 inline Channel& WithType(const ChannelType& value) { SetType(value); return *this;}
237 inline Channel& WithType(ChannelType&& value) { SetType(std::move(value)); return *this;}
239 private:
240
241 Aws::String m_arn;
242 bool m_arnHasBeenSet = false;
243
244 bool m_authorized;
245 bool m_authorizedHasBeenSet = false;
246
247 Aws::String m_ingestEndpoint;
248 bool m_ingestEndpointHasBeenSet = false;
249
250 bool m_insecureIngest;
251 bool m_insecureIngestHasBeenSet = false;
252
253 ChannelLatencyMode m_latencyMode;
254 bool m_latencyModeHasBeenSet = false;
255
256 Aws::String m_name;
257 bool m_nameHasBeenSet = false;
258
259 Aws::String m_playbackRestrictionPolicyArn;
260 bool m_playbackRestrictionPolicyArnHasBeenSet = false;
261
262 Aws::String m_playbackUrl;
263 bool m_playbackUrlHasBeenSet = false;
264
265 TranscodePreset m_preset;
266 bool m_presetHasBeenSet = false;
267
268 Aws::String m_recordingConfigurationArn;
269 bool m_recordingConfigurationArnHasBeenSet = false;
270
271 Srt m_srt;
272 bool m_srtHasBeenSet = false;
273
275 bool m_tagsHasBeenSet = false;
276
277 ChannelType m_type;
278 bool m_typeHasBeenSet = false;
279 };
280
281} // namespace Model
282} // namespace IVS
283} // namespace Aws
Channel & AddTags(const Aws::String &key, Aws::String &&value)
Definition Channel.h:217
void SetType(ChannelType &&value)
Definition Channel.h:235
Channel & AddTags(const Aws::String &key, const Aws::String &value)
Definition Channel.h:215
Channel & AddTags(Aws::String &&key, Aws::String &&value)
Definition Channel.h:218
Channel & AddTags(Aws::String &&key, const char *value)
Definition Channel.h:220
Channel & WithRecordingConfigurationArn(Aws::String &&value)
Definition Channel.h:182
Channel & WithAuthorized(bool value)
Definition Channel.h:67
bool PlaybackRestrictionPolicyArnHasBeenSet() const
Definition Channel.h:131
void SetPlaybackUrl(const char *value)
Definition Channel.h:148
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Channel.h:212
Channel & WithLatencyMode(ChannelLatencyMode &&value)
Definition Channel.h:107
Channel & AddTags(const char *key, Aws::String &&value)
Definition Channel.h:219
Channel & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Channel.h:214
bool RecordingConfigurationArnHasBeenSet() const
Definition Channel.h:177
Channel & WithPreset(TranscodePreset &&value)
Definition Channel.h:168
const ChannelType & GetType() const
Definition Channel.h:232
bool TypeHasBeenSet() const
Definition Channel.h:233
AWS_IVS_API Channel(Aws::Utils::Json::JsonView jsonValue)
Channel & WithIngestEndpoint(Aws::String &&value)
Definition Channel.h:81
const ChannelLatencyMode & GetLatencyMode() const
Definition Channel.h:102
Channel & WithArn(const char *value)
Definition Channel.h:56
bool GetInsecureIngest() const
Definition Channel.h:90
Channel & WithName(Aws::String &&value)
Definition Channel.h:120
bool InsecureIngestHasBeenSet() const
Definition Channel.h:91
bool PlaybackUrlHasBeenSet() const
Definition Channel.h:145
const Aws::String & GetRecordingConfigurationArn() const
Definition Channel.h:176
void SetIngestEndpoint(Aws::String &&value)
Definition Channel.h:78
Channel & WithPlaybackUrl(Aws::String &&value)
Definition Channel.h:150
Channel & WithType(ChannelType &&value)
Definition Channel.h:237
const Aws::String & GetIngestEndpoint() const
Definition Channel.h:75
const Aws::String & GetPlaybackRestrictionPolicyArn() const
Definition Channel.h:130
bool PresetHasBeenSet() const
Definition Channel.h:164
const Aws::String & GetPlaybackUrl() const
Definition Channel.h:144
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Channel.h:211
const Aws::String & GetName() const
Definition Channel.h:114
AWS_IVS_API Aws::Utils::Json::JsonValue Jsonize() const
const Srt & GetSrt() const
Definition Channel.h:191
void SetIngestEndpoint(const char *value)
Definition Channel.h:79
bool SrtHasBeenSet() const
Definition Channel.h:192
Channel & WithSrt(Srt &&value)
Definition Channel.h:196
AWS_IVS_API Channel & operator=(Aws::Utils::Json::JsonView jsonValue)
Channel & WithPlaybackRestrictionPolicyArn(const Aws::String &value)
Definition Channel.h:135
Channel & WithPlaybackUrl(const Aws::String &value)
Definition Channel.h:149
bool TagsHasBeenSet() const
Definition Channel.h:210
bool IngestEndpointHasBeenSet() const
Definition Channel.h:76
Channel & WithType(const ChannelType &value)
Definition Channel.h:236
Channel & WithPlaybackRestrictionPolicyArn(const char *value)
Definition Channel.h:137
void SetRecordingConfigurationArn(const Aws::String &value)
Definition Channel.h:178
Channel & WithInsecureIngest(bool value)
Definition Channel.h:93
void SetArn(const Aws::String &value)
Definition Channel.h:51
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Channel.h:209
void SetIngestEndpoint(const Aws::String &value)
Definition Channel.h:77
void SetName(Aws::String &&value)
Definition Channel.h:117
bool GetAuthorized() const
Definition Channel.h:64
void SetAuthorized(bool value)
Definition Channel.h:66
void SetType(const ChannelType &value)
Definition Channel.h:234
Channel & AddTags(Aws::String &&key, const Aws::String &value)
Definition Channel.h:216
void SetRecordingConfigurationArn(const char *value)
Definition Channel.h:180
void SetArn(const char *value)
Definition Channel.h:53
void SetPreset(TranscodePreset &&value)
Definition Channel.h:166
void SetArn(Aws::String &&value)
Definition Channel.h:52
void SetPlaybackRestrictionPolicyArn(const char *value)
Definition Channel.h:134
Channel & WithSrt(const Srt &value)
Definition Channel.h:195
void SetPlaybackRestrictionPolicyArn(const Aws::String &value)
Definition Channel.h:132
Channel & AddTags(const char *key, const char *value)
Definition Channel.h:221
Channel & WithRecordingConfigurationArn(const Aws::String &value)
Definition Channel.h:181
void SetLatencyMode(const ChannelLatencyMode &value)
Definition Channel.h:104
Channel & WithPlaybackUrl(const char *value)
Definition Channel.h:151
Channel & WithArn(const Aws::String &value)
Definition Channel.h:54
Channel & WithName(const char *value)
Definition Channel.h:121
const TranscodePreset & GetPreset() const
Definition Channel.h:163
void SetPlaybackUrl(const Aws::String &value)
Definition Channel.h:146
void SetLatencyMode(ChannelLatencyMode &&value)
Definition Channel.h:105
bool AuthorizedHasBeenSet() const
Definition Channel.h:65
void SetRecordingConfigurationArn(Aws::String &&value)
Definition Channel.h:179
void SetName(const char *value)
Definition Channel.h:118
void SetSrt(const Srt &value)
Definition Channel.h:193
void SetInsecureIngest(bool value)
Definition Channel.h:92
void SetPlaybackUrl(Aws::String &&value)
Definition Channel.h:147
const Aws::String & GetArn() const
Definition Channel.h:49
Channel & WithIngestEndpoint(const char *value)
Definition Channel.h:82
void SetPlaybackRestrictionPolicyArn(Aws::String &&value)
Definition Channel.h:133
Channel & WithIngestEndpoint(const Aws::String &value)
Definition Channel.h:80
Channel & WithName(const Aws::String &value)
Definition Channel.h:119
void SetPreset(const TranscodePreset &value)
Definition Channel.h:165
Channel & WithLatencyMode(const ChannelLatencyMode &value)
Definition Channel.h:106
void SetSrt(Srt &&value)
Definition Channel.h:194
Channel & WithPlaybackRestrictionPolicyArn(Aws::String &&value)
Definition Channel.h:136
bool NameHasBeenSet() const
Definition Channel.h:115
Channel & WithArn(Aws::String &&value)
Definition Channel.h:55
Channel & WithPreset(const TranscodePreset &value)
Definition Channel.h:167
Channel & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Channel.h:213
bool ArnHasBeenSet() const
Definition Channel.h:50
bool LatencyModeHasBeenSet() const
Definition Channel.h:103
Channel & WithRecordingConfigurationArn(const char *value)
Definition Channel.h:183
void SetName(const Aws::String &value)
Definition Channel.h:116
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