AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
AnalyticsSessionMetricResult.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/AnalyticsMetricStatistic.h>
9#include <aws/lexv2-models/model/AnalyticsSessionMetricName.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace LexModelsV2 {
21namespace Model {
22
30 public:
31 AWS_LEXMODELSV2_API AnalyticsSessionMetricResult() = default;
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
47 inline AnalyticsSessionMetricName GetName() const { return m_name; }
48 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 m_nameHasBeenSet = true;
51 m_name = value;
52 }
54 SetName(value);
55 return *this;
56 }
58
60
68 inline AnalyticsMetricStatistic GetStatistic() const { return m_statistic; }
69 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
71 m_statisticHasBeenSet = true;
72 m_statistic = value;
73 }
75 SetStatistic(value);
76 return *this;
77 }
79
81
84 inline double GetValue() const { return m_value; }
85 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
86 inline void SetValue(double value) {
87 m_valueHasBeenSet = true;
88 m_value = value;
89 }
91 SetValue(value);
92 return *this;
93 }
95 private:
97
99
100 double m_value{0.0};
101 bool m_nameHasBeenSet = false;
102 bool m_statisticHasBeenSet = false;
103 bool m_valueHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace LexModelsV2
108} // 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