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

The runtime configuration settings for the Kinesis video stream * source.

See Also:

AWS * API Reference

*/ class KinesisVideoStreamSourceRuntimeConfiguration { public: AWS_CHIMESDKMEDIAPIPELINES_API KinesisVideoStreamSourceRuntimeConfiguration(); AWS_CHIMESDKMEDIAPIPELINES_API KinesisVideoStreamSourceRuntimeConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKMEDIAPIPELINES_API KinesisVideoStreamSourceRuntimeConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_CHIMESDKMEDIAPIPELINES_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The streams in the source runtime configuration of a Kinesis video * stream.

*/ inline const Aws::Vector& GetStreams() const{ return m_streams; } /** *

The streams in the source runtime configuration of a Kinesis video * stream.

*/ inline bool StreamsHasBeenSet() const { return m_streamsHasBeenSet; } /** *

The streams in the source runtime configuration of a Kinesis video * stream.

*/ inline void SetStreams(const Aws::Vector& value) { m_streamsHasBeenSet = true; m_streams = value; } /** *

The streams in the source runtime configuration of a Kinesis video * stream.

*/ inline void SetStreams(Aws::Vector&& value) { m_streamsHasBeenSet = true; m_streams = std::move(value); } /** *

The streams in the source runtime configuration of a Kinesis video * stream.

*/ inline KinesisVideoStreamSourceRuntimeConfiguration& WithStreams(const Aws::Vector& value) { SetStreams(value); return *this;} /** *

The streams in the source runtime configuration of a Kinesis video * stream.

*/ inline KinesisVideoStreamSourceRuntimeConfiguration& WithStreams(Aws::Vector&& value) { SetStreams(std::move(value)); return *this;} /** *

The streams in the source runtime configuration of a Kinesis video * stream.

*/ inline KinesisVideoStreamSourceRuntimeConfiguration& AddStreams(const StreamConfiguration& value) { m_streamsHasBeenSet = true; m_streams.push_back(value); return *this; } /** *

The streams in the source runtime configuration of a Kinesis video * stream.

*/ inline KinesisVideoStreamSourceRuntimeConfiguration& AddStreams(StreamConfiguration&& value) { m_streamsHasBeenSet = true; m_streams.push_back(std::move(value)); return *this; } /** *

Specifies the encoding of your input audio. Supported format: PCM (only * signed 16-bit little-endian audio formats, which does not include WAV)

*

For more information, see Media * formats in the Amazon Transcribe Developer Guide.

*/ inline const MediaEncoding& GetMediaEncoding() const{ return m_mediaEncoding; } /** *

Specifies the encoding of your input audio. Supported format: PCM (only * signed 16-bit little-endian audio formats, which does not include WAV)

*

For more information, see Media * formats in the Amazon Transcribe Developer Guide.

*/ inline bool MediaEncodingHasBeenSet() const { return m_mediaEncodingHasBeenSet; } /** *

Specifies the encoding of your input audio. Supported format: PCM (only * signed 16-bit little-endian audio formats, which does not include WAV)

*

For more information, see Media * formats in the Amazon Transcribe Developer Guide.

*/ inline void SetMediaEncoding(const MediaEncoding& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = value; } /** *

Specifies the encoding of your input audio. Supported format: PCM (only * signed 16-bit little-endian audio formats, which does not include WAV)

*

For more information, see Media * formats in the Amazon Transcribe Developer Guide.

*/ inline void SetMediaEncoding(MediaEncoding&& value) { m_mediaEncodingHasBeenSet = true; m_mediaEncoding = std::move(value); } /** *

Specifies the encoding of your input audio. Supported format: PCM (only * signed 16-bit little-endian audio formats, which does not include WAV)

*

For more information, see Media * formats in the Amazon Transcribe Developer Guide.

*/ inline KinesisVideoStreamSourceRuntimeConfiguration& WithMediaEncoding(const MediaEncoding& value) { SetMediaEncoding(value); return *this;} /** *

Specifies the encoding of your input audio. Supported format: PCM (only * signed 16-bit little-endian audio formats, which does not include WAV)

*

For more information, see Media * formats in the Amazon Transcribe Developer Guide.

*/ inline KinesisVideoStreamSourceRuntimeConfiguration& WithMediaEncoding(MediaEncoding&& value) { SetMediaEncoding(std::move(value)); return *this;} /** *

The sample rate of the input audio (in hertz). Low-quality audio, such as * telephone audio, is typically around 8,000 Hz. High-quality audio typically * ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify must * match that of your audio.

Valid Range: Minimum value of 8000. Maximum * value of 48000.

*/ inline int GetMediaSampleRate() const{ return m_mediaSampleRate; } /** *

The sample rate of the input audio (in hertz). Low-quality audio, such as * telephone audio, is typically around 8,000 Hz. High-quality audio typically * ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify must * match that of your audio.

Valid Range: Minimum value of 8000. Maximum * value of 48000.

*/ inline bool MediaSampleRateHasBeenSet() const { return m_mediaSampleRateHasBeenSet; } /** *

The sample rate of the input audio (in hertz). Low-quality audio, such as * telephone audio, is typically around 8,000 Hz. High-quality audio typically * ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify must * match that of your audio.

Valid Range: Minimum value of 8000. Maximum * value of 48000.

*/ inline void SetMediaSampleRate(int value) { m_mediaSampleRateHasBeenSet = true; m_mediaSampleRate = value; } /** *

The sample rate of the input audio (in hertz). Low-quality audio, such as * telephone audio, is typically around 8,000 Hz. High-quality audio typically * ranges from 16,000 Hz to 48,000 Hz. Note that the sample rate you specify must * match that of your audio.

Valid Range: Minimum value of 8000. Maximum * value of 48000.

*/ inline KinesisVideoStreamSourceRuntimeConfiguration& WithMediaSampleRate(int value) { SetMediaSampleRate(value); return *this;} private: Aws::Vector m_streams; bool m_streamsHasBeenSet = false; MediaEncoding m_mediaEncoding; bool m_mediaEncodingHasBeenSet = false; int m_mediaSampleRate; bool m_mediaSampleRateHasBeenSet = false; }; } // namespace Model } // namespace ChimeSDKMediaPipelines } // namespace Aws