AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateChannelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ivs/IVSRequest.h>
9#include <aws/ivs/IVS_EXPORTS.h>
10#include <aws/ivs/model/ChannelLatencyMode.h>
11#include <aws/ivs/model/ChannelType.h>
12#include <aws/ivs/model/ContainerFormat.h>
13#include <aws/ivs/model/MultitrackInputConfiguration.h>
14#include <aws/ivs/model/TranscodePreset.h>
15
16#include <utility>
17
18namespace Aws {
19namespace IVS {
20namespace Model {
21
25 public:
26 AWS_IVS_API UpdateChannelRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
33
34 AWS_IVS_API Aws::String SerializePayload() const override;
35
37
40 inline const Aws::String& GetArn() const { return m_arn; }
41 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
42 template <typename ArnT = Aws::String>
43 void SetArn(ArnT&& value) {
44 m_arnHasBeenSet = true;
45 m_arn = std::forward<ArnT>(value);
46 }
47 template <typename ArnT = Aws::String>
49 SetArn(std::forward<ArnT>(value));
50 return *this;
51 }
53
55
58 inline bool GetAuthorized() const { return m_authorized; }
59 inline bool AuthorizedHasBeenSet() const { return m_authorizedHasBeenSet; }
60 inline void SetAuthorized(bool value) {
61 m_authorizedHasBeenSet = true;
62 m_authorized = value;
63 }
65 SetAuthorized(value);
66 return *this;
67 }
69
71
79 inline ContainerFormat GetContainerFormat() const { return m_containerFormat; }
80 inline bool ContainerFormatHasBeenSet() const { return m_containerFormatHasBeenSet; }
82 m_containerFormatHasBeenSet = true;
83 m_containerFormat = value;
84 }
86 SetContainerFormat(value);
87 return *this;
88 }
90
92
96 inline bool GetInsecureIngest() const { return m_insecureIngest; }
97 inline bool InsecureIngestHasBeenSet() const { return m_insecureIngestHasBeenSet; }
98 inline void SetInsecureIngest(bool value) {
99 m_insecureIngestHasBeenSet = true;
100 m_insecureIngest = value;
101 }
103 SetInsecureIngest(value);
104 return *this;
105 }
107
109
114 inline ChannelLatencyMode GetLatencyMode() const { return m_latencyMode; }
115 inline bool LatencyModeHasBeenSet() const { return m_latencyModeHasBeenSet; }
117 m_latencyModeHasBeenSet = true;
118 m_latencyMode = value;
119 }
121 SetLatencyMode(value);
122 return *this;
123 }
125
127
131 inline const MultitrackInputConfiguration& GetMultitrackInputConfiguration() const { return m_multitrackInputConfiguration; }
132 inline bool MultitrackInputConfigurationHasBeenSet() const { return m_multitrackInputConfigurationHasBeenSet; }
133 template <typename MultitrackInputConfigurationT = MultitrackInputConfiguration>
134 void SetMultitrackInputConfiguration(MultitrackInputConfigurationT&& value) {
135 m_multitrackInputConfigurationHasBeenSet = true;
136 m_multitrackInputConfiguration = std::forward<MultitrackInputConfigurationT>(value);
137 }
138 template <typename MultitrackInputConfigurationT = MultitrackInputConfiguration>
139 UpdateChannelRequest& WithMultitrackInputConfiguration(MultitrackInputConfigurationT&& value) {
140 SetMultitrackInputConfiguration(std::forward<MultitrackInputConfigurationT>(value));
141 return *this;
142 }
144
146
149 inline const Aws::String& GetName() const { return m_name; }
150 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
151 template <typename NameT = Aws::String>
152 void SetName(NameT&& value) {
153 m_nameHasBeenSet = true;
154 m_name = std::forward<NameT>(value);
155 }
156 template <typename NameT = Aws::String>
158 SetName(std::forward<NameT>(value));
159 return *this;
160 }
162
164
169 inline const Aws::String& GetPlaybackRestrictionPolicyArn() const { return m_playbackRestrictionPolicyArn; }
170 inline bool PlaybackRestrictionPolicyArnHasBeenSet() const { return m_playbackRestrictionPolicyArnHasBeenSet; }
171 template <typename PlaybackRestrictionPolicyArnT = Aws::String>
172 void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) {
173 m_playbackRestrictionPolicyArnHasBeenSet = true;
174 m_playbackRestrictionPolicyArn = std::forward<PlaybackRestrictionPolicyArnT>(value);
175 }
176 template <typename PlaybackRestrictionPolicyArnT = Aws::String>
177 UpdateChannelRequest& WithPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT&& value) {
178 SetPlaybackRestrictionPolicyArn(std::forward<PlaybackRestrictionPolicyArnT>(value));
179 return *this;
180 }
182
184
192 inline TranscodePreset GetPreset() const { return m_preset; }
193 inline bool PresetHasBeenSet() const { return m_presetHasBeenSet; }
194 inline void SetPreset(TranscodePreset value) {
195 m_presetHasBeenSet = true;
196 m_preset = value;
197 }
199 SetPreset(value);
200 return *this;
201 }
203
205
210 inline const Aws::String& GetRecordingConfigurationArn() const { return m_recordingConfigurationArn; }
211 inline bool RecordingConfigurationArnHasBeenSet() const { return m_recordingConfigurationArnHasBeenSet; }
212 template <typename RecordingConfigurationArnT = Aws::String>
213 void SetRecordingConfigurationArn(RecordingConfigurationArnT&& value) {
214 m_recordingConfigurationArnHasBeenSet = true;
215 m_recordingConfigurationArn = std::forward<RecordingConfigurationArnT>(value);
216 }
217 template <typename RecordingConfigurationArnT = Aws::String>
218 UpdateChannelRequest& WithRecordingConfigurationArn(RecordingConfigurationArnT&& value) {
219 SetRecordingConfigurationArn(std::forward<RecordingConfigurationArnT>(value));
220 return *this;
221 }
223
225
232 inline ChannelType GetType() const { return m_type; }
233 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
234 inline void SetType(ChannelType value) {
235 m_typeHasBeenSet = true;
236 m_type = value;
237 }
239 SetType(value);
240 return *this;
241 }
243 private:
244 Aws::String m_arn;
245
246 bool m_authorized{false};
247
248 ContainerFormat m_containerFormat{ContainerFormat::NOT_SET};
249
250 bool m_insecureIngest{false};
251
253
254 MultitrackInputConfiguration m_multitrackInputConfiguration;
255
256 Aws::String m_name;
257
258 Aws::String m_playbackRestrictionPolicyArn;
259
261
262 Aws::String m_recordingConfigurationArn;
263
265 bool m_arnHasBeenSet = false;
266 bool m_authorizedHasBeenSet = false;
267 bool m_containerFormatHasBeenSet = false;
268 bool m_insecureIngestHasBeenSet = false;
269 bool m_latencyModeHasBeenSet = false;
270 bool m_multitrackInputConfigurationHasBeenSet = false;
271 bool m_nameHasBeenSet = false;
272 bool m_playbackRestrictionPolicyArnHasBeenSet = false;
273 bool m_presetHasBeenSet = false;
274 bool m_recordingConfigurationArnHasBeenSet = false;
275 bool m_typeHasBeenSet = false;
276};
277
278} // namespace Model
279} // namespace IVS
280} // namespace Aws
void SetLatencyMode(ChannelLatencyMode value)
void SetMultitrackInputConfiguration(MultitrackInputConfigurationT &&value)
UpdateChannelRequest & WithPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT &&value)
UpdateChannelRequest & WithContainerFormat(ContainerFormat value)
UpdateChannelRequest & WithType(ChannelType value)
void SetRecordingConfigurationArn(RecordingConfigurationArnT &&value)
UpdateChannelRequest & WithAuthorized(bool value)
UpdateChannelRequest & WithLatencyMode(ChannelLatencyMode value)
UpdateChannelRequest & WithMultitrackInputConfiguration(MultitrackInputConfigurationT &&value)
const Aws::String & GetPlaybackRestrictionPolicyArn() const
UpdateChannelRequest & WithArn(ArnT &&value)
virtual const char * GetServiceRequestName() const override
UpdateChannelRequest & WithRecordingConfigurationArn(RecordingConfigurationArnT &&value)
UpdateChannelRequest & WithPreset(TranscodePreset value)
AWS_IVS_API UpdateChannelRequest()=default
void SetPlaybackRestrictionPolicyArn(PlaybackRestrictionPolicyArnT &&value)
const MultitrackInputConfiguration & GetMultitrackInputConfiguration() const
UpdateChannelRequest & WithName(NameT &&value)
void SetContainerFormat(ContainerFormat value)
AWS_IVS_API Aws::String SerializePayload() const override
UpdateChannelRequest & WithInsecureIngest(bool value)
const Aws::String & GetRecordingConfigurationArn() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String