AWS SDK for C++

AWS SDK for C++ Version 1.11.755

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
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 AnalyticsIntentMetricResult() = default;
34 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
48 inline AnalyticsIntentMetricName GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 m_nameHasBeenSet = true;
52 m_name = value;
53 }
55 SetName(value);
56 return *this;
57 }
59
61
69 inline AnalyticsMetricStatistic GetStatistic() const { return m_statistic; }
70 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
72 m_statisticHasBeenSet = true;
73 m_statistic = value;
74 }
76 SetStatistic(value);
77 return *this;
78 }
80
82
85 inline double GetValue() const { return m_value; }
86 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
87 inline void SetValue(double value) {
88 m_valueHasBeenSet = true;
89 m_value = value;
90 }
91 inline AnalyticsIntentMetricResult& WithValue(double value) {
92 SetValue(value);
93 return *this;
94 }
96 private:
98
100
101 double m_value{0.0};
102 bool m_nameHasBeenSet = false;
103 bool m_statisticHasBeenSet = false;
104 bool m_valueHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace LexModelsV2
109} // 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