/** * 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 intent metric you * requested.

See Also:

AWS * API Reference

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

The metric that you requested. See Key * definitions for more details about these metrics.

  • * Count – The number of times the intent was invoked.

  • *

    Success – The number of times the intent succeeded.

  • *
  • Failure – The number of times the intent failed.

  • *
  • Switched – The number of times there was a switch to a * different intent.

  • Dropped – The number of times * the user dropped the intent.

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

The metric that you requested. See Key * definitions for more details about these metrics.

  • * Count – The number of times the intent was invoked.

  • *

    Success – The number of times the intent succeeded.

  • *
  • Failure – The number of times the intent failed.

  • *
  • Switched – The number of times there was a switch to a * different intent.

  • Dropped – The number of times * the user dropped the intent.

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

The metric that you requested. See Key * definitions for more details about these metrics.

  • * Count – The number of times the intent was invoked.

  • *

    Success – The number of times the intent succeeded.

  • *
  • Failure – The number of times the intent failed.

  • *
  • Switched – The number of times there was a switch to a * different intent.

  • Dropped – The number of times * the user dropped the intent.

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

The metric that you requested. See Key * definitions for more details about these metrics.

  • * Count – The number of times the intent was invoked.

  • *

    Success – The number of times the intent succeeded.

  • *
  • Failure – The number of times the intent failed.

  • *
  • Switched – The number of times there was a switch to a * different intent.

  • Dropped – The number of times * the user dropped the intent.

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

The metric that you requested. See Key * definitions for more details about these metrics.

  • * Count – The number of times the intent was invoked.

  • *

    Success – The number of times the intent succeeded.

  • *
  • Failure – The number of times the intent failed.

  • *
  • Switched – The number of times there was a switch to a * different intent.

  • Dropped – The number of times * the user dropped the intent.

*/ inline AnalyticsIntentMetricResult& WithName(const AnalyticsIntentMetricName& value) { SetName(value); return *this;} /** *

The metric that you requested. See Key * definitions for more details about these metrics.

  • * Count – The number of times the intent was invoked.

  • *

    Success – The number of times the intent succeeded.

  • *
  • Failure – The number of times the intent failed.

  • *
  • Switched – The number of times there was a switch to a * different intent.

  • Dropped – The number of times * the user dropped the intent.

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

The 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 intents 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 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 intents 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 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 intents 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 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 intents 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 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 intents in the category you provide in * name.

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

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

The 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 intents in the category you provide in * name.

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

*/ inline AnalyticsIntentMetricResult& 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 AnalyticsIntentMetricResult& WithValue(double value) { SetValue(value); return *this;} private: AnalyticsIntentMetricName 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