AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AnalyticsSessionMetricResult.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/AnalyticsSessionMetricName.h>
9#include <aws/lexv2-models/model/AnalyticsMetricStatistic.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LexModelsV2
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_LEXMODELSV2_API AnalyticsSessionMetricResult() = default;
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
53 inline AnalyticsSessionMetricName GetName() const { return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(AnalyticsSessionMetricName value) { m_nameHasBeenSet = true; m_name = value; }
58
60
68 inline AnalyticsMetricStatistic GetStatistic() const { return m_statistic; }
69 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
70 inline void SetStatistic(AnalyticsMetricStatistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
73
75
78 inline double GetValue() const { return m_value; }
79 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
80 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
81 inline AnalyticsSessionMetricResult& WithValue(double value) { SetValue(value); return *this;}
83 private:
84
86 bool m_nameHasBeenSet = false;
87
89 bool m_statisticHasBeenSet = false;
90
91 double m_value{0.0};
92 bool m_valueHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace LexModelsV2
97} // namespace Aws
AnalyticsSessionMetricResult & WithStatistic(AnalyticsMetricStatistic value)
AWS_LEXMODELSV2_API AnalyticsSessionMetricResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AnalyticsSessionMetricResult & WithName(AnalyticsSessionMetricName value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AnalyticsSessionMetricResult & WithValue(double value)
AWS_LEXMODELSV2_API AnalyticsSessionMetricResult(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API AnalyticsSessionMetricResult()=default
Aws::Utils::Json::JsonValue JsonValue