AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
UpdateChannelRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/medialive/MediaLiveRequest.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11#include <aws/medialive/model/AnywhereSettings.h>
12#include <aws/medialive/model/CdiInputSpecification.h>
13#include <aws/medialive/model/ChannelEngineVersionRequest.h>
14#include <aws/medialive/model/EncoderSettings.h>
15#include <aws/medialive/model/InferenceSettings.h>
16#include <aws/medialive/model/InputAttachment.h>
17#include <aws/medialive/model/InputSpecification.h>
18#include <aws/medialive/model/LinkedChannelSettings.h>
19#include <aws/medialive/model/LogLevel.h>
20#include <aws/medialive/model/MaintenanceUpdateSettings.h>
21#include <aws/medialive/model/OutputDestination.h>
22#include <aws/medialive/model/SpecialRouterSettings.h>
23
24#include <utility>
25
26namespace Aws {
27namespace MediaLive {
28namespace Model {
29
36 public:
37 AWS_MEDIALIVE_API UpdateChannelRequest() = default;
38
39 // Service request name is the Operation name which will send this request out,
40 // each operation should has unique request name, so that we can get operation's name from this request.
41 // Note: this is not true for response, multiple operations may have the same response name,
42 // so we can not get operation's name from response.
43 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
44
45 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
46
48
51 inline const CdiInputSpecification& GetCdiInputSpecification() const { return m_cdiInputSpecification; }
52 inline bool CdiInputSpecificationHasBeenSet() const { return m_cdiInputSpecificationHasBeenSet; }
53 template <typename CdiInputSpecificationT = CdiInputSpecification>
54 void SetCdiInputSpecification(CdiInputSpecificationT&& value) {
55 m_cdiInputSpecificationHasBeenSet = true;
56 m_cdiInputSpecification = std::forward<CdiInputSpecificationT>(value);
57 }
58 template <typename CdiInputSpecificationT = CdiInputSpecification>
59 UpdateChannelRequest& WithCdiInputSpecification(CdiInputSpecificationT&& value) {
60 SetCdiInputSpecification(std::forward<CdiInputSpecificationT>(value));
61 return *this;
62 }
64
66
69 inline const Aws::String& GetChannelId() const { return m_channelId; }
70 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
71 template <typename ChannelIdT = Aws::String>
72 void SetChannelId(ChannelIdT&& value) {
73 m_channelIdHasBeenSet = true;
74 m_channelId = std::forward<ChannelIdT>(value);
75 }
76 template <typename ChannelIdT = Aws::String>
77 UpdateChannelRequest& WithChannelId(ChannelIdT&& value) {
78 SetChannelId(std::forward<ChannelIdT>(value));
79 return *this;
80 }
82
84
87 inline const Aws::Vector<OutputDestination>& GetDestinations() const { return m_destinations; }
88 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
89 template <typename DestinationsT = Aws::Vector<OutputDestination>>
90 void SetDestinations(DestinationsT&& value) {
91 m_destinationsHasBeenSet = true;
92 m_destinations = std::forward<DestinationsT>(value);
93 }
94 template <typename DestinationsT = Aws::Vector<OutputDestination>>
95 UpdateChannelRequest& WithDestinations(DestinationsT&& value) {
96 SetDestinations(std::forward<DestinationsT>(value));
97 return *this;
98 }
99 template <typename DestinationsT = OutputDestination>
100 UpdateChannelRequest& AddDestinations(DestinationsT&& value) {
101 m_destinationsHasBeenSet = true;
102 m_destinations.emplace_back(std::forward<DestinationsT>(value));
103 return *this;
104 }
106
108
111 inline const EncoderSettings& GetEncoderSettings() const { return m_encoderSettings; }
112 inline bool EncoderSettingsHasBeenSet() const { return m_encoderSettingsHasBeenSet; }
113 template <typename EncoderSettingsT = EncoderSettings>
114 void SetEncoderSettings(EncoderSettingsT&& value) {
115 m_encoderSettingsHasBeenSet = true;
116 m_encoderSettings = std::forward<EncoderSettingsT>(value);
117 }
118 template <typename EncoderSettingsT = EncoderSettings>
119 UpdateChannelRequest& WithEncoderSettings(EncoderSettingsT&& value) {
120 SetEncoderSettings(std::forward<EncoderSettingsT>(value));
121 return *this;
122 }
124
126
127 inline const Aws::Vector<InputAttachment>& GetInputAttachments() const { return m_inputAttachments; }
128 inline bool InputAttachmentsHasBeenSet() const { return m_inputAttachmentsHasBeenSet; }
129 template <typename InputAttachmentsT = Aws::Vector<InputAttachment>>
130 void SetInputAttachments(InputAttachmentsT&& value) {
131 m_inputAttachmentsHasBeenSet = true;
132 m_inputAttachments = std::forward<InputAttachmentsT>(value);
133 }
134 template <typename InputAttachmentsT = Aws::Vector<InputAttachment>>
135 UpdateChannelRequest& WithInputAttachments(InputAttachmentsT&& value) {
136 SetInputAttachments(std::forward<InputAttachmentsT>(value));
137 return *this;
138 }
139 template <typename InputAttachmentsT = InputAttachment>
140 UpdateChannelRequest& AddInputAttachments(InputAttachmentsT&& value) {
141 m_inputAttachmentsHasBeenSet = true;
142 m_inputAttachments.emplace_back(std::forward<InputAttachmentsT>(value));
143 return *this;
144 }
146
148
151 inline const InputSpecification& GetInputSpecification() const { return m_inputSpecification; }
152 inline bool InputSpecificationHasBeenSet() const { return m_inputSpecificationHasBeenSet; }
153 template <typename InputSpecificationT = InputSpecification>
154 void SetInputSpecification(InputSpecificationT&& value) {
155 m_inputSpecificationHasBeenSet = true;
156 m_inputSpecification = std::forward<InputSpecificationT>(value);
157 }
158 template <typename InputSpecificationT = InputSpecification>
159 UpdateChannelRequest& WithInputSpecification(InputSpecificationT&& value) {
160 SetInputSpecification(std::forward<InputSpecificationT>(value));
161 return *this;
162 }
164
166
169 inline LogLevel GetLogLevel() const { return m_logLevel; }
170 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
171 inline void SetLogLevel(LogLevel value) {
172 m_logLevelHasBeenSet = true;
173 m_logLevel = value;
174 }
176 SetLogLevel(value);
177 return *this;
178 }
180
182
185 inline const MaintenanceUpdateSettings& GetMaintenance() const { return m_maintenance; }
186 inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
187 template <typename MaintenanceT = MaintenanceUpdateSettings>
188 void SetMaintenance(MaintenanceT&& value) {
189 m_maintenanceHasBeenSet = true;
190 m_maintenance = std::forward<MaintenanceT>(value);
191 }
192 template <typename MaintenanceT = MaintenanceUpdateSettings>
193 UpdateChannelRequest& WithMaintenance(MaintenanceT&& value) {
194 SetMaintenance(std::forward<MaintenanceT>(value));
195 return *this;
196 }
198
200
203 inline const Aws::String& GetName() const { return m_name; }
204 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
205 template <typename NameT = Aws::String>
206 void SetName(NameT&& value) {
207 m_nameHasBeenSet = true;
208 m_name = std::forward<NameT>(value);
209 }
210 template <typename NameT = Aws::String>
212 SetName(std::forward<NameT>(value));
213 return *this;
214 }
216
218
223 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
224 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
225 template <typename RoleArnT = Aws::String>
226 void SetRoleArn(RoleArnT&& value) {
227 m_roleArnHasBeenSet = true;
228 m_roleArn = std::forward<RoleArnT>(value);
229 }
230 template <typename RoleArnT = Aws::String>
232 SetRoleArn(std::forward<RoleArnT>(value));
233 return *this;
234 }
236
238
241 inline const ChannelEngineVersionRequest& GetChannelEngineVersion() const { return m_channelEngineVersion; }
242 inline bool ChannelEngineVersionHasBeenSet() const { return m_channelEngineVersionHasBeenSet; }
243 template <typename ChannelEngineVersionT = ChannelEngineVersionRequest>
244 void SetChannelEngineVersion(ChannelEngineVersionT&& value) {
245 m_channelEngineVersionHasBeenSet = true;
246 m_channelEngineVersion = std::forward<ChannelEngineVersionT>(value);
247 }
248 template <typename ChannelEngineVersionT = ChannelEngineVersionRequest>
249 UpdateChannelRequest& WithChannelEngineVersion(ChannelEngineVersionT&& value) {
250 SetChannelEngineVersion(std::forward<ChannelEngineVersionT>(value));
251 return *this;
252 }
254
256
257 inline bool GetDryRun() const { return m_dryRun; }
258 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
259 inline void SetDryRun(bool value) {
260 m_dryRunHasBeenSet = true;
261 m_dryRun = value;
262 }
263 inline UpdateChannelRequest& WithDryRun(bool value) {
264 SetDryRun(value);
265 return *this;
266 }
268
270
273 inline const AnywhereSettings& GetAnywhereSettings() const { return m_anywhereSettings; }
274 inline bool AnywhereSettingsHasBeenSet() const { return m_anywhereSettingsHasBeenSet; }
275 template <typename AnywhereSettingsT = AnywhereSettings>
276 void SetAnywhereSettings(AnywhereSettingsT&& value) {
277 m_anywhereSettingsHasBeenSet = true;
278 m_anywhereSettings = std::forward<AnywhereSettingsT>(value);
279 }
280 template <typename AnywhereSettingsT = AnywhereSettings>
281 UpdateChannelRequest& WithAnywhereSettings(AnywhereSettingsT&& value) {
282 SetAnywhereSettings(std::forward<AnywhereSettingsT>(value));
283 return *this;
284 }
286
288
291 inline const LinkedChannelSettings& GetLinkedChannelSettings() const { return m_linkedChannelSettings; }
292 inline bool LinkedChannelSettingsHasBeenSet() const { return m_linkedChannelSettingsHasBeenSet; }
293 template <typename LinkedChannelSettingsT = LinkedChannelSettings>
294 void SetLinkedChannelSettings(LinkedChannelSettingsT&& value) {
295 m_linkedChannelSettingsHasBeenSet = true;
296 m_linkedChannelSettings = std::forward<LinkedChannelSettingsT>(value);
297 }
298 template <typename LinkedChannelSettingsT = LinkedChannelSettings>
299 UpdateChannelRequest& WithLinkedChannelSettings(LinkedChannelSettingsT&& value) {
300 SetLinkedChannelSettings(std::forward<LinkedChannelSettingsT>(value));
301 return *this;
302 }
304
306
309 inline const Aws::Vector<Aws::String>& GetChannelSecurityGroups() const { return m_channelSecurityGroups; }
310 inline bool ChannelSecurityGroupsHasBeenSet() const { return m_channelSecurityGroupsHasBeenSet; }
311 template <typename ChannelSecurityGroupsT = Aws::Vector<Aws::String>>
312 void SetChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
313 m_channelSecurityGroupsHasBeenSet = true;
314 m_channelSecurityGroups = std::forward<ChannelSecurityGroupsT>(value);
315 }
316 template <typename ChannelSecurityGroupsT = Aws::Vector<Aws::String>>
317 UpdateChannelRequest& WithChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
318 SetChannelSecurityGroups(std::forward<ChannelSecurityGroupsT>(value));
319 return *this;
320 }
321 template <typename ChannelSecurityGroupsT = Aws::String>
322 UpdateChannelRequest& AddChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
323 m_channelSecurityGroupsHasBeenSet = true;
324 m_channelSecurityGroups.emplace_back(std::forward<ChannelSecurityGroupsT>(value));
325 return *this;
326 }
328
330
333 inline const InferenceSettings& GetInferenceSettings() const { return m_inferenceSettings; }
334 inline bool InferenceSettingsHasBeenSet() const { return m_inferenceSettingsHasBeenSet; }
335 template <typename InferenceSettingsT = InferenceSettings>
336 void SetInferenceSettings(InferenceSettingsT&& value) {
337 m_inferenceSettingsHasBeenSet = true;
338 m_inferenceSettings = std::forward<InferenceSettingsT>(value);
339 }
340 template <typename InferenceSettingsT = InferenceSettings>
341 UpdateChannelRequest& WithInferenceSettings(InferenceSettingsT&& value) {
342 SetInferenceSettings(std::forward<InferenceSettingsT>(value));
343 return *this;
344 }
346
348
356 inline const SpecialRouterSettings& GetSpecialRouterSettings() const { return m_specialRouterSettings; }
357 inline bool SpecialRouterSettingsHasBeenSet() const { return m_specialRouterSettingsHasBeenSet; }
358 template <typename SpecialRouterSettingsT = SpecialRouterSettings>
359 void SetSpecialRouterSettings(SpecialRouterSettingsT&& value) {
360 m_specialRouterSettingsHasBeenSet = true;
361 m_specialRouterSettings = std::forward<SpecialRouterSettingsT>(value);
362 }
363 template <typename SpecialRouterSettingsT = SpecialRouterSettings>
364 UpdateChannelRequest& WithSpecialRouterSettings(SpecialRouterSettingsT&& value) {
365 SetSpecialRouterSettings(std::forward<SpecialRouterSettingsT>(value));
366 return *this;
367 }
369 private:
370 CdiInputSpecification m_cdiInputSpecification;
371
372 Aws::String m_channelId;
373
374 Aws::Vector<OutputDestination> m_destinations;
375
376 EncoderSettings m_encoderSettings;
377
378 Aws::Vector<InputAttachment> m_inputAttachments;
379
380 InputSpecification m_inputSpecification;
381
382 LogLevel m_logLevel{LogLevel::NOT_SET};
383
384 MaintenanceUpdateSettings m_maintenance;
385
386 Aws::String m_name;
387
388 Aws::String m_roleArn;
389
390 ChannelEngineVersionRequest m_channelEngineVersion;
391
392 bool m_dryRun{false};
393
394 AnywhereSettings m_anywhereSettings;
395
396 LinkedChannelSettings m_linkedChannelSettings;
397
398 Aws::Vector<Aws::String> m_channelSecurityGroups;
399
400 InferenceSettings m_inferenceSettings;
401
402 SpecialRouterSettings m_specialRouterSettings;
403 bool m_cdiInputSpecificationHasBeenSet = false;
404 bool m_channelIdHasBeenSet = false;
405 bool m_destinationsHasBeenSet = false;
406 bool m_encoderSettingsHasBeenSet = false;
407 bool m_inputAttachmentsHasBeenSet = false;
408 bool m_inputSpecificationHasBeenSet = false;
409 bool m_logLevelHasBeenSet = false;
410 bool m_maintenanceHasBeenSet = false;
411 bool m_nameHasBeenSet = false;
412 bool m_roleArnHasBeenSet = false;
413 bool m_channelEngineVersionHasBeenSet = false;
414 bool m_dryRunHasBeenSet = false;
415 bool m_anywhereSettingsHasBeenSet = false;
416 bool m_linkedChannelSettingsHasBeenSet = false;
417 bool m_channelSecurityGroupsHasBeenSet = false;
418 bool m_inferenceSettingsHasBeenSet = false;
419 bool m_specialRouterSettingsHasBeenSet = false;
420};
421
422} // namespace Model
423} // namespace MediaLive
424} // namespace Aws
UpdateChannelRequest & AddDestinations(DestinationsT &&value)
void SetChannelSecurityGroups(ChannelSecurityGroupsT &&value)
UpdateChannelRequest & WithRoleArn(RoleArnT &&value)
UpdateChannelRequest & WithInputAttachments(InputAttachmentsT &&value)
UpdateChannelRequest & WithChannelSecurityGroups(ChannelSecurityGroupsT &&value)
void SetInputSpecification(InputSpecificationT &&value)
const CdiInputSpecification & GetCdiInputSpecification() const
UpdateChannelRequest & WithEncoderSettings(EncoderSettingsT &&value)
UpdateChannelRequest & WithLogLevel(LogLevel value)
UpdateChannelRequest & WithChannelEngineVersion(ChannelEngineVersionT &&value)
const ChannelEngineVersionRequest & GetChannelEngineVersion() const
const Aws::Vector< Aws::String > & GetChannelSecurityGroups() const
UpdateChannelRequest & WithSpecialRouterSettings(SpecialRouterSettingsT &&value)
void SetInputAttachments(InputAttachmentsT &&value)
const InputSpecification & GetInputSpecification() const
UpdateChannelRequest & WithCdiInputSpecification(CdiInputSpecificationT &&value)
void SetInferenceSettings(InferenceSettingsT &&value)
UpdateChannelRequest & AddChannelSecurityGroups(ChannelSecurityGroupsT &&value)
UpdateChannelRequest & WithAnywhereSettings(AnywhereSettingsT &&value)
void SetLinkedChannelSettings(LinkedChannelSettingsT &&value)
UpdateChannelRequest & WithInputSpecification(InputSpecificationT &&value)
UpdateChannelRequest & WithInferenceSettings(InferenceSettingsT &&value)
UpdateChannelRequest & WithChannelId(ChannelIdT &&value)
AWS_MEDIALIVE_API UpdateChannelRequest()=default
void SetEncoderSettings(EncoderSettingsT &&value)
UpdateChannelRequest & WithMaintenance(MaintenanceT &&value)
AWS_MEDIALIVE_API Aws::String SerializePayload() const override
void SetChannelEngineVersion(ChannelEngineVersionT &&value)
const MaintenanceUpdateSettings & GetMaintenance() const
UpdateChannelRequest & WithName(NameT &&value)
UpdateChannelRequest & AddInputAttachments(InputAttachmentsT &&value)
const Aws::Vector< InputAttachment > & GetInputAttachments() const
const AnywhereSettings & GetAnywhereSettings() const
UpdateChannelRequest & WithDestinations(DestinationsT &&value)
void SetCdiInputSpecification(CdiInputSpecificationT &&value)
UpdateChannelRequest & WithDryRun(bool value)
const SpecialRouterSettings & GetSpecialRouterSettings() const
const InferenceSettings & GetInferenceSettings() const
virtual const char * GetServiceRequestName() const override
const LinkedChannelSettings & GetLinkedChannelSettings() const
void SetAnywhereSettings(AnywhereSettingsT &&value)
UpdateChannelRequest & WithLinkedChannelSettings(LinkedChannelSettingsT &&value)
void SetSpecialRouterSettings(SpecialRouterSettingsT &&value)
const Aws::Vector< OutputDestination > & GetDestinations() const
const EncoderSettings & GetEncoderSettings() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector