AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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
42 inline bool GetAuthorized() const { return m_authorized; }
43 inline bool AuthorizedHasBeenSet() const { return m_authorizedHasBeenSet; }
44 inline void SetAuthorized(bool value) {
45 m_authorizedHasBeenSet = true;
46 m_authorized = value;
47 }
49 SetAuthorized(value);
50 return *this;
51 }
53
55
63 inline ContainerFormat GetContainerFormat() const { return m_containerFormat; }
64 inline bool ContainerFormatHasBeenSet() const { return m_containerFormatHasBeenSet; }
66 m_containerFormatHasBeenSet = true;
67 m_containerFormat = value;
68 }
70 SetContainerFormat(value);
71 return *this;
72 }
74
76
80 inline bool GetInsecureIngest() const { return m_insecureIngest; }
81 inline bool InsecureIngestHasBeenSet() const { return m_insecureIngestHasBeenSet; }
82 inline void SetInsecureIngest(bool value) {
83 m_insecureIngestHasBeenSet = true;
84 m_insecureIngest = value;
85 }
87 SetInsecureIngest(value);
88 return *this;
89 }
91
93
98 inline ChannelLatencyMode GetLatencyMode() const { return m_latencyMode; }
99 inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; }
101 m_latencyModeHasBeenSet = true;
102 m_latencyMode = value;
103 }
105 SetLatencyMode(value);
106 return *this;
107 }
109
111
115 inline const MultitrackInputConfiguration& GetMultitrackInputConfiguration() const { return m_multitrackInputConfiguration; }
116 inline bool MultitrackInputConfigurationHasBeenSet() const { return m_multitrackInputConfigurationHasBeenSet; }
117 template <typename MultitrackInputConfigurationT = MultitrackInputConfiguration>
118 void SetMultitrackInputConfiguration(MultitrackInputConfigurationT&& value) {
119 m_multitrackInputConfigurationHasBeenSet = true;
120 m_multitrackInputConfiguration = std::forward<MultitrackInputConfigurationT>(value);
121 }
122 template <typename MultitrackInputConfigurationT = MultitrackInputConfiguration>
123 CreateChannelRequest& WithMultitrackInputConfiguration(MultitrackInputConfigurationT&& value) {
124 SetMultitrackInputConfiguration(std::forward<MultitrackInputConfigurationT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetName() const { return m_name; }
134 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
135 template <typename NameT = Aws::String>
136 void SetName(NameT&& value) {
137 m_nameHasBeenSet = true;
138 m_name = std::forward<NameT>(value);
139 }
140 template <typename NameT = Aws::String>
142 SetName(std::forward<NameT>(value));
143 return *this;
144 }
146
148
153 inline const Aws::String& GetPlaybackRestrictionPolicyArn() const { return m_playbackRestrictionPolicyArn; }
154 inline bool PlaybackRestrictionPolicyArnHasBeenSet() const { return m_playbackRestrictionPolicyArnHasBeenSet; }
155 template <typename PlaybackRestrictionPolicyArnT = Aws::String>
156 void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) {
157 m_playbackRestrictionPolicyArnHasBeenSet = true;
158 m_playbackRestrictionPolicyArn = std::forward<PlaybackRestrictionPolicyArnT>(value);
159 }
160 template <typename PlaybackRestrictionPolicyArnT = Aws::String>
161 CreateChannelRequest& WithPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) {
162 SetPlaybackRestrictionPolicyArn(std::forward<PlaybackRestrictionPolicyArnT>(value));
163 return *this;
164 }
166
168
176 inline TranscodePreset GetPreset() const { return m_preset; }
177 inline bool PresetHasBeenSet() const { return m_presetHasBeenSet; }
178 inline void SetPreset(TranscodePreset value) {
179 m_presetHasBeenSet = true;
180 m_preset = value;
181 }
183 SetPreset(value);
184 return *this;
185 }
187
189
193 inline const Aws::String& GetRecordingConfigurationArn() const { return m_recordingConfigurationArn; }
194 inline bool RecordingConfigurationArnHasBeenSet() const { return m_recordingConfigurationArnHasBeenSet; }
195 template <typename RecordingConfigurationArnT = Aws::String>
196 void SetRecordingConfigurationArn(RecordingConfigurationArnT&& value) {
197 m_recordingConfigurationArnHasBeenSet = true;
198 m_recordingConfigurationArn = std::forward<RecordingConfigurationArnT>(value);
199 }
200 template <typename RecordingConfigurationArnT = Aws::String>
201 CreateChannelRequest& WithRecordingConfigurationArn(RecordingConfigurationArnT&& value) {
202 SetRecordingConfigurationArn(std::forward<RecordingConfigurationArnT>(value));
203 return *this;
204 }
206
208
217 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
218 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
219 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
220 void SetTags(TagsT&& value) {
221 m_tagsHasBeenSet = true;
222 m_tags = std::forward<TagsT>(value);
223 }
224 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
226 SetTags(std::forward<TagsT>(value));
227 return *this;
228 }
229 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
230 CreateChannelRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
231 m_tagsHasBeenSet = true;
232 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
233 return *this;
234 }
236
238
245 inline ChannelType GetType() const { return m_type; }
246 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
247 inline void SetType(ChannelType value) {
248 m_typeHasBeenSet = true;
249 m_type = value;
250 }
252 SetType(value);
253 return *this;
254 }
256 private:
257 bool m_authorized{false};
258
259 ContainerFormat m_containerFormat{ContainerFormat::NOT_SET};
260
261 bool m_insecureIngest{false};
262
264
265 MultitrackInputConfiguration m_multitrackInputConfiguration;
266
267 Aws::String m_name;
268
269 Aws::String m_playbackRestrictionPolicyArn;
270
272
273 Aws::String m_recordingConfigurationArn;
274
276
278 bool m_authorizedHasBeenSet = false;
279 bool m_containerFormatHasBeenSet = false;
280 bool m_insecureIngestHasBeenSet = false;
281 bool m_latencyModeHasBeenSet = false;
282 bool m_multitrackInputConfigurationHasBeenSet = false;
283 bool m_nameHasBeenSet = false;
284 bool m_playbackRestrictionPolicyArnHasBeenSet = false;
285 bool m_presetHasBeenSet = false;
286 bool m_recordingConfigurationArnHasBeenSet = false;
287 bool m_tagsHasBeenSet = false;
288 bool m_typeHasBeenSet = false;
289};
290
291} // namespace Model
292} // namespace IVS
293} // namespace Aws
void SetContainerFormat(ContainerFormat value)
void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT &&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)
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