AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBotId(const Aws::String& value) { m_botIdHasBeenSet = true; m_botId = value; }
49 inline void SetBotId(Aws::String&& value) { m_botIdHasBeenSet = true; m_botId = std::move(value); }
50 inline void SetBotId(const char* value) { m_botIdHasBeenSet = true; m_botId.assign(value); }
51 inline ListSessionMetricsRequest& WithBotId(const Aws::String& value) { SetBotId(value); return *this;}
52 inline ListSessionMetricsRequest& WithBotId(Aws::String&& value) { SetBotId(std::move(value)); return *this;}
53 inline ListSessionMetricsRequest& WithBotId(const char* value) { SetBotId(value); return *this;}
55
57
61 inline const Aws::Utils::DateTime& GetStartDateTime() const{ return m_startDateTime; }
62 inline bool StartDateTimeHasBeenSet() const { return m_startDateTimeHasBeenSet; }
63 inline void SetStartDateTime(const Aws::Utils::DateTime& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = value; }
64 inline void SetStartDateTime(Aws::Utils::DateTime&& value) { m_startDateTimeHasBeenSet = true; m_startDateTime = std::move(value); }
66 inline ListSessionMetricsRequest& WithStartDateTime(Aws::Utils::DateTime&& value) { SetStartDateTime(std::move(value)); return *this;}
68
70
74 inline const Aws::Utils::DateTime& GetEndDateTime() const{ return m_endDateTime; }
75 inline bool EndDateTimeHasBeenSet() const { return m_endDateTimeHasBeenSet; }
76 inline void SetEndDateTime(const Aws::Utils::DateTime& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = value; }
77 inline void SetEndDateTime(Aws::Utils::DateTime&& value) { m_endDateTimeHasBeenSet = true; m_endDateTime = std::move(value); }
79 inline ListSessionMetricsRequest& WithEndDateTime(Aws::Utils::DateTime&& value) { SetEndDateTime(std::move(value)); return *this;}
81
83
88 inline const Aws::Vector<AnalyticsSessionMetric>& GetMetrics() const{ return m_metrics; }
89 inline bool MetricsHasBeenSet() const { return m_metricsHasBeenSet; }
90 inline void SetMetrics(const Aws::Vector<AnalyticsSessionMetric>& value) { m_metricsHasBeenSet = true; m_metrics = value; }
91 inline void SetMetrics(Aws::Vector<AnalyticsSessionMetric>&& value) { m_metricsHasBeenSet = true; m_metrics = std::move(value); }
93 inline ListSessionMetricsRequest& WithMetrics(Aws::Vector<AnalyticsSessionMetric>&& value) { SetMetrics(std::move(value)); return *this;}
94 inline ListSessionMetricsRequest& AddMetrics(const AnalyticsSessionMetric& value) { m_metricsHasBeenSet = true; m_metrics.push_back(value); return *this; }
95 inline ListSessionMetricsRequest& AddMetrics(AnalyticsSessionMetric&& value) { m_metricsHasBeenSet = true; m_metrics.push_back(std::move(value)); return *this; }
97
99
103 inline const Aws::Vector<AnalyticsBinBySpecification>& GetBinBy() const{ return m_binBy; }
104 inline bool BinByHasBeenSet() const { return m_binByHasBeenSet; }
105 inline void SetBinBy(const Aws::Vector<AnalyticsBinBySpecification>& value) { m_binByHasBeenSet = true; m_binBy = value; }
106 inline void SetBinBy(Aws::Vector<AnalyticsBinBySpecification>&& value) { m_binByHasBeenSet = true; m_binBy = std::move(value); }
109 inline ListSessionMetricsRequest& AddBinBy(const AnalyticsBinBySpecification& value) { m_binByHasBeenSet = true; m_binBy.push_back(value); return *this; }
110 inline ListSessionMetricsRequest& AddBinBy(AnalyticsBinBySpecification&& value) { m_binByHasBeenSet = true; m_binBy.push_back(std::move(value)); return *this; }
112
114
123 inline const Aws::Vector<AnalyticsSessionGroupBySpecification>& GetGroupBy() const{ return m_groupBy; }
124 inline bool GroupByHasBeenSet() const { return m_groupByHasBeenSet; }
125 inline void SetGroupBy(const Aws::Vector<AnalyticsSessionGroupBySpecification>& value) { m_groupByHasBeenSet = true; m_groupBy = value; }
126 inline void SetGroupBy(Aws::Vector<AnalyticsSessionGroupBySpecification>&& value) { m_groupByHasBeenSet = true; m_groupBy = std::move(value); }
129 inline ListSessionMetricsRequest& AddGroupBy(const AnalyticsSessionGroupBySpecification& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(value); return *this; }
130 inline ListSessionMetricsRequest& AddGroupBy(AnalyticsSessionGroupBySpecification&& value) { m_groupByHasBeenSet = true; m_groupBy.push_back(std::move(value)); return *this; }
132
134
138 inline const Aws::Vector<AnalyticsSessionFilter>& GetFilters() const{ return m_filters; }
139 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
140 inline void SetFilters(const Aws::Vector<AnalyticsSessionFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
141 inline void SetFilters(Aws::Vector<AnalyticsSessionFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
143 inline ListSessionMetricsRequest& WithFilters(Aws::Vector<AnalyticsSessionFilter>&& value) { SetFilters(std::move(value)); return *this;}
144 inline ListSessionMetricsRequest& AddFilters(const AnalyticsSessionFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
145 inline ListSessionMetricsRequest& AddFilters(AnalyticsSessionFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
147
149
154 inline int GetMaxResults() const{ return m_maxResults; }
155 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
156 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
157 inline ListSessionMetricsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
159
161
169 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
170 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
171 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
172 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
173 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
174 inline ListSessionMetricsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
175 inline ListSessionMetricsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
176 inline ListSessionMetricsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
178 private:
179
180 Aws::String m_botId;
181 bool m_botIdHasBeenSet = false;
182
183 Aws::Utils::DateTime m_startDateTime;
184 bool m_startDateTimeHasBeenSet = false;
185
186 Aws::Utils::DateTime m_endDateTime;
187 bool m_endDateTimeHasBeenSet = false;
188
190 bool m_metricsHasBeenSet = false;
191
193 bool m_binByHasBeenSet = false;
194
196 bool m_groupByHasBeenSet = false;
197
199 bool m_filtersHasBeenSet = false;
200
201 int m_maxResults;
202 bool m_maxResultsHasBeenSet = false;
203
204 Aws::String m_nextToken;
205 bool m_nextTokenHasBeenSet = false;
206 };
207
208} // namespace Model
209} // namespace LexModelsV2
210} // namespace Aws
void SetStartDateTime(const Aws::Utils::DateTime &value)
const Aws::Vector< AnalyticsBinBySpecification > & GetBinBy() const
const Aws::Vector< AnalyticsSessionGroupBySpecification > & GetGroupBy() const
void SetMetrics(const Aws::Vector< AnalyticsSessionMetric > &value)
ListSessionMetricsRequest & WithNextToken(const char *value)
ListSessionMetricsRequest & WithBinBy(Aws::Vector< AnalyticsBinBySpecification > &&value)
AWS_LEXMODELSV2_API Aws::String SerializePayload() const override
ListSessionMetricsRequest & WithMetrics(Aws::Vector< AnalyticsSessionMetric > &&value)
ListSessionMetricsRequest & WithBinBy(const Aws::Vector< AnalyticsBinBySpecification > &value)
ListSessionMetricsRequest & AddGroupBy(AnalyticsSessionGroupBySpecification &&value)
ListSessionMetricsRequest & WithGroupBy(Aws::Vector< AnalyticsSessionGroupBySpecification > &&value)
ListSessionMetricsRequest & WithMetrics(const Aws::Vector< AnalyticsSessionMetric > &value)
void SetFilters(Aws::Vector< AnalyticsSessionFilter > &&value)
ListSessionMetricsRequest & AddMetrics(const AnalyticsSessionMetric &value)
ListSessionMetricsRequest & AddGroupBy(const AnalyticsSessionGroupBySpecification &value)
ListSessionMetricsRequest & WithBotId(const Aws::String &value)
void SetFilters(const Aws::Vector< AnalyticsSessionFilter > &value)
ListSessionMetricsRequest & AddBinBy(const AnalyticsBinBySpecification &value)
ListSessionMetricsRequest & AddMetrics(AnalyticsSessionMetric &&value)
void SetGroupBy(Aws::Vector< AnalyticsSessionGroupBySpecification > &&value)
const Aws::Vector< AnalyticsSessionFilter > & GetFilters() const
ListSessionMetricsRequest & WithBotId(Aws::String &&value)
ListSessionMetricsRequest & AddBinBy(AnalyticsBinBySpecification &&value)
ListSessionMetricsRequest & WithNextToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
ListSessionMetricsRequest & WithStartDateTime(const Aws::Utils::DateTime &value)
ListSessionMetricsRequest & WithStartDateTime(Aws::Utils::DateTime &&value)
ListSessionMetricsRequest & WithFilters(Aws::Vector< AnalyticsSessionFilter > &&value)
void SetBinBy(const Aws::Vector< AnalyticsBinBySpecification > &value)
ListSessionMetricsRequest & AddFilters(AnalyticsSessionFilter &&value)
void SetMetrics(Aws::Vector< AnalyticsSessionMetric > &&value)
void SetGroupBy(const Aws::Vector< AnalyticsSessionGroupBySpecification > &value)
void SetBinBy(Aws::Vector< AnalyticsBinBySpecification > &&value)
ListSessionMetricsRequest & AddFilters(const AnalyticsSessionFilter &value)
ListSessionMetricsRequest & WithNextToken(Aws::String &&value)
void SetEndDateTime(const Aws::Utils::DateTime &value)
ListSessionMetricsRequest & WithFilters(const Aws::Vector< AnalyticsSessionFilter > &value)
ListSessionMetricsRequest & WithEndDateTime(Aws::Utils::DateTime &&value)
const Aws::Vector< AnalyticsSessionMetric > & GetMetrics() const
ListSessionMetricsRequest & WithBotId(const char *value)
ListSessionMetricsRequest & WithGroupBy(const Aws::Vector< AnalyticsSessionGroupBySpecification > &value)
ListSessionMetricsRequest & WithEndDateTime(const Aws::Utils::DateTime &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector