AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
StartChannelResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/medialive/MediaLive_EXPORTS.h>
12#include <aws/medialive/model/CdiInputSpecification.h>
13#include <aws/medialive/model/ChannelClass.h>
14#include <aws/medialive/model/ChannelEgressEndpoint.h>
15#include <aws/medialive/model/ChannelEngineVersionResponse.h>
16#include <aws/medialive/model/ChannelState.h>
17#include <aws/medialive/model/DescribeAnywhereSettings.h>
18#include <aws/medialive/model/DescribeInferenceSettings.h>
19#include <aws/medialive/model/DescribeLinkedChannelSettings.h>
20#include <aws/medialive/model/EncoderSettings.h>
21#include <aws/medialive/model/InputAttachment.h>
22#include <aws/medialive/model/InputSpecification.h>
23#include <aws/medialive/model/LogLevel.h>
24#include <aws/medialive/model/MaintenanceStatus.h>
25#include <aws/medialive/model/OutputDestination.h>
26#include <aws/medialive/model/PipelineDetail.h>
27#include <aws/medialive/model/VpcOutputSettingsDescription.h>
28
29#include <utility>
30
31namespace Aws {
32template <typename RESULT_TYPE>
33class AmazonWebServiceResult;
34
35namespace Utils {
36namespace Json {
37class JsonValue;
38} // namespace Json
39} // namespace Utils
40namespace MediaLive {
41namespace Model {
48 public:
49 AWS_MEDIALIVE_API StartChannelResult() = default;
52
54
57 inline const Aws::String& GetArn() const { return m_arn; }
58 template <typename ArnT = Aws::String>
59 void SetArn(ArnT&& value) {
60 m_arnHasBeenSet = true;
61 m_arn = std::forward<ArnT>(value);
62 }
63 template <typename ArnT = Aws::String>
64 StartChannelResult& WithArn(ArnT&& value) {
65 SetArn(std::forward<ArnT>(value));
66 return *this;
67 }
69
71
74 inline const CdiInputSpecification& GetCdiInputSpecification() const { return m_cdiInputSpecification; }
75 template <typename CdiInputSpecificationT = CdiInputSpecification>
76 void SetCdiInputSpecification(CdiInputSpecificationT&& value) {
77 m_cdiInputSpecificationHasBeenSet = true;
78 m_cdiInputSpecification = std::forward<CdiInputSpecificationT>(value);
79 }
80 template <typename CdiInputSpecificationT = CdiInputSpecification>
81 StartChannelResult& WithCdiInputSpecification(CdiInputSpecificationT&& value) {
82 SetCdiInputSpecification(std::forward<CdiInputSpecificationT>(value));
83 return *this;
84 }
86
88
92 inline ChannelClass GetChannelClass() const { return m_channelClass; }
93 inline void SetChannelClass(ChannelClass value) {
94 m_channelClassHasBeenSet = true;
95 m_channelClass = value;
96 }
98 SetChannelClass(value);
99 return *this;
100 }
102
104
111 inline const Aws::Vector<OutputDestination>& GetDestinations() const { return m_destinations; }
112 template <typename DestinationsT = Aws::Vector<OutputDestination>>
113 void SetDestinations(DestinationsT&& value) {
114 m_destinationsHasBeenSet = true;
115 m_destinations = std::forward<DestinationsT>(value);
116 }
117 template <typename DestinationsT = Aws::Vector<OutputDestination>>
118 StartChannelResult& WithDestinations(DestinationsT&& value) {
119 SetDestinations(std::forward<DestinationsT>(value));
120 return *this;
121 }
122 template <typename DestinationsT = OutputDestination>
123 StartChannelResult& AddDestinations(DestinationsT&& value) {
124 m_destinationsHasBeenSet = true;
125 m_destinations.emplace_back(std::forward<DestinationsT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::Vector<ChannelEgressEndpoint>& GetEgressEndpoints() const { return m_egressEndpoints; }
135 template <typename EgressEndpointsT = Aws::Vector<ChannelEgressEndpoint>>
136 void SetEgressEndpoints(EgressEndpointsT&& value) {
137 m_egressEndpointsHasBeenSet = true;
138 m_egressEndpoints = std::forward<EgressEndpointsT>(value);
139 }
140 template <typename EgressEndpointsT = Aws::Vector<ChannelEgressEndpoint>>
141 StartChannelResult& WithEgressEndpoints(EgressEndpointsT&& value) {
142 SetEgressEndpoints(std::forward<EgressEndpointsT>(value));
143 return *this;
144 }
145 template <typename EgressEndpointsT = ChannelEgressEndpoint>
146 StartChannelResult& AddEgressEndpoints(EgressEndpointsT&& value) {
147 m_egressEndpointsHasBeenSet = true;
148 m_egressEndpoints.emplace_back(std::forward<EgressEndpointsT>(value));
149 return *this;
150 }
152
154
155 inline const EncoderSettings& GetEncoderSettings() const { return m_encoderSettings; }
156 template <typename EncoderSettingsT = EncoderSettings>
157 void SetEncoderSettings(EncoderSettingsT&& value) {
158 m_encoderSettingsHasBeenSet = true;
159 m_encoderSettings = std::forward<EncoderSettingsT>(value);
160 }
161 template <typename EncoderSettingsT = EncoderSettings>
162 StartChannelResult& WithEncoderSettings(EncoderSettingsT&& value) {
163 SetEncoderSettings(std::forward<EncoderSettingsT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetId() const { return m_id; }
173 template <typename IdT = Aws::String>
174 void SetId(IdT&& value) {
175 m_idHasBeenSet = true;
176 m_id = std::forward<IdT>(value);
177 }
178 template <typename IdT = Aws::String>
180 SetId(std::forward<IdT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Vector<InputAttachment>& GetInputAttachments() const { return m_inputAttachments; }
190 template <typename InputAttachmentsT = Aws::Vector<InputAttachment>>
191 void SetInputAttachments(InputAttachmentsT&& value) {
192 m_inputAttachmentsHasBeenSet = true;
193 m_inputAttachments = std::forward<InputAttachmentsT>(value);
194 }
195 template <typename InputAttachmentsT = Aws::Vector<InputAttachment>>
196 StartChannelResult& WithInputAttachments(InputAttachmentsT&& value) {
197 SetInputAttachments(std::forward<InputAttachmentsT>(value));
198 return *this;
199 }
200 template <typename InputAttachmentsT = InputAttachment>
201 StartChannelResult& AddInputAttachments(InputAttachmentsT&& value) {
202 m_inputAttachmentsHasBeenSet = true;
203 m_inputAttachments.emplace_back(std::forward<InputAttachmentsT>(value));
204 return *this;
205 }
207
209
212 inline const InputSpecification& GetInputSpecification() const { return m_inputSpecification; }
213 template <typename InputSpecificationT = InputSpecification>
214 void SetInputSpecification(InputSpecificationT&& value) {
215 m_inputSpecificationHasBeenSet = true;
216 m_inputSpecification = std::forward<InputSpecificationT>(value);
217 }
218 template <typename InputSpecificationT = InputSpecification>
219 StartChannelResult& WithInputSpecification(InputSpecificationT&& value) {
220 SetInputSpecification(std::forward<InputSpecificationT>(value));
221 return *this;
222 }
224
226
229 inline LogLevel GetLogLevel() const { return m_logLevel; }
230 inline void SetLogLevel(LogLevel value) {
231 m_logLevelHasBeenSet = true;
232 m_logLevel = value;
233 }
235 SetLogLevel(value);
236 return *this;
237 }
239
241
244 inline const MaintenanceStatus& GetMaintenance() const { return m_maintenance; }
245 template <typename MaintenanceT = MaintenanceStatus>
246 void SetMaintenance(MaintenanceT&& value) {
247 m_maintenanceHasBeenSet = true;
248 m_maintenance = std::forward<MaintenanceT>(value);
249 }
250 template <typename MaintenanceT = MaintenanceStatus>
251 StartChannelResult& WithMaintenance(MaintenanceT&& value) {
252 SetMaintenance(std::forward<MaintenanceT>(value));
253 return *this;
254 }
256
258
261 inline const Aws::String& GetName() const { return m_name; }
262 template <typename NameT = Aws::String>
263 void SetName(NameT&& value) {
264 m_nameHasBeenSet = true;
265 m_name = std::forward<NameT>(value);
266 }
267 template <typename NameT = Aws::String>
268 StartChannelResult& WithName(NameT&& value) {
269 SetName(std::forward<NameT>(value));
270 return *this;
271 }
273
275
278 inline const Aws::Vector<PipelineDetail>& GetPipelineDetails() const { return m_pipelineDetails; }
279 template <typename PipelineDetailsT = Aws::Vector<PipelineDetail>>
280 void SetPipelineDetails(PipelineDetailsT&& value) {
281 m_pipelineDetailsHasBeenSet = true;
282 m_pipelineDetails = std::forward<PipelineDetailsT>(value);
283 }
284 template <typename PipelineDetailsT = Aws::Vector<PipelineDetail>>
285 StartChannelResult& WithPipelineDetails(PipelineDetailsT&& value) {
286 SetPipelineDetails(std::forward<PipelineDetailsT>(value));
287 return *this;
288 }
289 template <typename PipelineDetailsT = PipelineDetail>
290 StartChannelResult& AddPipelineDetails(PipelineDetailsT&& value) {
291 m_pipelineDetailsHasBeenSet = true;
292 m_pipelineDetails.emplace_back(std::forward<PipelineDetailsT>(value));
293 return *this;
294 }
296
298
301 inline int GetPipelinesRunningCount() const { return m_pipelinesRunningCount; }
302 inline void SetPipelinesRunningCount(int value) {
303 m_pipelinesRunningCountHasBeenSet = true;
304 m_pipelinesRunningCount = value;
305 }
308 return *this;
309 }
311
313
316 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
317 template <typename RoleArnT = Aws::String>
318 void SetRoleArn(RoleArnT&& value) {
319 m_roleArnHasBeenSet = true;
320 m_roleArn = std::forward<RoleArnT>(value);
321 }
322 template <typename RoleArnT = Aws::String>
323 StartChannelResult& WithRoleArn(RoleArnT&& value) {
324 SetRoleArn(std::forward<RoleArnT>(value));
325 return *this;
326 }
328
330
331 inline ChannelState GetState() const { return m_state; }
332 inline void SetState(ChannelState value) {
333 m_stateHasBeenSet = true;
334 m_state = value;
335 }
337 SetState(value);
338 return *this;
339 }
341
343
346 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
347 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
348 void SetTags(TagsT&& value) {
349 m_tagsHasBeenSet = true;
350 m_tags = std::forward<TagsT>(value);
351 }
352 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
353 StartChannelResult& WithTags(TagsT&& value) {
354 SetTags(std::forward<TagsT>(value));
355 return *this;
356 }
357 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
358 StartChannelResult& AddTags(TagsKeyT&& key, TagsValueT&& value) {
359 m_tagsHasBeenSet = true;
360 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
361 return *this;
362 }
364
366
369 inline const VpcOutputSettingsDescription& GetVpc() const { return m_vpc; }
370 template <typename VpcT = VpcOutputSettingsDescription>
371 void SetVpc(VpcT&& value) {
372 m_vpcHasBeenSet = true;
373 m_vpc = std::forward<VpcT>(value);
374 }
375 template <typename VpcT = VpcOutputSettingsDescription>
377 SetVpc(std::forward<VpcT>(value));
378 return *this;
379 }
381
383
386 inline const DescribeAnywhereSettings& GetAnywhereSettings() const { return m_anywhereSettings; }
387 template <typename AnywhereSettingsT = DescribeAnywhereSettings>
388 void SetAnywhereSettings(AnywhereSettingsT&& value) {
389 m_anywhereSettingsHasBeenSet = true;
390 m_anywhereSettings = std::forward<AnywhereSettingsT>(value);
391 }
392 template <typename AnywhereSettingsT = DescribeAnywhereSettings>
393 StartChannelResult& WithAnywhereSettings(AnywhereSettingsT&& value) {
394 SetAnywhereSettings(std::forward<AnywhereSettingsT>(value));
395 return *this;
396 }
398
400
403 inline const ChannelEngineVersionResponse& GetChannelEngineVersion() const { return m_channelEngineVersion; }
404 template <typename ChannelEngineVersionT = ChannelEngineVersionResponse>
405 void SetChannelEngineVersion(ChannelEngineVersionT&& value) {
406 m_channelEngineVersionHasBeenSet = true;
407 m_channelEngineVersion = std::forward<ChannelEngineVersionT>(value);
408 }
409 template <typename ChannelEngineVersionT = ChannelEngineVersionResponse>
410 StartChannelResult& WithChannelEngineVersion(ChannelEngineVersionT&& value) {
411 SetChannelEngineVersion(std::forward<ChannelEngineVersionT>(value));
412 return *this;
413 }
415
417
420 inline const DescribeLinkedChannelSettings& GetLinkedChannelSettings() const { return m_linkedChannelSettings; }
421 template <typename LinkedChannelSettingsT = DescribeLinkedChannelSettings>
422 void SetLinkedChannelSettings(LinkedChannelSettingsT&& value) {
423 m_linkedChannelSettingsHasBeenSet = true;
424 m_linkedChannelSettings = std::forward<LinkedChannelSettingsT>(value);
425 }
426 template <typename LinkedChannelSettingsT = DescribeLinkedChannelSettings>
427 StartChannelResult& WithLinkedChannelSettings(LinkedChannelSettingsT&& value) {
428 SetLinkedChannelSettings(std::forward<LinkedChannelSettingsT>(value));
429 return *this;
430 }
432
434
437 inline const Aws::Vector<Aws::String>& GetChannelSecurityGroups() const { return m_channelSecurityGroups; }
438 template <typename ChannelSecurityGroupsT = Aws::Vector<Aws::String>>
439 void SetChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
440 m_channelSecurityGroupsHasBeenSet = true;
441 m_channelSecurityGroups = std::forward<ChannelSecurityGroupsT>(value);
442 }
443 template <typename ChannelSecurityGroupsT = Aws::Vector<Aws::String>>
444 StartChannelResult& WithChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
445 SetChannelSecurityGroups(std::forward<ChannelSecurityGroupsT>(value));
446 return *this;
447 }
448 template <typename ChannelSecurityGroupsT = Aws::String>
449 StartChannelResult& AddChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
450 m_channelSecurityGroupsHasBeenSet = true;
451 m_channelSecurityGroups.emplace_back(std::forward<ChannelSecurityGroupsT>(value));
452 return *this;
453 }
455
457
460 inline const DescribeInferenceSettings& GetInferenceSettings() const { return m_inferenceSettings; }
461 template <typename InferenceSettingsT = DescribeInferenceSettings>
462 void SetInferenceSettings(InferenceSettingsT&& value) {
463 m_inferenceSettingsHasBeenSet = true;
464 m_inferenceSettings = std::forward<InferenceSettingsT>(value);
465 }
466 template <typename InferenceSettingsT = DescribeInferenceSettings>
467 StartChannelResult& WithInferenceSettings(InferenceSettingsT&& value) {
468 SetInferenceSettings(std::forward<InferenceSettingsT>(value));
469 return *this;
470 }
472
474
475 inline const Aws::String& GetRequestId() const { return m_requestId; }
476 template <typename RequestIdT = Aws::String>
477 void SetRequestId(RequestIdT&& value) {
478 m_requestIdHasBeenSet = true;
479 m_requestId = std::forward<RequestIdT>(value);
480 }
481 template <typename RequestIdT = Aws::String>
482 StartChannelResult& WithRequestId(RequestIdT&& value) {
483 SetRequestId(std::forward<RequestIdT>(value));
484 return *this;
485 }
487 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
488
489 private:
490 Aws::String m_arn;
491
492 CdiInputSpecification m_cdiInputSpecification;
493
494 ChannelClass m_channelClass{ChannelClass::NOT_SET};
495
496 Aws::Vector<OutputDestination> m_destinations;
497
498 Aws::Vector<ChannelEgressEndpoint> m_egressEndpoints;
499
500 EncoderSettings m_encoderSettings;
501
502 Aws::String m_id;
503
504 Aws::Vector<InputAttachment> m_inputAttachments;
505
506 InputSpecification m_inputSpecification;
507
508 LogLevel m_logLevel{LogLevel::NOT_SET};
509
510 MaintenanceStatus m_maintenance;
511
512 Aws::String m_name;
513
514 Aws::Vector<PipelineDetail> m_pipelineDetails;
515
516 int m_pipelinesRunningCount{0};
517
518 Aws::String m_roleArn;
519
521
523
524 VpcOutputSettingsDescription m_vpc;
525
526 DescribeAnywhereSettings m_anywhereSettings;
527
528 ChannelEngineVersionResponse m_channelEngineVersion;
529
530 DescribeLinkedChannelSettings m_linkedChannelSettings;
531
532 Aws::Vector<Aws::String> m_channelSecurityGroups;
533
534 DescribeInferenceSettings m_inferenceSettings;
535
536 Aws::String m_requestId;
537 Aws::Http::HttpResponseCode m_HttpResponseCode;
538 bool m_arnHasBeenSet = false;
539 bool m_cdiInputSpecificationHasBeenSet = false;
540 bool m_channelClassHasBeenSet = false;
541 bool m_destinationsHasBeenSet = false;
542 bool m_egressEndpointsHasBeenSet = false;
543 bool m_encoderSettingsHasBeenSet = false;
544 bool m_idHasBeenSet = false;
545 bool m_inputAttachmentsHasBeenSet = false;
546 bool m_inputSpecificationHasBeenSet = false;
547 bool m_logLevelHasBeenSet = false;
548 bool m_maintenanceHasBeenSet = false;
549 bool m_nameHasBeenSet = false;
550 bool m_pipelineDetailsHasBeenSet = false;
551 bool m_pipelinesRunningCountHasBeenSet = false;
552 bool m_roleArnHasBeenSet = false;
553 bool m_stateHasBeenSet = false;
554 bool m_tagsHasBeenSet = false;
555 bool m_vpcHasBeenSet = false;
556 bool m_anywhereSettingsHasBeenSet = false;
557 bool m_channelEngineVersionHasBeenSet = false;
558 bool m_linkedChannelSettingsHasBeenSet = false;
559 bool m_channelSecurityGroupsHasBeenSet = false;
560 bool m_inferenceSettingsHasBeenSet = false;
561 bool m_requestIdHasBeenSet = false;
562};
563
564} // namespace Model
565} // namespace MediaLive
566} // namespace Aws
const ChannelEngineVersionResponse & GetChannelEngineVersion() const
void SetEncoderSettings(EncoderSettingsT &&value)
StartChannelResult & WithCdiInputSpecification(CdiInputSpecificationT &&value)
const DescribeLinkedChannelSettings & GetLinkedChannelSettings() const
StartChannelResult & WithLinkedChannelSettings(LinkedChannelSettingsT &&value)
void SetChannelEngineVersion(ChannelEngineVersionT &&value)
StartChannelResult & WithLogLevel(LogLevel value)
StartChannelResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< InputAttachment > & GetInputAttachments() const
StartChannelResult & AddDestinations(DestinationsT &&value)
StartChannelResult & WithPipelineDetails(PipelineDetailsT &&value)
void SetEgressEndpoints(EgressEndpointsT &&value)
const CdiInputSpecification & GetCdiInputSpecification() const
AWS_MEDIALIVE_API StartChannelResult()=default
StartChannelResult & AddPipelineDetails(PipelineDetailsT &&value)
void SetLinkedChannelSettings(LinkedChannelSettingsT &&value)
StartChannelResult & WithTags(TagsT &&value)
StartChannelResult & WithChannelSecurityGroups(ChannelSecurityGroupsT &&value)
StartChannelResult & WithDestinations(DestinationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const VpcOutputSettingsDescription & GetVpc() const
StartChannelResult & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MEDIALIVE_API StartChannelResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartChannelResult & AddEgressEndpoints(EgressEndpointsT &&value)
StartChannelResult & WithEgressEndpoints(EgressEndpointsT &&value)
StartChannelResult & WithState(ChannelState value)
StartChannelResult & WithChannelClass(ChannelClass value)
StartChannelResult & WithMaintenance(MaintenanceT &&value)
const DescribeInferenceSettings & GetInferenceSettings() const
StartChannelResult & WithRoleArn(RoleArnT &&value)
void SetAnywhereSettings(AnywhereSettingsT &&value)
const DescribeAnywhereSettings & GetAnywhereSettings() const
const Aws::Vector< OutputDestination > & GetDestinations() const
StartChannelResult & WithVpc(VpcT &&value)
StartChannelResult & WithInputAttachments(InputAttachmentsT &&value)
StartChannelResult & WithPipelinesRunningCount(int value)
StartChannelResult & WithName(NameT &&value)
StartChannelResult & WithInferenceSettings(InferenceSettingsT &&value)
void SetInputAttachments(InputAttachmentsT &&value)
const MaintenanceStatus & GetMaintenance() const
const Aws::Vector< Aws::String > & GetChannelSecurityGroups() const
void SetChannelSecurityGroups(ChannelSecurityGroupsT &&value)
void SetInferenceSettings(InferenceSettingsT &&value)
StartChannelResult & WithChannelEngineVersion(ChannelEngineVersionT &&value)
StartChannelResult & WithAnywhereSettings(AnywhereSettingsT &&value)
StartChannelResult & WithEncoderSettings(EncoderSettingsT &&value)
StartChannelResult & AddInputAttachments(InputAttachmentsT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
const Aws::Vector< ChannelEgressEndpoint > & GetEgressEndpoints() const
const InputSpecification & GetInputSpecification() const
const EncoderSettings & GetEncoderSettings() const
StartChannelResult & WithId(IdT &&value)
void SetInputSpecification(InputSpecificationT &&value)
void SetCdiInputSpecification(CdiInputSpecificationT &&value)
const Aws::Vector< PipelineDetail > & GetPipelineDetails() const
StartChannelResult & WithInputSpecification(InputSpecificationT &&value)
StartChannelResult & AddChannelSecurityGroups(ChannelSecurityGroupsT &&value)
AWS_MEDIALIVE_API StartChannelResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
StartChannelResult & WithArn(ArnT &&value)
void SetPipelineDetails(PipelineDetailsT &&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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue