AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AnalyticsIntentMetricResult.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/model/AnalyticsIntentMetricName.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 AnalyticsIntentMetricResult() = default;
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
54 inline AnalyticsIntentMetricName GetName() const { return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 inline void SetName(AnalyticsIntentMetricName value) { m_nameHasBeenSet = true; m_name = value; }
59
61
69 inline AnalyticsMetricStatistic GetStatistic() const { return m_statistic; }
70 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
71 inline void SetStatistic(AnalyticsMetricStatistic value) { m_statisticHasBeenSet = true; m_statistic = value; }
74
76
79 inline double GetValue() const { return m_value; }
80 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
81 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
82 inline AnalyticsIntentMetricResult& WithValue(double value) { SetValue(value); return *this;}
84 private:
85
87 bool m_nameHasBeenSet = false;
88
90 bool m_statisticHasBeenSet = false;
91
92 double m_value{0.0};
93 bool m_valueHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace LexModelsV2
98} // namespace Aws
AWS_LEXMODELSV2_API AnalyticsIntentMetricResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API AnalyticsIntentMetricResult(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API AnalyticsIntentMetricResult()=default
AnalyticsIntentMetricResult & WithStatistic(AnalyticsMetricStatistic value)
AnalyticsIntentMetricResult & WithName(AnalyticsIntentMetricName value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AnalyticsIntentMetricResult & WithValue(double value)
Aws::Utils::Json::JsonValue JsonValue