/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Specifies the DTMF input specifications.See Also:
AWS
* API Reference
The maximum number of DTMF digits allowed in an utterance.
*/ inline int GetMaxLength() const{ return m_maxLength; } /** *The maximum number of DTMF digits allowed in an utterance.
*/ inline bool MaxLengthHasBeenSet() const { return m_maxLengthHasBeenSet; } /** *The maximum number of DTMF digits allowed in an utterance.
*/ inline void SetMaxLength(int value) { m_maxLengthHasBeenSet = true; m_maxLength = value; } /** *The maximum number of DTMF digits allowed in an utterance.
*/ inline DTMFSpecification& WithMaxLength(int value) { SetMaxLength(value); return *this;} /** *How long the bot should wait after the last DTMF character input before * assuming that the input has concluded.
*/ inline int GetEndTimeoutMs() const{ return m_endTimeoutMs; } /** *How long the bot should wait after the last DTMF character input before * assuming that the input has concluded.
*/ inline bool EndTimeoutMsHasBeenSet() const { return m_endTimeoutMsHasBeenSet; } /** *How long the bot should wait after the last DTMF character input before * assuming that the input has concluded.
*/ inline void SetEndTimeoutMs(int value) { m_endTimeoutMsHasBeenSet = true; m_endTimeoutMs = value; } /** *How long the bot should wait after the last DTMF character input before * assuming that the input has concluded.
*/ inline DTMFSpecification& WithEndTimeoutMs(int value) { SetEndTimeoutMs(value); return *this;} /** *The DTMF character that clears the accumulated DTMF digits and immediately * ends the input.
*/ inline const Aws::String& GetDeletionCharacter() const{ return m_deletionCharacter; } /** *The DTMF character that clears the accumulated DTMF digits and immediately * ends the input.
*/ inline bool DeletionCharacterHasBeenSet() const { return m_deletionCharacterHasBeenSet; } /** *The DTMF character that clears the accumulated DTMF digits and immediately * ends the input.
*/ inline void SetDeletionCharacter(const Aws::String& value) { m_deletionCharacterHasBeenSet = true; m_deletionCharacter = value; } /** *The DTMF character that clears the accumulated DTMF digits and immediately * ends the input.
*/ inline void SetDeletionCharacter(Aws::String&& value) { m_deletionCharacterHasBeenSet = true; m_deletionCharacter = std::move(value); } /** *The DTMF character that clears the accumulated DTMF digits and immediately * ends the input.
*/ inline void SetDeletionCharacter(const char* value) { m_deletionCharacterHasBeenSet = true; m_deletionCharacter.assign(value); } /** *The DTMF character that clears the accumulated DTMF digits and immediately * ends the input.
*/ inline DTMFSpecification& WithDeletionCharacter(const Aws::String& value) { SetDeletionCharacter(value); return *this;} /** *The DTMF character that clears the accumulated DTMF digits and immediately * ends the input.
*/ inline DTMFSpecification& WithDeletionCharacter(Aws::String&& value) { SetDeletionCharacter(std::move(value)); return *this;} /** *The DTMF character that clears the accumulated DTMF digits and immediately * ends the input.
*/ inline DTMFSpecification& WithDeletionCharacter(const char* value) { SetDeletionCharacter(value); return *this;} /** *The DTMF character that immediately ends input. If the user does not press * this character, the input ends after the end timeout.
*/ inline const Aws::String& GetEndCharacter() const{ return m_endCharacter; } /** *The DTMF character that immediately ends input. If the user does not press * this character, the input ends after the end timeout.
*/ inline bool EndCharacterHasBeenSet() const { return m_endCharacterHasBeenSet; } /** *The DTMF character that immediately ends input. If the user does not press * this character, the input ends after the end timeout.
*/ inline void SetEndCharacter(const Aws::String& value) { m_endCharacterHasBeenSet = true; m_endCharacter = value; } /** *The DTMF character that immediately ends input. If the user does not press * this character, the input ends after the end timeout.
*/ inline void SetEndCharacter(Aws::String&& value) { m_endCharacterHasBeenSet = true; m_endCharacter = std::move(value); } /** *The DTMF character that immediately ends input. If the user does not press * this character, the input ends after the end timeout.
*/ inline void SetEndCharacter(const char* value) { m_endCharacterHasBeenSet = true; m_endCharacter.assign(value); } /** *The DTMF character that immediately ends input. If the user does not press * this character, the input ends after the end timeout.
*/ inline DTMFSpecification& WithEndCharacter(const Aws::String& value) { SetEndCharacter(value); return *this;} /** *The DTMF character that immediately ends input. If the user does not press * this character, the input ends after the end timeout.
*/ inline DTMFSpecification& WithEndCharacter(Aws::String&& value) { SetEndCharacter(std::move(value)); return *this;} /** *The DTMF character that immediately ends input. If the user does not press * this character, the input ends after the end timeout.
*/ inline DTMFSpecification& WithEndCharacter(const char* value) { SetEndCharacter(value); return *this;} private: int m_maxLength; bool m_maxLengthHasBeenSet = false; int m_endTimeoutMs; bool m_endTimeoutMsHasBeenSet = false; Aws::String m_deletionCharacter; bool m_deletionCharacterHasBeenSet = false; Aws::String m_endCharacter; bool m_endCharacterHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws