/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace MediaLive { namespace Model { /** * Placeholder documentation for ChannelSummary

See Also:

AWS * API Reference

*/ class ChannelSummary { public: AWS_MEDIALIVE_API ChannelSummary(); AWS_MEDIALIVE_API ChannelSummary(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIALIVE_API ChannelSummary& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_MEDIALIVE_API Aws::Utils::Json::JsonValue Jsonize() const; /** * The unique arn of the channel. */ inline const Aws::String& GetArn() const{ return m_arn; } /** * The unique arn of the channel. */ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** * The unique arn of the channel. */ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** * The unique arn of the channel. */ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** * The unique arn of the channel. */ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** * The unique arn of the channel. */ inline ChannelSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** * The unique arn of the channel. */ inline ChannelSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** * The unique arn of the channel. */ inline ChannelSummary& WithArn(const char* value) { SetArn(value); return *this;} /** * Specification of CDI inputs for this channel */ inline const CdiInputSpecification& GetCdiInputSpecification() const{ return m_cdiInputSpecification; } /** * Specification of CDI inputs for this channel */ inline bool CdiInputSpecificationHasBeenSet() const { return m_cdiInputSpecificationHasBeenSet; } /** * Specification of CDI inputs for this channel */ inline void SetCdiInputSpecification(const CdiInputSpecification& value) { m_cdiInputSpecificationHasBeenSet = true; m_cdiInputSpecification = value; } /** * Specification of CDI inputs for this channel */ inline void SetCdiInputSpecification(CdiInputSpecification&& value) { m_cdiInputSpecificationHasBeenSet = true; m_cdiInputSpecification = std::move(value); } /** * Specification of CDI inputs for this channel */ inline ChannelSummary& WithCdiInputSpecification(const CdiInputSpecification& value) { SetCdiInputSpecification(value); return *this;} /** * Specification of CDI inputs for this channel */ inline ChannelSummary& WithCdiInputSpecification(CdiInputSpecification&& value) { SetCdiInputSpecification(std::move(value)); return *this;} /** * The class for this channel. STANDARD for a channel with two pipelines or * SINGLE_PIPELINE for a channel with one pipeline. */ inline const ChannelClass& GetChannelClass() const{ return m_channelClass; } /** * The class for this channel. STANDARD for a channel with two pipelines or * SINGLE_PIPELINE for a channel with one pipeline. */ inline bool ChannelClassHasBeenSet() const { return m_channelClassHasBeenSet; } /** * The class for this channel. STANDARD for a channel with two pipelines or * SINGLE_PIPELINE for a channel with one pipeline. */ inline void SetChannelClass(const ChannelClass& value) { m_channelClassHasBeenSet = true; m_channelClass = value; } /** * The class for this channel. STANDARD for a channel with two pipelines or * SINGLE_PIPELINE for a channel with one pipeline. */ inline void SetChannelClass(ChannelClass&& value) { m_channelClassHasBeenSet = true; m_channelClass = std::move(value); } /** * The class for this channel. STANDARD for a channel with two pipelines or * SINGLE_PIPELINE for a channel with one pipeline. */ inline ChannelSummary& WithChannelClass(const ChannelClass& value) { SetChannelClass(value); return *this;} /** * The class for this channel. STANDARD for a channel with two pipelines or * SINGLE_PIPELINE for a channel with one pipeline. */ inline ChannelSummary& WithChannelClass(ChannelClass&& value) { SetChannelClass(std::move(value)); return *this;} /** * A list of destinations of the channel. For UDP outputs, there is one destination * per output. For other types (HLS, for example), there is one destination per * packager. */ inline const Aws::Vector& GetDestinations() const{ return m_destinations; } /** * A list of destinations of the channel. For UDP outputs, there is one destination * per output. For other types (HLS, for example), there is one destination per * packager. */ inline bool DestinationsHasBeenSet() const { return m_destinationsHasBeenSet; } /** * A list of destinations of the channel. For UDP outputs, there is one destination * per output. For other types (HLS, for example), there is one destination per * packager. */ inline void SetDestinations(const Aws::Vector& value) { m_destinationsHasBeenSet = true; m_destinations = value; } /** * A list of destinations of the channel. For UDP outputs, there is one destination * per output. For other types (HLS, for example), there is one destination per * packager. */ inline void SetDestinations(Aws::Vector&& value) { m_destinationsHasBeenSet = true; m_destinations = std::move(value); } /** * A list of destinations of the channel. For UDP outputs, there is one destination * per output. For other types (HLS, for example), there is one destination per * packager. */ inline ChannelSummary& WithDestinations(const Aws::Vector& value) { SetDestinations(value); return *this;} /** * A list of destinations of the channel. For UDP outputs, there is one destination * per output. For other types (HLS, for example), there is one destination per * packager. */ inline ChannelSummary& WithDestinations(Aws::Vector&& value) { SetDestinations(std::move(value)); return *this;} /** * A list of destinations of the channel. For UDP outputs, there is one destination * per output. For other types (HLS, for example), there is one destination per * packager. */ inline ChannelSummary& AddDestinations(const OutputDestination& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(value); return *this; } /** * A list of destinations of the channel. For UDP outputs, there is one destination * per output. For other types (HLS, for example), there is one destination per * packager. */ inline ChannelSummary& AddDestinations(OutputDestination&& value) { m_destinationsHasBeenSet = true; m_destinations.push_back(std::move(value)); return *this; } /** * The endpoints where outgoing connections initiate from */ inline const Aws::Vector& GetEgressEndpoints() const{ return m_egressEndpoints; } /** * The endpoints where outgoing connections initiate from */ inline bool EgressEndpointsHasBeenSet() const { return m_egressEndpointsHasBeenSet; } /** * The endpoints where outgoing connections initiate from */ inline void SetEgressEndpoints(const Aws::Vector& value) { m_egressEndpointsHasBeenSet = true; m_egressEndpoints = value; } /** * The endpoints where outgoing connections initiate from */ inline void SetEgressEndpoints(Aws::Vector&& value) { m_egressEndpointsHasBeenSet = true; m_egressEndpoints = std::move(value); } /** * The endpoints where outgoing connections initiate from */ inline ChannelSummary& WithEgressEndpoints(const Aws::Vector& value) { SetEgressEndpoints(value); return *this;} /** * The endpoints where outgoing connections initiate from */ inline ChannelSummary& WithEgressEndpoints(Aws::Vector&& value) { SetEgressEndpoints(std::move(value)); return *this;} /** * The endpoints where outgoing connections initiate from */ inline ChannelSummary& AddEgressEndpoints(const ChannelEgressEndpoint& value) { m_egressEndpointsHasBeenSet = true; m_egressEndpoints.push_back(value); return *this; } /** * The endpoints where outgoing connections initiate from */ inline ChannelSummary& AddEgressEndpoints(ChannelEgressEndpoint&& value) { m_egressEndpointsHasBeenSet = true; m_egressEndpoints.push_back(std::move(value)); return *this; } /** * The unique id of the channel. */ inline const Aws::String& GetId() const{ return m_id; } /** * The unique id of the channel. */ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** * The unique id of the channel. */ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** * The unique id of the channel. */ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** * The unique id of the channel. */ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** * The unique id of the channel. */ inline ChannelSummary& WithId(const Aws::String& value) { SetId(value); return *this;} /** * The unique id of the channel. */ inline ChannelSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** * The unique id of the channel. */ inline ChannelSummary& WithId(const char* value) { SetId(value); return *this;} /** * List of input attachments for channel. */ inline const Aws::Vector& GetInputAttachments() const{ return m_inputAttachments; } /** * List of input attachments for channel. */ inline bool InputAttachmentsHasBeenSet() const { return m_inputAttachmentsHasBeenSet; } /** * List of input attachments for channel. */ inline void SetInputAttachments(const Aws::Vector& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments = value; } /** * List of input attachments for channel. */ inline void SetInputAttachments(Aws::Vector&& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments = std::move(value); } /** * List of input attachments for channel. */ inline ChannelSummary& WithInputAttachments(const Aws::Vector& value) { SetInputAttachments(value); return *this;} /** * List of input attachments for channel. */ inline ChannelSummary& WithInputAttachments(Aws::Vector&& value) { SetInputAttachments(std::move(value)); return *this;} /** * List of input attachments for channel. */ inline ChannelSummary& AddInputAttachments(const InputAttachment& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments.push_back(value); return *this; } /** * List of input attachments for channel. */ inline ChannelSummary& AddInputAttachments(InputAttachment&& value) { m_inputAttachmentsHasBeenSet = true; m_inputAttachments.push_back(std::move(value)); return *this; } /** * Specification of network and file inputs for this channel */ inline const InputSpecification& GetInputSpecification() const{ return m_inputSpecification; } /** * Specification of network and file inputs for this channel */ inline bool InputSpecificationHasBeenSet() const { return m_inputSpecificationHasBeenSet; } /** * Specification of network and file inputs for this channel */ inline void SetInputSpecification(const InputSpecification& value) { m_inputSpecificationHasBeenSet = true; m_inputSpecification = value; } /** * Specification of network and file inputs for this channel */ inline void SetInputSpecification(InputSpecification&& value) { m_inputSpecificationHasBeenSet = true; m_inputSpecification = std::move(value); } /** * Specification of network and file inputs for this channel */ inline ChannelSummary& WithInputSpecification(const InputSpecification& value) { SetInputSpecification(value); return *this;} /** * Specification of network and file inputs for this channel */ inline ChannelSummary& WithInputSpecification(InputSpecification&& value) { SetInputSpecification(std::move(value)); return *this;} /** * The log level being written to CloudWatch Logs. */ inline const LogLevel& GetLogLevel() const{ return m_logLevel; } /** * The log level being written to CloudWatch Logs. */ inline bool LogLevelHasBeenSet() const { return m_logLevelHasBeenSet; } /** * The log level being written to CloudWatch Logs. */ inline void SetLogLevel(const LogLevel& value) { m_logLevelHasBeenSet = true; m_logLevel = value; } /** * The log level being written to CloudWatch Logs. */ inline void SetLogLevel(LogLevel&& value) { m_logLevelHasBeenSet = true; m_logLevel = std::move(value); } /** * The log level being written to CloudWatch Logs. */ inline ChannelSummary& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;} /** * The log level being written to CloudWatch Logs. */ inline ChannelSummary& WithLogLevel(LogLevel&& value) { SetLogLevel(std::move(value)); return *this;} /** * Maintenance settings for this channel. */ inline const MaintenanceStatus& GetMaintenance() const{ return m_maintenance; } /** * Maintenance settings for this channel. */ inline bool MaintenanceHasBeenSet() const { return m_maintenanceHasBeenSet; } /** * Maintenance settings for this channel. */ inline void SetMaintenance(const MaintenanceStatus& value) { m_maintenanceHasBeenSet = true; m_maintenance = value; } /** * Maintenance settings for this channel. */ inline void SetMaintenance(MaintenanceStatus&& value) { m_maintenanceHasBeenSet = true; m_maintenance = std::move(value); } /** * Maintenance settings for this channel. */ inline ChannelSummary& WithMaintenance(const MaintenanceStatus& value) { SetMaintenance(value); return *this;} /** * Maintenance settings for this channel. */ inline ChannelSummary& WithMaintenance(MaintenanceStatus&& value) { SetMaintenance(std::move(value)); return *this;} /** * The name of the channel. (user-mutable) */ inline const Aws::String& GetName() const{ return m_name; } /** * The name of the channel. (user-mutable) */ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** * The name of the channel. (user-mutable) */ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** * The name of the channel. (user-mutable) */ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** * The name of the channel. (user-mutable) */ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** * The name of the channel. (user-mutable) */ inline ChannelSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** * The name of the channel. (user-mutable) */ inline ChannelSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** * The name of the channel. (user-mutable) */ inline ChannelSummary& WithName(const char* value) { SetName(value); return *this;} /** * The number of currently healthy pipelines. */ inline int GetPipelinesRunningCount() const{ return m_pipelinesRunningCount; } /** * The number of currently healthy pipelines. */ inline bool PipelinesRunningCountHasBeenSet() const { return m_pipelinesRunningCountHasBeenSet; } /** * The number of currently healthy pipelines. */ inline void SetPipelinesRunningCount(int value) { m_pipelinesRunningCountHasBeenSet = true; m_pipelinesRunningCount = value; } /** * The number of currently healthy pipelines. */ inline ChannelSummary& WithPipelinesRunningCount(int value) { SetPipelinesRunningCount(value); return *this;} /** * The Amazon Resource Name (ARN) of the role assumed when running the Channel. */ inline const Aws::String& GetRoleArn() const{ return m_roleArn; } /** * The Amazon Resource Name (ARN) of the role assumed when running the Channel. */ inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; } /** * The Amazon Resource Name (ARN) of the role assumed when running the Channel. */ inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; } /** * The Amazon Resource Name (ARN) of the role assumed when running the Channel. */ inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); } /** * The Amazon Resource Name (ARN) of the role assumed when running the Channel. */ inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); } /** * The Amazon Resource Name (ARN) of the role assumed when running the Channel. */ inline ChannelSummary& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;} /** * The Amazon Resource Name (ARN) of the role assumed when running the Channel. */ inline ChannelSummary& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;} /** * The Amazon Resource Name (ARN) of the role assumed when running the Channel. */ inline ChannelSummary& WithRoleArn(const char* value) { SetRoleArn(value); return *this;} inline const ChannelState& GetState() const{ return m_state; } inline bool StateHasBeenSet() const { return m_stateHasBeenSet; } inline void SetState(const ChannelState& value) { m_stateHasBeenSet = true; m_state = value; } inline void SetState(ChannelState&& value) { m_stateHasBeenSet = true; m_state = std::move(value); } inline ChannelSummary& WithState(const ChannelState& value) { SetState(value); return *this;} inline ChannelSummary& WithState(ChannelState&& value) { SetState(std::move(value)); return *this;} /** * A collection of key-value pairs. */ inline const Aws::Map& GetTags() const{ return m_tags; } /** * A collection of key-value pairs. */ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** * A collection of key-value pairs. */ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** * A collection of key-value pairs. */ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** * A collection of key-value pairs. */ inline ChannelSummary& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** * A collection of key-value pairs. */ inline ChannelSummary& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** * A collection of key-value pairs. */ inline ChannelSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** * A collection of key-value pairs. */ inline ChannelSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** * A collection of key-value pairs. */ inline ChannelSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** * A collection of key-value pairs. */ inline ChannelSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** * A collection of key-value pairs. */ inline ChannelSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** * A collection of key-value pairs. */ inline ChannelSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** * A collection of key-value pairs. */ inline ChannelSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** * Settings for any VPC outputs. */ inline const VpcOutputSettingsDescription& GetVpc() const{ return m_vpc; } /** * Settings for any VPC outputs. */ inline bool VpcHasBeenSet() const { return m_vpcHasBeenSet; } /** * Settings for any VPC outputs. */ inline void SetVpc(const VpcOutputSettingsDescription& value) { m_vpcHasBeenSet = true; m_vpc = value; } /** * Settings for any VPC outputs. */ inline void SetVpc(VpcOutputSettingsDescription&& value) { m_vpcHasBeenSet = true; m_vpc = std::move(value); } /** * Settings for any VPC outputs. */ inline ChannelSummary& WithVpc(const VpcOutputSettingsDescription& value) { SetVpc(value); return *this;} /** * Settings for any VPC outputs. */ inline ChannelSummary& WithVpc(VpcOutputSettingsDescription&& value) { SetVpc(std::move(value)); return *this;} private: Aws::String m_arn; bool m_arnHasBeenSet = false; CdiInputSpecification m_cdiInputSpecification; bool m_cdiInputSpecificationHasBeenSet = false; ChannelClass m_channelClass; bool m_channelClassHasBeenSet = false; Aws::Vector m_destinations; bool m_destinationsHasBeenSet = false; Aws::Vector m_egressEndpoints; bool m_egressEndpointsHasBeenSet = false; Aws::String m_id; bool m_idHasBeenSet = false; Aws::Vector m_inputAttachments; bool m_inputAttachmentsHasBeenSet = false; InputSpecification m_inputSpecification; bool m_inputSpecificationHasBeenSet = false; LogLevel m_logLevel; bool m_logLevelHasBeenSet = false; MaintenanceStatus m_maintenance; bool m_maintenanceHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; int m_pipelinesRunningCount; bool m_pipelinesRunningCountHasBeenSet = false; Aws::String m_roleArn; bool m_roleArnHasBeenSet = false; ChannelState m_state; bool m_stateHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; VpcOutputSettingsDescription m_vpc; bool m_vpcHasBeenSet = false; }; } // namespace Model } // namespace MediaLive } // namespace Aws