/**
* 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
#include
#include
namespace Aws
{
template
class AmazonWebServiceResult;
namespace Utils
{
namespace Json
{
class JsonValue;
} // namespace Json
} // namespace Utils
namespace MediaLive
{
namespace Model
{
/**
* Placeholder documentation for StartChannelResponseSee Also:
AWS
* API Reference
*/
class StartChannelResult
{
public:
AWS_MEDIALIVE_API StartChannelResult();
AWS_MEDIALIVE_API StartChannelResult(const Aws::AmazonWebServiceResult& result);
AWS_MEDIALIVE_API StartChannelResult& operator=(const Aws::AmazonWebServiceResult& result);
/**
* The unique arn of the channel.
*/
inline const Aws::String& GetArn() const{ return m_arn; }
/**
* The unique arn of the channel.
*/
inline void SetArn(const Aws::String& value) { m_arn = value; }
/**
* The unique arn of the channel.
*/
inline void SetArn(Aws::String&& value) { m_arn = std::move(value); }
/**
* The unique arn of the channel.
*/
inline void SetArn(const char* value) { m_arn.assign(value); }
/**
* The unique arn of the channel.
*/
inline StartChannelResult& WithArn(const Aws::String& value) { SetArn(value); return *this;}
/**
* The unique arn of the channel.
*/
inline StartChannelResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
/**
* The unique arn of the channel.
*/
inline StartChannelResult& 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 void SetCdiInputSpecification(const CdiInputSpecification& value) { m_cdiInputSpecification = value; }
/**
* Specification of CDI inputs for this channel
*/
inline void SetCdiInputSpecification(CdiInputSpecification&& value) { m_cdiInputSpecification = std::move(value); }
/**
* Specification of CDI inputs for this channel
*/
inline StartChannelResult& WithCdiInputSpecification(const CdiInputSpecification& value) { SetCdiInputSpecification(value); return *this;}
/**
* Specification of CDI inputs for this channel
*/
inline StartChannelResult& 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 void SetChannelClass(const ChannelClass& value) { 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_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 StartChannelResult& 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 StartChannelResult& 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 void SetDestinations(const Aws::Vector& value) { 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_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 StartChannelResult& 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 StartChannelResult& 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 StartChannelResult& AddDestinations(const OutputDestination& value) { 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 StartChannelResult& AddDestinations(OutputDestination&& value) { 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 void SetEgressEndpoints(const Aws::Vector& value) { m_egressEndpoints = value; }
/**
* The endpoints where outgoing connections initiate from
*/
inline void SetEgressEndpoints(Aws::Vector&& value) { m_egressEndpoints = std::move(value); }
/**
* The endpoints where outgoing connections initiate from
*/
inline StartChannelResult& WithEgressEndpoints(const Aws::Vector& value) { SetEgressEndpoints(value); return *this;}
/**
* The endpoints where outgoing connections initiate from
*/
inline StartChannelResult& WithEgressEndpoints(Aws::Vector&& value) { SetEgressEndpoints(std::move(value)); return *this;}
/**
* The endpoints where outgoing connections initiate from
*/
inline StartChannelResult& AddEgressEndpoints(const ChannelEgressEndpoint& value) { m_egressEndpoints.push_back(value); return *this; }
/**
* The endpoints where outgoing connections initiate from
*/
inline StartChannelResult& AddEgressEndpoints(ChannelEgressEndpoint&& value) { m_egressEndpoints.push_back(std::move(value)); return *this; }
inline const EncoderSettings& GetEncoderSettings() const{ return m_encoderSettings; }
inline void SetEncoderSettings(const EncoderSettings& value) { m_encoderSettings = value; }
inline void SetEncoderSettings(EncoderSettings&& value) { m_encoderSettings = std::move(value); }
inline StartChannelResult& WithEncoderSettings(const EncoderSettings& value) { SetEncoderSettings(value); return *this;}
inline StartChannelResult& WithEncoderSettings(EncoderSettings&& value) { SetEncoderSettings(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 void SetId(const Aws::String& value) { m_id = value; }
/**
* The unique id of the channel.
*/
inline void SetId(Aws::String&& value) { m_id = std::move(value); }
/**
* The unique id of the channel.
*/
inline void SetId(const char* value) { m_id.assign(value); }
/**
* The unique id of the channel.
*/
inline StartChannelResult& WithId(const Aws::String& value) { SetId(value); return *this;}
/**
* The unique id of the channel.
*/
inline StartChannelResult& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
/**
* The unique id of the channel.
*/
inline StartChannelResult& 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 void SetInputAttachments(const Aws::Vector& value) { m_inputAttachments = value; }
/**
* List of input attachments for channel.
*/
inline void SetInputAttachments(Aws::Vector&& value) { m_inputAttachments = std::move(value); }
/**
* List of input attachments for channel.
*/
inline StartChannelResult& WithInputAttachments(const Aws::Vector& value) { SetInputAttachments(value); return *this;}
/**
* List of input attachments for channel.
*/
inline StartChannelResult& WithInputAttachments(Aws::Vector&& value) { SetInputAttachments(std::move(value)); return *this;}
/**
* List of input attachments for channel.
*/
inline StartChannelResult& AddInputAttachments(const InputAttachment& value) { m_inputAttachments.push_back(value); return *this; }
/**
* List of input attachments for channel.
*/
inline StartChannelResult& AddInputAttachments(InputAttachment&& value) { 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 void SetInputSpecification(const InputSpecification& value) { m_inputSpecification = value; }
/**
* Specification of network and file inputs for this channel
*/
inline void SetInputSpecification(InputSpecification&& value) { m_inputSpecification = std::move(value); }
/**
* Specification of network and file inputs for this channel
*/
inline StartChannelResult& WithInputSpecification(const InputSpecification& value) { SetInputSpecification(value); return *this;}
/**
* Specification of network and file inputs for this channel
*/
inline StartChannelResult& 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 void SetLogLevel(const LogLevel& value) { m_logLevel = value; }
/**
* The log level being written to CloudWatch Logs.
*/
inline void SetLogLevel(LogLevel&& value) { m_logLevel = std::move(value); }
/**
* The log level being written to CloudWatch Logs.
*/
inline StartChannelResult& WithLogLevel(const LogLevel& value) { SetLogLevel(value); return *this;}
/**
* The log level being written to CloudWatch Logs.
*/
inline StartChannelResult& 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 void SetMaintenance(const MaintenanceStatus& value) { m_maintenance = value; }
/**
* Maintenance settings for this channel.
*/
inline void SetMaintenance(MaintenanceStatus&& value) { m_maintenance = std::move(value); }
/**
* Maintenance settings for this channel.
*/
inline StartChannelResult& WithMaintenance(const MaintenanceStatus& value) { SetMaintenance(value); return *this;}
/**
* Maintenance settings for this channel.
*/
inline StartChannelResult& 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 void SetName(const Aws::String& value) { m_name = value; }
/**
* The name of the channel. (user-mutable)
*/
inline void SetName(Aws::String&& value) { m_name = std::move(value); }
/**
* The name of the channel. (user-mutable)
*/
inline void SetName(const char* value) { m_name.assign(value); }
/**
* The name of the channel. (user-mutable)
*/
inline StartChannelResult& WithName(const Aws::String& value) { SetName(value); return *this;}
/**
* The name of the channel. (user-mutable)
*/
inline StartChannelResult& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
/**
* The name of the channel. (user-mutable)
*/
inline StartChannelResult& WithName(const char* value) { SetName(value); return *this;}
/**
* Runtime details for the pipelines of a running channel.
*/
inline const Aws::Vector& GetPipelineDetails() const{ return m_pipelineDetails; }
/**
* Runtime details for the pipelines of a running channel.
*/
inline void SetPipelineDetails(const Aws::Vector& value) { m_pipelineDetails = value; }
/**
* Runtime details for the pipelines of a running channel.
*/
inline void SetPipelineDetails(Aws::Vector&& value) { m_pipelineDetails = std::move(value); }
/**
* Runtime details for the pipelines of a running channel.
*/
inline StartChannelResult& WithPipelineDetails(const Aws::Vector& value) { SetPipelineDetails(value); return *this;}
/**
* Runtime details for the pipelines of a running channel.
*/
inline StartChannelResult& WithPipelineDetails(Aws::Vector&& value) { SetPipelineDetails(std::move(value)); return *this;}
/**
* Runtime details for the pipelines of a running channel.
*/
inline StartChannelResult& AddPipelineDetails(const PipelineDetail& value) { m_pipelineDetails.push_back(value); return *this; }
/**
* Runtime details for the pipelines of a running channel.
*/
inline StartChannelResult& AddPipelineDetails(PipelineDetail&& value) { m_pipelineDetails.push_back(std::move(value)); return *this; }
/**
* The number of currently healthy pipelines.
*/
inline int GetPipelinesRunningCount() const{ return m_pipelinesRunningCount; }
/**
* The number of currently healthy pipelines.
*/
inline void SetPipelinesRunningCount(int value) { m_pipelinesRunningCount = value; }
/**
* The number of currently healthy pipelines.
*/
inline StartChannelResult& 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 void SetRoleArn(const Aws::String& value) { m_roleArn = value; }
/**
* The Amazon Resource Name (ARN) of the role assumed when running the Channel.
*/
inline void SetRoleArn(Aws::String&& value) { 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_roleArn.assign(value); }
/**
* The Amazon Resource Name (ARN) of the role assumed when running the Channel.
*/
inline StartChannelResult& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
/**
* The Amazon Resource Name (ARN) of the role assumed when running the Channel.
*/
inline StartChannelResult& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
/**
* The Amazon Resource Name (ARN) of the role assumed when running the Channel.
*/
inline StartChannelResult& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
inline const ChannelState& GetState() const{ return m_state; }
inline void SetState(const ChannelState& value) { m_state = value; }
inline void SetState(ChannelState&& value) { m_state = std::move(value); }
inline StartChannelResult& WithState(const ChannelState& value) { SetState(value); return *this;}
inline StartChannelResult& 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 void SetTags(const Aws::Map& value) { m_tags = value; }
/**
* A collection of key-value pairs.
*/
inline void SetTags(Aws::Map&& value) { m_tags = std::move(value); }
/**
* A collection of key-value pairs.
*/
inline StartChannelResult& WithTags(const Aws::Map& value) { SetTags(value); return *this;}
/**
* A collection of key-value pairs.
*/
inline StartChannelResult& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;}
/**
* A collection of key-value pairs.
*/
inline StartChannelResult& AddTags(const Aws::String& key, const Aws::String& value) { m_tags.emplace(key, value); return *this; }
/**
* A collection of key-value pairs.
*/
inline StartChannelResult& AddTags(Aws::String&& key, const Aws::String& value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* A collection of key-value pairs.
*/
inline StartChannelResult& AddTags(const Aws::String& key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* A collection of key-value pairs.
*/
inline StartChannelResult& AddTags(Aws::String&& key, Aws::String&& value) { m_tags.emplace(std::move(key), std::move(value)); return *this; }
/**
* A collection of key-value pairs.
*/
inline StartChannelResult& AddTags(const char* key, Aws::String&& value) { m_tags.emplace(key, std::move(value)); return *this; }
/**
* A collection of key-value pairs.
*/
inline StartChannelResult& AddTags(Aws::String&& key, const char* value) { m_tags.emplace(std::move(key), value); return *this; }
/**
* A collection of key-value pairs.
*/
inline StartChannelResult& AddTags(const char* key, const char* value) { m_tags.emplace(key, value); return *this; }
/**
* Settings for VPC output
*/
inline const VpcOutputSettingsDescription& GetVpc() const{ return m_vpc; }
/**
* Settings for VPC output
*/
inline void SetVpc(const VpcOutputSettingsDescription& value) { m_vpc = value; }
/**
* Settings for VPC output
*/
inline void SetVpc(VpcOutputSettingsDescription&& value) { m_vpc = std::move(value); }
/**
* Settings for VPC output
*/
inline StartChannelResult& WithVpc(const VpcOutputSettingsDescription& value) { SetVpc(value); return *this;}
/**
* Settings for VPC output
*/
inline StartChannelResult& WithVpc(VpcOutputSettingsDescription&& value) { SetVpc(std::move(value)); return *this;}
inline const Aws::String& GetRequestId() const{ return m_requestId; }
inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
inline void SetRequestId(const char* value) { m_requestId.assign(value); }
inline StartChannelResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
inline StartChannelResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
inline StartChannelResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
private:
Aws::String m_arn;
CdiInputSpecification m_cdiInputSpecification;
ChannelClass m_channelClass;
Aws::Vector m_destinations;
Aws::Vector m_egressEndpoints;
EncoderSettings m_encoderSettings;
Aws::String m_id;
Aws::Vector m_inputAttachments;
InputSpecification m_inputSpecification;
LogLevel m_logLevel;
MaintenanceStatus m_maintenance;
Aws::String m_name;
Aws::Vector m_pipelineDetails;
int m_pipelinesRunningCount;
Aws::String m_roleArn;
ChannelState m_state;
Aws::Map m_tags;
VpcOutputSettingsDescription m_vpc;
Aws::String m_requestId;
};
} // namespace Model
} // namespace MediaLive
} // namespace Aws