AWS SDK for C++

AWS SDK for C++ Version 1.11.751

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/InputAttachment.h>
16#include <aws/medialive/model/InputSpecification.h>
17#include <aws/medialive/model/LinkedChannelSettings.h>
18#include <aws/medialive/model/LogLevel.h>
19#include <aws/medialive/model/MaintenanceUpdateSettings.h>
20#include <aws/medialive/model/OutputDestination.h>
21
22#include <utility>
23
24namespace Aws {
25namespace MediaLive {
26namespace Model {
27
34 public:
35 AWS_MEDIALIVE_API UpdateChannelRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
42
43 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
44
46
49 inline const CdiInputSpecification& GetCdiInputSpecification() const { return m_cdiInputSpecification; }
50 inline bool CdiInputSpecificationHasBeenSet() const { return m_cdiInputSpecificationHasBeenSet; }
51 template <typename CdiInputSpecificationT = CdiInputSpecification>
52 void SetCdiInputSpecification(CdiInputSpecificationT&& value) {
53 m_cdiInputSpecificationHasBeenSet = true;
54 m_cdiInputSpecification = std::forward<CdiInputSpecificationT>(value);
55 }
56 template <typename CdiInputSpecificationT = CdiInputSpecification>
57 UpdateChannelRequest& WithCdiInputSpecification(CdiInputSpecificationT&& value) {
58 SetCdiInputSpecification(std::forward<CdiInputSpecificationT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetChannelId() const { return m_channelId; }
68 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
69 template <typename ChannelIdT = Aws::String>
70 void SetChannelId(ChannelIdT&& value) {
71 m_channelIdHasBeenSet = true;
72 m_channelId = std::forward<ChannelIdT>(value);
73 }
74 template <typename ChannelIdT = Aws::String>
75 UpdateChannelRequest& WithChannelId(ChannelIdT&& value) {
76 SetChannelId(std::forward<ChannelIdT>(value));
77 return *this;
78 }
80
82
85 inline const Aws::Vector<OutputDestination>& GetDestinations() const { return m_destinations; }
86 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
87 template <typename DestinationsT = Aws::Vector<OutputDestination>>
88 void SetDestinations(DestinationsT&& value) {
89 m_destinationsHasBeenSet = true;
90 m_destinations = std::forward<DestinationsT>(value);
91 }
92 template <typename DestinationsT = Aws::Vector<OutputDestination>>
93 UpdateChannelRequest& WithDestinations(DestinationsT&& value) {
94 SetDestinations(std::forward<DestinationsT>(value));
95 return *this;
96 }
97 template <typename DestinationsT = OutputDestination>
98 UpdateChannelRequest& AddDestinations(DestinationsT&& value) {
99 m_destinationsHasBeenSet = true;
100 m_destinations.emplace_back(std::forward<DestinationsT>(value));
101 return *this;
102 }
104
106
109 inline const EncoderSettings& GetEncoderSettings() const { return m_encoderSettings; }
110 inline bool EncoderSettingsHasBeenSet() const { return m_encoderSettingsHasBeenSet; }
111 template <typename EncoderSettingsT = EncoderSettings>
112 void SetEncoderSettings(EncoderSettingsT&& value) {
113 m_encoderSettingsHasBeenSet = true;
114 m_encoderSettings = std::forward<EncoderSettingsT>(value);
115 }
116 template <typename EncoderSettingsT = EncoderSettings>
117 UpdateChannelRequest& WithEncoderSettings(EncoderSettingsT&& value) {
118 SetEncoderSettings(std::forward<EncoderSettingsT>(value));
119 return *this;
120 }
122
124
125 inline const Aws::Vector<InputAttachment>& GetInputAttachments() const { return m_inputAttachments; }
126 inline bool InputAttachmentsHasBeenSet() const { return m_inputAttachmentsHasBeenSet; }
127 template <typename InputAttachmentsT = Aws::Vector<InputAttachment>>
128 void SetInputAttachments(InputAttachmentsT&& value) {
129 m_inputAttachmentsHasBeenSet = true;
130 m_inputAttachments = std::forward<InputAttachmentsT>(value);
131 }
132 template <typename InputAttachmentsT = Aws::Vector<InputAttachment>>
133 UpdateChannelRequest& WithInputAttachments(InputAttachmentsT&& value) {
134 SetInputAttachments(std::forward<InputAttachmentsT>(value));
135 return *this;
136 }
137 template <typename InputAttachmentsT = InputAttachment>
138 UpdateChannelRequest& AddInputAttachments(InputAttachmentsT&& value) {
139 m_inputAttachmentsHasBeenSet = true;
140 m_inputAttachments.emplace_back(std::forward<InputAttachmentsT>(value));
141 return *this;
142 }
144
146
149 inline const InputSpecification& GetInputSpecification() const { return m_inputSpecification; }
150 inline bool InputSpecificationHasBeenSet() const { return m_inputSpecificationHasBeenSet; }
151 template <typename InputSpecificationT = InputSpecification>
152 void SetInputSpecification(InputSpecificationT&& value) {
153 m_inputSpecificationHasBeenSet = true;
154 m_inputSpecification = std::forward<InputSpecificationT>(value);
155 }
156 template <typename InputSpecificationT = InputSpecification>
157 UpdateChannelRequest& WithInputSpecification(InputSpecificationT&& value) {
158 SetInputSpecification(std::forward<InputSpecificationT>(value));
159 return *this;
160 }
162
164
167 inline LogLevel GetLogLevel() const { return m_logLevel; }
168 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
169 inline void SetLogLevel(LogLevel value) {
170 m_logLevelHasBeenSet = true;
171 m_logLevel = value;
172 }
174 SetLogLevel(value);
175 return *this;
176 }
178
180
183 inline const MaintenanceUpdateSettings& GetMaintenance() const { return m_maintenance; }
184 inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
185 template <typename MaintenanceT = MaintenanceUpdateSettings>
186 void SetMaintenance(MaintenanceT&& value) {
187 m_maintenanceHasBeenSet = true;
188 m_maintenance = std::forward<MaintenanceT>(value);
189 }
190 template <typename MaintenanceT = MaintenanceUpdateSettings>
191 UpdateChannelRequest& WithMaintenance(MaintenanceT&& value) {
192 SetMaintenance(std::forward<MaintenanceT>(value));
193 return *this;
194 }
196
198
201 inline const Aws::String& GetName() const { return m_name; }
202 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
203 template <typename NameT = Aws::String>
204 void SetName(NameT&& value) {
205 m_nameHasBeenSet = true;
206 m_name = std::forward<NameT>(value);
207 }
208 template <typename NameT = Aws::String>
210 SetName(std::forward<NameT>(value));
211 return *this;
212 }
214
216
221 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
222 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
223 template <typename RoleArnT = Aws::String>
224 void SetRoleArn(RoleArnT&& value) {
225 m_roleArnHasBeenSet = true;
226 m_roleArn = std::forward<RoleArnT>(value);
227 }
228 template <typename RoleArnT = Aws::String>
230 SetRoleArn(std::forward<RoleArnT>(value));
231 return *this;
232 }
234
236
239 inline const ChannelEngineVersionRequest& GetChannelEngineVersion() const { return m_channelEngineVersion; }
240 inline bool ChannelEngineVersionHasBeenSet() const { return m_channelEngineVersionHasBeenSet; }
241 template <typename ChannelEngineVersionT = ChannelEngineVersionRequest>
242 void SetChannelEngineVersion(ChannelEngineVersionT&& value) {
243 m_channelEngineVersionHasBeenSet = true;
244 m_channelEngineVersion = std::forward<ChannelEngineVersionT>(value);
245 }
246 template <typename ChannelEngineVersionT = ChannelEngineVersionRequest>
247 UpdateChannelRequest& WithChannelEngineVersion(ChannelEngineVersionT&& value) {
248 SetChannelEngineVersion(std::forward<ChannelEngineVersionT>(value));
249 return *this;
250 }
252
254
255 inline bool GetDryRun() const { return m_dryRun; }
256 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
257 inline void SetDryRun(bool value) {
258 m_dryRunHasBeenSet = true;
259 m_dryRun = value;
260 }
261 inline UpdateChannelRequest& WithDryRun(bool value) {
262 SetDryRun(value);
263 return *this;
264 }
266
268
271 inline const AnywhereSettings& GetAnywhereSettings() const { return m_anywhereSettings; }
272 inline bool AnywhereSettingsHasBeenSet() const { return m_anywhereSettingsHasBeenSet; }
273 template <typename AnywhereSettingsT = AnywhereSettings>
274 void SetAnywhereSettings(AnywhereSettingsT&& value) {
275 m_anywhereSettingsHasBeenSet = true;
276 m_anywhereSettings = std::forward<AnywhereSettingsT>(value);
277 }
278 template <typename AnywhereSettingsT = AnywhereSettings>
279 UpdateChannelRequest& WithAnywhereSettings(AnywhereSettingsT&& value) {
280 SetAnywhereSettings(std::forward<AnywhereSettingsT>(value));
281 return *this;
282 }
284
286
289 inline const LinkedChannelSettings& GetLinkedChannelSettings() const { return m_linkedChannelSettings; }
290 inline bool LinkedChannelSettingsHasBeenSet() const { return m_linkedChannelSettingsHasBeenSet; }
291 template <typename LinkedChannelSettingsT = LinkedChannelSettings>
292 void SetLinkedChannelSettings(LinkedChannelSettingsT&& value) {
293 m_linkedChannelSettingsHasBeenSet = true;
294 m_linkedChannelSettings = std::forward<LinkedChannelSettingsT>(value);
295 }
296 template <typename LinkedChannelSettingsT = LinkedChannelSettings>
297 UpdateChannelRequest& WithLinkedChannelSettings(LinkedChannelSettingsT&& value) {
298 SetLinkedChannelSettings(std::forward<LinkedChannelSettingsT>(value));
299 return *this;
300 }
302
304
307 inline const Aws::Vector<Aws::String>& GetChannelSecurityGroups() const { return m_channelSecurityGroups; }
308 inline bool ChannelSecurityGroupsHasBeenSet() const { return m_channelSecurityGroupsHasBeenSet; }
309 template <typename ChannelSecurityGroupsT = Aws::Vector<Aws::String>>
310 void SetChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
311 m_channelSecurityGroupsHasBeenSet = true;
312 m_channelSecurityGroups = std::forward<ChannelSecurityGroupsT>(value);
313 }
314 template <typename ChannelSecurityGroupsT = Aws::Vector<Aws::String>>
315 UpdateChannelRequest& WithChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
316 SetChannelSecurityGroups(std::forward<ChannelSecurityGroupsT>(value));
317 return *this;
318 }
319 template <typename ChannelSecurityGroupsT = Aws::String>
320 UpdateChannelRequest& AddChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
321 m_channelSecurityGroupsHasBeenSet = true;
322 m_channelSecurityGroups.emplace_back(std::forward<ChannelSecurityGroupsT>(value));
323 return *this;
324 }
326 private:
327 CdiInputSpecification m_cdiInputSpecification;
328
329 Aws::String m_channelId;
330
331 Aws::Vector<OutputDestination> m_destinations;
332
333 EncoderSettings m_encoderSettings;
334
335 Aws::Vector<InputAttachment> m_inputAttachments;
336
337 InputSpecification m_inputSpecification;
338
339 LogLevel m_logLevel{LogLevel::NOT_SET};
340
341 MaintenanceUpdateSettings m_maintenance;
342
343 Aws::String m_name;
344
345 Aws::String m_roleArn;
346
347 ChannelEngineVersionRequest m_channelEngineVersion;
348
349 bool m_dryRun{false};
350
351 AnywhereSettings m_anywhereSettings;
352
353 LinkedChannelSettings m_linkedChannelSettings;
354
355 Aws::Vector<Aws::String> m_channelSecurityGroups;
356 bool m_cdiInputSpecificationHasBeenSet = false;
357 bool m_channelIdHasBeenSet = false;
358 bool m_destinationsHasBeenSet = false;
359 bool m_encoderSettingsHasBeenSet = false;
360 bool m_inputAttachmentsHasBeenSet = false;
361 bool m_inputSpecificationHasBeenSet = false;
362 bool m_logLevelHasBeenSet = false;
363 bool m_maintenanceHasBeenSet = false;
364 bool m_nameHasBeenSet = false;
365 bool m_roleArnHasBeenSet = false;
366 bool m_channelEngineVersionHasBeenSet = false;
367 bool m_dryRunHasBeenSet = false;
368 bool m_anywhereSettingsHasBeenSet = false;
369 bool m_linkedChannelSettingsHasBeenSet = false;
370 bool m_channelSecurityGroupsHasBeenSet = false;
371};
372
373} // namespace Model
374} // namespace MediaLive
375} // 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
void SetInputAttachments(InputAttachmentsT &&value)
const InputSpecification & GetInputSpecification() const
UpdateChannelRequest & WithCdiInputSpecification(CdiInputSpecificationT &&value)
UpdateChannelRequest & AddChannelSecurityGroups(ChannelSecurityGroupsT &&value)
UpdateChannelRequest & WithAnywhereSettings(AnywhereSettingsT &&value)
void SetLinkedChannelSettings(LinkedChannelSettingsT &&value)
UpdateChannelRequest & WithInputSpecification(InputSpecificationT &&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)
virtual const char * GetServiceRequestName() const override
const LinkedChannelSettings & GetLinkedChannelSettings() const
void SetAnywhereSettings(AnywhereSettingsT &&value)
UpdateChannelRequest & WithLinkedChannelSettings(LinkedChannelSettingsT &&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