AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
AnalyticsSessionResult.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lexv2-models/model/AnalyticsBinKey.h>
10#include <aws/lexv2-models/model/AnalyticsSessionGroupByKey.h>
11#include <aws/lexv2-models/model/AnalyticsSessionMetricResult.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexModelsV2
25{
26namespace Model
27{
28
37 {
38 public:
39 AWS_LEXMODELSV2_API AnalyticsSessionResult() = default;
40 AWS_LEXMODELSV2_API AnalyticsSessionResult(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::Vector<AnalyticsBinKey>& GetBinKeys() const { return m_binKeys; }
51 inline bool BinKeysHasBeenSet() const { return m_binKeysHasBeenSet; }
52 template<typename BinKeysT = Aws::Vector<AnalyticsBinKey>>
53 void SetBinKeys(BinKeysT&& value) { m_binKeysHasBeenSet = true; m_binKeys = std::forward<BinKeysT>(value); }
54 template<typename BinKeysT = Aws::Vector<AnalyticsBinKey>>
55 AnalyticsSessionResult& WithBinKeys(BinKeysT&& value) { SetBinKeys(std::forward<BinKeysT>(value)); return *this;}
56 template<typename BinKeysT = AnalyticsBinKey>
57 AnalyticsSessionResult& AddBinKeys(BinKeysT&& value) { m_binKeysHasBeenSet = true; m_binKeys.emplace_back(std::forward<BinKeysT>(value)); return *this; }
59
61
65 inline const Aws::Vector<AnalyticsSessionGroupByKey>& GetGroupByKeys() const { return m_groupByKeys; }
66 inline bool GroupByKeysHasBeenSet() const { return m_groupByKeysHasBeenSet; }
67 template<typename GroupByKeysT = Aws::Vector<AnalyticsSessionGroupByKey>>
68 void SetGroupByKeys(GroupByKeysT&& value) { m_groupByKeysHasBeenSet = true; m_groupByKeys = std::forward<GroupByKeysT>(value); }
69 template<typename GroupByKeysT = Aws::Vector<AnalyticsSessionGroupByKey>>
70 AnalyticsSessionResult& WithGroupByKeys(GroupByKeysT&& value) { SetGroupByKeys(std::forward<GroupByKeysT>(value)); return *this;}
71 template<typename GroupByKeysT = AnalyticsSessionGroupByKey>
72 AnalyticsSessionResult& AddGroupByKeys(GroupByKeysT&& value) { m_groupByKeysHasBeenSet = true; m_groupByKeys.emplace_back(std::forward<GroupByKeysT>(value)); return *this; }
74
76
81 inline const Aws::Vector<AnalyticsSessionMetricResult>& GetMetricsResults() const { return m_metricsResults; }
82 inline bool MetricsResultsHasBeenSet() const { return m_metricsResultsHasBeenSet; }
83 template<typename MetricsResultsT = Aws::Vector<AnalyticsSessionMetricResult>>
84 void SetMetricsResults(MetricsResultsT&& value) { m_metricsResultsHasBeenSet = true; m_metricsResults = std::forward<MetricsResultsT>(value); }
85 template<typename MetricsResultsT = Aws::Vector<AnalyticsSessionMetricResult>>
86 AnalyticsSessionResult& WithMetricsResults(MetricsResultsT&& value) { SetMetricsResults(std::forward<MetricsResultsT>(value)); return *this;}
87 template<typename MetricsResultsT = AnalyticsSessionMetricResult>
88 AnalyticsSessionResult& AddMetricsResults(MetricsResultsT&& value) { m_metricsResultsHasBeenSet = true; m_metricsResults.emplace_back(std::forward<MetricsResultsT>(value)); return *this; }
90 private:
91
93 bool m_binKeysHasBeenSet = false;
94
96 bool m_groupByKeysHasBeenSet = false;
97
99 bool m_metricsResultsHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace LexModelsV2
104} // namespace Aws
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< AnalyticsSessionMetricResult > & GetMetricsResults() const
AnalyticsSessionResult & WithMetricsResults(MetricsResultsT &&value)
AWS_LEXMODELSV2_API AnalyticsSessionResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API AnalyticsSessionResult(Aws::Utils::Json::JsonView jsonValue)
AnalyticsSessionResult & WithGroupByKeys(GroupByKeysT &&value)
AnalyticsSessionResult & AddBinKeys(BinKeysT &&value)
const Aws::Vector< AnalyticsBinKey > & GetBinKeys() const
AnalyticsSessionResult & AddGroupByKeys(GroupByKeysT &&value)
AnalyticsSessionResult & WithBinKeys(BinKeysT &&value)
const Aws::Vector< AnalyticsSessionGroupByKey > & GetGroupByKeys() const
AWS_LEXMODELSV2_API AnalyticsSessionResult()=default
AnalyticsSessionResult & AddMetricsResults(MetricsResultsT &&value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue