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

Provides summary information for aggregated utterances. The * ListAggregatedUtterances operations combines all instances of the * same utterance into a single aggregated summary.

See Also:

AWS * API Reference

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

The text of the utterance. If the utterance was used with the * RecognizeUtterance operation, the text is the transcription of the * audio utterance.

*/ inline const Aws::String& GetUtterance() const{ return m_utterance; } /** *

The text of the utterance. If the utterance was used with the * RecognizeUtterance operation, the text is the transcription of the * audio utterance.

*/ inline bool UtteranceHasBeenSet() const { return m_utteranceHasBeenSet; } /** *

The text of the utterance. If the utterance was used with the * RecognizeUtterance operation, the text is the transcription of the * audio utterance.

*/ inline void SetUtterance(const Aws::String& value) { m_utteranceHasBeenSet = true; m_utterance = value; } /** *

The text of the utterance. If the utterance was used with the * RecognizeUtterance operation, the text is the transcription of the * audio utterance.

*/ inline void SetUtterance(Aws::String&& value) { m_utteranceHasBeenSet = true; m_utterance = std::move(value); } /** *

The text of the utterance. If the utterance was used with the * RecognizeUtterance operation, the text is the transcription of the * audio utterance.

*/ inline void SetUtterance(const char* value) { m_utteranceHasBeenSet = true; m_utterance.assign(value); } /** *

The text of the utterance. If the utterance was used with the * RecognizeUtterance operation, the text is the transcription of the * audio utterance.

*/ inline AggregatedUtterancesSummary& WithUtterance(const Aws::String& value) { SetUtterance(value); return *this;} /** *

The text of the utterance. If the utterance was used with the * RecognizeUtterance operation, the text is the transcription of the * audio utterance.

*/ inline AggregatedUtterancesSummary& WithUtterance(Aws::String&& value) { SetUtterance(std::move(value)); return *this;} /** *

The text of the utterance. If the utterance was used with the * RecognizeUtterance operation, the text is the transcription of the * audio utterance.

*/ inline AggregatedUtterancesSummary& WithUtterance(const char* value) { SetUtterance(value); return *this;} /** *

The number of times that the utterance was detected by Amazon Lex during the * time period. When an utterance is detected, it activates an intent or a * slot.

*/ inline int GetHitCount() const{ return m_hitCount; } /** *

The number of times that the utterance was detected by Amazon Lex during the * time period. When an utterance is detected, it activates an intent or a * slot.

*/ inline bool HitCountHasBeenSet() const { return m_hitCountHasBeenSet; } /** *

The number of times that the utterance was detected by Amazon Lex during the * time period. When an utterance is detected, it activates an intent or a * slot.

*/ inline void SetHitCount(int value) { m_hitCountHasBeenSet = true; m_hitCount = value; } /** *

The number of times that the utterance was detected by Amazon Lex during the * time period. When an utterance is detected, it activates an intent or a * slot.

*/ inline AggregatedUtterancesSummary& WithHitCount(int value) { SetHitCount(value); return *this;} /** *

The number of times that the utterance was missed by Amazon Lex An utterance * is missed when it doesn't activate an intent or slot.

*/ inline int GetMissedCount() const{ return m_missedCount; } /** *

The number of times that the utterance was missed by Amazon Lex An utterance * is missed when it doesn't activate an intent or slot.

*/ inline bool MissedCountHasBeenSet() const { return m_missedCountHasBeenSet; } /** *

The number of times that the utterance was missed by Amazon Lex An utterance * is missed when it doesn't activate an intent or slot.

*/ inline void SetMissedCount(int value) { m_missedCountHasBeenSet = true; m_missedCount = value; } /** *

The number of times that the utterance was missed by Amazon Lex An utterance * is missed when it doesn't activate an intent or slot.

*/ inline AggregatedUtterancesSummary& WithMissedCount(int value) { SetMissedCount(value); return *this;} /** *

The date and time that the utterance was first recorded in the time window * for aggregation. An utterance may have been sent to Amazon Lex before that time, * but only utterances within the time window are counted.

*/ inline const Aws::Utils::DateTime& GetUtteranceFirstRecordedInAggregationDuration() const{ return m_utteranceFirstRecordedInAggregationDuration; } /** *

The date and time that the utterance was first recorded in the time window * for aggregation. An utterance may have been sent to Amazon Lex before that time, * but only utterances within the time window are counted.

*/ inline bool UtteranceFirstRecordedInAggregationDurationHasBeenSet() const { return m_utteranceFirstRecordedInAggregationDurationHasBeenSet; } /** *

The date and time that the utterance was first recorded in the time window * for aggregation. An utterance may have been sent to Amazon Lex before that time, * but only utterances within the time window are counted.

*/ inline void SetUtteranceFirstRecordedInAggregationDuration(const Aws::Utils::DateTime& value) { m_utteranceFirstRecordedInAggregationDurationHasBeenSet = true; m_utteranceFirstRecordedInAggregationDuration = value; } /** *

The date and time that the utterance was first recorded in the time window * for aggregation. An utterance may have been sent to Amazon Lex before that time, * but only utterances within the time window are counted.

*/ inline void SetUtteranceFirstRecordedInAggregationDuration(Aws::Utils::DateTime&& value) { m_utteranceFirstRecordedInAggregationDurationHasBeenSet = true; m_utteranceFirstRecordedInAggregationDuration = std::move(value); } /** *

The date and time that the utterance was first recorded in the time window * for aggregation. An utterance may have been sent to Amazon Lex before that time, * but only utterances within the time window are counted.

*/ inline AggregatedUtterancesSummary& WithUtteranceFirstRecordedInAggregationDuration(const Aws::Utils::DateTime& value) { SetUtteranceFirstRecordedInAggregationDuration(value); return *this;} /** *

The date and time that the utterance was first recorded in the time window * for aggregation. An utterance may have been sent to Amazon Lex before that time, * but only utterances within the time window are counted.

*/ inline AggregatedUtterancesSummary& WithUtteranceFirstRecordedInAggregationDuration(Aws::Utils::DateTime&& value) { SetUtteranceFirstRecordedInAggregationDuration(std::move(value)); return *this;} /** *

The last date and time that an utterance was recorded in the time window for * aggregation. An utterance may be sent to Amazon Lex after that time, but only * utterances within the time window are counted.

*/ inline const Aws::Utils::DateTime& GetUtteranceLastRecordedInAggregationDuration() const{ return m_utteranceLastRecordedInAggregationDuration; } /** *

The last date and time that an utterance was recorded in the time window for * aggregation. An utterance may be sent to Amazon Lex after that time, but only * utterances within the time window are counted.

*/ inline bool UtteranceLastRecordedInAggregationDurationHasBeenSet() const { return m_utteranceLastRecordedInAggregationDurationHasBeenSet; } /** *

The last date and time that an utterance was recorded in the time window for * aggregation. An utterance may be sent to Amazon Lex after that time, but only * utterances within the time window are counted.

*/ inline void SetUtteranceLastRecordedInAggregationDuration(const Aws::Utils::DateTime& value) { m_utteranceLastRecordedInAggregationDurationHasBeenSet = true; m_utteranceLastRecordedInAggregationDuration = value; } /** *

The last date and time that an utterance was recorded in the time window for * aggregation. An utterance may be sent to Amazon Lex after that time, but only * utterances within the time window are counted.

*/ inline void SetUtteranceLastRecordedInAggregationDuration(Aws::Utils::DateTime&& value) { m_utteranceLastRecordedInAggregationDurationHasBeenSet = true; m_utteranceLastRecordedInAggregationDuration = std::move(value); } /** *

The last date and time that an utterance was recorded in the time window for * aggregation. An utterance may be sent to Amazon Lex after that time, but only * utterances within the time window are counted.

*/ inline AggregatedUtterancesSummary& WithUtteranceLastRecordedInAggregationDuration(const Aws::Utils::DateTime& value) { SetUtteranceLastRecordedInAggregationDuration(value); return *this;} /** *

The last date and time that an utterance was recorded in the time window for * aggregation. An utterance may be sent to Amazon Lex after that time, but only * utterances within the time window are counted.

*/ inline AggregatedUtterancesSummary& WithUtteranceLastRecordedInAggregationDuration(Aws::Utils::DateTime&& value) { SetUtteranceLastRecordedInAggregationDuration(std::move(value)); return *this;} /** *

Aggregated utterance data may contain utterances from versions of your bot * that have since been deleted. When the aggregated contains this kind of data, * this field is set to true.

*/ inline bool GetContainsDataFromDeletedResources() const{ return m_containsDataFromDeletedResources; } /** *

Aggregated utterance data may contain utterances from versions of your bot * that have since been deleted. When the aggregated contains this kind of data, * this field is set to true.

*/ inline bool ContainsDataFromDeletedResourcesHasBeenSet() const { return m_containsDataFromDeletedResourcesHasBeenSet; } /** *

Aggregated utterance data may contain utterances from versions of your bot * that have since been deleted. When the aggregated contains this kind of data, * this field is set to true.

*/ inline void SetContainsDataFromDeletedResources(bool value) { m_containsDataFromDeletedResourcesHasBeenSet = true; m_containsDataFromDeletedResources = value; } /** *

Aggregated utterance data may contain utterances from versions of your bot * that have since been deleted. When the aggregated contains this kind of data, * this field is set to true.

*/ inline AggregatedUtterancesSummary& WithContainsDataFromDeletedResources(bool value) { SetContainsDataFromDeletedResources(value); return *this;} private: Aws::String m_utterance; bool m_utteranceHasBeenSet = false; int m_hitCount; bool m_hitCountHasBeenSet = false; int m_missedCount; bool m_missedCountHasBeenSet = false; Aws::Utils::DateTime m_utteranceFirstRecordedInAggregationDuration; bool m_utteranceFirstRecordedInAggregationDurationHasBeenSet = false; Aws::Utils::DateTime m_utteranceLastRecordedInAggregationDuration; bool m_utteranceLastRecordedInAggregationDurationHasBeenSet = false; bool m_containsDataFromDeletedResources; bool m_containsDataFromDeletedResourcesHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws