AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListSessionMetricsRequest.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/lexv2-models/LexModelsV2Request.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/lexv2-models/model/AnalyticsSessionMetric.h>
13#include <aws/lexv2-models/model/AnalyticsBinBySpecification.h>
14#include <aws/lexv2-models/model/AnalyticsSessionGroupBySpecification.h>
15#include <aws/lexv2-models/model/AnalyticsSessionFilter.h>
16#include <utility>
17
18namespace Aws
19{
20namespace LexModelsV2
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_LEXMODELSV2_API ListSessionMetricsRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "ListSessionMetrics"; }
37
38 AWS_LEXMODELSV2_API Aws::String SerializePayload() const override;
39
40
42
46 inline const Aws::String& GetBotId() const { return m_botId; }
47 inline bool BotIdHasBeenSet() const { return m_botIdHasBeenSet; }
48 template<typename BotIdT = Aws::String>
49 void SetBotId(BotIdT&& value) { m_botIdHasBeenSet = true; m_botId = std::forward<BotIdT>(value); }
50 template<typename BotIdT = Aws::String>
51 ListSessionMetricsRequest& WithBotId(BotIdT&& value) { SetBotId(std::forward<BotIdT>(value)); return *this;}
53
55
59 inline const Aws::Utils::DateTime& GetStartDateTime() const { return m_startDateTime; }
60 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
61 template<typename StartDateTimeT = Aws::Utils::DateTime>
62 void SetStartDateTime(StartDateTimeT&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::forward<StartDateTimeT>(value); }
63 template<typename StartDateTimeT = Aws::Utils::DateTime>
64 ListSessionMetricsRequest& WithStartDateTime(StartDateTimeT&& value) { SetStartDateTime(std::forward<StartDateTimeT>(value)); return *this;}
66
68
72 inline const Aws::Utils::DateTime& GetEndDateTime() const { return m_endDateTime; }
73 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
74 template<typename EndDateTimeT = Aws::Utils::DateTime>
75 void SetEndDateTime(EndDateTimeT&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::forward<EndDateTimeT>(value); }
76 template<typename EndDateTimeT = Aws::Utils::DateTime>
77 ListSessionMetricsRequest& WithEndDateTime(EndDateTimeT&& value) { SetEndDateTime(std::forward<EndDateTimeT>(value)); return *this;}
79
81
86 inline const Aws::Vector<AnalyticsSessionMetric>& GetMetrics() const { return m_metrics; }
87 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
88 template<typename MetricsT = Aws::Vector<AnalyticsSessionMetric>>
89 void SetMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics = std::forward<MetricsT>(value); }
90 template<typename MetricsT = Aws::Vector<AnalyticsSessionMetric>>
91 ListSessionMetricsRequest& WithMetrics(MetricsT&& value) { SetMetrics(std::forward<MetricsT>(value)); return *this;}
92 template<typename MetricsT = AnalyticsSessionMetric>
93 ListSessionMetricsRequest& AddMetrics(MetricsT&& value) { m_metricsHasBeenSet = true; m_metrics.emplace_back(std::forward<MetricsT>(value)); return *this; }
95
97
101 inline const Aws::Vector<AnalyticsBinBySpecification>& GetBinBy() const { return m_binBy; }
102 inline bool BinByHasBeenSet() const { return m_binByHasBeenSet; }
103 template<typename BinByT = Aws::Vector<AnalyticsBinBySpecification>>
104 void SetBinBy(BinByT&& value) { m_binByHasBeenSet = true; m_binBy = std::forward<BinByT>(value); }
105 template<typename BinByT = Aws::Vector<AnalyticsBinBySpecification>>
106 ListSessionMetricsRequest& WithBinBy(BinByT&& value) { SetBinBy(std::forward<BinByT>(value)); return *this;}
107 template<typename BinByT = AnalyticsBinBySpecification>
108 ListSessionMetricsRequest& AddBinBy(BinByT&& value) { m_binByHasBeenSet = true; m_binBy.emplace_back(std::forward<BinByT>(value)); return *this; }
110
112
121 inline const Aws::Vector<AnalyticsSessionGroupBySpecification>& GetGroupBy() const { return m_groupBy; }
122 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
123 template<typename GroupByT = Aws::Vector<AnalyticsSessionGroupBySpecification>>
124 void SetGroupBy(GroupByT&& value) { m_groupByHasBeenSet = true; m_groupBy = std::forward<GroupByT>(value); }
125 template<typename GroupByT = Aws::Vector<AnalyticsSessionGroupBySpecification>>
126 ListSessionMetricsRequest& WithGroupBy(GroupByT&& value) { SetGroupBy(std::forward<GroupByT>(value)); return *this;}
127 template<typename GroupByT = AnalyticsSessionGroupBySpecification>
128 ListSessionMetricsRequest& AddGroupBy(GroupByT&& value) { m_groupByHasBeenSet = true; m_groupBy.emplace_back(std::forward<GroupByT>(value)); return *this; }
130
132
136 inline const Aws::Vector<AnalyticsSessionFilter>& GetFilters() const { return m_filters; }
137 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
138 template<typename FiltersT = Aws::Vector<AnalyticsSessionFilter>>
139 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
140 template<typename FiltersT = Aws::Vector<AnalyticsSessionFilter>>
141 ListSessionMetricsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
142 template<typename FiltersT = AnalyticsSessionFilter>
143 ListSessionMetricsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
145
147
152 inline int GetMaxResults() const { return m_maxResults; }
153 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
154 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
155 inline ListSessionMetricsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
157
159
167 inline const Aws::String& GetNextToken() const { return m_nextToken; }
168 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
169 template<typename NextTokenT = Aws::String>
170 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
171 template<typename NextTokenT = Aws::String>
172 ListSessionMetricsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
174 private:
175
176 Aws::String m_botId;
177 bool m_botIdHasBeenSet = false;
178
179 Aws::Utils::DateTime m_startDateTime{};
180 bool m_startDateTimeHasBeenSet = false;
181
182 Aws::Utils::DateTime m_endDateTime{};
183 bool m_endDateTimeHasBeenSet = false;
184
186 bool m_metricsHasBeenSet = false;
187
189 bool m_binByHasBeenSet = false;
190
192 bool m_groupByHasBeenSet = false;
193
195 bool m_filtersHasBeenSet = false;
196
197 int m_maxResults{0};
198 bool m_maxResultsHasBeenSet = false;
199
200 Aws::String m_nextToken;
201 bool m_nextTokenHasBeenSet = false;
202 };
203
204} // namespace Model
205} // namespace LexModelsV2
206} // namespace Aws
ListSessionMetricsRequest & WithGroupBy(GroupByT &&value)
ListSessionMetricsRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< AnalyticsBinBySpecification > & GetBinBy() const
const Aws::Vector< AnalyticsSessionGroupBySpecification > & GetGroupBy() const
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
ListSessionMetricsRequest & WithEndDateTime(EndDateTimeT &&value)
AWS_LEXMODELSV2_API ListSessionMetricsRequest()=default
ListSessionMetricsRequest & WithFilters(FiltersT &&value)
ListSessionMetricsRequest & AddBinBy(BinByT &&value)
ListSessionMetricsRequest & WithBinBy(BinByT &&value)
ListSessionMetricsRequest & AddMetrics(MetricsT &&value)
ListSessionMetricsRequest & AddFilters(FiltersT &&value)
const Aws::Vector< AnalyticsSessionFilter > & GetFilters() const
virtual const char * GetServiceRequestName() const override
ListSessionMetricsRequest & AddGroupBy(GroupByT &&value)
ListSessionMetricsRequest & WithMetrics(MetricsT &&value)
ListSessionMetricsRequest & WithBotId(BotIdT &&value)
const Aws::Vector< AnalyticsSessionMetric > & GetMetrics() const
ListSessionMetricsRequest & WithStartDateTime(StartDateTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector