/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Obtains information from the user. To define a prompt, provide one or more
* messages and specify the number of attempts to get information from the user. If
* you provide more than one message, Amazon Lex chooses one of the messages to use
* to prompt the user. For more information, see how-it-works.See
* Also:
AWS
* API Reference
An array of objects, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup * Language (SSML).
*/ inline const Aws::VectorAn array of objects, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup * Language (SSML).
*/ inline bool MessagesHasBeenSet() const { return m_messagesHasBeenSet; } /** *An array of objects, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup * Language (SSML).
*/ inline void SetMessages(const Aws::VectorAn array of objects, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup * Language (SSML).
*/ inline void SetMessages(Aws::VectorAn array of objects, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup * Language (SSML).
*/ inline Prompt& WithMessages(const Aws::VectorAn array of objects, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup * Language (SSML).
*/ inline Prompt& WithMessages(Aws::VectorAn array of objects, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup * Language (SSML).
*/ inline Prompt& AddMessages(const Message& value) { m_messagesHasBeenSet = true; m_messages.push_back(value); return *this; } /** *An array of objects, each of which provides a message string and its type. * You can specify the message string in plain text or in Speech Synthesis Markup * Language (SSML).
*/ inline Prompt& AddMessages(Message&& value) { m_messagesHasBeenSet = true; m_messages.push_back(std::move(value)); return *this; } /** *The number of times to prompt the user for information.
*/ inline int GetMaxAttempts() const{ return m_maxAttempts; } /** *The number of times to prompt the user for information.
*/ inline bool MaxAttemptsHasBeenSet() const { return m_maxAttemptsHasBeenSet; } /** *The number of times to prompt the user for information.
*/ inline void SetMaxAttempts(int value) { m_maxAttemptsHasBeenSet = true; m_maxAttempts = value; } /** *The number of times to prompt the user for information.
*/ inline Prompt& WithMaxAttempts(int value) { SetMaxAttempts(value); return *this;} /** *A response card. Amazon Lex uses this prompt at runtime, in the
* PostText
API response. It substitutes session attributes and slot
* values for placeholders in the response card. For more information, see
* ex-resp-card.
A response card. Amazon Lex uses this prompt at runtime, in the
* PostText
API response. It substitutes session attributes and slot
* values for placeholders in the response card. For more information, see
* ex-resp-card.
A response card. Amazon Lex uses this prompt at runtime, in the
* PostText
API response. It substitutes session attributes and slot
* values for placeholders in the response card. For more information, see
* ex-resp-card.
A response card. Amazon Lex uses this prompt at runtime, in the
* PostText
API response. It substitutes session attributes and slot
* values for placeholders in the response card. For more information, see
* ex-resp-card.
A response card. Amazon Lex uses this prompt at runtime, in the
* PostText
API response. It substitutes session attributes and slot
* values for placeholders in the response card. For more information, see
* ex-resp-card.
A response card. Amazon Lex uses this prompt at runtime, in the
* PostText
API response. It substitutes session attributes and slot
* values for placeholders in the response card. For more information, see
* ex-resp-card.
A response card. Amazon Lex uses this prompt at runtime, in the
* PostText
API response. It substitutes session attributes and slot
* values for placeholders in the response card. For more information, see
* ex-resp-card.
A response card. Amazon Lex uses this prompt at runtime, in the
* PostText
API response. It substitutes session attributes and slot
* values for placeholders in the response card. For more information, see
* ex-resp-card.