AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AnalyticsSessionMetric.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 <aws/lexv2-models/model/AnalyticsSortOrder.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelsV2
24{
25namespace Model
26{
27
36 {
37 public:
38 AWS_LEXMODELSV2_API AnalyticsSessionMetric();
39 AWS_LEXMODELSV2_API AnalyticsSessionMetric(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
56 inline const AnalyticsSessionMetricName& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const AnalyticsSessionMetricName& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(AnalyticsSessionMetricName&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline AnalyticsSessionMetric& WithName(const AnalyticsSessionMetricName& value) { SetName(value); return *this;}
61 inline AnalyticsSessionMetric& WithName(AnalyticsSessionMetricName&& value) { SetName(std::move(value)); return *this;}
63
65
73 inline const AnalyticsMetricStatistic& GetStatistic() const{ return m_statistic; }
74 inline bool StatisticHasBeenSet() const { return m_statisticHasBeenSet; }
75 inline void SetStatistic(const AnalyticsMetricStatistic& value) { m_statisticHasBeenSet = true; m_statistic = value; }
76 inline void SetStatistic(AnalyticsMetricStatistic&& value) { m_statisticHasBeenSet = true; m_statistic = std::move(value); }
77 inline AnalyticsSessionMetric& WithStatistic(const AnalyticsMetricStatistic& value) { SetStatistic(value); return *this;}
78 inline AnalyticsSessionMetric& WithStatistic(AnalyticsMetricStatistic&& value) { SetStatistic(std::move(value)); return *this;}
80
82
85 inline const AnalyticsSortOrder& GetOrder() const{ return m_order; }
86 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
87 inline void SetOrder(const AnalyticsSortOrder& value) { m_orderHasBeenSet = true; m_order = value; }
88 inline void SetOrder(AnalyticsSortOrder&& value) { m_orderHasBeenSet = true; m_order = std::move(value); }
89 inline AnalyticsSessionMetric& WithOrder(const AnalyticsSortOrder& value) { SetOrder(value); return *this;}
90 inline AnalyticsSessionMetric& WithOrder(AnalyticsSortOrder&& value) { SetOrder(std::move(value)); return *this;}
92 private:
93
95 bool m_nameHasBeenSet = false;
96
97 AnalyticsMetricStatistic m_statistic;
98 bool m_statisticHasBeenSet = false;
99
100 AnalyticsSortOrder m_order;
101 bool m_orderHasBeenSet = false;
102 };
103
104} // namespace Model
105} // namespace LexModelsV2
106} // namespace Aws
void SetName(AnalyticsSessionMetricName &&value)
void SetName(const AnalyticsSessionMetricName &value)
void SetStatistic(AnalyticsMetricStatistic &&value)
const AnalyticsMetricStatistic & GetStatistic() const
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
AnalyticsSessionMetric & WithOrder(AnalyticsSortOrder &&value)
void SetStatistic(const AnalyticsMetricStatistic &value)
AnalyticsSessionMetric & WithName(AnalyticsSessionMetricName &&value)
AWS_LEXMODELSV2_API AnalyticsSessionMetric(Aws::Utils::Json::JsonView jsonValue)
AnalyticsSessionMetric & WithName(const AnalyticsSessionMetricName &value)
AWS_LEXMODELSV2_API AnalyticsSessionMetric & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOrder(const AnalyticsSortOrder &value)
const AnalyticsSessionMetricName & GetName() const
AnalyticsSessionMetric & WithStatistic(const AnalyticsMetricStatistic &value)
AnalyticsSessionMetric & WithOrder(const AnalyticsSortOrder &value)
AnalyticsSessionMetric & WithStatistic(AnalyticsMetricStatistic &&value)
Aws::Utils::Json::JsonValue JsonValue