AWS SDK for C++

AWS SDK for C++ Version 1.11.796

Loading...
Searching...
No Matches
CreateChannelRequest.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/IVSRequest.h>
10#include <aws/ivs/IVS_EXPORTS.h>
11#include <aws/ivs/model/ChannelLatencyMode.h>
12#include <aws/ivs/model/ChannelType.h>
13#include <aws/ivs/model/ContainerFormat.h>
14#include <aws/ivs/model/MultitrackInputConfiguration.h>
15#include <aws/ivs/model/TranscodePreset.h>
16
17#include <utility>
18
19namespace Aws {
20namespace IVS {
21namespace Model {
22
26 public:
27 AWS_IVS_API CreateChannelRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateChannel"; }
34
35 AWS_IVS_API Aws::String SerializePayload() const override;
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>
50 SetName(std::forward<NameT>(value));
51 return *this;
52 }
54
56
61 inline ChannelLatencyMode GetLatencyMode() const { return m_latencyMode; }
62 inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; }
64 m_latencyModeHasBeenSet = true;
65 m_latencyMode = value;
66 }
68 SetLatencyMode(value);
69 return *this;
70 }
72
74
81 inline ChannelType GetType() const { return m_type; }
82 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
83 inline void SetType(ChannelType value) {
84 m_typeHasBeenSet = true;
85 m_type = value;
86 }
88 SetType(value);
89 return *this;
90 }
92
94
98 inline bool GetAuthorized() const { return m_authorized; }
99 inline bool AuthorizedHasBeenSet() const { return m_authorizedHasBeenSet; }
100 inline void SetAuthorized(bool value) {
101 m_authorizedHasBeenSet = true;
102 m_authorized = value;
103 }
105 SetAuthorized(value);
106 return *this;
107 }
109
111
115 inline const Aws::String& GetRecordingConfigurationArn() const { return m_recordingConfigurationArn; }
116 inline bool RecordingConfigurationArnHasBeenSet() const { return m_recordingConfigurationArnHasBeenSet; }
117 template <typename RecordingConfigurationArnT = Aws::String>
118 void SetRecordingConfigurationArn(RecordingConfigurationArnT&& value) {
119 m_recordingConfigurationArnHasBeenSet = true;
120 m_recordingConfigurationArn = std::forward<RecordingConfigurationArnT>(value);
121 }
122 template <typename RecordingConfigurationArnT = Aws::String>
123 CreateChannelRequest& WithRecordingConfigurationArn(RecordingConfigurationArnT&& value) {
124 SetRecordingConfigurationArn(std::forward<RecordingConfigurationArnT>(value));
125 return *this;
126 }
128
130
139 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
140 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
141 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
142 void SetTags(TagsT&& value) {
143 m_tagsHasBeenSet = true;
144 m_tags = std::forward<TagsT>(value);
145 }
146 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
148 SetTags(std::forward<TagsT>(value));
149 return *this;
150 }
151 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
152 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
153 m_tagsHasBeenSet = true;
154 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
155 return *this;
156 }
158
160
164 inline bool GetInsecureIngest() const { return m_insecureIngest; }
165 inline bool InsecureIngestHasBeenSet() const { return m_insecureIngestHasBeenSet; }
166 inline void SetInsecureIngest(bool value) {
167 m_insecureIngestHasBeenSet = true;
168 m_insecureIngest = value;
169 }
171 SetInsecureIngest(value);
172 return *this;
173 }
175
177
185 inline TranscodePreset GetPreset() const { return m_preset; }
186 inline bool PresetHasBeenSet() const { return m_presetHasBeenSet; }
187 inline void SetPreset(TranscodePreset value) {
188 m_presetHasBeenSet = true;
189 m_preset = value;
190 }
192 SetPreset(value);
193 return *this;
194 }
196
198
203 inline const Aws::String& GetPlaybackRestrictionPolicyArn() const { return m_playbackRestrictionPolicyArn; }
204 inline bool PlaybackRestrictionPolicyArnHasBeenSet() const { return m_playbackRestrictionPolicyArnHasBeenSet; }
205 template <typename PlaybackRestrictionPolicyArnT = Aws::String>
206 void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) {
207 m_playbackRestrictionPolicyArnHasBeenSet = true;
208 m_playbackRestrictionPolicyArn = std::forward<PlaybackRestrictionPolicyArnT>(value);
209 }
210 template <typename PlaybackRestrictionPolicyArnT = Aws::String>
211 CreateChannelRequest& WithPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) {
212 SetPlaybackRestrictionPolicyArn(std::forward<PlaybackRestrictionPolicyArnT>(value));
213 return *this;
214 }
216
218
222 inline const MultitrackInputConfiguration& GetMultitrackInputConfiguration() const { return m_multitrackInputConfiguration; }
223 inline bool MultitrackInputConfigurationHasBeenSet() const { return m_multitrackInputConfigurationHasBeenSet; }
224 template <typename MultitrackInputConfigurationT = MultitrackInputConfiguration>
225 void SetMultitrackInputConfiguration(MultitrackInputConfigurationT&& value) {
226 m_multitrackInputConfigurationHasBeenSet = true;
227 m_multitrackInputConfiguration = std::forward<MultitrackInputConfigurationT>(value);
228 }
229 template <typename MultitrackInputConfigurationT = MultitrackInputConfiguration>
230 CreateChannelRequest& WithMultitrackInputConfiguration(MultitrackInputConfigurationT&& value) {
231 SetMultitrackInputConfiguration(std::forward<MultitrackInputConfigurationT>(value));
232 return *this;
233 }
235
237
245 inline ContainerFormat GetContainerFormat() const { return m_containerFormat; }
246 inline bool ContainerFormatHasBeenSet() const { return m_containerFormatHasBeenSet; }
248 m_containerFormatHasBeenSet = true;
249 m_containerFormat = value;
250 }
252 SetContainerFormat(value);
253 return *this;
254 }
256
258
261 inline const Aws::String& GetAdConfigurationArn() const { return m_adConfigurationArn; }
262 inline bool AdConfigurationArnHasBeenSet() const { return m_adConfigurationArnHasBeenSet; }
263 template <typename AdConfigurationArnT = Aws::String>
264 void SetAdConfigurationArn(AdConfigurationArnT&& value) {
265 m_adConfigurationArnHasBeenSet = true;
266 m_adConfigurationArn = std::forward<AdConfigurationArnT>(value);
267 }
268 template <typename AdConfigurationArnT = Aws::String>
269 CreateChannelRequest& WithAdConfigurationArn(AdConfigurationArnT&& value) {
270 SetAdConfigurationArn(std::forward<AdConfigurationArnT>(value));
271 return *this;
272 }
274 private:
275 Aws::String m_name;
276
278
280
281 bool m_authorized{false};
282
283 Aws::String m_recordingConfigurationArn;
284
286
287 bool m_insecureIngest{false};
288
290
291 Aws::String m_playbackRestrictionPolicyArn;
292
293 MultitrackInputConfiguration m_multitrackInputConfiguration;
294
295 ContainerFormat m_containerFormat{ContainerFormat::NOT_SET};
296
297 Aws::String m_adConfigurationArn;
298 bool m_nameHasBeenSet = false;
299 bool m_latencyModeHasBeenSet = false;
300 bool m_typeHasBeenSet = false;
301 bool m_authorizedHasBeenSet = false;
302 bool m_recordingConfigurationArnHasBeenSet = false;
303 bool m_tagsHasBeenSet = false;
304 bool m_insecureIngestHasBeenSet = false;
305 bool m_presetHasBeenSet = false;
306 bool m_playbackRestrictionPolicyArnHasBeenSet = false;
307 bool m_multitrackInputConfigurationHasBeenSet = false;
308 bool m_containerFormatHasBeenSet = false;
309 bool m_adConfigurationArnHasBeenSet = false;
310};
311
312} // namespace Model
313} // namespace IVS
314} // namespace Aws
void SetContainerFormat(ContainerFormat value)
void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT &&value)
const Aws::String & GetAdConfigurationArn() const
CreateChannelRequest & WithAdConfigurationArn(AdConfigurationArnT &&value)
CreateChannelRequest & WithRecordingConfigurationArn(RecordingConfigurationArnT &&value)
CreateChannelRequest & WithInsecureIngest(bool value)
void SetMultitrackInputConfiguration(MultitrackInputConfigurationT &&value)
CreateChannelRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateChannelRequest & WithLatencyMode(ChannelLatencyMode value)
const Aws::String & GetRecordingConfigurationArn() const
AWS_IVS_API CreateChannelRequest()=default
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateChannelRequest & WithType(ChannelType value)
CreateChannelRequest & WithPreset(TranscodePreset value)
void SetAdConfigurationArn(AdConfigurationArnT &&value)
CreateChannelRequest & WithName(NameT &&value)
const Aws::String & GetPlaybackRestrictionPolicyArn() const
virtual const char * GetServiceRequestName() const override
CreateChannelRequest & WithContainerFormat(ContainerFormat value)
void SetRecordingConfigurationArn(RecordingConfigurationArnT &&value)
ChannelLatencyMode GetLatencyMode() const
void SetLatencyMode(ChannelLatencyMode value)
CreateChannelRequest & WithAuthorized(bool value)
AWS_IVS_API Aws::String SerializePayload() const override
CreateChannelRequest & WithMultitrackInputConfiguration(MultitrackInputConfigurationT &&value)
CreateChannelRequest & WithTags(TagsT &&value)
const MultitrackInputConfiguration & GetMultitrackInputConfiguration() const
CreateChannelRequest & WithPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT &&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