AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
53 inline const AnalyticsSessionMetricName& GetName() const{ return m_name; }
54 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
55 inline void SetName(const AnalyticsSessionMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
56 inline void SetName(AnalyticsSessionMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
57 inline AnalyticsSessionMetricResult& WithName(const AnalyticsSessionMetricName& value) { SetName(value); return *this;}
58 inline AnalyticsSessionMetricResult& WithName(AnalyticsSessionMetricName&& value) { SetName(std::move(value)); return *this;}
60
62
70 inline const AnalyticsMetricStatistic& GetStatistic() const{ return m_statistic; }
71 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
72 inline void SetStatistic(const AnalyticsMetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
73 inline void SetStatistic(AnalyticsMetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
75 inline AnalyticsSessionMetricResult& WithStatistic(AnalyticsMetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
77
79
82 inline double GetValue() const{ return m_value; }
83 inline bool ValueHasBeenSet() const { return m_valueHasBeenSet; }
84 inline void SetValue(double value) { m_valueHasBeenSet = true; m_value = value; }
85 inline AnalyticsSessionMetricResult& WithValue(double value) { SetValue(value); return *this;}
87 private:
88
90 bool m_nameHasBeenSet = false;
91
92 AnalyticsMetricStatistic m_statistic;
93 bool m_statisticHasBeenSet = false;
94
95 double m_value;
96 bool m_valueHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace LexModelsV2
101} // namespace Aws
AnalyticsSessionMetricResult & WithName(const AnalyticsSessionMetricName &value)
AWS_LEXMODELSV2_API AnalyticsSessionMetricResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetStatistic(const AnalyticsMetricStatistic &value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AnalyticsSessionMetricResult & WithValue(double value)
AnalyticsSessionMetricResult & WithName(AnalyticsSessionMetricName &&value)
AWS_LEXMODELSV2_API AnalyticsSessionMetricResult(Aws::Utils::Json::JsonView jsonValue)
AnalyticsSessionMetricResult & WithStatistic(AnalyticsMetricStatistic &&value)
AnalyticsSessionMetricResult & WithStatistic(const AnalyticsMetricStatistic &value)
void SetName(const AnalyticsSessionMetricName &value)
Aws::Utils::Json::JsonValue JsonValue