AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
AnalyticsSessionMetric.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#include <aws/lexv2-models/model/AnalyticsSortOrder.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2 {
22namespace Model {
23
32 public:
33 AWS_LEXMODELSV2_API AnalyticsSessionMetric() = default;
34 AWS_LEXMODELSV2_API AnalyticsSessionMetric(Aws::Utils::Json::JsonView jsonValue);
36 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
50 inline AnalyticsSessionMetricName GetName() const { return m_name; }
51 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
53 m_nameHasBeenSet = true;
54 m_name = value;
55 }
57 SetName(value);
58 return *this;
59 }
61
63
71 inline AnalyticsMetricStatistic GetStatistic() const { return m_statistic; }
72 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
74 m_statisticHasBeenSet = true;
75 m_statistic = value;
76 }
78 SetStatistic(value);
79 return *this;
80 }
82
84
87 inline AnalyticsSortOrder GetOrder() const { return m_order; }
88 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
89 inline void SetOrder(AnalyticsSortOrder value) {
90 m_orderHasBeenSet = true;
91 m_order = value;
92 }
94 SetOrder(value);
95 return *this;
96 }
98 private:
100
102
104 bool m_nameHasBeenSet = false;
105 bool m_statisticHasBeenSet = false;
106 bool m_orderHasBeenSet = false;
107};
108
109} // namespace Model
110} // namespace LexModelsV2
111} // namespace Aws
AnalyticsSessionMetric & WithName(AnalyticsSessionMetricName value)
AnalyticsSessionMetric & WithStatistic(AnalyticsMetricStatistic value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXMODELSV2_API AnalyticsSessionMetric()=default
AnalyticsSessionMetric & WithOrder(AnalyticsSortOrder value)
AWS_LEXMODELSV2_API AnalyticsSessionMetric(Aws::Utils::Json::JsonView jsonValue)
void SetStatistic(AnalyticsMetricStatistic value)
AWS_LEXMODELSV2_API AnalyticsSessionMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(AnalyticsSessionMetricName value)
Aws::Utils::Json::JsonValue JsonValue