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

Specifies the audio input specifications.

See Also:

AWS * API Reference

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

Time for how long Amazon Lex waits before speech input is truncated and the * speech is returned to application.

*/ inline int GetMaxLengthMs() const{ return m_maxLengthMs; } /** *

Time for how long Amazon Lex waits before speech input is truncated and the * speech is returned to application.

*/ inline bool MaxLengthMsHasBeenSet() const { return m_maxLengthMsHasBeenSet; } /** *

Time for how long Amazon Lex waits before speech input is truncated and the * speech is returned to application.

*/ inline void SetMaxLengthMs(int value) { m_maxLengthMsHasBeenSet = true; m_maxLengthMs = value; } /** *

Time for how long Amazon Lex waits before speech input is truncated and the * speech is returned to application.

*/ inline AudioSpecification& WithMaxLengthMs(int value) { SetMaxLengthMs(value); return *this;} /** *

Time for which a bot waits after the customer stops speaking to assume the * utterance is finished.

*/ inline int GetEndTimeoutMs() const{ return m_endTimeoutMs; } /** *

Time for which a bot waits after the customer stops speaking to assume the * utterance is finished.

*/ inline bool EndTimeoutMsHasBeenSet() const { return m_endTimeoutMsHasBeenSet; } /** *

Time for which a bot waits after the customer stops speaking to assume the * utterance is finished.

*/ inline void SetEndTimeoutMs(int value) { m_endTimeoutMsHasBeenSet = true; m_endTimeoutMs = value; } /** *

Time for which a bot waits after the customer stops speaking to assume the * utterance is finished.

*/ inline AudioSpecification& WithEndTimeoutMs(int value) { SetEndTimeoutMs(value); return *this;} private: int m_maxLengthMs; bool m_maxLengthMsHasBeenSet = false; int m_endTimeoutMs; bool m_endTimeoutMsHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws