AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
54 inline const AnalyticsIntentMetricName& GetName() const{ return m_name; }
55 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
56 inline void SetName(const AnalyticsIntentMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
57 inline void SetName(AnalyticsIntentMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 inline AnalyticsIntentMetricResult& WithName(const AnalyticsIntentMetricName& value) { SetName(value); return *this;}
59 inline AnalyticsIntentMetricResult& WithName(AnalyticsIntentMetricName&& value) { SetName(std::move(value)); return *this;}
61
63
71 inline const AnalyticsMetricStatistic& GetStatistic() const{ return m_statistic; }
72 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
73 inline void SetStatistic(const AnalyticsMetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
74 inline void SetStatistic(AnalyticsMetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
76 inline AnalyticsIntentMetricResult& WithStatistic(AnalyticsMetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
78
80
83 inline double GetValue() const{ return m_value; }
84 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
85 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
86 inline AnalyticsIntentMetricResult& WithValue(double value) { SetValue(value); return *this;}
88 private:
89
91 bool m_nameHasBeenSet = false;
92
93 AnalyticsMetricStatistic m_statistic;
94 bool m_statisticHasBeenSet = false;
95
96 double m_value;
97 bool m_valueHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace LexModelsV2
102} // namespace Aws
AnalyticsIntentMetricResult & WithStatistic(const AnalyticsMetricStatistic &value)
AWS_LEXMODELSV2_API AnalyticsIntentMetricResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API AnalyticsIntentMetricResult(Aws::Utils::Json::JsonView jsonValue)
void SetStatistic(const AnalyticsMetricStatistic &value)
AnalyticsIntentMetricResult & WithName(AnalyticsIntentMetricName &&value)
AnalyticsIntentMetricResult & WithStatistic(AnalyticsMetricStatistic &&value)
void SetName(const AnalyticsIntentMetricName &value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AnalyticsIntentMetricResult & WithName(const AnalyticsIntentMetricName &value)
AnalyticsIntentMetricResult & WithValue(double value)
Aws::Utils::Json::JsonValue JsonValue