AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
ChannelSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/medialive/MediaLive_EXPORTS.h>
11#include <aws/medialive/model/CdiInputSpecification.h>
12#include <aws/medialive/model/ChannelClass.h>
13#include <aws/medialive/model/ChannelEgressEndpoint.h>
14#include <aws/medialive/model/ChannelEngineVersionResponse.h>
15#include <aws/medialive/model/ChannelState.h>
16#include <aws/medialive/model/DescribeAnywhereSettings.h>
17#include <aws/medialive/model/DescribeLinkedChannelSettings.h>
18#include <aws/medialive/model/InputAttachment.h>
19#include <aws/medialive/model/InputSpecification.h>
20#include <aws/medialive/model/LogLevel.h>
21#include <aws/medialive/model/MaintenanceStatus.h>
22#include <aws/medialive/model/OutputDestination.h>
23#include <aws/medialive/model/VpcOutputSettingsDescription.h>
24
25#include <utility>
26
27namespace Aws {
28namespace Utils {
29namespace Json {
30class JsonValue;
31class JsonView;
32} // namespace Json
33} // namespace Utils
34namespace MediaLive {
35namespace Model {
36
43 public:
44 AWS_MEDIALIVE_API ChannelSummary() = default;
45 AWS_MEDIALIVE_API ChannelSummary(Aws::Utils::Json::JsonView jsonValue);
47 AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
48
50
53 inline const Aws::String& GetArn() const { return m_arn; }
54 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
55 template <typename ArnT = Aws::String>
56 void SetArn(ArnT&& value) {
57 m_arnHasBeenSet = true;
58 m_arn = std::forward<ArnT>(value);
59 }
60 template <typename ArnT = Aws::String>
61 ChannelSummary& WithArn(ArnT&& value) {
62 SetArn(std::forward<ArnT>(value));
63 return *this;
64 }
66
68
71 inline const CdiInputSpecification& GetCdiInputSpecification() const { return m_cdiInputSpecification; }
72 inline bool CdiInputSpecificationHasBeenSet() const { return m_cdiInputSpecificationHasBeenSet; }
73 template <typename CdiInputSpecificationT = CdiInputSpecification>
74 void SetCdiInputSpecification(CdiInputSpecificationT&& value) {
75 m_cdiInputSpecificationHasBeenSet = true;
76 m_cdiInputSpecification = std::forward<CdiInputSpecificationT>(value);
77 }
78 template <typename CdiInputSpecificationT = CdiInputSpecification>
79 ChannelSummary& WithCdiInputSpecification(CdiInputSpecificationT&& value) {
80 SetCdiInputSpecification(std::forward<CdiInputSpecificationT>(value));
81 return *this;
82 }
84
86
90 inline ChannelClass GetChannelClass() const { return m_channelClass; }
91 inline bool ChannelClassHasBeenSet() const { return m_channelClassHasBeenSet; }
92 inline void SetChannelClass(ChannelClass value) {
93 m_channelClassHasBeenSet = true;
94 m_channelClass = value;
95 }
97 SetChannelClass(value);
98 return *this;
99 }
101
103
110 inline const Aws::Vector<OutputDestination>& GetDestinations() const { return m_destinations; }
111 inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; }
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 ChannelSummary& WithDestinations(DestinationsT&& value) {
119 SetDestinations(std::forward<DestinationsT>(value));
120 return *this;
121 }
122 template <typename DestinationsT = OutputDestination>
123 ChannelSummary& 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 inline bool EgressEndpointsHasBeenSet() const { return m_egressEndpointsHasBeenSet; }
136 template <typename EgressEndpointsT = Aws::Vector<ChannelEgressEndpoint>>
137 void SetEgressEndpoints(EgressEndpointsT&& value) {
138 m_egressEndpointsHasBeenSet = true;
139 m_egressEndpoints = std::forward<EgressEndpointsT>(value);
140 }
141 template <typename EgressEndpointsT = Aws::Vector<ChannelEgressEndpoint>>
142 ChannelSummary& WithEgressEndpoints(EgressEndpointsT&& value) {
143 SetEgressEndpoints(std::forward<EgressEndpointsT>(value));
144 return *this;
145 }
146 template <typename EgressEndpointsT = ChannelEgressEndpoint>
147 ChannelSummary& AddEgressEndpoints(EgressEndpointsT&& value) {
148 m_egressEndpointsHasBeenSet = true;
149 m_egressEndpoints.emplace_back(std::forward<EgressEndpointsT>(value));
150 return *this;
151 }
153
155
158 inline const Aws::String& GetId() const { return m_id; }
159 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
160 template <typename IdT = Aws::String>
161 void SetId(IdT&& value) {
162 m_idHasBeenSet = true;
163 m_id = std::forward<IdT>(value);
164 }
165 template <typename IdT = Aws::String>
166 ChannelSummary& WithId(IdT&& value) {
167 SetId(std::forward<IdT>(value));
168 return *this;
169 }
171
173
176 inline const Aws::Vector<InputAttachment>& GetInputAttachments() const { return m_inputAttachments; }
177 inline bool InputAttachmentsHasBeenSet() const { return m_inputAttachmentsHasBeenSet; }
178 template <typename InputAttachmentsT = Aws::Vector<InputAttachment>>
179 void SetInputAttachments(InputAttachmentsT&& value) {
180 m_inputAttachmentsHasBeenSet = true;
181 m_inputAttachments = std::forward<InputAttachmentsT>(value);
182 }
183 template <typename InputAttachmentsT = Aws::Vector<InputAttachment>>
184 ChannelSummary& WithInputAttachments(InputAttachmentsT&& value) {
185 SetInputAttachments(std::forward<InputAttachmentsT>(value));
186 return *this;
187 }
188 template <typename InputAttachmentsT = InputAttachment>
189 ChannelSummary& AddInputAttachments(InputAttachmentsT&& value) {
190 m_inputAttachmentsHasBeenSet = true;
191 m_inputAttachments.emplace_back(std::forward<InputAttachmentsT>(value));
192 return *this;
193 }
195
197
200 inline const InputSpecification& GetInputSpecification() const { return m_inputSpecification; }
201 inline bool InputSpecificationHasBeenSet() const { return m_inputSpecificationHasBeenSet; }
202 template <typename InputSpecificationT = InputSpecification>
203 void SetInputSpecification(InputSpecificationT&& value) {
204 m_inputSpecificationHasBeenSet = true;
205 m_inputSpecification = std::forward<InputSpecificationT>(value);
206 }
207 template <typename InputSpecificationT = InputSpecification>
208 ChannelSummary& WithInputSpecification(InputSpecificationT&& value) {
209 SetInputSpecification(std::forward<InputSpecificationT>(value));
210 return *this;
211 }
213
215
218 inline LogLevel GetLogLevel() const { return m_logLevel; }
219 inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; }
220 inline void SetLogLevel(LogLevel value) {
221 m_logLevelHasBeenSet = true;
222 m_logLevel = value;
223 }
225 SetLogLevel(value);
226 return *this;
227 }
229
231
234 inline const MaintenanceStatus& GetMaintenance() const { return m_maintenance; }
235 inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; }
236 template <typename MaintenanceT = MaintenanceStatus>
237 void SetMaintenance(MaintenanceT&& value) {
238 m_maintenanceHasBeenSet = true;
239 m_maintenance = std::forward<MaintenanceT>(value);
240 }
241 template <typename MaintenanceT = MaintenanceStatus>
242 ChannelSummary& WithMaintenance(MaintenanceT&& value) {
243 SetMaintenance(std::forward<MaintenanceT>(value));
244 return *this;
245 }
247
249
252 inline const Aws::String& GetName() const { return m_name; }
253 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
254 template <typename NameT = Aws::String>
255 void SetName(NameT&& value) {
256 m_nameHasBeenSet = true;
257 m_name = std::forward<NameT>(value);
258 }
259 template <typename NameT = Aws::String>
260 ChannelSummary& WithName(NameT&& value) {
261 SetName(std::forward<NameT>(value));
262 return *this;
263 }
265
267
270 inline int GetPipelinesRunningCount() const { return m_pipelinesRunningCount; }
271 inline bool PipelinesRunningCountHasBeenSet() const { return m_pipelinesRunningCountHasBeenSet; }
272 inline void SetPipelinesRunningCount(int value) {
273 m_pipelinesRunningCountHasBeenSet = true;
274 m_pipelinesRunningCount = value;
275 }
278 return *this;
279 }
281
283
286 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
287 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
288 template <typename RoleArnT = Aws::String>
289 void SetRoleArn(RoleArnT&& value) {
290 m_roleArnHasBeenSet = true;
291 m_roleArn = std::forward<RoleArnT>(value);
292 }
293 template <typename RoleArnT = Aws::String>
294 ChannelSummary& WithRoleArn(RoleArnT&& value) {
295 SetRoleArn(std::forward<RoleArnT>(value));
296 return *this;
297 }
299
301
302 inline ChannelState GetState() const { return m_state; }
303 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
304 inline void SetState(ChannelState value) {
305 m_stateHasBeenSet = true;
306 m_state = value;
307 }
309 SetState(value);
310 return *this;
311 }
313
315
318 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
319 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
320 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
321 void SetTags(TagsT&& value) {
322 m_tagsHasBeenSet = true;
323 m_tags = std::forward<TagsT>(value);
324 }
325 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
326 ChannelSummary& WithTags(TagsT&& value) {
327 SetTags(std::forward<TagsT>(value));
328 return *this;
329 }
330 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
331 ChannelSummary& AddTags(TagsKeyT&& key, TagsValueT&& value) {
332 m_tagsHasBeenSet = true;
333 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
334 return *this;
335 }
337
339
342 inline const VpcOutputSettingsDescription& GetVpc() const { return m_vpc; }
343 inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; }
344 template <typename VpcT = VpcOutputSettingsDescription>
345 void SetVpc(VpcT&& value) {
346 m_vpcHasBeenSet = true;
347 m_vpc = std::forward<VpcT>(value);
348 }
349 template <typename VpcT = VpcOutputSettingsDescription>
350 ChannelSummary& WithVpc(VpcT&& value) {
351 SetVpc(std::forward<VpcT>(value));
352 return *this;
353 }
355
357
360 inline const DescribeAnywhereSettings& GetAnywhereSettings() const { return m_anywhereSettings; }
361 inline bool AnywhereSettingsHasBeenSet() const { return m_anywhereSettingsHasBeenSet; }
362 template <typename AnywhereSettingsT = DescribeAnywhereSettings>
363 void SetAnywhereSettings(AnywhereSettingsT&& value) {
364 m_anywhereSettingsHasBeenSet = true;
365 m_anywhereSettings = std::forward<AnywhereSettingsT>(value);
366 }
367 template <typename AnywhereSettingsT = DescribeAnywhereSettings>
368 ChannelSummary& WithAnywhereSettings(AnywhereSettingsT&& value) {
369 SetAnywhereSettings(std::forward<AnywhereSettingsT>(value));
370 return *this;
371 }
373
375
378 inline const ChannelEngineVersionResponse& GetChannelEngineVersion() const { return m_channelEngineVersion; }
379 inline bool ChannelEngineVersionHasBeenSet() const { return m_channelEngineVersionHasBeenSet; }
380 template <typename ChannelEngineVersionT = ChannelEngineVersionResponse>
381 void SetChannelEngineVersion(ChannelEngineVersionT&& value) {
382 m_channelEngineVersionHasBeenSet = true;
383 m_channelEngineVersion = std::forward<ChannelEngineVersionT>(value);
384 }
385 template <typename ChannelEngineVersionT = ChannelEngineVersionResponse>
386 ChannelSummary& WithChannelEngineVersion(ChannelEngineVersionT&& value) {
387 SetChannelEngineVersion(std::forward<ChannelEngineVersionT>(value));
388 return *this;
389 }
391
393
396 inline const Aws::Vector<ChannelEngineVersionResponse>& GetUsedChannelEngineVersions() const { return m_usedChannelEngineVersions; }
397 inline bool UsedChannelEngineVersionsHasBeenSet() const { return m_usedChannelEngineVersionsHasBeenSet; }
398 template <typename UsedChannelEngineVersionsT = Aws::Vector<ChannelEngineVersionResponse>>
399 void SetUsedChannelEngineVersions(UsedChannelEngineVersionsT&& value) {
400 m_usedChannelEngineVersionsHasBeenSet = true;
401 m_usedChannelEngineVersions = std::forward<UsedChannelEngineVersionsT>(value);
402 }
403 template <typename UsedChannelEngineVersionsT = Aws::Vector<ChannelEngineVersionResponse>>
404 ChannelSummary& WithUsedChannelEngineVersions(UsedChannelEngineVersionsT&& value) {
405 SetUsedChannelEngineVersions(std::forward<UsedChannelEngineVersionsT>(value));
406 return *this;
407 }
408 template <typename UsedChannelEngineVersionsT = ChannelEngineVersionResponse>
409 ChannelSummary& AddUsedChannelEngineVersions(UsedChannelEngineVersionsT&& value) {
410 m_usedChannelEngineVersionsHasBeenSet = true;
411 m_usedChannelEngineVersions.emplace_back(std::forward<UsedChannelEngineVersionsT>(value));
412 return *this;
413 }
415
417
420 inline const DescribeLinkedChannelSettings& GetLinkedChannelSettings() const { return m_linkedChannelSettings; }
421 inline bool LinkedChannelSettingsHasBeenSet() const { return m_linkedChannelSettingsHasBeenSet; }
422 template <typename LinkedChannelSettingsT = DescribeLinkedChannelSettings>
423 void SetLinkedChannelSettings(LinkedChannelSettingsT&& value) {
424 m_linkedChannelSettingsHasBeenSet = true;
425 m_linkedChannelSettings = std::forward<LinkedChannelSettingsT>(value);
426 }
427 template <typename LinkedChannelSettingsT = DescribeLinkedChannelSettings>
428 ChannelSummary& WithLinkedChannelSettings(LinkedChannelSettingsT&& value) {
429 SetLinkedChannelSettings(std::forward<LinkedChannelSettingsT>(value));
430 return *this;
431 }
433
435
438 inline const Aws::Vector<Aws::String>& GetChannelSecurityGroups() const { return m_channelSecurityGroups; }
439 inline bool ChannelSecurityGroupsHasBeenSet() const { return m_channelSecurityGroupsHasBeenSet; }
440 template <typename ChannelSecurityGroupsT = Aws::Vector<Aws::String>>
441 void SetChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
442 m_channelSecurityGroupsHasBeenSet = true;
443 m_channelSecurityGroups = std::forward<ChannelSecurityGroupsT>(value);
444 }
445 template <typename ChannelSecurityGroupsT = Aws::Vector<Aws::String>>
446 ChannelSummary& WithChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
447 SetChannelSecurityGroups(std::forward<ChannelSecurityGroupsT>(value));
448 return *this;
449 }
450 template <typename ChannelSecurityGroupsT = Aws::String>
451 ChannelSummary& AddChannelSecurityGroups(ChannelSecurityGroupsT&& value) {
452 m_channelSecurityGroupsHasBeenSet = true;
453 m_channelSecurityGroups.emplace_back(std::forward<ChannelSecurityGroupsT>(value));
454 return *this;
455 }
457 private:
458 Aws::String m_arn;
459
460 CdiInputSpecification m_cdiInputSpecification;
461
462 ChannelClass m_channelClass{ChannelClass::NOT_SET};
463
464 Aws::Vector<OutputDestination> m_destinations;
465
466 Aws::Vector<ChannelEgressEndpoint> m_egressEndpoints;
467
468 Aws::String m_id;
469
470 Aws::Vector<InputAttachment> m_inputAttachments;
471
472 InputSpecification m_inputSpecification;
473
474 LogLevel m_logLevel{LogLevel::NOT_SET};
475
476 MaintenanceStatus m_maintenance;
477
478 Aws::String m_name;
479
480 int m_pipelinesRunningCount{0};
481
482 Aws::String m_roleArn;
483
485
487
488 VpcOutputSettingsDescription m_vpc;
489
490 DescribeAnywhereSettings m_anywhereSettings;
491
492 ChannelEngineVersionResponse m_channelEngineVersion;
493
494 Aws::Vector<ChannelEngineVersionResponse> m_usedChannelEngineVersions;
495
496 DescribeLinkedChannelSettings m_linkedChannelSettings;
497
498 Aws::Vector<Aws::String> m_channelSecurityGroups;
499 bool m_arnHasBeenSet = false;
500 bool m_cdiInputSpecificationHasBeenSet = false;
501 bool m_channelClassHasBeenSet = false;
502 bool m_destinationsHasBeenSet = false;
503 bool m_egressEndpointsHasBeenSet = false;
504 bool m_idHasBeenSet = false;
505 bool m_inputAttachmentsHasBeenSet = false;
506 bool m_inputSpecificationHasBeenSet = false;
507 bool m_logLevelHasBeenSet = false;
508 bool m_maintenanceHasBeenSet = false;
509 bool m_nameHasBeenSet = false;
510 bool m_pipelinesRunningCountHasBeenSet = false;
511 bool m_roleArnHasBeenSet = false;
512 bool m_stateHasBeenSet = false;
513 bool m_tagsHasBeenSet = false;
514 bool m_vpcHasBeenSet = false;
515 bool m_anywhereSettingsHasBeenSet = false;
516 bool m_channelEngineVersionHasBeenSet = false;
517 bool m_usedChannelEngineVersionsHasBeenSet = false;
518 bool m_linkedChannelSettingsHasBeenSet = false;
519 bool m_channelSecurityGroupsHasBeenSet = false;
520};
521
522} // namespace Model
523} // namespace MediaLive
524} // namespace Aws
void SetInputSpecification(InputSpecificationT &&value)
const DescribeLinkedChannelSettings & GetLinkedChannelSettings() const
ChannelSummary & WithUsedChannelEngineVersions(UsedChannelEngineVersionsT &&value)
const Aws::String & GetArn() const
void SetUsedChannelEngineVersions(UsedChannelEngineVersionsT &&value)
void SetDestinations(DestinationsT &&value)
ChannelSummary & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_MEDIALIVE_API ChannelSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ChannelSummary & WithCdiInputSpecification(CdiInputSpecificationT &&value)
ChannelSummary & WithLogLevel(LogLevel value)
ChannelSummary & WithInputSpecification(InputSpecificationT &&value)
ChannelSummary & WithRoleArn(RoleArnT &&value)
const Aws::Vector< Aws::String > & GetChannelSecurityGroups() const
ChannelSummary & AddChannelSecurityGroups(ChannelSecurityGroupsT &&value)
ChannelSummary & AddEgressEndpoints(EgressEndpointsT &&value)
ChannelSummary & AddUsedChannelEngineVersions(UsedChannelEngineVersionsT &&value)
void SetCdiInputSpecification(CdiInputSpecificationT &&value)
ChannelSummary & WithChannelSecurityGroups(ChannelSecurityGroupsT &&value)
ChannelSummary & WithName(NameT &&value)
void SetMaintenance(MaintenanceT &&value)
void SetChannelSecurityGroups(ChannelSecurityGroupsT &&value)
ChannelSummary & WithEgressEndpoints(EgressEndpointsT &&value)
const MaintenanceStatus & GetMaintenance() const
void SetChannelClass(ChannelClass value)
ChannelSummary & WithMaintenance(MaintenanceT &&value)
ChannelSummary & WithInputAttachments(InputAttachmentsT &&value)
void SetEgressEndpoints(EgressEndpointsT &&value)
const Aws::Vector< InputAttachment > & GetInputAttachments() const
const VpcOutputSettingsDescription & GetVpc() const
void SetAnywhereSettings(AnywhereSettingsT &&value)
void SetInputAttachments(InputAttachmentsT &&value)
ChannelSummary & AddInputAttachments(InputAttachmentsT &&value)
ChannelSummary & WithChannelEngineVersion(ChannelEngineVersionT &&value)
const Aws::Vector< OutputDestination > & GetDestinations() const
const Aws::Vector< ChannelEgressEndpoint > & GetEgressEndpoints() const
const Aws::String & GetRoleArn() const
ChannelSummary & WithTags(TagsT &&value)
const Aws::String & GetId() const
AWS_MEDIALIVE_API ChannelSummary(Aws::Utils::Json::JsonView jsonValue)
ChannelSummary & WithState(ChannelState value)
const DescribeAnywhereSettings & GetAnywhereSettings() const
AWS_MEDIALIVE_API ChannelSummary()=default
const ChannelEngineVersionResponse & GetChannelEngineVersion() const
ChannelSummary & WithArn(ArnT &&value)
ChannelSummary & WithAnywhereSettings(AnywhereSettingsT &&value)
const InputSpecification & GetInputSpecification() const
const Aws::String & GetName() const
const Aws::Vector< ChannelEngineVersionResponse > & GetUsedChannelEngineVersions() const
void SetLinkedChannelSettings(LinkedChannelSettingsT &&value)
ChannelSummary & WithPipelinesRunningCount(int value)
ChannelSummary & WithId(IdT &&value)
ChannelSummary & WithVpc(VpcT &&value)
void SetChannelEngineVersion(ChannelEngineVersionT &&value)
ChannelSummary & WithDestinations(DestinationsT &&value)
ChannelSummary & WithChannelClass(ChannelClass value)
ChannelSummary & AddDestinations(DestinationsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
const CdiInputSpecification & GetCdiInputSpecification() const
AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const
ChannelSummary & WithLinkedChannelSettings(LinkedChannelSettingsT &&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