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

See Also:

AWS * API Reference

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

The metric that you requested.

  • Count – The * number of sessions.

  • Success – The number of * sessions that succeeded.

  • Failure – The number of * sessions that failed.

  • Dropped – The number of * sessions that the user dropped.

  • Duration – The * duration of sessions.

  • TurnPersession – The * number of turns in the sessions.

  • Concurrency – * The number of sessions occurring in the same period of time.

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

The metric that you requested.

  • Count – The * number of sessions.

  • Success – The number of * sessions that succeeded.

  • Failure – The number of * sessions that failed.

  • Dropped – The number of * sessions that the user dropped.

  • Duration – The * duration of sessions.

  • TurnPersession – The * number of turns in the sessions.

  • Concurrency – * The number of sessions occurring in the same period of time.

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

The metric that you requested.

  • Count – The * number of sessions.

  • Success – The number of * sessions that succeeded.

  • Failure – The number of * sessions that failed.

  • Dropped – The number of * sessions that the user dropped.

  • Duration – The * duration of sessions.

  • TurnPersession – The * number of turns in the sessions.

  • Concurrency – * The number of sessions occurring in the same period of time.

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

The metric that you requested.

  • Count – The * number of sessions.

  • Success – The number of * sessions that succeeded.

  • Failure – The number of * sessions that failed.

  • Dropped – The number of * sessions that the user dropped.

  • Duration – The * duration of sessions.

  • TurnPersession – The * number of turns in the sessions.

  • Concurrency – * The number of sessions occurring in the same period of time.

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

The metric that you requested.

  • Count – The * number of sessions.

  • Success – The number of * sessions that succeeded.

  • Failure – The number of * sessions that failed.

  • Dropped – The number of * sessions that the user dropped.

  • Duration – The * duration of sessions.

  • TurnPersession – The * number of turns in the sessions.

  • Concurrency – * The number of sessions occurring in the same period of time.

*/ inline AnalyticsSessionMetricResult& WithName(const AnalyticsSessionMetricName& value) { SetName(value); return *this;} /** *

The metric that you requested.

  • Count – The * number of sessions.

  • Success – The number of * sessions that succeeded.

  • Failure – The number of * sessions that failed.

  • Dropped – The number of * sessions that the user dropped.

  • Duration – The * duration of sessions.

  • TurnPersession – The * number of turns in the sessions.

  • Concurrency – * The number of sessions occurring in the same period of time.

*/ inline AnalyticsSessionMetricResult& WithName(AnalyticsSessionMetricName&& 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 sessions 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 sessions 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 sessions 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 sessions 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 sessions in the category you provide in * name.

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

*/ inline AnalyticsSessionMetricResult& 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 sessions in the category you provide in * name.

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

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