/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Event sent from Amazon Lex V2 to indicate to the client application should
* stop playback of audio. For example, if the client is playing a prompt that asks
* for the user's telephone number, the user might start to say the phone number
* before the prompt is complete. Amazon Lex V2 sends this event to the client
* application to indicate that the user is responding and that Amazon Lex V2 is
* processing their input.See Also:
AWS
* API Reference
Indicates the type of user input that Amazon Lex V2 detected.
*/ inline const PlaybackInterruptionReason& GetEventReason() const{ return m_eventReason; } /** *Indicates the type of user input that Amazon Lex V2 detected.
*/ inline bool EventReasonHasBeenSet() const { return m_eventReasonHasBeenSet; } /** *Indicates the type of user input that Amazon Lex V2 detected.
*/ inline void SetEventReason(const PlaybackInterruptionReason& value) { m_eventReasonHasBeenSet = true; m_eventReason = value; } /** *Indicates the type of user input that Amazon Lex V2 detected.
*/ inline void SetEventReason(PlaybackInterruptionReason&& value) { m_eventReasonHasBeenSet = true; m_eventReason = std::move(value); } /** *Indicates the type of user input that Amazon Lex V2 detected.
*/ inline PlaybackInterruptionEvent& WithEventReason(const PlaybackInterruptionReason& value) { SetEventReason(value); return *this;} /** *Indicates the type of user input that Amazon Lex V2 detected.
*/ inline PlaybackInterruptionEvent& WithEventReason(PlaybackInterruptionReason&& value) { SetEventReason(std::move(value)); return *this;} /** *The identifier of the event that contained the audio, DTMF, or text that * caused the interruption.
*/ inline const Aws::String& GetCausedByEventId() const{ return m_causedByEventId; } /** *The identifier of the event that contained the audio, DTMF, or text that * caused the interruption.
*/ inline bool CausedByEventIdHasBeenSet() const { return m_causedByEventIdHasBeenSet; } /** *The identifier of the event that contained the audio, DTMF, or text that * caused the interruption.
*/ inline void SetCausedByEventId(const Aws::String& value) { m_causedByEventIdHasBeenSet = true; m_causedByEventId = value; } /** *The identifier of the event that contained the audio, DTMF, or text that * caused the interruption.
*/ inline void SetCausedByEventId(Aws::String&& value) { m_causedByEventIdHasBeenSet = true; m_causedByEventId = std::move(value); } /** *The identifier of the event that contained the audio, DTMF, or text that * caused the interruption.
*/ inline void SetCausedByEventId(const char* value) { m_causedByEventIdHasBeenSet = true; m_causedByEventId.assign(value); } /** *The identifier of the event that contained the audio, DTMF, or text that * caused the interruption.
*/ inline PlaybackInterruptionEvent& WithCausedByEventId(const Aws::String& value) { SetCausedByEventId(value); return *this;} /** *The identifier of the event that contained the audio, DTMF, or text that * caused the interruption.
*/ inline PlaybackInterruptionEvent& WithCausedByEventId(Aws::String&& value) { SetCausedByEventId(std::move(value)); return *this;} /** *The identifier of the event that contained the audio, DTMF, or text that * caused the interruption.
*/ inline PlaybackInterruptionEvent& WithCausedByEventId(const char* value) { SetCausedByEventId(value); return *this;} /** *A unique identifier of the event sent by Amazon Lex V2. The identifier is in
* the form RESPONSE-N
, where N is a number starting with one and
* incremented for each event sent by Amazon Lex V2 in the current session.
A unique identifier of the event sent by Amazon Lex V2. The identifier is in
* the form RESPONSE-N
, where N is a number starting with one and
* incremented for each event sent by Amazon Lex V2 in the current session.
A unique identifier of the event sent by Amazon Lex V2. The identifier is in
* the form RESPONSE-N
, where N is a number starting with one and
* incremented for each event sent by Amazon Lex V2 in the current session.
A unique identifier of the event sent by Amazon Lex V2. The identifier is in
* the form RESPONSE-N
, where N is a number starting with one and
* incremented for each event sent by Amazon Lex V2 in the current session.
A unique identifier of the event sent by Amazon Lex V2. The identifier is in
* the form RESPONSE-N
, where N is a number starting with one and
* incremented for each event sent by Amazon Lex V2 in the current session.
A unique identifier of the event sent by Amazon Lex V2. The identifier is in
* the form RESPONSE-N
, where N is a number starting with one and
* incremented for each event sent by Amazon Lex V2 in the current session.
A unique identifier of the event sent by Amazon Lex V2. The identifier is in
* the form RESPONSE-N
, where N is a number starting with one and
* incremented for each event sent by Amazon Lex V2 in the current session.
A unique identifier of the event sent by Amazon Lex V2. The identifier is in
* the form RESPONSE-N
, where N is a number starting with one and
* incremented for each event sent by Amazon Lex V2 in the current session.