AWS SDK for C++

AWS SDK for C++ Version 1.11.784

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
23#include <utility>
24
25namespace Aws {
26namespace MediaLive {
27namespace Model {
28
35 public:
36 AWS_MEDIALIVE_API UpdateChannelRequest() = default;
37
38 // Service request name is the Operation name which will send this request out,
39 // each operation should has unique request name, so that we can get operation's name from this request.
40 // Note: this is not true for response, multiple operations may have the same response name,
41 // so we can not get operation's name from response.
42 inline virtual const char* GetServiceRequestName() const override { return "UpdateChannel"; }
43
44 AWS_MEDIALIVE_API Aws::String SerializePayload() const override;
45
47
50 inline const CdiInputSpecification& GetCdiInputSpecification() const { return m_cdiInputSpecification; }
51 inline bool CdiInputSpecificationHasBeenSet() const { return m_cdiInputSpecificationHasBeenSet; }
52 template <typename CdiInputSpecificationT = CdiInputSpecification>
53 void SetCdiInputSpecification(CdiInputSpecificationT&& value) {
54 m_cdiInputSpecificationHasBeenSet = true;
55 m_cdiInputSpecification = std::forward<CdiInputSpecificationT>(value);
56 }
57 template <typename CdiInputSpecificationT = CdiInputSpecification>
58 UpdateChannelRequest& WithCdiInputSpecification(CdiInputSpecificationT&& value) {
59 SetCdiInputSpecification(std::forward<CdiInputSpecificationT>(value));
60 return *this;
61 }
63
65
68 inline const Aws::String& GetChannelId() const { return m_channelId; }
69 inline bool ChannelIdHasBeenSet() const { return m_channelIdHasBeenSet; }
70 template <typename ChannelIdT = Aws::String>
71 void SetChannelId(ChannelIdT&& value) {
72 m_channelIdHasBeenSet = true;
73 m_channelId = std::forward<ChannelIdT>(value);
74 }
75 template <typename ChannelIdT = Aws::String>
76 UpdateChannelRequest& WithChannelId(ChannelIdT&& value) {
77 SetChannelId(std::forward<ChannelIdT>(value));
78 return *this;
79 }
81
83
86 inline const Aws::Vector<OutputDestination>& GetDestinations() const { return m_destinations; }
87 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
88 template <typename DestinationsT = Aws::Vector<OutputDestination>>
89 void SetDestinations(DestinationsT&& value) {
90 m_destinationsHasBeenSet = true;
91 m_destinations = std::forward<DestinationsT>(value);
92 }
93 template <typename DestinationsT = Aws::Vector<OutputDestination>>
94 UpdateChannelRequest& WithDestinations(DestinationsT&& value) {
95 SetDestinations(std::forward<DestinationsT>(value));
96 return *this;
97 }
98 template <typename DestinationsT = OutputDestination>
99 UpdateChannelRequest& AddDestinations(DestinationsT&& value) {
100 m_destinationsHasBeenSet = true;
101 m_destinations.emplace_back(std::forward<DestinationsT>(value));
102 return *this;
103 }
105
107
110 inline const EncoderSettings& GetEncoderSettings() const { return m_encoderSettings; }
111 inline bool EncoderSettingsHasBeenSet() const { return m_encoderSettingsHasBeenSet; }
112 template <typename EncoderSettingsT = EncoderSettings>
113 void SetEncoderSettings(EncoderSettingsT&& value) {
114 m_encoderSettingsHasBeenSet = true;
115 m_encoderSettings = std::forward<EncoderSettingsT>(value);
116 }
117 template <typename EncoderSettingsT = EncoderSettings>
118 UpdateChannelRequest& WithEncoderSettings(EncoderSettingsT&& value) {
119 SetEncoderSettings(std::forward<EncoderSettingsT>(value));
120 return *this;
121 }
123
125
126 inline const Aws::Vector<InputAttachment>& GetInputAttachments() const { return m_inputAttachments; }
127 inline bool InputAttachmentsHasBeenSet() const { return m_inputAttachmentsHasBeenSet; }
128 template <typename InputAttachmentsT = Aws::Vector<InputAttachment>>
129 void SetInputAttachments(InputAttachmentsT&& value) {
130 m_inputAttachmentsHasBeenSet = true;
131 m_inputAttachments = std::forward<InputAttachmentsT>(value);
132 }
133 template <typename InputAttachmentsT = Aws::Vector<InputAttachment>>
134 UpdateChannelRequest& WithInputAttachments(InputAttachmentsT&& value) {
135 SetInputAttachments(std::forward<InputAttachmentsT>(value));
136 return *this;
137 }
138 template <typename InputAttachmentsT = InputAttachment>
139 UpdateChannelRequest& AddInputAttachments(InputAttachmentsT&& value) {
140 m_inputAttachmentsHasBeenSet = true;
141 m_inputAttachments.emplace_back(std::forward<InputAttachmentsT>(value));
142 return *this;
143 }
145
147
150 inline const InputSpecification& GetInputSpecification() const { return m_inputSpecification; }
151 inline bool InputSpecificationHasBeenSet() const { return m_inputSpecificationHasBeenSet; }
152 template <typename InputSpecificationT = InputSpecification>
153 void SetInputSpecification(InputSpecificationT&& value) {
154 m_inputSpecificationHasBeenSet = true;
155 m_inputSpecification = std::forward<InputSpecificationT>(value);
156 }
157 template <typename InputSpecificationT = InputSpecification>
158 UpdateChannelRequest& WithInputSpecification(InputSpecificationT&& value) {
159 SetInputSpecification(std::forward<InputSpecificationT>(value));
160 return *this;
161 }
163
165
168 inline LogLevel GetLogLevel() const { return m_logLevel; }
169 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
170 inline void SetLogLevel(LogLevel value) {
171 m_logLevelHasBeenSet = true;
172 m_logLevel = value;
173 }
175 SetLogLevel(value);
176 return *this;
177 }
179
181
184 inline const MaintenanceUpdateSettings& GetMaintenance() const { return m_maintenance; }
185 inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
186 template <typename MaintenanceT = MaintenanceUpdateSettings>
187 void SetMaintenance(MaintenanceT&& value) {
188 m_maintenanceHasBeenSet = true;
189 m_maintenance = std::forward<MaintenanceT>(value);
190 }
191 template <typename MaintenanceT = MaintenanceUpdateSettings>
192 UpdateChannelRequest& WithMaintenance(MaintenanceT&& value) {
193 SetMaintenance(std::forward<MaintenanceT>(value));
194 return *this;
195 }
197
199
202 inline const Aws::String& GetName() const { return m_name; }
203 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
204 template <typename NameT = Aws::String>
205 void SetName(NameT&& value) {
206 m_nameHasBeenSet = true;
207 m_name = std::forward<NameT>(value);
208 }
209 template <typename NameT = Aws::String>
211 SetName(std::forward<NameT>(value));
212 return *this;
213 }
215
217
222 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
223 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
224 template <typename RoleArnT = Aws::String>
225 void SetRoleArn(RoleArnT&& value) {
226 m_roleArnHasBeenSet = true;
227 m_roleArn = std::forward<RoleArnT>(value);
228 }
229 template <typename RoleArnT = Aws::String>
231 SetRoleArn(std::forward<RoleArnT>(value));
232 return *this;
233 }
235
237
240 inline const ChannelEngineVersionRequest& GetChannelEngineVersion() const { return m_channelEngineVersion; }
241 inline bool ChannelEngineVersionHasBeenSet() const { return m_channelEngineVersionHasBeenSet; }
242 template <typename ChannelEngineVersionT = ChannelEngineVersionRequest>
243 void SetChannelEngineVersion(ChannelEngineVersionT&& value) {
244 m_channelEngineVersionHasBeenSet = true;
245 m_channelEngineVersion = std::forward<ChannelEngineVersionT>(value);
246 }
247 template <typename ChannelEngineVersionT = ChannelEngineVersionRequest>
248 UpdateChannelRequest& WithChannelEngineVersion(ChannelEngineVersionT&& value) {
249 SetChannelEngineVersion(std::forward<ChannelEngineVersionT>(value));
250 return *this;
251 }
253
255
256 inline bool GetDryRun() const { return m_dryRun; }
257 inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; }
258 inline void SetDryRun(bool value) {
259 m_dryRunHasBeenSet = true;
260 m_dryRun = value;
261 }
262 inline UpdateChannelRequest& WithDryRun(bool value) {
263 SetDryRun(value);
264 return *this;
265 }
267
269
272 inline const AnywhereSettings& GetAnywhereSettings() const { return m_anywhereSettings; }
273 inline bool AnywhereSettingsHasBeenSet() const { return m_anywhereSettingsHasBeenSet; }
274 template <typename AnywhereSettingsT = AnywhereSettings>
275 void SetAnywhereSettings(AnywhereSettingsT&& value) {
276 m_anywhereSettingsHasBeenSet = true;
277 m_anywhereSettings = std::forward<AnywhereSettingsT>(value);
278 }
279 template <typename AnywhereSettingsT = AnywhereSettings>
280 UpdateChannelRequest& WithAnywhereSettings(AnywhereSettingsT&& value) {
281 SetAnywhereSettings(std::forward<AnywhereSettingsT>(value));
282 return *this;
283 }
285
287
290 inline const LinkedChannelSettings& GetLinkedChannelSettings() const { return m_linkedChannelSettings; }
291 inline bool LinkedChannelSettingsHasBeenSet() const { return m_linkedChannelSettingsHasBeenSet; }
292 template <typename LinkedChannelSettingsT = LinkedChannelSettings>
293 void SetLinkedChannelSettings(LinkedChannelSettingsT&& value) {
294 m_linkedChannelSettingsHasBeenSet = true;
295 m_linkedChannelSettings = std::forward<LinkedChannelSettingsT>(value);
296 }
297 template <typename LinkedChannelSettingsT = LinkedChannelSettings>
298 UpdateChannelRequest& WithLinkedChannelSettings(LinkedChannelSettingsT&& value) {
299 SetLinkedChannelSettings(std::forward<LinkedChannelSettingsT>(value));
300 return *this;
301 }
303
305
308 inline const Aws::Vector<Aws::String>& GetChannelSecurityGroups() const { return m_channelSecurityGroups; }
309 inline bool ChannelSecurityGroupsHasBeenSet() const { return m_channelSecurityGroupsHasBeenSet; }
310 template <typename ChannelSecurityGroupsT = Aws::Vector<Aws::String>>
311 void SetChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
312 m_channelSecurityGroupsHasBeenSet = true;
313 m_channelSecurityGroups = std::forward<ChannelSecurityGroupsT>(value);
314 }
315 template <typename ChannelSecurityGroupsT = Aws::Vector<Aws::String>>
316 UpdateChannelRequest& WithChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
317 SetChannelSecurityGroups(std::forward<ChannelSecurityGroupsT>(value));
318 return *this;
319 }
320 template <typename ChannelSecurityGroupsT = Aws::String>
321 UpdateChannelRequest& AddChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
322 m_channelSecurityGroupsHasBeenSet = true;
323 m_channelSecurityGroups.emplace_back(std::forward<ChannelSecurityGroupsT>(value));
324 return *this;
325 }
327
329
332 inline const InferenceSettings& GetInferenceSettings() const { return m_inferenceSettings; }
333 inline bool InferenceSettingsHasBeenSet() const { return m_inferenceSettingsHasBeenSet; }
334 template <typename InferenceSettingsT = InferenceSettings>
335 void SetInferenceSettings(InferenceSettingsT&& value) {
336 m_inferenceSettingsHasBeenSet = true;
337 m_inferenceSettings = std::forward<InferenceSettingsT>(value);
338 }
339 template <typename InferenceSettingsT = InferenceSettings>
340 UpdateChannelRequest& WithInferenceSettings(InferenceSettingsT&& value) {
341 SetInferenceSettings(std::forward<InferenceSettingsT>(value));
342 return *this;
343 }
345 private:
346 CdiInputSpecification m_cdiInputSpecification;
347
348 Aws::String m_channelId;
349
350 Aws::Vector<OutputDestination> m_destinations;
351
352 EncoderSettings m_encoderSettings;
353
354 Aws::Vector<InputAttachment> m_inputAttachments;
355
356 InputSpecification m_inputSpecification;
357
358 LogLevel m_logLevel{LogLevel::NOT_SET};
359
360 MaintenanceUpdateSettings m_maintenance;
361
362 Aws::String m_name;
363
364 Aws::String m_roleArn;
365
366 ChannelEngineVersionRequest m_channelEngineVersion;
367
368 bool m_dryRun{false};
369
370 AnywhereSettings m_anywhereSettings;
371
372 LinkedChannelSettings m_linkedChannelSettings;
373
374 Aws::Vector<Aws::String> m_channelSecurityGroups;
375
376 InferenceSettings m_inferenceSettings;
377 bool m_cdiInputSpecificationHasBeenSet = false;
378 bool m_channelIdHasBeenSet = false;
379 bool m_destinationsHasBeenSet = false;
380 bool m_encoderSettingsHasBeenSet = false;
381 bool m_inputAttachmentsHasBeenSet = false;
382 bool m_inputSpecificationHasBeenSet = false;
383 bool m_logLevelHasBeenSet = false;
384 bool m_maintenanceHasBeenSet = false;
385 bool m_nameHasBeenSet = false;
386 bool m_roleArnHasBeenSet = false;
387 bool m_channelEngineVersionHasBeenSet = false;
388 bool m_dryRunHasBeenSet = false;
389 bool m_anywhereSettingsHasBeenSet = false;
390 bool m_linkedChannelSettingsHasBeenSet = false;
391 bool m_channelSecurityGroupsHasBeenSet = false;
392 bool m_inferenceSettingsHasBeenSet = false;
393};
394
395} // namespace Model
396} // namespace MediaLive
397} // 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)
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 InferenceSettings & GetInferenceSettings() const
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