/** * 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 { /** *

An object containing the results for the utterance metric you * requested.

See Also:

AWS * API Reference

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

The metric that you requested.

  • Count – The * number of utterances.

  • Missed – The number of * utterances that Amazon Lex failed to recognize.

  • * Detected – The number of utterances that Amazon Lex managed to * detect.

  • UtteranceTimestamp – The date and time * of the utterance.

*/ inline const AnalyticsUtteranceMetricName& GetName() const{ return m_name; } /** *

The metric that you requested.

  • Count – The * number of utterances.

  • Missed – The number of * utterances that Amazon Lex failed to recognize.

  • * Detected – The number of utterances that Amazon Lex managed to * detect.

  • UtteranceTimestamp – The date and time * of the utterance.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The metric that you requested.

  • Count – The * number of utterances.

  • Missed – The number of * utterances that Amazon Lex failed to recognize.

  • * Detected – The number of utterances that Amazon Lex managed to * detect.

  • UtteranceTimestamp – The date and time * of the utterance.

*/ inline void SetName(const AnalyticsUtteranceMetricName& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The metric that you requested.

  • Count – The * number of utterances.

  • Missed – The number of * utterances that Amazon Lex failed to recognize.

  • * Detected – The number of utterances that Amazon Lex managed to * detect.

  • UtteranceTimestamp – The date and time * of the utterance.

*/ inline void SetName(AnalyticsUtteranceMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The metric that you requested.

  • Count – The * number of utterances.

  • Missed – The number of * utterances that Amazon Lex failed to recognize.

  • * Detected – The number of utterances that Amazon Lex managed to * detect.

  • UtteranceTimestamp – The date and time * of the utterance.

*/ inline AnalyticsUtteranceMetricResult& WithName(const AnalyticsUtteranceMetricName& value) { SetName(value); return *this;} /** *

The metric that you requested.

  • Count – The * number of utterances.

  • Missed – The number of * utterances that Amazon Lex failed to recognize.

  • * Detected – The number of utterances that Amazon Lex managed to * detect.

  • UtteranceTimestamp – The date and time * of the utterance.

*/ inline AnalyticsUtteranceMetricResult& WithName(AnalyticsUtteranceMetricName&& value) { SetName(std::move(value)); return *this;} /** *

The summary statistic that you requested to calculate.

  • * Sum – The total count for the category you provide in * name.

  • Average – The total count * divided by the number of utterances in the category you provide in * name.

  • Max – The highest count in * the category you provide in name.

*/ inline const AnalyticsMetricStatistic& GetStatistic() const{ return m_statistic; } /** *

The summary statistic that you requested to calculate.

  • * Sum – The total count for the category you provide in * name.

  • Average – The total count * divided by the number of utterances in the category you provide in * name.

  • Max – The highest count in * the category you provide in name.

*/ inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; } /** *

The summary statistic that you requested to calculate.

  • * Sum – The total count for the category you provide in * name.

  • Average – The total count * divided by the number of utterances in the category you provide in * name.

  • Max – The highest count in * the category you provide in name.

*/ inline void SetStatistic(const AnalyticsMetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; } /** *

The summary statistic that you requested to calculate.

  • * Sum – The total count for the category you provide in * name.

  • Average – The total count * divided by the number of utterances in the category you provide in * name.

  • Max – The highest count in * the category you provide in name.

*/ inline void SetStatistic(AnalyticsMetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); } /** *

The summary statistic that you requested to calculate.

  • * Sum – The total count for the category you provide in * name.

  • Average – The total count * divided by the number of utterances in the category you provide in * name.

  • Max – The highest count in * the category you provide in name.

*/ inline AnalyticsUtteranceMetricResult& WithStatistic(const AnalyticsMetricStatistic& value) { SetStatistic(value); return *this;} /** *

The summary statistic that you requested to calculate.

  • * Sum – The total count for the category you provide in * name.

  • Average – The total count * divided by the number of utterances in the category you provide in * name.

  • Max – The highest count in * the category you provide in name.

*/ inline AnalyticsUtteranceMetricResult& WithStatistic(AnalyticsMetricStatistic&& value) { SetStatistic(std::move(value)); return *this;} /** *

The value of the summary statistic for the metric that you requested.

*/ inline double GetValue() const{ return m_value; } /** *

The value of the summary statistic for the metric that you requested.

*/ inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; } /** *

The value of the summary statistic for the metric that you requested.

*/ inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; } /** *

The value of the summary statistic for the metric that you requested.

*/ inline AnalyticsUtteranceMetricResult& WithValue(double value) { SetValue(value); return *this;} private: AnalyticsUtteranceMetricName m_name; bool m_nameHasBeenSet = false; AnalyticsMetricStatistic m_statistic; bool m_statisticHasBeenSet = false; double m_value; bool m_valueHasBeenSet = false; }; } // namespace Model } // namespace LexModelsV2 } // namespace Aws